FAILED: patch "[PATCH] drm/amd/display: Consult MCCS FreeSync cap only if requested" failed to apply to 7.2-stable tree
[email protected]
maintainerThe patch below does not apply to the 7.2-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-7.2.y
git checkout FETCH_HEAD
git cherry-pick -x cfdcf5571c3107bf636002fc0c16ce93c19bd671
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026091625-unlisted-likely-9980@gregkh' --subject-prefix 'PATCH 7.2.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From cfdcf5571c3107bf636002fc0c16ce93c19bd671 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <[email protected]>
Date: Mon, 18 May 2026 17:48:09 +0200
Subject: [PATCH] drm/amd/display: Consult MCCS FreeSync cap only if requested
& supported
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When the do_mccs parameter is false, we don't call dm_helpers_read_mccs_caps, so sink->mccs_caps.freesync_supported is unlikely to be true.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c +6 -8
@@ -3937,17 +3937,15 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector, }/* Handle MCCS */ -if (do_mccs) +if (do_mccs) {dm_helpers_read_mccs_caps (adev->dm.dc->ctx, amdgpu_dm_connector->dc_link, sink); -if ((sink->sink_signal ==SIGNAL_TYPE_HDMI_TYPE_A || - as_type ==FREESYNC_TYPE_PCON_IN_WHITELIST ) && - (!sink->edid_caps.freesync_vcp_code || - (sink->edid_caps.freesync_vcp_code && !sink->mccs_caps.freesync_supported))) - freesync_capable = false; +if (sink->edid_caps.freesync_vcp_code && !sink->mccs_caps.freesync_supported) + freesync_capable = false; -if (do_mccs && sink->mccs_caps.freesync_supported && freesync_capable) -dm_helpers_mccs_vcp_set (adev->dm.dc->ctx, amdgpu_dm_connector->dc_link, sink); +if (sink->mccs_caps.freesync_supported && freesync_capable) +dm_helpers_mccs_vcp_set (adev->dm.dc->ctx, amdgpu_dm_connector->dc_link, sink); + } update:if (dm_con_state)