Re: [PATCH] powerpc: add compile-time support for lbarx, lwarx

2020-11-10 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of November 7, 2020 6:15 pm: > > > Le 07/11/2020 à 04:23, Nicholas Piggin a écrit : >> ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lwarx. >> Add a compile option that allows code to use it, and add support in >> cmpxchg and xchg 8 and 16

Re: [PATCH] powerpc: add compile-time support for lbarx, lwarx

2020-11-09 Thread Segher Boessenkool
On Sun, Nov 08, 2020 at 09:01:52PM +0100, Gabriel Paubert wrote: > On Sat, Nov 07, 2020 at 05:42:57AM -0600, Segher Boessenkool wrote: > > On Sat, Nov 07, 2020 at 08:12:13AM +0100, Gabriel Paubert wrote: > > > On Sat, Nov 07, 2020 at 01:23:28PM +1000, Nicholas Piggin wrote: > > > > ISA v2.06

Re: [PATCH] powerpc: add compile-time support for lbarx, lwarx

2020-11-08 Thread Gabriel Paubert
On Sat, Nov 07, 2020 at 05:42:57AM -0600, Segher Boessenkool wrote: > On Sat, Nov 07, 2020 at 08:12:13AM +0100, Gabriel Paubert wrote: > > On Sat, Nov 07, 2020 at 01:23:28PM +1000, Nicholas Piggin wrote: > > > ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lwarx. > > > > Hmm, lwarx

Re: [PATCH] powerpc: add compile-time support for lbarx, lwarx

2020-11-07 Thread Segher Boessenkool
On Sat, Nov 07, 2020 at 08:12:13AM +0100, Gabriel Paubert wrote: > On Sat, Nov 07, 2020 at 01:23:28PM +1000, Nicholas Piggin wrote: > > ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lwarx. > > Hmm, lwarx exists since original Power AFAIR, Almost: it was new on PowerPC. Segher

Re: [PATCH] powerpc: add compile-time support for lbarx, lwarx

2020-11-07 Thread Christophe Leroy
Le 07/11/2020 à 04:23, Nicholas Piggin a écrit : ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lwarx. Add a compile option that allows code to use it, and add support in cmpxchg and xchg 8 and 16 bit values. Do you mean lharx ? Because lwarx exists on all powerpcs I think.

Re: [PATCH] powerpc: add compile-time support for lbarx, lwarx

2020-11-06 Thread Gabriel Paubert
On Sat, Nov 07, 2020 at 01:23:28PM +1000, Nicholas Piggin wrote: > ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lwarx. Hmm, lwarx exists since original Power AFAIR, s/lwarx/lharx/ perhaps? Same for the title of the patch and the CONFIG variable. Gabriel > Add a

[PATCH] powerpc: add compile-time support for lbarx, lwarx

2020-11-06 Thread Nicholas Piggin
ISA v2.06 (POWER7 and up) as well as e6500 support lbarx and lwarx. Add a compile option that allows code to use it, and add support in cmpxchg and xchg 8 and 16 bit values. Signed-off-by: Nicholas Piggin --- arch/powerpc/Kconfig | 3 + arch/powerpc/include/asm/cmpxchg.h