Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2022-09-08 Thread Christophe Leroy
Le 08/09/2022 à 15:48, Segher Boessenkool a écrit : > On Thu, Sep 08, 2022 at 06:00:24AM +, Christophe Leroy wrote: >> Looking at it more deeply, I see strange things. > > I'll have to see full generated machine code to be able to see strange > things, there isn't enough information at all h

Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2022-09-08 Thread Segher Boessenkool
Hi! On Thu, Sep 08, 2022 at 05:07:24PM +0200, Arnd Bergmann wrote: > - if the XOR code has its frame size explode like this, it's > probably an indication of the compiler doing something wrong, > not the kernel code. On the contrary, it is most likely an indication that the kernel code wants

Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2022-09-08 Thread Arnd Bergmann
On Thu, Sep 8, 2022, at 2:27 AM, Michael Ellerman wrote: > Christophe Leroy writes: > > Yeah that would make some sense. > > On 64-bit the largest frame in that file is 1424, which is below the > default 2048 byte limit. > > So maybe just increase it for 32-bit && KASAN. > > What would be nice is

Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2022-09-08 Thread Segher Boessenkool
On Thu, Sep 08, 2022 at 06:00:24AM +, Christophe Leroy wrote: > Looking at it more deeply, I see strange things. I'll have to see full generated machine code to be able to see strange things, there isn't enough information at all here yet. Sorry. Use private mail if it is too big or unintere

Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2022-09-07 Thread Christophe Leroy
Le 08/09/2022 à 02:27, Michael Ellerman a écrit : > Christophe Leroy writes: >> Le 21/06/2019 à 10:58, Mathieu Malaterre a écrit : >>> When building with clang-8 the frame size limit is hit: >>> >>> ../arch/powerpc/lib/xor_vmx.c:119:6: error: stack frame size of 1200 >>> bytes in function '

Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2022-09-07 Thread Michael Ellerman
Christophe Leroy writes: > Le 21/06/2019 à 10:58, Mathieu Malaterre a écrit : >> When building with clang-8 the frame size limit is hit: >> >>../arch/powerpc/lib/xor_vmx.c:119:6: error: stack frame size of 1200 >> bytes in function '__xor_altivec_5' [-Werror,-Wframe-larger-than=] >> >> Foll

Re: [PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2022-09-07 Thread Christophe Leroy
Le 21/06/2019 à 10:58, Mathieu Malaterre a écrit : When building with clang-8 the frame size limit is hit: ../arch/powerpc/lib/xor_vmx.c:119:6: error: stack frame size of 1200 bytes in function '__xor_altivec_5' [-Werror,-Wframe-larger-than=] Follow the same approach as commit 9c87156cce

[PATCH] powerpc/lib/xor_vmx: Relax frame size for clang

2019-06-21 Thread Mathieu Malaterre
When building with clang-8 the frame size limit is hit: ../arch/powerpc/lib/xor_vmx.c:119:6: error: stack frame size of 1200 bytes in function '__xor_altivec_5' [-Werror,-Wframe-larger-than=] Follow the same approach as commit 9c87156cce5a ("powerpc/xmon: Relax frame size for clang") until a p