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)
Apr 1 2024, 9:49 PM
Unknown Object (File)
Feb 9 2024, 11:02 PM
Unknown Object (File)
Dec 22 2023, 10:38 PM
Unknown Object (File)
Nov 29 2023, 1:06 PM
Unknown Object (File)
Nov 10 2023, 10:39 AM
Unknown Object (File)
Oct 24 2023, 2:37 PM
Unknown Object (File)
Oct 9 2023, 9:35 AM
Unknown Object (File)
Sep 17 2023, 8:33 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.