lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 27 Oct 2009 12:42:29 -0700 From: Mike Travis <travis@....com> To: Roland Dreier <rdreier@...co.com> CC: Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>, "H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org, x86@...nel.org Subject: Re: [PATCH] x86: Don't print number of MCE banks for every CPU Hi Roland, I've found that I'm getting one of these lines for every cpu: mce: CPU supports 0 MCE banks Regards, Mike Roland Dreier wrote: > The MCE initialization code explicitly says it doesn't handle asymmetric > configurations where different CPUs support different numbers of MCE > banks, and it prints a big warning in that case. Therefore, printing > the "mce: CPU supports <x> MCE banks" message into the kernel log for > every CPU is pure redundancy that clutters the log significantly for > systems with lots of CPUs. > > Signed-off-by: Roland Dreier <rolandd@...co.com> > --- > arch/x86/kernel/cpu/mcheck/mce.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c > index b1598a9..721a77c 100644 > --- a/arch/x86/kernel/cpu/mcheck/mce.c > +++ b/arch/x86/kernel/cpu/mcheck/mce.c > @@ -1214,7 +1214,8 @@ static int __cpuinit mce_cap_init(void) > rdmsrl(MSR_IA32_MCG_CAP, cap); > > b = cap & MCG_BANKCNT_MASK; > - printk(KERN_INFO "mce: CPU supports %d MCE banks\n", b); > + if (!banks) > + printk(KERN_INFO "mce: CPU supports %d MCE banks\n", b); > > if (b > MAX_NR_BANKS) { > printk(KERN_WARNING > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@...r.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists