Hi
Yeah, Dma buffer must be allocated by kmalloc,
But the modules I list should can all be changed to use vmalloc, because the buffer is only used by software, Not by any hardware .
Thanks
-----Original Message----- From: Huang Shijie [mailto:b32955@freescale.com] Sent: Friday, February 28, 2014 4:55 PM To: Wang, Yalin Cc: 'linux-kernel@vger.kernel.org'; 'linux-arm-msm@vger.kernel.org'; 'linux-arm-kernel@lists.infradead.org'; 'linux-input@vger.kernel.org'; 'balbi@ti.com'; 'gregkh@linuxfoundation.org'; 'lrg@ti.com'; 'broonie@opensource.wolfsonmicro.com'; 'perex@perex.cz'; 'tiwai@suse.de'; 'pablo@netfilter.org'; 'kaber@trash.net'; 'davem@davemloft.net'; 'rostedt@goodmis.org'; 'fweisbec@gmail.com'; 'mingo@redhat.com'; 'dmitry.torokhov@gmail.com'; 'rydberg@euromail.se'; 'linux-usb@vger.kernel.org'; 'alsa-devel@alsa-project.org'; 'netfilter-devel@vger.kernel.org'; 'netfilter@vger.kernel.org'; 'coreteam@netfilter.org'; 'netdev@vger.kernel.org' Subject: Re: change kmalloc into vmalloc for large memory allocations
于 2014年02月28日 16:15, Wang, Yalin 写道:
could this module change the memory allocation into vmalloc ?
the buffer allocated by vmalloc can not be used for the DMA.
I think that's why drivers use the kmalloc.
thanks Huang Shijie