Thread (21 messages) 21 messages, 5 authors, 2016-02-08
STALE3771d REVIEWED: 1 (0M)

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

From: Pavel Machek <hidden>
Date: 2016-01-31 17:25:51
Also in: linux-pm

On Thu 2016-01-28 10:42:44, 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>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help