FAILED: patch "[PATCH] drm/amd/display: Defer BW-optimization-blocked DRR" failed to apply to 6.14-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.14-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.14.y
git checkout FETCH_HEAD
git cherry-pick -x 874697e127931bf50a37ce9d96ee80f3a08a0c38
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2025051955-attitude-power-7034@gregkh' --subject-prefix 'PATCH 6.14.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 874697e127931bf50a37ce9d96ee80f3a08a0c38 Mon Sep 17 00:00:00 2001
From: John Olender <[email protected]>
Date: Wed, 16 Apr 2025 02:54:26 -0400
Subject: [PATCH] drm/amd/display: Defer BW-optimization-blocked DRR
adjustments
[Why & How]
Instead of dropping DRR updates, defer them. This fixes issues where monitor continues to see incorrect refresh rate after VRR was turned off by userspace.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -0
@@ -372,6 +372,8 @@ get_crtc_by_otg_inst(struct amdgpu_device *adev,static inline bool is_dc_timing_adjust_needed (struct dm_crtc_state *old_state,struct dm_crtc_state *new_state) { +if (new_state->stream->adjust.timing_adjust_pending) +return true;if (new_state->freesync_config.state ==VRR_STATE_ACTIVE_FIXED )return true;else if (amdgpu_dm_crtc_vrr_active (old_state) !=amdgpu_dm_crtc_vrr_active (new_state))
drivers/gpu/drm/amd/display/dc/core/dc.c +7 -3
@@ -439,9 +439,12 @@ bool dc_stream_adjust_vmin_vmax(struct dc *dc,* Don't adjust DRR while there's bandwidth optimizations pending to * avoid conflicting with firmware updates. */ -if (dc->ctx->dce_version >DCE_VERSION_MAX ) -if (dc->optimized_required || dc->wm_optimized_required) +if (dc->ctx->dce_version >DCE_VERSION_MAX ) { +if (dc->optimized_required || dc->wm_optimized_required) { + stream->adjust.timing_adjust_pending = true;return false; + } + }dc_exit_ips_for_hw_access (dc);
@@ -3168,7 +3171,8 @@ static void copy_stream_update_to_stream(struct dc *dc,if (update->crtc_timing_adjust) {if (stream->adjust.v_total_min != update->crtc_timing_adjust->v_total_min || - stream->adjust.v_total_max != update->crtc_timing_adjust->v_total_max) + stream->adjust.v_total_max != update->crtc_timing_adjust->v_total_max || + stream->adjust.timing_adjust_pending) update->crtc_timing_adjust->timing_adjust_pending = true; stream->adjust = *update->crtc_timing_adjust; update->crtc_timing_adjust->timing_adjust_pending = false;