bb-qq / r8152

Synology DSM driver for Realtek RTL8152/RTL8153/RTL8156 based adapters
GNU General Public License v2.0
2.05k stars 184 forks source link

DS2413+ with ASUS-AS-U2.5G2 and a PC with same adapter #321

Open cberthe067 opened 1 year ago

cberthe067 commented 1 year ago

Description of the problem

I installed my DS2413+ with an ASUS AS-U2.5.G2 and it's perfectly detected with 2.5 GBits Full Duplex and i can access to share and synology.

lsusb command give that

|__8-2 0bda:8156:3100 00 3.20 5000MBit/s 256mA 1IF (Realtek USB 10/100/1G/2.5G LAN 0013000001)

On my PC the same adapter is connected to 2.5 Gbits also (Win 11 + Realtek latest drivers for this adaptor)

The problem is that i cannot get speed transfert above 1 Gbits ! Tested with iperf3 and SMB connection ...

Description of your products

  • Synology DS2413+ Linux houssiere2bis 3.10.108 #42962 SMP Mon May 29 14:36:28 CST 2023 x86_64 GNU/Linux synology_cedarview_2413+ DSM 7.1.1-42962 Update 6 ASUS AS-U2.5.G2

Description of your environment

  • connect directly to a PC or using a Ethernet switch ASUS AS-U2.5.G2 No switch connect directly with the same product
  • cable category (Cat.7)

Output of dmesg command

[  402.358705] r8152 7-2:1.0 eth2: v2.17.1 (2023/06/13)
[  402.363813] r8152 7-2:1.0 eth2: This product is covered by one or more of the following patents:
                        US6,570,884, US6,115,776, and US6,327,625.

[  402.379533] r8152 7-2:1.0 eth2: chip rev 14
[  402.383766] r8152 7-2:1.0 eth2: rx_buf_sz will be overridden to 16384
[  403.277941] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[  403.519750] device ovs_eth2 entered promiscuous mode
[  403.584298] device eth2 entered promiscuous mode
[  403.615477] IPv6: ADDRCONF(NETDEV_UP): ovs_eth2: link is not ready
[  404.821777] IPv6: ADDRCONF(NETDEV_CHANGE): ovs_eth2: link becomes ready
[  404.828755] r8152 7-2:1.0 eth2: Promiscuous mode enabled
[  404.845121] r8152 7-2:1.0 eth2: carrier on
[  410.968096] r8152 7-2:1.0 eth2: Promiscuous mode enabled
[  410.974648] r8152 7-2:1.0 eth2: carrier on
[  453.435565] r8152 7-2:1.0 eth2: carrier off
[  455.741365] r8152 7-2:1.0 eth2: Promiscuous mode enabled
[  455.747480] r8152 7-2:1.0 eth2: carrier on
[  822.075115] EXT4-fs (sdq1): re-mounted. Opts: (null)
[  826.427881] EXT4-fs (sdr1): re-mounted. Opts: (null)
[  834.339241] sd 18:0:0:0: [sdr] Synchronizing SCSI cache
[  834.525582] sd 17:0:0:0: [sdq] Synchronizing SCSI cache
[  888.224860] usb 7-2: USB disconnect, device number 3
[  888.229991] r8152 7-2:1.0 eth2: Stop submitting intr, status -108
[  888.236514] device eth2 left promiscuous mode
[  907.752664] usb 8-2: new SuperSpeed USB device number 3 using etxhci_hcd-170202
[  907.781032] etxhci_hcd-170202 0000:06:00.0: WARN Event TRB for slot 1 ep 2 with no TDs queued?
[  907.789737] etxhci_hcd-170202 0000:06:00.0: WARN Event TRB for slot 1 ep 3 with no TDs queued?
[  907.798450] etxhci_hcd-170202 0000:06:00.0: WARN Event TRB for slot 1 ep 6 with no TDs queued?
[  908.909240] usb 8-2: reset SuperSpeed USB device number 3 using etxhci_hcd-170202
[  909.128148] r8152 8-2:1.0 eth2: v2.17.1 (2023/06/13)
[  909.133157] r8152 8-2:1.0 eth2: This product is covered by one or more of the following patents:
                        US6,570,884, US6,115,776, and US6,327,625.

