diff options
author | Matthew Auld <[email protected]> | 2023-07-12 16:27:21 +0100 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:37:37 -0500 |
commit | 939902913a25a0feaa9ca34969dd7e5b43fc2502 (patch) | |
tree | 143727c36e51f07857424001f4b5f724b04fcb62 | |
parent | 6a0612aeabcce6c951788384b94d503b99eefaca (diff) |
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: Matthew Auld <[email protected]>
Cc: Matthew Brost <[email protected]>
Reviewed-by: Nirmoy Das <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r-- | drivers/gpu/drm/xe/tests/xe_bo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_bo.c b/drivers/gpu/drm/xe/tests/xe_bo.c index a63f7a447ca4..16e92400e510 100644 --- a/drivers/gpu/drm/xe/tests/xe_bo.c +++ b/drivers/gpu/drm/xe/tests/xe_bo.c @@ -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; } |