Skip to content

Commit

Permalink
drm/amd/powerplay: add registry key to disable ACG
Browse files Browse the repository at this point in the history
For the dummy ACG fuses,need to disable ACG, otherwise
corruption will be caused.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Kenneth Feng authored and Alex Deucher committed May 15, 2018
1 parent b1f223c commit e0e93d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e0e93d0

Please sign in to comment.