Re: [PATCH] x86: enable DMA CMA with swiotlb

From: H. Peter Anvin
Date: Thu Nov 21 2013 - 13:11:42 EST


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.

-hpa

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