Message ID | 20240726092911.2042656-1-chenhuacai@loongson.cn |
---|---|
State | Accepted |
Commit | 1f35a0c74e441e1a21b5414c25bc01f06e9cca31 |
Headers | show |
Series | PCI/ACPI: Increase the number of Loongson's PCI host up to 8 | expand |
On Fri, Jul 26, 2024 at 05:29:11PM +0800, Huacai Chen wrote: > Begin with Loongson-3C6000, the number of PCI host can be as many as 8 > for multi-chip machines. To support these machines we also increase the > number of entries in mcfg_quirks up to 8. > > Signed-off-by: Haowei Zheng <zhenghaowei@loongson.cn> > Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Applied to pci/controller/loongson for v6.12, thanks! > --- > drivers/acpi/pci_mcfg.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/acpi/pci_mcfg.c b/drivers/acpi/pci_mcfg.c > index 860014b89b8e..58e10a980114 100644 > --- a/drivers/acpi/pci_mcfg.c > +++ b/drivers/acpi/pci_mcfg.c > @@ -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 */ > }; > > -- > 2.43.5 >
diff --git a/drivers/acpi/pci_mcfg.c b/drivers/acpi/pci_mcfg.c index 860014b89b8e..58e10a980114 100644 --- a/drivers/acpi/pci_mcfg.c +++ b/drivers/acpi/pci_mcfg.c @@ -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 */ };