diff options
author | Laurent Pinchart <[email protected]> | 2014-03-02 20:09:48 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-04-04 10:13:32 +1000 |
commit | b65e64f7ccd40762fbd26b24414966d0437e7591 (patch) | |
tree | 2f1dee6ada64ee6f592dd65b51b651f61fd38532 /lib/clz_tab.c | |
parent | 145bccd2397b53f2163c37e73413d80bfcbb8e35 (diff) |
drm/cma: Use dma_mmap_writecombine() to mmap buffer
The GEM CMA helpers uses a custom mmap implementation based on
remap_pfn_range(). While this works when the buffer DMA and physical
addresses are identical, it fails to take IOMMU into account and tries
to mmap the buffer to userspace using the DMA virtual address instead of
the physical address. This results in mapping random physical pages when
the device is behind an IOMMU.
Use the DMA mapping dma_mmap_writecombine() function instead.
Signed-off-by: Laurent Pinchart <[email protected]>
Tested-by: Philipp Zabel <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions