From: sashiko-bot@kernel.org
To: "Narayana Murty N" <nnmlinux@linux.ibm.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH 1/2] PCI/MSI: Allow opt-in teardown of per-device MSI domains
Date: Fri, 04 Dec 2026 17:01:43 +0000 [thread overview]
Message-ID: <sashiko-outbox-250252@kernel.org> (raw)
In-Reply-To: <20261204164141.20530-5-nnmlinux@linux.ibm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] PCI/MSI: stale domain lifetime kernel-doc in irqdomain.c
--
commit e180b4378f5af0655116ebc5f45d8cebbdc50358
Author: Narayana Murty N <nnmlinux@linux.ibm.com>
PCI/MSI: Allow opt-in teardown of per-device MSI domains
This commit adds MSI_FLAG_PCI_MSI_TEARDOWN_DOMAIN and
pci_msi_teardown_device_domain() so MSI parent providers can opt in to
tearing down per-device PCI MSI/MSI-X domains when vectors are disabled
or when enabling vectors fails terminally.
> diff --git a/drivers/pci/msi/irqdomain.c b/drivers/pci/msi/irqdomain.c
> index 6e65f0f44112e..9cebee81f970a 100644
> --- a/drivers/pci/msi/irqdomain.c
> +++ b/drivers/pci/msi/irqdomain.c
> @@ -19,6 +19,13 @@ int pci_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
> return pci_msi_legacy_setup_msi_irqs(dev, nvec, type);
> }
>
> +void pci_msi_teardown_device_domain(struct pci_dev *dev)
> +{
> + if (msi_device_domain_has_flag_locked(&dev->dev, MSI_DEFAULT_DOMAIN,
> + MSI_FLAG_PCI_MSI_TEARDOWN_DOMAIN))
> + msi_remove_device_irq_domain_locked(&dev->dev, MSI_DEFAULT_DOMAIN);
> +}
> +
> void pci_msi_teardown_msi_irqs(struct pci_dev *dev)
> {
> struct irq_domain *domain;
[Severity: Low]
Should the kernel-doc comments for pci_setup_msi_device_domain() and
pci_setup_msix_device_domain() in this file also be updated?
Both still state that the created domain is preserved until the device is
removed or the opposite MSI/MSI-X domain is created, without mentioning
that domains with MSI_FLAG_PCI_MSI_TEARDOWN_DOMAIN are also removed on
vector disable or terminal enable failure.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204164141.20530-4-nnmlinux@linux.ibm.com?part=1
next prev parent reply other threads:[~2026-12-04 17:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 16:41 [PATCH 0/2] PCI/MSI: Allow opt-in domain teardown for pSeries RTAS Narayana Murty N
2026-12-04 16:41 ` [PATCH 1/2] PCI/MSI: Allow opt-in teardown of per-device MSI domains Narayana Murty N
2026-12-04 17:01 ` sashiko-bot [this message]
2026-12-04 16:41 ` [PATCH 2/2] powerpc/pseries/msi: Release RTAS MSI state on vector disable Narayana Murty N
2026-12-04 17:11 ` [PATCH 0/2] PCI/MSI: Allow opt-in domain teardown for pSeries RTAS sashiko-bot
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-250252@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=nnmlinux@linux.ibm.com \
--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 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.