From: sashiko-bot@kernel.org
To: "Gregory CLEMENT" <gregory.clement@bootlin.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 4/5] MIPS: dts: eyeq5: add MSI controllers
Date: Thu, 03 Dec 2026 15:28:14 +0000 [thread overview]
Message-ID: <sashiko-outbox-248107@kernel.org> (raw)
In-Reply-To: <20261203-eyeq5_msi-v6-4-8ffe74494bd2@bootlin.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] irqchip/eyeq5-msi: missing irq_pre_redirect causes GIC
interrupt storm
--
commit c2600b2477722b6bc60b82e5cabce2f821979819
Author: Gregory CLEMENT <gregory.clement@bootlin.com>
MIPS: dts: eyeq5: add MSI controllers
This commit adds the msi0 and msi1 MSI controller nodes to eyeq5.dtsi, wired
to level-triggered GIC shared interrupts and reserved memory doorbell windows.
> diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mobileye/eyeq5.dtsi
> index cec5ad8752285..ab63a90ed3e92 100644
> --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi
> +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi
> @@ -309,6 +309,28 @@ gpio1: gpio@1500000 {
> resets = <&olb 0 26>;
> };
>
> + msi0: msi-controller@5840000 {
> + compatible = "mobileye,eyeq5-msi";
> + reg = <0x0 0x05840000 0x0 0x10>,
> + <0x0 0x05840040 0x0 0x20>;
> + interrupt-parent = <&gic>;
> + msi-controller;
> + #msi-cells = <0>;
> + interrupts = <GIC_SHARED 7 IRQ_TYPE_LEVEL_HIGH>;
> + memory-region = <&pci0_msi_reserved>;
> + };
> +
> + msi1: msi-controller@5840010 {
> + compatible = "mobileye,eyeq5-msi";
> + reg = <0x0 0x05840010 0x0 0x10>,
> + <0x0 0x05840060 0x0 0x20>;
> + interrupt-parent = <&gic>;
> + msi-controller;
> + #msi-cells = <0>;
> + interrupts = <GIC_SHARED 48 IRQ_TYPE_LEVEL_HIGH>;
[Severity: High]
Can wiring msi0 and msi1 to level-triggered GIC interrupts cause an interrupt
storm on SMP when an MSI vector is redirected to another CPU?
In commit "irqchip: irq-eyeq5-msi: add EyeQ5 PCIe MSI controller driver",
eyeq_msi_irq_chip sets irq_chip_redirect_set_affinity and the parent ops use
msi_lib_init_dev_msi_info directly. Neither sets irq_pre_redirect, leaving
hardware ack in eyeq_msi_ack_irq().
When an MSI vector targets a CPU other than the parent GIC CPU,
eyeq_msi_isr() calls generic_handle_demux_domain_irq() ->
demux_redirect_remote(). With irq_pre_redirect unset, demux_redirect_remote()
queues desc->redirect.work on the target CPU without clearing GCSR_IRQSTATUS.
With GCSR_IRQSTATUS still pending, eyeq_msi_isr() spins through all
EYEQ_MSI_MAX_DRAIN iterations and the level-triggered GIC line re-fires until
the target CPU runs irq_redirect_work() -> eyeq_msi_ack_irq(). If
desc->action is NULL, the work is dropped and the GIC line stays asserted.
Implementing irq_pre_redirect on eyeq_msi_irq_chip to ack GCSR_IRQSTATUS,
setting info->chip->irq_pre_redirect = irq_chip_pre_redirect_parent in a
custom init_dev_msi_info callback, and using a no-op irq_ack under CONFIG_SMP
(as in dw_pcie_init_dev_msi_info()) would avoid this.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-eyeq5_msi-v6-0-8ffe74494bd2@bootlin.com?part=4
next prev parent reply other threads:[~2026-12-03 15:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 15:09 [PATCH v6 0/5] irqchip: add EyeQ5 PCIe MSI controller Gregory CLEMENT
2026-12-03 15:09 ` [PATCH v6 1/5] dt-bindings: interrupt-controller: add Mobileye " Gregory CLEMENT
2026-12-03 15:09 ` [PATCH v6 2/5] irqchip: irq-eyeq5-msi: add EyeQ5 PCIe MSI controller driver Gregory CLEMENT
2026-12-03 15:09 ` [PATCH v6 3/5] MIPS: eyeq: select the EyeQ5 MSI controller Gregory CLEMENT
2026-12-03 15:33 ` sashiko-bot
2026-12-03 15:09 ` [PATCH v6 4/5] MIPS: dts: eyeq5: add MSI controllers Gregory CLEMENT
2026-12-03 15:28 ` sashiko-bot [this message]
2026-12-03 15:09 ` [PATCH v6 5/5] MAINTAINERS: add EyeQ5 MSI controller entry Gregory CLEMENT
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-248107@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregory.clement@bootlin.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