]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Refactor HDCP to handle multiple displays per link
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Wed, 28 Aug 2019 19:10:03 +0000 (15:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 15:12:53 +0000 (10:12 -0500)
commitb1abe5586ffcb15cc51668bd1a0f97adfbfb0acd
treeb791db4ca7602fb166f11e9d0f3a5ebc7bddea9f
parent53e108aa9916dbbdebd3d94ce63a6928fda09899
drm/amd/display: Refactor HDCP to handle multiple displays per link

[Why]
We need to do this to support HDCP over MST

Currently we save a display per link, in a MST case we need to save
multiple displays per link.

[How]
We can create an array per link to cache the displays, but it
complicates the design. Instead we can use the module to cache the
displays.

Now we will always add all the displays to the module, but we use the
adjustment flag to disable hdcp on all of them before they are added.

When we want to enable hdcp we just query the display(cache), remove
it then add it back with different adjustments. Its the similar for
disable.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.h