mirror of
https://github.com/openbsd/src.git
synced 2026-04-25 14:45:52 +00:00
drm/amd/display: Fallback to boot snapshot for dispclk
From Dillon Varone 1a34999922ba6c95df6e3ba5c82624f61323f82b in linux-6.18.y/6.18.19 30d937f63bd19bbcaafa4b892eb251f8bbbf04ef in mainline linux
This commit is contained in:
@@ -68,7 +68,11 @@ void dcn401_initialize_min_clocks(struct dc *dc)
|
||||
* audio corruption. Read current DISPCLK from DENTIST and request the same
|
||||
* freq to ensure that the timing is valid and unchanged.
|
||||
*/
|
||||
clocks->dispclk_khz = dc->clk_mgr->funcs->get_dispclk_from_dentist(dc->clk_mgr);
|
||||
if (dc->clk_mgr->funcs->get_dispclk_from_dentist) {
|
||||
clocks->dispclk_khz = dc->clk_mgr->funcs->get_dispclk_from_dentist(dc->clk_mgr);
|
||||
} else {
|
||||
clocks->dispclk_khz = dc->clk_mgr->boot_snapshot.dispclk * 1000;
|
||||
}
|
||||
}
|
||||
clocks->ref_dtbclk_khz = dc->clk_mgr->bw_params->clk_table.entries[0].dtbclk_mhz * 1000;
|
||||
clocks->fclk_p_state_change_support = true;
|
||||
|
||||
Reference in New Issue
Block a user