[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/mce_intel: refine messages of MCA capabilities
commit e8c437eba5f61ae948796504b65ca9588c5bca00 Author: Haozhong Zhang <haozhong.zhang@xxxxxxxxx> AuthorDate: Mon Mar 20 16:58:33 2017 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Mar 20 16:58:33 2017 +0100 x86/mce_intel: refine messages of MCA capabilities ... to only print available ones. Suggested-by: Jan Beulich <jbeulich@xxxxxxxx> Signed-off-by: Haozhong Zhang <haozhong.zhang@xxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/cpu/mcheck/mce_intel.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/xen/arch/x86/cpu/mcheck/mce_intel.c b/xen/arch/x86/cpu/mcheck/mce_intel.c index 3281478..9566218 100644 --- a/xen/arch/x86/cpu/mcheck/mce_intel.c +++ b/xen/arch/x86/cpu/mcheck/mce_intel.c @@ -724,11 +724,15 @@ static void intel_init_mca(struct cpuinfo_x86 *c) first = mce_firstbank(c); +#define CAP(enabled, name) ((enabled) ? ", " name : "") if (smp_processor_id() == 0) { - dprintk(XENLOG_INFO, "MCA Capability: BCAST %x SER %x" - " CMCI %x firstbank %x extended MCE MSR %x\n", - broadcast, ser, cmci, first, ext_num); + dprintk(XENLOG_INFO, + "MCA capability: firstbank %d, %d ext MSRs%s%s%s\n", + first, ext_num, + CAP(broadcast, "BCAST"), + CAP(ser, "SER"), + CAP(cmci, "CMCI")); mce_broadcast = broadcast; cmci_support = cmci; @@ -739,12 +743,15 @@ static void intel_init_mca(struct cpuinfo_x86 *c) else if (cmci != cmci_support || ser != ser_support || broadcast != mce_broadcast || first != firstbank || ext_num != nr_intel_ext_msrs) - { dprintk(XENLOG_WARNING, - "CPU %u has different MCA capability (%x,%x,%x,%x,%x)" + "CPU%u has different MCA capability " + "(firstbank %d, %d ext MSRs%s%s%s)" " than BSP, may cause undetermined result!!!\n", - smp_processor_id(), broadcast, ser, cmci, first, ext_num); - } + smp_processor_id(), first, ext_num, + CAP(broadcast, "BCAST"), + CAP(ser, "SER"), + CAP(cmci, "CMCI")); +#undef CAP } static void intel_mce_post_reset(void) -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |