drm/xe/selftests: hold rpm for ccs_test_migrate()
authorMatthew Auld <matthew.auld@intel.com>
Wed, 12 Jul 2023 15:27:21 +0000 (16:27 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:37 +0000 (11:37 -0500)
commit939902913a25a0feaa9ca34969dd7e5b43fc2502
tree143727c36e51f07857424001f4b5f724b04fcb62
parent6a0612aeabcce6c951788384b94d503b99eefaca
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 <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/tests/xe_bo.c