[PATCH] powerpc: rename SPRN_HID2 define to SPRN_HID2_750FX

2024-01-24 Thread Matthias Schiffer
This register number is hardware-specific, rename it for clarity. FIXME comments are added in a few places where it seems like the wrong register is used. As I can't test this, only the rename is done with no functional change. Signed-off-by: Matthias Schiffer --- arch/powerpc/includ

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

2024-01-24 Thread Matthias Schiffer
has not been set by the bootloader already. Fixes: e4d6654ebe6e ("powerpc/mm/32s: rework mmu_mapin_ram()") Signed-off-by: Matthias Schiffer --- v2: - Use the G2_LE name for cores that have this HID2 register - Extend __setup_cpu_603 instead of introducing a new setup function ar

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 ? > >

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/LearnAbou

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 &

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 varia

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

2023-12-21 Thread Matthias Schiffer
werpc/mm/32s: rework mmu_mapin_ram()") Signed-off-by: Matthias Schiffer --- arch/powerpc/include/asm/cpu_setup.h | 1 + arch/powerpc/include/asm/reg.h| 2 ++ arch/powerpc/kernel/cpu_setup_6xx.S | 25 ++- arch/powerpc/kernel/cpu_specs_book3s

Re: powerpc: several early boot regressions on MPC52xx

2023-12-21 Thread Matthias Schiffer
On Wed, 2023-12-20 at 14:55 +, Christophe Leroy wrote: > > Le 19/12/2023 à 14:34, Matthias Schiffer a écrit : > > > > [Vous ne recevez pas souvent de courriers de > > > > matthias.schif...@ew.tq-group.com. Découvrez pourquoi ceci est >

Re: powerpc: several early boot regressions on MPC52xx

2023-12-19 Thread Matthias Schiffer
IT-Helpdesk weiter. > Attention external email: Open attachments and links only if you know that > they are from a secure source and are safe. In doubt forward the email to the > IT-Helpdesk to check it. > > > Hi Matthias, > > Le 18/12/2023 à 14:48, Ma

powerpc: several early boot regressions on MPC52xx

2023-12-18 Thread Matthias Schiffer
Hi all, I'm currently in the process of porting our ancient TQM5200 SoM to a modern kernel, and I've identified a number of regressions that cause early boot failures (before the UART console has been initialized) with arch/powerpc/configs/52xx/tqm5200_defconfig. Issue 1) Boot fails with CONFIG

Re: [PATCH] Reapply "kbuild: Create directory for target DTB"

2023-12-13 Thread Matthias Schiffer
On Tue, 2023-12-12 at 17:13 +, Masahiro Yamada wrote: > > > On Wed, Dec 13, 2023 at 1:17 AM Matthias Schiffer > wrote: > > > > This reverts commit dd7699e37f289fa433f42c6bcc108468c8b198c0. > > > > On powerpc, dtb-y is usually empty unless CONFIG_OF_ALL_

[PATCH] Reapply "kbuild: Create directory for target DTB"

2023-12-12 Thread Matthias Schiffer
, nothing creates the arch/powerpc/dts directory, causing out-of-tree builds to fail. Fixes: dd7699e37f28 ("Revert "kbuild: Create directory for target DTB"") Signed-off-by: Matthias Schiffer --- scripts/Makefile.lib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)