drm/i915/hdcp: Fix when the first read and write are retried
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 4 Nov 2024 03:59:51 +0000 (09:29 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 12 Nov 2024 04:59:16 +0000 (10:29 +0530)
commit44499559496c1dac43583f4387d38de1b612a69b
tree17af778ed98c0e4b0fc471259294c95ace87c4f6
parentecf2afc59c1ea3cdd3777effa7a422f60b9039c8
drm/i915/hdcp: Fix when the first read and write are retried

Make sure that the first read/write in hdcp2_authentication_key_exchange
are only retried when we have either DP/DPMST encoder connected,
since we do this to give docks and dp encoders some extra time to
get their HDCP DPCD registers ready only for DP/DPMST encoders as
this issue is only observed here no need to burden other encoders
with extra retries as this causes the HDMI connector to have some
other timing issue and fails HDCP authentication.

--v2
-Add intent of patch [Chaitanya]
-Add reasoning for loop [Jani]
-Make sure we forfiet the 50ms wait for non DP/DPMST encoders.

--v3
-Remove the is_dp_encoder check [Jani/Chaitanya]
-Make the commit message more clearer [Jani]

Fixes: 9d5a05f86d2f ("drm/i915/hdcp: Retry first read and writes to downstream")
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241104035951.517837-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c