diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2013-04-25 15:20:59 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-04-26 02:09:59 -0400 |
commit | 137436c9a6ee385c883db09e41af763888ee7642 (patch) | |
tree | 251fb4b23142e8dc05a5824359ba73e383b0434d /arch/powerpc/platforms/powernv/pci.c | |
parent | a486bdb0e9da8d876d6ff4efc3138d35e141c0b5 (diff) |
powerpc/powernv: Patch MSI EOI handler on P8
The EOI handler of MSI/MSI-X interrupts for P8 (PHB3) need additional
steps to handle the P/Q bits in IVE before EOIing the corresponding
interrupt. The patch changes the EOI handler to cover that. we have
individual IRQ chip in each PHB instance. During the MSI IRQ setup
time, the IRQ chip is copied over from the original one for that IRQ,
and the EOI handler is patched with the one that will handle the P/Q
bits (As Ben suggested).
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/powernv/pci.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/pci.c b/arch/powerpc/platforms/powernv/pci.c index a11b5a60c91e..861e185483fe 100644 --- a/arch/powerpc/platforms/powernv/pci.c +++ b/arch/powerpc/platforms/powernv/pci.c | |||
@@ -84,7 +84,7 @@ static int pnv_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) | |||
84 | return -ENOMEM; | 84 | return -ENOMEM; |
85 | } | 85 | } |
86 | rc = phb->msi_setup(phb, pdev, phb->msi_base + hwirq, | 86 | rc = phb->msi_setup(phb, pdev, phb->msi_base + hwirq, |
87 | entry->msi_attrib.is_64, &msg); | 87 | virq, entry->msi_attrib.is_64, &msg); |
88 | if (rc) { | 88 | if (rc) { |
89 | pr_warn("%s: Failed to setup MSI\n", pci_name(pdev)); | 89 | pr_warn("%s: Failed to setup MSI\n", pci_name(pdev)); |
90 | irq_dispose_mapping(virq); | 90 | irq_dispose_mapping(virq); |