Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3366000pxj; Mon, 24 May 2021 05:12:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXsUlyxoqt2yjjW6N0q4w519aztK92ykIShzXPYHbtdcBKaOEJ8nktF70butuIJU91tW6c X-Received: by 2002:a05:6e02:13b3:: with SMTP id h19mr16201749ilo.142.1621858366955; Mon, 24 May 2021 05:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621858366; cv=none; d=google.com; s=arc-20160816; b=ew79nzKHhsMmHjc+csQqfIsmr0Ll0f8Cdpz5y2hxYernQx15Zs5a81KZru7FUBr/LP /JDCztkZqyL57yi5snRNE6/5p7JPNecz+VKpnSa0DdKku78z6WzX6GtTgqh0fR+prqJW CW28yPvSggX5BTCBoLNKpi3whqc3xKMhq9b6g8wrLfA6OMnVRDFP9TPiwja8Cz/sr2JM frTfEbjBnwpAOYWAUOeebi+VZG6cy5gwKWbdQKThCAK0xY0aaVWb84Yzv2d6A0fRh57i Tz/FG2d7pFz/iik6emzj2nsN1QovTR5Z+uVWaeq8LQWEbAGkCrQaovFU3BgIcvTiIAWE vClg== 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=PygLozd5VMmRWEfuM7UqRstCysGXTsxCmVrJyRzRBow=; b=N3/auPRpsxFe3tjes7aL+RaAo7XDTwcn4sxU8kXeB4bsCO0geBCu0rGZb7n4U9Cxk7 LuMF8/0UcTkzPRFIt/yZ4juX/fZAwHI0GbEABVxLb+YCDvjL6EWyzbwyDPwvzn0GVfeU rOZwXnBWtCDdh8cLmub5Jt+ktbvrtUb1ILaBneuVoy583xsKluf7igb7p7AFjsD/FnDe UfYBgpg2Oikiz+R/NloL/YCTxbnvEQy7usM1cxTliWRb3TU31wdibBaww19OxvIT9xqC +B0/0TSU7jmIV3sINnhrT/Rsmmf8gO2RSAQzrXaH9zwx+VvBqTwlAfv+cVHRueYRR9Aj YQHw== 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 e1si15030996jap.46.2021.05.24.05.12.34; Mon, 24 May 2021 05:12:46 -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 S232656AbhEXMMN (ORCPT + 99 others); Mon, 24 May 2021 08:12:13 -0400 Received: from foss.arm.com ([217.140.110.172]:41540 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232110AbhEXMMM (ORCPT ); Mon, 24 May 2021 08:12:12 -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 493E931B; Mon, 24 May 2021 05:10:44 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.38.161]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1BBA53F719; Mon, 24 May 2021 05:10:36 -0700 (PDT) Date: Mon, 24 May 2021 13:10:34 +0100 From: Mark Rutland To: Palmer Dabbelt Cc: linux-kernel@vger.kernel.org, will@kernel.org, boqun.feng@gmail.com, peterz@infradead.org, aou@eecs.berkeley.edu, Arnd Bergmann , bcain@codeaurora.org, benh@kernel.crashing.org, chris@zankel.net, dalias@libc.org, davem@davemloft.net, deanbo422@gmail.com, deller@gmx.de, geert@linux-m68k.org, green.hu@gmail.com, guoren@kernel.org, ink@jurassic.park.msu.ru, James.Bottomley@HansenPartnership.com, jcmvbkbc@gmail.com, jonas@southpole.se, ley.foon.tan@intel.com, linux@armlinux.org.uk, mattst88@gmail.com, monstr@monstr.eu, mpe@ellerman.id.au, nickhu@andestech.com, paulus@samba.org, Paul Walmsley , rth@twiddle.net, shorne@gmail.com, stefan.kristiansson@saunalahti.fi, tsbogend@alpha.franken.de, vgupta@synopsys.com, ysato@users.sourceforge.jp Subject: Re: [PATCH 28/33] locking/atomic: riscv: move to ARCH_ATOMIC Message-ID: <20210524121034.GG1040@C02TD0UTHF1T.local> References: <20210510093753.40683-29-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 Sat, May 22, 2021 at 12:02:45PM -0700, Palmer Dabbelt wrote: > On Mon, 10 May 2021 02:37:48 PDT (-0700), mark.rutland@arm.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 riscv 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 > > Cc: Albert Ou > > Cc: Boqun Feng > > Cc: Palmer Dabbelt > > Cc: Paul Walmsley > > Cc: Peter Zijlstra > > Cc: Will Deacon > > --- > > arch/riscv/Kconfig | 1 + > > arch/riscv/include/asm/atomic.h | 128 +++++++++++++++++++-------------------- > > arch/riscv/include/asm/cmpxchg.h | 34 +++++------ > > 3 files changed, 82 insertions(+), 81 deletions(-) [...] > Reviewed-by: Palmer Dabbelt > Acked-by: Palmer Dabbelt Thanks! > Sorry this took a bit, I had this put on the slow queue because I thought it > would conflict with Guo's patch set but from reading the rest of that thread > it appears this is just supersedes which makes things much simpler. > > I'm assuming this would be for 5.14, and you'd be merging it along with the > prep work? Yup; the plan is to take the whole series through the tip tree for v5.14. I'll post a v2 soon with some minor fixups. > I don't think we have anything else in the works that would > require atomic changes for 5.14 yet so that seems OK for now, but it'd be > nice to have some shared tag I could pull in both so I can test this and in > case we have more to put on top of it. I'm fine waiting until something > comes up if that's a headache on your end, though. I think we can arrange a stable tag soon. The Kbuild test robot is still finding a few edge cases with the preprocessor glue on a few architectures, so my branch isn't stable yet, but I think the core bit is solid, so if you wanted to test you should be able to fetch my branch from: git://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git atomics/arch-atomic Thanks, Mark.