git: 0e948ed6d668 - stable/13 - pci_dw: fix outbound I/O window configuration
Jessica Clarke
jrtc27 at FreeBSD.org
Tue Sep 7 12:09:39 UTC 2021
The branch stable/13 has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=0e948ed6d668d6dba240c4605301f47150be00bb
commit 0e948ed6d668d6dba240c4605301f47150be00bb
Author: Marcin Wojtas <mw at FreeBSD.org>
AuthorDate: 2021-04-06 12:31:39 +0000
Commit: Jessica Clarke <jrtc27 at FreeBSD.org>
CommitDate: 2021-09-07 12:06:47 +0000
pci_dw: fix outbound I/O window configuration
Use viewport "2" instead of "0" and change window type from MEM to IO.
Without these changes the MEM ATU window can be overwritten with the IO one.
Submitted by: Kornel Duleba <mindal at semihalf.com>
Obtained from: Semihalf
Sponsored by: Marvell
Differential revision: https://reviews.freebsd.org/D29516
(cherry picked from commit 57dbb3c25936f0d61fef152eb224ca86a73af0e9)
---
sys/dev/pci/pci_dw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/pci/pci_dw.c b/sys/dev/pci/pci_dw.c
index 33c6c0b070c3..161a68d2929d 100644
--- a/sys/dev/pci/pci_dw.c
+++ b/sys/dev/pci/pci_dw.c
@@ -231,7 +231,7 @@ pci_dw_setup_hw(struct pci_dw_softc *sc)
/* If we have enouht viewports ..*/
if (sc->num_viewport >= 3 && sc->io_range.size != 0) {
/* Setup outbound I/O window */
- rv = pci_dw_map_out_atu(sc, 0, IATU_CTRL1_TYPE_MEM,
+ rv = pci_dw_map_out_atu(sc, 2, IATU_CTRL1_TYPE_IO,
sc->io_range.host, sc->io_range.pci, sc->io_range.size);
if (rv != 0)
return (rv);
More information about the dev-commits-src-all
mailing list