From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796377407; b=0DdlKkJb9KQ2UXb72YFagy0NU43Y4TNWIDjcqSQRUZLdOhBFRma90H8KgxV9iwNbA1wz Ce6cY+wDj0b1cNY6dZNogkcKMCWGoc8DgnFVayjoDXLV2KyjbIpPV2SIJ59cg49nAiQUk IZqDGQzilI9FSdDR3u51Wg4V/Lr97nzQn/NeHccNOhv+QIAcPuSeG98PRmbuPF8UNphF+ 4dblc1T7F1ayyJSdfcZWjWorhnTSikYz4jMmRGLIYkROMibmEiEWkwnK6Ibk5vpBBMuAV WYsDnLz83gPJCC6qwxdDwHlB5c3fRkObAIa6gZn2R6Ik2tRVlmnVh4rDFlFQnLPySAA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796377407; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=9mhBjOX/T5ukNiCnVbLWjgNIJ7D4lgI6pZ/eN42B/cg=; b=JhZwx3kLBhX0G8LJ1WqwMtihBvsiyj45Yba6Gf9n4p5NC3nf6ZlrYUOF9ok8mMmwhLJu xBLD9+4BFUQU7mJWBxTTVjsBfz2BlOekTMxmUY1mokRrss5Rl/tfd7xLFeS2Q0d+jWEjn YOB7P80t3byNWody5V+ax/5H6+9+mNXZto9CBIFj2A03wbtwOO+iefjn+1+wwjV19PWb/ PkwbNuLiFuswcl80R5Qcvx16yMWrET/iYCLj9Z7g/aELgmDvP1xrYl+sno8J4gUBgsl39 y0pGdAjTUzTqH8jl9Vefe+bdicwj7+btS6lu7GtT0I2oD4dEJXbS1V/ffb+OYflHS+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bZdPTCgs; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25E72606A32C for ; Fri, 4 Dec 2026 09:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bZdPTCgs Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BD361F000C2; Fri, 4 Dec 2026 09:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796377406; bh=9mhBjOX/T5ukNiCnVbLWjgNIJ7D4lgI6pZ/eN42B/cg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=bZdPTCgsx2s/wjFz2U890R0QEiZogvs6SLkj/kIlrgChCjXw/6C7rO6xfZ+aSqCf4 g2Yu73P2jI2n7DRjDR0utRYfpxYcYtI1Nn3Ys8zolgCLa/v/EcxbXiHCT1vyIwBNo9 RrZ4wSZF8Og6oROGsSv/6K3InTLAIPVdNvHX5sha7ZtwIjoMGMQCd96cW2F9rfJa+u CQbMM3dWpRAz+0UM5+Z+6Hj6bFSuaoxRw+31bvbVG5ul0BKl2lNlZNeKsnm71HXUUu xgKi19LRliyh/sh9BmmOT9XZV0M9/yNGJjBgK+JpZygj/Q2jT8g4Yi1K3S01gK7EZJ nDIYLYcHLfdmA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH RFC] riscv: dts: spacemit: k3: Disable the ACLINT SSWI node Reply-To: sashiko-reviews@lists.linux.dev To: "Guodong Xu" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-k3-dts-sswi-disable-v1-1-a852d915128f@oss.qualcomm.com> References: <20261204-k3-dts-sswi-disable-v1-1-a852d915128f@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 09:43:25 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] riscv: dts: spacemit: k3: missing Fixes trailer for cc6371a7f519 -- commit ab6fa5c599e7dbf57907e09fc28c093ba035a146 Author: Guodong Xu > riscv: dts: spacemit: k3: Disable the ACLINT SSWI node > > The K3 has two devices that can deliver IPIs for an S-mode kernel, the > IMSIC and the ACLINT SSWI [1], and the kernel uses one of them. The > IMSIC node comes first in the device tree, so the IMSIC registers first > and provides the IPIs. > > With the SSWI driver built in (CONFIG_ACLINT_SSWI=3Dy), the SSWI probe > then fails on each boot. On a K3 Pico-ITX board: > > [ 0.000000] riscv-imsic: interrupt-controller@e0400000: providing IPIs= using interrupt 1 > [ 0.000000] irq_aclint_sswi: interrupt-controller@f181c000: register 8= CPUs > [ 0.000000] irq_aclint_sswi: unable to create muxed IPIs > [ 0.000000] OF: of_irq_init: Failed to init /soc/interrupt-controller@= f181c000 ((____ptrval____)), parent (____ptrval____) > > With irqchip.riscv_imsic_noipi [2] the IMSIC does not register for IPIs > and the SSWI takes over. On a K3 CoM260 board with the vendor firmware > that boot stops with a store access fault at the first IPI: the > firmware does not let S-mode write the SSWI registers. > > [ 0.000000] Kernel command line: console=3DttyS0,115200 earlycon clk_i= gnore_unused irqchip.riscv_imsic_noipi boot_mode=3Dnor > [ 0.000000] irq_aclint_sswi: interrupt-controller@f181c000: register 8= CPUs > [ 0.000000] irq_aclint_sswi: providing IPIs using ACLINT SSWI > [ 0.089686] smp: Bringing up secondary CPUs ... > [ 0.094223] Oops - store (or AMO) access fault [#1] > [ 0.094233] Hardware name: SpacemiT K3 CoM260 IFX (DT) > [ 0.094235] epc : aclint_sswi_ipi_send+0x2c/0x52 > [ 0.094243] ra : ipi_mux_send_mask+0xa0/0xc0 > [ 0.094267] status: 0000000200000100 badaddr: ffffffc600040000 cause: = 0000000000000007 > [ 0.094270] [] aclint_sswi_ipi_send+0x2c/0x52 > [ 0.094274] [] ipi_mux_send_mask+0xa0/0xc0 > [ 0.094278] [] __ipi_send_mask+0x1e/0xe0 > [ 0.094281] [] arch_irq_work_raise+0x32/0x3a > [ 0.094346] Kernel panic - not syncing: Fatal exception in interrupt > > Disable the node, so that the kernel does not probe the SSWI on K3. > > Link: https://lore.kernel.org/r/20260918-k3-aclint-v3-6-cf4fd4050e14@pigm= oral.tech [1] > Link: https://lore.kernel.org/r/20250716123745.557585-1-apatel@ventanamic= ro.com [2] > Signed-off-by: Guodong Xu [Severity: Low] This fixes boot-time SSWI probe failures and a store access fault in aclint_sswi_ipi_send() introduced when the enabled aclint_sswi node was added. Should this include: Fixes: cc6371a7f519 ("riscv: dts: spacemit: k3: Replace incorrect CLINT n= ode with ACLINT nodes") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-k3-dts-ssw= i-disable-v1-1-a852d915128f@oss.qualcomm.com?part=3D1