diff options
author | Shyam Sundar S K <Shyam-sundar.S-k@amd.com> | 2023-04-06 22:18:07 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-11 23:03:14 +0900 |
commit | 1c1798c45b40106c338de4730b59cf506af6a7fc (patch) | |
tree | a139e7234014cfc5ba7dfc7f43a96165a0facfd8 /drivers/platform/x86/amd/pmc.c | |
parent | 6a17add9c61030683b9c1fc86878f00a2d318a95 (diff) |
platform/x86/amd/pmf: Move out of BIOS SMN pair for driver probe
[ Upstream commit aec8298c093f052fc8a86f9411b69b23953b0edb ]
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: da5ce22df5fe ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/platform/x86/amd/pmc.c')
0 files changed, 0 insertions, 0 deletions