diff options
author | Evan Quan <evan.quan@amd.com> | 2019-01-07 23:22:24 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-14 15:04:27 -0500 |
commit | d1a3e239a6016f2bb42a91696056e223982e8538 (patch) | |
tree | 793259097a18594a5d2400633ad977de6ae3d54d | |
parent | c81e42f036232cdb30de0b6294ec82f797958bc9 (diff) |
drm/amd/powerplay: drop the unnecessary uclk hard min setting
Since soft min setting is enough. Hard min setting is redundant.
Reported-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c index c2061d351d04..82935a3bd950 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | |||
@@ -1692,13 +1692,6 @@ static int vega20_upload_dpm_min_level(struct pp_hwmgr *hwmgr, uint32_t feature_ | |||
1692 | (PPCLK_UCLK << 16) | (min_freq & 0xffff))), | 1692 | (PPCLK_UCLK << 16) | (min_freq & 0xffff))), |
1693 | "Failed to set soft min memclk !", | 1693 | "Failed to set soft min memclk !", |
1694 | return ret); | 1694 | return ret); |
1695 | |||
1696 | min_freq = data->dpm_table.mem_table.dpm_state.hard_min_level; | ||
1697 | PP_ASSERT_WITH_CODE(!(ret = smum_send_msg_to_smc_with_parameter( | ||
1698 | hwmgr, PPSMC_MSG_SetHardMinByFreq, | ||
1699 | (PPCLK_UCLK << 16) | (min_freq & 0xffff))), | ||
1700 | "Failed to set hard min memclk !", | ||
1701 | return ret); | ||
1702 | } | 1695 | } |
1703 | 1696 | ||
1704 | if (data->smu_features[GNLD_DPM_UVD].enabled && | 1697 | if (data->smu_features[GNLD_DPM_UVD].enabled && |