]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/hdcp: Update CP as per the kernel internal state
authorAnshuman Gupta <anshuman.gupta@intel.com>
Tue, 30 Jun 2020 08:20:48 +0000 (13:50 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Wed, 8 Jul 2020 09:44:18 +0000 (15:14 +0530)
commitb525bb73617f6b4bbd75284c6cbd5ab47dacdb45
tree30a4040dac0d6b0498c04139c8a1794059a352ce
parentf08f89ece3ca01efeea9356859bfed935de9b474
drm/i915/hdcp: Update CP as per the kernel internal state

Content Protection property should be updated as per the kernel
internal state. Let's say if Content protection is disabled
by userspace, CP property should be set to UNDESIRED so that
reauthentication will not happen until userspace request it again,
but when kernel disables the HDCP due to any DDI disabling sequences
like modeset/DPMS operation, kernel should set the property to
DESIRED, so that when opportunity arises, kernel will start the
HDCP authentication on its own.

Somewhere in the line, state machine to set content protection to
DESIRED from kernel was broken and IGT coverage was missing for it.
This patch fixes it.

v2:
- Fixing hdcp CP state in connector atomic check function
  intel_hdcp_atomic_check(). [Maarten]
  This will require to check hdcp->value in intel_hdcp_update_pipe()
  in order to avoid enabling hdcp, if it was already enabled.

v3:
- Rebased.

Cc: Ramalingam C <ramalingam.c@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/350962/?series=72664&rev=2
Link: https://patchwork.freedesktop.org/patch/359396/?series=72251&rev=3
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200630082048.22308-1-anshuman.gupta@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c