svn commit: r355110 - stable/12/sys/dev/ntb/ntb_hw
Alexander Motin
mav at FreeBSD.org
Tue Nov 26 15:21:02 UTC 2019
Author: mav
Date: Tue Nov 26 15:21:01 2019
New Revision: 355110
URL: https://svnweb.freebsd.org/changeset/base/355110
Log:
MFC r354840: Call bus_dma_dmar_set_buswide(9) added in r354830.
PLX NTB sends translated DMA requests not only from itsels, but from all
slots and functions of its bus. By default DMAR blocks those additional.
Modified:
stable/12/sys/dev/ntb/ntb_hw/ntb_hw_plx.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/ntb/ntb_hw/ntb_hw_plx.c
==============================================================================
--- stable/12/sys/dev/ntb/ntb_hw/ntb_hw_plx.c Tue Nov 26 14:25:50 2019 (r355109)
+++ stable/12/sys/dev/ntb/ntb_hw/ntb_hw_plx.c Tue Nov 26 15:21:01 2019 (r355110)
@@ -339,6 +339,12 @@ ntb_plx_attach(device_t dev)
return (ENXIO);
}
+ /*
+ * The device occupies whole bus. In translated TLP slot field
+ * keeps LUT index (original bus/slot), function is passed through.
+ */
+ bus_dma_dmar_set_buswide(dev);
+
/* Identify chip port we are connected to. */
val = bus_read_4(sc->conf_res, 0x360);
sc->port = (val >> ((sc->ntx == 0) ? 8 : 16)) & 0x1f;
More information about the svn-src-stable-12
mailing list