Re: [Intel-gfx] [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-02-01 Thread Chris Wilson
On Wed, Feb 01, 2017 at 11:24:32AM +0100, Daniel Vetter wrote: > On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > > On a non-llc system, the objects are created with .cache_level = > > CACHE_NONE and so the transition to uncached for scanout is a no-op. > > However, if the object

Re: [Intel-gfx] [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-02-01 Thread Chris Wilson
On Wed, Feb 01, 2017 at 11:24:32AM +0100, Daniel Vetter wrote: > On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > > On a non-llc system, the objects are created with .cache_level = > > CACHE_NONE and so the transition to uncached for scanout is a no-op. > > However, if the object

Re: [Intel-gfx] [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-02-01 Thread Daniel Vetter
On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > On a non-llc system, the objects are created with .cache_level = > CACHE_NONE and so the transition to uncached for scanout is a no-op. > However, if the object was never written to, it will still be in the CPU > domain (having been

Re: [Intel-gfx] [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-02-01 Thread Daniel Vetter
On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > On a non-llc system, the objects are created with .cache_level = > CACHE_NONE and so the transition to uncached for scanout is a no-op. > However, if the object was never written to, it will still be in the CPU > domain (having been

Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread Chris Wilson
On Thu, Jan 12, 2017 at 04:24:50PM -0600, l...@pengaru.com wrote: > On Thu, Jan 12, 2017 at 09:17:06PM +, Chris Wilson wrote: > > On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > > > On a non-llc system, the objects are created with .cache_level = > > > CACHE_NONE and so the

Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread Chris Wilson
On Thu, Jan 12, 2017 at 04:24:50PM -0600, l...@pengaru.com wrote: > On Thu, Jan 12, 2017 at 09:17:06PM +, Chris Wilson wrote: > > On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > > > On a non-llc system, the objects are created with .cache_level = > > > CACHE_NONE and so the

Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread lkml
On Thu, Jan 12, 2017 at 09:17:06PM +, Chris Wilson wrote: > On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > > On a non-llc system, the objects are created with .cache_level = > > CACHE_NONE and so the transition to uncached for scanout is a no-op. > > However, if the object was

Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread lkml
On Thu, Jan 12, 2017 at 09:17:06PM +, Chris Wilson wrote: > On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > > On a non-llc system, the objects are created with .cache_level = > > CACHE_NONE and so the transition to uncached for scanout is a no-op. > > However, if the object was

Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread Chris Wilson
On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > On a non-llc system, the objects are created with .cache_level = > CACHE_NONE and so the transition to uncached for scanout is a no-op. > However, if the object was never written to, it will still be in the CPU > domain (having been

Re: [PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-12 Thread Chris Wilson
On Mon, Jan 09, 2017 at 11:19:32AM +, Chris Wilson wrote: > On a non-llc system, the objects are created with .cache_level = > CACHE_NONE and so the transition to uncached for scanout is a no-op. > However, if the object was never written to, it will still be in the CPU > domain (having been

[PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-09 Thread Chris Wilson
On a non-llc system, the objects are created with .cache_level = CACHE_NONE and so the transition to uncached for scanout is a no-op. However, if the object was never written to, it will still be in the CPU domain (having been zeroed out by shmemfs). Those cachelines need to be flushed prior to

[PATCH v2] drm/i915: Flush untouched framebuffers before display on !llc

2017-01-09 Thread Chris Wilson
On a non-llc system, the objects are created with .cache_level = CACHE_NONE and so the transition to uncached for scanout is a no-op. However, if the object was never written to, it will still be in the CPU domain (having been zeroed out by shmemfs). Those cachelines need to be flushed prior to