]> www.infradead.org Git - users/hch/misc.git/commit
drm/xe/debugfs: Get a runtime_pm reference when setting wedged mode
authorFrancois Dugast <francois.dugast@intel.com>
Fri, 3 May 2024 08:24:50 +0000 (10:24 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 3 May 2024 12:54:32 +0000 (08:54 -0400)
commit786754124189e3f67fc52e8fe08703e3f50b1894
tree880828ee8526e584496bdde324c5b0e241e665f5
parent233e8d1de827b58ec92c60b86a3b0f5bdf7c3892
drm/xe/debugfs: Get a runtime_pm reference when setting wedged mode

This function is another entry point where it must be ensured that
the device resumes before operating on the GuC, so grab a runtime_pm
reference. This fixes inner xe_pm_runtime_get_noresume calls which
were previously failing.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240503082450.268335-1-francois.dugast@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_debugfs.c