]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: Set default CPU in Kconfig
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 25 Jan 2023 07:38:59 +0000 (08:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:03 +0000 (13:34 +0100)
commit94983556c25786d4fa28781940ea4c319f2f92ac
tree044392c154e81e8d9c5516e8d995537e7074c25a
parente9295ad15a9e3e9eb314f6c486a836ee3ee17cc5
powerpc/64: Set default CPU in Kconfig

commit a950ad8b66d5ffce245cb3aa0af9fa211dc15599 upstream.

Since commit 6dd12f2352ac ("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, they must have an e500 compatible
compiler, and it won't work anymore with the default -mcpu=power64, see
commit e8f00efc70c5 ("powerpc/64e: Fix build failure with GCC
12 (unrecognized opcode: `wrteei')").

For book3s/64, replace GENERIC_CPU by POWERPC64_CPU to match the PPC32
POWERPC_CPU, and set a default mpcu value in Kconfig directly.

When a user selects a particular CPU, they must ensure the compiler has
the requested capability. Therefore, remove hidden fallback, instead
offer user the possibility to say they want to use the toolchain
default.

Fixes: e8f00efc70c5 ("powerpc/64e: Fix build failure with GCC 12 (unrecognized opcode: `wrteei')")
Reported-by: Pali Rohár <pali@kernel.org>
Tested-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/76c11197b058193dcb8e8b26adffba09cfbdab11.1674632329.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/Makefile
arch/powerpc/platforms/Kconfig.cputype