[  909.148797] r8152 8-2:1.0 eth2: chip rev 14
[  909.153024] r8152 8-2:1.0 eth2: rx_buf_sz will be overridden to 16384
[ 1031.903441] device ovs_eth2 left promiscuous mode
[ 1031.931534] Module [r8152] is removed.
[ 1031.935420] usbcore: deregistering interface driver r8152
[ 1059.984743] etxhci_hcd-170202 0000:06:00.0: WARN Event TRB for slot 1 ep 2 with no TDs queued?
[ 1059.993491] etxhci_hcd-170202 0000:06:00.0: WARN Event TRB for slot 1 ep 3 with no TDs queued?
[ 1060.002164] etxhci_hcd-170202 0000:06:00.0: WARN Event TRB for slot 1 ep 6 with no TDs queued?
[ 1061.113786] usb 8-2: reset SuperSpeed USB device number 3 using etxhci_hcd-170202
[ 1061.282114] r8152 8-2:1.0 eth2: v2.17.1 (2023/06/13)
[ 1061.287178] r8152 8-2:1.0 eth2: This product is covered by one or more of the following patents:
                        US6,570,884, US6,115,776, and US6,327,625.

[ 1061.302768] r8152 8-2:1.0 eth2: chip rev 14
[ 1061.307004] r8152 8-2:1.0 eth2: rx_buf_sz will be overridden to 16384
[ 1061.313525] usbcore: registered new interface driver r8152
[ 1061.421447] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[ 1061.493442] device ovs_eth2 entered promiscuous mode
[ 1061.520959] device eth2 entered promiscuous mode
[ 1061.535368] IPv6: ADDRCONF(NETDEV_UP): ovs_eth2: link is not ready
[ 1065.375854] IPv6: ADDRCONF(NETDEV_CHANGE): ovs_eth2: link becomes ready
[ 1065.383066] r8152 8-2:1.0 eth2: Promiscuous mode enabled
[ 1065.389650] r8152 8-2:1.0 eth2: carrier on
[ 1074.335963] r8152 8-2:1.0 eth2: Promiscuous mode enabled
[ 1117.768831] r8152 8-2:1.0 eth2: get_registers -71
[ 1354.121762] r8152 8-2:1.0 eth2: get_registers -71
[ 1393.182227] r8152 8-2:1.0 eth2: get_registers -71
[ 1433.239007] r8152 8-2:1.0 eth2: get_registers -71
[ 1531.583507] r8152 8-2:1.0 eth2: carrier off
[ 1534.659618] r8152 8-2:1.0 eth2: Promiscuous mode enabled
[ 1534.666058] r8152 8-2:1.0 eth2: carrier on
[ 1799.593277] r8152 8-2:1.0 eth2: get_registers -71
[ 1816.626348] Synotify use 16384 event queue size
[ 1974.084164] r8152 8-2:1.0 eth2: get_registers -71
[ 2151.816477] Synotify use 16384 event queue size
[ 2172.388393] r8152 8-2:1.0 eth2: get_registers -71
[ 2186.411013] r8152 8-2:1.0 eth2: get_registers -71
[ 2200.430609] r8152 8-2:1.0 eth2: get_registers -71
[ 2213.454068] r8152 8-2:1.0 eth2: get_registers -71
super@houssiere2bis:~$

Output of lsusb command

|__usb1          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:1a.7) hub
|__usb2          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:1d.7) hub
  |__2-1         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 6500434D21915205)
  |__2-4         0bc2:2038:1801 00  2.10  480MBit/s 30mA 1IF  (Seagate Expansion HDD 00000000NAC6G589)
|__usb3          1d6b:0001:0310 09  1.10   12MBit/s 0mA 1IF  (uhci_hcd 0000:00:1a.0) hub
|__usb4          1d6b:0001:0310 09  1.10   12MBit/s 0mA 1IF  (uhci_hcd 0000:00:1d.0) hub
  |__4-2         041e:3010:0100 00  1.10   12MBit/s 500mA 3IFs ( ffffffdbffffffb2ffffffd6ffffffa3)
