]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: dynamically mark r5 cores as used
authorLukas Funke <lukas.funke@weidmueller.com>
Fri, 28 Oct 2022 12:15:47 +0000 (14:15 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 5 Dec 2022 07:55:54 +0000 (08:55 +0100)
commitd9efdc7d424ddfdc2aafeee4268435f9f46dd1db
tree826900f0e798a9abac7a00c724585dfebc1c814f
parentf3558be91e5086f1673d47ba8c430e7640b32e71
arm64: zynqmp: dynamically mark r5 cores as used

When Linux boot takes over control of the pmu
(by signaling PM_INIT_FINALIZE via ipi), pmu will switch off 'unused'
rpu cores. The Xilinx zynqmp fsbl prevents switching off those cores by
marking rpu cores as 'used' when loading code partitions to those cores.
The current u-boot SPL is missing this behaviour, which results in
halting rpu cores during Linux boot.

This commit mimics the xilinx zynqmp fsbl behavior by marking r5 cores as
used when they are released during boot.

Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke-oss@weidmueller.com>
Link: https://lore.kernel.org/r/20221028121547.26464-2-lukas.funke-oss@weidmueller.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm/mach-zynqmp/include/mach/hardware.h
arch/arm/mach-zynqmp/mp.c