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=1796311695; b=GAaVEi+Ue7wICqNYWdsx6Uq4iMZfYV/mGKrXnMXIc2I5WFtzLxVMz+GnXPhlcBgOlQ5k EhVjLp8qcd4LUdkzJkvDHSKl8aub34fvCkZDraEev+f1rNhZbPkwz6DqAm9EGP17qLTc4 whenbhBifjS1xJGRdxmHfxjRVY+hRZGjloVymf6BCEW+Aa+U2Gmlj5IzIxeORomw6EAMF l8rv3kwErdFPTfOlJNwqPE5nGx10l/wNM8FWt177ydJx0EFbc4GrA2/YN/l9qfxxL+IXh +5jW4jjjboHeUgkZK9+HAXK9yAxG3/Y+WGTUOmvNWLTnVBYoDDkxrw+OyzfZ6Zzsp+Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796311695; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Uyu7nzYJ63Z2PMRoQtoQ8CWeycUMyqs/aMFQiPW92Io=; b=qHa3UTAwuVsJ2wwy5tZhW5xM6njpDqg0S07sXFaA2fe7vKaKWYxfMRfIGta3jU0X7FX2 2ga/ZyxDhgHR82uh1EXvJJCAg0I8v+EfLnmfKsBpb+K8YwEtEmDjCPUfcFjzmoxvLSuiq jAoEXm3SSMyeJNaNc5UVkEA8tbyzSOT+wcE8TIE4r+siIHbji6JVtlmYQuuOX7QI2G8mb 52Aalm91nik0tSgXkPlVgV8v3Us0iE3fmgmJ0+gpuKr1khR8el7SMHazuKtDJgjY8w2Aa utDTXKGxidx1hYxzRbnTaMDd20TM5aSU4hc+scXyLVxcAnlwal47n26rUQQP9suMpVg== 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=io4Bl6BE; 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 0EF93606A322 for ; Thu, 3 Dec 2026 15:28:15 +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=io4Bl6BE Received: by smtp.kernel.org (Postfix) with ESMTPSA id C00421F000C1; Thu, 3 Dec 2026 15:28:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796311694; bh=Uyu7nzYJ63Z2PMRoQtoQ8CWeycUMyqs/aMFQiPW92Io=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=io4Bl6BEp6QFRcJRZad620MVHq8S2JBvcPfzsp6N8x3ZGPb3Kp6PYrWJXZuaP9Ebz mSSpRPNWMD6ux1TiC6kfB8fsJt80JyOT3cewHpdEGhRIE2wvOKpXXSoksp3jHatzwp JiMr+eysYjcYFBfzFHQE5Svvt0ANjso8HhYlEsN5T4nYjV51bOlXUfeSCLGM8Qgfuz 1KIfI1coJiU3x2e73SnPjlZrDvOV4miZL9uaBrnTmOMhE13tpV8Xp3jnKdboUlIeiT 0TFSceocTTSyXKqLHQN4Ioeb9pJuGxkGy/jsVah+OL4pZsuopCt5uFveuXWmsdeJGq EpRdXqh6Ltnlw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 4/5] MIPS: dts: eyeq5: add MSI controllers Reply-To: sashiko-reviews@lists.linux.dev To: "Gregory CLEMENT" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-eyeq5_msi-v6-4-8ffe74494bd2@bootlin.com> References: <20261203-eyeq5_msi-v6-0-8ffe74494bd2@bootlin.com> <20261203-eyeq5_msi-v6-4-8ffe74494bd2@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:28:14 +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: - [High] irqchip/eyeq5-msi: missing irq_pre_redirect causes GIC interrupt storm -- commit c2600b2477722b6bc60b82e5cabce2f821979819 Author: Gregory CLEMENT 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 windo= ws. > 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 =3D <&olb 0 26>; > }; > =20 > + msi0: msi-controller@5840000 { > + compatible =3D "mobileye,eyeq5-msi"; > + reg =3D <0x0 0x05840000 0x0 0x10>, > + <0x0 0x05840040 0x0 0x20>; > + interrupt-parent =3D <&gic>; > + msi-controller; > + #msi-cells =3D <0>; > + interrupts =3D ; > + memory-region =3D <&pci0_msi_reserved>; > + }; > + > + msi1: msi-controller@5840010 { > + compatible =3D "mobileye,eyeq5-msi"; > + reg =3D <0x0 0x05840010 0x0 0x10>, > + <0x0 0x05840060 0x0 0x20>; > + interrupt-parent =3D <&gic>; > + msi-controller; > + #msi-cells =3D <0>; > + interrupts =3D ; [Severity: High] Can wiring msi0 and msi1 to level-triggered GIC interrupts cause an interru= pt 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_remot= e() queues desc->redirect.work on the target CPU without clearing GCSR_IRQSTATU= S. With GCSR_IRQSTATUS still pending, eyeq_msi_isr() spins through all EYEQ_MSI_MAX_DRAIN iterations and the level-triggered GIC line re-fires unt= il 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 =3D irq_chip_pre_redirect_parent in a custom init_dev_msi_info callback, and using a no-op irq_ack under CONFIG_S= MP (as in dw_pcie_init_dev_msi_info()) would avoid this. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-eyeq5_msi-= v6-0-8ffe74494bd2@bootlin.com?part=3D4