drm/amdgpu: Clear the hotplug interrupt ack bit before hpd initialization
authorQiang Ma <maqianga@uniontech.com>
Wed, 31 Jan 2024 07:57:03 +0000 (15:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Feb 2024 15:01:10 +0000 (10:01 -0500)
commitaeaf3e6cf84282500b6fa03621b0c225ce1af18a
treecaa4319c5765e9a3756e78e4e1a400534e17b111
parent39a82d304b635a65cb949203719a698fa2fe2009
drm/amdgpu: Clear the hotplug interrupt ack bit before hpd initialization

Problem:
The computer in the bios initialization process, unplug the HDMI display,
wait until the system up, plug in the HDMI display, did not enter the
hotplug interrupt function, the display is not bright.

Fix:
After the above problem occurs, and the hpd ack interrupt bit is 1,
the interrupt should be cleared during hpd_init initialization so that
when the driver is ready, it can respond to the hpd interrupt normally.

Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c