Page MenuHomeFreeBSD

Refactor MPR/MPS interrupt setup code.
ClosedPublic

Authored by scottl on Jan 19 2017, 10:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 12, 3:45 AM
Unknown Object (File)
Dec 9 2024, 6:44 AM
Unknown Object (File)
Nov 30 2024, 6:39 AM
Unknown Object (File)
Nov 22 2024, 5:15 AM
Unknown Object (File)
Nov 14 2024, 6:20 AM
Unknown Object (File)
Oct 21 2024, 9:34 PM
Unknown Object (File)
Oct 19 2024, 8:41 AM
Unknown Object (File)
Oct 7 2024, 9:22 PM
Subscribers
None

Details

Summary

Split the interrupt setup code into two parts: allocation and
configuration. Do the allocation before requesting the IOCFacts message.
This triggers the LSI firmware to recognize the multiqueue should be
enabled if available. As a side-effect, fetch the driver tunables as
early as possible.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

scottl retitled this revision from to Refactor MPR/MPS interrupt setup code..
scottl updated this object.
scottl edited the test plan for this revision. (Show Details)
scottl added reviewers: slm, ken, imp.
sys/dev/mpr/mpr_pci.c
237 ↗(On Diff #24192)

Setting sc->msi_msgs to 0 in the 'else' part may not do anything since you set it again before exiting. 'msgs' may or may not be initialized above, so it actually looks like it's possible to set msi_msgs to an unknown value before exit.

scottl edited edge metadata.

Fix an uninitialized use of msi_msgs.

slm edited edge metadata.
This revision is now accepted and ready to land.Jan 19 2017, 9:49 PM