Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12832019pxu; Sat, 2 Jan 2021 13:13:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7hNhaKf2EWQFirVMu+VMIJeXntQOVOXtzgcJwi2AK1dXq5LKhs0vImcLsC6Ra7l5Dq+kz X-Received: by 2002:a17:906:4544:: with SMTP id s4mr60526803ejq.366.1609622009239; Sat, 02 Jan 2021 13:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609622009; cv=none; d=google.com; s=arc-20160816; b=weq7ztC0t13lKKzMHBec2CBuhtUXn3sat6YS+RmB2DmjWpJHqEMYA2KogJTK1Y+VVI Sp1mXslt7GWB4shrSWb1my/dnWrpr2y7XKqRxVlWU6Ix4WlQ2FvntRD7chRXT470Dcz3 VQAculaEWfmK9ukAySuNeZnsm4u3qC+XsuiEbGafQHDbO3PKrbDNT+RvU7VJzl+22HGj 4AMpvk59gP6njmRbIV+kmgyyg6YO34ZUiPJHnK5vHYbPbnePTArH+CuSC26OjRAxM881 oxz22LcqS6ub4d2LNrBq/XY2sCoyfdop5marmWt2DBoB3WMO9SXx16eI49Q8qzjDJRe3 x46w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=YaP+l6yfw7RWszQIQXM2a0cO2RmrbHDJUs2ly9C/NEI=; b=djLbeukkJSW8nmwHbHmwU0+8DSSY0ZxfgSdvTzYqT4RS25nebX4g6e7Ad3bjCjoT0t TgIcgJtCYUoMVVg8OtVb5HfsCbNmpMDSPPIQf+8OG2I3sYOeJuhJtPP4NF27Eni0J1y+ XClzFrY3NOIuzbEaN3Q3e2+vcph03JWCAYSh3KWaUWGJxP4wGm0u9iP+Z7stexvCOROX MmKFvYcWZo/6pkhsqmlMcmI4SA3waWjDaM1N/Gdvb9D27JYi/gC19igW4c3L9rbeqgLF hylbCC7EOvpcK0W4CA9VewJZ98OsDneORv9wgDkWgksLlu804mSf4z+5TeMjobyiWf6F wC5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si29448175edn.541.2021.01.02.13.13.09; Sat, 02 Jan 2021 13:13:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726670AbhABVNI (ORCPT + 99 others); Sat, 2 Jan 2021 16:13:08 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:37102 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbhABVNH (ORCPT ); Sat, 2 Jan 2021 16:13:07 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kvoBs-0008W2-On; Sun, 03 Jan 2021 08:12:01 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sun, 03 Jan 2021 08:12:00 +1100 Date: Sun, 3 Jan 2021 08:12:00 +1100 From: Herbert Xu To: Tony W Wang-oc Cc: davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, TimGuo-oc@zhaoxin.com, CooperYan@zhaoxin.com, QiyuanWang@zhaoxin.com, HerryYang@zhaoxin.com, CobeChen@zhaoxin.com, SilviaZhao@zhaoxin.com Subject: Re: [PATCH] crypto: x86/crc32c-intel - Don't match some Zhaoxin CPUs Message-ID: <20210102211200.GA1750@gondor.apana.org.au> References: <1608028091-29439-1-git-send-email-TonyWWang-oc@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1608028091-29439-1-git-send-email-TonyWWang-oc@zhaoxin.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Dec 15, 2020 at 06:28:11PM +0800, Tony W Wang-oc wrote: > The driver crc32c-intel match CPUs supporting X86_FEATURE_XMM4_2. > On platforms with Zhaoxin CPUs supporting this X86 feature, when > crc32c-intel and crc32c-generic are both registered, system will > use crc32c-intel because its .cra_priority is greater than > crc32c-generic. > > When doing lmbench3 Create and Delete file test on partitions with > ext4 enabling metadata checksum, found using crc32c-generic driver > could get about 20% performance gain than using the driver crc32c-intel > on some Zhaoxin CPUs. > > This case expect to use crc32c-generic driver for these Zhaoxin CPUs > to get performance gain, so remove these Zhaoxin CPUs support from > crc32c-intel. > > Signed-off-by: Tony W Wang-oc > --- > arch/x86/crypto/crc32c-intel_glue.c | 21 +++++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) This does not seem to address the latest comment from hpa. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt