]> 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)
committerMarcin Wojtas <mw@FreeBSD.org>
Thu, 14 Oct 2021 16:09:44 +0000 (18:09 +0200)
commit8f2e39b9d3ecbd9653f859d9261745059f2b9071
treecc959141ae01e3cc23992edd2b128d12691afda6
parentcdc3dfd02544117b3fc13c629cf7a8a70769687b
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)
sys/dev/pci/pci_dw.c