Skip to content

Commit

Permalink
MIPS: DTS: Fix number of msi vectors for Loongson64G
Browse files Browse the repository at this point in the history
HT irqs vectors are 8 groups, each group has 32 irqs, Loongson64C CPUs
can use only 4 groups and Loongson64G CPUs can use all 8 groups. So the
number of msi vectors of Loongson64G is 192 (32*8 - 64 = 192).

Fixes: 24af105 ("MIPS: Loongson64: DeviceTree for LS7A PCH")
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Huacai Chen authored and Thomas Bogendoerfer committed Jul 30, 2020
1 parent b91aff3 commit 18641fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/mips/boot/dts/loongson/loongson64g_4core_ls7a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
interrupts = <24 IRQ_TYPE_LEVEL_HIGH>,
<25 IRQ_TYPE_LEVEL_HIGH>,
<26 IRQ_TYPE_LEVEL_HIGH>,
<27 IRQ_TYPE_LEVEL_HIGH>;
<27 IRQ_TYPE_LEVEL_HIGH>,
<28 IRQ_TYPE_LEVEL_HIGH>,
<29 IRQ_TYPE_LEVEL_HIGH>,
<30 IRQ_TYPE_LEVEL_HIGH>,
<31 IRQ_TYPE_LEVEL_HIGH>;
};
};

Expand All @@ -31,7 +35,7 @@
interrupt-controller;
msi-controller;
loongson,msi-base-vec = <64>;
loongson,msi-num-vecs = <128>;
loongson,msi-num-vecs = <192>;
interrupt-parent = <&htvec>;
};
};

0 comments on commit 18641fd

Please sign in to comment.