Page MenuHomeFreeBSD

rge: log silicon revision during attach
ClosedPublic

Authored by chris.longros_gmail.com on Feb 20 2026, 4:20 PM.
Referenced Files
Unknown Object (File)
Thu, Mar 19, 7:10 AM
Unknown Object (File)
Thu, Mar 19, 2:34 AM
Unknown Object (File)
Wed, Mar 18, 2:35 PM
Unknown Object (File)
Tue, Mar 17, 4:52 AM
Unknown Object (File)
Mon, Mar 16, 6:00 AM
Unknown Object (File)
Fri, Mar 13, 4:32 AM
Unknown Object (File)
Thu, Mar 12, 8:53 PM
Unknown Object (File)
Thu, Mar 12, 2:58 AM
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 Not Applicable
Unit
Tests Not Applicable

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.