]> 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)
commit73913f422b57cfebfd1204cec02c5463a5655d85
treee4185162685c07ad2b592cf7c6bcb882cfb660e4
parent472da29b0107deef69fac7474e03882435f6e9d4
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