From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796382992; b=b81/k2T7YdUcvvnCETVMN5KzemdBwBHV9WKraJCrMlFtbNht0ktv/wyZ5UsOwL+HUuef M4+x36+lJMpRyN71oB6JIldmrMxSeNaDHE6aqUfYbNsV5JJbeoSIUGlAOCCWteqzHjVjh HEQ8j+2d7+j4Ev64THMheTlMqGEvVWTNmoGDAQOX9lWoBmqegF/CSyVZnNHuIs66s9ifc w0V4YWOtY8iQJTckStgiApkaSoafrweyHfLVvvxPYW/bsIJGQPOJrbgak4MoR/p1/COcs 1d5Zq6jRGPpEqVhzl23ZeQPsjvuj+gE6rNSeWEfLeeLZdURj/vQmO9h3prtBsjhVWNw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382992; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=QnMwIK6SVAcyAlTjn0tXvmnhQTaFdi+amynczn7miC0=; b=EYUb+MQVZ2pb+hIWuGYzrNrgmDDrvdDHhe+LF6C7CHaV7/EM2pfJVYM7iwoOM4NFXj4R coq9cG4qJTDJrVnOQtn3/UplUhHvCY6gpv8DLUOZ3N274YIXb/jIpZ88ROfIOGqefob1s fsFt4kVC2cIVQewaJE1u2IKTDzmZmGeNYXbaKMNfDDxCzw4iR78UbhNNMUEqUvZgA+hAl XpZuoigIWUulRILQ1CuW8YmDPrI8NUoA0exbcXWsnefO3S9Vnv91F+mR6iW+euJGHTpRP kDYWVuFvB3ptqtALcWR5irc2cgbh/YrAUbS30s/wX6P3p0S8KNoeTrU5HbNaFAvIf2g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=fFZLTZRP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3DFC606A322; Fri, 4 Dec 2026 11:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=fFZLTZRP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46A531F000C2; Fri, 4 Dec 2026 11:16:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796382992; bh=QnMwIK6SVAcyAlTjn0tXvmnhQTaFdi+amynczn7miC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=fFZLTZRPUpwO6qttvy7Ng889cjTUzznWmwkNFI1lQxgnqIQDjaRWrjA33zwNFm2s2 ABeWukbmS8MvBbr8EW+T/dWbd0J6m5l7z0JEJ9vk6y+i0kDEfyBM79ql4vD75AZl3B NLDKIPCfmygYEPvUuCLq9We49jBuVcu4w1LnGdbs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wayne Lin , Paul Menzel , Alex Deucher , Sasha Levin Subject: [PATCH 6.18 682/703] drm/amd/display: Dont warn about vendor infoframe for non-infoframe sinks Date: Fri, 4 Dec 2026 19:09:41 +0900 Message-ID: <20261204100645.963819709@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paul Menzel [ 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. Fixes: 6027cbee1900 ("drm/amd/display: Add error check for avi and vendor infoframe setup function") Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5025 Reviewed-by: Wayne Lin Signed-off-by: Paul Menzel Signed-off-by: Wayne Lin Signed-off-by: Alex Deucher (cherry picked from commit 2abfc667f622eb7132b139db2e175642713662f8) Cc: stable@vger.kernel.org [ sashal: adjusted the file location from amdgpu_dm_connector.c to amdgpu_dm.c, where this tree still defines the function; the hunk itself is otherwise identical. ] Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -6683,7 +6683,8 @@ static void fill_stream_properties_from_ 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;