Commit 4801a515 authored by Suraj Kandpal's avatar Suraj Kandpal Committed by Ankit Nautiyal
Browse files

drm/i915/hdcp: Add a debug statement at hdcp2 capability check



Add a debug statement at hdcp2 capability check which indicates if
GSC CS is causing hdcp2 incapability

--v2
-correcttypo in commit header

--v3
-correct the other typo in commit header [Jani]

Signed-off-by: default avatarSuraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: default avatarChaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Signed-off-by: default avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230621085453.1996166-1-suraj.kandpal@intel.com
parent 86a12442
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -177,9 +177,12 @@ bool intel_hdcp2_capable(struct intel_connector *connector)
		struct intel_gt *gt = i915->media_gt;
		struct intel_gsc_uc *gsc = gt ? &gt->uc.gsc : NULL;

		if (!gsc || !intel_uc_fw_is_running(&gsc->fw))
		if (!gsc || !intel_uc_fw_is_running(&gsc->fw)) {
			drm_dbg_kms(&i915->drm,
				    "GSC components required for HDCP2.2 are not ready\n");
			return false;
		}
	}

	/* MEI/GSC interface is solid depending on which is used */
	mutex_lock(&i915->display.hdcp.hdcp_mutex);