]> Gentwo Git Trees - 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)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 1 Dec 2025 09:16:11 +0000 (10:16 +0100)
commit3d98a7164da666634c76647abc94218fff3d4f92
tree893fe6c52096895da53ea5972e48d345ada9b396
parent14a8d83cbe7b929ee601fd2a48b4642cf80b39f4
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
(cherry picked from commit 00937fe1921ab346b6f6a4beaa5c38e14733caa3)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.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