Fwd: PCI: Loongson: 8b3517f88ff2 breaks PCIe on some system

From: Bagas Sanjaya
Date: Sat Jul 22 2023 - 22:03:15 EST


Hi,

I notice a regression report on Bugzilla [1]. Quoting from it:

> After 8b3517f88ff2 ("PCI: loongson: Prevent LS7A MRRS increases") backported to stable, we have received multiple regression reports including one from Debian build farm[1] that some systems failed to initialize some PCIe devices.
>
> I was able to reproduce on one of my Loongson-3A4000+7A system. It seems like the root cause is firmware on those systems didn't set MRRS properly but 8b3517f88ff2 ("PCI: loongson: Prevent LS7A MRRS increases") assumed firmware's maximum MRRS is always valid.
>
> [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035587

See Bugzilla for the full thread.

The linked Debian BTS entry have debugging details on this regression
(boot log, cpuinfo, and lspci).

Anyway, I'm adding this regression to regzbot:

#regzbot introduced: 8b3517f88ff298 https://bugzilla.kernel.org/show_bug.cgi?id=217680
#regzbot title: LS7A MRRS quirk fails to initialize PCIe devices
#regzbot link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035587

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217680

--
An old man doll... just what I always wanted! - Clara