[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdV5LpRbDcbmQHP4gzXv6JiLzKNP8dAiMOa0GsfE5KgJzA@mail.gmail.com>
Date: Tue, 11 May 2021 12:27:18 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Mark Rutland <mark.rutland@....com>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Will Deacon <will@...nel.org>,
Boqun Feng <boqun.feng@...il.com>,
Peter Zijlstra <peterz@...radead.org>,
Albert Ou <aou@...s.berkeley.edu>,
Arnd Bergmann <arnd@...db.de>,
Brian Cain <bcain@...eaurora.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Chris Zankel <chris@...kel.net>, Rich Felker <dalias@...c.org>,
"David S. Miller" <davem@...emloft.net>,
Vincent Chen <deanbo422@...il.com>,
Helge Deller <deller@....de>,
Greentime Hu <green.hu@...il.com>, Guo Ren <guoren@...nel.org>,
Ivan Kokshaysky <ink@...assic.park.msu.ru>,
James Bottomley <James.Bottomley@...senpartnership.com>,
Max Filippov <jcmvbkbc@...il.com>,
Jonas Bonn <jonas@...thpole.se>,
Ley Foon Tan <ley.foon.tan@...el.com>,
Russell King <linux@...linux.org.uk>,
Matt Turner <mattst88@...il.com>,
Michal Simek <monstr@...str.eu>,
Michael Ellerman <mpe@...erman.id.au>,
Nick Hu <nickhu@...estech.com>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Mackerras <paulus@...ba.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Richard Henderson <rth@...ddle.net>,
Stafford Horne <shorne@...il.com>,
Stefan Kristiansson <stefan.kristiansson@...nalahti.fi>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Vineet Gupta <vgupta@...opsys.com>,
Yoshinori Sato <ysato@...rs.sourceforge.jp>,
Greg Ungerer <gerg@...ux-m68k.org>
Subject: Re: [PATCH 20/33] locking/atomic: m68k: move to ARCH_ATOMIC
Hi Mark,
CC Greg
On Tue, May 11, 2021 at 12:00 PM Mark Rutland <mark.rutland@....com> wrote:
> On Tue, May 11, 2021 at 11:27:45AM +0200, Geert Uytterhoeven wrote:
> > On Mon, May 10, 2021 at 11:42 AM Mark Rutland <mark.rutland@....com> wrote:
> > > We'd like all architectures to convert to ARCH_ATOMIC, as once all
> > > architectures are converted it will be possible to make significant
> > > cleanups to the atomics headers, and this will make it much easier to
> > > generically enable atomic functionality (e.g. debug logic in the
> > > instrumented wrappers).
> > >
> > > As a step towards that, this patch migrates m68k to ARCH_ATOMIC. The
> > > arch code provides arch_{atomic,atomic64,xchg,cmpxchg}*(), and common
> > > code wraps these with optional instrumentation to provide the regular
> > > functions.
> > >
> > > Signed-off-by: Mark Rutland <mark.rutland@....com>
> >
> > Reviewed-by: Geert Uytterhoeven <geert@...ux-m68k.org>
> > Acked-by: Geert Uytterhoeven <geert@...ux-m68k.org>
> >
> > I even gave this series a spin on ARAnyM and QEMU, and everything
> > seems to be fine.
>
> Thanks! That's much appreciated; I was able to build-test, but didn't
> have a suitable setup for boot testing.
>
> The Kbuild test robot noticed I broke one configuration by renaming
> atomic_dec_and_test_lt(), since it's not part of the common atomic API,
> and is used in get_mmu_context() in <asm/mmu_context.h>.
Ah, that's in the part for Coldfire, so I (and my builds) didn't notice.
> On the primciple of keeping the common atomic API separate from
> arch-specific bits, I've kept the `arch_` prefix and updated the caller.
> Does that sound good to you?
That's fine for me, but as this is Coldfire, I'd like to defer to Greg.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists