linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Add kexec support for fsl-book-e [V2]
@ 2008-11-03 20:01 Sebastian Andrzej Siewior
  2008-11-03 20:01 ` [PATCH 1/2] powerpc: add kexec support on FSL-Book-E Sebastian Andrzej Siewior
  2008-11-03 20:01 ` [PATCH 2/2] powerpc: enable kexec support on mpc8544ds Sebastian Andrzej Siewior
  0 siblings, 2 replies; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2008-11-03 20:01 UTC (permalink / raw)
  To: linuxppc-dev

This is the kernel part of the kexec support for mpc8544 / FSL BookE.
This version should fix the two things Ben noticed during his review.

Changelog:
 v1: - Removed runtime detection between fsl-book-e & no-mmu part
     - Marked the mmu-setup part as FSL BookE because it does not work
       on BooKE in general

Sebastian

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re:[PATCH 1/2] powerpc: add kexec support on FSL-Book-E
@ 2009-08-02  1:25 wilbur.chan
  2009-08-04 19:41 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 5+ messages in thread
From: wilbur.chan @ 2009-08-02  1:25 UTC (permalink / raw)
  To: bigeasy; +Cc: linuxppc-dev

Hi, Sebastian,

>From: Sebastian Andrzej Siewior <bigeasy at linutronix.de>

>The relocate_new_kernel() code usually disables the MMU and the small code
>operates on physicall pages while moving the kernel to its final position.
>Book-E doesn't support this so a 1:1 mapping must be created.
>This patch adds support for FSL-BOOK-E implementation.

>Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>




>+      xori    r6,r4,1                 /* Setup TMP mapping in the other A=
ddress space */
>+      slwi    r6,r6,12
>+      oris    r6,r6,(MAS1_VALID|MAS1_IPROT)@h
>+      ori     r6,r6,(MAS1_TSIZE(BOOKE_PAGESZ_1GB))@l
>+      mtspr   SPRN_MAS1,r6

>.........

>+      /* find our address */
>+      addi    r7, r30, final_copy_code - relocate_new_kernel
>+
>+      mtspr   SPRN_SRR0,r7
>+      mtspr   SPRN_SRR1,r6
>+      rfi

...........................................................................=
.................................................................

In your patch of Booke support for kexec , it setup a 1GB TMP mapping
and jump to it.

But I saw that, the max size for an e500 entry is 256M=A3=ACso I changed
your code to setup 4*256M entries, and it works well on mpc8541.

Howerver,it didn't work on mpc8548(e500 v2)  and
P2020ds(SMP,e500 v2) , and  'rfi' to final_copy_code failed.(I also
setup a 1:1 mapping for serial ,so I can trap the flowchart in
relocate_new_kernel)


Any suggestions about this ?   Thank you very much.


regards,

wilbur

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-06 14:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 20:01 Add kexec support for fsl-book-e [V2] Sebastian Andrzej Siewior
2008-11-03 20:01 ` [PATCH 1/2] powerpc: add kexec support on FSL-Book-E Sebastian Andrzej Siewior
2008-11-03 20:01 ` [PATCH 2/2] powerpc: enable kexec support on mpc8544ds Sebastian Andrzej Siewior
  -- strict thread matches above, loose matches on Subject: below --
2009-08-02  1:25 Re:[PATCH 1/2] powerpc: add kexec support on FSL-Book-E wilbur.chan
2009-08-04 19:41 ` Sebastian Andrzej Siewior
2009-08-25 16:09   ` wilbur.chan
2009-08-28 19:35     ` [PATCH " Sebastian Andrzej Siewior
2009-09-06 14:27       ` wilbur.chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).