Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3345974ybd; Tue, 25 Jun 2019 00:40:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCVYDsSRQ4GsBz1SSA9MgobZ4dsXiayEkZ4xNeuJplP4L0G6+krUqS7UFfcZ1f3NJkOPEb X-Received: by 2002:a17:902:404:: with SMTP id 4mr9436388ple.200.1561448432127; Tue, 25 Jun 2019 00:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561448432; cv=none; d=google.com; s=arc-20160816; b=PsRJKLsETJAWSTIoUMkXDmbqxlmptJXzEXsEqJu66HCrf3uD6qGjhFUnrpSy8/KKkT I8lE+wbg3usnykVo366ZFF0T8wzNBEhcH2o7vmNjkWLnhow4cqmu3ezgbvhwqtODcZdZ 1U58jhPKN4zuKVvkyd0g+qAQdvSuGWPep3O9HHepYBAFRqoeeAcV7wwYdiJdVnc5+UGS iSHEnvAemttIqLNV1PvIg0l5yEBB++eFKDgdfiNzT72b+ZF0ZTIjdc4Yz/Wdw9POcDbs tzbttTtsx6LEc/3y03UpSfHHCtaQAuDzMfq2HMqYLLe0o8kyuVNPyh0ICUKj+KMDnXkM k4nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=nvUlQa5pnL1WLMylxkVLA3Y4c4+HRDWY0urvwE8OOqg=; b=X8Y2hwaijykaLgWL0N5RlKOdzCfJHp/qGLq5y5T7OspKN/l7kvzTojqrWYNoUUT+E8 bhhAAQ3DWjDFY6Ff6FKk9HXE8YoL+Db0/Sjcdk9gKsche8uNdBp0IzYQSbDzKsw3cUse 3pV5EZCkjqhBO26by4xvoEQk7hymJGtIdDYLLpvBBB5GfY4RzyHdN/S0UuVv7WXyZW// LKNTJnsOt38QVn4zLPgDEh4bjsDv4m3eZhiHvaUNItw/XtzYi5tq/aJ1k2ph6WJMeifL Lxz/Oqwmt8uJr31Nukn52Vm+VvjCKTEfIEteU3aPfu8rvqi8r/8ibUgapIQc9ITT/6u+ Pl3g== 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 q3si2428312pjb.1.2019.06.25.00.40.16; Tue, 25 Jun 2019 00:40:32 -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 S1727978AbfFYGbU (ORCPT + 99 others); Tue, 25 Jun 2019 02:31:20 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:40671 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729241AbfFYGbU (ORCPT ); Tue, 25 Jun 2019 02:31:20 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hfeyz-0005m1-Oq; Tue, 25 Jun 2019 08:31:09 +0200 Date: Tue, 25 Jun 2019 08:31:08 +0200 (CEST) From: Thomas Gleixner To: Tony W Wang-oc cc: Joe Perches , "Herry Yang(BJ-RD)" , "Cooper Yan(BJ-RD)" , "linux-kernel@vger.kernel.org" , "hpa@zytor.com" , "lenb@kernel.org" , "gregkh@linuxfoundation.org" , "Qiyuan Wang(BJ-RD)" , "mingo@kernel.org" , David Wang , "rjw@rjwysocki.net" , "linux-tip-commits@vger.kernel.org" Subject: =?GB2312?Q?Re=3A_=B4=F0=B8=B4=3A_=5Btip=3Ax86=2Fcpu=5D_x86=2Fcpu=3A?= =?GB2312?Q?_Create_Zhaoxin_processors_architecture_support_fi?= =?GB2312?Q?le?= In-Reply-To: <505e342c814e4b29ae2a23a6eaf63ea7@zhaoxin.com> Message-ID: References: <01042674b2f741b2aed1f797359bdffb@zhaoxin.com> <7ec724a310a710e6415320ff530daba0e1d30505.camel@perches.com> <505e342c814e4b29ae2a23a6eaf63ea7@zhaoxin.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tony, On Tue, 25 Jun 2019, Tony W Wang-oc wrote: > On Sun, Jun 23, 2019, Joe Perches wrote: > > > x86/cpu: Create Zhaoxin processors architecture support file > > > > > [] > > > diff --git a/arch/x86/kernel/cpu/zhaoxin.c b/arch/x86/kernel/cpu/zhaoxin.c > > [] > > > +static void init_zhaoxin_cap(struct cpuinfo_x86 *c) > > > +{ > > > + u32 lo, hi; > > > + > > > + /* Test for Extended Feature Flags presence */ > > > + if (cpuid_eax(0xC0000000) >= 0xC0000001) { > > > + u32 tmp = cpuid_edx(0xC0000001); > > > + > > > + /* Enable ACE unit, if present and disabled */ > > > + if ((tmp & (ACE_PRESENT | ACE_ENABLED)) == ACE_PRESENT) { > > > > trivia: > > > > Perhaps this is more intelligible for humans to read > > and it deduplicates the comment as: > > > > if ((tmp & ACE_PRESENT) && !(tmp & ACE_ENABLED)) > > > > The compiler produces the same object code. > > > > Thanks for the trivia, I will change this in the next version patch set. as you might have noticed from the tip bot commit notification mail, your patch set has been merged into the tip tree and is queued for the 5.3 merge window. So a new patch set is pointless. If at all then you can send a delta patch. Though I have to say, that I prefer the existing check: > > > + if ((tmp & (ACE_PRESENT | ACE_ENABLED)) == ACE_PRESENT) { It's pretty clear, but that's really a matter of personal preference. So from my side there is nothing to do at all. Thanks, tglx