FAILED: patch "[PATCH] drm/amd/display: Drop clock requirements on DCN32 when no displays are active" failed to apply to 6.6-stable tree
Sasha Levin
maintainerThe patch below does not apply to the 6.6-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.6.y
git checkout FETCH_HEAD
git cherry-pick -x bba4dc3306483335ddbe065c05b2d8359ec387a4
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '[email protected]' --subject-prefix 'PATCH 6.6.y' 'HEAD^..'
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From bba4dc3306483335ddbe065c05b2d8359ec387a4 Mon Sep 17 00:00:00 2001
From: Misha Nasledov <[email protected]>
Date: Mon, 19 Oct 2026 16:42:32 -0700
Subject: [PATCH] drm/amd/display: Drop clock requirements on DCN32 when no
displays are active
amdgpu_dm builds the new dc_state as a copy of the old one. When the last stream is removed, dml1_validate() returns early on pipe_cnt == 0 and never reaches dcn32_calculate_dlg_params(), so bw.dcn.clk keeps the dramclk/dcfclk/fclk requirements of the display that was just turned off. dcn32_update_clocks() then keeps those hard minimums applied.
On an RX 7900 XTX this leaves UCLK at 456 MHz and DCFCLK at 637 MHz with the monitor off, and the board idles at 28.4 W. With this change they drop to 96 MHz and 145 MHz and board power falls to 15.3 W.
Reset the clock requirements in that case, as calculate_dlg_params() already does when no HUBP is active and as the DML2 path does for stream_count == 0.
--- .../display/dc/resource/dcn32/dcn32_resource.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c +14 -1
@@ -1941,8 +1941,21 @@ static bool dml1_validate(struct dc *dc, struct dc_state *context, enum dc_valid out =dcn32_internal_validate_bw (dc, context, pipes, &pipe_cnt, &vlevel, validate_mode);DC_FP_END (); -if (pipe_cnt ==0 ) +if (pipe_cnt ==0 ) { +/* The context is a copy of the previous state, so without this the +* clocks the last display needed stay applied with all displays off. +*/ + context->bw_ctx.bw.dcn.clk.socclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dppclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dcfclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz =0 ; + context->bw_ctx.bw.dcn.clk.dramclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.fclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.p_state_change_support = true; + context->bw_ctx.bw.dcn.clk.fclk_p_state_change_support = true; + context->bw_ctx.bw.dcn.clk.num_ways =0 ; goto validate_out; + }if (!out) goto validate_fail;
Signature · 1 line
2.53.0
Sasha Levin
maintainerPATCH 1/1 drm/amd/display: Drop clock requirements on DCN32 when no displays are active
From: Misha Nasledov <[email protected]>
[ Upstream commit bba4dc3306483335ddbe065c05b2d8359ec387a4 ]
amdgpu_dm builds the new dc_state as a copy of the old one. When the last stream is removed, dml1_validate() returns early on pipe_cnt == 0 and never reaches dcn32_calculate_dlg_params(), so bw.dcn.clk keeps the dramclk/dcfclk/fclk requirements of the display that was just turned off. dcn32_update_clocks() then keeps those hard minimums applied.
On an RX 7900 XTX this leaves UCLK at 456 MHz and DCFCLK at 637 MHz with the monitor off, and the board idles at 28.4 W. With this change they drop to 96 MHz and 145 MHz and board power falls to 15.3 W.
Reset the clock requirements in that case, as calculate_dlg_params() already does when no HUBP is active and as the DML2 path does for stream_count == 0.
--- .../gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +14 -1
@@ -1860,8 +1860,21 @@ bool dcn32_validate_bandwidth(struct dc *dc,if (fast_validate)dcn32_restore_mall_state (dc, context, &mall_temp_config); -if (pipe_cnt ==0 ) +if (pipe_cnt ==0 ) { +/* The context is a copy of the previous state, so without this the +* clocks the last display needed stay applied with all displays off. +*/ + context->bw_ctx.bw.dcn.clk.socclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dppclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dcfclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz =0 ; + context->bw_ctx.bw.dcn.clk.dramclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.fclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.p_state_change_support = true; + context->bw_ctx.bw.dcn.clk.fclk_p_state_change_support = true; + context->bw_ctx.bw.dcn.clk.num_ways =0 ; goto validate_out; + }if (!out) goto validate_fail;
Signature · 1 line
2.53.0