Re: [RFC][PATCH] SPI subsystem

From: David Brownell
Date: Mon Oct 03 2005 - 10:15:36 EST


> From: Arjan van de Ven <arjan@xxxxxxxxxxxxx>
> Date: Mon, 03 Oct 2005 13:07:36 +0200
>
> 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.

Arjan, could you mention some Linuxes which don't allow it?

Every time the topic of DMA to/from stack comes up, the advice is
always to avoid it ... but so far as I recall, nobody's yet provided
us with an example where it actually doesn't work.

Failing such examples, it's normal to discount such dire warnings and
just plan to apply the relevant minor tweaks if/when they're needed.

- Dave


-
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/