Patch "drm/i915/hdcp: Use correct cp_irq_count" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/i915/hdcp: Use correct cp_irq_count

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-i915-hdcp-use-correct-cp_irq_count.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5803aff837622f3bed7e77a0487af65cc88bdd38
Author: Suraj Kandpal <suraj.kandpal@xxxxxxxxx>
Date:   Fri Aug 9 17:11:28 2024 +0530

    drm/i915/hdcp: Use correct cp_irq_count
    
    [ Upstream commit 5d41eeb6725e3e24853629e5d7635e4bc45d736e ]
    
    We are checking cp_irq_count from the wrong hdcp structure which
    ends up giving timed out errors. We only increment the cp_irq_count
    of the primary connector's hdcp structure but here in case of
    multidisplay setup we end up checking the secondary connector's hdcp
    structure, which will not have its cp_irq_count incremented. This leads
    to a timed out at CP_IRQ error even though a CP_IRQ was raised. Extract
    it from the correct intel_hdcp structure.
    
    --v2
    -Explain why it was the wrong hdcp structure [Jani]
    
    Fixes: 8c9e4f68b861 ("drm/i915/hdcp: Use per-device debugs")
    Signed-off-by: Suraj Kandpal <suraj.kandpal@xxxxxxxxx>
    Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240809114127.3940699-2-suraj.kandpal@xxxxxxxxx
    (cherry picked from commit dd925902634def895690426bf10e0a8b3e56f56d)
    Signed-off-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
index 92b03073acdd5..555428606e127 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
@@ -39,7 +39,9 @@ static u32 transcoder_to_stream_enc_status(enum transcoder cpu_transcoder)
 static void intel_dp_hdcp_wait_for_cp_irq(struct intel_connector *connector,
 					  int timeout)
 {
-	struct intel_hdcp *hdcp = &connector->hdcp;
+	struct intel_digital_port *dig_port = intel_attached_dig_port(connector);
+	struct intel_dp *dp = &dig_port->dp;
+	struct intel_hdcp *hdcp = &dp->attached_connector->hdcp;
 	long ret;
 
 #define C (hdcp->cp_irq_count_cached != atomic_read(&hdcp->cp_irq_count))




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux