Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2024-01-23 Thread Matthias Schiffer
On Fri, 2024-01-19 at 13:53 +, Christophe Leroy wrote: > > Le 19/01/2024 à 14:41, Matthias Schiffer a écrit : > > > > > > Thinking about it once more, can we do even more simple ? > > > > > > Why do we need that __setup_cpu_g2() at all ? > > > > > > You could just add the following into

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2024-01-19 Thread Christophe Leroy
Le 19/01/2024 à 14:41, Matthias Schiffer a écrit : >> >> Thinking about it once more, can we do even more simple ? >> >> Why do we need that __setup_cpu_g2() at all ? >> >> You could just add the following into __set_cpu_603() >> >> diff --git a/arch/powerpc/kernel/cpu_setup_6xx.S >>

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2024-01-19 Thread Matthias Schiffer
On Fri, 2023-12-22 at 18:41 +, Christophe Leroy wrote: > Le 22/12/2023 à 09:48, Matthias Schiffer a écrit : > > [Vous ne recevez pas souvent de courriers de > > matthias.schif...@ew.tq-group.com. Découvrez pourquoi ceci est important à > > https://aka.ms/LearnAboutSenderIdentification ] > >

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-22 Thread Christophe Leroy
Le 22/12/2023 à 09:48, Matthias Schiffer a écrit : > [Vous ne recevez pas souvent de courriers de > matthias.schif...@ew.tq-group.com. Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > On Thu, 2023-12-21 at 13:57 +, Christophe Leroy wrote: >> >>

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-22 Thread Christophe Leroy
Le 22/12/2023 à 09:34, Matthias Schiffer a écrit : > [Vous ne recevez pas souvent de courriers de > matthias.schif...@ew.tq-group.com. Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > On Fri, 2023-12-22 at 12:16 +1100, Michael Ellerman wrote: >>

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-22 Thread Matthias Schiffer
On Thu, 2023-12-21 at 13:57 +, Christophe Leroy wrote: > > > Le 21/12/2023 à 13:45, Matthias Schiffer a écrit : > > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the > > high BATs need to be enabled in HID2 to work. Add register definitions > > and introduce a G2

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-22 Thread Matthias Schiffer
On Fri, 2023-12-22 at 12:16 +1100, Michael Ellerman wrote: > Matthias Schiffer writes: > > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the > > high BATs need to be enabled in HID2 to work. Add register definitions > > and introduce a G2 variant of __setup_cpu_603. > > >

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-21 Thread Michael Ellerman
Matthias Schiffer writes: > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the > high BATs need to be enabled in HID2 to work. Add register definitions > and introduce a G2 variant of __setup_cpu_603. > > This fixes boot on CPUs like the MPC5200B with STRICT_KERNEL_RWX

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-21 Thread Christophe Leroy
Le 21/12/2023 à 13:45, Matthias Schiffer a écrit : > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the > high BATs need to be enabled in HID2 to work. Add register definitions > and introduce a G2 variant of __setup_cpu_603. Well spotted. I have a mpc8321, hence e300c2.

[PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-21 Thread Matthias Schiffer
MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the high BATs need to be enabled in HID2 to work. Add register definitions and introduce a G2 variant of __setup_cpu_603. This fixes boot on CPUs like the MPC5200B with STRICT_KERNEL_RWX enabled. Fixes: e4d6654ebe6e