summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_uc.c
diff options
context:
space:
mode:
authorRiana Tauro <riana.tauro@intel.com>2023-07-17 12:59:00 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:37:31 +0300
commit1737785ae5313e4941181025858fc90ed4acd314 (patch)
treeb8299718b1d9ef742f17db48c9fbc8c9abce11e2 /drivers/gpu/drm/xe/xe_uc.c
parent3e8e7ee6a375217c4f6a9a96d50e3ae711832d37 (diff)
downloadlinux-1737785ae5313e4941181025858fc90ed4acd314.tar.xz
drm/xe: remove gucrc disable from suspend path
Currently GuCRC is disabled in suspend path for xe. Rc6 is a prerequiste to enable s0ix and should not be disabled for s2idle. There is no requirement to disable GuCRC for S3+. Remove it from xe_guc_pc_stop, thus removing from suspend path. Retain the call in other places where xe_guc_pc_stop is called. v2: add description and return statement to kernel-doc (Rodrigo) v3: update commit message (Rodrigo) v4: add mem_access_get to the gucrc disable function Signed-off-by: Riana Tauro <riana.tauro@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_uc.c')
-rw-r--r--drivers/gpu/drm/xe/xe_uc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
index e244d27b55d5..addd6f2681b9 100644
--- a/drivers/gpu/drm/xe/xe_uc.c
+++ b/drivers/gpu/drm/xe/xe_uc.c
@@ -176,6 +176,11 @@ int xe_uc_reset_prepare(struct xe_uc *uc)
return xe_guc_reset_prepare(&uc->guc);
}
+void xe_uc_gucrc_disable(struct xe_uc *uc)
+{
+ XE_WARN_ON(xe_guc_pc_gucrc_disable(&uc->guc.pc));
+}
+
void xe_uc_stop_prepare(struct xe_uc *uc)
{
xe_guc_stop_prepare(&uc->guc);