linux/arch/powerpc/platforms/4xx
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
..
cpm.c powerpc: Fix all occurences of duplicate words 2022-07-25 12:05:15 +10:00
gpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
hsta_msi.c powerpc/msi: Fix deassociation of MSI descriptors 2022-12-17 10:58:48 +00:00
machine_check.c powerpc: Add esr as a synonym for pt_regs.dsisr 2021-08-26 21:21:06 +10:00
Makefile powerpc/4xx: Remove MSI support which never worked 2021-12-09 11:52:20 +01:00
pci.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
pci.h
soc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
uic.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00