提交 971f8daa 编写于 作者: R Rex Zhu 提交者: Alex Deucher

drm/amd/powrplay: fix issue that get wrong enable flag.

Signed-off-by: NRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 b4c6f99e
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册