diff options
author | Kenneth Feng <kenneth.feng@amd.com> | 2018-06-12 03:07:37 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-06-14 08:42:39 -0400 |
commit | 5c16f36f6f003b4415237acca59384a074cd8030 (patch) | |
tree | d0373d5360a4083a892a352ff5e03dbab3fddfb0 /drivers/gpu/drm/amd | |
parent | 333c8d3ef238f21516659b5221532060bae8a128 (diff) |
drm/amd/powerplay: Set higher SCLK&MCLK frequency than dpm7 in OD (v2)
Fix the issue that SCLK&MCLK can't be set higher than dpm7 when
OD is enabled in SMU7.
v2: fix warning (Alex)
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Acked-by: Rex Zhu<rezhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index b763c542bd6e..f8e866ceda02 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | |||
@@ -3755,14 +3755,17 @@ static int smu7_trim_dpm_states(struct pp_hwmgr *hwmgr, | |||
3755 | static int smu7_generate_dpm_level_enable_mask( | 3755 | static int smu7_generate_dpm_level_enable_mask( |
3756 | struct pp_hwmgr *hwmgr, const void *input) | 3756 | struct pp_hwmgr *hwmgr, const void *input) |
3757 | { | 3757 | { |
3758 | int result; | 3758 | int result = 0; |
3759 | const struct phm_set_power_state_input *states = | 3759 | const struct phm_set_power_state_input *states = |
3760 | (const struct phm_set_power_state_input *)input; | 3760 | (const struct phm_set_power_state_input *)input; |
3761 | struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); | 3761 | struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); |
3762 | const struct smu7_power_state *smu7_ps = | 3762 | const struct smu7_power_state *smu7_ps = |
3763 | cast_const_phw_smu7_power_state(states->pnew_state); | 3763 | cast_const_phw_smu7_power_state(states->pnew_state); |
3764 | 3764 | ||
3765 | result = smu7_trim_dpm_states(hwmgr, smu7_ps); | 3765 | /*skip the trim if od is enabled*/ |
3766 | if (!hwmgr->od_enabled) | ||
3767 | result = smu7_trim_dpm_states(hwmgr, smu7_ps); | ||
3768 | |||
3766 | if (result) | 3769 | if (result) |
3767 | return result; | 3770 | return result; |
3768 | 3771 | ||