Skip to content

Jetson-TK1 support for PSCI

Ian Campbell u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tegra124: Add more registers to struct mc_ctlrarch/arm/include/asm/arch-tegra124/mc.h+33 -21 reply
1/4tegra124: Add more registers to struct mc_ctlr+0 -00 replies
2/4virt-dt: Allow reservation of the secure region when it is in a RAM carveout.arch/arm/cpu/armv7/virt-dt.c+5 -01 reply
2/4virt-dt: Allow reservation of the secure region when it is in a RAM carveout.+0 -00 replies
2/4virt-dt: Allow reservation of the secure region when it is in a RAM carveout.+0 -00 replies
3/4jetson-tk1: Add PSCI configuration options and reserve secure codearch/arm/cpu/armv7/tegra124/Kconfig include/configs/jetson-tk1.h+7 -02 replies
3/4jetson-tk1: Add PSCI configuration options and reserve secure code+0 -01 reply
4/4tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0arch/arm/cpu/armv7/virt-v7.c arch/arm/cpu/tegra-common/ap.c arch/arm/include/asm/system.h+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

Hi Thierry,

I needed to boot my Jetson in NS mode (in order to boot Xen) and was investigating the possibility of PSCI support when I discovered that you had already started on it[0]. Hurrah!

I cherry-picked the relevant commit onto u-boot-tegra#master and added a few more patches and now it boots correctly for me, both running Xen (some Xen side patches are needed too) and native Linux.

The main things which was needed was to rebase for some recent Kconfig changes relating to virt and nonsec mode and to arrange for the RAM used by the secure code to be reserved in the FDT. I also reserved the RAM using the hardware MC_SECURITY_CFG registers for good measure.

I also pushed my tree to gitorious:
https://gitorious.org/ijc/u-boot jetson-psci-v1

I would Ack your patch, but I don't think you've posted it and it has no S-o-b so that would seem a bit premature/rude of me. For the same reason I've not actually included it in the series posted (but it is in the gitorious branch).

FWIW I think you could drop your stub versions of psci_cpu_off and psci_cpu_suspend (assuming you don't want to implement them) since the common code has stubs.

Albert, I've CCd you on a couple of patches which touch common ARM code. Nothing too major I think.

Cheers,
Ian.

[0]
https://github.com/thierryreding/u-boot/commit/5996d2b0dea2953ae8881f40b7f85b6fb8c50791