diff options
author | Jayachandran C <jchandra@broadcom.com> | 2013-12-21 06:22:26 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-01-24 16:39:49 -0500 |
commit | 98d4884ca55883e8b16180bd969a8bccaa885c80 (patch) | |
tree | ca7424268b4ef49d1472895bf2bb50d57b38d4fe /arch/mips/pci | |
parent | e7aa6c66b0acc34caba3af485f1a039bfa8aef07 (diff) |
MIPS: Netlogic: Add cpu to node mapping for XLP9XX
XLP9XX has 20 cores per node, opposed to 8 on earlier XLP8XX.
Update code that calculates node id from cpu id to handle this.
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6283/
Diffstat (limited to 'arch/mips/pci')
-rw-r--r-- | arch/mips/pci/msi-xlp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/pci/msi-xlp.c b/arch/mips/pci/msi-xlp.c index 66a244a73a82..afd8405e0188 100644 --- a/arch/mips/pci/msi-xlp.c +++ b/arch/mips/pci/msi-xlp.c | |||
@@ -280,7 +280,7 @@ static int xlp_setup_msi(uint64_t lnkbase, int node, int link, | |||
280 | irt = PIC_IRT_PCIE_LINK_INDEX(link); | 280 | irt = PIC_IRT_PCIE_LINK_INDEX(link); |
281 | nlm_setup_pic_irq(node, lirq, lirq, irt); | 281 | nlm_setup_pic_irq(node, lirq, lirq, irt); |
282 | nlm_pic_init_irt(nlm_get_node(node)->picbase, irt, lirq, | 282 | nlm_pic_init_irt(nlm_get_node(node)->picbase, irt, lirq, |
283 | node * NLM_CPUS_PER_NODE, 1 /*en */); | 283 | node * nlm_threads_per_node(), 1 /*en */); |
284 | } | 284 | } |
285 | 285 | ||
286 | /* allocate a MSI vec, and tell the bridge about it */ | 286 | /* allocate a MSI vec, and tell the bridge about it */ |
@@ -443,7 +443,7 @@ void __init xlp_init_node_msi_irqs(int node, int link) | |||
443 | msixvec = link * XLP_MSIXVEC_PER_LINK + i; | 443 | msixvec = link * XLP_MSIXVEC_PER_LINK + i; |
444 | irt = PIC_IRT_PCIE_MSIX_INDEX(msixvec); | 444 | irt = PIC_IRT_PCIE_MSIX_INDEX(msixvec); |
445 | nlm_pic_init_irt(nodep->picbase, irt, PIC_PCIE_MSIX_IRQ(link), | 445 | nlm_pic_init_irt(nodep->picbase, irt, PIC_PCIE_MSIX_IRQ(link), |
446 | node * NLM_CPUS_PER_NODE, 1 /* enable */); | 446 | node * nlm_threads_per_node(), 1 /* enable */); |
447 | 447 | ||
448 | /* Initialize MSI-X extended irq space for the link */ | 448 | /* Initialize MSI-X extended irq space for the link */ |
449 | irq = nlm_irq_to_xirq(node, nlm_link_msixirq(link, i)); | 449 | irq = nlm_irq_to_xirq(node, nlm_link_msixirq(link, i)); |