From patchwork Mon May 11 10:06:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 48232 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A102A21550 for ; Mon, 11 May 2015 10:09:12 +0000 (UTC) Received: by labgx2 with SMTP id gx2sf40425328lab.1 for ; Mon, 11 May 2015 03:09:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id:cc :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=yLnYWvAcqwE1izOdnvhbYPPjN4NQejdBP9IbV6wweRw=; b=fjSogOS3tpzctNxyV7Uxl4sMdieFN29ZfJCoQZFqiXBv7saWHM5alS+x0B6KOPIlhC c2LrlHwcEXx5zMWMxoutn3yq9+bHlJeWpjLmHaYIVWAwXi42yffERnaE8WMAx+bLw3j3 2hOw3kzk1KU6IaW6P9Z3QS0wHa0od9ZJwNTFzraWJrFOpCa6xrhyeNzVnSbmoarRSaU0 dNrTlYdr9wN/zu+ng0NwTm1E7PSrZuT/FhVjmaxxZtjMPbGi8be12IIl60aPeavV2ok/ ia31SDUFEfMFh4tTwq8YyYCvapx87Hce+lIKjds+xZR0yMsIN4fTs7e2QidUCsLyxGoz 2r5g== X-Gm-Message-State: ALoCoQmuKRlgbzHc0/Spo0dxlMgeLdIfEDKN3sBgSK2sB62XyIK9eju6zvHa9P6yxMLG1xpO/Zgu X-Received: by 10.152.203.233 with SMTP id kt9mr7056277lac.7.1431338951315; Mon, 11 May 2015 03:09:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.239.130 with SMTP id vs2ls510934lac.97.gmail; Mon, 11 May 2015 03:09:11 -0700 (PDT) X-Received: by 10.112.13.233 with SMTP id k9mr7587852lbc.57.1431338951171; Mon, 11 May 2015 03:09:11 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id jb7si8102904lbc.25.2015.05.11.03.09.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 03:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbcga7 with SMTP id ga7so90368181lbc.1 for ; Mon, 11 May 2015 03:09:11 -0700 (PDT) X-Received: by 10.112.204.72 with SMTP id kw8mr7565221lbc.88.1431338951082; Mon, 11 May 2015 03:09:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1413588lbb; Mon, 11 May 2015 03:09:10 -0700 (PDT) X-Received: by 10.66.186.142 with SMTP id fk14mr17965037pac.74.1431338949435; Mon, 11 May 2015 03:09:09 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id tl1si7187305pac.65.2015.05.11.03.09.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 03:09:09 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YrkcE-00035t-LT; Mon, 11 May 2015 10:07:14 +0000 Received: from mail-wi0-f172.google.com ([209.85.212.172]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YrkcA-00030k-S3 for linux-arm-kernel@lists.infradead.org; Mon, 11 May 2015 10:07:11 +0000 Received: by wief7 with SMTP id f7so82208330wie.0 for ; Mon, 11 May 2015 03:06:47 -0700 (PDT) X-Received: by 10.194.83.70 with SMTP id o6mr18920900wjy.44.1431338807498; Mon, 11 May 2015 03:06:47 -0700 (PDT) Received: from localhost.localdomain (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id mc20sm12482895wic.15.2015.05.11.03.06.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 May 2015 03:06:46 -0700 (PDT) From: Ard Biesheuvel To: arnd@arndb.de, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: multi_v7_defconfig: enable asm and NEON accelerated crypto modules Date: Mon, 11 May 2015 12:06:38 +0200 Message-Id: <1431338798-26909-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150511_030711_055979_BED1E55B X-CRM114-Status: UNSURE ( 7.06 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.172 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.172 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: arm@kernel.org, Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Enable all drivers under CONFIG_ARM_CRYPTO as modules. Enable CONFIG_KERNEL_MODE_NEON as well so that the modules that either contain a NEON alternative or consist solely of a NEON (or ARMv8 crypto extensions) accelerated implementation are enabled fully as well. Note that the ARMv8 modules will only be built if the detected toolchain version is recent enough (binutils 2.23 or higher). Signed-off-by: Ard Biesheuvel --- arch/arm/configs/multi_v7_defconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 0ca4a3eaf65d..d7d3bf35f9f0 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -116,6 +116,7 @@ CONFIG_CPU_FREQ_STAT_DETAILS=y CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPU_IDLE=y CONFIG_NEON=y +CONFIG_KERNEL_MODE_NEON=y CONFIG_ARM_ZYNQ_CPUIDLE=y CONFIG_NET=y CONFIG_PACKET=y @@ -590,3 +591,14 @@ CONFIG_LOCKUP_DETECTOR=y CONFIG_CRYPTO_DEV_TEGRA_AES=y CONFIG_CPUFREQ_DT=y CONFIG_KEYSTONE_IRQ=y +CONFIG_ARM_CRYPTO=y +CONFIG_CRYPTO_SHA1_ARM=m +CONFIG_CRYPTO_SHA1_ARM_NEON=m +CONFIG_CRYPTO_SHA1_ARM_CE=m +CONFIG_CRYPTO_SHA2_ARM_CE=m +CONFIG_CRYPTO_SHA256_ARM=m +CONFIG_CRYPTO_SHA512_ARM=m +CONFIG_CRYPTO_AES_ARM=m +CONFIG_CRYPTO_AES_ARM_BS=m +CONFIG_CRYPTO_AES_ARM_CE=m +CONFIG_CRYPTO_GHASH_ARM_CE=m