Re: [PATCH] x86/mce: Do not use bank 1 for APEI generated error logs.
From: Borislav Petkov
Date: Sat May 28 2016 - 03:34:12 EST
On Fri, May 27, 2016 at 02:11:06PM -0700, Tony Luck wrote:
> diff --git a/arch/x86/kernel/cpu/mcheck/mce-apei.c b/arch/x86/kernel/cpu/mcheck/mce-apei.c
> index 34c89a3e8260..9d2c02337713 100644
> --- a/arch/x86/kernel/cpu/mcheck/mce-apei.c
> +++ b/arch/x86/kernel/cpu/mcheck/mce-apei.c
> @@ -46,7 +46,7 @@ void apei_mce_report_mem_error(int severity, struct cper_sec_mem_err *mem_err)
> return;
>
> mce_setup(&m);
> - m.bank = 1;
> + m.bank = mca_cfg.banks;
There's struct cper_sec_mem_err.bank. Why aren't we copying that?
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--