Skip to contentSkip to conversation

arm64: Kconfig: Enable LSE atomics by default

PATCH New Will Deacon 4 participants 4 messages May 21, 2018 – May 23, 2018 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Kconfig: Enable LSE atomics by default

Now that we're seeing CPUs shipping with LSE atomics, default them to 'on' in Kconfig. CPUs without the instructions will continue to use LDXR/STXR-based sequences, but they will be placed out-of-line by the compiler.

---
 arch/arm64/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm64/Kconfig +3 -1
index 4d98774cf3c7..3aed13626fd7 100644
@@ -1051,6 +1051,7 @@ config ARM64_PAN
 
 config ARM64_LSE_ATOMICS
 	bool "Atomic instructions"
+	default y
 	help
 	  As part of the Large System Extensions, ARMv8.1 introduces new
 	  atomic instructions that are designed specifically to scale in
@@ -1059,7 +1060,8 @@ config ARM64_LSE_ATOMICS
 	  Say Y here to make use of these instructions for the in-kernel
 	  atomic routines. This incurs a small overhead on CPUs that do
 	  not support these instructions and requires the kernel to be
-	  built with binutils >= 2.25.
+	  built with binutils >= 2.25 in order for the new instructions
+	  to be used.
 
 config ARM64_VHE
 	bool "Enable support for Virtualization Host Extensions (VHE)"
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 arm64: Kconfig: Enable LSE atomics by default

Quoted 6 lines · Will Deacon

Now that we're seeing CPUs shipping with LSE atomics, default them to 'on' in Kconfig. CPUs without the instructions will continue to use LDXR/STXR-based sequences, but they will be placed out-of-line by the compiler.

	M.
Signature · 1 line
Jazz is not dead. It just smells funny...
reviewer
#2 lore raw

PATCH 1/1 arm64: Kconfig: Enable LSE atomics by default

In reply to Will Deacon
Quoted 6 lines · Will Deacon

Now that we're seeing CPUs shipping with LSE atomics, default them to 'on' in Kconfig. CPUs without the instructions will continue to use LDXR/STXR-based sequences, but they will be placed out-of-line by the compiler.

I've been fuzzing v4.17-rc3 with this enabled, and haven't hit anything new that appears to be caused by the atomics. FWIW:

Mark.

Quoted 34 lines
---
 arch/arm64/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm64/Kconfig +3 -1
index 4d98774cf3c7..3aed13626fd7 100644
@@ -1051,6 +1051,7 @@ config ARM64_PAN
 
 config ARM64_LSE_ATOMICS
 	bool "Atomic instructions"
+	default y
 	help
 	  As part of the Large System Extensions, ARMv8.1 introduces new
 	  atomic instructions that are designed specifically to scale in
@@ -1059,7 +1060,8 @@ config ARM64_LSE_ATOMICS
 	  Say Y here to make use of these instructions for the in-kernel
 	  atomic routines. This incurs a small overhead on CPUs that do
 	  not support these instructions and requires the kernel to be
-	  built with binutils >= 2.25.
+	  built with binutils >= 2.25 in order for the new instructions
+	  to be used.
 
 config ARM64_VHE
 	bool "Enable support for Virtualization Host Extensions (VHE)"
Signature · 7 lines
2.1.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Applied
#3 lore raw

PATCH 1/1 arm64: Kconfig: Enable LSE atomics by default

In reply to Will Deacon
Quoted 6 lines · Will Deacon

Now that we're seeing CPUs shipping with LSE atomics, default them to 'on' in Kconfig. CPUs without the instructions will continue to use LDXR/STXR-based sequences, but they will be placed out-of-line by the compiler.

Queued for 4.18. Thanks.

Signature · 1 line
Catalin