Page MenuHomeFreeBSD

pci: fix write order when sizing BARs
ClosedPublic

Authored by royger on Jul 27 2017, 10:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 23, 11:23 PM
Unknown Object (File)
Mon, Mar 23, 4:57 AM
Unknown Object (File)
Mon, Mar 23, 3:22 AM
Unknown Object (File)
Sun, Mar 22, 2:10 AM
Unknown Object (File)
Fri, Mar 13, 10:08 PM
Unknown Object (File)
Fri, Mar 6, 12:22 AM
Unknown Object (File)
Feb 8 2026, 2:13 AM
Unknown Object (File)
Feb 4 2026, 12:54 AM
Subscribers
None

Details

Summary

According to the PCI Local Specification rev. 3.0 in case of a 64-bit
BAR both the low and the high parts of the register should be set to
~0 before attempting to read back the size.

So far I have found no single device that has problems with the
previous approach, but I think it's better to stay on the safe size.

This commit should not introduce any functional change.

Sponsored by: Citrix Systems R&D

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jul 27 2017, 3:41 PM
This revision was automatically updated to reflect the committed changes.