Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2863598pxu; Mon, 14 Dec 2020 12:43:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6UvfBUPSbs+T0ueYT/8q4Rik1P5z23ADxM1bLJ+AIb6SzPtUjsXRAyhPlznwqlnbmymuX X-Received: by 2002:aa7:cb49:: with SMTP id w9mr27602975edt.357.1607978631373; Mon, 14 Dec 2020 12:43:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607978631; cv=none; d=google.com; s=arc-20160816; b=lEATCyGmXsGb8nMbWvjvp+liehIWW7a2c7BWMiKVdMTyws1s1UixDesjae/t0w4PXU YfSdHgGQX6Jh1tQKvoKmWBdWfiI0jkydiFIcuJaky8a/PRNpTQ18kut1wk8+J1lrLQ8T Dpt/sUyhWpLW4Zy1hw7GWfPSRIbktWjweYE1n5N1AFvtVUcuo2Ho3hAmaLSV0qXoNGZK ZCwSdE1Xq460E4ofqHC144cS/PlQW1B6qAm0WwdjFxW8nGqLvqgffdmyr/LZNvqE5tYQ kAa87xNkq3uGxFBvSx9QriPqXjQLW7IbFSLccy8fJ+kGvGtWnHSzoWak0Yk1xZz3UHRM rYvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=nxSdyDor5ytnz3z2UeAC9624ekPLq7bKZsJ0OUyEv4U=; b=W99l/nniA86KNEhoKJW2FVAA5uRpwTiVlFv0YKu7FWEHUbBSjHk//+dGokw5G+Eckb 0XU2Ah9Tpv3Spfra3AVHT1mKXBmBa7ThuRto8fnnhlmKjH85XQb6RpP90R+2CI/OoAxP jzL/9z8uZjhoinTll+LWYwXzc9yyV70DWEQCnD/MSv/uXSi6srSVhLs+diEbB88mNoZY +O0nO/vFYF5id8Lqz+HJhbU02Q1gQzZcP03Zi1L+TjXDFpKfVofNIdycWJeXGLEgKMdc McK7Ddw0y42heCTzmUiSwazEww2q/gXaWnQY1VxbdyuLl4c6nFkKTLgtoSECssW5orpD 3Bew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/SHUzEA"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si13021861edt.525.2020.12.14.12.43.27; Mon, 14 Dec 2020 12:43:51 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/SHUzEA"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503472AbgLNUmF (ORCPT + 99 others); Mon, 14 Dec 2020 15:42:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:34152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503465AbgLNUmA (ORCPT ); Mon, 14 Dec 2020 15:42:00 -0500 Date: Mon, 14 Dec 2020 12:41:18 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607978479; bh=bZ5V7cOF7Y3xEFjRNlJqO2zCRUqXweheRPkf/g8LBCE=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=q/SHUzEA9Fb7pfRUiNH3yy5W3V2/z/6ZJ41cbKshqUZC7G7kjPc0LeyPXmKO1kGfQ B5/WkyrjNdgEBTpCSLTNsldwIkF57ta9xS2jV6GJls1roMtGCM7JIkhnOre+W7/U+X y4y2LYeQSWM8l8FKZTarm2+1jEdRBeL2iEmHxyEADkq27oiXc4uovchXd5TWWXmScs QtFRIJipqi7+HIL5z4zG91R3kPvU1M04YeVqg5nQ/kCOI7SRRoO+sjLwFys/Jxwozc eKVdosF3I8Q2WrqpGhKhCQKDHc0+z78WvVts/XyYxgX7qf63IJhT9+wFNVEdfeIBP1 5m4zUr/fqa+1Q== From: Eric Biggers To: Tony W Wang-oc Cc: herbert@gondor.apana.org.au, 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: References: <1607686144-2604-1-git-send-email-TonyWWang-oc@zhaoxin.com> <1f8d17bf-c1d9-6496-d2f8-5773633011fb@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1f8d17bf-c1d9-6496-d2f8-5773633011fb@zhaoxin.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Dec 14, 2020 at 10:28:19AM +0800, Tony W Wang-oc wrote: > On 12/12/2020 01:43, Eric Biggers wrote: > > On Fri, Dec 11, 2020 at 07:29:04PM +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. This case expect to use crc32c-generic driver for > >> some Zhaoxin CPUs to get performance gain, So remove these Zhaoxin > >> CPUs support from crc32c-intel. > >> > >> Signed-off-by: Tony W Wang-oc > > > > Does this mean that the performance of the crc32c instruction on those CPUs is > > actually slower than a regular C implementation? That's very weird. > > > > From the lmbench3 Create and Delete file test on those chips, I think yes. > Did you try measuring the performance of the hashing itself, and not some higher-level filesystem operations? - Eric