Re: [UBI UBIFS] replace vmalloc with kmalloc

From: JiSheng Zhang
Date: Fri Aug 07 2009 - 11:20:32 EST


Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote:
>
> vmalloc allows large (> 128KiB) buffers, but kmalloc doesn't.
> So we presently have no choice but to use vmalloc.

But vmalloced buffer can't be easily passed to DMA, is there better choice?

>
> I do not know what hardware you have or exactly what driver you
> are using, but we have UBIFS on OneNAND using DMA.

An arm soc board, the controller driver hasn't been merged upstream.
> See drivers/mtd/onenand/omap2.c
>

One limit of the omap2.c is that the buffer passed to DMA can't be larger than
PAGESIZE?

Jisheng

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