Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-12 Thread Segher Boessenkool
On Tue, Jul 12, 2022 at 09:22:12AM +, Christophe Leroy wrote: > Le 11/07/2022 à 23:48, Segher Boessenkool a écrit : > > I believe the eieio instruction is disabled on some e500 models, because > > it does not work correctly, so EIEIO_EN=1 cannot work, something like > > that? > > Don't know.

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-12 Thread Christophe Leroy
Le 11/07/2022 à 23:48, Segher Boessenkool a écrit : > Hi! > > On Mon, Jul 11, 2022 at 05:32:09PM +, Christophe Leroy wrote: >> Le 11/07/2022 à 18:14, Segher Boessenkool a écrit : CC arch/powerpc/kernel/irq.o {standard input}: Assembler messages: {standard

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-11 Thread Segher Boessenkool
Hi! On Mon, Jul 11, 2022 at 05:32:09PM +, Christophe Leroy wrote: > Le 11/07/2022 à 18:14, Segher Boessenkool a écrit : > >> CC arch/powerpc/kernel/irq.o > >> {standard input}: Assembler messages: > >> {standard input}:3535: Error: unrecognized opcode: `wrteei' > >> {standard

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-11 Thread Christophe Leroy
Le 11/07/2022 à 18:14, Segher Boessenkool a écrit : > On Sat, Jul 09, 2022 at 09:26:11AM +, Christophe Leroy wrote: >> If I select the GENERIC_CPU or e5500 (with altivec) I get: >> >> CC arch/powerpc/kernel/irq.o >> {standard input}: Assembler messages: >> {standard input}:3535:

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-11 Thread Segher Boessenkool
On Sat, Jul 09, 2022 at 09:26:11AM +, Christophe Leroy wrote: > If I select the GENERIC_CPU or e5500 (with altivec) I get: > >CC arch/powerpc/kernel/irq.o > {standard input}: Assembler messages: > {standard input}:3535: Error: unrecognized opcode: `wrteei' > {standard input}:5608:

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-11 Thread Christophe Leroy
Le 10/07/2022 à 19:57, Pali Rohár a écrit : > On Sunday 10 July 2022 17:38:33 Christophe Leroy wrote: >> Le 09/07/2022 à 12:23, Pali Rohár a écrit : > > -ifdef CONFIG_PPC_BOOK3S_64 > ifdef CONFIG_CPU_LITTLE_ENDIAN > -CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8 >

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-10 Thread Pali Rohár
On Sunday 10 July 2022 17:38:33 Christophe Leroy wrote: > Le 09/07/2022 à 12:23, Pali Rohár a écrit : > >>> > >>> -ifdef CONFIG_PPC_BOOK3S_64 > >>>ifdef CONFIG_CPU_LITTLE_ENDIAN > >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8 > >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += $(call > >>>

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-10 Thread Christophe Leroy
Le 09/07/2022 à 12:23, Pali Rohár a écrit : >>> >>> -ifdef CONFIG_PPC_BOOK3S_64 >>>ifdef CONFIG_CPU_LITTLE_ENDIAN >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8 >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += $(call >>> cc-option,-mtune=power9,-mtune=power8) >>> +CFLAGS-$(CONFIG_PPC_BOOK3S_64)

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-09 Thread Pali Rohár
On Saturday 09 July 2022 09:16:13 Christophe Leroy wrote: > Le 08/07/2022 à 19:14, Pali Rohár a écrit : > > On Monday 04 July 2022 15:13:58 Pali Rohár wrote: > >> On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > >>> On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: > On Monday 04 July

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-09 Thread Christophe Leroy
Le 08/07/2022 à 22:04, Arnd Bergmann a écrit : > On Fri, Jul 8, 2022 at 7:12 PM Pali Rohár wrote: >> >> On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: >>> Another problem I see is that a kernel that is built for both E500 and >>> E500MC >>> uses -mcpu=e500mc and may not actually work on

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-09 Thread Christophe Leroy
Le 08/07/2022 à 19:14, Pali Rohár a écrit : > On Monday 04 July 2022 15:13:58 Pali Rohár wrote: >> On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: >>> On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > On 2 July 2022 7:44:05

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-09 Thread Christophe Leroy
Le 08/07/2022 à 22:04, Arnd Bergmann a écrit : > On Fri, Jul 8, 2022 at 7:12 PM Pali Rohár wrote: >> >> On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: >>> Another problem I see is that a kernel that is built for both E500 and >>> E500MC >>> uses -mcpu=e500mc and may not actually work on

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-08 Thread Arnd Bergmann
On Fri, Jul 8, 2022 at 7:14 PM Pali Rohár wrote: > > -ifeq ($(HAS_BIARCH),y) > -ifeq ($(CROSS32_COMPILE),) > -ifdef CONFIG_PPC32 > -# These options will be overridden by any -mcpu option that the CPU > -# or platform code sets later on the command line, but they are needed > -# to set a sane

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-08 Thread Arnd Bergmann
On Fri, Jul 8, 2022 at 7:12 PM Pali Rohár wrote: > > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > Another problem I see is that a kernel that is built for both E500 and > > E500MC > > uses -mcpu=e500mc and may not actually work on the older ones either > > (even with your patch). > >

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-08 Thread Pali Rohár
On Monday 04 July 2022 15:13:58 Pali Rohár wrote: > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: > > > On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > > > > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > > > > >On

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-08 Thread Pali Rohár
On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > Another problem I see is that a kernel that is built for both E500 and E500MC > uses -mcpu=e500mc and may not actually work on the older ones either > (even with your patch). Such configuration is not supported, see

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-07 Thread Pali Rohár
On Thursday 07 July 2022 09:56:04 Christophe Leroy wrote: > Le 04/07/2022 à 15:43, Arnd Bergmann a écrit : > > On Mon, Jul 4, 2022 at 3:29 PM Pali Rohár wrote: > >> > >> And still what to do with 4bf4f42a2feb ("powerpc/kbuild: Set default > >> generic machine type for 32-bit compile")? I'm

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-07 Thread Christophe Leroy
Le 04/07/2022 à 15:43, Arnd Bergmann a écrit : > On Mon, Jul 4, 2022 at 3:29 PM Pali Rohár wrote: >> >> And still what to do with 4bf4f42a2feb ("powerpc/kbuild: Set default >> generic machine type for 32-bit compile")? I'm somehow lost there... > > As far as I can tell, that is not needed, as

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Arnd Bergmann
On Mon, Jul 4, 2022 at 3:29 PM Pali Rohár wrote: > > And still what to do with 4bf4f42a2feb ("powerpc/kbuild: Set default > generic machine type for 32-bit compile")? I'm somehow lost there... As far as I can tell, that is not needed, as long as every configuration sets a specific -mcpu= option,

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 15:22:03 Arnd Bergmann wrote: > On Mon, Jul 4, 2022 at 3:13 PM Pali Rohár wrote: > > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > > > CFLAGS_CPU-$(CONFIG_PPC_BOOK3S_32) := -mcpu=powerpc > > > CFLAGS_CPU-$(CONFIG_PPC_85xx) := -mcpu=8540 > > >

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Arnd Bergmann
On Mon, Jul 4, 2022 at 3:13 PM Pali Rohár wrote: > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > CFLAGS_CPU-$(CONFIG_PPC_BOOK3S_32) := -mcpu=powerpc > > CFLAGS_CPU-$(CONFIG_PPC_85xx) := -mcpu=8540 > > CFLAGS_CPU-$(CONFIG_PPC8xx) := -mcpu=860 > > CFLAGS_CPU-$(CONFIG_PPC44x) :=

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: > > On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > > > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > > > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > > > >> gcc

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Arnd Bergmann
On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: > On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > > >> gcc e500 compiler does not support -mcpu=powerpc option. When it is >

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > >> gcc e500 compiler does not support -mcpu=powerpc option. When it is > >> specified then gcc throws compile error: > >> > >>

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Michael Ellerman
On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: >> gcc e500 compiler does not support -mcpu=powerpc option. When it is >> specified then gcc throws compile error: >> >> gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ >>

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-02 Thread Pali Rohár
On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > gcc e500 compiler does not support -mcpu=powerpc option. When it is > specified then gcc throws compile error: > > gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ > gcc: note: valid arguments to ‘-mcpu=’ are: 8540 8548 native >

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-02 Thread Pali Rohár
On Tuesday 24 May 2022 14:52:16 Segher Boessenkool wrote: > On Tue, May 24, 2022 at 09:16:10PM +0200, Pali Rohár wrote: > > On Tuesday 24 May 2022 13:52:47 Segher Boessenkool wrote: > > > Aha. Right, because this config forces -mspe it requires one of these > > > CPUs. > > > > > > You can use a

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-05-24 Thread Segher Boessenkool
On Tue, May 24, 2022 at 09:16:10PM +0200, Pali Rohár wrote: > On Tuesday 24 May 2022 13:52:47 Segher Boessenkool wrote: > > Aha. Right, because this config forces -mspe it requires one of these > > CPUs. > > > > You can use a powerpc-linux compiler instead, and everything will just > > work.

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-05-24 Thread Pali Rohár
On Tuesday 24 May 2022 13:52:47 Segher Boessenkool wrote: > On Tue, May 24, 2022 at 08:12:55PM +0200, Pali Rohár wrote: > > On Tuesday 24 May 2022 12:59:55 Segher Boessenkool wrote: > > > On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > > > > gcc e500 compiler does not support

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-05-24 Thread Segher Boessenkool
On Tue, May 24, 2022 at 08:12:55PM +0200, Pali Rohár wrote: > On Tuesday 24 May 2022 12:59:55 Segher Boessenkool wrote: > > On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > > > gcc e500 compiler does not support -mcpu=powerpc option. When it is > > > specified then gcc throws compile

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-05-24 Thread Pali Rohár
On Tuesday 24 May 2022 12:59:55 Segher Boessenkool wrote: > Hi! > > On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > > gcc e500 compiler does not support -mcpu=powerpc option. When it is > > specified then gcc throws compile error: > > > > gcc: error: unrecognized argument in

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-05-24 Thread Segher Boessenkool
Hi! On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > gcc e500 compiler does not support -mcpu=powerpc option. When it is > specified then gcc throws compile error: > > gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ > gcc: note: valid arguments to ‘-mcpu=’ are: 8540