]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: Track pending-enable source in submission state
authorMatthew Brost <matthew.brost@intel.com>
Wed, 8 Oct 2025 21:45:01 +0000 (14:45 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 9 Oct 2025 10:22:18 +0000 (03:22 -0700)
commit7e1fe102c8517a402327c37685357fbe279b3278
treed3bfe1c4466bb5d18ee12e97136ab52e2040293a
parent26cd498e005d7a4fcf0929a0fe6dbc51b6862b25
drm/xe/guc: Track pending-enable source in submission state

Add explicit tracking in the GuC submission state to record the source
of a pending enable (TDR vs. queue resume path vs. submission).
Disambiguating the origin lets the GuC submission state machine apply
the correct recovery/replay behavior.

This helps VF restore: when the device comes back, the state machine knows
whether the pending enable stems from timeout recovery, from a queue resume
sequence, or submission and can gate sequencing and fixups accordingly.

v4:
 - Clarify commit message (Tomasz)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tomasz Lis <tomasz.lis@intel.com>
Link: https://lore.kernel.org/r/20251008214532.3442967-4-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c