Re: [PATCH 09/31] powerpc/pseries/pci: Add a msi_free() handler to clear XIVE data

2021-05-20 Thread Cédric Le Goater
Adding Marc. On 4/30/21 10:03 AM, Cédric Le Goater wrote: > The MSI domain clears the IRQ with msi_domain_free(), which calls > irq_domain_free_irqs_top(), which clears the handler data. This is a > problem for the XIVE controller since we need to unmap MMIO pages and > free a specific XIVE struct

[PATCH 09/31] powerpc/pseries/pci: Add a msi_free() handler to clear XIVE data

2021-04-30 Thread Cédric Le Goater
The MSI domain clears the IRQ with msi_domain_free(), which calls irq_domain_free_irqs_top(), which clears the handler data. This is a problem for the XIVE controller since we need to unmap MMIO pages and free a specific XIVE structure. The 'msi_free()' handler is called before irq_domain_free_irq