Page MenuHomeFreeBSD

bnxt: Add led(4) identification support
ClosedPublic

Authored by kbowling on Wed, Aug 12, 8:16 PM.
Tags
None
Referenced Files
F171148281: D58810.diff
Wed, Sep 9, 12:35 AM
Unknown Object (File)
Sat, Sep 5, 8:12 AM
Unknown Object (File)
Sat, Sep 5, 4:21 AM
Unknown Object (File)
Wed, Sep 2, 6:43 PM
Unknown Object (File)
Wed, Sep 2, 12:20 PM
Unknown Object (File)
Wed, Sep 2, 11:16 AM
Unknown Object (File)
Wed, Sep 2, 8:34 AM
Unknown Object (File)
Wed, Sep 2, 8:19 AM
Subscribers

Details

Summary
Query the firmware for the LEDs on each physical port and expose
/dev/led/bnxt* only when alternate blinking is supported.  Configure
every LED in the advertised group for identification and restore its
default firmware state before a function reset.

This is a structural port of DPDK bnxt HWRM identification path,
confirmed against Linux where old hwrm (0x10601) was observed.
Test Plan

I would have to go dig through my tubs-o-NICs at my lab to find suitable HW so this has not been witnessed for sensible LED function.

echo 1 > /dev/led/bnxt0
and sight check is reasonable. Could monitor the registers also.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped