OSDN Git Service

drm/i915/hdcp: Add DP HDCP2.2 timeout to read entire msg
authorAnshuman Gupta <anshuman.gupta@intel.com>
Wed, 24 Mar 2021 11:30:11 +0000 (17:00 +0530)
committerJani Nikula <jani.nikula@intel.com>
Wed, 31 Mar 2021 11:27:24 +0000 (14:27 +0300)
commit989cf9a93892409cf8e84c30c0faaa522ac83807
treea8c6eb7992c9e81a572415759e77eebd75b37d34
parent04b6603d13be541df73634a18218f34a37820285
drm/i915/hdcp: Add DP HDCP2.2 timeout to read entire msg

As documented in HDCP 2.2 DP Errata spec transmitter should abort the
authentication protocol in case transmitter has not received the
entire {AKE_Send_Cert, AKE_Send_H_prime, AKE_Send_Paring_Info} msg
within {110,7,5} miliseconds.

Adding above msg timeout values and aborting the HDCP authentication
in case it timedout to read entire msg.

https://www.digital-cp.com/sites/default/files/HDCP%202_2_DisplayPort_Errata_v3_0.pdf

v2:
- Removed redundant variable msg_can_timedout. [Ankit]

Cc: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210324113012.7564-2-anshuman.gupta@intel.com
drivers/gpu/drm/i915/display/intel_dp_hdcp.c
include/drm/drm_hdcp.h