]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/vf: Start re-emission from first unsignaled job during VF migration
authorMatthew Brost <matthew.brost@intel.com>
Fri, 21 Nov 2025 15:27:50 +0000 (07:27 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 25 Nov 2025 18:19:52 +0000 (10:19 -0800)
commit00937fe1921ab346b6f6a4beaa5c38e14733caa3
treef49bceabb4d36268ae76161f63c7f5f6b0aeb9f0
parent2e02254ef5f0c07980b39fb4c334b0e612b8581e
drm/xe/vf: Start re-emission from first unsignaled job during VF migration

The LRC software ring tail is reset to the first unsignaled pending
job's head.

Fix the re-emission logic to begin submitting from the first unsignaled
job detected, rather than scanning all pending jobs, which can cause
imbalance.

v2:
 - Include missing local changes
v3:
 - s/skip_replay/restore_replay (Tomasz)

Fixes: c25c1010df88 ("drm/xe/vf: Replay GuC submission state on pause / unpause")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tomasz Lis <tomasz.lis@intel.com>
Link: https://patch.msgid.link/20251121152750.240557-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gpu_scheduler.h
drivers/gpu/drm/xe/xe_guc_submit.c
drivers/gpu/drm/xe/xe_sched_job_types.h