svn commit: r342672 - head/sys/dev/rtwn/pci

Andriy Voskoboinyk avos at FreeBSD.org
Tue Jan 1 23:41:17 UTC 2019


Author: avos
Date: Tue Jan  1 23:41:16 2019
New Revision: 342672
URL: https://svnweb.freebsd.org/changeset/base/342672

Log:
  rtwn_pci: fix excessive packet loss on Tx with RTL8188EE.
  
  Use proper flags for bus_dmamap_sync() in Tx path.
  
  Tested with:	RTL8188EE, STA mode
  
  MFC after:	4 days

Modified:
  head/sys/dev/rtwn/pci/rtwn_pci_tx.c

Modified: head/sys/dev/rtwn/pci/rtwn_pci_tx.c
==============================================================================
--- head/sys/dev/rtwn/pci/rtwn_pci_tx.c	Tue Jan  1 20:12:58 2019	(r342671)
+++ head/sys/dev/rtwn/pci/rtwn_pci_tx.c	Tue Jan  1 23:41:16 2019	(r342672)
@@ -174,8 +174,8 @@ rtwn_pci_tx_start_frame(struct rtwn_softc *sc, struct 
 	rtwn_dump_tx_desc(sc, txd);
 
 	bus_dmamap_sync(ring->desc_dmat, ring->desc_map,
-	    BUS_DMASYNC_POSTWRITE);
-	bus_dmamap_sync(ring->data_dmat, data->map, BUS_DMASYNC_POSTWRITE);
+	    BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
+	bus_dmamap_sync(ring->data_dmat, data->map, BUS_DMASYNC_PREWRITE);
 
 	data->m = m;
 	data->ni = ni;


More information about the svn-src-head mailing list