Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp657839pxu; Fri, 11 Dec 2020 11:01:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3TGwtnZd4wswPhXrH52BApi4BxA8mYOguzCQu9NwU/2rc83+GBT9xz9q8UqWr5ZAm66DI X-Received: by 2002:a50:ccc8:: with SMTP id b8mr13220419edj.152.1607713294764; Fri, 11 Dec 2020 11:01:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607713294; cv=none; d=google.com; s=arc-20160816; b=ZrfW89XamDRDeR9tKDMYGvACh4d6SZj4SNAgJFGR777Oed7aDNjUCM67O2yTyrLhva kXe6AdcWXTam/Uld4Fj81W25H4kmFu+ztSX26u96obxA8Qz3n0fqmFQO7xnRLQjX5Rqb FLnxXAJB9ZdRqGPXumAiTmfGvCQC6rQGF+qI8umdsARjUNlVmDUld7JgbOY0JZh6+6WE Yh1Uig8KoPW60H/QsE5z8S1UFpLMM0NbZVlz7bWIKi8A5SL0yF1/QqVARu59Gevnn4Yo eFeXuszj0a7hH09K5zahUgbAlelnNXJafy3jEJm9Ykj+XOarZ0OntU+5oEAAW9W+Tw5V pTyA== 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=OuGo+aSNPpB2UmspSnseJLTydLC1xqxSbfPSo/ha0tw=; b=gUoE+GMfeJFJ+++KTchZ3Bg08Gz5wUE285uHQWzYFEB2+g3YS9gyqB9nZ6O36Z1eG1 sMWwzndlmfD4K7C+M5aOuztUzvQcVffxvuxlwAEKFp/VDZGrdNzauZ/f8svosiR+mLr/ li86w4Y2zG3RataGkOCUqcJIhp/lErEUWNX/sinhk/P7bCbPn7tfH9UfGATDFuAfqbbP qlbFXWzzrcXfxSoyZMmanThNC50pZ8Bn7YcRWx1Hv1YnZaJNuExXVhnBIYa+eGEtjzja CVTHOgiPAnAPDjCSKUaihBfvZ4WVI1GFqHipWOtorFduNxwWPuAA/BdNxDwHygSzImN6 Kn0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MEsY9jZz; 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 u5si5439048edi.314.2020.12.11.11.01.01; Fri, 11 Dec 2020 11:01:34 -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=MEsY9jZz; 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 S2395333AbgLKRom (ORCPT + 99 others); Fri, 11 Dec 2020 12:44:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:57874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395330AbgLKRoj (ORCPT ); Fri, 11 Dec 2020 12:44:39 -0500 Date: Fri, 11 Dec 2020 09:43:57 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607708639; bh=7nRRic/cUXS9Hr120HkaEBHl46oBlU5a4nWuOWcPCFM=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=MEsY9jZz2eeaM+mnf1yXNs0NqEbEnR/tGlBxqTngG/GgPHKPMN2KGA1wIt0eILUXH LJWYJhD4xe8YcXtKtrL+/zHYaAFgHr9pE9ccJtQjBaotXOQKVhoCbN2n8tQQ8uSIhj xiecXbJf+DaemV3DdBQR74EYj7fRiyBQ3Pq0lqv59XZG3tjiwVPTd1m8MfPhiS971z xC9YAFxmFHFe6g2TmrYLNq38X2wZKnpm0XORAeI6OJDXKZpHbVu7RsYE7RoNwwUfct aJXCmwDhgqIEr40Hliycj8/QkthUgjnBY9GicG65BsHMwzJaKLU9GqgKm+Wrg/5ibd 75JgQIgXoVnOA== 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1607686144-2604-1-git-send-email-TonyWWang-oc@zhaoxin.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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. - Eric