s390/pci: fix MSI message data
authorSebastian Ott <sebott@linux.ibm.com>
Tue, 10 Sep 2019 13:45:04 +0000 (15:45 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 16 Sep 2019 11:21:51 +0000 (13:21 +0200)
After recent changes the MSI message data needs to specify the
function-relative IRQ number.

Reported-and-tested-by: Alexander Schmidt <alexs@linux.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/pci/pci_irq.c

index d80616ae8dd8ade256beae5268cab2924a379deb..fbe97ab2e22869a2e80c94ad6729363ba3d217ec 100644 (file)
@@ -284,7 +284,7 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
                        return rc;
                irq_set_chip_and_handler(irq, &zpci_irq_chip,
                                         handle_percpu_irq);
-               msg.data = hwirq;
+               msg.data = hwirq - bit;
                if (irq_delivery == DIRECTED) {
                        msg.address_lo = zdev->msi_addr & 0xff0000ff;
                        msg.address_lo |= msi->affinity ?