Subject: Re: Announce: DEC AlphaServer 8400 is coming
To: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
From: Jason Thorpe <thorpej@shagadelic.org>
List: port-alpha
Date: 07/27/2005 22:40:48
On Jul 27, 2005, at 10:11 PM, Michael L. Hitch wrote:

>   Aha - I see what happened, but not why yet.  The sgmap_load  
> checks the
> flags passed as an argument for BUS_DMA_READ being zero, an the
> sgmap_unload checks the flags in map->_dm_flags.  The problem  
> occurs when
> BUS_DMA_READ is cleared in the passed argument, but is set in
> map->_dm_flags.  I don't know why that is yet.

My guess would be stale flags in the DMA map.

Try adding a line:

     map->_dm_flags &= ~(BUS_DMA_READ|BUS_DMA_WRITE);

to the end of alpha/common/bus_dma.c:_bus_dmamap_unload()

(CVS server seems to not be responding, so no diff.)


-- thorpej