]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: delay 100ms before restart after failing to read CP_IRQ
authorWenjing Liu <wenjing.liu@amd.com>
Mon, 17 May 2021 19:54:19 +0000 (15:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:15:54 +0000 (12:15 -0400)
commitb4ec3b5ac238e81fe67f518b41bc6ecd94e199aa
tree4550ee21d620fb96a23fa7f0757a056e0bdbf9a0
parent1a274ed10de0d3e98c767c6094b940f258609578
drm/amd/display: delay 100ms before restart after failing to read CP_IRQ

[why]
Some DPRX will issue CP_IRQ when user disconnects a display
that has been authenticated.
Since display is being disconnecting dpcd read will fail.
This will cause us to attempt HDCP retry on disconnection.
We are adding a 100ms delay before retry.
So we will only start retry if within 100ms there is no disconnection call
to HDCP module.

Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_transition.c