Page MenuHomeFreeBSD

Workaround fix for intermittent link issue with axgbe driver
AbandonedPublic

Authored by rajesh1.kumar_amd.com on Jan 16 2021, 5:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 8:15 AM
Unknown Object (File)
Wed, Apr 10, 6:58 AM
Unknown Object (File)
Mon, Apr 8, 10:16 AM
Unknown Object (File)
Feb 11 2024, 12:53 PM
Unknown Object (File)
Jan 22 2024, 12:37 PM
Unknown Object (File)
Jan 22 2024, 11:21 AM
Unknown Object (File)
Jan 2 2024, 5:00 PM
Unknown Object (File)
Dec 20 2023, 4:53 AM

Details

Summary

Intermittently, some link issues observed with axgbe driver. By default,
axgbe driver does a receiver reset after predefined number of retries for the
link to come up. But intermittently, this receiver reset doesn't suffice.
In that case, as a workaround we need to reset the phy completely.

This patch introduces a sysctl where which can be set to reset the phy
completely, rather than just doing receiver reset.

Test Plan

When trying with axgbe driver, if link doesn't comeup, the following sysctl
can be set as below.

Enable link workaround

dev.ax.X.link_workaround=1

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36272
Build 33161: arc lint + arc unit

Event Timeline

Tested and confirmed to be working on the AMD SoC 10GbE NIC. Right now this is the only way to get a consistent link-up during boot and when hotplugging SFP+ modules. The internal receiver reset cycle might contain a hardware issue that prevents it from working properly.

This revision is now accepted and ready to land.Jan 18 2021, 8:31 AM

Thanks @stephan.dewt_yahoo.co.uk for testing and giving your comments.

@vmaffione and @manu, please let me know if you have any comments.

Abandoning this revision and submitted another patch (D28266) which has this patch along with fixes for other known link issues with axgbe