aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Vivi <[email protected]>2024-04-17 16:39:51 -0400
committerRodrigo Vivi <[email protected]>2024-04-18 08:31:40 -0400
commite1feade0776ee6bee1fc2d987a4b40bc0e47cf66 (patch)
treef04a1dd02bcafe34ac012b8f2eb8b79be5a8d1f5
parent16b57c90bb81d7a6a83bfb0152a6425570644e07 (diff)
drm/xe: Ensure all the inner access are using the _noresume variant
At this point mem_access references should be only used as inner points of the execution and a get with synchronous resume previously called at an outer point. So, before killing mem_acces in favor of direct accsess, let's ensure that we first convert them towards the new _noresume variant that will WARN us if no inner caller happened. Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r--drivers/gpu/drm/xe/xe_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 47a4bb0b0a7b..a7c4e4f73200 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -749,7 +749,7 @@ void xe_device_mem_access_get(struct xe_device *xe)
if (xe_pm_read_callback_task(xe) == current)
return;
- xe_pm_runtime_get(xe);
+ xe_pm_runtime_get_noresume(xe);
ref = atomic_inc_return(&xe->mem_access.ref);
xe_assert(xe, ref != S32_MAX);