]> git.dujemihanovic.xyz Git - linux.git/commit
drm/xe: Convert gt_reset from mem_access to xe_pm_runtime
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 22 Feb 2024 16:39:36 +0000 (11:39 -0500)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 26 Feb 2024 14:06:45 +0000 (09:06 -0500)
commit23be0e6e8316aaab6acfe15f035960914f820a2a
treef6c1dffe75a70b730b03bde4c8fca41130c73a0a
parent5d118681d341fbf470d06bf1938d996d3bed6a1d
drm/xe: Convert gt_reset from mem_access to xe_pm_runtime

We need to ensure that device is in D0 on any kind of GT reset.
We are likely already protected by outer bounds like exec,
but if exec/sched ref gets dropped on a hang, we might transition
to D3 before we are able to perform the gt_reset and recover.

Suggested-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240222163937.138342-13-rodrigo.vivi@intel.com
drivers/gpu/drm/xe/xe_gt.c