Re: [PATCH v1] powerpc/64: Set default CPU in Kconfig

2022-12-16 Thread Segher Boessenkool
On Fri, Dec 16, 2022 at 11:23:59PM +0100, Pali Rohár wrote: > > It appears the E500MC64 never made it outside of FSL, so it is best not > > to use it at all, imo. > > Yes, it really makes sense to not use e500mc64 flag. Maybe gcc > documentation could be updated to mention this fact? Thanks. I f

Re: [PATCH v1] powerpc/64: Set default CPU in Kconfig

2022-12-16 Thread Pali Rohár
On Friday 16 December 2022 13:15:43 Segher Boessenkool wrote: > > Anyway, do you know what is e500mc64 core? I was trying to find some > > information about it, but it looks like some unreleased freescale core > > which predates e5500 core. > > It looks that way yes. It was submitted at >

Re: [PATCH v1] powerpc/64: Set default CPU in Kconfig

2022-12-16 Thread Segher Boessenkool
Hi! On Thu, Dec 15, 2022 at 09:42:02PM +0100, Pali Rohár wrote: > On Wednesday 07 December 2022 14:38:40 Christophe Leroy wrote: > > default "power8" if POWER8_CPU > > default "power9" if POWER9_CPU > > default "power10" if POWER10_CPU > > + default "e500mc64" if E5500_CPU > > Now I

Re: [PATCH v1] powerpc/64: Set default CPU in Kconfig

2022-12-15 Thread Pali Rohár
Hello! On Wednesday 07 December 2022 14:38:40 Christophe Leroy wrote: > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile ... > @@ -166,11 +153,12 @@ CC_FLAGS_FTRACE += -mprofile-kernel > endif > endif > > -CFLAGS-$(CONFIG_TARGET_CPU_BOOL) += $(call > cc-option,-mcpu=$(CONFIG_TARGET_

Re: [PATCH v1] powerpc/64: Set default CPU in Kconfig

2022-12-08 Thread Pali Rohár
On Wednesday 07 December 2022 14:38:40 Christophe Leroy wrote: > Since 0069f3d14e7a ("powerpc/64e: Tie PPC_BOOK3E_64 to PPC_E500MC"), > the only possible BOOK3E/64 are E500, so no need of a default CPU > over the E5500. > When the user selects book3e, he must have a e500 compatible compiler, > and

[PATCH v1] powerpc/64: Set default CPU in Kconfig

2022-12-07 Thread Christophe Leroy
Since 0069f3d14e7a ("powerpc/64e: Tie PPC_BOOK3E_64 to PPC_E500MC"), the only possible BOOK3E/64 are E500, so no need of a default CPU over the E5500. When the user selects book3e, he must have a e500 compatible compiler, and it won't work anymore with the default -mcpu=power64, see commit d6b551b8