[PATCH v7 14/16] PM / Hibernate: Call flush_icache_range() on pages restored in-place

Catalin Marinas catalin.marinas at arm.com
Wed Apr 20 10:16:43 PDT 2016


On Fri, Apr 01, 2016 at 05:53:38PM +0100, James Morse wrote:
> Some architectures require code written to memory as if it were data to be
> 'cleaned' from any data caches before the processor can fetch them as new
> instructions.
> 
> During resume from hibernate, the snapshot code copies some pages directly,
> meaning these architectures do not get a chance to perform their cache
> maintenance. Modify the read and decompress code to call
> flush_icache_range() on all pages that are restored, so that the restored
> in-place pages are guaranteed to be executable on these architectures.
> 
> Signed-off-by: James Morse <james.morse at arm.com>
> Acked-by: Pavel Machek <pavel at ucw.cz>
> Acked-by: Rafael J. Wysocki <rjw at rjwysocki.net>

Acked-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list