diff options
author | Shyam Sundar S K <Shyam-sundar.S-k@amd.com> | 2023-04-09 20:53:46 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-04-11 10:37:30 +0200 |
commit | 8d99129eef8f42377b41c1bacee9f8ce806e9f44 (patch) | |
tree | f9ac747b912fde2817071683bd9d85d640611877 /fs/ufs | |
parent | platform/x86/amd: pmc: Utilize SMN index 0 for driver probe (diff) | |
download | linux-8d99129eef8f42377b41c1bacee9f8ce806e9f44.tar.xz linux-8d99129eef8f42377b41c1bacee9f8ce806e9f44.zip |
platform/x86/amd: pmc: Move out of BIOS SMN pair for STB init
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_6, 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: 426c0ff27b83 ("platform/x86: amd-pmc: Add support for AMD Smart Trace Buffer")
Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20230409185348.556161-7-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'fs/ufs')
0 files changed, 0 insertions, 0 deletions