drm/i915: Asynchronous migration selftest
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 10 Jan 2022 17:22:18 +0000 (18:22 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 11 Jan 2022 09:54:11 +0000 (10:54 +0100)
commit950505cabe517ad40759cae6f88f33f0bdfbb7c8
tree595328917029cf2d00ff84f8f73e0f0e1372a4f0
parent2f6b90da919208621725d1703c0391f63724fa62
drm/i915: Asynchronous migration selftest

Add a selftest to exercise asynchronous migration and -unbining.
Extend the gem_migrate selftest to perform the migrations while
depending on a spinner and a bound vma set up on the migrated
buffer object.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220110172219.107131-6-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/gem/selftests/i915_gem_migrate.c