Re: [PATCH v3 08/13] arm64: Add vmap_stack header file

2017-10-17 Thread James Morse
Hi Catalin, On 13/10/17 16:42, Catalin Marinas wrote: > On Fri, Sep 22, 2017 at 07:26:09PM +0100, James Morse wrote: >> diff --git a/arch/arm64/include/asm/vmap_stack.h >> b/arch/arm64/include/asm/vmap_stack.h >> new file mode 100644 >> index ..f41d043cac31 >> --- /dev/null >> +++ b/a

Re: [PATCH v3 08/13] arm64: Add vmap_stack header file

2017-10-13 Thread Catalin Marinas
On Fri, Sep 22, 2017 at 07:26:09PM +0100, James Morse wrote: > diff --git a/arch/arm64/include/asm/vmap_stack.h > b/arch/arm64/include/asm/vmap_stack.h > new file mode 100644 > index ..f41d043cac31 > --- /dev/null > +++ b/arch/arm64/include/asm/vmap_stack.h > @@ -0,0 +1,41 @@ > +/* > +

[PATCH v3 08/13] arm64: Add vmap_stack header file

2017-09-22 Thread James Morse
Today the arm64 arch code allocates an extra IRQ stack per-cpu. If we also have SDEI and VMAP stacks we need two extra per-cpu VMAP stacks. Move the VMAP stack allocation out to a helper in a new header file. This avoids missing THREADINFO_GFP, or getting the all-important alignment wrong. Signed