[Intel-gfx] [PATCH] drm/i915: Skip pxp init if gt is wedged
Jani Nikula
jani.nikula at linux.intel.com
Fri Oct 27 07:13:54 UTC 2023
On Thu, 26 Oct 2023, Zhanjun Dong <zhanjun.dong at intel.com> wrote:
> gt wedged is fatal error, skip the pxp init on this situation.
More information is needed in the commit message. When do you encounter
this situation?
I'll note that nobody checks intel_pxp_init() return status, so this
silently skips PXP.
BR,
Jani.
>
> 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
--
Jani Nikula, Intel
More information about the Intel-gfx
mailing list