Re: USB transfer_buffer allocations on 64bit systems

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Monday, April 12, 2010 - 10:22 am

On Mon, Apr 12, 2010 at 07:15:07PM +0200, Daniel Mack wrote:

If the area is not mapped correctly it will fail in other situations,
e.g. with an IOMMU active or in virtualized setups. So the bug
has to be eventually tracked down.


It does actually, but it only has 16MB to play with. Don't use it.
If anything use __get_free_pages(GFP_DMA32), but it's a x86-64 
specific code.


The right thing would be to define a proper interface for it.

I had an attempt for it a couple of years ago with the mask allocator, 
but it didn't make it into the tree.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: USB transfer_buffer allocations on 64bit systems, Alan Stern, (Mon Apr 12, 9:57 am)
Re: USB transfer_buffer allocations on 64bit systems, Daniel Mack, (Mon Apr 12, 10:15 am)
Re: USB transfer_buffer allocations on 64bit systems, Andi Kleen, (Mon Apr 12, 10:22 am)
Re: [LKML] Re: USB transfer_buffer allocations on 64bit sy ..., Konrad Rzeszutek Wilk, (Mon Apr 12, 10:52 am)
Re: USB transfer_buffer allocations on 64bit systems, Daniel Mack, (Mon Apr 12, 10:56 am)
Re: USB transfer_buffer allocations on 64bit systems, Daniel Mack, (Tue Apr 13, 11:22 am)
Re: USB transfer_buffer allocations on 64bit systems, Pedro Ribeiro, (Tue Apr 13, 4:46 pm)
Re: USB transfer_buffer allocations on 64bit systems, Daniel Mack, (Wed Apr 14, 3:09 am)
Re: USB transfer_buffer allocations on 64bit systems, Pedro Ribeiro, (Wed Apr 14, 3:47 am)
Re: USB transfer_buffer allocations on 64bit systems, Pedro Ribeiro, (Wed Apr 14, 4:02 am)
Re: [LKML] Re: USB transfer_buffer allocations on 64bit sy ..., Konrad Rzeszutek Wilk, (Wed Apr 14, 6:18 am)