[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-791c76d58465a248cbd1ee422c8075cb90fa615f@git.kernel.org>
Date: Fri, 2 Oct 2015 11:55:02 -0700
From: tip-bot for Marc Zyngier <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: hpa@...or.com, linux-kernel@...r.kernel.org, jason@...edaemon.net,
tglx@...utronix.de, ddaney.cavm@...il.com,
ard.biesheuvel@...aro.org, marc.zyngier@....com,
alex.shi@...aro.org, mingo@...nel.org
Subject: [tip:irq/urgent] irqchip/gic-v3-its:
Count additional LPIs for the aliased devices
Commit-ID: 791c76d58465a248cbd1ee422c8075cb90fa615f
Gitweb: http://git.kernel.org/tip/791c76d58465a248cbd1ee422c8075cb90fa615f
Author: Marc Zyngier <marc.zyngier@....com>
AuthorDate: Fri, 2 Oct 2015 16:44:06 +0100
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Fri, 2 Oct 2015 20:51:41 +0200
irqchip/gic-v3-its: Count additional LPIs for the aliased devices
When configuring the interrupt mapping for a new device, we
iterate over all the possible aliases to account for their
maximum MSI allocation. This was introduced by e8137f4f5088
("irqchip: gicv3-its: Iterate over PCI aliases to generate ITS configuration").
Turns out that the code doing that is a bit braindead, and repeatedly
accounts for the same device over and over.
Fix this by counting the actual alias that is passed to us by the
core code.
Signed-off-by: Marc Zyngier <marc.zyngier@....com>
Cc: linux-arm-kernel@...ts.infradead.org
Cc: Alex Shi <alex.shi@...aro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@...aro.org>
Cc: David Daney <ddaney.cavm@...il.com>
Cc: Jason Cooper <jason@...edaemon.net>
Link: http://lkml.kernel.org/r/1443800646-8074-3-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
---
drivers/irqchip/irq-gic-v3-its-pci-msi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
index cf351c6..a7c8c9f 100644
--- a/drivers/irqchip/irq-gic-v3-its-pci-msi.c
+++ b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
@@ -62,7 +62,7 @@ static int its_get_pci_alias(struct pci_dev *pdev, u16 alias, void *data)
dev_alias->dev_id = alias;
if (pdev != dev_alias->pdev)
- dev_alias->count += its_pci_msi_vec_count(dev_alias->pdev);
+ dev_alias->count += its_pci_msi_vec_count(pdev);
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists