From patchwork Wed Dec 15 13:43:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12696267 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF478C433EF for ; Wed, 15 Dec 2021 13:44:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mPBBqkMop7cOLMx/NJcVxPcuHX/hn3MlP33KjWmB4yQ=; b=leVfvmvL4XZL4G oGtrwviTpweNZHrGRlrpIdBb+uzP9c7KeXm77GMX9GbV9643RikO047vFIfj1lYICxDoF87V076Ri p66hxncLhG/Lh0fEIYk8Y/7OPjY2QuY01aENZRrP40s2FakWTngHk3dzJz/0/N3JDP714+GYdUVJe KY5A0NG66rOiUBHOld/+Fcf/M+PwBf45Xyns824kO0XnChIDZT0HpphEgmmMYui5YgtqHrRuq1rr1 kIh+0bGdbShLIxqrkRplku6r6/k0LTAA4ncoBcbpE0ukGcOoTxIK9EDLYlv6Lafoc+kxc9qoORlwt 0l31iDGIppNALFgdYskg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxUZ1-000xMC-Mh; Wed, 15 Dec 2021 13:43:23 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxUYw-000xLQ-Ik for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 13:43:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1639575798; x=1671111798; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DB+4UXSNLFL5U+KUUKZY5o4OUcNG+kIDNiOJlDVl2XM=; b=SNs2bAKr8sHiUyUAgLuzRzARlIBRdJMBytKhr/7F9LoTP7eTalCcYqg/ guwWEWpPBcpzsyXjUtnSrNUO3/2fmVtkSWh2Fyli9UivjfvWrYLdtehHi Q8mtOvA7NOCzL4XB5vmJUMGE/+U666MKcBJB2KALLIjgKAnGVAfhZ5Cjf axA92ZqV9OoFKhMUyD7AjAyt/x6GdfGLNORbBkczEkPDoBxTVzOM298ag szemH+xomBmn9sB4mgBpxIKWK1yM5GgbuGkEll1/H3gJozVtMGTay/NaO 7SuwuTVIyf3p1NpCtlfBeCVBpMlfi5zS0QY/yzhPwVpueDB+cOhR7LuY7 g==; IronPort-SDR: NhkGtw3sajwHnQXzvOVKjNiiQZo33uK8FoOMZnyZbz5VA3MpdpMhGLPPGTNCN7vES/OjFxiEEF sSg/WUYgVzS6EDbl1I7qGKtJE2y/GhEJPi4gUR57OGbx/kQgsK5rmdBbxjIy6OIOcddfUcE7u1 sAlKI+nO5Ew6RDR8JmSTMp393FYatNmuWOEOiA09vzg7ezrs5IjrkwMsxhqQAOTTqHsaywy1sA VSrcbOgY1qRaEE1cFAIvEiLPjQ7RhQq4VdVxu0PFBu2vDOgDVQP9wcGKCBMx39O9fQDZ+nXQ/e 9eY7QBvnNVxix+VGWxAAEoKp X-IronPort-AV: E=Sophos;i="5.88,207,1635231600"; d="scan'208";a="79647478" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Dec 2021 06:43:16 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 15 Dec 2021 06:43:16 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 15 Dec 2021 06:43:13 -0700 From: Tudor Ambarus To: CC: , , , , , , , , , Tudor Ambarus Subject: [PATCH v3] ARM: configs: at91: Enable crypto software implementations Date: Wed, 15 Dec 2021 15:43:11 +0200 Message-ID: <20211215134311.304427-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_054318_758029_7E3096E4 X-CRM114-Status: UNSURE ( 8.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable at least the same amount of algs as the hardware IPs are supporting so that they are able to fallback to the software implementations in case they need it. Signed-off-by: Tudor Ambarus Acked-by: Nicolas Ferre --- v3: drop CONFIG_CRYPTO_MD5, as MD5 is not hw accelerated. v2: - add CONFIG_CRYPTO_HMAC - update commit message - ignore other non-crypto changes that are revealed with "make savedefconfig" arch/arm/configs/at91_dt_defconfig | 9 ++++++++- arch/arm/configs/sama5_defconfig | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index a6310c8abcc3..549d01be0b47 100644 --- a/arch/arm/configs/at91_dt_defconfig +++ b/arch/arm/configs/at91_dt_defconfig @@ -216,7 +216,14 @@ CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_850=y CONFIG_NLS_ISO8859_1=y CONFIG_NLS_UTF8=y -CONFIG_CRYPTO_ECB=y +CONFIG_CRYPTO_CBC=y +CONFIG_CRYPTO_CFB=y +CONFIG_CRYPTO_OFB=y +CONFIG_CRYPTO_XTS=y +CONFIG_CRYPTO_HMAC=y +CONFIG_CRYPTO_SHA1=y +CONFIG_CRYPTO_SHA512=y +CONFIG_CRYPTO_DES=y CONFIG_CRYPTO_USER_API_HASH=m CONFIG_CRYPTO_USER_API_SKCIPHER=m CONFIG_CRYPTO_DEV_ATMEL_AES=y diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index fe0d7ccc8fb2..03dd80c2a19e 100644 --- a/arch/arm/configs/sama5_defconfig +++ b/arch/arm/configs/sama5_defconfig @@ -232,6 +232,14 @@ CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_850=y CONFIG_NLS_ISO8859_1=y CONFIG_NLS_UTF8=y +CONFIG_CRYPTO_CBC=y +CONFIG_CRYPTO_CFB=y +CONFIG_CRYPTO_OFB=y +CONFIG_CRYPTO_XTS=y +CONFIG_CRYPTO_HMAC=y +CONFIG_CRYPTO_SHA1=y +CONFIG_CRYPTO_SHA512=y +CONFIG_CRYPTO_DES=y CONFIG_CRYPTO_USER_API_HASH=m CONFIG_CRYPTO_USER_API_SKCIPHER=m CONFIG_CRYPTO_DEV_ATMEL_AES=y