Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4723301pxj; Wed, 12 May 2021 11:44:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSafR9cLEyUG6jD7aw15ZMkFmGNGeseC57AHFtXtNVMb45zh5TCmQZH+GTuBAcsKzjCNf1 X-Received: by 2002:aa7:dad1:: with SMTP id x17mr45027089eds.47.1620845090222; Wed, 12 May 2021 11:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620845090; cv=none; d=google.com; s=arc-20160816; b=W4MDPOaIXm+PZtS4RMv2SuWHJIL8CeqLFtpCEM91oHCMYSLZHBG5PHnVv0xU0MWvEr 4vTvXsSJufUIHLSx4UZ7eWcZsyh2xPnC1y37nZH1b+zXfxScxrdoi8ksAneJ9vQb+M84 RQT3IWGQAJY7qP3MZLbKNmAuK+20kvW8Cs/Eq83ns/0NkRPDz4SY4x3rcPIuyeJ0EeyH 1RqhivDDjGxvAl/MIJI77vC815fMfnI/7kVSvTZYYXECLb39iPWbSr0ca/wQaMZEBzr/ 5NnKhy/oTE+mFebZDY8JMkTTwLf6m1TH4HHcYFL6vsHvk6Fjs28gW8j5vz2jcjBtLLLB X+Uw== 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=jwv6BnKHBkKeKMNJ6kIHAyYZ5J1MxJ2zWhskxKJ4fZI=; b=PLU+P+gtN01KVU5ViAiWLt2GDMzNko5zKO2k9D2H/zMKTKobQqD+APhori27JCfou6 byk/Mkg0+HyTWQp/z6cueQ5vmY7hnFgWnQXInSRZ+oxTw2DRfyxMcEhpWTwgVxdCh8SW NQbK+Ps9ndcQVQjntxNBvrRzY49HqJitKFuEfeN9ufU926E6VWKBGt0meiNX0TDWlSAT CAxDJb/+itXU2FEcFDGOG3wayRDBLUUMwPOzBe7cryzZYsXDwZ+whPJgG40M6gq4n86B QeakJMSa5sClScyXgH9U5VrwbJtIvtP2FLoZaFSqq00vJVx86sXGNO5sF7uEMrNgfHQw KBWw== 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 b1si503744ejb.714.2021.05.12.11.44.26; Wed, 12 May 2021 11:44:50 -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 S1355384AbhELS2N (ORCPT + 99 others); Wed, 12 May 2021 14:28:13 -0400 Received: from foss.arm.com ([217.140.110.172]:44186 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242516AbhELQe7 (ORCPT ); Wed, 12 May 2021 12:34:59 -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 0A5891FB; Wed, 12 May 2021 09:33:51 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.72.67]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D5D903F719; Wed, 12 May 2021 09:33:41 -0700 (PDT) Date: Wed, 12 May 2021 17:33:37 +0100 From: Mark Rutland To: Greg Ungerer Cc: Geert Uytterhoeven , 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: <20210512163337.GB97719@C02TD0UTHF1T.local> References: <20210510093753.40683-1-mark.rutland@arm.com> <20210510093753.40683-21-mark.rutland@arm.com> <20210511100022.GD6152@C02TD0UTHF1T.local> <2501f556-1326-f09c-baa2-464057ea100c@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2501f556-1326-f09c-baa2-464057ea100c@linux-m68k.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021 at 12:15:58AM +1000, Greg Ungerer wrote: > On 11/5/21 8:27 pm, Geert Uytterhoeven wrote: > > On Tue, May 11, 2021 at 12:00 PM Mark Rutland 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 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 . > > > > 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. > > Looks fine to me too. > > Acked-by: Greg Ungerer Thanks! Mark.