{"id":2233421,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2233421/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260506123507.2081751-3-mwalle@kernel.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.1/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260506123507.2081751-3-mwalle@kernel.org>","date":"2026-05-06T12:34:11","name":"[v2,02/11] caam: don't write memory at 0 on PPC","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"4fcb201897ba30524c691d076aca2306bc4a5172","submitter":{"id":86646,"url":"http://patchwork.ozlabs.org/api/1.1/people/86646/?format=json","name":"Michael Walle","email":"mwalle@kernel.org"},"delegate":{"id":55230,"url":"http://patchwork.ozlabs.org/api/1.1/users/55230/?format=json","username":"freenix","first_name":"Peng","last_name":"Fan","email":"van.freenix@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260506123507.2081751-3-mwalle@kernel.org/mbox/","series":[{"id":502979,"url":"http://patchwork.ozlabs.org/api/1.1/series/502979/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=502979","date":"2026-05-06T12:34:09","name":"Generic powerpc fixes and NXP board cleanup","version":2,"mbox":"http://patchwork.ozlabs.org/series/502979/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2233421/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2233421/checks/","tags":{},"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=blu3vcnn;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.b=\"blu3vcnn\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=kernel.org","phobos.denx.de;\n spf=pass smtp.mailfrom=mwalle@kernel.org"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g9Zcl2pMDz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 22:36:23 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id F1181848E3;\n\tWed,  6 May 2026 14:36:11 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id A1534848D8; Wed,  6 May 2026 14:36:10 +0200 (CEST)","from sea.source.kernel.org (sea.source.kernel.org\n [IPv6:2600:3c0a:e001:78e:0:1991:8:25])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id B27C48484F\n for <u-boot@lists.denx.de>; Wed,  6 May 2026 14:36:08 +0200 (CEST)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by sea.source.kernel.org (Postfix) with ESMTP id BAF1F40ABA;\n Wed,  6 May 2026 12:36:06 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id D6308C2BCB8;\n Wed,  6 May 2026 12:36:02 +0000 (UTC)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1778070966;\n bh=n5wkEu9MLvI8w8T5KG0eGItYgvumdAMQOfxuU4BAhOk=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=blu3vcnn/ak740MKvfaCMVBUWTm2RsuWyO56Yv+e3l7WKC6/VRuHbfD9hcRObwB4o\n I6pFSk0SFlxe0GPKvUJ83Pb/0TUMb6h/wwiE45AER9G2Qr4W1ED7rQwvNKo2HwxI8Q\n ThvZL49z+1GMFHBr//GlUrR+ZzR1RQIUjnnGhjYPzFfD11p8xiIpRDkrtRAPHAVujs\n rLzX2NeIYbWWYADrolCmaKijtYykneIRIEMYRic4/lWL0WDfa9egh99X5kHK9P2Cew\n oa3Ebq0XLWbZLKCDoNEmNOs4/PjO5/oml3/6kFqLaqxipLr56UDPdgEPlQpsaCr3NO\n wr5Tl0SpRlP8Q==","From":"Michael Walle <mwalle@kernel.org>","To":"=?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org>,\n Tom Rini <trini@konsulko.com>, Pramod Kumar <pramod.kumar_1@nxp.com>,\n Vladimir Oltean <olteanv@gmail.com>, Alison Wang <alison.wang@nxp.com>,\n Tang Yuantian <andy.tang@nxp.com>, Mingkai Hu <mingkai.hu@nxp.com>,\n Priyanka Jain <priyanka.jain@nxp.com>, Wasim Khan <wasim.khan@nxp.com>,\n Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>,\n TsiChung Liew <Tsi-Chung.Liew@nxp.com>, Stefano Babic <sbabic@nabladev.com>,\n Fabio Estevam <festevam@gmail.com>,\n \"NXP i . MX U-Boot Team\" <uboot-imx@nxp.com>, Peng Fan <peng.fan@nxp.com>,\n Shengzhou Liu <Shengzhou.Liu@nxp.com>","Cc":"Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>,\n Jerome Forissier <jerome.forissier@arm.com>, u-boot@lists.denx.de,\n Michael Walle <mwalle@kernel.org>","Subject":"[PATCH v2 02/11] caam: don't write memory at 0 on PPC","Date":"Wed,  6 May 2026 14:34:11 +0200","Message-ID":"<20260506123507.2081751-3-mwalle@kernel.org>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260506123507.2081751-1-mwalle@kernel.org>","References":"<20260506123507.2081751-1-mwalle@kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"For non-secure boot environments pamu_init() isn't called but the CAAM\nwill still call sec_config_pamu_table() -> config_pamu() which then uses\nan uninitialized ppaact variable. In fact, that variable is initialized\nwith 0, so the config_pamu() will happily assume the structure is there\nand will operate on that memory. Call pamu_init() in the non-secure boot\ncase, too.\n\nSigned-off-by: Michael Walle <mwalle@kernel.org>\n---\n arch/powerpc/cpu/mpc85xx/cpu_init.c | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)","diff":"diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c\nindex 739d14f8002..414782c835f 100644\n--- a/arch/powerpc/cpu/mpc85xx/cpu_init.c\n+++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c\n@@ -41,10 +41,12 @@\n #ifdef CONFIG_FSL_CAAM\n #include <fsl_sec.h>\n #endif\n-#if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)\n+#if defined(CONFIG_FSL_CORENET)\n #include <asm/fsl_pamu.h>\n+#if defined(CONFIG_NXP_ESBC)\n #include <fsl_secboot_err.h>\n #endif\n+#endif\n #ifdef CONFIG_SYS_QE_FMAN_FW_IN_NAND\n #include <nand.h>\n #include <errno.h>\n@@ -899,6 +901,8 @@ int cpu_init_r(void)\n #if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)\n \tif (pamu_init() < 0)\n \t\tfsl_secboot_handle_error(ERROR_ESBC_PAMU_INIT);\n+#elif defined(CONFIG_FSL_CORENET)\n+\tpamu_init();\n #endif\n \n #ifdef CONFIG_FSL_CAAM\n","prefixes":["v2","02/11"]}