[PATCH 3/3] fbdev: sh_mobile_lcdc: use dma_mmap_coherent if available

2012-07-25 Thread Hideki EIRAKU
fb_mmap() implemented in fbmem.c uses smem_start as the physical address of the frame buffer. In the sh_mobile_lcdc driver, the smem_start is a dma_addr_t that is not a physical address when IOMMU is enabled. dma_mmap_coherent() maps the address correctly. It is available on ARM platforms.

Re: [PATCH 3/3] fbdev: sh_mobile_lcdc: use dma_mmap_coherent if available

2012-07-25 Thread Laurent Pinchart
Hi Eiraku-san, Thank you for the patch. On Wednesday 25 July 2012 15:29:24 Hideki EIRAKU wrote: fb_mmap() implemented in fbmem.c uses smem_start as the physical address of the frame buffer. In the sh_mobile_lcdc driver, the smem_start is a dma_addr_t that is not a physical address when IOMMU