mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 10:07:52 +07:00
drm/amdgpu: check min clock set by DAL before set ps.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
74f3ce31e9
commit
db82b67c57
@ -960,6 +960,12 @@ static void ci_apply_state_adjust_rules(struct amdgpu_device *adev,
|
||||
sclk = ps->performance_levels[0].sclk;
|
||||
}
|
||||
|
||||
if (adev->pm.pm_display_cfg.min_core_set_clock > sclk)
|
||||
sclk = adev->pm.pm_display_cfg.min_core_set_clock;
|
||||
|
||||
if (adev->pm.pm_display_cfg.min_mem_set_clock > mclk)
|
||||
mclk = adev->pm.pm_display_cfg.min_mem_set_clock;
|
||||
|
||||
if (rps->vce_active) {
|
||||
if (sclk < adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].sclk)
|
||||
sclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].sclk;
|
||||
|
Loading…
Reference in New Issue
Block a user