Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4516573pxj; Wed, 12 May 2021 07:18:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRzPg64CwUlIqkLtVHp54HDfkWv9wo2LyTRUs4Ne13e8bUkpMa27skkk+i54q16CoV2qp9 X-Received: by 2002:a05:6808:619:: with SMTP id y25mr7719299oih.75.1620829137263; Wed, 12 May 2021 07:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620829137; cv=none; d=google.com; s=arc-20160816; b=LvIzdY84MFTlDj0QSe08pcArtTm3vRbH94iJuizbe5AF+50sal6wMjR2bE6bxnkAA9 9jVdQtyBLBZs7WlBbd8vFm3nYbVQU3OcBJ/q4kBn7KFeZqRiTW9QwxJHs5S4tUsrsfWV BZcuN+acOKlg16xcpbaKIrBQGqXkznSSQTSm4rekt5QuOLns6Q+idqahGTDLwag/Y3nh ZDqBli5VPyB8+J7ojCeu1l2E1IxxTRs//gpapNiYKohjWbHQfKnPyc1FjAa0KVlhdGAn 4SOIPGdLSrSjrNqfQlYYUmL1KNObgAt75RV9TVaBoCOwHpyRRf248xxqgvIF6gkG0e+t iZeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=DqCsHjTMluKIb6FfRjTONGBctNtIx6ng9LUSHYxs5Dw=; b=iuK2i1s7n0DGLpsuQeDgUpoWPGBQdVSITPshTWNVC+DfgKxIiCPlmalyUshGhlrSwk pYULJ0VzSsC8STcfjsDWSATwD94rYjI9g4VVaJS+ZYZcMj5d4Wm4jeSpUBfYAuQm4p+k PnJzQ/0oE55Zx7JzjglqjABlnDiU5O6YcFhQ1dqa27h7pTto0WUXzFEBSsGNyZP+U/Vl OJUDW69/CpJpsubJrDCajpQoqYmlg1rRO2xY6OXSB9ZyZcMMAEpuZjnlr7k7oI3Guqxz Oxj7iBYkH8XqJFpcnuft8bU0viwkV4dg/90erV33BHfHlWF4bTeSHMtNoUjSgloylEKT pAIw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si11477otm.142.2021.05.12.07.18.43; Wed, 12 May 2021 07:18:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231259AbhELOR2 (ORCPT + 99 others); Wed, 12 May 2021 10:17:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:44978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231529AbhELORR (ORCPT ); Wed, 12 May 2021 10:17:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F3365613F7; Wed, 12 May 2021 14:16:00 +0000 (UTC) Subject: Re: [PATCH 20/33] locking/atomic: m68k: move to ARCH_ATOMIC To: Geert Uytterhoeven , Mark Rutland 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 References: <20210510093753.40683-1-mark.rutland@arm.com> <20210510093753.40683-21-mark.rutland@arm.com> <20210511100022.GD6152@C02TD0UTHF1T.local> From: Greg Ungerer Message-ID: <2501f556-1326-f09c-baa2-464057ea100c@linux-m68k.org> Date: Thu, 13 May 2021 00:15:58 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, Geert, On 11/5/21 8:27 pm, Geert Uytterhoeven wrote: > Hi Mark, > > CC Greg > > 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 Regards Greg