All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,mporter@kernel.crashing.org,error27@gmail.com,
	alex.bou9@gmail.com,haoxiang_li2024@163.com,akpm@linux-foundation.org
Subject: + rapidio-tsi721-disable-msi-msi-x-on-master-port-setup-failure.patch added to mm-nonmm-unstable branch
Date: Wed, 02 Dec 2026 12:49:22 -0800	[thread overview]
Message-ID: <20261202204922.EDF131F00893@smtp.kernel.org> (raw)
In-Reply-To: <20261202132857.158019-1-haoxiang_li2024@163.com>


The patch titled
     Subject: rapidio: tsi721: disable MSI/MSI-X on master port setup failure
has been added to the -mm mm-nonmm-unstable branch.  Its filename is
     rapidio-tsi721-disable-msi-msi-x-on-master-port-setup-failure.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/rapidio-tsi721-disable-msi-msi-x-on-master-port-setup-failure.patch

This patch will later appear in the mm-nonmm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Haoxiang Li <haoxiang_li2024@163.com>
Subject: rapidio: tsi721: disable MSI/MSI-X on master port setup failure
Date: Wed,  2 Dec 2026 21:28:57 +0800

tsi721_setup_mport() enables MSI-X or MSI before tsi721_request_irq().  If
any subsequent operation fails, the allocated interrupt vectors are not
released.  This leaks interrupt resources and leaves MSI-X or MSI enabled,
which can prevent subsequent probe attempts from enabling either interrupt
mode.  Disable MSI-X or MSI on error path.

Link: https://patch.msgid.link/20261202132857.158019-1-haoxiang_li2024@163.com
Fixes: 9eaa3d9bb2c4 ("rapidio/tsi721: add DMA engine support")
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Alexandre Bounine <alex.bou9@gmail.com>
Cc: Dan Carpenter <error27@gmail.com>

 drivers/rapidio/devices/tsi721.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--- a/drivers/rapidio/devices/tsi721.c~rapidio-tsi721-disable-msi-msi-x-on-master-port-setup-failure
+++ a/drivers/rapidio/devices/tsi721.c
@@ -2737,7 +2737,7 @@ static int tsi721_setup_mport(struct tsi
 	if (err) {
 		tsi_err(&pdev->dev, "Unable to get PCI IRQ %02X (err=0x%x)",
 			pdev->irq, err);
-		return err;
+		goto err_disable_msi;
 	}
 
 #ifdef CONFIG_RAPIDIO_DMA_ENGINE
@@ -2767,6 +2767,11 @@ static int tsi721_setup_mport(struct tsi
 
 err_exit:
 	tsi721_free_irq(priv);
+err_disable_msi:
+	if (priv->flags & TSI721_USING_MSIX)
+		pci_disable_msix(pdev);
+	else if (priv->flags & TSI721_USING_MSI)
+		pci_disable_msi(pdev);
 	return err;
 }
 
_

Patches currently in -mm which might be from haoxiang_li2024@163.com are

rapidio-tsi721-disable-msi-msi-x-on-master-port-setup-failure.patch


      reply	other threads:[~2026-12-02 20:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 13:28 [PATCH] rapidio: tsi721: Disable MSI/MSI-X on master port setup failure Haoxiang Li
2026-12-02 20:49 ` Andrew Morton [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=20261202204922.EDF131F00893@smtp.kernel.org \
    --to=akpm@linux-foundation.org \
    --cc=alex.bou9@gmail.com \
    --cc=error27@gmail.com \
    --cc=haoxiang_li2024@163.com \
    --cc=mm-commits@vger.kernel.org \
    --cc=mporter@kernel.crashing.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.