#include "gem/i915_gem_internal.h"
#include "gem/i915_gem_pm.h"
#include "gem/selftests/igt_gem_utils.h"
#include "gem/selftests/mock_context.h"
#include "gt/intel_gt.h"
#include "gt/intel_gt_print.h"
#include "i915_selftest.h"
#include "igt_flush_test.h"
#include "lib_sw_fence.h"
#include "mock_drm.h"
#include "mock_gem_device.h"
static void quirk_add(struct drm_i915_gem_object *obj,
struct list_head *objects)
{ … }
static int populate_ggtt(struct i915_ggtt *ggtt, struct list_head *objects)
{ … }
static void unpin_ggtt(struct i915_ggtt *ggtt)
{ … }
static void cleanup_objects(struct i915_ggtt *ggtt, struct list_head *list)
{ … }
static int igt_evict_something(void *arg)
{ … }
static int igt_overcommit(void *arg)
{ … }
static int igt_evict_for_vma(void *arg)
{ … }
static void mock_color_adjust(const struct drm_mm_node *node,
unsigned long color,
u64 *start,
u64 *end)
{ … }
static int igt_evict_for_cache_color(void *arg)
{ … }
static int igt_evict_vm(void *arg)
{ … }
static int igt_evict_contexts(void *arg)
{ … }
int i915_gem_evict_mock_selftests(void)
{ … }
int i915_gem_evict_live_selftests(struct drm_i915_private *i915)
{ … }