summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/tests/xe_migrate.c
diff options
context:
space:
mode:
authorThomas Hellström <thomas.hellstrom@linux.intel.com>2023-03-02 12:01:41 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:29:44 +0300
commit907a319c8c8e125224b088f91f468f549f1e1da7 (patch)
treeb4d704047992c50100f5fe7aa6b2b74bcbf2dfa0 /drivers/gpu/drm/xe/tests/xe_migrate.c
parent282c683a56e9713a3b70c4cffd17cb48bdbacca2 (diff)
downloadlinux-907a319c8c8e125224b088f91f468f549f1e1da7.tar.xz
drm/xe/tests: Grab a memory access reference around the migrate sanity test
It appears we don't hold a memory access reference for the accesses in this test, which may results in printed warnings and possibly the GT not woken up for the memory accesses. Add a memory access reference around the test. Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/tests/xe_migrate.c')
-rw-r--r--drivers/gpu/drm/xe/tests/xe_migrate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c
index 0de17e90aba9..b7e4a126e8b7 100644
--- a/drivers/gpu/drm/xe/tests/xe_migrate.c
+++ b/drivers/gpu/drm/xe/tests/xe_migrate.c
@@ -366,7 +366,9 @@ static int migrate_test_run_device(struct xe_device *xe)
kunit_info(test, "Testing gt id %d.\n", id);
xe_vm_lock(m->eng->vm, &ww, 0, true);
+ xe_device_mem_access_get(xe);
xe_migrate_sanity_test(m, test);
+ xe_device_mem_access_put(xe);
xe_vm_unlock(m->eng->vm, &ww);
}