From patchwork Thu Jul 31 08:56:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 34572 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B234220792 for ; Thu, 31 Jul 2014 08:58:53 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id j7sf5482667qaq.5 for ; Thu, 31 Jul 2014 01:58:53 -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:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=kLYrH3XApc3ZT/qwr+2SllUaw5s+0tbx02jutmttqC8=; b=Nj3iZvW71yeB2DriIwdh/bE0CUsp9C9lodkhalROBM5jWcupMfYdC++cqg7ZQXTbJu JxfBSgG4huedkjhxpqD9TNVtbRbL58KIlmudwGfT5zVmQgndHX59NafuMOP36XVukidS lbjlkaf2x8PGyKRwIs6UV7xXlMh7Bs4B/K6IBQvO388kY7A6SmfWUjRBVVbX9FOrnf2R UCw+xnV9/3nZRGiNz8GHy5LbJiGnXZfD90g0Iu51vZ34uAs3pHl6HYbtt5qC9u+l3T2G 7moABaDhVCVVZtbzg/KI8IUHmxWhAj8stUgCns5lICAcHBSAAAV6KryA61zwk1wMjrwr Qsfw== X-Gm-Message-State: ALoCoQn7WmETIxcKBdlotTc7nVki4DkxO/2yxWfVkG7G8/bnG+IC0jeRVJVK4x3W1ZE/Ky1tEwhJ X-Received: by 10.236.155.132 with SMTP id j4mr925751yhk.56.1406797133369; Thu, 31 Jul 2014 01:58:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.1 with SMTP id p1ls794677qga.97.gmail; Thu, 31 Jul 2014 01:58:53 -0700 (PDT) X-Received: by 10.52.166.10 with SMTP id zc10mr13263874vdb.61.1406797133264; Thu, 31 Jul 2014 01:58:53 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id py3si3874135vdb.107.2014.07.31.01.58.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Jul 2014 01:58:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hy4so3635591vcb.22 for ; Thu, 31 Jul 2014 01:58:53 -0700 (PDT) X-Received: by 10.52.238.227 with SMTP id vn3mr13353016vdc.47.1406797133112; Thu, 31 Jul 2014 01:58:53 -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.221.37.5 with SMTP id tc5csp1756vcb; Thu, 31 Jul 2014 01:58:52 -0700 (PDT) X-Received: by 10.66.65.225 with SMTP id a1mr2045522pat.139.1406797132263; Thu, 31 Jul 2014 01:58:52 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id qm4si2571992pdb.255.2014.07.31.01.58.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jul 2014 01:58:52 -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 1XCmAn-0001gF-D4; Thu, 31 Jul 2014 08:57:17 +0000 Received: from mail-wi0-f178.google.com ([209.85.212.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XCmAj-0001dz-V8 for linux-arm-kernel@lists.infradead.org; Thu, 31 Jul 2014 08:57:15 +0000 Received: by mail-wi0-f178.google.com with SMTP id hi2so3727532wib.11 for ; Thu, 31 Jul 2014 01:56:51 -0700 (PDT) X-Received: by 10.180.39.73 with SMTP id n9mr13921511wik.70.1406797010777; Thu, 31 Jul 2014 01:56:50 -0700 (PDT) Received: from ards-macbook-pro.local (adsl21mo82.tel.net.ba. [95.156.169.82]) by mx.google.com with ESMTPSA id gl4sm10648090wib.19.2014.07.31.01.56.49 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Jul 2014 01:56:49 -0700 (PDT) From: Ard Biesheuvel To: will.deacon@arm.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: defconfig: enable crypto drivers as modules Date: Thu, 31 Jul 2014 10:56:42 +0200 Message-Id: <1406797002-21015-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140731_015714_150793_308FA5EE X-CRM114-Status: UNSURE ( 8.45 ) 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.178 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.178 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: 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.220.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 This changes the arm64 defconfig to build the ARMv8 Crypto Extensions and NEON based crypto drivers as modules rather than as built-ins. The reason is that the ARMv8 Crypto Extensions based modules will be probed for automatically through udev upon detecting the availability of the respective crypto instructions (AES, PMULL, SHA1, SHA256), and similarly, the NEON alternatives will be probed for upon request (i.e., at first use of the algorithm) if no hardware acceleration is available. Signed-off-by: Ard Biesheuvel --- arch/arm64/configs/defconfig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c1071268c912..3310b4166dd0 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -127,10 +127,10 @@ CONFIG_LOCKUP_DETECTOR=y CONFIG_SECURITY=y CONFIG_CRYPTO_ANSI_CPRNG=y CONFIG_ARM64_CRYPTO=y -CONFIG_CRYPTO_SHA1_ARM64_CE=y -CONFIG_CRYPTO_SHA2_ARM64_CE=y -CONFIG_CRYPTO_GHASH_ARM64_CE=y -CONFIG_CRYPTO_AES_ARM64_CE=y -CONFIG_CRYPTO_AES_ARM64_CE_CCM=y -CONFIG_CRYPTO_AES_ARM64_CE_BLK=y -CONFIG_CRYPTO_AES_ARM64_NEON_BLK=y +CONFIG_CRYPTO_SHA1_ARM64_CE=m +CONFIG_CRYPTO_SHA2_ARM64_CE=m +CONFIG_CRYPTO_GHASH_ARM64_CE=m +CONFIG_CRYPTO_AES_ARM64_CE=m +CONFIG_CRYPTO_AES_ARM64_CE_CCM=m +CONFIG_CRYPTO_AES_ARM64_CE_BLK=m +CONFIG_CRYPTO_AES_ARM64_NEON_BLK=m