This is a discussion on Re: please test: bus_dma fix for bnx(4) within the mailing.openbsd.tech forums, part of the OpenBSD category; --> When is this going in? On Thu, Dec 21, 2006 at 07:44:43AM -0600, Marco Peereboom wrote: > ok marco@ ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| When is this going in? On Thu, Dec 21, 2006 at 07:44:43AM -0600, Marco Peereboom wrote: > ok marco@ > > On Thu, Dec 21, 2006 at 12:02:45PM +0100, Reyk Floeter wrote: > > hi, > > > > please test the following diff if you're using the bnx(4) gigabit > > ethernet driver. it fixes a bug in the bus dma setup and may fix some > > known issues we have seen before. > > > > send your feedback to brad@ and me. > > > > reyk > > > > Index: if_bnx.c > > ================================================== ================= > > RCS file: /cvs/src/sys/dev/pci/if_bnx.c,v > > retrieving revision 1.36 > > diff -u -p -r1.36 if_bnx.c > > --- if_bnx.c 26 Nov 2006 15:12:24 -0000 1.36 > > +++ if_bnx.c 18 Dec 2006 01:05:22 -0000 > > @@ -2262,7 +2262,7 @@ bnx_dma_alloc(struct bnx_softc *sc) > > } > > > > if (bus_dmamap_load(sc->bnx_dmatag, sc->tx_bd_chain_map[i], > > - (caddr_t)sc->tx_bd_chain[i], BNX_STATS_BLK_SZ, NULL, > > + (caddr_t)sc->tx_bd_chain[i], BNX_TX_CHAIN_PAGE_SZ, NULL, > > BUS_DMA_NOWAIT)) { > > printf(": Could not load TX desc %d DMA memory!\n", i); > > rc = ENOMEM; > > @@ -2323,7 +2323,7 @@ bnx_dma_alloc(struct bnx_softc *sc) > > } > > > > if (bus_dmamap_load(sc->bnx_dmatag, sc->rx_bd_chain_map[i], > > - (caddr_t)sc->rx_bd_chain[i], BNX_STATS_BLK_SZ, NULL, > > + (caddr_t)sc->rx_bd_chain[i], BNX_RX_CHAIN_PAGE_SZ, NULL, > > BUS_DMA_NOWAIT)) { > > printf(": Could not load Rx desc %d DMA memory!\n", i); > > rc = ENOMEM; |
| Thread Tools | |
| Display Modes | |
|
|