Skip to content

dts: ti: k3-j7: Reserve memory for LPM metadata

Richard Genoud (TI) linux-arm-kernel linux-devicetree lkml 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest6 patches 0 repliesNew
  2. v66 patches 0 repliesSuperseded
  3. v56 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v47 patches3 repliesSuperseded
v36 patches2 repliesSuperseded
v21 patch2 repliesSuperseded

Changes in v7 from the cover letter

- move j721s2 carveout before optee
- move j722s carveout before tfa
- Link to v6: https://lore.kernel.org/lkml/[email protected]/

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dt-bindings: remoteproc: k3-r5f: Add Jacinto LPM memory regionDocumentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml+15 -30 replies
2/6remoteproc: k3: skip mapping firewalled lpm-metadata memory regiondrivers/remoteproc/ti_k3_common.c+25 -110 replies
3/6arm64: dts: ti: k3-j7200-ti-ipc-firmware: Reserve memory for LPM metadataarch/arm64/boot/dts/ti/k3-j7200-ti-ipc-firmware.dtsi+10 -20 replies
4/6arm64: dts: ti: k3-j721s2-ti-ipc-firmware: Reserve memory for LPM metadataarch/arm64/boot/dts/ti/k3-j721s2-ti-ipc-firmware.dtsi+10 -20 replies
5/6arm64: dts: ti: k3-j784s4-j742s2-ti-ipc-firmware-common: Reserve memory for LPM metadataarch/arm64/boot/dts/ti/k3-j784s4-j742s2-ti-ipc-firmware-common.dtsi+10 -20 replies
6/6arm64: dts: ti: k3-j722s-ti-ipc-firmware: Reserve memory for LPM metadataarch/arm64/boot/dts/ti/k3-j722s-ti-ipc-firmware.dtsi+10 -20 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Udit Kumar
1/6R-b
2/6
3/6
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/6] dts: ti: k3-j7: Reserve memory for LPM metadata

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/[email protected]/

Changes since v5:
- rebase on v7.4-rc3
- gather reviewed-by
Link to v5: https://lore.kernel.org/lkml/[email protected]/

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/[email protected]/

Changes since v3:
- rebase on v7.3-rc4
- skip mapping the firewalled lpm-metadata memory region
Link to v3: https://lore.kernel.org/lkml/[email protected]/

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/[email protected]/

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/[email protected]/

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