irqchip/irq-msi-lib: free wired MSI descriptors
Subsystems (2)
PATCH 1/1 irqchip/irq-msi-lib: free wired MSI descriptors
msi_device_domain_alloc_wired() allocates a descriptor for each interrupt, but wired MSI domains do not set MSI_FLAG_FREE_MSI_DESCS. msi_device_domain_free_wired() releases the IRQ without freeing its descriptor, eventually exhausting the domain. Failed allocations also leave descriptors behind.
Set MSI_FLAG_FREE_MSI_DESCS for wired MSI domains so both paths release the descriptors.
--- drivers/irqchip/irq-msi-lib.c | 1 + 1 file changed, 1 insertion(+)
drivers/irqchip/irq-msi-lib.c +1 -0
@@ -75,6 +75,7 @@ bool msi_lib_init_dev_msi_info(struct device *dev, struct irq_domain *domain, info->flags =MSI_FLAG_ALLOC_SIMPLE_MSI_DESCS |MSI_FLAG_FREE_MSI_DESCS ; fallthrough;case DOMAIN_BUS_WIRED_TO_MSI : + info->flags |=MSI_FLAG_FREE_MSI_DESCS ;/* Remove PCI specific flags */ required_flags &= ~MSI_FLAG_PCI_MSI_MASK_PARENT ;break ;
Signature · 1 line
2.43.0
[tip: irq/urgent] irqchip/irq-msi-lib: Free wired MSI descriptors
The following commit has been merged into the irq/urgent branch of tip:
The following commit has been merged into the irq/urgent branch of tip:
Commit-ID: 1c16bc2b1122f78f9d51c5785f7a78b36d44972b Gitweb: https://git.kernel.org/tip/1c16bc2b1122f78f9d51c5785f7a78b36d44972b Author: Avi Weiss <[email protected]> AuthorDate: Sun, 25 Oct 2026 14:20:58 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Wed, 28 Oct 2026 21:29:53 +01:00
irqchip/irq-msi-lib: Free wired MSI descriptors
msi_device_domain_alloc_wired() allocates a descriptor for each interrupt, but wired MSI domains do not set MSI_FLAG_FREE_MSI_DESCS. msi_device_domain_free_wired() releases the IRQ without freeing its descriptor, eventually exhausting the domain. Failed allocations also leave descriptors behind.
Set MSI_FLAG_FREE_MSI_DESCS for wired MSI domains so both paths release the descriptors.
--- drivers/irqchip/irq-msi-lib.c | 1 + 1 file changed, 1 insertion(+)
drivers/irqchip/irq-msi-lib.c +1 -0
@@ -75,6 +75,7 @@ bool msi_lib_init_dev_msi_info(struct device *dev, struct irq_domain *domain, info->flags =MSI_FLAG_ALLOC_SIMPLE_MSI_DESCS |MSI_FLAG_FREE_MSI_DESCS ; fallthrough;case DOMAIN_BUS_WIRED_TO_MSI : + info->flags |=MSI_FLAG_FREE_MSI_DESCS ;/* Remove PCI specific flags */ required_flags &= ~MSI_FLAG_PCI_MSI_MASK_PARENT ;break ;