Page MenuHomeFreeBSD

sfxge(4): use correct port number in sensor decoding
ClosedPublic

Authored by arybchik on Dec 28 2016, 3:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 21, 7:25 PM
Unknown Object (File)
Fri, Aug 21, 7:25 PM
Unknown Object (File)
Sat, Aug 8, 10:28 PM
Unknown Object (File)
Sat, Aug 8, 4:18 PM
Unknown Object (File)
Aug 7 2026, 10:31 PM
Unknown Object (File)
Aug 6 2026, 9:24 AM
Unknown Object (File)
Jul 4 2026, 10:22 AM
Unknown Object (File)
Jul 3 2026, 12:53 PM
Subscribers

Details

Summary

The port mask used for per-port sensors in mcdi_sensor_map
assumes zero-based port numbering. The port mask used in
the code is based on the one-based MCDI port number.

Fix this to lookup the correct per-port sensors, and to
allow reporting of sensor events from higher port numbers.

Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days

Test Plan

amd64 kernels tinderbox build tested

Diff Detail

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

Event Timeline

arybchik retitled this revision from to sfxge(4): use correct port number in sensor decoding.
arybchik updated this object.
arybchik edited the test plan for this revision. (Show Details)
arybchik added reviewers: gnn, philip, np, bz.
gnn edited edge metadata.
This revision is now accepted and ready to land.Dec 28 2016, 4:44 PM
This revision was automatically updated to reflect the committed changes.