]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Update CP property based on HW query
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Mon, 10 Jun 2019 20:06:05 +0000 (16:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:10:58 +0000 (09:10 -0500)
commit24809bfea396bea373baf77ebbe47354bf8f8cc8
treea3b6ad6d717b5c707b9a71ce448e4775a778c0c3
parent081d855e02760d6649f754b86d8b92e2468fd80b
drm/amd/display: Update CP property based on HW query

[Why]
We need to use HW state to set content protection to ENABLED.
This way we know that the link is encrypted from the HW side

[How]
Create a workqueue that queries the HW every ~2seconds, and sets it to
ENABLED or DESIRED based on the result from the hardware

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