drm/amd/display: Update replay for clk_mgr optimizations
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Fri, 30 Jun 2023 17:58:33 +0000 (13:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Aug 2023 22:07:42 +0000 (18:07 -0400)
Add Replay calls to clk_mgr updates (just like PSR)

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c

index 6127d6045336a6b424fefc081f93f375bb056bf7..dcedf96451615c1e2f083a104c799ba25f468029 100644 (file)
@@ -117,6 +117,7 @@ void clk_mgr_exit_optimized_pwr_state(const struct dc *dc, struct clk_mgr *clk_m
                                continue;
                        clk_mgr->psr_allow_active_cache = edp_link->psr_settings.psr_allow_active;
                        dc->link_srv->edp_set_psr_allow_active(edp_link, &allow_active, false, false, NULL);
+                       dc->link_srv->edp_set_replay_allow_active(edp_link, &allow_active, false, false, NULL);
                }
        }
 
@@ -137,6 +138,8 @@ void clk_mgr_optimize_pwr_state(const struct dc *dc, struct clk_mgr *clk_mgr)
                                continue;
                        dc->link_srv->edp_set_psr_allow_active(edp_link,
                                        &clk_mgr->psr_allow_active_cache, false, false, NULL);
+                       dc->link_srv->edp_set_replay_allow_active(edp_link,
+                                       &clk_mgr->psr_allow_active_cache, false, false, NULL);
                }
        }