]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited22e436371f3b632bf437a0a686ef73de0e381c
treee4185162685c07ad2b592cf7c6bcb882cfb660e4
parent4bad65ef9f5ee74967adc505e3a688ce08c0df78
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