[Nouveau] [PATCH v4 4/6] drm/nouveau: synchronize BOs when required

2014-07-11 Thread Alexandre Courbot
On 07/11/2014 04:41 PM, Daniel Vetter wrote: > On Fri, Jul 11, 2014 at 11:40:27AM +0900, Alexandre Courbot wrote: >> On 07/10/2014 10:04 PM, Daniel Vetter wrote: >>> On Tue, Jul 08, 2014 at 05:25:59PM +0900, Alexandre Courbot wrote: On architectures for which access to GPU memory is non-cohere

[Nouveau] [PATCH v4 4/6] drm/nouveau: synchronize BOs when required

2014-07-11 Thread Alexandre Courbot
On 07/10/2014 10:04 PM, Daniel Vetter wrote: > On Tue, Jul 08, 2014 at 05:25:59PM +0900, Alexandre Courbot wrote: >> 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 pa

[Nouveau] [PATCH v4 4/6] drm/nouveau: synchronize BOs when required

2014-07-11 Thread Daniel Vetter
On Fri, Jul 11, 2014 at 11:40:27AM +0900, Alexandre Courbot wrote: > On 07/10/2014 10:04 PM, Daniel Vetter wrote: > >On Tue, Jul 08, 2014 at 05:25:59PM +0900, Alexandre Courbot wrote: > >>On architectures for which access to GPU memory is non-coherent, > >>caches need to be flushed and invalidated

[Nouveau] [PATCH v4 4/6] drm/nouveau: synchronize BOs when required

2014-07-10 Thread Daniel Vetter
On Tue, Jul 08, 2014 at 05:25:59PM +0900, Alexandre Courbot wrote: > 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 inv

[PATCH v4 4/6] drm/nouveau: synchronize BOs when required

2014-07-08 Thread Alexandre Courbot
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. Ba