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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75068C433F5 for ; Tue, 9 Nov 2021 12:05:05 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 47E4060F58 for ; Tue, 9 Nov 2021 12:05:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 47E4060F58 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fXJouKjIQaZKHZ7z9/RGOFhZ17KZ3l+x5gM89OYfLpo=; b=22QeQ1CMBgVCK6 cfjg2jXz1SJHv1yI2iW4pebuVxSSIh+fgcUPDpQkYpNF+SxscL81F3WcG/BilY5A10k4O1US/0Ypg 5e302gWxy84WM2zt4fdGnXFXbb5pXZIv3wy13zbw24zW5NUD/ybasOEEppnIxLkygl96x0peUBe9F Fil9iGvjECWHNApGyL67UbEc+zeBPsMJUBPeBIFL2910wmId8HNQp8BkFc2We4vk5iZ/sSDznOww9 vJUdmN5h1cdLyRQkak79tPoc/3m5sOgzCS2ge2LZGJFeW7MRHvQTipwwkY8EyfXLECoGi7Zsc+FzS ryd68IylsVloDILlXgBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkPqy-001tgN-Eu; Tue, 09 Nov 2021 12:03:52 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkPqt-001teq-AN for linux-arm-kernel@lists.infradead.org; Tue, 09 Nov 2021 12:03:48 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1097D611AD; Tue, 9 Nov 2021 12:03:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636459426; bh=vmEy28ueynI+sZ15lTpAnaixgw/S4rmThxKXUtnwHkQ=; h=From:To:Cc:Subject:Date:From; b=ipNA3Z+OXi5eIUm2lIx+lVYZleDfG3WEsyeeAnvFbEDXCbCNVTHSkG5J17jTRvEAc sb0SHVur9vMyI4ePi/RG5ALk+RarGFuNYrKMqwY4GMh5c+cwYa26KpF0kHlyN9fDlV j4cO4yO6SwKGYyHTdKNpGyS8hSZrcF5WfGeDZVUEerQyX8ZtQY3BNxlrVJOyPokhep RnplydjTUzjTq7PbCoEd8qr6cOLbH59hcoJ6/Q5SFKFLxPTTXf47fCIjPW1//khy4m DlNVqS+sVJjf6ejix+XapO2TCfOOOZ2/PUB+AveDe+6TLT33rw9bJKrmwc9iRPjAQn RC128dHHltU/g== From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will@kernel.org, Ard Biesheuvel , Mark Rutland , Peter Zijlstra Subject: [PATCH 0/2] arm64: use SHA3 instructions to speed up XOR Date: Tue, 9 Nov 2021 13:03:34 +0100 Message-Id: <20211109120336.3561463-1-ardb@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=800; h=from:subject; bh=vmEy28ueynI+sZ15lTpAnaixgw/S4rmThxKXUtnwHkQ=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBhimOTIEAHsGqlDcw77bLwuSjw9s5K7KhodA9o53EM /DnoZ+aJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCYYpjkwAKCRDDTyI5ktmPJIY1C/ 0ebfs9ntPTwDwrzNGN/i6cOCJPGEMdYcJquD8L1C3ZEJiTjySYH97UKj4hFRHTH76eZDogL6dxQWHP YCnJc1iG4qNCI4jBn9I2QX1Y6G0oSrtmbRG9NBIo2B91AGG+4XmnmXctbUHEHwdq9/Evq7GHtikI+q 2/y//BycIRuUQKdWNmtrBBaGo3ut0IDwdOWO+WFKfkwPdGlfjZjQBDrXzGn/1NGXiPIssRFKx+bEph Dl+UI3QoOstQ6jRyHUafY/XrPxFQ40n6Fz1kUW96Hs4QpMF4xH9oHeRtPhSPcMA5/qAXuqi86prnbE EFAytqdGYiXU716nfcTZ1386c+fL8zK37CO1jGc6BDDll6p39hn1SckM+A+S+jPL36kXnF3Ek2lWK+ qXaSWxwo3Qz8MUrFybRvj9UFtDMArktPgdHore1QhcdGTVD8a6rrzMWmHF1/NwTPlGnZsEKKyyRa/W 6Q+9SoQlAYF7rqPzPqClvzH4aPPih70yUVOglvGm678Ic= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211109_040347_421692_DDB27A32 X-CRM114-Status: UNSURE ( 7.64 ) X-CRM114-Notice: Please train this message. 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 If available, use the 3-way EOR3 instruction that is part of the SHA3 extension rather than the ordinary 2-way EOR NEON instruction. Doing so speeds up XOR processing by ~20% on Apple M1 when using the 5-way version. This is also useful as a canary for spotting regressions in the static call API, as we export a static call from one module and consume it in another. Cc: Mark Rutland Cc: Peter Zijlstra Ard Biesheuvel (2): arm64/xor: use static calls for inner NEON helpers arm64/xor: use EOR3 instructions when available arch/arm64/Kconfig | 3 + arch/arm64/include/asm/xor.h | 24 ++- arch/arm64/lib/xor-neon.c | 165 +++++++++++++++++++- 3 files changed, 179 insertions(+), 13 deletions(-) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel