Skip to content

Commit 6ef7f13

Browse files
Alvin Leegregkh
authored andcommitted
drm/amd/display: Use DRAM speed from validation for dummy p-state
commit 9be6011 upstream. [Description] When choosing which dummy p-state latency to use, we need to use the DRAM speed from validation. The DRAMSpeed DML variable can change because we use different input params to DML when populating watermarks set B. Cc: stable@vger.kernel.org # 6.1+ Reviewed-by: Samson Tam <samson.tam@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a67c187 commit 6ef7f13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,6 +1788,7 @@ void dcn32_calculate_wm_and_dlg_fpu(struct dc *dc, struct dc_state *context,
17881788
int i, pipe_idx, vlevel_temp = 0;
17891789
double dcfclk = dcn3_2_soc.clock_limits[0].dcfclk_mhz;
17901790
double dcfclk_from_validation = context->bw_ctx.dml.vba.DCFCLKState[vlevel][context->bw_ctx.dml.vba.maxMpcComb];
1791+
double dram_speed_from_validation = context->bw_ctx.dml.vba.DRAMSpeed;
17911792
double dcfclk_from_fw_based_mclk_switching = dcfclk_from_validation;
17921793
bool pstate_en = context->bw_ctx.dml.vba.DRAMClockChangeSupport[vlevel][context->bw_ctx.dml.vba.maxMpcComb] !=
17931794
dm_dram_clock_change_unsupported;
@@ -1921,7 +1922,7 @@ void dcn32_calculate_wm_and_dlg_fpu(struct dc *dc, struct dc_state *context,
19211922
}
19221923

19231924
if (dc->clk_mgr->bw_params->wm_table.nv_entries[WM_C].valid) {
1924-
min_dram_speed_mts = context->bw_ctx.dml.vba.DRAMSpeed;
1925+
min_dram_speed_mts = dram_speed_from_validation;
19251926
min_dram_speed_mts_margin = 160;
19261927

19271928
context->bw_ctx.dml.soc.dram_clock_change_latency_us =

0 commit comments

Comments
 (0)