This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3359: RGMII Ethernet 1Gbps down and up randomly

Part Number: AM3359

Tool/software: Linux

In AM3359 one of the ethernet RGMII port is connected to the Marvell ethernet  Phy.  Randomly 1Gbps connection goes down and up .

I could not able to identify the root cause for this behavior.

Kindly suggest us, debug the issue.

  • Please complete this checklist and post the results here: processors.wiki.ti.com/.../5x_CPSW
  • Hi Biser,

    Thank you for your reply.

    I got Rx Align/Code Errors as 4, the below I mentioned the ethtool result.
    NIC statistics:
    Good Rx Frames: 1163924
    Broadcast Rx Frames: 643
    Multicast Rx Frames: 44
    Pause Rx Frames: 0
    Rx CRC Errors: 0
    Rx Align/Code Errors: 4
    Oversize Rx Frames: 0
    Rx Jabbers: 0
    Undersize (Short) Rx Frames: 0
    Rx Fragments: 5
    Rx Octets: 118697937
    Good Tx Frames: 1163466
    Broadcast Tx Frames: 64
    Multicast Tx Frames: 161
    Pause Tx Frames: 0
    Deferred Tx Frames: 0
    Collisions: 0
    Single Collision Tx Frames: 0
    Multiple Collision Tx Frames: 0
    Excessive Collisions: 0
    Late Collisions: 0
    Tx Underrun: 0
    Carrier Sense Errors: 0
    Tx Octets: 118686512
    Rx + Tx 64 Octet Frames: 656
    Rx + Tx 65-127 Octet Frames: 2326632
    Rx + Tx 128-255 Octet Frames: 42
    Rx + Tx 256-511 Octet Frames: 64
    Rx + Tx 512-1023 Octet Frames: 0
    Rx + Tx 1024-Up Octet Frames: 0
    Net Octets: 237385264
    Rx Start of Frame Overruns: 0
    Rx Middle of Frame Overruns: 0
    Rx DMA Overruns: 0
    Rx DMA chan: head_enqueue: 1
    Rx DMA chan: tail_enqueue: 1164007
    Rx DMA chan: pad_enqueue: 0
    Rx DMA chan: misqueued: 0
    Rx DMA chan: desc_alloc_fail: 0
    Rx DMA chan: pad_alloc_fail: 0
    Rx DMA chan: runt_receive_buf: 0
    Rx DMA chan: runt_transmit_buf: 0
    Rx DMA chan: empty_dequeue: 0
    Rx DMA chan: busy_dequeue: 2325198
    Rx DMA chan: good_dequeue: 1163880
    Rx DMA chan: requeue: 0
    Rx DMA chan: teardown_dequeue: 0
    Tx DMA chan: head_enqueue: 1162889
    Tx DMA chan: tail_enqueue: 577
    Tx DMA chan: pad_enqueue: 0
    Tx DMA chan: misqueued: 577
    Tx DMA chan: desc_alloc_fail: 0
    Tx DMA chan: pad_alloc_fail: 0
    Tx DMA chan: runt_receive_buf: 0
    Tx DMA chan: runt_transmit_buf: 41
    Tx DMA chan: empty_dequeue: 1162882
    Tx DMA chan: busy_dequeue: 0
    Tx DMA chan: good_dequeue: 1163466
    Tx DMA chan: requeue: 1162889
    Tx DMA chan: teardown_dequeue: 0

    Rx Align/Code Errors: 4, This mean, whether the problem between PHY and MAC or Problem Between PHY and Magnectics.

    It will helpful for me to debug. Kindly suggest me.

  • Hi,

    I think you will want to look at the PHY to magnetics or the analog side. It would be best to contact the PHY manufacturer for suggestions on debug options. The link going up and down is usually an indication that the analog side is losing the carrier or something similar perhaps. The link establishment is controlled by the PHY.

    Best Regards,
    Schuyler