Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3372046pxj; Tue, 11 May 2021 03:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl3OkCbU0O3OQ7+ijpuM3Au3/0+9MlK93luGC8prKB+EovDpfrsJ6dN9EkMtsw5zp/fQD3 X-Received: by 2002:a05:6e02:4e:: with SMTP id i14mr14918822ilr.145.1620727391998; Tue, 11 May 2021 03:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620727391; cv=none; d=google.com; s=arc-20160816; b=SQrV6Yarane2MDyeO7o3PhC3FDMB3KDoBFQPaKjuy6qvd+zT6EPoZyj2U+I20ly+Sq vtWaRl+RoKbscbQuwRbZHwTbldVY/gnXNGkmEkMXGgXXkxU3QLLGb95B4h47DMflF8EK XcBcSDq8HoHtgDEel+VWzCjzTBYVM37iPCpoJl/oXN78iw2TnhKYoCFcBysJmOcF7kKO io4Cuve4jYlDYpYdkxiTT3noeGdHdAvH6UeR+YQ+I+LeLvQbMgeeM+a/WUiSbfN5hrV4 bqtyYuIB/73fM5TE2GMNO6gReaK3zJt4TGsxYl5ep4YBjRvyumzNWooQh0S67a1k+ZUI TFXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=xXhTEus7kAcQ08ZInEJ+FanUb/0Cws6XjOmgRqgvEOA=; b=Lw3g/Ni+iIJV0dUXgV812yqXQZug9lTWDHEJNMdcrXC+/q7IzYU+y8ZFXcJhsIdx+D z1P9CuvSgjdLmp0kz0YeXtfluIO4Za0J1glvU3cnllm0/tAEQmOqoxu39GumpsnR2XFs T3N9BWoJx6f6ui/FPEGpI4sowpsFdPMzLWUl0MwB9v+Pl6aa7Dr73UktnVWIOws8P+Zq tPvCtA3Juv2bAxRFBtf2FZGMmgTWD0N+PggC2R/tcEBe7Bh3bqXGV75NxWcL45w2uYBy Q/dn8GEQBeJ5DuJ7X37Y+ATrGcpOxLh8YLxfHIGMZ+R9OenK0DgN2UTiBwcpuNcgbo+C IUNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si6146449jat.9.2021.05.11.03.02.58; Tue, 11 May 2021 03:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231361AbhEKKBk (ORCPT + 99 others); Tue, 11 May 2021 06:01:40 -0400 Received: from foss.arm.com ([217.140.110.172]:44294 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231392AbhEKKBi (ORCPT ); Tue, 11 May 2021 06:01:38 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4B7BE169C; Tue, 11 May 2021 03:00:32 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.29.91]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 271233F719; Tue, 11 May 2021 03:00:25 -0700 (PDT) Date: Tue, 11 May 2021 11:00:22 +0100 From: Mark Rutland To: Geert Uytterhoeven Cc: Linux Kernel Mailing List , Will Deacon , Boqun Feng , Peter Zijlstra , Albert Ou , Arnd Bergmann , Brian Cain , Benjamin Herrenschmidt , Chris Zankel , Rich Felker , "David S. Miller" , Vincent Chen , Helge Deller , Greentime Hu , Guo Ren , Ivan Kokshaysky , James Bottomley , Max Filippov , Jonas Bonn , Ley Foon Tan , Russell King , Matt Turner , Michal Simek , Michael Ellerman , Nick Hu , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Richard Henderson , Stafford Horne , Stefan Kristiansson , Thomas Bogendoerfer , Vineet Gupta , Yoshinori Sato Subject: Re: [PATCH 20/33] locking/atomic: m68k: move to ARCH_ATOMIC Message-ID: <20210511100022.GD6152@C02TD0UTHF1T.local> References: <20210510093753.40683-1-mark.rutland@arm.com> <20210510093753.40683-21-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 11:27:45AM +0200, Geert Uytterhoeven wrote: > Hi Mark, Hi Geert, > On Mon, May 10, 2021 at 11:42 AM Mark Rutland 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 > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > 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 . 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? Thanks, Mark.