Date: Fri, 10 Mar 2006 00:43:39 GMT From: Olivier Houchard <cognet@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93084 for review Message-ID: <200603100043.k2A0hdPR041754@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93084 Change 93084 by cognet@cognet on 2006/03/10 00:42:46 Try to get non-cached memory for rx descriptors. Affected files ... .. //depot/projects/arm/src/sys/arm/at91/if_ate.c#37 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/if_ate.c#37 (text+ko) ==== @@ -341,8 +341,8 @@ &sc->sc_mtx, &sc->rx_desc_tag); if (err != 0) goto errout; - if (bus_dmamem_alloc(sc->rx_desc_tag, (void **)&sc->rx_descs, M_WAITOK, - &sc->rx_desc_map) != 0) + if (bus_dmamem_alloc(sc->rx_desc_tag, (void **)&sc->rx_descs, + BUS_DMA_NOWAIT | BUS_DMA_COHERENT, &sc->rx_desc_map) != 0) goto errout; if (bus_dmamap_load(sc->rx_desc_tag, sc->rx_desc_map, sc->rx_descs, ATE_MAX_RX_BUFFERS * sizeof(eth_rx_desc_t), @@ -801,7 +801,7 @@ if (bus_dmamap_load_mbuf_sg(sc->mtag, sc->tx_map[sc->txcur], m, segs, &nseg, 0) != 0) { - m_free(m); + m_freem(m); goto outloop; } bus_dmamap_sync(sc->mtag, sc->tx_map[sc->txcur], BUS_DMASYNC_PREWRITE);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603100043.k2A0hdPR041754>