]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/pci: Rework pnv_opal_pci_msi_eoi()
authorCédric Le Goater <clg@kaod.org>
Thu, 1 Jul 2021 13:27:47 +0000 (15:27 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Aug 2021 13:15:01 +0000 (23:15 +1000)
commit1bd844ebabae7fb8ce13810db9fa6dbd8cfcb452
tree9aed8f4a2e0a7720465e1f379ec4168f5399499c
parent60f520e1e940d6a0327f3fd9bc13023f26cc2502
powerpc/powernv/pci: Rework pnv_opal_pci_msi_eoi()

pnv_opal_pci_msi_eoi() is called from KVM to EOI passthrough interrupts
when in real mode. Adding MSI domain broke the hack using the
'ioda.irq_chip' field to deduce the owning PHB. Fix that by using the
IRQ chip data in the MSI domain.

The 'ioda.irq_chip' field is now unused and could be removed from the
pnv_phb struct.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210701132750.1475580-30-clg@kaod.org
arch/powerpc/include/asm/pnv-pci.h
arch/powerpc/kvm/book3s_hv_rm_xics.c
arch/powerpc/platforms/powernv/pci-ioda.c