Re: Aquantia PHY in OCSGMII mode?

Alexander Wilhelm
2025-08-05T08:00:29Z

Am Mon, Aug 04, 2025 at 07:02:34PM +0300 schrieb Vladimir Oltean:
> On Mon, Aug 04, 2025 at 07:00:37PM +0300, Vladimir Oltean wrote:
> > Can you apply the following patch, which adds support for ethtool
> > counters coming from the mEMAC, and dump them?
> >
> > ethtool -S eth0 --groups eth-mac eth-phy eth-ctrl rmon | grep -v ': 0'
>
> I forgot to mention how to show flow control counters:
>
> ethtool -I --show-pause eth0

Hi Vladimir,

Thank you for providing the patch. I was able to apply it successfully and
retrieve the desired statistics using the following command:

user@host-A:~# ethtool -S eth0 --groups eth-mac eth-phy eth-ctrl rmon | grep -v ': 0' && ethtool --phy-statistics eth0 | grep -v ': 0' && ethtool -I --show-pause eth0
Standard stats for eth0:
eth-mac-FramesTransmittedOK: 2188
eth-mac-OctetsTransmittedOK: 337884
eth-mac-MulticastFramesXmittedOK: 76
eth-mac-BroadcastFramesXmittedOK: 2112
tx-rmon-etherStatsPkts64to64Octets: 16
tx-rmon-etherStatsPkts65to127Octets: 1587
tx-rmon-etherStatsPkts128to255Octets: 63
tx-rmon-etherStatsPkts256to511Octets: 522
PHY statistics:
sgmii_rx_good_frames: 20785
sgmii_rx_false_carrier_events: 1
sgmii_tx_good_frames: 21120
sgmii_tx_bad_frames: 52
Pause parameters for eth0:
Autonegotiate: on
RX: off
TX: off
RX negotiated: on
TX negotiated: on
Statistics:
tx_pause_frames: 0
rx_pause_frames: 0

I have a ping running in the background and can observe that MAC frames and
TX-RMON packets are continuously increasing. However, the PHY statistics remain
unchanged. I suspect the current SGMII frames originate from U-Boot, as I load
the firmware image via `netboot`. These statistics were recorded at 2.5G speed,
but the same behavior is also visible at 1G.

Do you think the issue still lies within the MAC driver, or could it be related
to the Aquantia driver or firmware?

Best regards,
Alexander Wilhelm