drm/i915: Skip pxp init if gt is wedged
authorZhanjun Dong <zhanjun.dong@intel.com>
Mon, 13 Nov 2023 22:49:53 +0000 (14:49 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 30 Nov 2023 00:06:34 +0000 (16:06 -0800)
commit698e19da2914a0021a088b2b5d101d1854862315
tree30d15f4b7be9a7a77951aa6e936ab18b3b09187b
parent0eec708ec3c2cb4076cd239605eb6d51e7c23e77
drm/i915: Skip pxp init if gt is wedged

The gt wedged could be triggered by missing guc firmware file, HW not
working, etc. Once triggered, it means all gt usage is dead, therefore we
can't enable pxp under this fatal error condition.

v2: Updated commit message.
v3: Updated return code check.

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231113224953.378534-1-zhanjun.dong@intel.com
drivers/gpu/drm/i915/i915_driver.c
drivers/gpu/drm/i915/pxp/intel_pxp.c