Subject: Re: bus dma in interrupt context
To: Lennart Augustsson <augustss@cs.chalmers.se>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 07/23/1998 10:49:48
On Thu, 23 Jul 1998 17:26:29 +0200 (MET DST)
Lennart Augustsson <augustss@cs.chalmers.se> wrote:
> Are the bus_dma functions supposed to be safe to call in an
> interrupt context?
>
> I'm freeing some memory in an interrupt routine and I keep
> getting panics.
Err... they should be, yes... but if you're loading a DMA map, or whatever,
you should protect that section w/ spl...(). If allocating memory, splimp().
If loading a DMA map, w/ spl<whatever_you_device_interrupts_at>().
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-5 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 650 940 5942