drm/amd/display: Fix HW/SW state mismatch
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Fri, 6 Dec 2019 18:16:08 +0000 (13:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Feb 2020 15:37:51 +0000 (10:37 -0500)
commita30a8c2f884c2835383cc5cce134fafbcaa62c1f
tree01de762ec2385b8bb9c2995f009a391e1e2a94b9
parent47eed65178e8fa626097648eb90cb6b31952efbc
drm/amd/display: Fix HW/SW state mismatch

[Why]
When we disable a connector we don't explicitly remove it from the module so the
display is still cached(SW) in the hdcp_module.

SST: no issues because we can only have 1 display per link

MST: We have x displays per link, now if we disable 1 we don't remove it from the
module so the module has x display cached(SW).

If we try to enable HDCP, psp verification will fail because we are reporting x
displays while the HW only has x-1 display enabled

[How]
Check the callback for when we disable stream and call remove display.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c