Skip to content

Commit 3dfe28c

Browse files
Shyam Sundar S Kjwrdegoede
authored andcommitted
platform/x86/amd/pmf: update to auto-mode limits only after AMT event
Auto-mode thermal limits should be updated only after receiving the AMT event. But due to a bug in the older commit, these settings were getting applied during the auto-mode init. Fix this by removing amd_pmf_set_automode() during auto-mode initialization. Fixes: 3f5571d ("platform/x86/amd/pmf: Add support for Auto mode feature") Suggested-by: Patil Rajesh Reddy <[email protected]> Signed-off-by: Shyam Sundar S K <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 16909aa commit 3dfe28c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/platform/x86/amd/pmf/auto-mode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,5 @@ void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev)
294294
void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev)
295295
{
296296
amd_pmf_load_defaults_auto_mode(dev);
297-
/* update the thermal limits for Automode */
298-
amd_pmf_set_automode(dev, config_store.current_mode, NULL);
299297
amd_pmf_init_metrics_table(dev);
300298
}

0 commit comments

Comments
 (0)