Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp88732pxu; Wed, 6 Jan 2021 22:29:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1RunQmXhkmebbWWFsY5z/zQcRydy5Q3A7/fpwwE3V+t6kIrcepVJYQBJdCHin71IAQdnu X-Received: by 2002:a17:906:76c9:: with SMTP id q9mr5402546ejn.484.1610000943359; Wed, 06 Jan 2021 22:29:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610000943; cv=none; d=google.com; s=arc-20160816; b=aQURmvNRIbINZDmG8a0IO+4gu7HUvU6YyttXNk6/1eZ01EKZq5P3Z3NQPwLDbSbmhn PQ9H6UmuMuWVfarZkj6GaMOGKhGnPFDFfIBGPsaj+R1V/41X5Ci6lURBsjerTesaOPCo FYc40inBbnj36JkkzJLlrDC+HOTiuG31U+Kvayg64mzUF11FFOn9X8TZyzc9sTQmJXLK IuBVP46zjGkHNXX8Ij8M35gBi7igZLpJ+Brkvpy6XTDUlmyrJyAGjjmDdwkCDRdOaar0 K+bag1viZHy97R87Xk0z/dk98FGtlnMdqe+xaQPhjj4nkPyF47ywFKCE7DyhnHj6TI6y 6mhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=5wsmWaR4bWqveorMLQxIarpvbfgrEqCIwT11EaIiwpY=; b=W6chPWFAT3RHNf4wGU4Os9sTIT4Pcxnx9eYeXq9SZNnpg1p3X9UcayRImNDJ4FR7uK JcnjlFDYhNqvoMs4RzX26GAFzScoDgFd+XudGxF3bPtrwGl3SioN9iXYhzuxiW39eil0 ddbNpvMs0npSIBw2KUefL35CrUhpe1TWaDdXp75omRZuG4yrvay/noJXNmvco7wNA2/b uEWjfQQeSFe0HKe8C0BoPpLTXan2q9Jz0aK17ooRp8De0fV6vyra7AIWWL11KTypg4xv AipkIdWFxu9Zxj1/8blCweSo7exQ++TJigUikNTi85yQ9mXNc5sjAUaLzlMJGLsmhbHJ U9vQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 n22si1780585ejr.464.2021.01.06.22.28.40; Wed, 06 Jan 2021 22:29:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726013AbhAGG1t (ORCPT + 99 others); Thu, 7 Jan 2021 01:27:49 -0500 Received: from ZXSHCAS2.zhaoxin.com ([203.148.12.82]:46886 "EHLO ZXSHCAS2.zhaoxin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbhAGG1s (ORCPT ); Thu, 7 Jan 2021 01:27:48 -0500 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 7 Jan 2021 14:27:06 +0800 Received: from [10.32.56.37] (10.32.56.37) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 7 Jan 2021 14:27:04 +0800 Subject: Re: [PATCH] crypto: x86/crc32c-intel - Don't match some Zhaoxin CPUs To: Herbert Xu CC: , , , , , , , , , , , , , References: <1608028091-29439-1-git-send-email-TonyWWang-oc@zhaoxin.com> <20210102211200.GA1750@gondor.apana.org.au> From: Tony W Wang-oc Message-ID: <464482ed-bce6-7e55-bd34-b3be736a6e8b@zhaoxin.com> Date: Thu, 7 Jan 2021 14:27:00 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20210102211200.GA1750@gondor.apana.org.au> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.32.56.37] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) To zxbjmbx1.zhaoxin.com (10.29.252.163) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/01/2021 05:12, Herbert Xu wrote: > 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. > Yes, please ignore this patch. Have send new patch set per Hpa's suggestion. Sincerely Tonyw > Thanks, >