From: Alexandre Courbot Date: Mon, 27 Oct 2014 09:49:19 +0000 (+0900) Subject: drm/nouveau: synchronize BOs when required X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~15^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b22870ba6a5c7bd4380f224eeabf335b1f8792b3;p=pandora-kernel.git drm/nouveau: synchronize BOs when required On architectures for which access to GPU memory is non-coherent, caches need to be flushed and invalidated explicitly when BO control changes between CPU and GPU. This patch adds buffer synchronization functions which invokes the correct API (PCI or DMA) to ensure synchronization is effective. Based on the TTM DMA cache helper patches by Lucas Stach. Signed-off-by: Lucas Stach Signed-off-by: Alexandre Courbot Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed