From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F31DCC433EF for ; Tue, 18 Jan 2022 09:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LkvGX8axg/QMlzm9M3+PVAl/dce4L+gFVI3n3YEWxQA=; b=OPP87MYWR0DG/1 tx+XN5+j9UqqAt75TO4ZbnpUoNKBi/r2jZ7mlwU9KEzfUr/6/nmYxJqo2GJ2mi9sSvFUu480jO9ap TWua3IGcmiHXOP5Je+worMkT1IwMYHN+al+rN/pFxj6Iw//br9YqUmA+yogHd64EQVzyq2T38X5gx Th2cnztoIDc0gRjEqqz6QODwJjbPfAYStBNfJVSjHG8C7SGAro6K15Q8ped4R/ND13vCydqOSSYsj 9B/1TbuILPnQ8y5DqdJ7/2xr/O7vIXeG0W3T5UCzt8YMovsaewtAZOXeqw8rmcqYwoy1yJZsNfv4l NJRK+5JP+hCuGXuP1Hog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9l9Z-000zJj-Kc; Tue, 18 Jan 2022 09:51:49 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9l9W-000zJA-E5 for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 09:51:47 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EFFA46121D; Tue, 18 Jan 2022 09:51:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85EF8C00446; Tue, 18 Jan 2022 09:51:44 +0000 (UTC) Date: Tue, 18 Jan 2022 09:51:41 +0000 From: Catalin Marinas To: Kevin Bracey Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Will Deacon Subject: Re: [PATCH v2 4/4] arm64: accelerate crc32_be Message-ID: References: <20220113165807.2735949-1-kevin@bracey.fi> <20220113165807.2735949-5-kevin@bracey.fi> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220113165807.2735949-5-kevin@bracey.fi> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_015146_533694_BABB064B X-CRM114-Status: GOOD ( 13.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jan 13, 2022 at 06:58:07PM +0200, Kevin Bracey wrote: > It makes no sense to leave crc32_be using the generic code while we > only accelerate the little-endian ops. > > Even though the big-endian form doesn't fit as smoothly into the arm64, > we can speed it up and avoid hitting the D cache. > > Tested on Cortex-A53. Without acceleration: > > crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64 > crc32: self tests passed, processed 225944 bytes in 192240 nsec > crc32c: CRC_LE_BITS = 64 > crc32c: self tests passed, processed 112972 bytes in 21360 nsec > > With acceleration: > > crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64 > crc32: self tests passed, processed 225944 bytes in 53480 nsec > crc32c: CRC_LE_BITS = 64 > crc32c: self tests passed, processed 112972 bytes in 21480 nsec > > Signed-off-by: Kevin Bracey > Tested-by: Ard Biesheuvel > Reviewed-by: Ard Biesheuvel > Cc: Catalin Marinas > Cc: Will Deacon Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel