Thread (30 messages) 30 messages, 5 authors, 2016-02-21
STALE3765d

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

From: Rafael J. Wysocki <hidden>
Date: 2016-02-16 19:27:18
Also in: linux-pm

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@arm.com>
Acked-by: Pavel Machek <redacted>
This is fine by me.

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

Thanks,
Rafael
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help