]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: force CP to DESIRED when removing display
authorDingchen (David) Zhang <dingchen.zhang@amd.com>
Mon, 31 May 2021 14:24:53 +0000 (10:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:23:55 +0000 (12:23 -0400)
commitff5e25e2455e38a3a8791831311eaec07078219a
tree0375f3cecebfbbb30b2f3a1b5bebc20b93f21f49
parentd43c33086785c772ba2b7f89341b705fa580234d
drm/amd/display: force CP to DESIRED when removing display

[WHY]
- Commit from userspace could cause link stream to disable and hdcp
auth to reset when the HDCP has already been enabled at the moment.
CP should fall back to DESIRED from ENABLED in such cases.
- This change was previously reverted due to a regression caused, which
has now been cleared.

[HOW]
In hdcp display removal, change CP to DESIRED if at the moment CP
is ENABLED before the auth reset and removal of linked list element.

Signed-off-by: Dingchen (David) Zhang <dingchen.zhang@amd.com>
Signed-off-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c