From patchwork Thu Nov 24 17:32:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 9446137 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 68E6E606DB for ; Thu, 24 Nov 2016 17:32:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DBDB2623D for ; Thu, 24 Nov 2016 17:32:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 522C127FBC; Thu, 24 Nov 2016 17:32:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D65E92623D for ; Thu, 24 Nov 2016 17:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934043AbcKXRct (ORCPT ); Thu, 24 Nov 2016 12:32:49 -0500 Received: from mail-io0-f171.google.com ([209.85.223.171]:35757 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933887AbcKXRct (ORCPT ); Thu, 24 Nov 2016 12:32:49 -0500 Received: by mail-io0-f171.google.com with SMTP id a124so89082761ioe.2 for ; Thu, 24 Nov 2016 09:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Lwt52Xfm+jBcRsBbujmsfrnHll5abZFKyPQ87Xkhmw0=; b=en8k/YBKcvG+z/zU2+RYUqAOEf2j5k9/Gky0Im3QpgYQrqhJ8dF3YUxNY+Kbd8syPp Ioe/qJxglwD5Z65Yma9R6tm37Vq53YOmr/ivwsZgqxWFUxFKv9WF7PiEGx77ctJ6wHwU OtBDEArm0s3etHcUwT5jO5njsogWwC8P4XCeo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Lwt52Xfm+jBcRsBbujmsfrnHll5abZFKyPQ87Xkhmw0=; b=T+T4TFnuDsiRM6IKlA5uKpZmhxvBzaCgPSBm8plQuOrgbpkGSioHkNdHPkS+/21IhM 8XfcZRBaoSXfcdye39mCQcpuH4OJ7OYlvS63NNJkOklVO8ruADJzrKGCjCGEmZXQC3Tn ggmwf6woUkWtvZXjuhCMF9oltsxwiXihxEhH0G0gidoySAotGHrwLqYGDJ17CJizpe0r oEYxgsK46q/iznPkldkWdv0pGOpvwXRCezqcpkIKM2EXpwHc5xk0ASVf2ISTpyTRkvXf HuavGLfkGWtMfNYQrRCZk9m5k0+KhIy+ob5xFfi63YC4U0Z27+7PesxSpTUGyMUdpjIK VnlQ== X-Gm-Message-State: AKaTC029xCfpUZM/u08hBCvs30Lp4WwFSIvaPhyqWN/iC5tpgvz4GocfNSuNaZxE4zKbaEGEDnced7qJhs9sTYf0 X-Received: by 10.107.18.39 with SMTP id a39mr2896140ioj.45.1480008763323; Thu, 24 Nov 2016 09:32:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.147 with HTTP; Thu, 24 Nov 2016 09:32:42 -0800 (PST) In-Reply-To: <1480002201-1427-5-git-send-email-ard.biesheuvel@linaro.org> References: <1480002201-1427-1-git-send-email-ard.biesheuvel@linaro.org> <1480002201-1427-5-git-send-email-ard.biesheuvel@linaro.org> From: Ard Biesheuvel Date: Thu, 24 Nov 2016 17:32:42 +0000 Message-ID: Subject: Re: [PATCH 4/4] crypto: arm/crct10dif - port x86 SSE implementation to ARM To: "linux-crypto@vger.kernel.org" , Herbert Xu , "linux-arm-kernel@lists.infradead.org" , Catalin Marinas , Will Deacon , Russell King - ARM Linux Cc: Steve Capper , dingtinahong , yangshengkai@huawei.com, YueHaibing , Hanjun Guo , Ard Biesheuvel Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 24 November 2016 at 15:43, Ard Biesheuvel wrote: > This is a straight transliteration of the Intel algorithm implemented > using SSE and PCLMULQDQ instructions that resides under in the file > arch/x86/crypto/crct10dif-pcl-asm_64.S. > > Signed-off-by: Ard Biesheuvel > --- > arch/arm/crypto/Kconfig | 5 + > arch/arm/crypto/Makefile | 2 + > arch/{arm64 => arm}/crypto/crct10dif-ce-core.S | 457 +++++++++++--------- > arch/{arm64 => arm}/crypto/crct10dif-ce-glue.c | 23 +- > 4 files changed, 277 insertions(+), 210 deletions(-) > This patch needs the following hunk folded in to avoid breaking the Thumb2 build: """ """ Updated patch(es) can be found here https://git.kernel.org/cgit/linux/kernel/git/ardb/linux.git/log/?h=arm-crct10dif --- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/crypto/crct10dif-ce-core.S b/arch/arm/crypto/crct10dif-ce-core.S index 30168b0f8581..4fdbca94dd0c 100644 --- a/arch/arm/crypto/crct10dif-ce-core.S +++ b/arch/arm/crypto/crct10dif-ce-core.S @@ -152,7 +152,8 @@ CPU_LE( vrev64.8 q7, q7 ) // XOR the initial_crc value veor.8 q0, q0, q10 - adrl ip, rk3 +ARM( adrl ip, rk3 ) +THUMB( adr ip, rk3 ) vld1.64 {q10}, [ip] // xmm10 has rk3 and rk4 // type of pmull instruction // will determine which constant to use