|__usb5          1d6b:0001:0310 09  1.10   12MBit/s 0mA 1IF  (uhci_hcd 0000:00:1d.1) hub
  |__5-1         051d:0002:0090 00  2.00   12MBit/s 2mA 1IF  (American Power Conversion Back-UPS RS 900G FW:879.L4 .I USB FW:L4   3B1227X12272  )
|__usb6          1d6b:0001:0310 09  1.10   12MBit/s 0mA 1IF  (uhci_hcd 0000:00:1d.2) hub
|__usb7          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (Linux 3.10.108 etxhci_hcd-170202 Etron xHCI Host Controller 0000:06:00.0) hub
|__usb8          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (Linux 3.10.108 etxhci_hcd-170202 Etron xHCI Host Controller 0000:06:00.0) hub
  |__8-1         0bc2:2038:1801 00  3.20 5000MBit/s 8mA 1IF  (Seagate Expansion HDD 00000000NAC6F73F)
  |__8-2         0bda:8156:3100 00  3.20 5000MBit/s 256mA 1IF  (Realtek USB 10/100/1G/2.5G LAN 0013000001)

Output of ifconfig -a command

eth0      Link encap:Ethernet  HWaddr 00:11:32:2F:85:3D
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:56751 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8513483 (8.1 MiB)  TX bytes:0 (0.0 B)
          Interrupt:17 memory 0xf0400000-f0420000

eth1      Link encap:Ethernet  HWaddr 00:11:32:2F:85:3E
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:506497 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69865 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:652890442 (622.6 MiB)  TX bytes:27563437 (26.2 MiB)
          Interrupt:16 memory 0xf0500000-f0520000

eth2      Link encap:Ethernet  HWaddr 00:E0:4C:68:1A:15
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:9000  Metric:1
          RX packets:11505086 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1087223 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9155030260 (8.5 GiB)  TX bytes:8258570314 (7.6 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:23634 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23634 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25584238 (24.3 MiB)  TX bytes:25584238 (24.3 MiB)

ovs-syste Link encap:Ethernet  HWaddr EA:44:E3:26:5B:0F
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ovs_bond0 Link encap:Ethernet  HWaddr 00:11:32:2F:85:3D
          inet addr:10.0.0.106  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:32ff:fe2f:853d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:128117 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61818 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:629677714 (600.5 MiB)  TX bytes:26699120 (25.4 MiB)

ovs_eth2  Link encap:Ethernet  HWaddr 00:E0:4C:68:1A:15
          inet addr:10.0.1.106  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fe68:1a15/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
          RX packets:2228453 errors:0 dropped:0 overruns:0 frame:0
          TX packets:306221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8815163178 (8.2 GiB)  TX bytes:8216396206 (7.6 GiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
voc0der commented 1 year ago

Same exact issue similar adapter, using a DS1813+

voc0der commented 1 year ago

@cberthe067 have you heard of people complaining that these old models have USB 3 with slow ports?

cberthe067 commented 1 year ago

Rapidly reading all issues it seems that speed problem occurs with model < x18, thus there is issues for older models and work perfectly for model starting with x18 and more ... Older the synology is, slower it is ... may be it's related to not optimal USB 3 ports ?

cberthe067 commented 1 year ago

@bb-qq As the developer of this marvelous contribution, is the logic explain here above in this post seems logical ? Or It may have a solution to get 2.5 gbits transfer rate ?

voc0der commented 1 year ago

@cberthe067 https://github.com/bb-qq/r8152/issues/7#issuecomment-650524743

bb-qq commented 1 year ago
r8152 8-2:1.0 eth2: get_registers -71

This line indicates that errors often occur in the interaction between the driver and the hardware. This may prevent adequate performance.

It is difficult to say for sure, as some older platforms may work fine on some models, but the x18 series and later Intel/AMD models are certainly more stable.

bb-qq commented 3 months ago
r8152 8-2:1.0 eth2: get_registers -71

In the latest release 2.18.1, performance improvements have been reported in environments where this error occurs. If you still have the hardware, please give it a try.