projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
348769d
)
drm/xe: Grab mem_access when disabling C6 on skip_guc_pc platforms
author
Matt Roper
<matthew.d.roper@intel.com>
Fri, 26 Jan 2024 22:06:14 +0000
(14:06 -0800)
committer
Matt Roper
<matthew.d.roper@intel.com>
Mon, 29 Jan 2024 16:55:05 +0000
(08:55 -0800)
If skip_guc_pc is set for a platform, C6 is disabled directly without
acquiring a mem_access reference, triggering an assertion inside
xe_gt_idle_disable_c6.
Fixes:
975e4a3795d4
("drm/xe: Manually setup C6 when skip_guc_pc is set")
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240126220613.865939-2-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_guc_pc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/xe/xe_guc_pc.c
b/drivers/gpu/drm/xe/xe_guc_pc.c
index f71085228cb33992940622dca2992f4e1ae9fa62..d91702592520af54eea5f8ca4bd56b67719531be 100644
(file)
--- a/
drivers/gpu/drm/xe/xe_guc_pc.c
+++ b/
drivers/gpu/drm/xe/xe_guc_pc.c
@@
-963,7
+963,9
@@
void xe_guc_pc_fini(struct xe_guc_pc *pc)
struct xe_device *xe = pc_to_xe(pc);
if (xe->info.skip_guc_pc) {
+ xe_device_mem_access_get(xe);
xe_gt_idle_disable_c6(pc_to_gt(pc));
+ xe_device_mem_access_put(xe);
return;
}