Re: [PATCH 0/2] Allow configurable stack size (especially 32k on PPC64)

2017-02-23 Thread Hamish Martin
On 02/22/2017 09:06 PM, Benjamin Herrenschmidt wrote: > On Wed, 2017-02-22 at 17:25 +1100, Michael Ellerman wrote: >> >> Thanks for the detailed explanation. >> >> The patches look fine, so I don't see any reason why we wouldn't merge >> this. I might make the config option depend on EXPERT, but th

Re: [PATCH 0/2] Allow configurable stack size (especially 32k on PPC64)

2017-02-23 Thread Hamish Martin
On 02/22/2017 07:25 PM, Michael Ellerman wrote: > Hamish Martin writes: >> This patch series adds the ability to configure the THREAD_SHIFT value and >> thereby alter the stack size on powerpc systems. We are particularly >> interested >> in configuring for a 32k stack on PPC64. > ... >> >> For i

Re: [PATCH 0/2] Allow configurable stack size (especially 32k on PPC64)

2017-02-22 Thread Benjamin Herrenschmidt
On Wed, 2017-02-22 at 17:25 +1100, Michael Ellerman wrote: > > Thanks for the detailed explanation. > > The patches look fine, so I don't see any reason why we wouldn't merge > this. I might make the config option depend on EXPERT, but that's just > cosmetic. > > > You're right about the differ

Re: [PATCH 0/2] Allow configurable stack size (especially 32k on PPC64)

2017-02-21 Thread Michael Ellerman
Hamish Martin writes: > This patch series adds the ability to configure the THREAD_SHIFT value and > thereby alter the stack size on powerpc systems. We are particularly > interested > in configuring for a 32k stack on PPC64. ... > > For instance for a 70 frame stack, the architecture overhead ju

Re: [PATCH 0/2] Allow configurable stack size (especially 32k on PPC64)

2017-02-21 Thread Benjamin Herrenschmidt
On Tue, 2017-02-21 at 13:51 +0100, Gabriel Paubert wrote: > For now it has only been used for little-endian kernel and > applications, > but according to messages that I have seen on the list, switching the > kernelĀ  > to Elf V2 should be possible. I don't think the toolchain "supports" ELFv2 on B

Re: [PATCH 0/2] Allow configurable stack size (especially 32k on PPC64)

2017-02-21 Thread Gabriel Paubert
On Tue, Feb 21, 2017 at 09:24:38AM +1300, Hamish Martin wrote: > This patch series adds the ability to configure the THREAD_SHIFT value and > thereby alter the stack size on powerpc systems. We are particularly > interested > in configuring for a 32k stack on PPC64. > > Using an NXP T2081 (e6500