linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default
@ 2020-06-02  0:54 Chenxi Mao
  2020-06-05  0:01 ` Palmer Dabbelt
  0 siblings, 1 reply; 3+ messages in thread
From: Chenxi Mao @ 2020-06-02  0:54 UTC (permalink / raw)
  To: paul.walmsley; +Cc: maochenxi, linux-riscv, aou, palmer, linux-kernel

Enable ARCH_SUPPORTS_ATOMIC_RMW by default to support
osq_lock in mutex/rwsem locks.
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index a31e1a41913a..cbdc605d20d9 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -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
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default
  2020-06-02  0:54 [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default Chenxi Mao
@ 2020-06-05  0:01 ` Palmer Dabbelt
  0 siblings, 0 replies; 3+ messages in thread
From: Palmer Dabbelt @ 2020-06-05  0:01 UTC (permalink / raw)
  To: maochenxi; +Cc: linux-riscv, aou, maochenxi, linux-kernel, Paul Walmsley

On Mon, 01 Jun 2020 17:54:28 PDT (-0700), maochenxi@eswin.com wrote:
> Enable ARCH_SUPPORTS_ATOMIC_RMW by default to support
> osq_lock in mutex/rwsem locks.
> ---
>  arch/riscv/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index a31e1a41913a..cbdc605d20d9 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -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

You need a Signed-off-by for all patches, even small ones like this.  I'm also
going to consider this a bit too large of a change to take during the merge
window: there's very little code, but it dramatically changes the behavior of
the system -- in other words, it's a 5.9 candidate, not a 5.8 one.

Thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default
@ 2020-06-05  3:34 Chenxi Mao
  0 siblings, 0 replies; 3+ messages in thread
From: Chenxi Mao @ 2020-06-05  3:34 UTC (permalink / raw)
  To: paul.walmsley; +Cc: maochenxi, linux-riscv, aou, palmer, linux-kernel

Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks.

PS2: Add signed off info.

Signed-off-by: Chenxi Mao <maochenxi@eswin.com>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index a31e1a41913a..cbdc605d20d9 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -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
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-05  3:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02  0:54 [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default Chenxi Mao
2020-06-05  0:01 ` Palmer Dabbelt
2020-06-05  3:34 Chenxi Mao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).