From patchwork Fri Jul 16 15:14:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12382421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAF3CC636CA for ; Fri, 16 Jul 2021 15:17:08 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A652B613F5 for ; Fri, 16 Jul 2021 15:17:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A652B613F5 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=IClHsZ79Um3u6uwTeUocW2wBd8WbpZl5USbpXN1EPzw=; b=Kw8DRS5EuFXnm5 brFYgD16ob5vybQwlkIhu8q7T9stZgv1k70ZHmVu8g0b4hCDRxoyXgQRZp4AswNia8mdMym2BYuI7 t5GiOz3cyYTgOI+o4sKUVP//kzDn13Lgm6Jb8ka+Bak75/QQmMIrjJlwVwLj998UHaZ3K+QLckV2U 3cCa1o6deDQxLUlbOEHuNGY5uL0lr9l1la4UbDcqkbeaqz20dEi7Ich8rDuDk0JcjM0YEZiY1t3OI yxrsbWESfU8iJp7U/Ux9WrXYWvdBtFsdAG0wdF33LgizvaGFrs9bDUfdAQbiN3OBKTXIbuk6rh2lz ArAjsuGG72XYNIgImRfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4PYU-004geT-88; Fri, 16 Jul 2021 15:15:10 +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 1m4PYF-004gcp-Im for linux-arm-kernel@lists.infradead.org; Fri, 16 Jul 2021 15:14:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1626448495; x=1657984495; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FFW5iecHUrXYQRMMjleWv1/yTI/kguN5QLIMkSIa2jI=; b=q3Lf1luBBo355d5O9JqIKsSt/OSUu5DdX4ywRRWF6yfdOuc31qLFMgs9 BW5VaI2fNiPVFDj9M5d3bv9tDlyd9wmW+K9nOGjBkpvGGFCUBJc8zjaiB n5zrCjlkT6fjTrf/WlNnVMl63dTapuopkL4hXjJcDhUcSWUSQ+4rPj2M0 nxlg7hLaEMIXWgHVFCyiP6HKtl3MsDBUuKesPpYOrMt0ErPRwCiz7vduR zj9DcjpU+U13nBdIV/huGVQcPILi0U+RuAQydn0psNdO2A+yr/T2R6Llw sXm9d5Pe5GlM/wJkX83NubJ3wVD1jHuVlGqmo0KUjriWc9nQZ8GX28Ea2 g==; IronPort-SDR: Z7DzCzq5S/n8Ey/vcIVCGY5FZxEbudgdHZN9XU3s/GlrPVYbOwf22x8KJmU+qdeLMpFTIwn1t6 gcXb9LHlPziyfu1I57u3MUQ80AQ16863avdnH5lZQGmRF4ii5/te3bmkTPBByEq0aU0SsLRwiw uW2Gp6iU1HDxJIwdTIH09nEwizbrVBz8F2jGFQKFdMZEAwGZWl4bVKCij8IaZ+Jnz9UwafNpt2 vPS6hw6U6ALtbOq6gkIihHk45NlugVRLtFanexlZ2eDpcEltxIA7YHmfhu3QJnb7rUJd3F3SJb iyCcvI4gV49wxhY+eDrFvT+X X-IronPort-AV: E=Sophos;i="5.84,245,1620716400"; d="scan'208";a="122322356" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Jul 2021 08:14:54 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 16 Jul 2021 08:14:54 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 16 Jul 2021 08:14:51 -0700 From: Tudor Ambarus To: , , CC: , , , , , , "Tudor Ambarus" Subject: [PATCH 2/2] ARM: configs: at91: Enable crypto software implementations Date: Fri, 16 Jul 2021 18:14:47 +0300 Message-ID: <20210716151447.833967-2-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210716151447.833967-1-tudor.ambarus@microchip.com> References: <20210716151447.833967-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210716_081455_720224_F2714A9F X-CRM114-Status: UNSURE ( 8.56 ) 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 It's a good idea to enable at least the same amount of algs as the hardware IPs are supporting. Provide the posibility for the hw accelerated crypto alg to fallback to software implementation, in case they need it. Signed-off-by: Tudor Ambarus --- arch/arm/configs/at91_dt_defconfig | 8 +++++++- arch/arm/configs/sama5_defconfig | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index 06c888a45eb3..d348ae0d5363 100644 --- a/arch/arm/configs/at91_dt_defconfig +++ b/arch/arm/configs/at91_dt_defconfig @@ -213,7 +213,13 @@ 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_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 1ccf84091dd7..e170676eed66 100644 --- a/arch/arm/configs/sama5_defconfig +++ b/arch/arm/configs/sama5_defconfig @@ -230,6 +230,13 @@ 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_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