[Intel-gfx] [PATCH] drm/i915/hdcp: Check if media_gt exists

Suraj Kandpal suraj.kandpal at intel.com
Tue May 2 08:36:52 UTC 2023


Check if media_gt exits if we are using gsc cs

Cc: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal at intel.com>
---
 drivers/gpu/drm/i915/display/intel_hdcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_hdcp.c b/drivers/gpu/drm/i915/display/intel_hdcp.c
index 650232c4892b..f3956eca4ec4 100644
--- a/drivers/gpu/drm/i915/display/intel_hdcp.c
+++ b/drivers/gpu/drm/i915/display/intel_hdcp.c
@@ -214,7 +214,7 @@ bool intel_hdcp2_capable(struct intel_connector *connector)
 
 	/* If MTL+ make sure gsc is loaded and proxy is setup */
 	if (intel_hdcp_gsc_cs_required(dev_priv))
-		if (!intel_uc_fw_is_running(&gsc->fw))
+		if (!gt || !intel_uc_fw_is_running(&gsc->fw))
 			return false;
 
 	/* MEI/GSC interface is solid depending on which is used */
-- 
2.25.1



More information about the Intel-gfx mailing list