提交 e0e93d03 编写于 作者: K Kenneth Feng 提交者: Alex Deucher

drm/amd/powerplay: add registry key to disable ACG

For the dummy ACG fuses,need to disable ACG, otherwise
corruption will be caused.
Signed-off-by: NKenneth Feng <kenneth.feng@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 b1f223c0
......@@ -224,6 +224,11 @@ static int append_vbios_pptable(struct pp_hwmgr *hwmgr, PPTable_t *ppsmc_pptable
ppsmc_pptable->AcgGfxclkSpreadPercent = smc_dpm_table.acggfxclkspreadpercent;
ppsmc_pptable->AcgGfxclkSpreadFreq = smc_dpm_table.acggfxclkspreadfreq;
/* 0xFFFF will disable the ACG feature */
if (!(hwmgr->feature_mask & PP_ACG_MASK)) {
ppsmc_pptable->AcgThresholdFreqHigh = 0xFFFF;
ppsmc_pptable->AcgThresholdFreqLow = 0xFFFF;
}
return 0;
}
......
......@@ -82,6 +82,7 @@ enum PP_FEATURE_MASK {
PP_SOCCLK_DPM_MASK = 0x1000,
PP_DCEFCLK_DPM_MASK = 0x2000,
PP_OVERDRIVE_MASK = 0x4000,
PP_ACG_MASK = 0x10000,
};
enum PHM_BackEnd_Magic {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部