drm/amd/display: Add retires when read DPCD
authorJoan Lee <joan.lee@amd.com>
Wed, 15 May 2024 02:23:01 +0000 (10:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 15:06:18 +0000 (11:06 -0400)
commit2770b91588c2786809fdbdba589d9742dfc7af4f
treef0fec4de4387aaa8d90d07618202ffa654956b6a
parentcc4d6ea0f21e782d8f1c8feeb6bb3133579570dd
drm/amd/display: Add retires when read DPCD

[why & how]
Sometimes read DPCD return fail while result not retrieved yet. Add
retries mechanism in Replay handle hpd irq to get real result.

Reviewed-by: Jerry Zuo <jerry.zuo@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Joan Lee <joan.lee@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