From: Rex Zhu Date: Tue, 15 Mar 2016 09:42:47 +0000 (+0800) Subject: drm/amd/powrplay: fix issue that get wrong enable flag. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=971f8daafabaca0e06be19c19070c9152cafe0b1;p=openwrt%2Fstaging%2Fblogic.git drm/amd/powrplay: fix issue that get wrong enable flag. Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c index d08f739efa9f..446ed72feb02 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c @@ -3960,14 +3960,11 @@ static int polaris10_trim_single_dpm_states(struct pp_hwmgr *hwmgr, uint32_t low_limit, uint32_t high_limit) { uint32_t i; - struct polaris10_hwmgr *data = (struct polaris10_hwmgr *)(hwmgr->backend); for (i = 0; i < dpm_table->count; i++) { if ((dpm_table->dpm_levels[i].value < low_limit) || (dpm_table->dpm_levels[i].value > high_limit)) dpm_table->dpm_levels[i].enabled = false; - else if (((1 << i) & data->disable_dpm_mask) == 0) - dpm_table->dpm_levels[i].enabled = false; else dpm_table->dpm_levels[i].enabled = true; }