linux/arch/powerpc/platforms/pasemi
Marc Zyngier 4545c6a3d6 powerpc/msi: Fix deassociation of MSI descriptors
Since 2f2940d168 ("genirq/msi: Remove filter from
msi_free_descs_free_range()"), the core MSI code relies on the
msi_desc->irq field to have been cleared before the descriptor
can be freed, as it indicates that there is no association with
a device anymore.

The irq domain code provides this guarantee, and so does s390,
which is one of the two architectures not using irq domains for
MSIs.

Powerpc, however, is missing this particular requirements,
leading in a splat and leaked MSI descriptors.

Adding the now required irq reset to the handful of powerpc backends
that implement MSIs fixes that particular problem.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/70dab88e-6119-0c12-7c6a-61bcbe239f66@roeck-us.net
2022-12-17 10:58:48 +00:00
..
dma_lib.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
gpio_mdio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
idle.c powerpc updates for 5.15 2021-09-03 11:22:50 -07:00
iommu.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
Kconfig powerpc/64s: Make hash MMU support configurable 2021-12-09 22:40:24 +11:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
misc.c powerpc/pasemi: Use strscpy instead of strlcpy 2022-09-06 11:03:04 +10:00
msi.c powerpc/msi: Fix deassociation of MSI descriptors 2022-12-17 10:58:48 +00:00
pasemi.h powerpc/pasemi: Add __init attribute to eligible functions 2021-12-23 22:33:14 +11:00
pci.c powerpc/pasemi: Use of_root in pas_pci_init() 2022-09-06 11:03:31 +10:00
powersave.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
setup.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
time.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00