Re: [PATCH v2] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-08-27 Thread Pali Rohár
On Saturday 27 August 2022 20:36:08 Pali Rohár wrote: > On Saturday 27 August 2022 18:32:42 Christophe Leroy wrote: > > Le 27/08/2022 à 19:36, Pali Rohár a écrit : > > > On Saturday 27 August 2022 17:31:10 Christophe Leroy wrote: > > >> Le 27/08/2022 à 15:39, Pali Rohár a écrit : > > >>> For 32-bit

Re: [PATCH v2] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-08-27 Thread Pali Rohár
On Saturday 27 August 2022 18:32:42 Christophe Leroy wrote: > Le 27/08/2022 à 19:36, Pali Rohár a écrit : > > On Saturday 27 August 2022 17:31:10 Christophe Leroy wrote: > >> Le 27/08/2022 à 15:39, Pali Rohár a écrit : > >>> For 32-bit uImage try to use CONFIG_TARGET_CPU option for -mcpu. This > >

Re: [PATCH v2] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-08-27 Thread Christophe Leroy
Le 27/08/2022 à 19:36, Pali Rohár a écrit : > On Saturday 27 August 2022 17:31:10 Christophe Leroy wrote: >> Le 27/08/2022 à 15:39, Pali Rohár a écrit : >>> For 32-bit uImage try to use CONFIG_TARGET_CPU option for -mcpu. This fixes >>> following compiler error when building kernel with powerpc e

Re: [PATCH] powerpc: clean up binutils version check

2022-08-27 Thread Masahiro Yamada
On Sun, Aug 28, 2022 at 2:37 AM Christophe Leroy wrote: > > > > Le 27/08/2022 à 18:40, Masahiro Yamada a écrit : > > The checkbin in arch/powerpc/Makefile errors out if ld <= 2.24. > > So, the requirement on PPC is binutils >= 2.25. It is cleaner to > > specify it in scripts/min-tool-version.sh. I

Re: [PATCH] powerpc: clean up binutils version check

2022-08-27 Thread Christophe Leroy
Le 27/08/2022 à 18:40, Masahiro Yamada a écrit : > The checkbin in arch/powerpc/Makefile errors out if ld <= 2.24. > So, the requirement on PPC is binutils >= 2.25. It is cleaner to > specify it in scripts/min-tool-version.sh. If binutils < 2.25 is > used, the toolchain check will fail in the Kco

Re: [PATCH v2] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-08-27 Thread Pali Rohár
On Saturday 27 August 2022 17:31:10 Christophe Leroy wrote: > Le 27/08/2022 à 15:39, Pali Rohár a écrit : > > For 32-bit uImage try to use CONFIG_TARGET_CPU option for -mcpu. This fixes > > following compiler error when building kernel with powerpc e500 SPE capable > > cross compilers: > > > >

Re: [PATCH v2] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-08-27 Thread Christophe Leroy
Le 27/08/2022 à 15:39, Pali Rohár a écrit : > For 32-bit uImage try to use CONFIG_TARGET_CPU option for -mcpu. This fixes > following compiler error when building kernel with powerpc e500 SPE capable > cross compilers: > > BOOTAS arch/powerpc/boot/crt0.o >powerpc-linux-gnuspe-gcc: erro

[PATCH] powerpc: clean up binutils version check

2022-08-27 Thread Masahiro Yamada
The checkbin in arch/powerpc/Makefile errors out if ld <= 2.24. So, the requirement on PPC is binutils >= 2.25. It is cleaner to specify it in scripts/min-tool-version.sh. If binutils < 2.25 is used, the toolchain check will fail in the Kconfig stage going forward. Since binutils >= 2.25 is alread

[PATCH] powerpc/boot: Explicitly disable usage of SPE instructions

2022-08-27 Thread Pali Rohár
uImage boot wrapper should not use SPE instructions, like kernel itself. Boot wrapper has already disabled Altivec and VSX instructions but not SPE. Options -mno-spe and -mspe=no already set when compilation of kernel, but not when compiling uImage wrapper yet. Fix it. Cc: sta...@vger.kernel.org S

[PATCH v2] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-08-27 Thread Pali Rohár
For 32-bit uImage try to use CONFIG_TARGET_CPU option for -mcpu. This fixes following compiler error when building kernel with powerpc e500 SPE capable cross compilers: BOOTAS arch/powerpc/boot/crt0.o powerpc-linux-gnuspe-gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ powerp

[PATCH] powerpc: dts: turris1x.dts: Fix labels in DSA cpu port nodes

2022-08-27 Thread Pali Rohár
DSA cpu port node has to be marked with "cpu" label. So fix it for both cpu port nodes. Fixes: 54c15ec3b738 ("powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers") Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/turris1x.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif