Kexec on arm64
Geoff Levand
geoff at infradead.org
Tue Jul 29 14:19:01 PDT 2014
Hi Mark,
On Tue, 2014-07-29 at 14:35 +0100, Mark Rutland wrote:
> Since c218bca74eea (arm64: Relax the kernel cache requirements for
> boot), the kernel will flush the cache for anything outside of the Image
> that it writes to before enabling the MMU and caches (e.g. the idmap and
> swapper page tables). Once caches are up we shouldn't care.
>
> Assuming that the existing kernel code is correct, the only region we
> should need to flush out to the PoC is the region from _text to _edata
> (i.e. just the contents of the Image).
If the new kernel will overwrite the old one, then we do the final copy
of the new kernel in the relocate_new_kernel routine. relocate_new_kernel
is executed after the dcache is disabled, so that should write it directly
to the PoC. It seems the protocol expects us to invalidate the dcache
for that range though, so I added code to do this, essentially what Arun
had added.
Arun, please try.
-Geoff
More information about the linux-arm-kernel
mailing list