ARM: sunxi: Fix multi-cluster SMP support compilation in multi v6/v7 configs
Subsystems (3)
PATCH 1/1 ARM: sunxi: Fix multi-cluster SMP support compilation in multi v6/v7 configs
Various parts of the assembly code used in the multi-cluster SMP support requires ARMv7-A. If the kernel config also has multi v6 support enabled, Kbuild defaults to building for armv6k, which does not support some of the instructions we use.
Configure the Makefile such that the multi-cluster SMP code is always built for ARMv7-A. This is also what mach-exynos does for their MC-SMP code.
---
This addresses "[sunxi:sunxi/core-for-4.17 1/4] /tmp/ccSQM2rD.s:438:
Error: selected processor does not support `isb' in ARM mode" reported by the kbuild test robot for arm-allmodconfig.
Should we apply it, or squash it in the original patch?
--- arch/arm/mach-sunxi/Makefile | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-sunxi/Makefile +1 -0
@@ -1,3 +1,4 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi.o obj-$(CONFIG_ARCH_SUNXI_MC_SMP) += mc_smp.o +CFLAGS_mc_smp.o += -march=armv7-a obj-$(CONFIG_SMP) += platsmp.o
Signature · 1 line
2.16.1
Quoted 9 lines · Chen-Yu Tsai
Various parts of the assembly code used in the multi-cluster SMP support requires ARMv7-A. If the kernel config also has multi v6 support enabled,
Kbuilddefaults to building for armv6k, which does not support some of the instructions we use.Configure the
Makefilesuch that the multi-cluster SMP code is always built for ARMv7-A. This is also what mach-exynos does for their MC-SMP code.
Quoted 8 lines
Signed-off-by Chen-Yu Tsai <[email protected]>---
This addresses "[sunxi:sunxi/core-for-4.17 1/4]
/tmp/ccSQM2rD.s:438:
Error: selected processor does not support `isb' in ARM mode" reported by the kbuild test robot for arm-allmodconfig.Should we apply it, or squash it in the original patch?
I guess we can squash it. And while you're at it..
arch/arm/mach-sunxi/Makefile line 3
Quoted 12 lines
--- arch/arm/mach-sunxi/Makefile | 1 + 1 file changed, 1 insertion(+)arch/arm/mach-sunxi/Makefile +1
-0@@ -1,3 +1,4 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi.o obj-$(CONFIG_ARCH_SUNXI_MC_SMP) += mc_smp.o +CFLAGS_mc_smp.o += -march=armv7-a
Can you move it to the first line of the file (before the other obj-*) with a newline after it?
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180219/e71cfd37/attachment.sig>
Quoted 25 lines · Maxime Ripard
Quoted 9 lines · Chen-Yu Tsai
Various parts of the assembly code used in the multi-cluster SMP support requires ARMv7-A. If the kernel config also has multi v6 support enabled,
Kbuilddefaults to building for armv6k, which does not support some of the instructions we use.Configure the
Makefilesuch that the multi-cluster SMP code is always built for ARMv7-A. This is also what mach-exynos does for their MC-SMP code.Quoted 8 lines
Signed-off-by Chen-Yu Tsai <[email protected]>---
This addresses "[sunxi:sunxi/core-for-4.17 1/4]
/tmp/ccSQM2rD.s:438:
Error: selected processor does not support `isb' in ARM mode" reported by the kbuild test robot for arm-allmodconfig.Should we apply it, or squash it in the original patch?
I guess we can squash it. And while you're at it..
Quoted 4 lines
--- arch/arm/mach-sunxi/Makefile | 1 + 1 file changed, 1 insertion(+)
Quoted 11 lines
arch/arm/mach-sunxi/Makefile line 3
Quoted 8 lines
arch/arm/mach-sunxi/Makefile +1
-0@@ -1,3 +1,4 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi.o obj-$(CONFIG_ARCH_SUNXI_MC_SMP) += mc_smp.o +CFLAGS_mc_smp.o += -march=armv7-aCan you move it to the first line of the file (before the other obj-*) with a newline after it?
Done and done.
ChenYu