mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/xe/lrc: Use 64 bit ctx timestamp in the LRC snapshot
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
This commit is contained in:
parent
71477b7e70
commit
404734f1fe
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ struct xe_lrc_snapshot {
|
|||
} tail;
|
||||
u32 start_seqno;
|
||||
u32 seqno;
|
||||
u32 ctx_timestamp;
|
||||
u64 ctx_timestamp;
|
||||
u32 ctx_job_timestamp;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user