[Intel-gfx] [PATCH] drm/i915: Skip pxp init if gt is wedged
Zhanjun Dong
zhanjun.dong at intel.com
Thu Oct 26 21:54:44 UTC 2023
gt wedged is fatal error, skip the pxp init on this situation.
Signed-off-by: Zhanjun Dong <zhanjun.dong at intel.com>
---
drivers/gpu/drm/i915/pxp/intel_pxp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp.c b/drivers/gpu/drm/i915/pxp/intel_pxp.c
index dc327cf40b5a..923f233c91e1 100644
--- a/drivers/gpu/drm/i915/pxp/intel_pxp.c
+++ b/drivers/gpu/drm/i915/pxp/intel_pxp.c
@@ -212,6 +212,9 @@ int intel_pxp_init(struct drm_i915_private *i915)
if (!gt)
return -ENODEV;
+ if (intel_gt_is_wedged(gt))
+ return -ENODEV;
+
/*
* At this point, we will either enable full featured PXP capabilities
* including session and object management, or we will init the backend tee
--
2.34.1
More information about the Intel-gfx
mailing list