Received: by 10.213.65.68 with SMTP id h4csp177561imn; Fri, 30 Mar 2018 03:28:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+9xQxjQiL9M7BkoHpgP3t7i7nz+l2m0X9BBTI1lMC0Q3lHn+JiHKyxNDOy9IZPg9yYiGQY X-Received: by 10.98.217.139 with SMTP id b11mr9474640pfl.113.1522405730614; Fri, 30 Mar 2018 03:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522405730; cv=none; d=google.com; s=arc-20160816; b=PPX3gxfvE1UHUu1A3HnA6UOOTZpD0vPSKIOWRNgvG8ILbvmbJJqkSqQu3LjBpYo9fC /vjpLG6OpqmfJ/RDuqYkjv9Nlqv2Vxt8eGb9KoPkS2ETFHx37cLjYtZYvS4Go0lMOWLI oQVqxs3LHvDm171tkfNF5TGHQJudVteVZmSLbJMzkNqmgVNoPjOMHCsqC7FePCm+2Ss4 qMpG9BgRtovjPxSE+2yDNOALQOa8086g5nvcfpcBMEDdkBhEWl8N2QujxXdkrlMOqKTc cbIYCWp+Wbc/qg5lpj6kZ6bW6Gtpy1MFPr1nYJ2DO6vCMIiNVPYBvGaN22y4EdzBzzlj NJaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=rlzJeykhgM8VqEOK+V5a7RK5JUv3op1ixNsRYvXFxik=; b=HURuDTjyDmLFOyD880bVrdwYq3tYSrgtEFZfX8Y0twiyC4OzMBfy4taznTeAxwBlrx 3kbLry4bIfPQ4uLR+GfI+HuQ90lAPw2a3so9nBxACVDEhkW2Aty897q1yfr3GdBBynmC 1CIDmPmSsNU4CyXgxLq8qC1h3xDXHe28gd614KpYBnpEIq8KRtFZ7iRHF/jfNEd4qCp+ jBOFsBGWpJhhPxrY389SJFpIOrjldpO9A6nB+WVi37Zm7ArUpT9Y/X6ogdTX+HsEOrRH 8AqnN+l5IV2K1/RUSfpvxuWw/cnFhgqbhN5qGItA4YFokZXdtlEISHgbjpbIUe+rliao JAYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si3428904plq.334.2018.03.30.03.28.37; Fri, 30 Mar 2018 03:28:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751195AbeC3K1V (ORCPT + 99 others); Fri, 30 Mar 2018 06:27:21 -0400 Received: from mail.skyhub.de ([5.9.137.197]:56966 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750790AbeC3K1U (ORCPT ); Fri, 30 Mar 2018 06:27:20 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Ompg_Df1nXO4; Fri, 30 Mar 2018 12:27:03 +0200 (CEST) Received: from pd.tnic (p200300EC2BC92400CDAD2CDDE46012EA.dip0.t-ipconnect.de [IPv6:2003:ec:2bc9:2400:cdad:2cdd:e460:12ea]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 084671EC0339; Fri, 30 Mar 2018 12:27:03 +0200 (CEST) Date: Fri, 30 Mar 2018 12:26:21 +0200 From: Borislav Petkov To: David Wang Cc: tony.luck@intel.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, brucechang@via-alliance.com, cooperyan@zhaoxin.com, qiyuanwang@zhaoxin.com, benjaminpan@viatech.com, lukelin@viacpu.com, timguo@zhaoxin.com Subject: Re: [PATCH 1/2] x86/mce: new centaur CPUs support MCE broadcasting Message-ID: <20180330102621.GA30063@pd.tnic> References: <1522403622-31146-1-git-send-email-davidwang@zhaoxin.com> <1522403622-31146-2-git-send-email-davidwang@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1522403622-31146-2-git-send-email-davidwang@zhaoxin.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 30, 2018 at 05:53:41PM +0800, David Wang wrote: > This patch is used to tell the kernel that newer Centaur CPU support MCE > broadcasting. > > Signed-off-by: David Wang > --- > arch/x86/kernel/cpu/mcheck/mce.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c > index 7065846..82b25e1 100644 > --- a/arch/x86/kernel/cpu/mcheck/mce.c > +++ b/arch/x86/kernel/cpu/mcheck/mce.c > @@ -1688,6 +1688,17 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c) > if (c->x86 == 6 && c->x86_model == 45) > quirk_no_way_out = quirk_sandybridge_ifu; > } > + > + if (c->x86_vendor == X86_VENDOR_CENTAUR) { > + /* > + * All newer centaur CPUs support MCE broadcasting. Enable > + * synchronization with a one second timeout. > + */ > + if ((c->x86 > 6 || (c->x86 == 6 && c->x86_model == 0xf && c->x86_mask >=0xe)) && Are some specs or manuals available somewhere on the web for those? Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.