From: Tom Rini Date: Tue, 27 Jan 2015 08:33:24 -0500 Subject: [U-Boot] [PATCH] armv8/vexpress64: make multientry conditional In-Reply-To: <1422362771-26991-1-git-send-email-linus.walleij@linaro.org> References: <1422362771-26991-1-git-send-email-linus.walleij@linaro.org> Message-ID: <20150127133324.GI10826@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jan 27, 2015 at 01:46:11PM +0100, Linus Walleij wrote: > While the Freescale ARMv8 board LS2085A will enter U-Boot both > on a master and a secondary (slave) CPU, this is not the common > behaviour on ARMv8 platforms. The norm is that U-Boot is entered > from the master CPU only, while the other CPUs are kept in > WFI (wait for interrupt) state. > > The code determining which CPU we are running on is using the > MPIDR register, but the definition of that register varies with > platform to some extent, and handling multi-cluster platforms > (such as the Juno) will become cumbersome. It is better to only > enable the multiple entry code on machines that actually need > it and disable it by default. > > Make the single entry default and add a special > CONFIG_ARMV8_MULTIENTRY config option to be used by the > platforms that need multientry and set it for the LS2085A. > Delete all use of the CPU_RELEASE_ADDR from the Vexpress64 > boards as it is just totally unused and misleading, and > make it conditional in the generic start.S code. > > This makes the Juno platform start U-Boot properly. > > Signed-off-by: Linus Walleij This seems fine conceptually but can you add arch/arm/cpu/armv8/Kconfig to introduce the ARMV8_MULTIENTRY symbol and then just enable it for LS2085A there? Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: