Re: [PATCH] powerpc/64: Fix kernel stack 16-byte alignment

2018-11-16 Thread Michael Ellerman
Sandipan Das writes: > On 15/11/18 8:04 AM, Nicholas Piggin wrote: >> Commit 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather >> than thread_struct") changed sizeof(struct pt_regs) % 16 from 0 to 8, >> which causes the interrupt frame allocation on kernel entry to put the >> kernel

Re: [PATCH] powerpc/64: Fix kernel stack 16-byte alignment

2018-11-16 Thread Sandipan Das
On 15/11/18 8:04 AM, Nicholas Piggin wrote: > Commit 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather > than thread_struct") changed sizeof(struct pt_regs) % 16 from 0 to 8, > which causes the interrupt frame allocation on kernel entry to put the > kernel stack out of alignment. > >

Re: [PATCH] powerpc/64: Fix kernel stack 16-byte alignment

2018-11-15 Thread Abdul Haleem
On Thu, 2018-11-15 at 12:34 +1000, Nicholas Piggin wrote: > Commit 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather > than thread_struct") changed sizeof(struct pt_regs) % 16 from 0 to 8, > which causes the interrupt frame allocation on kernel entry to put the > kernel stack out of

Re: powerpc/64: Fix kernel stack 16-byte alignment

2018-11-15 Thread Michael Ellerman
On Thu, 2018-11-15 at 02:34:27 UTC, Nicholas Piggin wrote: > Commit 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather > than thread_struct") changed sizeof(struct pt_regs) % 16 from 0 to 8, > which causes the interrupt frame allocation on kernel entry to put the > kernel stack out of

[PATCH] powerpc/64: Fix kernel stack 16-byte alignment

2018-11-14 Thread Nicholas Piggin
Commit 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather than thread_struct") changed sizeof(struct pt_regs) % 16 from 0 to 8, which causes the interrupt frame allocation on kernel entry to put the kernel stack out of alignment. Add a pad field to fix alignment, and add a