drm/amd/powerplay: add standard profile dpm support for smu
authorKevin Wang <kevin1.wang@amd.com>
Fri, 12 Jul 2019 06:42:12 +0000 (14:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jul 2019 18:03:10 +0000 (13:03 -0500)
1. the standard dpm is not support before.
2. use auto profile to adapt standard profile.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 5f844357e6acbd4af78464545eb726ba8a8dc886..e6f103988c6aaa0f6517b7a931f5c3410ea97da6 100644 (file)
@@ -1378,10 +1378,10 @@ int smu_adjust_power_state_dynamic(struct smu_context *smu,
                        break;
 
                case AMD_DPM_FORCED_LEVEL_AUTO:
+               case AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD:
                        ret = smu_unforce_dpm_levels(smu);
                        break;
 
-               case AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD:
                case AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK:
                case AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK:
                case AMD_DPM_FORCED_LEVEL_PROFILE_PEAK: