{"id":2230163,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230163/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260429121816.1026326-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":"<20260429121816.1026326-3-mwalle@kernel.org>","date":"2026-04-29T12:17:16","name":"[02/10] caam: don't write memory at 0 on PPC","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"a652724e0781106b54bc6c56d5dcbbf1ccfa7272","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/20260429121816.1026326-3-mwalle@kernel.org/mbox/","series":[{"id":502047,"url":"http://patchwork.ozlabs.org/api/1.1/series/502047/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=502047","date":"2026-04-29T12:17:14","name":"Generic powerpc fixes and NXP board cleanup","version":1,"mbox":"http://patchwork.ozlabs.org/series/502047/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230163/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230163/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=C8IUHWUp;\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=\"C8IUHWUp\";\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5GYn31rZz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 22:18:53 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1FC4784843;\n\tWed, 29 Apr 2026 14:18:42 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 4357684858; Wed, 29 Apr 2026 14:18:41 +0200 (CEST)","from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31])\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 E972984841\n for <u-boot@lists.denx.de>; Wed, 29 Apr 2026 14:18:38 +0200 (CEST)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by sea.source.kernel.org (Postfix) with ESMTP id 7FC154445C;\n Wed, 29 Apr 2026 12:18:37 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 7B14AC19425;\n Wed, 29 Apr 2026 12:18:33 +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.2 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=1777465117;\n bh=OxWeBK6+omHTBQWsZqNdx29ThafambMb+5RYuMfpqnc=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=C8IUHWUps36b7U+MvZqAGjPn+hzZ4TYcuU0j7TK2Zfmbc5/TyX76NeeC9NKfjXY5B\n fJWrAP3Ju1n/e4D6Sf2c7n2L8aTroIIHKkVFJQIn6Rplu7jcjGyGqF5enR6D7mKkct\n Md9/XNrRXZbHHDPxksytQcHkwAwhVSbUu4sJ+v+bSlQgj4koN1nH2YTLIw4V54RwD8\n ym+b74M5V7YKBXDL1cRfuzt76pqaomlAoYEAeIEomfTzf2Zv/wT3CtV5p5PtkIkt/j\n PdztydMxHVxoiqJK86dB7dxn0lvMYy25xbz4XyK9VC5Iej8wkRmzbaBrOxBWjoo+Sj\n n6+pq+XIQbSgQ==","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 02/10] caam: don't write memory at 0 on PPC","Date":"Wed, 29 Apr 2026 14:17:16 +0200","Message-ID":"<20260429121816.1026326-3-mwalle@kernel.org>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260429121816.1026326-1-mwalle@kernel.org>","References":"<20260429121816.1026326-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 | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)","diff":"diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c\nindex 739d14f8002..478ab648948 100644\n--- a/arch/powerpc/cpu/mpc85xx/cpu_init.c\n+++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c\n@@ -41,8 +41,8 @@\n #ifdef CONFIG_FSL_CAAM\n #include <fsl_sec.h>\n #endif\n-#if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)\n #include <asm/fsl_pamu.h>\n+#if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)\n #include <fsl_secboot_err.h>\n #endif\n #ifdef CONFIG_SYS_QE_FMAN_FW_IN_NAND\n@@ -899,6 +899,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+#else\n+\tpamu_init();\n #endif\n \n #ifdef CONFIG_FSL_CAAM\n","prefixes":["02/10"]}