Skip to content

Commit 1db3594

Browse files
committed
drm/xe: Capture GuC CT snapshot when stopped
It is useful capture the GuC CT snapshot if the GuC CT has been forcefully put into the stopped state. Enable snapshot capture when in this state. Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240405211632.223568-3-matthew.brost@intel.com
1 parent 0417a5f commit 1db3594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_guc_ct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ struct xe_guc_ct_snapshot *xe_guc_ct_snapshot_capture(struct xe_guc_ct *ct,
14031403
return NULL;
14041404
}
14051405

1406-
if (xe_guc_ct_enabled(ct)) {
1406+
if (xe_guc_ct_enabled(ct) || ct->state == XE_GUC_CT_STATE_STOPPED) {
14071407
snapshot->ct_enabled = true;
14081408
snapshot->g2h_outstanding = READ_ONCE(ct->g2h_outstanding);
14091409
guc_ctb_snapshot_capture(xe, &ct->ctbs.h2g,

0 commit comments

Comments
 (0)