Page MenuHomeFreeBSD

rge: log silicon revision during attach
ClosedPublic

Authored by chris.longros_gmail.com on Fri, Feb 20, 4:20 PM.
Referenced Files
Unknown Object (File)
Wed, Feb 25, 4:55 PM
Unknown Object (File)
Wed, Feb 25, 2:12 AM
Unknown Object (File)
Tue, Feb 24, 6:39 AM
Unknown Object (File)
Tue, Feb 24, 3:35 AM
Unknown Object (File)
Tue, Feb 24, 3:29 AM
Unknown Object (File)
Mon, Feb 23, 9:54 PM
Unknown Object (File)
Mon, Feb 23, 9:53 PM
Unknown Object (File)
Mon, Feb 23, 9:53 PM
Subscribers

Details

Summary

The initial import from OpenBSD contained chip revision printf() calls
commented out, as OpenBSD's bare printf() style does not translate to
FreeBSD's device_printf() idiom. The result is that users cannot
distinguish RTL8125 from RTL8125B, RTL8125D_1, RTL8125D_2 etc. via
dmesg alone, even though all variants show as '<RTL8125>' from the PCI
probe string.

Add proper device_printf() calls including the raw hwrev value,
consistent with how re(4) reports chip revisions.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70823
Build 67706: arc lint + arc unit

Event Timeline

This originated in https://github.com/freebsd/freebsd-src/pull/2036 which I closed since Adrian said he'd take it from here. Document that.
Also, seems legit, though it would be cool if we had this info as a sysctl hanging of the newbus sysctl nodes... Though that expands the scope too much...

This revision is now accepted and ready to land.Sat, Feb 21, 3:20 PM
adrian added a reviewer: network.
adrian added a project: network.
zlei added a subscriber: zlei.

Looks good to me.

This revision was automatically updated to reflect the committed changes.