From patchwork Fri Jun 8 14:42:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Achim Gottinger X-Patchwork-Id: 926860 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ag-web.biz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NbeDDIEB"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 412QBm3CzRz9s3x for ; Sat, 9 Jun 2018 00:43:28 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Date:Message-ID: From:To:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=YZcwVFGtoIPyDPl+6Rr/YTAiAm81kp6PhclWmHGMOcI=; b=NbeDDIEBcLWvTH 7sBbF5REK2VvsborPJxZJ/Aim2UmFtmG+wv7aHWiJEOweRn23LIPJ3LFZUS/RivYszW4WWBcTe+JK lWiE1jULAtMVMvJEb3jaaQ/eTcb452tgTP4nRYryfLsPpBYLf6lrz5sXj7chzHPO7o1mUDks0L8Su 4M+ArfccIgo6gwOxLkDzQl32yBULdG7RM9WINp9hhxCda5RJoIM1fx8yvJPcGfKbw/xo+hzSvDWwl RfiY72LxdfLpd1d+oTS7XwJuISjpvKRymDSDDhv2DLb0LtJPxN8zNOqmhLnPUqxhMy6nbZl2NEch+ nQpvT7sW7KUJG9ikqaSA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fRIbZ-0007Zc-9G; Fri, 08 Jun 2018 14:43:05 +0000 Received: from www307.your-server.de ([188.40.30.2]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fRIbV-0007Wz-Iv for openwrt-devel@lists.openwrt.org; Fri, 08 Jun 2018 14:43:03 +0000 Received: from [92.211.50.30] (helo=logon-achim.ag-web.local) by www307.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1fRIbD-00038l-TS for openwrt-devel@lists.openwrt.org; Fri, 08 Jun 2018 16:42:44 +0200 Received: from localhost (logon-achim.ag-web.local [127.0.0.1]) by logon-achim.ag-web.local (Postfix) with ESMTP id 63F6D8910D for ; Fri, 8 Jun 2018 16:42:40 +0200 (CEST) Received: from logon-achim.ag-web.local ([127.0.0.1]) by localhost (logon-achim.ag-web.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uJPuAq4VK6eE for ; Fri, 8 Jun 2018 16:42:40 +0200 (CEST) Received: from [192.168.100.108] (win7-a-fm2.ag-web.local [192.168.100.108]) by logon-achim.ag-web.local (Postfix) with ESMTPSA id 404018910B for ; Fri, 8 Jun 2018 16:42:40 +0200 (CEST) To: openwrt-devel@lists.openwrt.org From: Achim Gottinger Message-ID: <72ec2f7b-f28e-b3b1-94bb-38e0fc499028@ag-web.biz> Date: Fri, 8 Jun 2018 16:42:39 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Language: en-GB X-Authenticated-Sender: achim@ag-web.biz X-Virus-Scanned: Clear (ClamAV 0.99.3/24644/Fri Jun 8 14:40:23 2018) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180608_074301_796689_8AA1DF47 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [188.40.30.2 listed in list.dnswl.org] Subject: [OpenWrt-Devel] [PATCH] mpc85xx: Enable caam support only for p1020 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Disable caam support in default config and enable it only for the p1020 target. The generic target is used for the wdr4900-v1 tp-link router which does not have an enabled caam engine. If caam is build in for this target it adds non functional crypto methods to the kernels crypto framework. Strongswan for example tries to use these methods and as an result does not work. More about the issue is mentioned here https://bugs.openwrt.org/index.php?do=details&task_id=1262 Signed-off-by: Achim Gottinger Acked-by: John Crispin ---  target/linux/mpc85xx/config-4.9             | 10 ----------  target/linux/mpc85xx/generic/config-default | 10 ++++++++++  target/linux/mpc85xx/p1020/config-default   | 10 ++++++++++  3 files changed, 20 insertions(+), 10 deletions(-) -- 2.11.0 diff --git a/target/linux/mpc85xx/config-4.9 b/target/linux/mpc85xx/config-4.9 index 68568c4a62..cfbd089d20 100644 --- a/target/linux/mpc85xx/config-4.9 +++ b/target/linux/mpc85xx/config-4.9 @@ -47,16 +47,6 @@ CONFIG_CRYPTO_AEAD2=y  CONFIG_CRYPTO_AKCIPHER=y  CONFIG_CRYPTO_AKCIPHER2=y  CONFIG_CRYPTO_AUTHENC=y -CONFIG_CRYPTO_DEV_FSL_CAAM=y -CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y -CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y -# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set -# CONFIG_CRYPTO_DEV_FSL_CAAM_IMX is not set -# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set -CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y -CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y -CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 -CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y  CONFIG_CRYPTO_HASH=y  CONFIG_CRYPTO_HASH2=y  CONFIG_CRYPTO_HW=y diff --git a/target/linux/mpc85xx/generic/config-default b/target/linux/mpc85xx/generic/config-default index 81bf934b33..ca4ab43286 100644 --- a/target/linux/mpc85xx/generic/config-default +++ b/target/linux/mpc85xx/generic/config-default @@ -1 +1,11 @@  CONFIG_TL_WDR4900_V1=y +# CONFIG_CRYPTO_DEV_FSL_CAAM is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_IMX is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_JR is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API is not set diff --git a/target/linux/mpc85xx/p1020/config-default b/target/linux/mpc85xx/p1020/config-default index fd9433b59a..d906a06d46 100644 --- a/target/linux/mpc85xx/p1020/config-default +++ b/target/linux/mpc85xx/p1020/config-default @@ -2,6 +2,16 @@ CONFIG_ARCH_HAS_TICK_BROADCAST=y  CONFIG_AT803X_PHY=y  CONFIG_CMDLINE_OVERRIDE=y  CONFIG_CPU_RMAP=y +CONFIG_CRYPTO_DEV_FSL_CAAM=y +CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y +CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y +# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_IMX is not set +# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set +CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y +CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y +CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 +CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y  CONFIG_EEPROM_LEGACY=y  CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y  CONFIG_GENERIC_TBSYNC=y