]> git.baikalelectronics.ru Git - kernel.git/commit
x86/MCE/AMD: Allow thresholding interface updates after init
authorYazen Ghannam <yazen.ghannam@amd.com>
Mon, 17 Jan 2022 16:13:28 +0000 (16:13 +0000)
committerBorislav Petkov <bp@suse.de>
Sun, 23 Jan 2022 19:50:18 +0000 (20:50 +0100)
commit510aff01f44553426352bba4c4e015c8dd034b2c
tree106ab13872e9b8bff9ea520837bc215399073565
parent6e424e6bafec35e47db4b693fe41eff065b7dbf6
x86/MCE/AMD: Allow thresholding interface updates after init

Changes to the AMD Thresholding sysfs code prevents sysfs writes from
updating the underlying registers once CPU init is completed, i.e.
"threshold_banks" is set.

Allow the registers to be updated if the thresholding interface is
already initialized or if in the init path. Use the "set_lvt_off" value
to indicate if running in the init path, since this value is only set
during init.

Fixes: 99a8457d7121 ("x86/mce/amd: Make threshold bank setting hotplug robust")
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220117161328.19148-1-yazen.ghannam@amd.com
arch/x86/kernel/cpu/mce/amd.c