From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F16E606A31C for ; Mon, 30 Nov 2026 03:27:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=NvXh9PHI; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GdhzuNut DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=m6dVLmS6QdpRVAah2W10k2Or3UFi0+GMquwx0DV8HQ0=; b=NvXh9PHIRxwD3KkcruYd+YTGfF QAGEJxA4V42wV9UPx9ObRoH3jxP26aVffJFBQvi0pG0B6rNVuABBBw7jPZOnFkKa/g0HEaqx7XV+n P8diF/BAl6qmadxTuimvVRUNelrHIeEj+vZsOuvYJ8o25c3RDQWLKtvxd7uH3F++8I+ZqtMWdoF1Y NZO9gH/JVCI3k9/r8aMbrHncizBiO0uAnDx/fWRxIvmLd68U32dUsvFHNOvI4v5R17ueLVLT+oWuL O/nvS9XfokPYtxPKqdDDka7pOFDIdJSwGknbCFPK6JGxvUU4MtsPZBYLTIxdoHW3zwgi8O8KG2F1J 9cVJQQtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXs2u-0000000374p-16Z9; Mon, 30 Nov 2026 03:27:16 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXs2g-000000036yd-49fs for linux-riscv@lists.infradead.org; Mon, 30 Nov 2026 03:27:04 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id A70FA406CF; Mon, 30 Nov 2026 03:27:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC72E1F000C1; Mon, 30 Nov 2026 03:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796009222; bh=c+y5YbuHh+l83CfPuP+XAmT+DB2dHCr6aa6p9dtz8zI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=GdhzuNutwT2CXsUiwFDOuQxFD7KfEvHQvHIklFZbVBmvj5lds7wArKWS9qIXXht44 G+DHqIx2un8+Ktl3rVW/B9omA8U/RCWQDhsg1EHhrnA09kWQjjvdyLQyABu4zKyzq3 n5v9rYDxVT+yVIv9FtXzDL7n4GkFMrV3TJUUaR2YAmtkYbkalyK0YzBeXl4b7K03Wf kbsCN9msTLltoW3VfJShtWkQM5EwIzu/T+bJY/MHwqB7E4Jgih5vjetmevBR6uZtwJ b407hzaWDbaT4FJ8UlPADk3LPLCRZMWbWBpRIhkQ5nLcNKIEraD7YNKZZyZtfwHSlW 9vI7x3WlGMiZA== Date: Sun, 29 Nov 2026 19:26:58 -0800 From: Drew Fustini To: "GUO Ren (XuanTie)" Cc: Han Gao , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Arnd Bergmann , Chen Wang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, sophgo@lists.linux.dev, Alexandre Ghiti , Leonardo Bras , Yao Zi , Chen Wang , Xiaoguang Xing Subject: Re: [PATCH v8] riscv: errata: Add C-SKY ERRATA WRITE_ONCE fixup Message-ID: References: <20261130-write_once-v8-1-3e98413e2d4c@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261130-write_once-v8-1-3e98413e2d4c@kernel.org> X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, Nov 30, 2026 at 01:58:35AM +0000, GUO Ren (XuanTie) wrote: > The early version of C-SKY C910 core has a store merge buffer It is confusing to me that this now says C-SKY. If it is going to be changed from the previous revision, then I think there needs to be an explanation. It is not clear what the difference is between T-HEAD and C-SKY. > delay problem. The store merge buffer could improve the store queue > performance by merging multi-store requests, but when there are not > continued store requests, the prior single store request would be > waiting in the store queue for a long time. That would cause > significant problems for communication between multi-cores. This > problem was found on sg2042 platform with the qspinlock lock torture > test. > > So appending a fence w.o could immediately flush the store merge > buffer and let other cores see the write result. > > This will apply the WRITE_ONCE errata to handle the non-standard > behavior via appending a fence w.o instruction for WRITE_ONCE(). > > This problem is only observed on the sg2042 hardware platform: it > takes hours of locktorture stress testing to trigger the livelock > once, and an interrupt can break the livelock. No user space > application has been observed to hit this problem, so there is no > need to modify user space WRITE_ONCE(). The vDSO code runs in user > space context as well, so its WRITE_ONCE() does not need the errata > fence either. > > Acked-by: Arnd Bergmann > Reviewed-by: Alexandre Ghiti > Reviewed-by: Leonardo Bras > Reviewed-by: Inochi Amaoto > Tested-by: Han Gao > Tested-by: Yao Zi > Cc: Chen Wang > Cc: Xiaoguang Xing > Cc: Paul Walmsley > Cc: Drew Fustini > Co-developed-by: Han Gao > Signed-off-by: Han Gao > Reviewed-by: Drew Fustini > Signed-off-by: GUO Ren (XuanTie) [..] > diff --git a/arch/riscv/Kconfig.errata b/arch/riscv/Kconfig.errata > index 4f77b3c6d7fd..dfa99f1cfd4e 100644 > --- a/arch/riscv/Kconfig.errata > +++ b/arch/riscv/Kconfig.errata > @@ -179,4 +179,22 @@ config ERRATA_THEAD_GHOSTWRITE > > If you don't know what to do here, say "Y". > > +config ERRATA_THEAD_WRITE_ONCE > + bool "Apply C-SKY WRITE_ONCE errata" Also, here it is ERRATA_THEAD_WRITE_ONCE but "C-SKY WRITE_ONCE" Thanks, Drew _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv