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, Sep 9, 12:06 AM
Unknown Object (File)
Sun, Sep 8, 4:19 PM
Unknown Object (File)
Sun, Sep 8, 6:04 AM
Unknown Object (File)
Wed, Sep 4, 9:23 PM
Unknown Object (File)
Wed, Sep 4, 2:57 AM
Unknown Object (File)
Aug 18 2024, 5:29 PM
Unknown Object (File)
Aug 16 2024, 9:22 AM
Unknown Object (File)
Jun 29 2024, 12:22 AM
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