Fixng the PCI errors logged on a Gigabyte MJ11-EC0 MoBo running Truenas Scale

Fixing the PCI errors logged on a Gigabyte MJ11-EC0 MoBo running Truenas Scale

Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: [ 6] BadTLP
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: [ 7] BadDLLP

As root run the below command, to add pcie_aspm=off to the kernel boot parameters, that solved the errors for me :

midclt call system.advanced.update ‘{“kernel_extra_options”: “pcie_aspm=off”}’

Note:
Changing the /etc/default/grub.d/truenas.cfg will not keep persistance

/Bingo

*********************’ TLDR *******************************

Something on the cheap EPYC mobo, combined with the TrueNas kernel.
Triggers these errors on the Console (BMC), and in kernel + syslog.
This is annoying, and makes the logs quite unusable.

I got tired of having had like 200MB of these (below) in my “Remote syslog”, everytime after running an approx. 10hr backup session.

Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: [ 7] BadDLLP
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: AER: Multiple Correctable error message received from 0000:00:00.0
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: PCIe Bus Error: severity=Correctable, type=Data Link Layer, (Receiver ID)
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: device [1022:1453] error status/mask=000000c0/00006000
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: [ 6] BadTLP
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: [ 7] BadDLLP
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: AER: Multiple Correctable error message received from 0000:00:00.0
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: PCIe Bus Error: severity=Correctable, type=Data Link Layer, (Receiver ID)
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: device [1022:1453] error status/mask=00000080/00006000
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: [ 7] BadDLLP
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: AER: Multiple Correctable error message received from 0000:00:00.0
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: PCIe Bus Error: severity=Correctable, type=Data Link Layer, (Receiver ID)
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: device [1022:1453] error status/mask=00000080/00006000
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: [ 7] BadDLLP
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: AER: Correctable error message received from 0000:00:00.0
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: PCIe Bus Error: severity=Correctable, type=Data Link Layer, (Receiver ID)
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: device [1022:1453] error status/mask=00000080/00006000
Nov 7 20:19:22 nas-02 kernel pcieport 0000:00:01.5: [ 7] BadDLLP

*** Some searching got me to this ***
Using pcie_aspm=off instead of simply suppressing warnings via pci=noaer I have the impression that my system got a lot more responsive, probably because there is no message spam anymore on the bus

midclt call system.advanced.update ‘{“kernel_extra_options”: “pcie_aspm=off”}’

********** Other hits on issue *************
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash pci=noaer”

earched around a bit about your issue, and found the following workaround: add pcie_aspm=off parameter to your kernel boot line.

The kernel option pci=nommconf disables Memory-Mapped PCI Configuration Space, which is available in Linux since kernel 2.6. Very roughly, all PCI devices have an area that describe this device (which you see with lspci -vv), and the originally method to access this area involves going through I/O ports, while PCIe allows this space to be mapped to memory for simpler access.

That means in this particular case, something goes wrong when the PCIe controller uses this method to access the configuraton space of a particular device. It may be a hardware bug in the device, in the PCIe root controller on the motherboard, in the specific interaction of those two, or something else.

By using pci=nommconf, the configuration space of all devices will be accessed in the original way, and changing the access methods works around this problem. So if you want, it’s both resolving and suppressing it.

Hi @Alex, yes this is true. I had a smiliar problem, nommconf wasn’t enough for me. When I use the proprietary NVIDIA driver I need to set pcie_aspm=off to get rid off the errors, on a Desktop this is no problem because it’s not running on battery. Using pci=noaer will suppress the warnings solely which could be an option if pcie_aspm=off does not work. On a Laptop I would potentially not advise to disable ASPM. Problem can be circumvented by using the nouveau driver if the problematic device has been identified as the NVIDIA GPU via lspci -vt and dmesg. –
stephanmg
Commented May 27, 2021 at 10:58
Addition: Also by using pcie_aspm=off instead of simply suppressing warnings via pci=noaer I have the impression that my system got a lot more responsive, probably because there is no message spam anymore on the bus… Just a guess. –
stephanmg
Commented May 27, 2021 at 11:02