Partial revert of "x86/MCE: optional build of AMD/Intel MCE code"
PATCH 1/1 Partial revert of "x86/MCE: optional build of AMD/Intel MCE code"
{cmci,lmce}_support are written during S3 resume, so cannot live in __ro_after_init. Move them back to being __read_mostly, as they were originally.
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Sergiy Kibrik <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Oleksii Kurochko <[email protected]>
We're past feature freeze and this was a silent change in a patch, which was also untested. A 30s look at mcheck_init() shows clearly that it's not a 30s job to fix.
--- xen/arch/x86/cpu/mcheck/mce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/cpu/mcheck/mce.c +2 -2
@@ -38,10 +38,10 @@ DEFINE_PER_CPU_READ_MOSTLY(unsigned int, nr_mce_banks);unsigned int __read_mostly firstbank;unsigned int __read_mostly ppin_msr;uint8_t __read_mostly cmci_apic_vector; -bool __ro_after_init cmci_support; +bool __read_mostly cmci_support;/* If mce_force_broadcast == 1, lmce_support will be disabled forcibly. */ -bool __ro_after_init lmce_support; +bool __read_mostly lmce_support; DEFINE_PER_CPU_READ_MOSTLY(struct mca_banks *, poll_bankmask); DEFINE_PER_CPU_READ_MOSTLY(struct mca_banks *, no_cmci_banks);
base-commit: 0840bc5ea114f536a4bdfb2ca095b79f2069aae6
Signature · 1 line
2.30.2
Quoted 7 lines · Andrew Cooper
{cmci,lmce}_support are written during S3 resume, so cannot live in
__ro_after_init. Move them back to being__read_mostly, as they were originally.Fixes 19b6e9f9149f ("x86/MCE: optional build of AMD/Intel MCE code")Signed-off-by Andrew Cooper <[email protected]>
Quoted 14 lines · Andrew Cooper
{cmci,lmce}_support are written during S3 resume, so cannot live in __ro_after_init. Move them back to being
__read_mostly, as they were originally.Fixes 19b6e9f9149f ("x86/MCE: optional build of AMD/Intel MCE code")Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Sergiy Kibrik <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Oleksii Kurochko <[email protected]>
Quoted 6 lines
We're past feature freeze and this was a silent change in a patch, which was
also untested. A 30s look atmcheck_init()shows clearly that it's not a 30s
job to fix.
---
~ Oleksii
Quoted 25 lines
xen/arch/x86/cpu/mcheck/mce.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)xen/arch/x86/cpu/mcheck/mce.c +1
-1@@ -38,10 +38,10 @@ DEFINE_PER_CPU_READ_MOSTLY(unsigned int, nr_mce_banks); unsigned int __read_mostly firstbank; unsigned int __read_mostly ppin_msr; uint8_t __read_mostly cmci_apic_vector; -bool __ro_after_init cmci_support; +bool __read_mostly cmci_support;
/* Ifmce_force_broadcast== 1,lmce_supportwill be disabled forcibly. */xen/arch/x86/cpu/mcheck/mce.c +1
-1-bool __ro_after_init lmce_support; +bool __read_mostly lmce_support;
DEFINE_PER_CPU_READ_MOSTLY(structmca_banks*,poll_bankmask);DEFINE_PER_CPU_READ_MOSTLY(struct mca_banks *, no_cmci_banks);base-commit:
0840bc5ea114f536a4bdfb2ca095b79f2069aae6