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: 83976 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp189911qgi; Thu, 24 Nov 2016 09:32:51 -0800 (PST) X-Received: by 10.98.72.81 with SMTP id v78mr3487133pfa.104.1480008771049; Thu, 24 Nov 2016 09:32:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si32004857pgl.251.2016.11.24.09.32.50; Thu, 24 Nov 2016 09:32:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934043AbcKXRct (ORCPT + 1 other); 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 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