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: 4654381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9F4989F32F for ; Thu, 31 Jul 2014 08:59:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C78EA201BB for ; Thu, 31 Jul 2014 08:59:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF08520149 for ; Thu, 31 Jul 2014 08:59:33 +0000 (UTC) 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/Dv8JT5xY3ATO1c+ub0nDOXKg4weVs555XkSJcZPEMw=; b=LsvYNDCCxAtfgqqNUutfH3kuyt+oda6mDg6hb4s5pVQwB+vw0ntq3l4EP1+BccOoVO 0HeGALPd9M+PT1oiqkmiP2kjKw3T+qwxFbLj/6zjknZ68KqX/oUyZdR82iS2jJRqDZZ1 UNLBc6QlD9okmvdK7TmAWUeoO2TF9bm2Q/cdEj0dZs3q0TJbFNffaWj+X3XNNY76v/KG TUgziilZAgWyMx7e5awTWa9V2ioEHZHnvp4ZwqNbs9ckNu1vRSx58UVbH6p7jCwMv2+Z 3anx6MydEhHcQ+eUn4fHWL1jMl7o0mPLAH2wrxbJnSfvKink7yok9z1heyrVUUIlYrq7 5OqQ== X-Gm-Message-State: ALoCoQkTernSLNKqrkVPhuV8VqYrcrQco/3Vw7FGT2MPJPFmxG/CRV+5fZH42hq2uVQ9uw5ElDrp 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 (/) 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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