diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-11-07 15:50:18 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-08 18:30:24 +0100 |
commit | 53dbc27ad5a93932ff1892a8e4ef266827d74a0f (patch) | |
tree | 4b51f3feb3a54cbdb7c5c3460a89428f9c21c385 /drivers/gpu/drm/amd/powerplay/hwmgr | |
parent | drm/amd/powerplay: dynamically disable ds and ulv for compute (diff) | |
download | linux-53dbc27ad5a93932ff1892a8e4ef266827d74a0f.tar.xz linux-53dbc27ad5a93932ff1892a8e4ef266827d74a0f.zip |
drm/amdgpu/powerplay: fix AVFS handling with custom powerplay table
When a custom powerplay table is provided, we need to update
the OD VDDC flag to avoid AVFS being enabled when it shouldn't be.
Bug: https://bugzilla.kernel.org/show_bug.cgi?id=205393
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c index d3229c274a36..d71a492c87a3 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c @@ -3689,6 +3689,13 @@ static int vega10_set_power_state_tasks(struct pp_hwmgr *hwmgr, PP_ASSERT_WITH_CODE(!result, "Failed to upload PPtable!", return result); + /* + * If a custom pp table is loaded, set DPMTABLE_OD_UPDATE_VDDC flag. + * That effectively disables AVFS feature. + */ + if(hwmgr->hardcode_pp_table != NULL) + data->need_update_dpm_table |= DPMTABLE_OD_UPDATE_VDDC; + vega10_update_avfs(hwmgr); /* |