]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/guc: Cancel ongoing H2G requests when stopping CT
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 9 Jul 2025 17:40:38 +0000 (19:40 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 10 Jul 2025 19:46:29 +0000 (21:46 +0200)
commit94de94d24ea8cf567ec7254a723c3192c72c2ca6
tree1729901585854a6e2e16fe727e0df210ab87f561
parent4ecdcf9caf519fbab1aa01b431339387fed00fb8
drm/xe/guc: Cancel ongoing H2G requests when stopping CT

Once we have started a GT reset sequence, which includes stopping
GuC CTB communication, we should also cancel all ongoing H2G send-
recv requests, as either GuC is already dead, or due to imminent
reset GuC will not be able to reply, or due to internal cleanup
we will lose pending fences. With this we will report dedicated
-ECANCELED error instead of misleading -ETIME.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Acked-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250709174038.1876-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_ct.c