Skip to content

Commit 6d20962

Browse files
mattropeThomas Hellström
authored andcommitted
drm/xe: Grab mem_access when disabling C6 on skip_guc_pc platforms
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: 975e4a3 ("drm/xe: Manually setup C6 when skip_guc_pc is set") Cc: Rodrigo Vivi <[email protected]> Cc: Vinay Belgaumkar <[email protected]> Signed-off-by: Matt Roper <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 9f5971b) Signed-off-by: Thomas Hellström <[email protected]>
1 parent f9c15a6 commit 6d20962

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/xe/xe_guc_pc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,9 @@ void xe_guc_pc_fini(struct xe_guc_pc *pc)
963963
struct xe_device *xe = pc_to_xe(pc);
964964

965965
if (xe->info.skip_guc_pc) {
966+
xe_device_mem_access_get(xe);
966967
xe_gt_idle_disable_c6(pc_to_gt(pc));
968+
xe_device_mem_access_put(xe);
967969
return;
968970
}
969971

0 commit comments

Comments
 (0)