ARM: aspeed: ast2500 is ARMv6K
Subsystems (3)
PATCH 1/1 ARM: aspeed: ast2500 is ARMv6K
Linux supports both the original ARMv6 level (early ARM1136) and ARMv6K (later ARM1136, ARM1176 and ARM11mpcore).
ast2500 falls into the second categoy, being based on arm1176jzf-s. This is enabled by default when using ARCH_MULTI_V6, so we should not 'select CPU_V6'.
Removing this will lead to more efficient use of atomic instructions.
--- arch/arm/mach-aspeed/Kconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-aspeed/Kconfig +0 -1
@@ -26,7 +26,6 @@ config MACH_ASPEED_G4 config MACH_ASPEED_G5 bool "Aspeed SoC 5th Generation" depends on ARCH_MULTI_V6 - select CPU_V6 select PINCTRL_ASPEED_G5 if !CC_IS_CLANG select FTTMR010_TIMER help
Signature · 1 line
2.20.0
Quoted 10 lines · Arnd Bergmann
Linux supports both the original ARMv6 level (early ARM1136) and ARMv6K (later ARM1136, ARM1176 and ARM11mpcore).
ast2500 falls into the second categoy, being based on arm1176jzf-s. This is enabled by default when using
ARCH_MULTI_V6, so we should not 'selectCPU_V6'.Removing this will lead to more efficient use of atomic instructions.
Signed-off-by Arnd Bergmann <[email protected]>
Quoted 9 lines · Arnd Bergmann
Linux supports both the original ARMv6 level (early ARM1136) and ARMv6K (later ARM1136, ARM1176 and ARM11mpcore).
ast2500 falls into the second categoy, being based on arm1176jzf-s. This is enabled by default when using
ARCH_MULTI_V6, so we should not 'selectCPU_V6'.Removing this will lead to more efficient use of atomic instructions.
Wow, nice find.
Quoted 11 lines
Signed-off-by Arnd Bergmann <[email protected]>--- arch/arm/mach-aspeed/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/arm/mach-aspeed/Kconfig +0
-0
arch/arm/mach-aspeed/Kconfig config MACH_ASPEED_G4 · line 29
Quoted 5 lines
arch/arm/mach-aspeed/Kconfig +0
-1@@ -26,7 +26,6 @@ config MACH_ASPEED_G4 config MACH_ASPEED_G5 bool "Aspeed SoC 5th Generation" depends on ARCH_MULTI_V6 - select CPU_V6 select PINCTRL_ASPEED_G5 if !CC_IS_CLANG
I can't find any trees with !CC_IS_CLANG here. Is there a problem building our pinmux driver with Clang?
I tested with this patch:
arch/arm/mach-aspeed/Kconfig +1 -1
@@ -25,8 +25,8 @@ config MACH_ASPEED_G4 config MACH_ASPEED_G5 bool "Aspeed SoC 5th Generation" + # This implies ARMv6K which covers the ARM1176 depends on ARCH_MULTI_V6 - select CPU_V6 select PINCTRL_ASPEED_G5 select FTTMR010_TIMER help
If you want to apply that as a fix for 5.4 I would be happy with that.
Cheers,
Joel
Arnd Bergmann
AppliedQuoted 7 lines · Joel Stanley
Quoted 5 lines · Arnd Bergmann
Signed-off-by Arnd Bergmann <[email protected]>--- arch/arm/mach-aspeed/Kconfig | 1 - 1 file changed, 1 deletion(-)
Quoted 13 lines
arch/arm/mach-aspeed/Kconfig config MACH_ASPEED_G4 · line 29
Quoted 10 lines
arch/arm/mach-aspeed/Kconfig +0
-1@@ -26,7 +26,6 @@ config MACH_ASPEED_G4 config MACH_ASPEED_G5 bool "Aspeed SoC 5th Generation" depends on ARCH_MULTI_V6 - select CPU_V6 select PINCTRL_ASPEED_G5 if !CC_IS_CLANGI can't find any trees with !CC_IS_CLANG here. Is there a problem building our pinmux driver with Clang?
This was an unrelated change from my local randconfig tree.
Your driver uncovered a bug in clang that is now fixed, the driver itself is fine, see https://bugs.llvm.org/show_bug.cgi?id=43243
Quoted 14 lines
I tested with this patch:
arch/arm/mach-aspeed/Kconfig +1
-1@@ -25,8 +25,8 @@ config MACH_ASPEED_G4 config MACH_ASPEED_G5 bool "Aspeed SoC 5th Generation" + # This implies ARMv6K which covers the ARM1176 depends on ARCH_MULTI_V6 - select CPU_V6 select PINCTRL_ASPEED_G5 select FTTMR010_TIMER help
Quoted 4 lines
If you want to apply that as a fix for 5.4 I would be happy with that.
Fixes 8c2ed9bcfbeb ("arm: Add Aspeed machine")Reviewed-by Joel Stanley <[email protected]>
Applied to arm/fixes now.
Arnd
Quoted 19 lines · Arnd Bergmann
Linux supports both the original ARMv6 level (early ARM1136) and ARMv6K (later ARM1136, ARM1176 and ARM11mpcore).
ast2500 falls into the second categoy, being based on arm1176jzf-s. This is enabled by default when using
ARCH_MULTI_V6, so we should not 'selectCPU_V6'.Removing this will lead to more efficient use of atomic instructions.
Signed-off-by Arnd Bergmann <[email protected]>--- arch/arm/mach-aspeed/Kconfig | 1 - 1 file changed, 1 deletion(-)arch/arm/mach-aspeed/Kconfig +0
-0
arch/arm/mach-aspeed/Kconfig config MACH_ASPEED_G4 · line 29
Quoted 5 lines
arch/arm/mach-aspeed/Kconfig +0
-1@@ -26,7 +26,6 @@ config MACH_ASPEED_G4 config MACH_ASPEED_G5 bool "Aspeed SoC 5th Generation" depends on ARCH_MULTI_V6 - select CPU_V6 select PINCTRL_ASPEED_G5 if !CC_IS_CLANG
Unrelated, but I'm intrigued by this. Looks like I should try compile it with clang and fix the fallout.
Andrew