From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: swiotlb-xen question Date: Wed, 26 Mar 2014 10:46:57 -0400 Message-ID: <20140326144657.GC18387@phenom.dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSp6i-0004zC-Hx for xen-devel@lists.xenproject.org; Wed, 26 Mar 2014 14:47:09 +0000 Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Oleksandr Dmytryshyn Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Wed, Mar 26, 2014 at 12:35:12PM +0200, Oleksandr Dmytryshyn wrote: > Hi to all. > > Currently I'm using hypervisor on ARM Cortex A15 processor (DRA7xx > Jacinto 6 processor). I'm using mainline xen 4.4 with some patches on > top plus dom0 and domU linux kernel 3.8. > > I've written a hack to make a camera working on my board in dom0 > (drivers for camera and display system are in dom0). An user-space > application in dom0 is used to test camera (it reads camera captured > data and sends it to the framebuffer). In the kernel code I've implemented > .mmap callback function in the swiotlb-xen.c file (like xen_swiotlb_mmap()) > and copied to this new callback all content from the original function > 'arm_dma_mmap()' from the kernel. This function creates userspace > mapping for the DMA-coherent memory. With this hack camera is working > (I can see captured video on display). Why can't you use the v4l API? Won't that work? > > For now I have little understanding how swiotlb-xen is working. Currently in the > mainline linux kernel this callback is not implemented. > > Here is my question. > Does anyone know are there any plans to implement > this callback for swiotlb-xen (in linux kernel) in the right way? > > Oleksandr Dmytryshyn | Product Engineering and Development > GlobalLogic > P x3657 M +38.067.382.2525 > www.globallogic.com > > http://www.globallogic.com/email_disclaimer.txt > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel