Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Guodong Xu" <guodong.xu@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH RFC] riscv: dts: spacemit: k3: Disable the ACLINT SSWI node
Date: Fri, 04 Dec 2026 09:43:25 +0000	[thread overview]
Message-ID: <sashiko-outbox-249534@kernel.org> (raw)
In-Reply-To: <20261204-k3-dts-sswi-disable-v1-1-a852d915128f@oss.qualcomm.com>

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 <guodong.xu@linux.dev>

> 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=y), 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=ttyS0,115200 earlycon clk_ignore_unused irqchip.riscv_imsic_noipi boot_mode=nor
> [    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] [<ffffffff8061aa86>] aclint_sswi_ipi_send+0x2c/0x52
> [    0.094274] [<ffffffff8009fbca>] ipi_mux_send_mask+0xa0/0xc0
> [    0.094278] [<ffffffff8009f9d2>] __ipi_send_mask+0x1e/0xe0
> [    0.094281] [<ffffffff8001bcec>] 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@pigmoral.tech [1]
> Link: https://lore.kernel.org/r/20250716123745.557585-1-apatel@ventanamicro.com [2]
> Signed-off-by: Guodong Xu <guodong.xu@oss.qualcomm.com>

[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 node with ACLINT nodes")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-k3-dts-sswi-disable-v1-1-a852d915128f@oss.qualcomm.com?part=1

      reply	other threads:[~2026-12-04  9:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  9:26 [PATCH RFC] riscv: dts: spacemit: k3: Disable the ACLINT SSWI node Guodong Xu
2026-12-04  9:43 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-249534@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=guodong.xu@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox