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=1796312017; b=q53Ml/nHJqXhkWsLvS6GewuymcD/Q5tYby0P5WZ2ibVrDzwfMTgbK/yRGe9QDCdVYdjb KwrTsQCXmnf6+0tUSG4E9SBcA+4q9ApFe5m9s3OYSyQ8pMcSC/MKrV2YfYhz8OdraCG/j SOTXB5Hl49GNkqdZvD5q9HKLYTPKzujps3t8ALeDFaxl26bAY/2jXv0NHe6CZ0LWrs33P FJ9vQudESRaWdODww9SJgWw+grgVMTxzk3/Y6+HZTgoyHvd8Nd+ooY0JWf+9OCgZxhtt5 hg87+PScJu4JKoJXkgD53L/uTatzt75iWjZ7Xfi5QIl7QYoNpeBrIweDN3SeeyvfRAA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796312017; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=TgpHwJKUgFp2glm4WJHUD/RZGYzNrGXkwIBlRmjxCkk=; b=zmxQfwvnhNapz0O28Wlb/zQ7TDBuTHrYjffJHos57O58i4pY2hA0WNOj6pEpPcgNa23N 6uT8uk9gr7VTc38rfKOB3aXcI4AAvYSZAS/HpwEaA8SqQmhEcRfkkcibkqrpJbPTcBPra PR3WOSAxsoiLiODpbl5OgbMsQFJ57GaM7uXhVU+hArVr0tn4JXtygdKV66Z7rMDG2jqsU YG5YF39TbydIWkAZrK/CzK3CUscys2zJrOi+8Ke2BV7JIggMZldc+UrOQYTS4+r26AZ8U Yjq8QeTVP0kEzLeND8uO2yIcxoz3jZ8h/v6C3mBg0JQ7EMfij/O0NEoZDfgBL7vcvqg== 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=buIshIh+; 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 19BA7606A32D for ; Thu, 3 Dec 2026 15:33:37 +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=buIshIh+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8B591F00896; Thu, 3 Dec 2026 15:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796312017; bh=TgpHwJKUgFp2glm4WJHUD/RZGYzNrGXkwIBlRmjxCkk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=buIshIh+Ivg2ZBKnZA1Y/mJx00LBTIDzCxcYF2as6/tenC49PRorgJPekA5eWnUsX IEbGJssNj3nrjw2slNs1c+2sqFQ8ucdJ6d7mZtyFRoGpRfJvMr0pVPQM21uXjZFCV/ QS8VU0u4aX3RKTvX/siPmVvpL0tapM9HU29n8Ut3cQFUUHZojDZbmBQNH0poBza4hp j1CFlmhulNA70dRY+KNCPthY2yjZdko5HzelwlLb6qWoGPCGh1g9asfOI+Kznw5kK8 0gIG3nasBY4lrFqcvrSAB1TvB8M3zcF6Bp31gAhr78TvY2QE74blS0l9lgGlbJu3Fa BQpGyfK5VrE4g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 3/5] MIPS: eyeq: select the EyeQ5 MSI controller 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-3-8ffe74494bd2@bootlin.com> References: <20261203-eyeq5_msi-v6-0-8ffe74494bd2@bootlin.com> <20261203-eyeq5_msi-v6-3-8ffe74494bd2@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:33:36 +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 SMP IRQ storm and livelock -- commit 9fe61b747dd4fd35959e5a168f4786412aa69225 Author: Gregory CLEMENT MIPS: eyeq: select the EyeQ5 MSI controller This commit selects EYEQ5_MSI under config EYEQ in arch/mips/Kconfig so the EyeQ5 MSI controller driver is enabled by default on EyeQ platforms. > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index ed17c9b1624ca..19dbf24684b23 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -632,6 +632,7 @@ config EYEQ > select CPU_MIPSR2_IRQ_VI > select CSRC_R4K > select DMA_NONCOHERENT > + select EYEQ5_MSI > select HAVE_PCI > select IRQ_MIPS_CPU > select MIPS_AUTO_PFN_OFFSET [Severity: High] Can enabling EYEQ5_MSI on SMP EyeQ platforms cause a parent IRQ storm, duplicate MSI deliveries, and a livelock when an MSI is routed to a remote CPU? In drivers/irqchip/irq-eyeq5-msi.c, eyeq_msi_irq_chip uses irq_chip_redirect_set_affinity under CONFIG_SMP and acks GCSR_IRQSTATUS only in irq_ack. Neither eyeq_msi_irq_chip nor its child MSI chips implement irq_pre_redirect. When an MSI targets a remote CPU, demux_redirect_remote() queues irq_work and returns true without calling eyeq_msi_ack_irq(). GCSR_IRQSTATUS stays latched, so eyeq_msi_isr() spins through its drain loop and keeps re-entering the level-triggered parent GIC IRQ until the remote CPU runs. This also allows a duplicate MSI if the spinning parent ISR runs after irq_work_single() clears IRQ_WORK_PENDING: CPU0 (parent GIC IRQ) CPU1 (target CPU) eyeq_msi_isr() generic_handle_demux_domain_irq() demux_redirect_remote() irq_work_queue_on(..., CPU1) /* GCSR_IRQSTATUS still set */ /* re-enters parent GIC IRQ */ irq_work_single() clear IRQ_WORK_PENDING eyeq_msi_isr() demux_redirect_remote() irq_work_queue_on(..., CPU1) <-- duplicate MSI queued irq_redirect_work() eyeq_msi_ack_irq() If an interrupt arrives for a remotely-affined vector while desc->action is NULL (racing with __free_irq()), demux_redirect_remote() skips irq_work_queue_on() without acking GCSR_IRQSTATUS, leaving the parent GIC line permanently asserted. Moving the GCSR_IRQSTATUS ack into irq_pre_redirect under CONFIG_SMP (making irq_ack a no-op) and setting irq_chip_pre_redirect_parent in init_dev_msi_info(), as drivers/irqchip/irq-al-fic.c does, would avoid this. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-eyeq5_msi-= v6-0-8ffe74494bd2@bootlin.com?part=3D3