[PATCH v2 11/11] arm64: kernel: Add support for hibernate/suspend-to-disk.
pavel at ucw.cz
Sat Nov 14 13:34:16 PST 2015
> The implementation assumes that exactly the same kernel is booted on the
> same hardware, and that the kernel is loaded at the same physical address.
BTW... on newer implementations (and I have patch for x86, too), we
try to make it so that resume kernel does not have to be same as
suspend one. It would be nice to move there with arm64, too.
> Signed-off-by: James Morse <james.morse at arm.com>
Acked-by: Pavel Machek <pavel at ucw.cz>
> + * Corrupt memory.
> + *
> + * Because this code has to be copied to a safe_page, it can't call out to
> + * other functions by pc-relative address. Also remember that it
> + * mid-way through over-writing other functions. For this reason it contains
> + * a copy of copy_page() and code from flush_icache_range().
> + *
> + * All of memory gets written to, including code. We need to clean the kernel
> + * text to the PoC before secondary cores can be booted. Because kernel modules,
"the kernel modules" and no ","?
> + * and executable pages mapped to user space are also written as data, we
> + * clean all pages we touch to the PoU.
What is PoC and PoU?
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
More information about the linux-arm-kernel