Commit 5024ae7f authored by Nicholas Susanto's avatar Nicholas Susanto Committed by Alex Deucher

drm/amd/display: Underflow workaround by increasing SR exit latency

[Why]
On 14us for exit latency time causes underflow for 8K monitor with HDR on.
Increasing the latency to 28us fixes the underflow.

[How]
Increase the latency to 28us. This workaround should be sufficient
before we figure out why SR exit so long.
Reviewed-by: default avatarChaitanya Dhere <chaitanya.dhere@amd.com>
Acked-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Signed-off-by: default avatarNicholas Susanto <nicholas.susanto@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c50c9c87
...@@ -441,32 +441,32 @@ static struct wm_table ddr5_wm_table = { ...@@ -441,32 +441,32 @@ static struct wm_table ddr5_wm_table = {
.wm_inst = WM_A, .wm_inst = WM_A,
.wm_type = WM_TYPE_PSTATE_CHG, .wm_type = WM_TYPE_PSTATE_CHG,
.pstate_latency_us = 11.72, .pstate_latency_us = 11.72,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.valid = true, .valid = true,
}, },
{ {
.wm_inst = WM_B, .wm_inst = WM_B,
.wm_type = WM_TYPE_PSTATE_CHG, .wm_type = WM_TYPE_PSTATE_CHG,
.pstate_latency_us = 11.72, .pstate_latency_us = 11.72,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.valid = true, .valid = true,
}, },
{ {
.wm_inst = WM_C, .wm_inst = WM_C,
.wm_type = WM_TYPE_PSTATE_CHG, .wm_type = WM_TYPE_PSTATE_CHG,
.pstate_latency_us = 11.72, .pstate_latency_us = 11.72,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.valid = true, .valid = true,
}, },
{ {
.wm_inst = WM_D, .wm_inst = WM_D,
.wm_type = WM_TYPE_PSTATE_CHG, .wm_type = WM_TYPE_PSTATE_CHG,
.pstate_latency_us = 11.72, .pstate_latency_us = 11.72,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.valid = true, .valid = true,
}, },
} }
...@@ -478,32 +478,32 @@ static struct wm_table lpddr5_wm_table = { ...@@ -478,32 +478,32 @@ static struct wm_table lpddr5_wm_table = {
.wm_inst = WM_A, .wm_inst = WM_A,
.wm_type = WM_TYPE_PSTATE_CHG, .wm_type = WM_TYPE_PSTATE_CHG,
.pstate_latency_us = 11.65333, .pstate_latency_us = 11.65333,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.valid = true, .valid = true,
}, },
{ {
.wm_inst = WM_B, .wm_inst = WM_B,
.wm_type = WM_TYPE_PSTATE_CHG, .wm_type = WM_TYPE_PSTATE_CHG,
.pstate_latency_us = 11.65333, .pstate_latency_us = 11.65333,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.valid = true, .valid = true,
}, },
{ {
.wm_inst = WM_C, .wm_inst = WM_C,
.wm_type = WM_TYPE_PSTATE_CHG, .wm_type = WM_TYPE_PSTATE_CHG,
.pstate_latency_us = 11.65333, .pstate_latency_us = 11.65333,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.valid = true, .valid = true,
}, },
{ {
.wm_inst = WM_D, .wm_inst = WM_D,
.wm_type = WM_TYPE_PSTATE_CHG, .wm_type = WM_TYPE_PSTATE_CHG,
.pstate_latency_us = 11.65333, .pstate_latency_us = 11.65333,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.valid = true, .valid = true,
}, },
} }
......
...@@ -164,8 +164,8 @@ struct _vcs_dpi_soc_bounding_box_st dcn3_5_soc = { ...@@ -164,8 +164,8 @@ struct _vcs_dpi_soc_bounding_box_st dcn3_5_soc = {
}, },
}, },
.num_states = 5, .num_states = 5,
.sr_exit_time_us = 14.0, .sr_exit_time_us = 28.0,
.sr_enter_plus_exit_time_us = 16.0, .sr_enter_plus_exit_time_us = 30.0,
.sr_exit_z8_time_us = 210.0, .sr_exit_z8_time_us = 210.0,
.sr_enter_plus_exit_z8_time_us = 320.0, .sr_enter_plus_exit_z8_time_us = 320.0,
.fclk_change_latency_us = 24.0, .fclk_change_latency_us = 24.0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment