From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C0BD606A322 for ; Tue, 24 Nov 2026 09:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=SO2QNmo9; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=Ix52+Ezb DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=rtdD3DYG6LvavPwQ3FDRehaDHg7vobcM7+wk2yZq+IU=; b=SO2QNmo9NieLg9bZ77ifULkinc liJFemr1mnr73f/U5/Yjd7vsjlGuNWPgdS/lTSWvK6mBsbtjSysehD27qHdeLMnCI2nW8OQ3/i6D3 yHnU/w+nLb/1QprKP4I4XIbGM+2AQtwG9RDQB/Ac5rh76l7qsonFSwFQPY3eapO3obEswLcmC+sav WkWQuG5ixf31nsRXYu6hf6KoH/MhWs3yqZ3JGl/S544dgI8m+oLEg2dhJbKRkEKmNzpRtq9oHO4EV 1pQPg1U4aQl4Zr35I1Fkd6w4GwCgjT/dT/Ufa49o9U03+ik5jbfB0qjghjruIVbH4dRLGsi081AXm Z7t7BVWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xVmZn-000000061NP-0OaX; Tue, 24 Nov 2026 09:12:35 +0000 Received: from smtpout-02.galae.net ([185.246.84.56]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xVmZk-000000061Lv-0CNx for linux-arm-kernel@lists.infradead.org; Tue, 24 Nov 2026 09:12:34 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 2F8EA1A17A9; Tue, 24 Nov 2026 09:12:27 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 03836601E1; Tue, 24 Nov 2026 09:12:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0E9A911E68A4D; Tue, 24 Nov 2026 10:12:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795511545; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=rtdD3DYG6LvavPwQ3FDRehaDHg7vobcM7+wk2yZq+IU=; b=Ix52+EzbSvj9jifwCwCJAjj/9QjlB3zUxscW9WIGk0B4HaHoEug2eD+mA30X0TZB0r4hfa DFlOIYqCULgop3qpHmzQrfMaZJUwztk1pALp7x2iLHNUts9sEHN3xM57GgmxInTG5krZK0 I+tXnJlXRJje8GW1TzoOMGHaRvJ7IZ2XRYoNMCDQQNXu2cWSGFfB8kRp3KVFegPCR6S8Wk Ct1ooel80t7T+dFZ4SEWMRoWX+PkBYTXFatyNsrJfVRotNPENdJYirU/ISss6svYVLyZnc 4JLXBYHOle2C+CbHIQkoF6Gake1wYjIUmdg6QKZM8Jd8yfmPy+qgffYuleVgOA== From: "Richard Genoud (TI)" To: Nishanth Menon , Vignesh Raghavendra Cc: Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Udit Kumar , Abhash Kumar , Beleswar Padhi , Thomas Richard , Gregory CLEMENT , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Genoud Subject: [PATCH v7 0/6] dts: ti: k3-j7: Reserve memory for LPM metadata Date: Tue, 24 Nov 2026 10:12:15 +0100 Message-ID: <20261124091221.2593576-1-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.55.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261124_011232_231778_1A4C68DE X-CRM114-Status: GOOD ( 12.48 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 For TI Jacinto SoCs (J7200, J721S2, J784S4, J722S, J742S2) which support low power modes, a chunk of memory is reserved for LPM metadata, needed for saving ATF context and the certificate information of ATF and OPTEE and the DM image. This LPM metadata area is firewalled to be accessed only by TIFS. At boot time, U-Boot R5 SPL copies the DM image into this memory region so that it doesn't have to be reloaded from storage at resume, speeding up the resume time. U-Boot R5 SPL/TIFS use this area to save and restore: - ATF context - ATF certificate information - OPTEE certificate information - DM image https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/pm/lpm.html#lpm-msg-lpm-save-addr NB: Unlike for Sitara, this memory region is not part of the DM memory, which is not retained across suspend, so the Sitara binding can't be re-used here. Patch 1 adds a new binding for this layout. Patch 2 skips the firewalled lpm-metadata memory region The other patches add the memory region for the TI Jacinto SoCs (J7200, J721S2, J784S4/J742S2, J722S) Changes since v6: - move j721s2 carveout before optee - move j722s carveout before tfa - Link to v6: https://lore.kernel.org/lkml/20261117130737.141993-1-richard.genoud@bootlin.com/ Changes since v5: - rebase on v7.4-rc3 - gather reviewed-by Link to v5: https://lore.kernel.org/lkml/20261021080947.3747284-1-richard.genoud@bootlin.com/ Changes since v4: - rebase on v7.3 - move J784S4/J742S2 carveout before optee and factorize it in k3-j784s4-j742s2-ti-ipc-firmware-common.dtsi (suggested by Udit) Link to v4: https://lore.kernel.org/lkml/20260921145325.300025-1-richard.genoud@bootlin.com/ Changes since v3: - rebase on v7.3-rc4 - skip mapping the firewalled lpm-metadata memory region Link to v3: https://lore.kernel.org/lkml/20260703143717.177362-1-richard.genoud@bootlin.com/ Changes since v2: - Split the DTS changes per ipc-firmware.dtsi - Reference the LPM carveout through a phandle - Add a dt-bindings patch documenting the "lpm-metadata" memory-region name for the Jacinto layout. - Use the generic @memory node naming instead of @lpm-memory. - Clarify how the DM image is handled Link to v2: https://lore.kernel.org/lkml/20260427160326.370415-1-richard.genoud@bootlin.com/ Changes since v1: - add specific lpm region for j742s2 and j784s4 instead of the common one since the addresses are not the same. - add j721s2 lpm_memory_region - change j722s addresse to prevent holes Link to v1: https://lore.kernel.org/lkml/20260312113446.1857592-1-p-mantena@ti.com/ Richard Genoud (TI) (6): dt-bindings: remoteproc: k3-r5f: Add Jacinto LPM memory region remoteproc: k3: skip mapping firewalled lpm-metadata memory region arm64: dts: ti: k3-j7200-ti-ipc-firmware: Reserve memory for LPM metadata arm64: dts: ti: k3-j721s2-ti-ipc-firmware: Reserve memory for LPM metadata arm64: dts: ti: k3-j784s4-j742s2-ti-ipc-firmware-common: Reserve memory for LPM metadata arm64: dts: ti: k3-j722s-ti-ipc-firmware: Reserve memory for LPM metadata .../bindings/remoteproc/ti,k3-r5f-rproc.yaml | 18 ++++++++-- .../boot/dts/ti/k3-j7200-ti-ipc-firmware.dtsi | 12 +++++-- .../dts/ti/k3-j721s2-ti-ipc-firmware.dtsi | 12 +++++-- .../boot/dts/ti/k3-j722s-ti-ipc-firmware.dtsi | 12 +++++-- ...-j784s4-j742s2-ti-ipc-firmware-common.dtsi | 12 +++++-- drivers/remoteproc/ti_k3_common.c | 36 +++++++++++++------ 6 files changed, 80 insertions(+), 22 deletions(-) base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3