[PATCH 2/6] drm/ttm: introduce dma cache sync helpers

2013-08-28 Thread Lucas Stach
On arches with non-coherent PCI, we need to flush caches ourselfes at the appropriate places. Introduce two small helpers to make things easy for TTM based drivers. Signed-off-by: Lucas Stach --- drivers/gpu/drm/ttm/ttm_tt.c| 25 + include/drm/ttm/ttm_bo_driver.h | 28

[PATCH 2/6] drm/ttm: introduce dma cache sync helpers

2013-08-27 Thread Lucas Stach
On arches with non-coherent PCI, we need to flush caches ourselfes at the appropriate places. Introduce two small helpers to make things easy for TTM based drivers. Signed-off-by: Lucas Stach --- drivers/gpu/drm/ttm/ttm_tt.c| 25 + include/drm/ttm/ttm_bo_driver.h | 28