Skip to content

Commit d39fb5c

Browse files
mbrost05rodrigovivi
authored andcommitted
drm/xe: Reduce LRC timestamp stuck message on VFs to notice
An LRC timestamp getting stuck is a somewhat normal occurrence. If a single VF submits a job that does not get timesliced, the LRC timestamp will not increment. Reduce the LRC timestamp stuck message on VFs to notice (same log level as job timeout) to avoid false CI bugs in tests where a VF submits a job that does not get timesliced. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/7032 Fixes: bb63e72 ("drm/xe: Avoid toggling schedule state to check LRC timestamp in TDR") Suggested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Stuart Summers <stuart.summers@intel.com> Link: https://patch.msgid.link/20260114184905.4189026-1-matthew.brost@intel.com (cherry picked from commit e89aacd) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent b2c6627 commit d39fb5c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

drivers/gpu/drm/xe/xe_guc_submit.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,9 +1317,14 @@ static bool check_timeout(struct xe_exec_queue *q, struct xe_sched_job *job)
13171317

13181318
ctx_timestamp = lower_32_bits(xe_lrc_timestamp(q->lrc[0]));
13191319
if (ctx_timestamp == job->sample_timestamp) {
1320-
xe_gt_warn(gt, "Check job timeout: seqno=%u, lrc_seqno=%u, guc_id=%d, timestamp stuck",
1321-
xe_sched_job_seqno(job), xe_sched_job_lrc_seqno(job),
1322-
q->guc->id);
1320+
if (IS_SRIOV_VF(gt_to_xe(gt)))
1321+
xe_gt_notice(gt, "Check job timeout: seqno=%u, lrc_seqno=%u, guc_id=%d, timestamp stuck",
1322+
xe_sched_job_seqno(job),
1323+
xe_sched_job_lrc_seqno(job), q->guc->id);
1324+
else
1325+
xe_gt_warn(gt, "Check job timeout: seqno=%u, lrc_seqno=%u, guc_id=%d, timestamp stuck",
1326+
xe_sched_job_seqno(job),
1327+
xe_sched_job_lrc_seqno(job), q->guc->id);
13231328

13241329
return xe_sched_invalidate_job(job, 0);
13251330
}

0 commit comments

Comments
 (0)