mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
drm/radeon/dpm: drop clk/voltage dependency filters for SI
Not sure this was ever necessary for SI, was just done to be on the safe side. bug: https://bugs.freedesktop.org/show_bug.cgi?id=69721 Reviewed-by: Alexandre Demers <alexandre.f.demers@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
7bf05cc162
commit
186b1b2ba2
@ -2916,7 +2916,6 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
|
|||||||
bool disable_sclk_switching = false;
|
bool disable_sclk_switching = false;
|
||||||
u32 mclk, sclk;
|
u32 mclk, sclk;
|
||||||
u16 vddc, vddci;
|
u16 vddc, vddci;
|
||||||
u32 max_sclk_vddc, max_mclk_vddci, max_mclk_vddc;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if ((rdev->pm.dpm.new_active_crtc_count > 1) ||
|
if ((rdev->pm.dpm.new_active_crtc_count > 1) ||
|
||||||
@ -2950,29 +2949,6 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* limit clocks to max supported clocks based on voltage dependency tables */
|
|
||||||
btc_get_max_clock_from_voltage_dependency_table(&rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk,
|
|
||||||
&max_sclk_vddc);
|
|
||||||
btc_get_max_clock_from_voltage_dependency_table(&rdev->pm.dpm.dyn_state.vddci_dependency_on_mclk,
|
|
||||||
&max_mclk_vddci);
|
|
||||||
btc_get_max_clock_from_voltage_dependency_table(&rdev->pm.dpm.dyn_state.vddc_dependency_on_mclk,
|
|
||||||
&max_mclk_vddc);
|
|
||||||
|
|
||||||
for (i = 0; i < ps->performance_level_count; i++) {
|
|
||||||
if (max_sclk_vddc) {
|
|
||||||
if (ps->performance_levels[i].sclk > max_sclk_vddc)
|
|
||||||
ps->performance_levels[i].sclk = max_sclk_vddc;
|
|
||||||
}
|
|
||||||
if (max_mclk_vddci) {
|
|
||||||
if (ps->performance_levels[i].mclk > max_mclk_vddci)
|
|
||||||
ps->performance_levels[i].mclk = max_mclk_vddci;
|
|
||||||
}
|
|
||||||
if (max_mclk_vddc) {
|
|
||||||
if (ps->performance_levels[i].mclk > max_mclk_vddc)
|
|
||||||
ps->performance_levels[i].mclk = max_mclk_vddc;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* XXX validate the min clocks required for display */
|
/* XXX validate the min clocks required for display */
|
||||||
|
|
||||||
if (disable_mclk_switching) {
|
if (disable_mclk_switching) {
|
||||||
|
Loading…
Reference in New Issue
Block a user