[PATCH v5 13/15] PM / Hibernate: Call flush_icache_range() on pages restored in-place

Rafael J. Wysocki rjw at rjwysocki.net
Tue Feb 16 11:27:18 PST 2016


On Tuesday, February 16, 2016 03:49:25 PM 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>

This is fine by me.

Please feel free to add my ACK to it if that helps.

Thanks,
Rafael




More information about the linux-arm-kernel mailing list