Re: [RFC][PATCH] SPI subsystem

From: Arjan van de Ven
Date: Mon Oct 03 2005 - 06:08:17 EST


On Mon, 2005-10-03 at 11:57 +0100, Mark Underwood wrote:

> > > > > Hmm, using local variables for messages, so DMA adapter drivers have
> > > > > to check if this is non-kmalloc'ed space (how?)
> > > >
> > > > They can't check that. It turns out that most current Linuxes
> > > > have no issues DMAing a few bytes from the stack.
> > >
> > > Will the DMA remapping calls work with data from the stack?
> >
> > On "most current Linuxes" yes. All I know about, in fact.
> > But it's not guaranteed.
>
> OK. Thanks

please NEVER EVER do dma from or to a stack variable. It's not allowed
on all architectures and it is really really bad practice in general
anyway.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/