]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Wedge the entire device
authorMatthew Brost <matthew.brost@intel.com>
Tue, 16 Jul 2024 06:39:01 +0000 (23:39 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 17 Jul 2024 18:58:26 +0000 (11:58 -0700)
commit7dbe8af13c189f5937e87e9fb924d5bbc49e6f71
tree0b0f268d7338f34adc9af8d4dda671a13dbf616a
parente02cea83d32d3a616c9ef8b6b50a83444a6bbcbf
drm/xe: Wedge the entire device

Wedge the entire device, not just GT which may have triggered the wedge.
To implement this, cleanup the layering so xe_device_declare_wedged()
calls into the lower layers (GT) to ensure entire device is wedged.

While we are here, also signal any pending GT TLB invalidations upon
wedging device.

Lastly, short circuit reset wait if device is wedged.

v2:
 - Short circuit reset wait if device is wedged (Local testing)

Fixes: 8ed9aaae39f3 ("drm/xe: Force wedged state and block GT reset upon any GPU hang")
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240716063902.1390130-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_gt.h
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc.h
drivers/gpu/drm/xe/xe_guc_submit.c
drivers/gpu/drm/xe/xe_guc_submit.h
drivers/gpu/drm/xe/xe_uc.c
drivers/gpu/drm/xe/xe_uc.h