Thread (18 messages) 18 messages, 5 authors, 2010-05-18

Re: [PATCH v4] powerpc: Add hibernation support for FSL BookE processors

From: Kumar Gala <hidden>
Date: 2010-05-17 18:04:03

On Apr 16, 2010, at 2:03 PM, Anton Vorontsov wrote:
This is started as swsusp_32.S modifications, but the amount of =
#ifdefs
made the whole file horribly unreadable, so let's put the support into
its own separate file.
=20
The code should be relatively easy to modify to support 44x BookEs as
well, but since I don't have any 44x to test, let's confine the code =
to
FSL BookE. (The only FSL-specific part so far is 'flush_dcache_L1'.)
=20
Signed-off-by: Anton Vorontsov <redacted>
---
=20
On Fri, Apr 16, 2010 at 10:54:36AM -0500, Scott Wood wrote:
quoted
Anton Vorontsov wrote:
quoted
+	/* Invalidate TLB0 & TLB1 */
+	li	r6,0x04
+	tlbivax 0,r6
+	TLBSYNC
+	li	r6,0x0c
+	tlbivax 0,r6
+	TLBSYNC
=20
Is this needed?  Shouldn't the boot process have already given us a
sane TLB?
=20
Thanks for catching, it seems that it's just a left over from
some debugging code and not actually needed. ..that reminded me
the time I spent inserting BookE specific code into swsusp_32.S,
and then debugging all that #ifdef mess...
=20
This is tested on e500v2.
=20
arch/powerpc/kernel/Makefile       |    8 +-
arch/powerpc/kernel/swsusp_booke.S |  192 =
++++++++++++++++++++++++++++++++++++
2 files changed, 198 insertions(+), 2 deletions(-)
create mode 100644 arch/powerpc/kernel/swsusp_booke.S
Scott, you ok (ACK) this version or still need tweaks?

- k=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help