HomeFreeBSD

pci_dw: Trim ATU windows bigger than 4GB

Description

pci_dw: Trim ATU windows bigger than 4GB

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.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: mw
Obtained from: Semihalf
Sponsored by: Marvell
Differential revision: https://reviews.freebsd.org/D29625

(cherry picked from commit 243000b19f8b4ab104b584b2d16bc6aa9131c9b5)

Details

Provenance
wmaAuthored on Apr 9 2021, 7:28 AM
jrtc27Committed on Sep 7 2021, 12:06 PM
Reviewer
mw
Differential Revision
D29625: pci_dw.c: Trim ATU windows bigger than 4GB
Parents
rG0e948ed6d668: pci_dw: fix outbound I/O window configuration
Branches
Unknown
Tags
Unknown