Skip to content

Commit 9012456

Browse files
committed
drm/amdgpu/powerplay/smu7: 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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 51bd363 commit 9012456

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3969,6 +3969,13 @@ static int smu7_set_power_state_tasks(struct pp_hwmgr *hwmgr, const void *input)
39693969
"Failed to populate and upload SCLK MCLK DPM levels!",
39703970
result = tmp_result);
39713971

3972+
/*
3973+
* If a custom pp table is loaded, set DPMTABLE_OD_UPDATE_VDDC flag.
3974+
* That effectively disables AVFS feature.
3975+
*/
3976+
if (hwmgr->hardcode_pp_table != NULL)
3977+
data->need_update_smu7_dpm_table |= DPMTABLE_OD_UPDATE_VDDC;
3978+
39723979
tmp_result = smu7_update_avfs(hwmgr);
39733980
PP_ASSERT_WITH_CODE((0 == tmp_result),
39743981
"Failed to update avfs voltages!",

0 commit comments

Comments
 (0)