How to eliminate the variation in Ethernet link-up time

Hi,

When using the R-Car H3 Starter Kit, there are variations in the time from system startup to Ethernet link-up.

What causes the Ethernet link-up time to vary?
Also, can you tell me what to do to eliminate the variation in Ethernet link-up time?

[Details]
We have confirmed how often the Ethernet link-up time varies.
After booting a total of 10 times, the Ethernet link-up time after system booting is as follows.
2.5-3 sec: 6 times
5.5-6 sec: 4 times


After checking the details, there is no change in the driver initialization processing time, and the link-up notification from the Ethernet phy is uneven.

・ Reference (variation check)
Driver initialization completion time: 48msec
Ethernet link-up time: 5643 msec

Driver initialization completion time: 48msec
Ethernet link-up time: 5643 msec

Driver initialization completion time: 48msec
Ethernet link-up time: 3047 msec

Driver initialization completion time: 48msec
Ethernet link-up time: 2442 msec

In addition, I tried setting Auto MDI / MDI-X to "OFF", setting Auto Negotiation to "OFF", and fixing it to 100Base Full, but I could not suppress the variation in Ethernet link-up time.

Thanks & Regards,

Parents
  • Hi, Coud be great to have a reproduction protocol.
    Many thing can influence the startup time.
    Can you say US what version of the Renesas BSP you are using.

  • And Which rootfs image, for example Yocto dunfell core-image-minimal. And what is your way for measuring the ethernet lin-up time.
    Thanks,
    Regards

  • Hi, Julien.

    I confirmed the operation with BSP v5.1.0.
    elinux.org/.../v5.1.0

    The measurement is obtained from the time stamp of the startup log, and is the time of "b-a".

    a."igb: Intel (R) Gigabit Ethernet Network Driver" log appears
    b. "Link is Up" log appears

    A deviation of about 3 seconds may occur at a rate of 2-3 times out of 10 times.
    Is Ethernet "that kind of thing"?

    Thanks,
    Regards

  • Hi,

    Thank you so much to do these operation on BSP v5.1.0.
    Just a question since R-Car H3 Starter kit doesn't have an Intel Gigabit adapter,
    can you confirm that the behaviour that you are observing is also true by comparing

    these two logs ?

    [ 3.946419] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:00: attached PHY driver (mii_bus:phy_addr=e6800000.ethernet-ffffffff:00, irq=185)
    [ 6.828844] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off

    Thanks,

    Julien

  • Hi,

    Yes, that's right.
    My log:
    1)
    [ 3.789082] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:00, irq=211)
    [ 14.777634] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    => diff: 10.988552

    2)
    [ 3.917814] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:00, irq=211)
    [ 9.592506] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    => diff: 5.674696

    3)
    [ 3.817427] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:00, irq=211)
    [ 10.525095] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    => diff: 6.707663

    BunBun
Reply
  • Hi,

    Yes, that's right.
    My log:
    1)
    [ 3.789082] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:00, irq=211)
    [ 14.777634] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    => diff: 10.988552

    2)
    [ 3.917814] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:00, irq=211)
    [ 9.592506] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    => diff: 5.674696

    3)
    [ 3.817427] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:00, irq=211)
    [ 10.525095] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    => diff: 6.707663

    BunBun
Children