Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2665977pxj; Mon, 10 May 2021 08:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz0MbcmGyq1JM1HAF3W5spx48HHjIUZQ3zf611+nIOA3eYozOj4KCLDYB5LElsTb0I7/mK X-Received: by 2002:a17:906:9444:: with SMTP id z4mr26293776ejx.330.1620659225932; Mon, 10 May 2021 08:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620659225; cv=none; d=google.com; s=arc-20160816; b=rRazFsz3DJ7Jj5a5Y/nvGx4EVo89NuH5sLuXk4EBAYCkh6qdTRH6AIbxF4ba7zwy5C XNz50G5BTRPkUmd9Qo0kVxCf+f4q/HhU+LgZFJiQ6LIqKh4SSOTXD5qs2Pwk4A8sb8OC 2hhBjDjzvkvm3qQYuPfeCdQayPY9TpV5m2PeWB6IBM1Qx3JS7BefZzgTsVoLu7fhvHSy CP8je5LFXp1u4QLXj7EngF1BcU6WquYtriv1Tw1lobJ/rWcW4FEtfUHFx7B1F7qzhh7A J5lD8MWP1vxgs/Eu5Ek3mI8F6+ps0iflURIYNe7V3bHYGm+5CYVX8jwuOPwKIY1i+OEH S0uw== 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:dkim-signature; bh=XpImL+tB/XUHzVGb+AbyDX33FOfais3F/VyVXseZvh4=; b=hAPSMakQxQjgGD40cnvnXb69WjPLa4DHkiMNqZ+pYiDWVOZhcf/S2M7G3ifNTJFrKT dfEZrKvMSNf6PkHi7rg70ollg15SHINCEcoUQgZLenDkpB3GwfwIJ0mjcdhMUOGu/j5I 2QRhp9gdThJCL49GK56n29RPhJp0t+8/yxAqYGd/FLtavlw7jClI8tMX1JtNce7C8ibJ fd4vMd1fWv9RAKRICTnGT3P2nqoxNdr1lPbI2tewJmyawmvdc2P3JIS8DW+4VdZWUUYE wTxEsJz1Vfc2fhvhXpXXtNqfqcdmEh5H5TgajN7ilbAyYUUfYwKHuMDd00PBPTdDb34A B3Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="TAbBZ/1E"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm2si14259771ejb.470.2021.05.10.08.06.41; Mon, 10 May 2021 08:07:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="TAbBZ/1E"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234031AbhEJPBu (ORCPT + 99 others); Mon, 10 May 2021 11:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241316AbhEJPAT (ORCPT ); Mon, 10 May 2021 11:00:19 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49B41C028002 for ; Mon, 10 May 2021 07:19:48 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id s6so18878330edu.10 for ; Mon, 10 May 2021 07:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XpImL+tB/XUHzVGb+AbyDX33FOfais3F/VyVXseZvh4=; b=TAbBZ/1E9I2puIfEbEVMUzwVU96rJ1cldIEPCQXjF5fml6hiiUyxR91nM9xrZrkFTY yU9kuUkmjGV6ncE9HgSPCJHiRWAV7dZ9K0UbPZ+aTBIwffWIGKUU6gLnWRwKdjk44tgI pr0+8mrx+sYWU4pRo1su1qkjB8HeZSP+/Adk0V4NoEuLY0IqOU4MHS3Sx2djC6w//dQu ON7eMzobUTw+S+dpcxiiLt/zE0dCtnBPshgh7M6zAdcdWfHowlgY3HL7V/SrPH8WB+27 qwNBA30INUjl7OTDURsi+GcmMF514SIUvd5CEdjy4+NyeGiA6vFwWwms4FyQnBoa28wd yl/w== 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=XpImL+tB/XUHzVGb+AbyDX33FOfais3F/VyVXseZvh4=; b=Rizva2BK/VF0YOMR9vNShSVAAIg9ub5zrj4smxh48BsRBdjfdPyMqyZkSjnY44Sui/ VVtum5j5BV3yPI0VeuqofwhyAMq9IhGXbs1fT8k5FLhgzDh1nJH1dguEwrs8buME/bPG ujV0DbYXLmPuYBCVvcQMJUhNdnPKBbyYRo0NR/Ucjm8adN6uVHJxiW8XUdel78o0SQqQ BLSbGnPuwIP/fRS9jKtkV1gMxn9stCd/HdSEZMlFkeznSeZ98/eYpFDsZ9OSZRx/uBUX +KPVwrrHEGlB5BW32nA6S8f/ptxiSJlgqgsmsdR6RGRqlSvn/PdcnGL/Iw8HQ8V8AAfI RpOg== X-Gm-Message-State: AOAM530cQ1XMZMXg3S2SMQxsoJsRK93ZEbvEBNRpw+3ew14FbjbdYkVg RqPc4Amf2qTnNmf3QPopd4ZpRLLEEH9eaKj73i0= X-Received: by 2002:a05:6402:644:: with SMTP id u4mr29767812edx.386.1620656387056; Mon, 10 May 2021 07:19:47 -0700 (PDT) MIME-Version: 1.0 References: <20210510093753.40683-1-mark.rutland@arm.com> <20210510093753.40683-32-mark.rutland@arm.com> In-Reply-To: <20210510093753.40683-32-mark.rutland@arm.com> From: Max Filippov Date: Mon, 10 May 2021 07:19:35 -0700 Message-ID: Subject: Re: [PATCH 31/33] locking/atomic: xtensa: move to ARCH_ATOMIC To: Mark Rutland Cc: LKML , Will Deacon , boqun.feng@gmail.com, Peter Zijlstra , aou@eecs.berkeley.edu, Arnd Bergmann , bcain@codeaurora.org, Benjamin Herrenschmidt , Chris Zankel , Rich Felker , "David S. Miller" , deanbo422@gmail.com, Helge Deller , Geert Uytterhoeven , Greentime Hu , Guo Ren , Ivan Kokshaysky , "James E.J. Bottomley" , Jonas Bonn , ley.foon.tan@intel.com, Russell King , Matt Turner , Michal Simek , Michael Ellerman , nickhu@andestech.com, Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Richard Henderson , Stafford Horne , Stefan Kristiansson , Thomas Bogendoerfer , Vineet Gupta , Yoshinori Sato Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 2:44 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 xtensa 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: Boqun Feng > Cc: Chris Zankel > Cc: Max Filippov > Cc: Peter Zijlstra > Cc: Will Deacon > --- > arch/xtensa/Kconfig | 1 + > arch/xtensa/include/asm/atomic.h | 26 +++++++++++++------------- > arch/xtensa/include/asm/cmpxchg.h | 10 +++++----- > 3 files changed, 19 insertions(+), 18 deletions(-) Acked-by: Max Filippov -- Thanks. -- Max