summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_uc.h
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2024-07-15 23:39:01 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2024-07-18 10:25:33 -0400
commitc9474b726b932b5d555effd9ed0ae19f4da2367c (patch)
tree4d10193ac4c7ac6d6cebc1959a0e77116e6e8bf9 /drivers/gpu/drm/xe/xe_uc.h
parentbf07ca963d4fd11c88a9d4b058f2bd62e8d46a98 (diff)
downloadlwn-c9474b726b932b5d555effd9ed0ae19f4da2367c.tar.gz
lwn-c9474b726b932b5d555effd9ed0ae19f4da2367c.zip
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 (cherry picked from commit 7dbe8af13c189f5937e87e9fb924d5bbc49e6f71) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_uc.h')
-rw-r--r--drivers/gpu/drm/xe/xe_uc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_uc.h b/drivers/gpu/drm/xe/xe_uc.h
index 11856f24e6f9..506517c11333 100644
--- a/drivers/gpu/drm/xe/xe_uc.h
+++ b/drivers/gpu/drm/xe/xe_uc.h
@@ -21,5 +21,6 @@ int xe_uc_start(struct xe_uc *uc);
int xe_uc_suspend(struct xe_uc *uc);
int xe_uc_sanitize_reset(struct xe_uc *uc);
void xe_uc_remove(struct xe_uc *uc);
+void xe_uc_declare_wedged(struct xe_uc *uc);
#endif