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)
committerTvrtko Ursulin <tursulin@ursulin.net>
Tue, 19 Nov 2024 08:11:11 +0000 (08:11 +0000)
commit376a33c4a0d8344bb575e1a6eeb748ee4d4675d3
treeaf6fe7f7e4836e21006d617e072f0f307e7b5a8e
parenta163b895077861598be48c1cf7f4a88413c28b22
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
(cherry picked from commit 44499559496c1dac43583f4387d38de1b612a69b)
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
drivers/gpu/drm/i915/display/intel_hdcp.c