FAILED: patch "[PATCH] drm/amd/display: Don't warn about vendor infoframe for" failed to apply to 6.18-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.18-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y
git checkout FETCH_HEAD
git cherry-pick -x 2b784f5e78694d4d852053b3eef3de3f0ff1d02e
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026120237-zebra-frequency-1ce0@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 2b784f5e78694d4d852053b3eef3de3f0ff1d02e Mon Sep 17 00:00:00 2001
From: Paul Menzel <[email protected]>
Date: Tue, 27 Oct 2026 21:52:22 +0100
Subject: [PATCH] drm/amd/display: Don't warn about vendor infoframe for
non-infoframe sinks
With an EIZO EV2781 connected over HDMI to an AMD Ryzen 3 2200G (Raven) on an MSI B350M MORTAR (MS-7A37), Linux logs at every boot since v6.16:
amdgpu 0000:30:00.0: [drm] Failed to setup vendor infoframe on connector HDMI-A-1: -22
Commit 6027cbee1900 ("drm/amd/display: Add error check for avi and vendor infoframe setup function") started to log the return value of drm_hdmi_vendor_infoframe_from_display_mode(). With frame and mode being non-NULL, the helper only fails with -EINVAL, if the sink does not support HDMI infoframes, that means, if connector->display_info.has_hdmi_infoframe is false, and its kernel-doc says, that this error can be safely ignored. drm_parse_hdmi_vsdb_video() only sets has_hdmi_infoframe, if the HDMI VSDB has HDMI_Video_present set, and drm_parse_hdmi_forum_scds() sets it for sinks with an HF-SCDB. So an HDMI sink, whose VSDB lacks HDMI_Video_present, triggers the warning, although nothing failed.
The EIZO EV2781 is such a sink. Its HDMI VSDB has a payload of only seven bytes (source physical address, Supports_AI, and a maximum TMDS clock of 250 MHz), so the byte with HDMI_Video_present is absent, and the EDID has no HF-SCDB:
67 03 0c 00 10 00 80 32
Only warn, if the sink supports HDMI infoframes. The infoframe setup itself is unchanged.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c +2 -1
@@ -942,7 +942,8 @@ STATIC_IFN_KUNIT void fill_stream_properties_from_drm_display_mode( err =drm_hdmi_vendor_infoframe_from_display_mode (&hv_frame, (struct drm_connector *)connector, mode_in); -if (err <0 ) +/* Sinks without HDMI infoframe support make it fail with -EINVAL. */ +if (err <0 && info->has_hdmi_infoframe)drm_warn_once (connector->dev,"Failed to setup vendor infoframe on connector %s: %zd\n" , connector->name, err); timing_out->hdmi_vic = hv_frame.vic;
Sasha Levin
maintainerPATCH 1/1 drm/amd/display: Don't warn about vendor infoframe for non-infoframe sinks
From: Paul Menzel <[email protected]>
[ Upstream commit 2b784f5e78694d4d852053b3eef3de3f0ff1d02e ]
With an EIZO EV2781 connected over HDMI to an AMD Ryzen 3 2200G (Raven) on an MSI B350M MORTAR (MS-7A37), Linux logs at every boot since v6.16:
amdgpu 0000:30:00.0: [drm] Failed to setup vendor infoframe on connector HDMI-A-1: -22
Commit 6027cbee1900 ("drm/amd/display: Add error check for avi and vendor infoframe setup function") started to log the return value of drm_hdmi_vendor_infoframe_from_display_mode(). With frame and mode being non-NULL, the helper only fails with -EINVAL, if the sink does not support HDMI infoframes, that means, if connector->display_info.has_hdmi_infoframe is false, and its kernel-doc says, that this error can be safely ignored. drm_parse_hdmi_vsdb_video() only sets has_hdmi_infoframe, if the HDMI VSDB has HDMI_Video_present set, and drm_parse_hdmi_forum_scds() sets it for sinks with an HF-SCDB. So an HDMI sink, whose VSDB lacks HDMI_Video_present, triggers the warning, although nothing failed.
The EIZO EV2781 is such a sink. Its HDMI VSDB has a payload of only seven bytes (source physical address, Supports_AI, and a maximum TMDS clock of 250 MHz), so the byte with HDMI_Video_present is absent, and the EDID has no HF-SCDB:
67 03 0c 00 10 00 80 32
Only warn, if the sink supports HDMI infoframes. The infoframe setup itself is unchanged.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -1
@@ -6683,7 +6683,8 @@ static void fill_stream_properties_from_drm_display_mode( err =drm_hdmi_vendor_infoframe_from_display_mode (&hv_frame, (struct drm_connector *)connector, mode_in); -if (err <0 ) +/* Sinks without HDMI infoframe support make it fail with -EINVAL. */ +if (err <0 && info->has_hdmi_infoframe)drm_warn_once (connector->dev,"Failed to setup vendor infoframe on connector %s: %zd\n" , connector->name, err); timing_out->hdmi_vic = hv_frame.vic;
Signature · 1 line
2.53.0