bianbu-linux-6.6/drivers/platform/x86/amd/pmf
Shyam Sundar S K aec8298c09 platform/x86/amd/pmf: Move out of BIOS SMN pair for driver probe
The current SMN index used for the driver probe seems to be meant
for the BIOS pair and there are potential concurrency problems that can
occur with an inopportune SMI.

It is been advised to use SMN_INDEX_0 instead of SMN_INDEX_2, which is
what amd_nb.c provides and this function has protections to ensure that
only one caller can use it at a time.

Fixes: da5ce22df5 ("platform/x86/amd/pmf: Add support for PMF core layer")
Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20230406164807.50969-4-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-04-11 10:37:12 +02:00
..
acpi.c Merge branch 'platform-drivers-x86-amd-pmf' into review-hans 2022-09-27 14:57:38 +02:00
auto-mode.c platform/x86/amd/pmf: update to auto-mode limits only after AMT event 2023-01-30 14:30:57 +01:00
cnqf.c platform/x86/amd/pmf: Add helper routine to check pprof is balanced 2023-01-30 14:30:57 +01:00
core.c platform/x86/amd/pmf: Move out of BIOS SMN pair for driver probe 2023-04-11 10:37:12 +02:00
Kconfig platform/x86/amd/pmf: Move out of BIOS SMN pair for driver probe 2023-04-11 10:37:12 +02:00
Makefile platform/x86/amd/pmf: Add support for CnQF 2022-09-22 17:42:53 +02:00
pmf.h platform/x86/amd/pmf: Fix to update SPS thermals when power supply change 2023-01-30 14:30:57 +01:00
sps.c platform/x86/amd/pmf: Fix to update SPS default pprof thermals 2023-01-30 14:30:57 +01:00