drm/amd/display: Fix unstable HPCP compliance on Chrome Barcelo
authorQingqing Zhuo <qingqing.zhuo@amd.com>
Fri, 27 Aug 2021 10:58:38 +0000 (06:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 19:57:10 +0000 (15:57 -0400)
commit0d9a947b5cbb80780ca4202ea82568e07f0fc720
tree9a412eceadb9bbd573fac723ffa9b2246816cbf7
parent68e1634d5fdaee73fc4e628905a2be715df744db
drm/amd/display: Fix unstable HPCP compliance on Chrome Barcelo

[Why]
Intermittently, there presents two occurrences of 0 stream
commits in a single HPD event. Current HDCP sequence does
not consider such scenerio, and will thus disable HDCP.

[How]
Add condition check to include stream remove and re-enable
case for HDCP enable.

Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
Acked-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Qingqing Zhuo <qingqing.zhuo@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.c