From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Michael Ellerman To: Bart Van Assche , Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "David S . Miller" , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Chris Zankel , Max Filippov , Arnd Bergmann Subject: Re: [PATCH v9 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64 In-Reply-To: <20180514184634.2160-2-bart.vanassche@wdc.com> References: <20180514184634.2160-1-bart.vanassche@wdc.com> <20180514184634.2160-2-bart.vanassche@wdc.com> Date: Tue, 15 May 2018 12:54:01 +1000 Message-ID: <87lgclpr1y.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-ID: Hi Bart, Bart Van Assche writes: > ... > diff --git a/Documentation/features/locking/cmpxchg64/arch-support.txt b/Documentation/features/locking/cmpxchg64/arch-support.txt > new file mode 100644 > index 000000000000..65b3290ce5d5 > --- /dev/null > +++ b/Documentation/features/locking/cmpxchg64/arch-support.txt > @@ -0,0 +1,31 @@ > +# > +# Feature name: cmpxchg64 > +# Kconfig: ARCH_HAVE_CMPXCHG64 > +# description: arch supports the cmpxchg64() API > +# > + ----------------------- > + | arch |status| > + ----------------------- > + | alpha: | ok | > + | arc: | TODO | > + | arm: |!thumb| > + | arm64: | ok | > + | c6x: | TODO | > + | h8300: | TODO | > + | hexagon: | TODO | > + | ia64: | ok | > + | m68k: | ok | > + | microblaze: | TODO | > + | mips: |64-bit| > + | nios2: | TODO | > + | openrisc: | TODO | > + | parisc: | ok | > + | powerpc: |64-bit| I think that is correct for powerpc, we don't have a 32-bit implementation and there's no fallback it seems. > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -150,6 +150,7 @@ config PPC > select ARCH_HAS_UBSAN_SANITIZE_ALL > select ARCH_HAS_ZONE_DEVICE if PPC_BOOK3S_64 > select ARCH_HAVE_NMI_SAFE_CMPXCHG > + select ARCH_HAVE_CMPXCHG64 So shouldn't this should be: + select ARCH_HAVE_CMPXCHG64 if PPC64 And it should be sorted alphabetically, ie. above the previous NMI entry. cheers