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