]> 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)
commit5ea878a1af685567d2b9f3c6d9c3f2205ce8f834
tree4550ee21d620fb96a23fa7f0757a056e0bdbf9a0
parent50905ff631d72fc7ac0e02ca85084b3f37c9568f
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