public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* [PATCH 1/7] PowerPC64: Not to insert EA=0 entry at initializing SLB
@ 2007-09-26  4:20 Ishizaki Kou
  2007-09-26 12:15 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Ishizaki Kou @ 2007-09-26  4:20 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

This is a workaround NOT to insert EA=0 entry at initializing SLB.
Without this patch, you can see /sbin/init hanging at a machine
which has less or equal than 256MB memory.

Signed-off-by: Kou Ishizaki <Kou.Ishizaki@toshiba•co.jp>
---

Index: linux-powerpc-git/arch/powerpc/kernel/setup_64.c
===================================================================
--- linux-powerpc-git.orig/arch/powerpc/kernel/setup_64.c
+++ linux-powerpc-git/arch/powerpc/kernel/setup_64.c
@@ -195,6 +195,12 @@ void __init early_setup(unsigned long dt
 	get_paca()->stab_real = __pa((u64)&initial_stab);
 	get_paca()->stab_addr = (u64)&initial_stab;
 
+	/* XXX: It's a hack!
+	 * kstack must be set properly or slb_initialize() go mad to set
+	 * ESID=0 entry in bolted area of SLB.
+	 * TODO: Set correct value */
+	get_paca()->kstack = (u64)__builtin_frame_address(0);
+
 	/* Probe the machine type */
 	probe_machine();
 

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

* Re: [PATCH 1/7] PowerPC64: Not to insert EA=0 entry at initializing SLB
  2007-09-26  4:20 [PATCH 1/7] PowerPC64: Not to insert EA=0 entry at initializing SLB Ishizaki Kou
@ 2007-09-26 12:15 ` Arnd Bergmann
  0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2007-09-26 12:15 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: paulus

On Wednesday 26 September 2007, Ishizaki Kou wrote:
> This is a workaround NOT to insert EA=0 entry at initializing SLB.
> Without this patch, you can see /sbin/init hanging at a machine
> which has less or equal than 256MB memory.

Can you elaborate? I don't understand why /sbin/init will hang
because of an incorrect SLB entry, or how that entry gets
initialized from get_paca()->kstack.

Are you still trying to find a better fix for 2.6.24, or do
you intend to have this patch go in for now?

Also, I did not get a patch 4/7 and 5/7. Did you send them to
some other mailing list, or did they get lost on the way?

	Arnd <><

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

end of thread, other threads:[~2007-09-26 12:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26  4:20 [PATCH 1/7] PowerPC64: Not to insert EA=0 entry at initializing SLB Ishizaki Kou
2007-09-26 12:15 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox