drm/xe/ct: update g2h outstanding for CTB capture
authorMatthew Auld <matthew.auld@intel.com>
Mon, 10 Jul 2023 09:40:48 +0000 (10:40 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:35:23 +0000 (11:35 -0500)
Looks to always to be zero when inspecting the CTB dump.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_ct.c

index acf488b00b6617535e7199e0d1e425d92f5f6974..0b086d17c083c6febda97cc24a3e8d90475feb2f 100644 (file)
@@ -1219,6 +1219,7 @@ struct xe_guc_ct_snapshot *xe_guc_ct_snapshot_capture(struct xe_guc_ct *ct,
 
        if (ct->enabled) {
                snapshot->ct_enabled = true;
+               snapshot->g2h_outstanding = READ_ONCE(ct->g2h_outstanding);
                guc_ctb_snapshot_capture(xe, &ct->ctbs.h2g,
                                         &snapshot->h2g, atomic);
                guc_ctb_snapshot_capture(xe, &ct->ctbs.g2h,