Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp898483ybg; Mon, 1 Jun 2020 17:58:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLYv+GlXiIQOGZJZO2PimPsYlgzEEPLAjxW/FWR/VIhahzjl1agzcxnvAt1GZwyPUhtEr2 X-Received: by 2002:a50:bf03:: with SMTP id f3mr25194720edk.368.1591059531043; Mon, 01 Jun 2020 17:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591059531; cv=none; d=google.com; s=arc-20160816; b=S5ikwPOcZg5I/KPIR9SjI1kn55rpUQgzBwYT8V/W95b/Nvi2kAY0nAAWaLkxLigdp7 SyYxFAA64TXLMmji5VEebpZPEgm7QFrHdRr20yxgWkQ6mjq6EUllZnFoQYf0f605l3ZX TZBVuY6ku9FdqmJGm5Mn+X0JS4vCRnsUoZSLEFWBhRcuUNQ1vhP82f8c8keClup6+9pT Cn7JdzqRQl1RckdI+HQafogISuoNp5cuDvDzvkTa2yRdzP1WVij3zqAqwXZcDyhQBLW0 ZtrdB3FDMBAK76XlY5gHddF7vc2AAezYafyVVLB8hEINLyKN3oWuCubK2HygndKWSQXu qKEA== 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:date:subject:cc:to:from; bh=k/AiPE+S5wFgcMTOQ2KkE1RuinEAHUoU1mDdPOJHfKs=; b=PgucgGCGV/aEG1p0RkaYc9DLpXAnAA+G++CpGAvISIkjitHPZ9pmyvHzLcafcyffey 2IaLTHCWZlDFk4dDjHN+aL0Icl6iRRYYPX5Xxr1JANdlmmI+rrbz+M/ri2olnUErR17x 9puDUQqibp1OgYJNEOBDa4YmrAdAyqqFA9SpntGrXRQQD1dW+zgU0Xoa5rPC8mM0rK5b cidbRUaglFTeGK3+ebLMRN/AbBYauIrMXis2LdR8+rOpQrThbekhgAZ0S6RHsRT/zEil 4nTCM2Lw9vPu3B9RZSmimbzIbAwJfTRQwRBzoR2sre4M+Nmd5FkoWIBjxbiYgohn8nl5 mj9w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si608208edy.244.2020.06.01.17.58.27; Mon, 01 Jun 2020 17:58:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725921AbgFBAyk (ORCPT + 99 others); Mon, 1 Jun 2020 20:54:40 -0400 Received: from out28-122.mail.aliyun.com ([115.124.28.122]:49447 "EHLO out28-122.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbgFBAyk (ORCPT ); Mon, 1 Jun 2020 20:54:40 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4580702|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0143612-0.00041111-0.985228;FP=12664043516937949436|1|1|1|0|-1|-1|-1;HT=e02c03302;MF=maochenxi@eswin.com;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.HguMbpK_1591059270; Received: from localhost.localdomain(mailfrom:maochenxi@eswin.com fp:SMTPD_---.HguMbpK_1591059270) by smtp.aliyun-inc.com(10.194.97.246); Tue, 02 Jun 2020 08:54:36 +0800 From: Chenxi Mao To: paul.walmsley@sifive.com Cc: palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, maochenxi@eswin.com Subject: [PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default Date: Tue, 2 Jun 2020 08:54:28 +0800 Message-Id: <20200602005428.18087-1-maochenxi@eswin.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.25.1