Skip to content

Commit 9be6011

Browse files
Alvin Leealexdeucher
authored andcommitted
drm/amd/display: Use DRAM speed from validation for dummy p-state
[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: [email protected] # 6.1+ Reviewed-by: Samson Tam <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alvin Lee <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 6f395ce commit 9be6011

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
@@ -2235,6 +2235,7 @@ void dcn32_calculate_wm_and_dlg_fpu(struct dc *dc, struct dc_state *context,
22352235
int i, pipe_idx, vlevel_temp = 0;
22362236
double dcfclk = dcn3_2_soc.clock_limits[0].dcfclk_mhz;
22372237
double dcfclk_from_validation = context->bw_ctx.dml.vba.DCFCLKState[vlevel][context->bw_ctx.dml.vba.maxMpcComb];
2238+
double dram_speed_from_validation = context->bw_ctx.dml.vba.DRAMSpeed;
22382239
double dcfclk_from_fw_based_mclk_switching = dcfclk_from_validation;
22392240
bool pstate_en = context->bw_ctx.dml.vba.DRAMClockChangeSupport[vlevel][context->bw_ctx.dml.vba.maxMpcComb] !=
22402241
dm_dram_clock_change_unsupported;
@@ -2422,7 +2423,7 @@ void dcn32_calculate_wm_and_dlg_fpu(struct dc *dc, struct dc_state *context,
24222423
}
24232424

24242425
if (dc->clk_mgr->bw_params->wm_table.nv_entries[WM_C].valid) {
2425-
min_dram_speed_mts = context->bw_ctx.dml.vba.DRAMSpeed;
2426+
min_dram_speed_mts = dram_speed_from_validation;
24262427
min_dram_speed_mts_margin = 160;
24272428

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

0 commit comments

Comments
 (0)