FAILED: patch "[PATCH] drm/amd/display: Fix DC warning at driver load" failed to apply to 5.18-stable tree
[email protected]
maintainerThe patch below does not apply to the 5.18-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]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 235870f659687b48b12c28f9427e6ca39dcaa81e Mon Sep 17 00:00:00 2001
From: Qingqing Zhuo <[email protected]>
Date: Fri, 10 Jun 2022 10:43:53 -0400
Subject: [PATCH] drm/amd/display: Fix DC warning at driver load
[Why]
Wrong index was checked for dcfclk_mhz, causing false warning.
[How]
Fix the assertion index.
Tested-by Daniel Wheeler <[email protected]>
Reviewed-by Dmytro Laktyushkin <[email protected]>
Acked-by Rodrigo Siqueira <[email protected]>
Signed-off-by Qingqing Zhuo <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
Cc [email protected] # 5.18.x
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c +1 -1
@@ -550,7 +550,7 @@ static void dcn315_clk_mgr_helper_populate_bw_params(if (!bw_params->clk_table.entries[i].dtbclk_mhz) bw_params->clk_table.entries[i].dtbclk_mhz = def_max.dtbclk_mhz; } -ASSERT (bw_params->clk_table.entries[i].dcfclk_mhz); +ASSERT (bw_params->clk_table.entries[i-1 ].dcfclk_mhz); bw_params->vram_type = bios_info->memory_type; bw_params->num_channels = bios_info->ma_channel_number;if (!bw_params->num_channels)