Unix Technical Forum

Re: please test: bus_dma fix for bnx(4)

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@ ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:04 AM
Marco Peereboom
 
Posts: n/a
Default Re: please test: bus_dma fix for bnx(4)

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;


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com