mirror_ubuntu-kernels/drivers/gpu/drm/amd
Ilya 10a9accd48 drm/amd/display: Fix wrong resolution with DP/VGA adapter
[Why]
Hotplugging the VGA side of some DP/VGA adapters caused the display to
light up with the wrong (non-native) resolution.

This is caused by the adapter misbehaving by reporting the wrong number
of downstream ports when the VGA side is unplugged (reports 1 instead of
0), but only if the SINK_COUNT DPCD register is read more than once.

[How]
To work around the adapter behavior, remove the sink if link is
detected, but EDID cannot be read.

Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Ilya <Ilya.Bakoulin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-02-23 14:22:03 -05:00
..
acp
amdgpu drm/amdgpu: Remove unused get_umc_v8_7_channel_index function 2022-02-23 14:02:51 -05:00
amdkfd drm/amdkfd: Use real device for messages 2022-02-23 14:02:50 -05:00
display drm/amd/display: Fix wrong resolution with DP/VGA adapter 2022-02-23 14:22:03 -05:00
include drm/amd/include: add DCN 3.1.5 registers 2022-02-18 14:07:00 -05:00
pm drm/amd/pm: validate SMU feature enable message for getting feature enabled mask 2022-02-22 14:44:36 -05:00