Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B54B4FD062E for ; Wed, 11 Mar 2026 06:47:05 +0000 (UTC) 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-Owner; bh=+eygR1JziCk+0mt7Mav4ifIgb1tuSvYunrXwUahjZBY=; b=RI5deUTjAbPo6y LHuHxpjgcRN2oAuaUMMkyStHI2uO9Ws0d9LNN2tJj1JR8ZKri+xrgI1cFOMdlqgnRwg6ZKQnSEeYn kbUS/0s/9G9yJMDfvDc570COxcJG9vB2nPOjS8jwGv6eBG59/SwHm3EWcqGXeYnPgJA3MyU0vSC07 gzlzrqIW9LpTvqElrBo63xJ5jhlaOlJ/qxOsfp+q+QWHp6KgISeD+XPREFZ7m9C0Ka/A71Hd+Lx2f 2mOW4ejMr3auKqSKnlg7SFdUM7VnJfcF7jOOVjexZiwd1hhvIY8u2R9LS7nPbR8ErNUS0KOB1+XkZ uv52CG3JzZZtYoKsW9aw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w0DLJ-0000000Aww2-3PER; Wed, 11 Mar 2026 06:46:53 +0000 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w0DLF-0000000AwuZ-0qdK for linux-riscv@lists.infradead.org; Wed, 11 Mar 2026 06:46:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Content-Transfer-Encoding:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=zMDCp80wXcZlLIgcMelPeXG51rHfM/JmcuxJr30FfrI=; b=ETuMtQDJY2vKLj6uIgdJBYJEYM IEPDBl9cBc/VI5eOShAEWs+TcADvt/4WIraBsH+PplPd/frmUrUNPQpKyJA/GKeMEfHL2ogFBCxSO nweLqxHjG5mwOhp+FPQdFy5lRhAkWzhWJfiqQUaLNUScVTI4QvpGsfHSOPapX2sxKkIg0TUNWS+2Z ZIHgP1CwEhEM29wN780LxlJWL+F5cp4dfd6zXwC2Y//7r0WqdL0ocAIVfA4nKeYVdt6BAF/Bxqylz j+/CpCFYpo+p/oswbdaCP9YJbXknwXvy14AYjtO6hjXaVmO03F/25exOwnpqjxVzS9KqxAuVTOZ/3 4AphON0w==; Received: from authenticated user by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w0DKx-0000000709L-3xln; Wed, 11 Mar 2026 07:46:31 +0100 Date: Wed, 11 Mar 2026 07:46:31 +0100 From: Aurelien Jarno To: Troy Mitchell Cc: Yanko Kaneti , linux-kernel@vger.kernel.org, Lee Jones , Sebastian Reichel , Yixun Lan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , "open list:RISC-V ARCHITECTURE:Keyword:riscv" , "open list:RISC-V SPACEMIT SoC Support:Keyword:spacemit" , "open list:SYSTEM RESET/SHUTDOWN DRIVERS" Subject: Re: [PATCH v5 2/2] mfd: simple-mfd-i2c: add a reboot cell for the SpacemiT P1 chip Message-ID: Mail-Followup-To: Troy Mitchell , Yanko Kaneti , linux-kernel@vger.kernel.org, Lee Jones , Sebastian Reichel , Yixun Lan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , "open list:RISC-V ARCHITECTURE:Keyword:riscv" , "open list:RISC-V SPACEMIT SoC Support:Keyword:spacemit" , "open list:SYSTEM RESET/SHUTDOWN DRIVERS" References: <20251102230352.914421-1-aurelien@aurel32.net> <20251102230352.914421-3-aurelien@aurel32.net> <990bc03ed2baa05e619f0aa9cc6a23acadd66ea6.camel@declera.com> <36f8df695463e5ff3eaaffbac357fc73026f7373.camel@declera.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.13 (2024-03-09) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260310_234649_242193_F31320BE X-CRM114-Status: GOOD ( 41.68 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hi, On 2026-03-11 10:58, Troy Mitchell wrote: > On Wed Mar 4, 2026 at 4:38 AM CST, Aurelien Jarno wrote: > Hi, Aurelien and Yanko, > > Hi, > > > > On 2026-03-02 22:34, Yanko Kaneti wrote: > >> Hello, > >> > >> On Mon, 2026-03-02 at 21:08 +0100, Aurelien Jarno wrote: > >> > On 2026-03-01 23:16, Aurelien Jarno wrote: > >> > > On 2026-02-27 13:29, Yanko Kaneti wrote: > >> > > > On Thu, 2026-02-26 at 22:32 +0100, Aurelien Jarno wrote: > >> > > > > Hi, > >> > > > > > >> > > > > On 2026-02-26 16:32, Yanko Kaneti wrote: > >> > > > > > Hello, > >> > > > > > > >> > > > > > On Mon, 2025-11-03 at 00:02 +0100, Aurelien Jarno wrote: > >> > > > > > > Add a "spacemit-p1-reboot" cell for the SpacemiT P1 chip. > >> > > > > > > > >> > > > > > > Signed-off-by: Aurelien Jarno > >> > > > > > > --- > >> > > > > > > v5: no changes > >> > > > > > > > >> > > > > > > drivers/mfd/simple-mfd-i2c.c | 1 + > >> > > > > > > 1 file changed, 1 insertion(+) > >> > > > > > > > >> > > > > > > diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c > >> > > > > > > index 0a607a1e3ca1d..542d378cdcd1f 100644 > >> > > > > > > --- a/drivers/mfd/simple-mfd-i2c.c > >> > > > > > > +++ b/drivers/mfd/simple-mfd-i2c.c > >> > > > > > > @@ -99,6 +99,7 @@ static const struct regmap_config spacemit_p1_regmap_config = { > >> > > > > > > }; > >> > > > > > > > >> > > > > > > static const struct mfd_cell spacemit_p1_cells[] = { > >> > > > > > > + { .name = "spacemit-p1-reboot", }, > >> > > > > > > { .name = "spacemit-p1-regulator", }, > >> > > > > > > { .name = "spacemit-p1-rtc", }, > >> > > > > > > }; > >> > > > > > > >> > > > > > Perhaps its safe to merge this one now that everything P1 and I2C is > >> > > > > > already in linus tip ? > >> > > > > > >> > > > > Unfortunately, this patchset is still missing: > >> > > > > https://lore.kernel.org/all/20260207-b4-k3-i2c-pio-v7-0-626942d94d91@linux.spacemit.com/ > >> > > > > > >> > > > > This means the reboots work most of the time, but are not 100% reliable, > >> > > > > and that's the reason why this patch got blocked from merging. > >> > > > > >> > > > I see. Thanks. Sounds to me like sometimes working compared to never > >> > > > working is better , but anyway.. > >> > > > >> > > I agree with that, but the decision was to hold on this patch until the > >> > > I2C PIO part got merged. > >> > > > >> > > > FWIW with this patch and the pio patcheset I get this rcu splat on > >> > > > reboot (which is still working). Similar splat is there without the pio > >> > > > patcheset. > >> > > > >> > > I haven't been able to reproduce the issue here after 10+ reboots on a > >> > > BPI-F3 board, but I tried the patch on top of 6.19. I'll try to build a > >> > > 7.0.0-rc2 kernel and report back. > >> > > >> > I have tried that, and I am still unable to reproduce the issue with a > >> > 7.0.0-rc2 kernel and a BPI-F3 board. > >> > >> I can still see it on every reboot (with the patches that allow reboot > >> to work). Do you have CONFIG_PREEMPT_RCU in your config ? its default on > >> when anything PREEMPT is selected. In Fedora its CONFIG_PREEMPT_DYNAMIC > >> that flips it. > > > > Thanks for the hint, that option was not activated here, it's not the > > riscv64 defconfig. With it I am also able to reproduce the issue. I'll > > try to debug that and report back. > I have sent a patch to address this issue here[1]. > > Could you please test it on your hardware when you have a chance? > > - Troy > > Link: > https://lore.kernel.org/all/20260311-v7-0-rc1-rv-dis-int-before-restart-v1-1-bc46b4351cac@linux.dev/ [1] Thanks, I confirm it fixes the issue \o/. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://aurel32.net _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv