acooks / tn40xx-driver

Linux driver for tn40xx from Tehuti Networks
71 stars 50 forks source link

No carrier on interface #72

Open damienreyt opened 2 months ago

damienreyt commented 2 months ago

Hi :)

I've been trying to use multiple version of the driver on several kernels over the past days and i'm always facing the same problem where the driver builds just fine, loads correctly as well, creates the interface but no link is detected. For testing purpose, I installed the same network card on a Windows host (same hardware) using the startech drivers and it worked so I know that the transceivers/fibers are fine. If I switch the card & transceiver to my linux host, I get no link.

Tested environments : Ubuntu 22.04 - Kernel 5.15 and HWE 6.5 with tn40xx-006 branch Rocky Linux 8.10 - Kernel-ml 6.9 with linux-6.7 driver branch , also tested with 6.6 branch Rocky Linux 8.10 - Kernel 4.18 with tn40xx-003

Currently testing on Ubuntu 22.04 , Kernel 6.5.0-41

The network card ( PEX10000SFP ) is not part of the problematic ones as far as i could see :

04:00.0 Ethernet controller [0200]: Tehuti Networks Ltd. TN9510 10GBase-T/NBASE-T Ethernet Adapter [1fc9:4025]
        Subsystem: Tehuti Networks Ltd. Ethernet Adapter [1fc9:3015]
        Flags: bus master, fast devsel, latency 0, IRQ 129
        Memory at 6013000000 (64-bit, prefetchable) [size=64K]
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Power Management version 3
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Kernel driver in use: tn40xx
        Kernel modules: tn40xx

The log shows that it's loading properly at startup (from dmesg) :

[    2.382111] tn40xx: loading out-of-tree module taints kernel.
[    2.382605] tn40xx: module verification failed: signature and/or required key missing - tainting kernel
[    2.386468] tn40xx: Tehuti Network Driver from https://github.com/acooks/tn40xx-driver, 006
[    2.387054] tn40xx: Supported phys :    QT2025 TLK10232 AQR105 MUSTANG
[    2.388559] tn40xx 0000:04:00.0: enabling device (0000 -> 0002)
[    2.390054] tn40xx 0000:04:00.0: srom 0x0 HWver 16 build 0 lane# 4 max_pl 0x1 mrrs 0x2
[    2.648075] tn40xx 0000:04:00.0: PHY detected on port 1 ID=43A400 - QT2025 10Gbps SFP+
[    2.648788] tn40xx 0000:04:00.0: PHY type by svid 7 found 2
[    3.944131] tn40xx 0000:04:00.0: QT2025 FW version 2.0.3.3 module type 0x2
[    4.047166] tn40xx 0000:04:00.0 eth0: fw 0xe
[    4.047646] tn40xx 0000:04:00.0 eth0: Port A
[    4.048208] tn40xx 0000:04:00.0: 1 1fc9:4025:1fc9:3015
[    4.048664] tn40xx: detected 1 cards, 1 loaded
[    4.088140] tn40xx 0000:04:00.0 enp4s0: renamed from eth0

The interface shows NO_CARRIER :

4: enp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 3000
    link/ether 00:0a:cd:2b:52:01 brd ff:ff:ff:ff:ff:ff

I should also indicate that I see the red light ray while looking into the transceiver on my Linux host.

Thanks a lot for your help