Thread (8 messages) 8 messages, 3 authors, 2014-03-04

Re: change kmalloc into vmalloc for large memory allocations

From: "'gregkh@linuxfoundation.org'" <gregkh@linuxfoundation.org>
Date: 2014-02-28 16:33:04
Also in: alsa-devel, linux-arm-kernel, linux-arm-msm, linux-input, netfilter-devel

Possibly related (same subject, not in this thread)

On Fri, Feb 28, 2014 at 05:20:08PM +0800, Wang, Yalin wrote:
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 .
Are you sure about that?  The USB gadget driver needs DMA memory from
what I can tell, have you tried your change out on a system that does
not allow the USB controller to access non-DMA memory?

And I agree with Steve, just fix the individual drivers, don't do a
"hidden" change of where the memory is allocated from, that's not a good
idea and will cause problems later.

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help