Message ID | f6d16f3321f1dc89b77ada1c7d961fae4089766e.1613120077.git.christophe.leroy@csgroup.eu |
---|---|
State | New |
Headers | show |
Series | [for,5.10] powerpc/32: Preserve cr1 in exception prolog stack check to fix build error | expand |
On Fri, Feb 12, 2021 at 08:57:14AM +0000, Christophe Leroy wrote: > This is backport of 3642eb21256a ("powerpc/32: Preserve cr1 in > exception prolog stack check to fix build error") for kernel 5.10 > > It fixes the build failure on v5.10 reported by kernel test robot > and by David Michael. > > This fix is not in Linux tree yet, it is in next branch in powerpc tree. Then there's nothing I can do about it until that happens :(
Le 15/02/2021 à 15:30, Greg KH a écrit : > On Fri, Feb 12, 2021 at 08:57:14AM +0000, Christophe Leroy wrote: >> This is backport of 3642eb21256a ("powerpc/32: Preserve cr1 in >> exception prolog stack check to fix build error") for kernel 5.10 >> >> It fixes the build failure on v5.10 reported by kernel test robot >> and by David Michael. >> >> This fix is not in Linux tree yet, it is in next branch in powerpc tree. > > Then there's nothing I can do about it until that happens :( > It now is in Linus' tree, see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3642eb21256a317ac14e9ed560242c6d20cf06d9 Thanks Christophe
On Tue, Feb 23, 2021 at 03:39:20PM +0100, Christophe Leroy wrote: > > > Le 15/02/2021 à 15:30, Greg KH a écrit : > > On Fri, Feb 12, 2021 at 08:57:14AM +0000, Christophe Leroy wrote: > > > This is backport of 3642eb21256a ("powerpc/32: Preserve cr1 in > > > exception prolog stack check to fix build error") for kernel 5.10 > > > > > > It fixes the build failure on v5.10 reported by kernel test robot > > > and by David Michael. > > > > > > This fix is not in Linux tree yet, it is in next branch in powerpc tree. > > > > Then there's nothing I can do about it until that happens :( > > > > It now is in Linus' tree, see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3642eb21256a317ac14e9ed560242c6d20cf06d9 Now queued up, thanks. greg k-h
diff --git a/arch/powerpc/kernel/head_32.h b/arch/powerpc/kernel/head_32.h index c88e66adecb5..fef0b34a77c9 100644 --- a/arch/powerpc/kernel/head_32.h +++ b/arch/powerpc/kernel/head_32.h @@ -56,7 +56,7 @@ 1: tophys_novmstack r11, r11 #ifdef CONFIG_VMAP_STACK - mtcrf 0x7f, r1 + mtcrf 0x3f, r1 bt 32 - THREAD_ALIGN_SHIFT, stack_overflow #endif .endm diff --git a/arch/powerpc/kernel/head_book3s_32.S b/arch/powerpc/kernel/head_book3s_32.S index d66da35f2e8d..2729d8fa6e77 100644 --- a/arch/powerpc/kernel/head_book3s_32.S +++ b/arch/powerpc/kernel/head_book3s_32.S @@ -280,12 +280,6 @@ MachineCheck: 7: EXCEPTION_PROLOG_2 addi r3,r1,STACK_FRAME_OVERHEAD #ifdef CONFIG_PPC_CHRP -#ifdef CONFIG_VMAP_STACK - mfspr r4, SPRN_SPRG_THREAD - tovirt(r4, r4) - lwz r4, RTAS_SP(r4) - cmpwi cr1, r4, 0 -#endif beq cr1, machine_check_tramp twi 31, 0, 0 #else