]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pci_dw: Trim ATU windows bigger than 4GB
authorWojciech Macek <wma@FreeBSD.org>
Fri, 9 Apr 2021 07:28:44 +0000 (09:28 +0200)
committerWojciech Macek <wma@FreeBSD.org>
Fri, 9 Apr 2021 07:37:59 +0000 (09:37 +0200)
commit243000b19f8b4ab104b584b2d16bc6aa9131c9b5
treedc42186c50cb41e3fd6fba147d32687d9aa42844
parent6dadf78f115cbdcb17dff8974a2044dd5129f7dc
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
sys/dev/pci/pci_dw.c