Skip to content

Commit e1feade

Browse files
committed
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]>
1 parent 16b57c9 commit e1feade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ void xe_device_mem_access_get(struct xe_device *xe)
749749
if (xe_pm_read_callback_task(xe) == current)
750750
return;
751751

752-
xe_pm_runtime_get(xe);
752+
xe_pm_runtime_get_noresume(xe);
753753
ref = atomic_inc_return(&xe->mem_access.ref);
754754

755755
xe_assert(xe, ref != S32_MAX);

0 commit comments

Comments
 (0)