Patch "platform/x86/amd/pmf: update to auto-mode limits only after AMT event" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    platform/x86/amd/pmf: update to auto-mode limits only after AMT event

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     platform-x86-amd-pmf-update-to-auto-mode-limits-only.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 4983ffb1bebabe6343344fb4eb7ac38961e1fe2a
Author: Shyam Sundar S K <Shyam-sundar.S-k@xxxxxxx>
Date:   Wed Jan 25 15:29:34 2023 +0530

    platform/x86/amd/pmf: update to auto-mode limits only after AMT event
    
    [ Upstream commit 3dfe28c936f87373a2b6ada750be4c52c0f249f3 ]
    
    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@xxxxxxx>
    Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@xxxxxxx>
    Reviewed-by: Mario Limonciello <mario.limonciello@xxxxxxx>
    Link: https://lore.kernel.org/r/20230125095936.3292883-4-Shyam-sundar.S-k@xxxxxxx
    Reviewed-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/platform/x86/amd/pmf/auto-mode.c b/drivers/platform/x86/amd/pmf/auto-mode.c
index 644af42e07cf..85ce9ed25b85 100644
--- a/drivers/platform/x86/amd/pmf/auto-mode.c
+++ b/drivers/platform/x86/amd/pmf/auto-mode.c
@@ -299,7 +299,5 @@ void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev)
 void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev)
 {
 	amd_pmf_load_defaults_auto_mode(dev);
-	/* update the thermal limits for Automode */
-	amd_pmf_set_automode(dev, config_store.current_mode, NULL);
 	amd_pmf_init_metrics_table(dev);
 }



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux