Kernel message: PCIe Bus Error when receiving messages

CAN FD Interface for M.2 (PCIe)
Post Reply
wangroger0801
Posts: 1
Joined: Thu 21. Mar 2019, 17:09

Kernel message: PCIe Bus Error when receiving messages

Post by wangroger0801 » Thu 21. Mar 2019, 18:01

Hi, we have PCAN-M.2 Four Channe IPEH-004085 series-no: C1/118 in my device, two CANs port are connected. When they are receiving the messages, the system reports the following error message.

Code: Select all

pcieport 0000:00:01.1: AER: Corrected error received: 0000:00:00.0
pcieport 0000:00:01.1: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
pcieport 0000:00:01.1:   device [1022:1453] error status/mask=00000040/00006000
pcieport 0000:00:01.1:    [ 6] BadTLP                
We had Arch Linux custom real-time kernel. The CAN_PEAK_PCIEFD module was included. Messages can be read from the card. But the flooding error messages bother me so much.

It worked fine without any error message in the normal kernel on the same hardware system. Is there any specific kernel model we should include other than the CAN_PEAK_PCIEFD?

We have enabled: CAN_PEAK_PCI + CAN_PEAK_PCIEC + CAN_PEAK_PCIEFD + CAN_PEAK_USB

We tried to add grub command such as setting pci=nommconf or pci=noaer or pcie_aspm=off or pci=nomsi None of them helped.

We did some experiments that by presenting one of the CAN by "ip link set", the error message disappeared. But after we reset the other can port, the message flooded again.

Here is some dmesg releated to peak:

Code: Select all

[    0.294121] CAN device driver interface
[    0.294134] usbcore: registered new interface driver peak_usb
[    0.294182] peak_pciefd 0000:01:00.0: 4x CAN-FD PCAN-PCIe FPGA v3.2.1:
[    0.294268] peak_pciefd 0000:01:00.0: can0 at reg_base=0x00000000efadab57 irq=46
[    0.294332] peak_pciefd 0000:01:00.0: can1 at reg_base=0x0000000011fceca6 irq=46
[    0.294388] peak_pciefd 0000:01:00.0: can2 at reg_base=0x0000000061e0cde5 irq=46
[    0.294444] peak_pciefd 0000:01:00.0: can3 at reg_base=0x00000000d7541f72 irq=46
[    0.294458] sja1000 CAN netdevice driver
[    0.294496] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[    0.294497] e100: Copyright(c) 1999-2006 Intel Corporation
[    0.294510] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    0.294511] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    0.294525] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.294525] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.294541] sky2: driver version 1.30
[    0.300212] libphy: r8169: probed
[    0.300418] r8169 0000:0a:00.0 eth0: RTL8168g/8111g, e0:d5:5e:24:90:8d, XID 4c0, IRQ 47
[    0.300420] r8169 0000:0a:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
Hardware Info:
gigabyte mother board https://www.gigabyte.com/Motherboard/GA ... -rev-10#kf
AMD Ryzen 7 1700 Eight-Core Processor

Code: Select all

H/W path            Device     Class          Description
=========================================================
                               system         AB350N-Gaming WIFI (Default string)
