OSDN Git Service

platform/x86/amd/pmf: update to auto-mode limits only after AMT event
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Wed, 25 Jan 2023 09:59:34 +0000 (15:29 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 30 Jan 2023 13:30:57 +0000 (14:30 +0100)
commit3dfe28c936f87373a2b6ada750be4c52c0f249f3
tree53b27ca97cef67fdd868fb178a642563bb4a546d
parent16909aa8c9cc284085f1202c6403ecb9814af812
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: 3f5571d99524 ("platform/x86/amd/pmf: Add support for Auto mode feature")
Suggested-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230125095936.3292883-4-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/auto-mode.c