From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794920875; b=RtySBBVI2R1uIFUJmah1WkhkWkdCBlSW4ZBLkFKbJf9DhRu5yosKtUwbrRBgLECgvJml fIa+8eWxxiOLRX7xZ2SEWNnJC8ztGreZUIiDdGvaONla5kjlPFE+vyevqNDQw/H0Ri5Kc doMxxvj5Ypu9kF9AmrLhxQyY/HRwldtgbu/FL0HZ+W0i4MCdtfNo/Z1Y56WaMf4k7Ojgt ddbnasedtikjW5cTC/eMD4k/ThBmYTG18D/aMNS1lB0eKm/Fm836hbcX34zpTtXHcV3lQ AkSnGuaHjCT3mxggLTJf9HnRBPJLpbWNOqTIgBrgTNsN+YwYbwTYTmVBIMULKbd3Npw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794920875; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=c3Dueu5TPCNGCDPtRN5VUoDG96X05et2nYta3+bvLTk=; b=nwaGn8u3HYq1DoGcVAmX+4EUTkRQm9nWgeYChhJ6gXb9hDzOo2oCNUddKKkqgDGfsfvM kienQs2xn6sSOiWkOzLgv9wB9ERQCNzZP42t+X+2EfguZWoWVBPvW+CecOcEZIW0G3QSz WFxA+h20cQI7V5+KzIv9g8FwPseNZj7NgFVbEdFOGS3Uc3TF9zUpTZbYkSS/TMqeo1kKd iiFHFGup8HMLcd7XILgo5kXioPr3zUJM4wLrkRtTCVq7VgA6/6/fo+KMCbvvDukHill6u d5cnH3lOc5FfIeK5yT0pxZqajZTsMWKBLFr9irRfog+qXOw+CuZMO08/OU0iCawLIjw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=ioTceAOi; arc=none smtp.remote-ip=185.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 D0587606A32C for ; Tue, 17 Nov 2026 13:07:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D0587606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=ioTceAOi Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 2AA5E4E4156A; Tue, 17 Nov 2026 13:07:51 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id EB3F95FC81; Tue, 17 Nov 2026 13:07:50 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0C97611BC0024; Tue, 17 Nov 2026 14:07:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1794920869; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=c3Dueu5TPCNGCDPtRN5VUoDG96X05et2nYta3+bvLTk=; b=ioTceAOiB8oWPw32RePNfZmU6fs6uuEcDr5FSclTbQp9gfuzxbbIW44tK4mcHftBdGANzF BWoJr/7nN5584YgZO/tpnqNkSGezf4ZDyKVnWYoz52lbGZPplvbJca5l9G1shfRASEDjHv YYJt6zEc0DlnQuNXSpLsjoFBR0fwK6+YJYTlADmn9RtxUFQyfXI2zpQMs/e6lTyyAyt3iR ygd4K8GT/FZLzx2rwAkCafyLu3KPl+Qd6m7OtyNdi03Qq1bygdtSU3luysySbGoiLNySVM e5lonO01r1sof2FmkCBPu/LSwu9BWPpCXMj/u3nPjZKY07Hvt5s9hL5ysJEYvg== 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 v6 0/6] dts: ti: k3-j7: Reserve memory for LPM metadata Date: Tue, 17 Nov 2026 14:07:31 +0100 Message-ID: <20261117130737.141993-1-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.55.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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 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