acooks / tn40xx-driver

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

PHY init failed on Linux 6.8 #73

Open cahz opened 3 weeks ago

cahz commented 3 weeks ago

With the latest develop version (which is required for Linux 6.8), I cannot get our TN9710P (with MV88X3310) to initialize.

Loading the module leads to the following output:

[  878.238757] tn40xx: Tehuti Network Driver from https://github.com/acooks/tn40xx-driver, linux-6.7.y-1
[  878.238761] tn40xx: Supported phys : MV88X3120 MV88X3310  QT2025 TLK10232 AQR105 MUSTANG 
[  878.238885] tn40xx 0000:02:00.0: srom 0x0 HWver 16 build 0 lane# 4 max_pl 0x2 mrrs 0x2
[  878.707481] tn40xx 0000:02:00.0: PHY init failed

I noticed that the check in tn.c:444 fails. Replacing the condition with !phy_id, it continues a bit further, but later fails:

[  878.347776] tn40xx 0000:02:00.0: PHY detected ID=2B09AA - MV88X3310 (A0) 10Gbps 10GBase-T
[  878.707473] MV88X3310 Initialization Error. Expected 0x000A, read 0xFFFF
TerminalAddict commented 3 weeks ago

same, upgrade to Proxmox 8.2 from 7.4 cause a failure

syslog:2024-08-19T16:03:40.094601+12:00 homeworld kernel: [  686.982348] tn40xx: Tehuti Network Driver from https://github.com/acooks/tn40xx-driver, linux-6.7.y-1
syslog:2024-08-19T16:03:40.094609+12:00 homeworld kernel: [  686.982350] tn40xx: Supported phys :    QT2025 TLK10232 AQR105 MUSTANG
syslog:2024-08-19T16:03:40.094609+12:00 homeworld kernel: [  686.982461] tn40xx 0000:01:00.0: srom 0x0 HWver 16 build 0 lane# 4 max_pl 0x1 mrrs 0x2
syslog:2024-08-19T16:03:40.095662+12:00 homeworld kernel: [  686.982598] tn40xx 0000:01:00.0: PHY init failed
qume commented 3 days ago

Same here with proxmox and TN9310 card.

[    9.106643] tn40xx 0000:01:00.0: enabling device (0000 -> 0002)
[    9.106777] tn40xx 0000:01:00.0: srom 0x0 HWver 16 build 0 lane# 4 max_pl 0x1 mrrs 0x2
[    9.106918] tn40xx 0000:01:00.0: PHY init failed