[PATCH 1/1] V4L: videobuf, don't use dma addr as physical

2010-12-06 Thread Jiri Slaby
mem-dma_handle is a dma address obtained by dma_alloc_coherent which needn't be a physical address in presence of IOMMU. So ensure we are remapping (remap_pfn_range) the right page in __videobuf_mmap_mapper by using virt_to_phys(mem-vaddr) and not mem-dma_handle. Signed-off-by: Jiri Slaby

Re: [PATCH 1/1] V4L: videobuf, don't use dma addr as physical

2010-12-06 Thread Konrad Rzeszutek Wilk
On Mon, Dec 06, 2010 at 02:30:52PM +0100, Jiri Slaby wrote: mem-dma_handle is a dma address obtained by dma_alloc_coherent which needn't be a physical address in presence of IOMMU. So ensure we are Could you use PFN_DOWN(virt_to_phys(mem-vaddr)? remapping (remap_pfn_range) the right page in