drm/ttm: expose CPU address of DMA-allocated pages
authorAlexandre Courbot <acourbot@nvidia.com>
Mon, 4 Aug 2014 09:28:54 +0000 (18:28 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 15:08:03 +0000 (01:08 +1000)
commit3d50d4dcb0c4e0e01f45ae15df34ab6a04fb35bb
treee4185162685c07ad2b592cf7c6bcb882cfb660e4
parent7963e9db1b1f842fdc53309baa8714d38e9f5681
drm/ttm: expose CPU address of DMA-allocated pages

Pages allocated using the DMA API have a coherent memory mapping. Make
this mapping visible to drivers so they can decide to use it instead of
creating their own redundant one.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: David Airlie <airlied@linux.ie>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
drivers/gpu/drm/ttm/ttm_tt.c
include/drm/ttm/ttm_bo_driver.h