Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1299129pxy; Thu, 6 May 2021 05:14:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjwXQvNfQ4qF4IgwIKi2ZgOLAxlLxtr7FpVBILCs4Vt3uuW2++sT9XHRRnAFy+yTbKHERj X-Received: by 2002:aa7:cd90:: with SMTP id x16mr4753795edv.182.1620303249338; Thu, 06 May 2021 05:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620303249; cv=none; d=google.com; s=arc-20160816; b=JSbFLwL2COJq5T+G/QURXx0kGqpZYq4dcpuhqPFCpFZNRwZGJ3VsN4uJPdzN1322H2 3cqbpQMym8FQjzAQcwbxk56Z2K8DooNQy0djWHK16nEP1ICYzKzebaAKCyF9mMNa/aQC jgjaHcj5S3XkT3ZNQDahUHKH9as20FSHHNYVZvqk7iFeDH4rXSmqu3nJU1VvGb1uia4u 87M+pcRcQaUI2Jzxd/XtxnPQMm5X6jgDl/rPUuJlMwDqThvuWRk1F0Rf4OJlPiM2DAjR nEZoEVE8bf+JCOEIv5zkauqBM/TlPXd3W97iKLUs05m28RSD9L3BH2oDjAelMw0vIxh0 wrmA== 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=Xs7+C6LvvpMJpUtyg6yQ8wUx0LkTp9jdHxKcx7zClsM=; b=jef792l6Go6o6nmhItn5Cgou4/PYIbX28Clqnq3mxV8sWWum3DCpBt1GlRubUGNO4I FTgDW5CKrmGtGT2aZ+TCkvoLVSSW1EIkMg7ydx40/8PP4us4+QvZY9Uc1RHdhMpN56ty 0XLAbTvADv7yb7WaAspwwgIxPQk/oN+2Cpe5R2stzNTrFLT3sWRt6AnMWl+YGG4mkoqu BawaG/dOEt77XNJoHBp3mn/NC6/qHF8/SCZS7DQ5W4yGBsMpzUfwr4uq2UOAwx9hEt4m 6aUhvSCc32yA9dPZDWJOQk63J2Waj++z/BUwJs5rZ7g9OkYd0Go2TY1Q5eJ3cSj/clZT nkQQ== 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 hd8si1359390ejc.34.2021.05.06.05.13.30; Thu, 06 May 2021 05:14:09 -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 S230444AbhEFLq4 (ORCPT + 99 others); Thu, 6 May 2021 07:46:56 -0400 Received: from foss.arm.com ([217.140.110.172]:33622 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbhEFLq4 (ORCPT ); Thu, 6 May 2021 07:46:56 -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 DE987101E; Thu, 6 May 2021 04:45:57 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.31.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 810253F73B; Thu, 6 May 2021 04:45:55 -0700 (PDT) Date: Thu, 6 May 2021 12:45:42 +0100 From: Mark Rutland To: Palmer Dabbelt Cc: Guo Ren , Arnd Bergmann , linux-riscv , Linux Kernel Mailing List , linux-csky@vger.kernel.org, linux-arch , Guo Ren , Peter Zijlstra , Anup Patel Subject: Re: [PATCH v3 2/2] riscv: atomic: Using ARCH_ATOMIC in asm/atomic.h Message-ID: <20210506114542.GA34537@C02TD0UTHF1T.local> References: <1619009626-93453-2-git-send-email-guoren@kernel.org> 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 Thu, May 06, 2021 at 05:42:32PM +0800, Guo Ren wrote: > Hi Palmer, > > On Thu, May 6, 2021 at 2:03 PM Palmer Dabbelt wrote: > > > > On Wed, 21 Apr 2021 05:53:46 PDT (-0700), guoren@kernel.org wrote: > > > From: Guo Ren > > > > > > The linux/atomic-arch-fallback.h has been there for a while, but > > > only x86 & arm64 support it. Let's make riscv follow the > > > linux/arch/* development trendy and make the codes more readable > > > and maintainable. > > > > > > This patch also cleanup some codes: > > > - Add atomic_andnot_* operation > > > - Using amoswap.w.rl & amoswap.w.aq instructions in xchg > > > - Remove cmpxchg_acquire/release unnecessary optimization > > > > Thanks. I haven't gotten the time to review this properly yet, but I > > don't really see any issues. Regardless, it was too late for this merge > > window anyway -- these sorts of things are a bit subtle and require a > > proper look, right at the end of the cycle things are just a bit too > > hectic. > > > > I'll take a look once things calm down a bit, there's still some fixes > > out that I'd like to look at first. > > > > I'm also only getting patch 2, and your lore link points to a different > > patch set. > Mark Rutland is preparing a new patchset to let ARCH_ATOMIC become the > default for all arch. I'm waiting for his patchset and atop my > modification on it. > https://lore.kernel.org/linux-riscv/CAJF2gTS9y1QZx-8pu2NW22xs1Gky0y4Hs31Wrn7gZg3FiAq8NA@mail.gmail.com/ > > So, please abandon the patch, I'll send a new version patchset based > on Mark's work. For context, the series is basically ready now, but I'm intending to rebase it atop v5.13-rc1 before posting (e.g. since s390 just moved to ARCH_ATOMIC), and plan to post that early next week. If you want an early look, my atomics/arch-atomic branch on kernel.org has the WIP (atop v5.12): https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=atomics/arch-atomic git://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git atomics/arch-atomic .. and the riscv-specific changes are just renames: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?h=atomics/arch-atomic&id=3f7f7201eb4f4548cfb609019e7110b30ae598fc Thanks, Mark.