]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Fix black screen with HDMI outputs
authorAlex Hung <alex.hung@amd.com>
Wed, 22 Oct 2025 22:19:34 +0000 (16:19 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Nov 2025 16:53:20 +0000 (11:53 -0500)
[Why & How]
This fixes the black screen issue on certain APUs with HDMI,
accompanied by the following messages:

amdgpu 0000:c4:00.0: amdgpu: [drm] Failed to setup vendor info
                     frame on connector DP-1: -22
amdgpu 0000:c4:00.0: [drm] Cannot find any crtc or sizes [drm]
                     Cannot find any crtc or sizes

Fixes: 489f0f600ce2 ("drm/amd/display: Fix DVI-D/HDMI adapters")
Suggested-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Ray Wu <ray.wu@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/link_detection.c

index c417780f37bca0092ee24e5e0a05f0a4932879fd..5d287874c125d691a874ce4d9c6f5010ab4d9ab0 100644 (file)
@@ -1257,6 +1257,7 @@ static bool detect_link_and_local_sink(struct dc_link *link,
                    !sink->edid_caps.edid_hdmi)
                        sink->sink_signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
                else if (dc_is_dvi_signal(sink->sink_signal) &&
+                        dc_is_dvi_signal(link->connector_signal) &&
                         aud_support->hdmi_audio_native &&
                         sink->edid_caps.edid_hdmi)
                        sink->sink_signal = SIGNAL_TYPE_HDMI_TYPE_A;