Date: Thu, 2 Sep 2010 00:44:05 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212124 - head/sys/dev/sis Message-ID: <201009020044.o820i53s086573@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009020044.o820i53s086573>