drm/xe/selftests: hold rpm for evict_test_run_device()
authorMatthew Auld <matthew.auld@intel.com>
Wed, 12 Jul 2023 16:28:39 +0000 (17:28 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:36 +0000 (11:37 -0500)
commit6a0612aeabcce6c951788384b94d503b99eefaca
treed597a6ff25bf99ec9beade7d737f122d7ace7ced
parente3d2309250d49e4558b0abe95924b18f74995607
drm/xe/selftests: hold rpm for evict_test_run_device()

We are calling fairly low level things like xe_bo_restore_kernel() which
expect caller to be holding mem_access.ref. Since we are doing stuff
like evict_all we likely don't want to race with rpm suspend, since that
potentially wants to do the same thing, so just wrap the whole test.

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