ODROID H2+ Realtek r8125 missing packets

Post Reply
tmanev
Posts: 8
Joined: Tue Nov 03, 2020 1:02 am
languages_spoken: english
ODROIDs: ODROID HU4/H2/H2+
Has thanked: 1 time
Been thanked: 1 time
Contact:

ODROID H2+ Realtek r8125 missing packets

Post by tmanev »

Hi,

We have issues receiving multicast traffic for r8125 ports on the Odroid H2+.
We are constantly receiving with missing packets with traffic of 400 MBits. With 300 MBits it is ok.
If we use the additional ports with H2 Net Card all seems ok on the 4 additional ports.
What is the difference between the H2 Net Card and the original 2 ports on the board?

Best regards,
Todor

PS I just checked with Odroid H2. There is no problem with the old boards and old ethernet controler.

tmanev
Posts: 8
Joined: Tue Nov 03, 2020 1:02 am
languages_spoken: english
ODROIDs: ODROID HU4/H2/H2+
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: ODROID H2+ Realtek r8125 missing packets

Post by tmanev »

I just noticed that: rx_missed is increasing for that ethernet port: ethtool -S enp2s0

tmanev
Posts: 8
Joined: Tue Nov 03, 2020 1:02 am
languages_spoken: english
ODROIDs: ODROID HU4/H2/H2+
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: ODROID H2+ Realtek r8125 missing packets

Post by tmanev »

I just found this post:
https://www.reddit.com/r/ODroid/comment ... ork_issue/

THIS COMMENT HELPED A LOT!

Hi. I also had similar performance issues in one direction but not the other (testing with iperf). I used wireshark and saw a lot of retransmits. I also noticed using ethtool -S enp3s0 that rx_missed was high and climbing during iperf.

rx_missed: 24938
Googling that led me to some threads about other realtek chips (e.g. r8169) that require disabling ASPM. https://bugzilla.redhat.com/show_bug.cgi?id=1679140 https://bugs.launchpad.net/ubuntu/+sour ... ug/1880076 https://www.spinics.net/lists/netdev/msg548397.html

Running

echo "performance" > /sys/module/pcie_aspm/parameters/policy
Improved things a lot for me (added pcie_aspm=performance to kernel options to make it permanent)

For reference I'm running 5.4.60-1-pve kernel.

ethtool -i enp3s0
driver: r8125
version: 9.003.05-NAPI
Apparently you can also disable this in bios (haven't tried this) BIOS -> Chipset -> South cluster configuration -> PCI Express configuration -> PCI Express root port(1&2)---ASPM - >Disable

tmanev
Posts: 8
Joined: Tue Nov 03, 2020 1:02 am
languages_spoken: english
ODROIDs: ODROID HU4/H2/H2+
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: ODROID H2+ Realtek r8125 missing packets

Post by tmanev »

Can someone explain why this helps:

echo "performance" > /sys/module/pcie_aspm/parameters/policy
These users thanked the author tmanev for the post:
TurdFurguson (Tue Feb 23, 2021 7:49 am)

User avatar
odroid
Site Admin
Posts: 36930
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1595 times
Been thanked: 1072 times
Contact:

Re: ODROID H2+ Realtek r8125 missing packets

Post by odroid »

We don't know why the PCIe bus governor affects.

BTW, can you try 9.004.01 driver to find a root cause?
https://wiki.odroid.com/odroid-h2/appli ... ased_linux

tmanev
Posts: 8
Joined: Tue Nov 03, 2020 1:02 am
languages_spoken: english
ODROIDs: ODROID HU4/H2/H2+
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: ODROID H2+ Realtek r8125 missing packets

Post by tmanev »

I checked both with 9.004.01 and latest 9.005.02. Still get missed packets but from time to time (interval of every 50 seconds), not continously as it was before.

Can someone help ?

User avatar
odroid
Site Admin
Posts: 36930
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1595 times
Been thanked: 1072 times
Contact:

Re: ODROID H2+ Realtek r8125 missing packets

Post by odroid »

We also confirmed that disabling ASPM could get near 940Mbps with iperf test in 1GbE network environment. Before disabling ASPM, we could get only 820~850Mbps.
Weird thing was that we could get solid 2.35Gbps in 2.5GbE network environment regardless of the ASPM settings.

We could disable the ASPM feature in the BIOS settings too.
BIOS / Chipset / South cluster configuration / PCI Express configuration / PCI Express root port(1&2) / ASPM / Disable
Note: do it for root port 1 and root port 2 which are the two root ports used for LAN.

BTW, all the Realtek drivers 9.003.05, 9.004.01 and 9.005.01 have the similar issue. :(
Therefore, I think the PCIe host driver seems not to detect well the load level of the PCIe devices in real time and we have to disable the PCIe power management option until someone find a real root cause.
I guess the load detection trigger level could be 2Gbps or something like that since 2.5GbE was fine. But my assumption could be totally wrong as always.
These users thanked the author odroid for the post:
tmanev (Wed Feb 24, 2021 3:56 am)

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 2 guests