mbox series

[0/3] drm/i915/hdcp: Additional conditions to enable hdcp

Message ID 20231026121139.987437-1-suraj.kandpal@intel.com (mailing list archive)
Headers show
Series drm/i915/hdcp: Additional conditions to enable hdcp | expand

Message

Kandpal, Suraj Oct. 26, 2023, 12:11 p.m. UTC
We are seeing a issue when we close the lid of a laptop or dock a
monitor hdcp content is not being reenabled automatically this is
because when we dock a monitor we end up with a enable and
disable connector cycle but if hdcp content is running we get the
userspace in enabled state and driver maintaining a undesired
state which causes the content to stop playing and we only enabe
hdcp if the userspace state in desired.
This first and second patch refactors the code while the third one adds the
new conditions to enable hdcp.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>

Suraj Kandpal (3):
  drm/i915/hdcp: Rename HCDP 1.4 enablement function
  drm/i915/hdcp: Convert intel_hdcp_enable to a blanket function
  drm/i915/hdcp: Add more conditions to enable hdcp

 drivers/gpu/drm/i915/display/intel_ddi.c    |  5 +--
 drivers/gpu/drm/i915/display/intel_dp_mst.c |  5 +--
 drivers/gpu/drm/i915/display/intel_hdcp.c   | 37 ++++++++++++++++-----
 drivers/gpu/drm/i915/display/intel_hdcp.h   |  8 ++---
 4 files changed, 35 insertions(+), 20 deletions(-)

Comments

Ankit Nautiyal Oct. 31, 2023, 11:04 a.m. UTC | #1
On 10/26/2023 5:41 PM, Suraj Kandpal wrote:
> We are seeing a issue when we close the lid of a laptop or dock a
> monitor hdcp content is not being reenabled automatically this is
> because when we dock a monitor we end up with a enable and
> disable connector cycle but if hdcp content is running we get the
> userspace in enabled state and driver maintaining a undesired
> state which causes the content to stop playing and we only enabe
> hdcp if the userspace state in desired.
> This first and second patch refactors the code while the third one adds the
> new conditions to enable hdcp.
>
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
>
> Suraj Kandpal (3):
>    drm/i915/hdcp: Rename HCDP 1.4 enablement function
>    drm/i915/hdcp: Convert intel_hdcp_enable to a blanket function
>    drm/i915/hdcp: Add more conditions to enable hdcp

Series pushed to drm-intel-next. Thanks for the patches and reviews.

Regards,

Ankit


>
>   drivers/gpu/drm/i915/display/intel_ddi.c    |  5 +--
>   drivers/gpu/drm/i915/display/intel_dp_mst.c |  5 +--
>   drivers/gpu/drm/i915/display/intel_hdcp.c   | 37 ++++++++++++++++-----
>   drivers/gpu/drm/i915/display/intel_hdcp.h   |  8 ++---
>   4 files changed, 35 insertions(+), 20 deletions(-)
>