HomeFreeBSD

axgbe: fix some link related issues

Description

axgbe: fix some link related issues

By default, axgbe driver does a receiver reset after predefined number
of retries for the link to come up. However, this receiver reset
doesn't always suffice, due to an hardware issue.
In that case, as a workaround, a complete phy reset is necessary.
This patch introduces a sysctl that can be set to 1 to let the driver
reset the phy completely, rather than just doing receiver reset.
The workaround will be removed once the issue is fixed by means
of firmware update.

This patch also fixes the handling of the direct attach cables
properly.

Submitted by: rajesh1.kumar_amd.com
Differential Revision: https://reviews.freebsd.org/D28266

(cherry picked from commit bfd75d45571958398a043517060d8c3d352e7dbd)

Details

Provenance
vmaffioneAuthored on Jan 23 2021, 1:44 PM
Differential Revision
D28266: Fix for direct attach cable and workaround for intermittent link issue with axgbe
Parents
rG2ef3f7f5c356: MFC 0e01ea872ee475d7aef11d21588504e2ef4eb32c:
Branches
Unknown
Tags
Unknown