lkml.org 
[lkml]   [2013]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] x86: enable DMA CMA with swiotlb
From
2013/11/22 H. Peter Anvin <hpa@zytor.com>:
> On 11/21/2013 07:02 AM, Akinobu Mita wrote:
>>
>> I want to use DMA CMA for the feature that requires a single huge chunk
>> (about 64MB) of host memory.
>
> That is tautological. "I want to use the Contiguous Memory Allocator to
> allocate contiguous memory."
>
>> Please refer 3 of 24 in:
>> http://www.jedec.org/sites/default/files/T_Fujisawa_MF_2013.pdf
>
> But yes, it makes sense that a device using host memory would not be
> able to leverage swiotlb, because the software simply has no clue what
> the DMA transactions are. In that sense it is fundamentally different
> from a real IOTLB.

I'm currently working for integrating DMA CMA with intel-iommu which
I can test. Regardless of which dma ops is actually used, I would
like to allocate large contiguous memory with dma_alloc_coherent()
and tell the base address to the device.

We can use mem= or crashkernel= to reserve host memory, but it is
complicated and unables to work with real IOMMU.


\
 
 \ /
  Last update: 2013-11-22 13:41    [W:0.060 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site