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
mwCommitted on Oct 14 2021, 4:09 PM
Reviewer
mw
Differential Revision
D29625: pci_dw.c: Trim ATU windows bigger than 4GB
Parents
rGcdc3dfd02544: ntp.conf.5: Fix typos
Branches
Unknown
Tags
Unknown