Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Perform object clflushing asynchronously

2017-02-21 Thread Joonas Lahtinen
On ma, 2017-02-20 at 20:59 +, Chris Wilson wrote: > Flushing the cachelines for an object is slow, can be as much as 100ms > for a large framebuffer. We currently do this under the struct_mutex BKL > on execution or on pageflip. But now with the ability to add fences to > obj->resv for both fli

[Intel-gfx] [PATCH v2 2/2] drm/i915: Perform object clflushing asynchronously

2017-02-20 Thread Chris Wilson
Flushing the cachelines for an object is slow, can be as much as 100ms for a large framebuffer. We currently do this under the struct_mutex BKL on execution or on pageflip. But now with the ability to add fences to obj->resv for both flips and execbuf (and we naturally wait on the fence before CPU