csrutil / realtek-r8125-openwrt

realtek 8125b 2.5G ethernet driver for OpenWrt firmware
GNU General Public License v3.0
63 stars 15 forks source link

openwrt snapshot linux 6.1.29 driver autoneg stick to 1000mb/s, forcing via ethtool works #7

Closed benoitm974 closed 4 months ago

benoitm974 commented 1 year ago

I was able to compile on openwrt snapshot using kernal 6.1.29 (for the nanopi R5C),

yet I see 1 PCI error (copy paste below) after boot/init and the interface if stuck in 1000 ful-duplex until I force it with ethtool (then it works ok full speed)

Any idea where this could come from or if you experience the 1Gps issue?

kern.info kernel: [   19.872045] r8125: eth0: link up
Tue May 23 02:11:40 2023 kern.info kernel: [   19.872376] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Tue May 23 02:11:41 2023 kern.info kernel: [   20.519515] pcieport 0002:00:00.0: AER: Multiple Corrected error received: 0002:00:00.0
Tue May 23 02:11:41 2023 kern.warn kernel: [   20.520260] pcieport 0002:00:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
Tue May 23 02:11:41 2023 kern.warn kernel: [   20.521113] pcieport 0002:00:00.0:   device [1d87:3566] error status/mask=00000041/0000e000
Tue May 23 02:11:41 2023 kern.warn kernel: [   20.521844] pcieport 0002:00:00.0:    [ 0] RxErr                  (First)
Tue May 23 02:11:41 2023 kern.warn kernel: [   20.522438] pcieport 0002:00:00.0:    [ 6] BadTLP
Tue May 23 02:11:41 2023 kern.warn kernel: [   20.522984] r8125 0002:01:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Transmitter ID)
Tue May 23 02:11:41 2023 kern.warn kernel: [   20.523851] r8125 0002:01:00.0:   device [10ec:8125] error status/mask=00001001/0000e000
Tue May 23 02:11:41 2023 kern.warn kernel: [   20.524573] r8125 0002:01:00.0:    [ 0] RxErr                  (First)
Tue May 23 02:11:41 2023 kern.warn kernel: [   20.525145] r8125 0002:01:00.0:    [12] Timeout
csrutil commented 1 year ago

I don't have the R5C to test and also I compiled the r8125 module based on the kernel 6.1, but it failed. and you can try to set the speed manually by

# https://forum.openwrt.org/t/realtek-8156b-2-5g-for-pi-4-and-openwrt-21-02-2/125102/11
ethtool -s eth1 autoneg on advertise 0x80000000002f

Thanks!