spi/spi-pl022: Query on working of DMA mode

Linus Walleij linus.walleij at linaro.org
Wed Aug 3 10:58:53 EDT 2011


On Wed, Aug 3, 2011 at 1:32 PM, viresh kumar <viresh.kumar at st.com> wrote:

> tasklet_schedule(pump_transfers)
> pump_transfers(unsigned long data)
> configure_dma(pl022)
> sg_alloc_table(&pl022->sgt_rx, pages, GFP_KERNEL);
>
> Here, allocation is requested with GFP_KERNEL flag, from a tasklet.
> Which gives following crash logs:

What happens if you replace it with GFP_NOWAIT?

That should work for everybody.

Or you could remove the tasklet allover and replace it with a workqueue.

> Is DMA mode working in your case?

Yes, magically :-/

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list