Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp338426pxb; Thu, 5 Nov 2020 01:06:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVXd2tkUgytcn9l0ZaogePk2LeUSBnJ9dYGKSdKvwiCX6fg+U8KBDp5Ryqz+mcn5Fe0YPK X-Received: by 2002:a50:fd8b:: with SMTP id o11mr1560153edt.156.1604567212790; Thu, 05 Nov 2020 01:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604567212; cv=none; d=google.com; s=arc-20160816; b=WE5OkUOOLenddjKGgNgHsUvwEKxm+YEHTRSesZeaB04nTKRZOexDb7b1TW5dE+lOwE oICiVQsGdIIr0Wg8l/+ZHa8lljPiZHGRpJlJWXTkWAgroJROC9qy4spOp2kLJ/ZPdxd+ vBt86F0POLSCTSAmH+Fk97Y/i8Rtd5iCcrDwKJRNTXhVApHenwpLBtqluw2b3MkPbNma Vw4s+gz5R0ZbEeOXMLUIQn86QH6glbrvSXEDppQxAhWcoMjM8Cj5DsY0d1pGJ1I+4Qwa Dgcoh+L/BqXUnS9oYrFiEu6x8pTg6RuECWPfpNLJKBFhMJ6+mqp0142g+GwVM0s3hV8C uf0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=uoCxRq+J0nxnfe6Glz9zil2hQmTijVayjb+ZbgTW/s4=; b=w90v28BrycoEeOBDb1AMFZ1FjOeOM4y3bIPx2hy6WbGhXojy7z2gfy8xkCYaJd7EnO ADd7VZ7sJ36i4K9OcxQE2HNsVu1I6FrcClQm++FBvrJH0TlmnvM/ynR4H5KCfveRo8/u pwQ81Zo6xs89SlZ/rxaZX9HMUxmtD8K0YIAQWnWe1uO0n6Fq5Iq5XK7GZ66vZpOCsAhJ DPNHgxxw563xBGxHMHmSMwTnas7ms8hMwJKoVNYWI6+zSCYwfVb52IDlLcK04veDBDrI 0ROTgNl9Py8DXlPvdf3Sr63JqvZABJVIxSLX4kLav5tHMVy/y8WcGan2Nl2i5aNyrzCX A9Qg== 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 f22si603444ejd.707.2020.11.05.01.06.22; Thu, 05 Nov 2020 01:06:52 -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 S1729722AbgKEJGC (ORCPT + 99 others); Thu, 5 Nov 2020 04:06:02 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7593 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729263AbgKEJGB (ORCPT ); Thu, 5 Nov 2020 04:06:01 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CRd0d3SFczLqXg; Thu, 5 Nov 2020 17:05:53 +0800 (CST) Received: from [10.110.54.32] (10.110.54.32) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 5 Nov 2020 17:05:54 +0800 Subject: Re: [PATCH 1/1] arm64: Accelerate Adler32 using arm64 SVE instructions. To: Ard Biesheuvel CC: Eric Biggers , Herbert Xu , "David S. Miller" , Catalin Marinas , Will Deacon , Maxime Coquelin , Alexandre Torgue , Linux ARM , Linux Crypto Mailing List References: <20201103121506.1533-1-liqiang64@huawei.com> <20201103121506.1533-2-liqiang64@huawei.com> <20201104175742.GA846@sol.localdomain> <2dad168c-f6cb-103c-04ce-cc3c2561e01b@huawei.com> From: Li Qiang Message-ID: <5b528637-5cb9-a134-2936-7925afae95c6@huawei.com> Date: Thu, 5 Nov 2020 17:05:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.110.54.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 在 2020/11/5 15:51, Ard Biesheuvel 写道: > Note that NEON intrinsics can be compiled for 32-bit ARM as well (with > a bit of care - please refer to lib/raid6/recov_neon_inner.c for an > example of how to deal with intrinsics that are only available on > arm64) and are less error prone, so intrinsics should be preferred if > feasible. > > However, you have still not explained how optimizing Adler32 makes a > difference for a real-world use case. Where is libdeflate used on a > hot path? > . Sorry :(, I have not specifically searched for the use of this algorithm in the kernel. When I used perf to test the performance of the libz library before, I saw that the adler32 algorithm occupies a lot of hot spots.I just saw this algorithm used in the kernel code, so I think optimizing this algorithm may have some positive optimization effects on the kernel.:) -- Best regards, Li Qiang