Re: PCAN-miniPCIe with SocketCAN
Posted: Mon 29. Mar 2021, 22:08
Hello,
I am bringing up a similar system to the poster above, and am experiencing the same symptom: I can write, but I cannot read. I have confirmed that my CAN bus-connected end device is terminated correctly, and I can receive frames at its expected bitrate when connected to a CAN-USB dongle and my developer laptop. However, when I try to receive frames over the PCAN-miniPCIe card, and with the non-mainline `pcan` kernel module loaded with NETDEV support and `usemsi=1`, I am not able to receive any messages.
Here is the `dmesg` output when the `pcan` module is loaded:
I am worried in particular about this message: I can `cansend` and see them return via loopback, but I can't actually receive frames from my CAN line:
Here is what `lspci -vvv` has to say about my PCAN-miniPCIe configuration:
Any advice for me? Thank you!
I am bringing up a similar system to the poster above, and am experiencing the same symptom: I can write, but I cannot read. I have confirmed that my CAN bus-connected end device is terminated correctly, and I can receive frames at its expected bitrate when connected to a CAN-USB dongle and my developer laptop. However, when I try to receive frames over the PCAN-miniPCIe card, and with the non-mainline `pcan` kernel module loaded with NETDEV support and `usemsi=1`, I am not able to receive any messages.
Here is the `dmesg` output when the `pcan` module is loaded:
Code: Select all
pcan: Release_20210119_n (le)
pcan: driver config [mod] [isa] [pci] [pec] [dng] [usb] [net]
pcan 0000:10:00.0: using bridge 0000:00:1d.0 INT A to get IRQ 23
pcan 0000:10:00.0: PCI->APIC IRQ transform: INT A -> IRQ 23
pcan 0000:10:00.0: PCAN-miniPCIe sub-system id 5h (2 channels)
pcan: fallback into INTA mode IRQ23 (err 1)
pcan: PCB v4h FPGA v1.3.0 (mode 3)
pcan: - pci/pcie device minor 0 found
pcan: - pci/pcie device minor 1 found
usbcore: registered new interface driver pcan
pcan: registered CAN netdevice can0 for pci hw (251,0)
pcan: registered CAN netdevice can1 for pci hw (251,1)
pcan: major 251.
IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
Code: Select all
pcan: fallback into INTA mode IRQ23 (err 1)
Code: Select all
# cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20210119_n (8.11.0) Mar 29 2021 11:54:05 --------------
*---------------- [mod] [isa] [pci] [pec] [dng] [usb] [net] -----------------
*--------------------- 2 interfaces @ major 251 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
0 pci can0 a1100000 023 0x0014 00000000 00000006 00000000 00000000 0x0000
1 pci can1 a1100400 023 0x0014 00000000 00000000 00000000 00000000 0x0000
Code: Select all
10:00.0 Network controller: PEAK-System Technik GmbH Device 0008 (rev 02)
Subsystem: PEAK-System Technik GmbH Device 0005
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+
Interrupt: pin A routed to IRQ 23
Region 0: Memory at a1110000 (32-bit, non-prefetchable) [size=64K]
Region 1: Memory at a1100000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [50] Power Management version 0
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [70] MSI: Enable- Count=1/2 Maskable- 64bit+
Address: 00000000fee02004 Data: 4025
Capabilities: [90] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0.000W
DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Exit Latency L0s unlimited
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s (ok), Width x1 (ok)
TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
Kernel driver in use: pcan
#