]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: fix dcn42b det allocation order
authorDmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Fri, 3 Jul 2026 17:01:12 +0000 (13:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Jul 2026 21:38:04 +0000 (17:38 -0400)
set_pipe_unlock_order needs to be set to true for the pipes to be unlocked
in correct order to avoid det overallocation

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Signed-off-by: George Zhang <george.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 183bbded999a70c5996e8f399fa8790568d71112)

drivers/gpu/drm/amd/display/dc/resource/dcn42b/dcn42b_resource.c

index 1a3b9e942caa4985288cfc36ebce7899d54e7084..e9c33e3466ea3a45a454026bfa4eb8522b1a0d92 100644 (file)
@@ -2105,6 +2105,7 @@ static bool dcn42b_resource_construct(
        dc->config.use_pipe_ctx_sync_logic = true;
        dc->config.dc_mode_clk_limit_support = false;
        dc->config.enable_windowed_mpo_odm = true;
+       dc->config.set_pipe_unlock_order = true; /* Need to ensure DET gets freed before allocating */
        /* Use psp mailbox to enable assr */
        dc->config.use_assr_psp_message = true;
        /* dcn42 and afterward always support external panel replay */