From patchwork Wed Jun 8 17:02:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 12874365 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 53A4CC43334 for ; Wed, 8 Jun 2022 17:04:09 +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=qDrH60ey7x9+MHrsQwJlZgaVcsAkvnSnqjuwCQZMfHE=; b=puYVbUOhvzjgXk eQ32WGDZJf1H8gjTdPocm7FGqT0zuyYFh9vxASGOiQ5b2AYkTRciiAycUSnGa9/Ox30TnpSeogGv+ 9V2bYuN91MlXBVen8ndRKEhqDQ79B6L7/vj2BMK744di2FpHx/BZBWaA6XsbGdclkmsuVMbWnal+I wDaW6ViVHJp57KB8so8vQjniSWKhpO3nPHZamYDG0+cdJC5D5Uc5sYY/lFBdbIelp6CDuRyD4UJaP VomHbjQQHt6G/PDxucHBrAmprAO7h5gLmnJ+kyVHOCOBoRwZQAhERLnX4iL0vn7DYqO7Ge8hjkQgw Tlxi2P7kDPWDd/IJxBYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyz4v-00ERuO-Mw; Wed, 08 Jun 2022 17:02:45 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyz4q-00ERto-FG for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2022 17:02:43 +0000 Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:4b69:77c9:93b6:497d:18d7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id DCC18842C2; Wed, 8 Jun 2022 19:02:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1654707757; bh=q0bI6EeH5w+Q1zUKCfqdsvel1qHMA68OtuPA31WupaE=; h=From:To:Cc:Subject:Date:From; b=AHRj+KaoXD7QVlDkSJVUmHL17d2/fck/0Vsh+S66cJY4D2SjVy51EQNbwXmMHY5HM QpbRhjeTvHYBpNFnKXqKqhhSEq1aFGBeGzU/LJfK+TLAZAQgfTzN/Br6B1Ck2M0jEa pvI49D1B5weOlhrayLeZSPXPfbicnCQMCeqbQPW/rvA3ov5aPrjJnnUHkgn9o5fCDM 7e4UYxfAWu2FUDOMToPnXbt+CeJR9B1LdugNEpskaJIeXwbmccsi2IIOaT5bbbGur6 bhQGqlZXdPk8hn+4fxFVkmz6eacYv59HaU3d1cAoWFfksR1shCcz1LeoczePniqgTH hlY5/ist0r9Dw== From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, andrey.zhizhikin@leica-geosystems.com, linux-imx@nxp.com, kernel@pengutronix.de, gaurav.jain@nxp.com, Fabio Estevam Subject: [PATCH] arm64: dts: imx8m: Disable job ring 0 nodes Date: Wed, 8 Jun 2022 14:02:23 -0300 Message-Id: <20220608170223.1536594-1-festevam@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220608_100240_927533_4FB25401 X-CRM114-Status: UNSURE ( 8.95 ) 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 Now that the JR0 reservation is done in both upstream (v2.7) and downstream (NXP lf_v2.4) TF-A versions, the kernel fails to initialize the job ring 0: # dmesg | grep jr caam_jr 30901000.jr: failed to flush job ring 0 caam_jr: probe of 30901000.jr failed with error -5 Disable the sec_jr0 nodes by default to avoid the caam_jr probe error. Suggested-by: Andrey Zhizhikin Signed-off-by: Fabio Estevam Reviewed-by: Andrey Zhizhikin Reviewed-by: Gaurav Jain --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 1 + arch/arm64/boot/dts/freescale/imx8mn.dtsi | 1 + arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 + arch/arm64/boot/dts/freescale/imx8mq.dtsi | 1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 1bf070473829..8049a16d6027 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -911,6 +911,7 @@ sec_jr0: jr@1000 { compatible = "fsl,sec-v4.0-job-ring"; reg = <0x1000 0x1000>; interrupts = ; + status = "disabled"; }; sec_jr1: jr@2000 { diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index e41e1d56f980..fdfcc75a80e8 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -857,6 +857,7 @@ sec_jr0: jr@1000 { compatible = "fsl,sec-v4.0-job-ring"; reg = <0x1000 0x1000>; interrupts = ; + status = "disabled"; }; sec_jr1: jr@2000 { diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index d9542dfff83f..c560d867fb6e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -791,6 +791,7 @@ sec_jr0: jr@1000 { compatible = "fsl,sec-v4.0-job-ring"; reg = <0x1000 0x1000>; interrupts = ; + status = "disabled"; }; sec_jr1: jr@2000 { diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 49eadb081b19..4338d82a28de 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1018,6 +1018,7 @@ sec_jr0: jr@1000 { compatible = "fsl,sec-v4.0-job-ring"; reg = <0x1000 0x1000>; interrupts = ; + status = "disabled"; }; sec_jr1: jr@2000 {