/0                             bus            AB350N-Gaming WIFI-CF
/0/0                           memory         64KiB BIOS
/0/25                          memory         16GiB System Memory
/0/25/0                        memory         8GiB DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
/0/25/1                        memory         [empty]
/0/25/2                        memory         8GiB DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
/0/25/3                        memory         [empty]
/0/27                          memory         768KiB L1 cache
/0/28                          memory         4MiB L2 cache
/0/29                          memory         16MiB L3 cache
/0/2a                          processor      AMD Ryzen 7 1700 Eight-Core Processor
/0/100                         bridge         Family 17h (Models 00h-0fh) Root Complex
/0/100/0.2                     generic        Family 17h (Models 00h-0fh) I/O Memory Management Unit
/0/100/1.1                     bridge         Family 17h (Models 00h-0fh) PCIe GPP Bridge
/0/100/1.1/0        can1       network        PEAK-System Technik GmbH
/0/100/1.3                     bridge         Family 17h (Models 00h-0fh) PCIe GPP Bridge
/0/100/1.3/0                   bus            300 Series Chipset USB 3.1 xHCI Controller
/0/100/1.3/0/0      usb1       bus            xHCI Host Controller
/0/100/1.3/0/0/a               communication  Bluetooth wireless interface
/0/100/1.3/0/1      usb2       bus            xHCI Host Controller
/0/100/1.3/0.1                 storage        300 Series Chipset SATA Controller
/0/100/1.3/0.2                 bridge         Advanced Micro Devices, Inc. [AMD]
/0/100/1.3/0.2/0               bridge         300 Series Chipset PCIe Port
/0/100/1.3/0.2/1               bridge         300 Series Chipset PCIe Port
/0/100/1.3/0.2/4               bridge         300 Series Chipset PCIe Port
/0/100/1.3/0.2/5               bridge         300 Series Chipset PCIe Port
/0/100/1.3/0.2/5/0  wlp8s0     network        Wireless 3165
/0/100/1.3/0.2/6               bridge         300 Series Chipset PCIe Port
/0/100/1.3/0.2/7               bridge         300 Series Chipset PCIe Port
/0/100/1.3/0.2/7/0  enp10s0    network        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/3.1                     bridge         Family 17h (Models 00h-0fh) PCIe GPP Bridge
/0/100/3.1/0                   display        GP106 [GeForce GTX 1060 6GB]
/0/100/3.1/0.1                 multimedia     GP106 High Definition Audio Controller
/0/100/7.1                     bridge         Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
/0/100/7.1/0                   generic        Advanced Micro Devices, Inc. [AMD]
/0/100/7.1/0.2                 generic        Family 17h (Models 00h-0fh) Platform Security Processor
/0/100/7.1/0.3                 bus            Family 17h (Models 00h-0fh) USB 3.0 Host Controller
/0/100/7.1/0.3/0    usb3       bus            xHCI Host Controller
/0/100/7.1/0.3/1    usb4       bus            xHCI Host Controller
/0/100/8.1                     bridge         Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
/0/100/8.1/0                   generic        Advanced Micro Devices, Inc. [AMD]
/0/100/8.1/0.2                 storage        FCH SATA Controller [AHCI mode]
/0/100/8.1/0.3                 multimedia     Family 17h (Models 00h-0fh) HD Audio Controller
/0/100/14                      bus            FCH SMBus Controller
/0/100/14.3                    bridge         FCH LPC Bridge
/0/101                         bridge         Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
/0/102                         bridge         Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
/0/103                         bridge         Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
/0/104                         bridge         Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
/0/105                         bridge         Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
/0/106                         bridge         Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
/0/107                         bridge         Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0
/0/108                         bridge         Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1
/0/109                         bridge         Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2
/0/10a                         bridge         Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3
/0/10b                         bridge         Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4
/0/10c                         bridge         Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5
/0/10d                         bridge         Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6
/0/10e                         bridge         Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7
/0/1                scsi4      storage        
/0/1/0.0.0          /dev/sda   disk           500GB Samsung SSD 850
/0/1/0.0.0/1        /dev/sda1  volume         1023KiB BIOS Boot partition
/0/1/0.0.0/2        /dev/sda2  volume         465GiB EXT4 volume
/1                  docker0    network        Ethernet interface

Thanks!

Best regards,
Roger

User avatar
S.Grosjean
Software Development
Software Development
Posts: 302
Joined: Wed 4. Jul 2012, 17:02

Re: Kernel message: PCIe Bus Error when receiving messages

Post by S.Grosjean » Fri 22. Mar 2019, 11:16

Hi,

pci=noaer should normally do the stuff, since this argument prevents the AER module to register in the Kernel... Are you sure of your Kernel command line?

Code: Select all

$ dmesg | grep "Command line:"
Can you give us your Kernel version please?

Code: Select all

$ uname -a
Is the RT version built from the linux-rt patch?

We can propose you an out-of-tree version of peak_pciefd that enables usage of MSI rather than legacy interrupts. Could you please contact us by sending an email to support@peak-system.com?

Regards,
— Stéphane

Post Reply