svn commit: r212124 - head/sys/dev/sis

Pyun YongHyeon yongari at FreeBSD.org
Thu Sep 2 00:44:05 UTC 2010


Author: yongari
Date: Thu Sep  2 00:44:05 2010
New Revision: 212124
URL: http://svn.freebsd.org/changeset/base/212124

Log:
  Fix stupid error in r212109 which didn't swap DMA maps. This caused
  IOMMU panic on sparc64 under high TX load.

Modified:
  head/sys/dev/sis/if_sis.c

Modified: head/sys/dev/sis/if_sis.c
==============================================================================
--- head/sys/dev/sis/if_sis.c	Wed Sep  1 23:51:07 2010	(r212123)
+++ head/sys/dev/sis/if_sis.c	Thu Sep  2 00:44:05 2010	(r212124)
@@ -1883,8 +1883,8 @@ sis_encap(struct sis_softc *sc, struct m
 
 	/* Swap the last and the first dmamaps. */
 	map = txd->tx_dmamap;
-	txd->tx_dmamap = sc->sis_txdesc[frag].tx_dmamap;
-	sc->sis_txdesc[frag].tx_dmamap = map;
+	txd->tx_dmamap = sc->sis_txdesc[prod].tx_dmamap;
+	sc->sis_txdesc[prod].tx_dmamap = map;
 	txd->tx_m = *m_head;
 
 	return (0);


More information about the svn-src-all mailing list