Message ID | 20220714124216.1489304-1-chenhuacai@loongson.cn (mailing list archive) |
---|---|
Headers | show |
Series | PCI: Loongson pci improvements and quirks | expand |
On Thu, Jul 14, 2022 at 08:42:09PM +0800, Huacai Chen wrote: > This patchset improves Loongson PCI controller driver and resolves some > problems: LS2K/LS7A's PCI config space supports 1/2/4-bytes access, so > the first patch use pci_generic_config_read()/pci_generic_config_write() > for them; the second patch add ACPI init support which will be used by > LoongArch; the third patch improves the mrrs quirk for LS7A chipset; The > fourth patch add a new quirk for LS7A chipset to avoid poweroff/reboot > failure, and the fifth patch add a new quirk for LS7A chipset to fix the > multifunction devices' irq pin mappings. > ... > Huacai Chen, Tiezhu Yang and Jianmin Lv(6): > PCI/ACPI: Guard ARM64-specific mcfg_quirks > PCI: loongson: Use generic 8/16/32-bit config ops on LS2K/LS7A. > PCI: loongson: Add ACPI init support. > PCI: loongson: Don't access non-existant devices. > PCI: Add quirk for multifunction devices of LS7A. I applied the above to pci/ctrl/loongson to get them out of the way. > PCI: loongson: Improve the MRRS quirk for LS7A. > PCI: Add quirk for LS7A to avoid reboot failure. These touch core code in some sort of ugly ways and I'm still thinking about them.
Hi, Bjorn, On Sat, Jul 16, 2022 at 6:18 AM Bjorn Helgaas <helgaas@kernel.org> wrote: > > On Thu, Jul 14, 2022 at 08:42:09PM +0800, Huacai Chen wrote: > > This patchset improves Loongson PCI controller driver and resolves some > > problems: LS2K/LS7A's PCI config space supports 1/2/4-bytes access, so > > the first patch use pci_generic_config_read()/pci_generic_config_write() > > for them; the second patch add ACPI init support which will be used by > > LoongArch; the third patch improves the mrrs quirk for LS7A chipset; The > > fourth patch add a new quirk for LS7A chipset to avoid poweroff/reboot > > failure, and the fifth patch add a new quirk for LS7A chipset to fix the > > multifunction devices' irq pin mappings. > > ... > > > Huacai Chen, Tiezhu Yang and Jianmin Lv(6): > > PCI/ACPI: Guard ARM64-specific mcfg_quirks > > PCI: loongson: Use generic 8/16/32-bit config ops on LS2K/LS7A. > > PCI: loongson: Add ACPI init support. > > PCI: loongson: Don't access non-existant devices. > > PCI: Add quirk for multifunction devices of LS7A. > > I applied the above to pci/ctrl/loongson to get them out of the way. Thank you very much! > > > PCI: loongson: Improve the MRRS quirk for LS7A. > > PCI: Add quirk for LS7A to avoid reboot failure. > > These touch core code in some sort of ugly ways and I'm still thinking > about them. Yes, it is ugly, but I hope it can be solved in some way, at least the MRRS problem is not only Loongson-specific and can be shared by others. Huacai