lkml.org 
[lkml]   [2014]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Questions regarding DMA buffer sharing using IOMMU
Date
Hi,
Thanks for the reply.

----------------------------------------
> From: arnd@arndb.de
> To: linux-arm-kernel@lists.infradead.org
> CC: pintu.k@outlook.com; linux-mm@kvack.org; linux-kernel@vger.kernel.org; linaro-mm-sig@lists.linaro.org
> Subject: Re: Questions regarding DMA buffer sharing using IOMMU
> Date: Mon, 12 May 2014 14:00:57 +0200
>
> On Monday 12 May 2014 15:12:41 Pintu Kumar wrote:
>> Hi,
>> I have some queries regarding IOMMU and CMA buffer sharing.
>> We have an embedded linux device (kernel 3.10, RAM: 256Mb) in
>> which camera and codec supports IOMMU but the display does not support IOMMU.
>> Thus for camera capture we are using iommu buffers using
>> ION/DMABUF. But for all display rendering we are using CMA buffers.
>> So, the question is how to achieve buffer sharing (zero-copy)
>> between Camera and Display using only IOMMU?
>> Currently we are achieving zero-copy using CMA. And we are
>> exploring options to use IOMMU.
>> Now we wanted to know which option is better? To use IOMMU or CMA?
>> If anybody have come across these design please share your thoughts and results.
>
> There is a slight performance overhead in using the IOMMU in general,
> because the IOMMU has to fetch the page table entries from memory
> at least some of the time.

Ok, we need to check performance later

>
> If that overhead is within the constraints you have for transfers between
> camera and codec, you are always better off using IOMMU since that
> means you don't have to do memory migration.

Transfer between camera is codec is fine. But our major concern is single buffer 
sharing between camera & display. Here camera supports iommu but display does not support iommu.
Is it possible to render camera preview (iommu buffers) on display (not iommu and required physical contiguous overlay memory)?

Also is it possible to buffer sharing between 2 iommu supported devices?

>
> Note however, that we don't have a way to describe IOMMU relations
> to devices in DT, so whatever you come up with to do this will most
> likely be incompatible with what we do in future kernel versions.
>
> Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-05-12 17:01    [W:0.077 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site