diff options
author | Dave Airlie <airlied@redhat.com> | 2018-06-21 23:18:32 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-06-21 23:19:05 -0400 |
commit | 565c17b5f02dacd8430da8d95bbba60587f339af (patch) | |
tree | 63dc8a786f522f11e44058ec9707af12fb3d83c4 /drivers/gpu/drm/amd/amdgpu/si_dpm.c | |
parent | f4366e44efeb895c358fddd11f9ecee81bdad06b (diff) | |
parent | a21daa88d4f08c959a36ad9760df045407a080e5 (diff) |
Merge branch 'drm-next-4.19' of git://people.freedesktop.org/~agd5f/linux into drm-next
First feature request for 4.19. Highlights:
- Add initial amdgpu documentation
- Add initial GPU scheduler documention
- GPU scheduler fixes for dying processes
- Add support for the JPEG engine on VCN
- Switch CI to use powerplay by default
- EDC support for CZ
- More powerplay cleanups
- Misc DC fixes
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180621161138.3008-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_dpm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/si_dpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dpm.c index 5c97a3671726..d51318c695e6 100644 --- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c | |||
@@ -3480,7 +3480,7 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev, | |||
3480 | disable_sclk_switching = true; | 3480 | disable_sclk_switching = true; |
3481 | } | 3481 | } |
3482 | 3482 | ||
3483 | if (adev->pm.dpm.ac_power) | 3483 | if (adev->pm.ac_power) |
3484 | max_limits = &adev->pm.dpm.dyn_state.max_clock_voltage_on_ac; | 3484 | max_limits = &adev->pm.dpm.dyn_state.max_clock_voltage_on_ac; |
3485 | else | 3485 | else |
3486 | max_limits = &adev->pm.dpm.dyn_state.max_clock_voltage_on_dc; | 3486 | max_limits = &adev->pm.dpm.dyn_state.max_clock_voltage_on_dc; |
@@ -3489,7 +3489,7 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev, | |||
3489 | if (ps->performance_levels[i].vddc > ps->performance_levels[i+1].vddc) | 3489 | if (ps->performance_levels[i].vddc > ps->performance_levels[i+1].vddc) |
3490 | ps->performance_levels[i].vddc = ps->performance_levels[i+1].vddc; | 3490 | ps->performance_levels[i].vddc = ps->performance_levels[i+1].vddc; |
3491 | } | 3491 | } |
3492 | if (adev->pm.dpm.ac_power == false) { | 3492 | if (adev->pm.ac_power == false) { |
3493 | for (i = 0; i < ps->performance_level_count; i++) { | 3493 | for (i = 0; i < ps->performance_level_count; i++) { |
3494 | if (ps->performance_levels[i].mclk > max_limits->mclk) | 3494 | if (ps->performance_levels[i].mclk > max_limits->mclk) |
3495 | ps->performance_levels[i].mclk = max_limits->mclk; | 3495 | ps->performance_levels[i].mclk = max_limits->mclk; |