Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3389515pxj; Tue, 11 May 2021 03:29:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvUW/b/dKy1a3GQxWVSMjGwqMA9WxmZllqEOCTlxEWtfHh9fzpYcekWX3AC6W/ftpwe4qi X-Received: by 2002:a17:907:399:: with SMTP id ss25mr31180477ejb.134.1620728946165; Tue, 11 May 2021 03:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620728946; cv=none; d=google.com; s=arc-20160816; b=Ku9z60S6m504A2au7s5Ak3vd0IkanQ+T9e1RMBVdm8fjTH+jyYaAN53xw3ucYAI+yk sWIItOdaXO2hW4us/M5nzCZsGe/WcVV4gGwSd726wAr7jkgyKBV3NMyNvAs2i9UZWzD8 UP6DLs9aocKVUk5GGSio08DfzeMbU1v5InXK7OupoCKNcKu0xAefa+tBc7lODKgiuvLR M2Xk5Cd+NkPGOoq8nuIlsVmGwUYuq1PgQY5ep9AtNt2mldRHS6w5mvR27jTlGnyu81Vr SVmvf79WPTN3lfO19qkCZ/jEoTvjxrgYI23ZdOA+sP3tiHWK2kfMRqomStJVaBLPg8Bs nvsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=qIkrxbqENVoInkWJDP+jiJxx4wRojWyFG0U09oYNhN8=; b=uJWZ98YwEh5r3/VJX4Veo9Rqi3U+5U6JUxghXUdJhRr0EbixJILvssX1CpLuHajWww BBvJ5avwyGbFe5jTFTD2t2vLH3o4g+EbWpZzxJtDUX5+64ioaY2lInaBuWyqrTdo08RL BRPxH8jai9xvmPlAJOVpRyDHSQubvvoxTHG2tgY8WUgEbujn2FiVrQdK3GscUHeXi2zD Tea7Kq3A5Ddv2R3OgEdrrSxBePzivj6aPnvEljq/PSnJtKVQxmZYeROHGHt8+3QxNze/ 3HXiCMa2aJQF7NiWdsy4LALz+tgr5pLoj845eykw76PutOeGOxMihqKrVKf9eMUyt4S7 2M6A== 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 cd8si4221688ejb.132.2021.05.11.03.28.41; Tue, 11 May 2021 03:29:06 -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 S231294AbhEKK2h (ORCPT + 99 others); Tue, 11 May 2021 06:28:37 -0400 Received: from mail-vs1-f50.google.com ([209.85.217.50]:45995 "EHLO mail-vs1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbhEKK2g (ORCPT ); Tue, 11 May 2021 06:28:36 -0400 Received: by mail-vs1-f50.google.com with SMTP id x188so4343011vsx.12 for ; Tue, 11 May 2021 03:27:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qIkrxbqENVoInkWJDP+jiJxx4wRojWyFG0U09oYNhN8=; b=NuVxPPXLHfPFb1M2wmgoaAJ7cAXVbUwmJe9LAS200wtwbhHYE+trTCzO9rQbT3xFUP jIftc/Nxm3q1zjxtzaqtuY4mt/Geg7DxXe4VpKqgjyMSP6zIzHT+BN5mvHaxcKmJxZf6 MfvMndjbtC116PZUAomYGx1l+FyEVmquTl0ax+JR/30pbSgiQnQxLzkoDTX2ZbfdE3xI FlLpZpfpjtYlV6tCh1I6yIuAjxJbUmv7aMrW7Njx1L2OJ9X1qPSkJAK1fardr++fEI9E JD3pu3WB18P4mGZbOnYEZP9WWHL/rYS9KD5zhkC+cqeUZ4L4MsUdj+1RG3PcjLO0IU6R 84/g== X-Gm-Message-State: AOAM531R0a55Xknzzbpgyi4LWCMqQZLSFtP57N/A4DwHhBuChJeZ4S/z 946hjjd7N5yEVMpqz4k5cRo2Yvw+LUvq0V5bHXg= X-Received: by 2002:a67:8745:: with SMTP id j66mr25322124vsd.18.1620728849817; Tue, 11 May 2021 03:27:29 -0700 (PDT) MIME-Version: 1.0 References: <20210510093753.40683-1-mark.rutland@arm.com> <20210510093753.40683-21-mark.rutland@arm.com> <20210511100022.GD6152@C02TD0UTHF1T.local> In-Reply-To: <20210511100022.GD6152@C02TD0UTHF1T.local> From: Geert Uytterhoeven Date: Tue, 11 May 2021 12:27:18 +0200 Message-ID: Subject: Re: [PATCH 20/33] locking/atomic: m68k: move to ARCH_ATOMIC To: 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 , Greg Ungerer Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-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