drm/i915/hdcp: Mandate (seq_num_V==0) at first RecvId msg
authorAnshuman Gupta <anshuman.gupta@intel.com>
Thu, 20 Feb 2020 12:32:16 +0000 (18:02 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Wed, 4 Mar 2020 01:28:36 +0000 (06:58 +0530)
commitbeb7712923e57e36b4db7d00cc70968065a5b265
tree43c729e2829ae2e7334276a28bb035a13282fcce
parent003d8b9143a69f0d6b08cc85893eabdf95b231e8
drm/i915/hdcp: Mandate (seq_num_V==0) at first RecvId msg

HDCP Repeater initializes seq_num_V to 0 at the beginning of
hdcp Session i.e. after AKE_init received, refer
HDCP 2.2 Spec HDMI PAGE 19, DP PAGE 20.

HDCP 2.2 Comp specs 1B-06 test verifies that whether DUT
considers failure of authentication if the repeater provides a
non-zero value in seq_num_V in the first,
RepeaterAuth_Send_ReceiverID_List message.

Make sure that HDCP repeater initializes seq_num_V to zero at
beginning of session i.e. after AKE_Init, fail the Auth if
there is non zero seq_num_V.

v2:
- Used existing hdcp2_encrypted flag instead of
  declaring new flag. [Ram]

Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200220123217.23635-2-anshuman.gupta@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c