Page MenuHomeFreeBSD

pci_dw.c: Trim ATU windows bigger than 4GB
ClosedPublic

Authored by kd on Apr 7 2021, 11:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 4:57 PM
Unknown Object (File)
Sat, Apr 27, 4:22 PM
Unknown Object (File)
Sat, Apr 27, 4:07 PM
Unknown Object (File)
Sat, Apr 27, 3:22 PM
Unknown Object (File)
Sat, Apr 27, 3:03 PM
Unknown Object (File)
Fri, Apr 26, 10:58 AM
Unknown Object (File)
Sun, Apr 21, 8:40 PM
Unknown Object (File)
Sun, Apr 21, 8:38 PM
Subscribers

Details

Summary

The size of the ATU MEM/IO windows is implicitly casted to uint32_t.
Because of that some window sizes were silently demoted to 0 and ignored.
Check the size if its too large, trim it to 4GB and print a warning message.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable