mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00: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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue