[PATCH 2/2] powerpc/hibernate: add restore mmu context after resume

Wang Dongsheng-B40534 B40534 at freescale.com
Wed Aug 7 19:55:40 EST 2013



> -----Original Message-----
> From: Benjamin Herrenschmidt [mailto:benh at kernel.crashing.org]
> Sent: Saturday, July 13, 2013 7:07 AM
> To: Wood Scott-B07421
> Cc: Wang Dongsheng-B40534; Wood Scott-B07421; johannes at sipsolutions.net;
> anton at enomsg.org; galak at kernel.crashing.org; linuxppc-
> dev at lists.ozlabs.org
> Subject: Re: [PATCH 2/2] powerpc/hibernate: add restore mmu context after
> resume
> 
> On Fri, 2013-07-12 at 16:54 -0500, Scott Wood wrote:
> > set_context() doesn't exist for hash MMUs.
> >
> > Whatever you do, please try actually building it on various targets,
> > including both 32 and 64 bits, and both hash and non-hash.  And make
> > sure that whatever effect PPC32 was depending on switch_mmu_context
> > for
> > is preserved, including on non-booke.
> 
> The right thing to do is probably to have the various tlb_* files
How about mmu_context_* files to provide a pair of save/restore context functions?

> provide a pair of save/restore functions that do the right thing
> for that specific MMU type.
> 
> Ben.
> 
> 



More information about the Linuxppc-dev mailing list