Message ID | 157597242273.30329.4326721384243738456.tip-bot2@tip-bot2 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [tip:,ras/core] x86/mce/AMD: Allow Reserved types to be overwritten in smca_banks[] | expand |
> -----Original Message----- > From: tip-bot2@linutronix.de <tip-bot2@linutronix.de> > Sent: Tuesday, December 10, 2019 5:07 AM > To: linux-tip-commits@vger.kernel.org > Cc: Ghannam, Yazen <Yazen.Ghannam@amd.com>; Borislav Petkov <bp@suse.de>; H. Peter Anvin <hpa@zytor.com>; Ingo Molnar > <mingo@kernel.org>; linux-edac <linux-edac@vger.kernel.org>; Thomas Gleixner <tglx@linutronix.de>; Tony Luck > <tony.luck@intel.com>; x86-ml <x86@kernel.org>; LKML <linux-kernel@vger.kernel.org> > Subject: [tip: ras/core] x86/mce/AMD: Allow Reserved types to be overwritten in smca_banks[] > > The following commit has been merged into the ras/core branch of tip: > > Commit-ID: a0cac35c1d83184151be4851ea90b5f920957967 > Gitweb: ... > Author: Yazen Ghannam <yazen.ghannam@amd.com> > AuthorDate: Thu, 21 Nov 2019 08:15:08 -06:00 > Committer: Borislav Petkov <bp@suse.de> > CommitterDate: Tue, 10 Dec 2019 09:27:59 +01:00 > > x86/mce/AMD: Allow Reserved types to be overwritten in smca_banks[] > Boris, Can this please be applied to ras/urgent? It fixes a boot issue on some recently released AMD systems. I had the Fixes tag, but I forgot to include CC:<stable>. Sorry about that. Thanks, Yazen
On Tue, Dec 17, 2019 at 01:49:13AM +0000, Ghannam, Yazen wrote: > Can this please be applied to ras/urgent? It fixes a boot issue on some > recently released AMD systems. > > I had the Fixes tag, but I forgot to include CC:<stable>. Sorry about that. Ok, I've reshuffled ras/core and ras/urgent and pushed them out. I'd appreciate it if you ran the urgent branch too, on your end. I tested on everything I have here but my hw doesn't trigger any boot hang issues anyway. If you have people reporting issues, now would be a good time for them to test it too. Thx.
diff --git a/arch/x86/kernel/cpu/mce/amd.c b/arch/x86/kernel/cpu/mce/amd.c index e41e3b4..d6cf5c1 100644 --- a/arch/x86/kernel/cpu/mce/amd.c +++ b/arch/x86/kernel/cpu/mce/amd.c @@ -266,7 +266,7 @@ static void smca_configure(unsigned int bank, unsigned int cpu) smca_set_misc_banks_map(bank, cpu); /* Return early if this bank was already initialized. */ - if (smca_banks[bank].hwid) + if (smca_banks[bank].hwid && smca_banks[bank].hwid->hwid_mcatype != 0) return; if (rdmsr_safe(MSR_AMD64_SMCA_MCx_IPID(bank), &low, &high)) {