Page 1 of 1
PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun
Posted: Fri 8. Nov 2024, 11:47
by fenasikerim
I observe this error in my Jetson TX2's system logs when I activate CAN Bus Line. I tried switching aspm from powersave mode to performance and default mode in tx2. This error still shows up. Can someone help me to solve the issue ? This error still comes into my log files and sometimes my device suddenly resets itself and sometimes canbus doesn't record any data it just stops.
pcieport: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=0018 (Transmitter ID)
pcieport: device[someID] error status/mask=00001000/00002000
pcieport: [12] Replay Timer Timeout
pcan: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun (loss of frame?) IRQ380 count=114273
Re: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun
Posted: Mon 11. Nov 2024, 10:10
by M.Maidhof
Hi,
looks like you are using the peak-linux-driver. Please post the output of cat /proc/pcan to see which version you are using. With this driver it is possibe to increase the rx buffer or even switch to MSI instead of INTA interrupt handling, to improve such issues. More details are available in the manual of the driver:
https://www.peak-system.com/fileadmin/m ... an_eng.pdf
regards
Michael
Re: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun
Posted: Mon 11. Nov 2024, 12:50
by fenasikerim
Code: Select all
$ cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20200701_n (8.10.2) Jul 9 2021 02:30:17 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [usb] --------------
*--------------------- 4 interfaces @ major 505 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
0 pcifd -NA- aa51000 380 0x001c 00000001 00000000 00000001 00000000 0x0000
1 pcifd -NA- aa52000 380 0x001c 00000001 00000000 00000001 00000000 0x0000
2 pcifd -NA- aa53000 380 0x001c 00000001 00000000 00000001 00000000 0x0000
3 pcifd -NA- aa54000 380 0x001c 00000001 00000000 00000001 00000000 0x0000
this is the output of cat /proc/pcan file
I wasn't able to find what does INTA and MSI mode do ? Can you please explain or send me any guide that explains them?
Re: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun
Posted: Mon 11. Nov 2024, 13:41
by M.Heidemann
Hello!
First of all:
Please update your driver, the current version is 8.18:
https://www.peak-system.com/quick/PCAN-Linux-Driver
Also see the manual, as mentioned by my colleague Michael:
https://www.peak-system.com/fileadmin/m ... an_eng.pdf
In your case specifically, check chapter 3.3 for reference.
BR
Marvin