Skip to content

Commit a07f8b9

Browse files
Nicholas Kazlauskasalexdeucher
authored andcommitted
drm/amd/display: Send s0i2_rdy in stream_count == 0 optimization
[Why] Otherwise SMU won't mark Display as idle when trying to perform s2idle. [How] Mark the bit in the dcn31 codepath, doesn't apply to older ASIC. It needed to be split from phy refclk off to prevent entering s2idle when PSR was engaged but driver was not ready. Fixes: 118a331 ("drm/amd/display: Add DCN3.1 clock manager support") Tested-by: Daniel Wheeler <[email protected]> Reviewed-by: Eric Yang <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d97e631 commit a07f8b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ static void dcn31_update_clocks(struct clk_mgr *clk_mgr_base,
158158
union display_idle_optimization_u idle_info = { 0 };
159159
idle_info.idle_info.df_request_disabled = 1;
160160
idle_info.idle_info.phy_ref_clk_off = 1;
161+
idle_info.idle_info.s0i2_rdy = 1;
161162
dcn31_smu_set_display_idle_optimization(clk_mgr, idle_info.data);
162163
/* update power state */
163164
clk_mgr_base->clks.pwr_state = DCN_PWR_STATE_LOW_POWER;

0 commit comments

Comments
 (0)