From: Alexandre Courbot Date: Mon, 27 Oct 2014 09:49:17 +0000 (+0900) Subject: drm/nouveau: implement explicitly coherent BOs X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~15^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3a0c771e582a74a344fa9dd805662222f896181;p=pandora-kernel.git drm/nouveau: implement explicitly coherent BOs Allow nouveau_bo_new() to recognize the TTM_PL_FLAG_UNCACHED flag, which means that we want the allocated BO to be perfectly coherent between the CPU and GPU. This is useful on non-coherent architectures for which we do not want to manually sync some rarely-accessed buffers: typically, fences and pushbuffers. A TTM BO allocated with the TTM_PL_FLAG_UNCACHED on a non-coherent architecture will be populated using the DMA API, and accesses to it performed using the coherent mapping performed by dma_alloc_coherent(). Signed-off-by: Alexandre Courbot Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed