[Intel-gfx] [PATCH] drm/i915/pxp: don't start pxp without mei_pxp bind
Juston Li
justonli at google.com
Tue Aug 9 22:57:00 UTC 2022
pxp will not start correctly until after mei_pxp bind completes and
intel_pxp_init_hw() is called.
Signed-off-by: Juston Li <justonli at google.com>
---
drivers/gpu/drm/i915/pxp/intel_pxp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp.c b/drivers/gpu/drm/i915/pxp/intel_pxp.c
index 15311eaed848..3ef9e4e1870b 100644
--- a/drivers/gpu/drm/i915/pxp/intel_pxp.c
+++ b/drivers/gpu/drm/i915/pxp/intel_pxp.c
@@ -184,7 +184,7 @@ int intel_pxp_start(struct intel_pxp *pxp)
{
int ret = 0;
- if (!intel_pxp_is_enabled(pxp))
+ if (!intel_pxp_is_enabled(pxp) || !pxp->pxp_component_added)
return -ENODEV;
mutex_lock(&pxp->arb_mutex);
--
2.37.1.559.g78731f0fdb-goog
More information about the Intel-gfx
mailing list