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)
Wed, Sep 23, 3:59 PM
Unknown Object (File)
Tue, Sep 22, 3:50 PM
Unknown Object (File)
Tue, Sep 22, 7:59 AM
Unknown Object (File)
Mon, Sep 21, 3:53 PM
Unknown Object (File)
Sun, Sep 20, 8:40 PM
Unknown Object (File)
Fri, Sep 18, 8:37 PM
Unknown Object (File)
Fri, Sep 18, 3:07 PM
Unknown Object (File)
Thu, Sep 17, 5:09 PM
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.