* how do I increase default kernel stack size for my MPC8548 board? @ 2010-04-30 0:43 hank peng 2014-03-11 12:35 ` perth1415 0 siblings, 1 reply; 4+ messages in thread From: hank peng @ 2010-04-30 0:43 UTC (permalink / raw) To: linuxppc-dev In kernel source, default kernel stack size for PPC32 is as follows: #if defined(CONFIG_PPC64) #define THREAD_SHIFT 14 #elif defined(CONFIG_PPC_256K_PAGES) #define THREAD_SHIFT 15 #else #define THREAD_SHIFT 13 #endif #define THREAD_SIZE (1 << THREAD_SHIFT) So, default value is 8K, but now I want to increase it to 16K, is it OK just to change THREAD_SHIFT to 14? or is there some patch needed? -- The simplest is not all best but the best is surely the simplest! ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how do I increase default kernel stack size for my MPC8548 board? 2010-04-30 0:43 how do I increase default kernel stack size for my MPC8548 board? hank peng @ 2014-03-11 12:35 ` perth1415 2014-03-11 14:19 ` perth1415 0 siblings, 1 reply; 4+ messages in thread From: perth1415 @ 2014-03-11 12:35 UTC (permalink / raw) To: linuxppc-dev Hi, I have the exact same query. We have a board with MPC8378, which is a 32-bit processor running 2.6-25 kernel. I increased THREAD_SHIFT to 14. Now the board hangs just after the "Uncompressing Kernel Image ... OK" message from U-boot. Is there any other change required for 16k stack apart from THREAD_SHIFT? Thanks, Partha -- View this message in context: http://linuxppc.10917.n7.nabble.com/how-do-I-increase-default-kernel-stack-size-for-my-MPC8548-board-tp52842p80711.html Sent from the linuxppc-dev mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how do I increase default kernel stack size for my MPC8548 board? 2014-03-11 12:35 ` perth1415 @ 2014-03-11 14:19 ` perth1415 2014-03-14 0:11 ` Scott Wood 0 siblings, 1 reply; 4+ messages in thread From: perth1415 @ 2014-03-11 14:19 UTC (permalink / raw) To: linuxppc-dev Looks like I found the issue :-) The stack size for init task needs to be updated too. Right now it's by default set to 8K for PPC32. In arch/powerpc/kernel/vmlinux.lds.S - === /* The initial task and kernel stack */ #ifdef CONFIG_PPC32 . = ALIGN(8192); #else . = ALIGN(16384); #endif === Problem is, how do we link this to THREAD_SHIFT? Thanks, Partha -- View this message in context: http://linuxppc.10917.n7.nabble.com/how-do-I-increase-default-kernel-stack-size-for-my-MPC8548-board-tp52842p80712.html Sent from the linuxppc-dev mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how do I increase default kernel stack size for my MPC8548 board? 2014-03-11 14:19 ` perth1415 @ 2014-03-14 0:11 ` Scott Wood 0 siblings, 0 replies; 4+ messages in thread From: Scott Wood @ 2014-03-14 0:11 UTC (permalink / raw) To: perth1415; +Cc: linuxppc-dev On Tue, 2014-03-11 at 07:19 -0700, perth1415 wrote: > Looks like I found the issue :-) The stack size for init task needs to be > updated too. Right now it's by default set to 8K for PPC32. > > In arch/powerpc/kernel/vmlinux.lds.S - > === > /* The initial task and kernel stack */ > #ifdef CONFIG_PPC32 > . = ALIGN(8192); > #else > . = ALIGN(16384); > #endif > === > > Problem is, how do we link this to THREAD_SHIFT? Have you tried: . = ALIGN(THREAD_SIZE) ? Or just use a newer kernel, where this is already done. :-) -Scott ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-14 0:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-04-30 0:43 how do I increase default kernel stack size for my MPC8548 board? hank peng 2014-03-11 12:35 ` perth1415 2014-03-11 14:19 ` perth1415 2014-03-14 0:11 ` Scott Wood
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).