Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1968401ybg; Fri, 5 Jun 2020 02:08:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrxoTlzg/aSYPPUkcMpFXXA4fXiuMw2bzdIeo8koc5S0vYhTS6P5Ewz0QEaX8uoQ4WTMZj X-Received: by 2002:a50:f60a:: with SMTP id c10mr8252302edn.295.1591348084063; Fri, 05 Jun 2020 02:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591348084; cv=none; d=google.com; s=arc-20160816; b=F6jngiS3WHlG3PAPgvhJR3jx56PMc72DClsRU0LCvZW7/33lPDafG9keZAYY80G2D8 bfhySfNcG2XQqmTLyfqFhiomEpeG/iXs0zKXZsUSWh794lnD9VhTJtWMmlbLMMVew1ZL /J+sS5JejaTjYrnWEfUD6l0Tq86pYj+LL3iH1QakG64eZl6EJguY+3amASjNKH2BZNwy vOf28nTp3MecBBg1GBDImkHwV+uXFOAnwhd/NQy/gb4kcy0Ttw9ax8TjGb3RSGQAJ/Gr jwUAMeCLTFhb4600fQbD8PPqeT8RjvG0aIKe92PC9010ILuCdvOPmtc1jTFff17Coj58 PuDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=RDj9WPcNLZafw1WmCK+2jcLNB/38A0yqskAegYjl94o=; b=ax4f7k3wA9dRrSMBJYe+ePIyWZjp1SrUB1CEcwgYFvOhK4xbuKB269tfka9N+P6jVt xUaPl1RMqxppaKK8uDnlgDBJ9ViUEEHr67On368IW3Gb6LjaeMfQgl5BPxlmMBp4uXy3 4X9mP2AHqLCqeo8BqR1uwO/YzNCi/Xe3A5q4rWjWXY/y63aVlieDRBrlEXN5RAIhx50O fZSbUJzELjGZlgMm1L/2qHluxN7Ud6iP47OpAwtgKKaTSEmgfe3kYWmoFSFosTveiHiP nLqx8Q2ME0fkJaq5tIK2k7BZUI6tCjk9YIeoT92lWDcRBay4e5zu9WcJ2QmUxG4dKkBH wwjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=L791aE3W; 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 q13si3142706ejr.650.2020.06.05.02.07.40; Fri, 05 Jun 2020 02:08:04 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=L791aE3W; 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 S1726166AbgFEJDa (ORCPT + 99 others); Fri, 5 Jun 2020 05:03:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbgFEJD3 (ORCPT ); Fri, 5 Jun 2020 05:03:29 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C767C08C5C2 for ; Fri, 5 Jun 2020 02:03:29 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id t18so8923709wru.6 for ; Fri, 05 Jun 2020 02:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RDj9WPcNLZafw1WmCK+2jcLNB/38A0yqskAegYjl94o=; b=L791aE3WH7eHH5Ud9SodquObe0Rf3VNwry6R6ETImhgYqgaFcDTrVTaqAEszODVG9U V7KiznfSLrsgB6/r4vIL0iH+FjvDrRi54/aOm+r1kQWavmu2cxx47l22jhyunt/N2DCE +Nkon3Htr7qa4Q+6JAed2WDZ9xZ/Mtp992K0CXGJpv3caso3RaL8JETxQa1IBYoZYpYM +fU53HMrFbdI9GpnQAde6XrsxiB+AvUbHE+XRi9us/wJew26IRsIr9BfVfRnk5ZFJHwn N9qbSfdDGvfYbfdmM8l7BxZL5iQ6ILtch2SDdf2hGG44aInhPFOfoQsZ7F5gHVDfmDjk VFaw== 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=RDj9WPcNLZafw1WmCK+2jcLNB/38A0yqskAegYjl94o=; b=hfsDE31DGM8/POB8RaEf2g785DxL9cvepDzVjvOcKv8D7nI29ew4CUpeG9ZjGt107w +Icy1JWgHe7YAmE9fh2rrRC3PnYrZEZTbdiSNqdUgQtdvWBbVFntamMBau0bHvdUN9Na +ATj7r1pPLo8xG9baLbqNiHZOBbXbmxOex1RQGcIihRCZL75HcknTIxKroSJcL9yNQzf H9eIrhExvm8oRULzNM/3xMzQnBkWAHJgBcTUBeRjF6zlitKK+czU7IpsAFCCJDAENuaC Z6HPN9YrAhYtPE/M316rupdRH5x7YViH08IFldfF5U4MeZVLPnSwiJyuYwr2Z47vgpir U3vw== X-Gm-Message-State: AOAM5326ly6yzVMX8/UiQApgksQko+KK5HV1Hi3Vqhfu6bLOz4zB5WTM ByemZIbwib0ULGG/NTI0ZZ77zcCIpI+Hbr/UJTs6fA== X-Received: by 2002:a5d:4484:: with SMTP id j4mr8393249wrq.325.1591347807880; Fri, 05 Jun 2020 02:03:27 -0700 (PDT) MIME-Version: 1.0 References: <20200605051510.51590-1-maochenxi@eswin.com> In-Reply-To: <20200605051510.51590-1-maochenxi@eswin.com> From: Anup Patel Date: Fri, 5 Jun 2020 14:33:01 +0530 Message-ID: Subject: Re: [PATCH v2 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default To: Chenxi Mao Cc: Paul Walmsley , linux-riscv , Albert Ou , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 5, 2020 at 10:45 AM Chenxi Mao wrote: > > Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks. > > PS2: Add signed off info. > > Signed-off-by: Chenxi Mao > --- > 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 > -- > 2.25.1 > > Looks good to me. Reviewed-by: Anup Patel This is a good candidate for Linux-5.8. Palmer ?? Regards, Anup