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, Oct 13, 5:53 PM
Unknown Object (File)
Mon, Oct 13, 5:53 PM
Unknown Object (File)
Mon, Oct 13, 5:53 PM
Unknown Object (File)
Mon, Oct 13, 5:53 PM
Unknown Object (File)
Mon, Oct 13, 4:31 AM
Unknown Object (File)
Thu, Oct 9, 1:46 AM
Unknown Object (File)
Sep 9 2025, 4:01 PM
Unknown Object (File)
Sep 2 2025, 1:12 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