]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: update dcn42 memory latencies
authorDmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Wed, 25 Mar 2026 21:03:25 +0000 (17:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:21:27 +0000 (15:21 -0400)
Add latency update based on memory type to dml2.1

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/bounding_boxes/dcn42_soc_bb.h

index 9ee09255623390c1d4394b80f93021f33d299331..040d89f6de359299264a8a5f99159a09511cdb93 100644 (file)
@@ -68,6 +68,7 @@ static const struct dml2_soc_qos_parameters dml_dcn42_variant_a_soc_qos_params =
        .qos_type = dml2_qos_param_type_dcn3,
 };
 
+/* Default SOC bounding box for DCN42 based on LPDDR5/LPCAMM2 latencies*/
 static const struct dml2_soc_bb dml2_socbb_dcn42 = {
        .clk_table = {
                .wck_ratio = {
@@ -185,12 +186,13 @@ static const struct dml2_soc_bb dml2_socbb_dcn42 = {
                .qos_type = dml2_qos_param_type_dcn3,
        },
 
+       /* DCN42 params for LPDDR5/LPCAMM2 */
        .power_management_parameters = {
-               .dram_clk_change_blackout_us = 29,
+               .dram_clk_change_blackout_us = 36,
                .fclk_change_blackout_us = 0,
                .g7_ppt_blackout_us = 0,
-               .stutter_enter_plus_exit_latency_us = 11,
-               .stutter_exit_latency_us = 9,
+               .stutter_enter_plus_exit_latency_us = 14,
+               .stutter_exit_latency_us = 12,
                .z8_stutter_enter_plus_exit_latency_us = 300,
                .z8_stutter_exit_latency_us = 200,
        },
@@ -222,6 +224,17 @@ static const struct dml2_soc_bb dml2_socbb_dcn42 = {
        .max_fclk_for_uclk_dpm_khz = 2200 * 1000,
 };
 
+/* DCN42 params for DDR5 */
+struct dml2_soc_power_management_parameters dcn42_ddr5_power_management_parameters = {
+       .dram_clk_change_blackout_us = 36,
+       .fclk_change_blackout_us = 0,
+       .g7_ppt_blackout_us = 0,
+       .stutter_enter_plus_exit_latency_us = 23.5,
+       .stutter_exit_latency_us = 21.5,
+       .z8_stutter_enter_plus_exit_latency_us = 300,
+       .z8_stutter_exit_latency_us = 200,
+};
+
 static const struct dml2_ip_capabilities dml2_dcn42_max_ip_caps = {
        .pipe_count = 4,
        .otg_count = 4,