From: Jiri Slaby Date: Mon, 28 Feb 2011 09:37:02 +0000 (-0300) Subject: [media] V4L: videobuf, don't use dma addr as physical X-Git-Tag: v2.6.39-rc1~86^2~86 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35d9f510b67b10338161aba6229d4f55b4000f5b;p=pandora-kernel.git [media] V4L: videobuf, don't use dma addr as physical mem->dma_handle is a dma address obtained by dma_alloc_coherent which needn't be a physical address in presence of IOMMU, as a hardware IOMMU can (and most likely) will return a bus address where physical != bus address. 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. While at it, use PFN_DOWN instead of explicit shift. [mchehab@redhat.com: Fix compilation breakage due to the lack of a comma] Signed-off-by: Jiri Slaby Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed