Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1698646ybg; Thu, 4 Jun 2020 17:07:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZPfHsRks7HeKA+QgKe+WhaiEDkfej4YNUc3WZ6fZX77UhjzyrT/HuSe4WjTpgTOsHEYwS X-Received: by 2002:a17:906:470a:: with SMTP id y10mr6445063ejq.535.1591315635522; Thu, 04 Jun 2020 17:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591315635; cv=none; d=google.com; s=arc-20160816; b=AlRzcfYr3K8d9FXm3GJXzqRR+D2BwHAfe4yluZ9kEWO1iHJ+04q/KR7qqpaCRj/EPb 52dpsVkhPKMx3POPiyb5rZRnDXD0tmGzi2wsoyJdfvHLjfe3HmNbT2zc7ebsgZ2woz5t ZV5+ijx8Rx4yGKMfgbB0m+GiGXsTZrUrDGWBLBiSovN+VZi3EDXZ8++ISQdoayO1sZ5j 428iZ2KhaouDg7TBqOMNMBFQiMc14MR29ozeNyc1yBhRS/L7Q3gAexi/zOspLNOqzBV6 PVIiko3luJ+StI9JEfR0V9/egDdTXSuZJ+g7W7BhHS6534dsptibu7x81v5xKUue74IL Zk0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=xZdOd+qlY2QRwmTe112l24bUhmXHbEl+plH6oHERkT0=; b=BUzo3Di1Oo3N8UJ5VbstX2zujdCd6kz+lg/tmbkxrUxMFPk5gYhoWsfNgKuj3n/kpk KhDLxJRJO8ATVkWZ3reKRiKjgE3293LF7TTdBQpBz5LkvXfC60AkfCrbsLLMsBrDatPn SO/T2hl2Pvmh0zR05FyDv3ca/qRFQ/yYalxn3mMWFJ2AmXWl4hvnwbG+cXMxb15+q8lr 56+NX6Tr8GpwsbP8P6DiBQjufHKXck1iUooFhDGq1Z7cpNazzXkTcN6IRuUEFvNp7a9j /BGmZdaZr+5nxy4hl9c8I1BPJcZUVhgiREc1jm2h6yRavidZkldTMLOuFvr+j9LFlyqf AimA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=AVAJbEw+; 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 a62si2339294edf.361.2020.06.04.17.06.52; Thu, 04 Jun 2020 17:07:15 -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=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=AVAJbEw+; 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 S1726109AbgFEABu (ORCPT + 99 others); Thu, 4 Jun 2020 20:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbgFEABp (ORCPT ); Thu, 4 Jun 2020 20:01:45 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 000A7C08C5C0 for ; Thu, 4 Jun 2020 17:01:44 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id r10so4240517pgv.8 for ; Thu, 04 Jun 2020 17:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=xZdOd+qlY2QRwmTe112l24bUhmXHbEl+plH6oHERkT0=; b=AVAJbEw+8SzEbBgb/DyV6PUyCKJwp2jB1suoSwTl8VD0MF5V0fKeKsgQdobihdyB5/ J7+hzTEwKInrZZryqmy1JqDYidL2j1u+M85iMPHLr9RRvVYRupQqi1XObSqhG+FS0xZr DgkJbp/jR0w4JIDt7t4lU26qNOlNx6LwScZ9twfmleVNBJuBJnelRdJK+bNKlDjlDiZo yBQB7PH/lBsvsBAOkqx21GpIJKk8Y0loE6wjP21Bv7s6Lj29jozvypxNaROTexbNAtBP DnvL3nmAfsAvpmnZep5/g7ZdOpM0cuo2IYebVVZ0S8yFNSXBs6GDHERid3BxlwBZjasr ukVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=xZdOd+qlY2QRwmTe112l24bUhmXHbEl+plH6oHERkT0=; b=fUEV9WOzJFS5Kf+FjroxCavB8yEf0POV8Mr6RskxfHXq8pnsxsjyyJl9c5qQhbICq7 j2BtEirPh1WVzwFYURQ2BtCUEfIih7fDWfHuPcSBmp5VovCAqUTbuPBad585oucUB0L9 PA568pQEi/uPtBVyusjTGy/2anfRthE4GaUa5wThoRugkmJ+4oC6/MqtlpIVRO3UK0Zm ofzstpzlfA56vcO11kEgO/Ehdcp1+uStNViCdtUruYG1SoFMCcq4NzO7JxPrfYeJSzv4 WNANYHyvPYWMoXY/KBI9hjCiIC0CEY28MHxz0SoWsGQXnQmmJe74bs39vpWj2Pv9iOvq 5WNw== X-Gm-Message-State: AOAM5326hLiBPuma/0Paf+bQi0/Wo8o9H1cpmM/GIetdW4mYttj9nUDa pi6JT0LUMc468T4cydgKwNBnZg== X-Received: by 2002:a62:3545:: with SMTP id c66mr6891561pfa.223.1591315304390; Thu, 04 Jun 2020 17:01:44 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id 128sm5380040pfd.114.2020.06.04.17.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 17:01:43 -0700 (PDT) Date: Thu, 04 Jun 2020 17:01:43 -0700 (PDT) X-Google-Original-Date: Thu, 04 Jun 2020 15:48:03 PDT (-0700) Subject: Re: [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default In-Reply-To: <20200602005428.18087-1-maochenxi@eswin.com> CC: Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, maochenxi@eswin.com From: Palmer Dabbelt To: maochenxi@eswin.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 01 Jun 2020 17:54:28 PDT (-0700), maochenxi@eswin.com wrote: > Enable ARCH_SUPPORTS_ATOMIC_RMW by default to support > osq_lock in mutex/rwsem locks. > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index a31e1a41913a..cbdc605d20d9 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -68,6 +68,7 @@ config RISCV > select ARCH_HAS_GCOV_PROFILE_ALL > select HAVE_COPY_THREAD_TLS > select HAVE_ARCH_KASAN if MMU && 64BIT > + select ARCH_SUPPORTS_ATOMIC_RMW > > config ARCH_MMAP_RND_BITS_MIN > default 18 if 64BIT You need a Signed-off-by for all patches, even small ones like this. I'm also going to consider this a bit too large of a change to take during the merge window: there's very little code, but it dramatically changes the behavior of the system -- in other words, it's a 5.9 candidate, not a 5.8 one. Thanks!