]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/lrc: Use 64 bit ctx timestamp in the LRC snapshot
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Thu, 7 May 2026 16:20:18 +0000 (09:20 -0700)
committerUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Fri, 8 May 2026 20:48:38 +0000 (13:48 -0700)
Use the 64 bit value when available for the context timestamp in the LRC
snapshot.

Suggested-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Link: https://patch.msgid.link/20260507162016.3888309-14-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/xe/xe_lrc.c
drivers/gpu/drm/xe/xe_lrc.h

index fdfe2ed5f68355218bfb6c9b615c2a331c3320d3..570ff9f55849f704f525a621f712a67db92b31a2 100644 (file)
@@ -2462,7 +2462,7 @@ struct xe_lrc_snapshot *xe_lrc_snapshot_capture(struct xe_lrc *lrc)
        snapshot->replay_offset = 0;
        snapshot->replay_size = lrc->replay_size;
        snapshot->lrc_snapshot = NULL;
-       snapshot->ctx_timestamp = lower_32_bits(xe_lrc_ctx_timestamp(lrc));
+       snapshot->ctx_timestamp = xe_lrc_ctx_timestamp(lrc);
        snapshot->ctx_job_timestamp = xe_lrc_ctx_job_timestamp(lrc);
        return snapshot;
 }
@@ -2515,7 +2515,7 @@ void xe_lrc_snapshot_print(struct xe_lrc_snapshot *snapshot, struct drm_printer
        drm_printf(p, "\tRing start: (memory) 0x%08x\n", snapshot->start);
        drm_printf(p, "\tStart seqno: (memory) %d\n", snapshot->start_seqno);
        drm_printf(p, "\tSeqno: (memory) %d\n", snapshot->seqno);
-       drm_printf(p, "\tTimestamp: 0x%08x\n", snapshot->ctx_timestamp);
+       drm_printf(p, "\tTimestamp: 0x%016llx\n", snapshot->ctx_timestamp);
        drm_printf(p, "\tJob Timestamp: 0x%08x\n", snapshot->ctx_job_timestamp);
 
        if (!snapshot->lrc_snapshot)
index 5440663183f6d7a3b48e17499a850e80afa9e8b4..bef7af9a578bfe8b09f3537ec586f083d66e4733 100644 (file)
@@ -37,7 +37,7 @@ struct xe_lrc_snapshot {
        } tail;
        u32 start_seqno;
        u32 seqno;
-       u32 ctx_timestamp;
+       u64 ctx_timestamp;
        u32 ctx_job_timestamp;
 };