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=1796345866; b=PGMz86s0Ypf18kUsca/GhQC76W9o02PULFj3YvInj1h/4uOXAwsrAW2xPMx96v7CcDcm +MWCsXNY1JJa5cxY4RICtDhCun+jA4Dh6snoiYzLqAcRy7o60f3tSoEumcBrUHlKTRNTc LCAVryHseNokL7Gvf3Brzf5Q9xWNtKM43WJUNiuikd868Rv2RxF9AHkyFGXOjyz+JDWz8 q4PrUwakaOhIWbOeWW7abjOUYsCAIyLyUvSRY3f+F+jOXsaI9z/oOxeXKpJdol/eG89zk eSyzbxxwPp6/3vRS/iy9GKn9mbe1RXs1vMePf5RkViSQa3Vz5l3wRRzWmaE1jlXvsYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796345866; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=jRqhZY6zOlaw5UGfrEAPrWiFfJtgllS9dvH76KO6I5I=; b=LVKa4Hj45Ub8L8QgB1SBF4dPhrv4GAAtnFCxHrmN6DpLb+1LMtaVDhzYSFzoDwCdqocg ohT9HtB5usC8n2e+rRxBMLMu/0mi1QhvPU3ptWmwcwI2osjc/e38S5Q/MqMvhqJNxUs/h RJgNgV/Mh2t2bV23hdIgOrNW8s90yXV6n5dFKDtpo8SyhCY5kEVCZ4AgkJsNpxeXqasjR /rW8u+IgdzNAjWnS1UjECBz6bNGNxQDp93JJRUWo5WHTyNOggqPvmWvCuEOcGUFjy4TKY O8qPCvbetfUYyXpiit0xIUKWo6BdTBGlLFycDdWk3fG7mxMEnAy2gnW5DYAupb8XR0w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=c6QDYNmh; 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 1B83C606A322 for ; Fri, 4 Dec 2026 00:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=c6QDYNmh Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0787C1F000CE; Fri, 4 Dec 2026 00:57:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796345865; bh=jRqhZY6zOlaw5UGfrEAPrWiFfJtgllS9dvH76KO6I5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=c6QDYNmhdr6/ZmPZObMNx0MG12Wr3WV5jVuTy7C4ZYL7Kl2qnX9Q+WTHF8G5wcwp+ Wg9pO1IU5IPbfwOQMolqZmRZlLuVfht4vZtO2vOJSoeio5PnvXPyzIGDzfJUFicDOH 7obi4hygw3AGw0YAnQqkH85R4kwvTNZQexL3T1/W1duPntcT+ZZzInQNp1sG/RiTHh WfU/VlqdRBmtddvL82xPfFOd+9jR8+w5qMSiBW/5uH72GL5xWWGosW8GyHgvnb9yiU 58Mwr+G+c27jmQw2W1Gw9XWhowvTxVb4Dz7ADXpwvRHksPXsE0GpwA5W/Saj5HaB8E oYBlTjUUB2F7A== From: Sasha Levin To: stable@vger.kernel.org Cc: Paul Menzel , Wayne Lin , Alex Deucher , Sasha Levin Subject: [PATCH 6.18.y] drm/amd/display: Don't warn about vendor infoframe for non-infoframe sinks Date: Thu, 3 Dec 2026 19:57:43 -0500 Message-ID: <20261204005711.1563347-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026120237-zebra-frequency-1ce0@gregkh> References: <2026120237-zebra-frequency-1ce0@gregkh> 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 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 --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 8124d554431f6..acb1d41840de8 100644 --- 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_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; -- 2.53.0