Skip to contentSkip to conversation

riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default

PATCH In review Chenxi Mao 3 participants 3 messages Jun 5, 2020 – Jun 18, 2020 RISC-V

lore
Share & tools
lore

Chenxi Mao

author
#0 lore raw

PATCH v2 1/1 riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default

Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks.

PS2: Add signed off info.

---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +1 -0
index a31e1a41913a..cbdc605d20d9 100644
@@ -68,6 +68,7 @@ config RISCV
 	select ARCH_HAS_GCOV_PROFILE_ALL
 	select HAVE_COPY_THREAD_TLS
 	select HAVE_ARCH_KASAN if MMU && 64BIT
+	select ARCH_SUPPORTS_ATOMIC_RMW
 
 config ARCH_MMAP_RND_BITS_MIN
 	default 18 if 64BIT
Signature · 1 line
2.25.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 23 lines · Chenxi Mao

Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks.

PS2: Add signed off info.

---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +1 -1
index a31e1a41913a..cbdc605d20d9 100644
@@ -68,6 +68,7 @@ config RISCV
        select ARCH_HAS_GCOV_PROFILE_ALL
        select HAVE_COPY_THREAD_TLS
        select HAVE_ARCH_KASAN if MMU && 64BIT
+       select ARCH_SUPPORTS_ATOMIC_RMW
 
 config ARCH_MMAP_RND_BITS_MIN
        default 18 if 64BIT
--
Quoted 3 lines

2.25.1

Looks good to me.

This is a good candidate for Linux-5.8. Palmer ??

Regards,
Anup

maintainer
#2 lore raw
In reply to Chenxi Mao
Quoted 14 lines · On Thu, 04 Jun 2020 22:15:10 PDT (-0700), [email protected] wrote:

Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks.

PS2: Add signed off info.

---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +0 -0
index a31e1a41913a..cbdc605d20d9 100644

arch/riscv/Kconfig config RISCV · line 74

Quoted 7 lines
arch/riscv/Kconfig +1 -0
@@ -68,6 +68,7 @@ config RISCV
 	select ARCH_HAS_GCOV_PROFILE_ALL
 	select HAVE_COPY_THREAD_TLS
 	select HAVE_ARCH_KASAN if MMU && 64BIT
+	select ARCH_SUPPORTS_ATOMIC_RMW
 
 config ARCH_MMAP_RND_BITS_MIN
 	default 18 if 64BIT

Thanks, this is on for-next.