drm/amd/display: Handle HPD_IRQ for internal link
authorSung-huai Wang <danny.wang@amd.com>
Wed, 10 Apr 2024 06:40:32 +0000 (14:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:45:54 +0000 (09:45 -0400)
commit239b31bd5c3fef3698440bf6436b2068c6bb08a3
treeaad7c37eacce0e0a41b10601b3d450f23e3a7039
parentd0f2181d6529d94b7df15c3afb266ac3fb51188e
drm/amd/display: Handle HPD_IRQ for internal link

[Why]
TCON data is corrupted after electro static discharge test.
Once the TCON data get corrupted, they will get themselves
reset and send HPD_IRQ to source side.

[How]
Support HPD_IRQ for internal link, and restore the PSR/Replay setup.

Reviewed-by: Robin Chen <robin.chen@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Sung-huai Wang <danny.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/dc/link/protocols/link_dp_irq_handler.c