Received: by 10.192.165.156 with SMTP id m28csp644541imm; Mon, 16 Apr 2018 06:31:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/+rIvfBwsJBqthjCCQOeYuZbTg/DNVRuo931WxnRmXIqD5vYWeww5PDyhIRl75K8Zi5+Xt X-Received: by 2002:a17:902:2c83:: with SMTP id n3-v6mr15765282plb.317.1523885505543; Mon, 16 Apr 2018 06:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523885505; cv=none; d=google.com; s=arc-20160816; b=BB7KLvHb7bynbookTO+U5irayN5vOJq4mHOKrURAOvjS3KUNql9It1KTO8Ggv/vtZr jm3McNwN11JkIjf91tq8VWwLCCrYXIRm7H4+oK3HPuf7v0pmaRyCnUELDsTdkXy72Hhi eDSdsptUF5hYnmOpZ79zfPYQ83ONDjJRWOv0Y5XWKGa1g1cXHVjOPiUNNFNGnIUjpCrM W3ezITbFwJvMRuvRftIJoE2S0BYA3/OhMC3tKuPdC35jlH5bVfZyabsCYvllr8fgeTxC kiKkFs59lRidX9a/n9MRZStKm04Nqqg1C46YiFVUqJOQ8q5uO9KvOZwwiRWcS3jaGYTc ebNg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=bwjX28l6JYEUnvTBX7sWwvICS6yuaGAhrtue4Lqsa4k=; b=uiMQRgoQA3nNNihCl7aIK2RevcIJXDp2uZ5da+cysw5yMCTqVknU0XYDFm1UUmW+WQ A0e8XSAd38diSAyDaWddPZeOFNYF1jRCOTNu3fI4NLTAyKv/19CaSYNWxUSUWqnERYJr FMRHJZAaGe6aBz2zTOJBbbwIJrDYsTzDN+O4NjhnODizResWdvxI0JAAovyJwU+8M92l c25/xEqG1JYbszIlemWsDG5bIZx53G1z/M/qXiwyHdGQtASg/BUUtof/OsCUQLeLupzk UMj7HkZyYyECYZE1JsIa4hLcGBCi1vrLRPcD1+1AQ8Opbj0jwSR1RRinWqGUbQonrnLp oLFQ== 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 q23si956737pfi.282.2018.04.16.06.31.26; Mon, 16 Apr 2018 06:31:45 -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 S1755222AbeDPN2L (ORCPT + 99 others); Mon, 16 Apr 2018 09:28:11 -0400 Received: from mail.skyhub.de ([5.9.137.197]:57738 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754834AbeDPN2K (ORCPT ); Mon, 16 Apr 2018 09:28:10 -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 1iVQddJs4jGO; Mon, 16 Apr 2018 15:27:52 +0200 (CEST) Received: from pd.tnic (p200300EC2BC941007444ADDAC02BD314.dip0.t-ipconnect.de [IPv6:2003:ec:2bc9:4100:7444:adda:c02b:d314]) (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 8B2931EC07F2; Mon, 16 Apr 2018 15:27:52 +0200 (CEST) Date: Mon, 16 Apr 2018 15:27:31 +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 v2 1/2] x86/mce: new Centaur CPUs support MCE broadcasting Message-ID: <20180416132731.GB29072@pd.tnic> References: <1522640032-3357-1-git-send-email-davidwang@zhaoxin.com> <1522640032-3357-2-git-send-email-davidwang@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1522640032-3357-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 Mon, Apr 02, 2018 at 11:33:51AM +0800, David Wang wrote: > This patch is used to tell the kernel that newer Centaur CPU support Avoid writing "This patch" in the commit message of a patch. It is tautologically useless. > 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..c3db7ce 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) This code doesn't belong in the "apply_quirks" function but in __mcheck_cpu_init_vendor(). Just add a X86_VENDOR_CENTAUR case there. I know, I know, there's a similar Intel piece which does the same thing but all that quirks code should go to the vendor-specific init functions and the quirks function be deleted. One day when I get bored... > 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)) && arch/x86/kernel/cpu/mcheck/mce.c: In function ‘__mcheck_cpu_apply_quirks’: arch/x86/kernel/cpu/mcheck/mce.c:1688:64: error: ‘struct cpuinfo_x86’ has no member named ‘x86_mask’; did you mean ‘x86_model’? if ((c->x86 > 6 || (c->x86 == 6 && c->x86_model == 0xf && c->x86_mask >=0xe)) && ^~~~~~~~ x86_model and no, it needs to be x86_stepping. Also, ERROR: spaces required around that '>=' (ctx:WxV) #40: FILE: arch/x86/kernel/cpu/mcheck/mce.c:1697: + if ((c->x86 > 6 || (c->x86 == 6 && c->x86_model == 0xf && c->x86_mask >=0xe)) && ^ Please integrate scripts/checkpatch.pl into your patch creation workflow. Some of the warnings/errors *actually* make sense. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.