Commit 93990291 authored by Matthew Auld's avatar Matthew Auld Committed by Rodrigo Vivi

drm/xe/selftests: hold rpm for ccs_test_migrate()

The GPU job will keep the device awake, however assumption here is that
caller of xe_migrate_clear() is also holding mem_access.ref otherwise we
hit the asserts in xe_sa_bo_flush_write() prior to the job construction.
Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 6a0612ae
......@@ -158,9 +158,13 @@ static int ccs_test_run_device(struct xe_device *xe)
return 0;
}
xe_device_mem_access_get(xe);
for_each_gt(gt, xe, id)
ccs_test_run_gt(xe, gt, test);
xe_device_mem_access_put(xe);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment