]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/hdcp: Take force_hdcp14 into account during check_link
authorSuraj Kandpal <suraj.kandpal@intel.com>
Wed, 25 Feb 2026 06:50:45 +0000 (12:20 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Fri, 13 Mar 2026 05:13:04 +0000 (10:43 +0530)
During intel_hdcp_check_link phase we need to take into account
if we are currently forcing HDCP 1.4 or not. This is because
we check for HDCP 2.x Link first and only if HDCP 2.x is not being
used check for HDCP 1.4. With force_hdcp14 in picture we should not
be going into intel_hdcp2_check_link because of which we may end
up trying to disable HDCP2.x even if HDCP 1.4 was enabled causing
a lot of issues while IGT tests this.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patch.msgid.link/20260225065045.3040787-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c

index 116d2e0af878e5e6d47bd80a535ae035c757592b..892eab4b6f9259a89635638a663b8b3044a327d7 100644 (file)
@@ -2231,7 +2231,7 @@ static void intel_hdcp_check_work(struct work_struct *work)
        if (drm_connector_is_unregistered(&connector->base))
                return;
 
-       if (!intel_hdcp2_check_link(connector))
+       if (!hdcp->force_hdcp14 && !intel_hdcp2_check_link(connector))
                queue_delayed_work(display->wq.unordered, &hdcp->check_work,
                                   DRM_HDCP2_CHECK_PERIOD_MS);
        else if (!intel_hdcp_check_link(connector))