mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
drm/amd/display: Send DTBCLK disable message on first commit
[Why] Previous patch to allow DTBCLK disable didn't address boot case. Driver thinks DTBCLK is disabled by default, so we don't send disable message to PMFW. DTBCLK is then enabled at idle desktop on boot, burning power. [How] Set dtbclk_en to true on boot so that disable message is sent during first commit. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Taimur Hassan <syed.hassan@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
5549c37e3c
commit
f341055b10
@@ -415,6 +415,7 @@ void dcn35_init_clocks(struct clk_mgr *clk_mgr)
|
|||||||
memset(&(clk_mgr->clks), 0, sizeof(struct dc_clocks));
|
memset(&(clk_mgr->clks), 0, sizeof(struct dc_clocks));
|
||||||
|
|
||||||
// Assumption is that boot state always supports pstate
|
// Assumption is that boot state always supports pstate
|
||||||
|
clk_mgr->clks.dtbclk_en = true;
|
||||||
clk_mgr->clks.ref_dtbclk_khz = ref_dtbclk; // restore ref_dtbclk
|
clk_mgr->clks.ref_dtbclk_khz = ref_dtbclk; // restore ref_dtbclk
|
||||||
clk_mgr->clks.p_state_change_support = true;
|
clk_mgr->clks.p_state_change_support = true;
|
||||||
clk_mgr->clks.prev_p_state_change_support = true;
|
clk_mgr->clks.prev_p_state_change_support = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user