Patch "drm/amd/display: Use new num clk levels struct for max mclk index" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amd/display: Use new num clk levels struct for max mclk index

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-display-use-new-num-clk-levels-struct-for-ma.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c2bce682e2150a23eb0eb877b87c56b827299339
Author: Dillon Varone <Dillon.Varone@xxxxxxx>
Date:   Fri Nov 11 14:06:58 2022 -0500

    drm/amd/display: Use new num clk levels struct for max mclk index
    
    [ Upstream commit e667ee3b0c049bf0c69426879586a2572bb28d26 ]
    
    [WHY?]
    When calculating watermark and dlg values, the max mclk level index and
    associated speed are needed to find the correlated dummy latency value.
    Currently the incorrect index is given due to a clock manager refactor.
    
    [HOW?]
    Use num_memclk_level from num_entries_per_clk struct for getting the correct max
    mem speed.
    
    Reviewed-by: Jun Lei <Jun.Lei@xxxxxxx>
    Acked-by: Brian Chang <Brian.Chang@xxxxxxx>
    Signed-off-by: Dillon Varone <Dillon.Varone@xxxxxxx>
    Tested-by: Daniel Wheeler <daniel.wheeler@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
index 2f996fdaa70d..07c56e231b04 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
@@ -1803,7 +1803,7 @@ void dcn32_calculate_wm_and_dlg_fpu(struct dc *dc, struct dc_state *context,
 
 		if (context->bw_ctx.dml.vba.DRAMClockChangeSupport[vlevel][maxMpcComb] ==
 			dm_dram_clock_change_unsupported) {
-			int min_dram_speed_mts_offset = dc->clk_mgr->bw_params->clk_table.num_entries - 1;
+			int min_dram_speed_mts_offset = dc->clk_mgr->bw_params->clk_table.num_entries_per_clk.num_memclk_levels - 1;
 
 			min_dram_speed_mts =
 				dc->clk_mgr->bw_params->clk_table.entries[min_dram_speed_mts_offset].memclk_mhz * 16;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux