]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI/ACPI: Increase Loongson max PCI hosts to 8
authorHuacai Chen <chenhuacai@loongson.cn>
Fri, 26 Jul 2024 09:29:11 +0000 (17:29 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 1 Aug 2024 23:04:05 +0000 (18:04 -0500)
Beginning with Loongson-3C6000, there can be up to 8 PCI hosts for
multi-chip machines. To support these machines, increase the number of
entries in mcfg_quirks to 8.

Link: https://lore.kernel.org/r/20240726092911.2042656-1-chenhuacai@loongson.cn
Signed-off-by: Haowei Zheng <zhenghaowei@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/acpi/pci_mcfg.c

index 860014b89b8ebe80fcfecb6107b56423f15770c0..58e10a9801148e132400699168ca37e7f1f3d275 100644 (file)
@@ -181,6 +181,18 @@ static struct mcfg_fixup mcfg_quirks[] = {
        LOONGSON_ECAM_MCFG("LOONGSON", 0),
        LOONGSON_ECAM_MCFG("\0", 1),
        LOONGSON_ECAM_MCFG("LOONGSON", 1),
+       LOONGSON_ECAM_MCFG("\0", 2),
+       LOONGSON_ECAM_MCFG("LOONGSON", 2),
+       LOONGSON_ECAM_MCFG("\0", 3),
+       LOONGSON_ECAM_MCFG("LOONGSON", 3),
+       LOONGSON_ECAM_MCFG("\0", 4),
+       LOONGSON_ECAM_MCFG("LOONGSON", 4),
+       LOONGSON_ECAM_MCFG("\0", 5),
+       LOONGSON_ECAM_MCFG("LOONGSON", 5),
+       LOONGSON_ECAM_MCFG("\0", 6),
+       LOONGSON_ECAM_MCFG("LOONGSON", 6),
+       LOONGSON_ECAM_MCFG("\0", 7),
+       LOONGSON_ECAM_MCFG("LOONGSON", 7),
 #endif /* LOONGARCH */
 };