]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Merge pipes for validate
authorHarry Wentland <harry.wentland@amd.com>
Fri, 16 Jan 2026 16:48:11 +0000 (11:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Mar 2026 18:44:24 +0000 (14:44 -0400)
Validation expects to operate on non-split pipes. This is
seen in dcn20_fast_validate_bw, which merges pipes for
validation. We weren't doing that in the non-fast path
which lead to validation failures when operating with
4-to-1 MPC and a writeback connector.

Co-developed by Claude Sonnet 4.5

Assisted-by: Claude:claude-sonnet-4.5
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Chuanyu Tseng <chuanyu.tseng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c

index 566517b99a097462f7907e698ee311a8c6940431..90223b7c2fcdbe13fef0ee96bc9a8134ad835f40 100644 (file)
@@ -1641,6 +1641,8 @@ noinline bool dcn30_internal_validate_bw(
        if (!pipes)
                return false;
 
+       dcn20_merge_pipes_for_validate(dc, context);
+
        context->bw_ctx.dml.vba.maxMpcComb = 0;
        context->bw_ctx.dml.vba.VoltageLevel = 0;
        context->bw_ctx.dml.vba.DRAMClockChangeSupport[0][0] = dm_dram_clock_change_vactive;