Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932468AbdIIQca (ORCPT ); Sat, 9 Sep 2017 12:32:30 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:43004 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757527AbdIIQc3 (ORCPT ); Sat, 9 Sep 2017 12:32:29 -0400 Date: Sat, 9 Sep 2017 18:32:25 +0200 From: Markus Trippelsdorf To: Borislav Petkov Cc: Andy Lutomirski , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , LKML , Ingo Molnar , Tom Lendacky Subject: Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf Message-ID: <20170909163225.GA290@x4> References: <20170909063908.GA277@x4> <20170909101810.a757cja7vslofyrj@pd.tnic> <20170909110749.GA277@x4> <20170909130727.3jjnc6p5g45dihmy@pd.tnic> <20170909133745.GA289@x4> <20170909133954.GB289@x4> <20170909140700.bp7jonmp7etlb7ov@pd.tnic> <20170909142014.GC289@x4> <20170909143335.ja2iwjsbeyfxz4ez@pd.tnic> <20170909144350.GA290@x4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170909144350.GA290@x4> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1562 Lines: 49 On 2017.09.09 at 16:43 +0200, Markus Trippelsdorf wrote: > On 2017.09.09 at 16:33 +0200, Borislav Petkov wrote: > > On Sat, Sep 09, 2017 at 04:20:14PM +0200, Markus Trippelsdorf wrote: > > > > # rdmsr -a 0x00000410 > > > > > > 3fffffff > > > 0 > > > 0 > > > 0 > > > > WTF?! Those should be equal on every CPU. Yikes, we need to pay > > attention to those... Grrr. > > > > # wrmsr -a 0x00000410 0x3ffffbff > > > > should fix your issue. > > No, it doesn't work: > > x4 ~ # rdmsr -a 0x00000410 > 3fffffff > 0 > 0 > 0 > x4 ~ # wrmsr -a 0x00000410 0x3ffffbff > x4 ~ # rdmsr -a 0x00000410 > 3ffffbff > 0 > 0 > 0 Also tried the following patch. It does not help. diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 3b413065c613..9ee1edb0929f 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -1580,7 +1580,7 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c) /* This should be disabled by the BIOS, but isn't always */ if (c->x86_vendor == X86_VENDOR_AMD) { - if (c->x86 == 15 && cfg->banks > 4) { + if ((c->x86 == 15 || c->x86 == 16) && cfg->banks > 4) { /* * disable GART TBL walk error reporting, which * trips off incorrectly with the IOMMU & 3ware -- Markus