From owner-svn-src-head@FreeBSD.ORG Fri Mar 11 22:23:47 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04404106566B; Fri, 11 Mar 2011 22:23:47 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E6E738FC0A; Fri, 11 Mar 2011 22:23:46 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p2BMNkBo095795; Fri, 11 Mar 2011 22:23:46 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p2BMNkST095793; Fri, 11 Mar 2011 22:23:46 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201103112223.p2BMNkST095793@svn.freebsd.org> From: Marius Strobl Date: Fri, 11 Mar 2011 22:23:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r219545 - head/sys/dev/stge X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2011 22:23:47 -0000 Author: marius Date: Fri Mar 11 22:23:46 2011 New Revision: 219545 URL: http://svn.freebsd.org/changeset/base/219545 Log: Allocate the DMA memory shared between the host and the controller as coherent. MFC after: 2 weeks Modified: head/sys/dev/stge/if_stge.c Modified: head/sys/dev/stge/if_stge.c ============================================================================== --- head/sys/dev/stge/if_stge.c Fri Mar 11 22:21:12 2011 (r219544) +++ head/sys/dev/stge/if_stge.c Fri Mar 11 22:23:46 2011 (r219545) @@ -960,8 +960,8 @@ stge_dma_alloc(struct stge_softc *sc) /* allocate DMA'able memory and load the DMA map for Tx ring. */ error = bus_dmamem_alloc(sc->sc_cdata.stge_tx_ring_tag, - (void **)&sc->sc_rdata.stge_tx_ring, BUS_DMA_NOWAIT | BUS_DMA_ZERO, - &sc->sc_cdata.stge_tx_ring_map); + (void **)&sc->sc_rdata.stge_tx_ring, BUS_DMA_NOWAIT | + BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->sc_cdata.stge_tx_ring_map); if (error != 0) { device_printf(sc->sc_dev, "failed to allocate DMA'able memory for Tx ring\n"); @@ -981,8 +981,8 @@ stge_dma_alloc(struct stge_softc *sc) /* allocate DMA'able memory and load the DMA map for Rx ring. */ error = bus_dmamem_alloc(sc->sc_cdata.stge_rx_ring_tag, - (void **)&sc->sc_rdata.stge_rx_ring, BUS_DMA_NOWAIT | BUS_DMA_ZERO, - &sc->sc_cdata.stge_rx_ring_map); + (void **)&sc->sc_rdata.stge_rx_ring, BUS_DMA_NOWAIT | + BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->sc_cdata.stge_rx_ring_map); if (error != 0) { device_printf(sc->sc_dev, "failed to allocate DMA'able memory for Rx ring\n");