Page MenuHomeFreeBSD

ix, ixv: Read msix_bar from device configuration
ClosedPublic

Authored by piotr.pietruszewski_intel.com on Sep 6 2019, 12:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 3:37 AM
Unknown Object (File)
Fri, Apr 12, 7:26 AM
Unknown Object (File)
Wed, Apr 10, 2:34 AM
Unknown Object (File)
Mon, Apr 8, 12:50 PM
Unknown Object (File)
Jan 12 2024, 8:13 PM
Unknown Object (File)
Jan 2 2024, 7:39 PM
Unknown Object (File)
Dec 20 2023, 2:49 AM
Unknown Object (File)
Dec 10 2023, 7:56 PM

Details

Summary

Instead of predicting MSI-X bar basing on mac type, read it from device
configuration.

This patch resolves PR 239704.

Diff Detail

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

Event Timeline

erj added a subscriber: erj.

Is there a reason that we wouldn't do this for all of our drivers, instead of hardcoding the BAR index?

I agree with Eric, we should depend on the device to be configured properly, and push to get the images for the device updated if they're wrong.

If the BAR varies across devices, I think using pci_msix_table_bar is probably the simplest thing to do.

This revision is now accepted and ready to land.Sep 17 2019, 4:38 PM
This revision was automatically updated to reflect the committed changes.