Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

From: Markus Trippelsdorf
Date: Sat Sep 09 2017 - 10:29:12 EST


On 2017.09.09 at 16:07 +0200, Borislav Petkov wrote:
> On Sat, Sep 09, 2017 at 03:39:54PM +0200, Markus Trippelsdorf wrote:
> > > mce: [Hardware Error]: CPU: 0 Machine Check Exception: 4 Bank 4: fa000010000b0c0f
> > > mce: [Hardware Error]: TSC b75d6ef4ad MISC c00a00001000000
> > > mce: [Hardware Error]: PROCESSOR 2:100f42 TIME 1504963036 SOCKET 0 APIC 0 microcode 1000db
> >
> > Decoded:
> >
> > CPU: 0 Machine Check Exception: 4 Bank 4: fa000010000b0c0f
> > Hardware event. This is not a software error.
> > CPU 0 0 data cache TSC b75d6ef4ad
> > TIME 1504963036 Sat Sep 9 15:17:16 2017
> > STATUS 0 MCGSTATUS 0
> > CPUID Vendor AMD Family 16 Model 4
> > SOCKET 0 APIC 0 microcode 1000db
>
> Yeah, this is not really decoding it - I need to address that case of
> uncorrectable MCE not being decoded too.
>
> In any case, it is not E383:
>
> MC4_STATUS[Val|Over|UC|EN|MiscV|PCC|UECC|EEC: GART cache table walk encountered an invalid PTE (0x05)|ET: TLB(tt:GEN;ll:LG)]: 0xfa0020000005001b
>
> And those should actually be masked out:
>
> "BIOS is recommended to mask GART table walk errors by setting the bit
> in MSRC001_0048 corresponding to F3x40[GartTblWkEn]."
>
> And we disable those but for some reason, it doesn't stick :-)
>
> Do
>
> # rdmsr -a 0x00000410

3fffffff
0
0
0

> # rdmsr -a 0xc0010048

780400
780400
780400
780400

--
Markus