powerpc/powernv/pci: Customize the MSI EOI handler to support PHB3
authorCédric Le Goater <clg@kaod.org>
Thu, 1 Jul 2021 13:27:39 +0000 (15:27 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Aug 2021 13:15:00 +0000 (23:15 +1000)
commitbbb25af8fbdba4acaf955e412a84eb2eea48697c
tree56d2fba567b5929a669c745989030cbcc23d0893
parente4f0aa3b4731430ad73fb4485e97f751c7500668
powerpc/powernv/pci: Customize the MSI EOI handler to support PHB3

PHB3s need an extra OPAL call to EOI the interrupt. The call takes an
OPAL HW IRQ number but it is translated into a vector number in OPAL.
Here, we directly use the vector number of the in-the-middle "PNV-MSI"
domain instead of grabbing the OPAL HW IRQ number in the XICS parent
domain.

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-22-clg@kaod.org
arch/powerpc/platforms/powernv/pci-ioda.c