drm/i915/gt: Setup a default migration context on the GT
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 17 Jun 2021 06:30:15 +0000 (08:30 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 17 Jun 2021 13:23:11 +0000 (14:23 +0100)
commit94ce0d65076cda511da843ae1893c819948a215a
tree09945adfd129afc15cd5d685c1ff03765af4bbe7
parent563baae1875cbcac332086cca325cf55a0532b9e
drm/i915/gt: Setup a default migration context on the GT

Set up a default migration context on the GT and use it from the
selftests.
Add a perf selftest and make sure we exercise LMEM if available.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Co-developed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210617063018.92802-10-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/intel_gt_types.h
drivers/gpu/drm/i915/gt/intel_migrate.c
drivers/gpu/drm/i915/gt/selftest_migrate.c
drivers/gpu/drm/i915/selftests/i915_perf_selftests.h