Re: [Intel-gfx] [PATCH 61/66] drm/i915: Use multiple VMs

2013-07-02 Thread Daniel Vetter
On Tue, Jul 02, 2013 at 12:38:33PM +0100, Chris Wilson wrote: > On Tue, Jul 02, 2013 at 02:34:59PM +0300, Ville Syrjälä wrote: > > On Tue, Jul 02, 2013 at 12:07:10PM +0100, Chris Wilson wrote: > > > On Tue, Jul 02, 2013 at 01:58:13PM +0300, Ville Syrjälä wrote: > > > > Also IIRC someone told me tha

Re: [Intel-gfx] [PATCH 61/66] drm/i915: Use multiple VMs

2013-07-02 Thread Ville Syrjälä
On Tue, Jul 02, 2013 at 12:07:10PM +0100, Chris Wilson wrote: > On Tue, Jul 02, 2013 at 01:58:13PM +0300, Ville Syrjälä wrote: > > Also IIRC someone told me that w/ uncached mappings the caches aren't > > snooped even on LLC platforms. If that's true, MOCS seems even more > > dangerous since the cl

Re: [Intel-gfx] [PATCH 61/66] drm/i915: Use multiple VMs

2013-07-02 Thread Chris Wilson
On Tue, Jul 02, 2013 at 02:34:59PM +0300, Ville Syrjälä wrote: > On Tue, Jul 02, 2013 at 12:07:10PM +0100, Chris Wilson wrote: > > On Tue, Jul 02, 2013 at 01:58:13PM +0300, Ville Syrjälä wrote: > > > Also IIRC someone told me that w/ uncached mappings the caches aren't > > > snooped even on LLC pla

Re: [Intel-gfx] [PATCH 61/66] drm/i915: Use multiple VMs

2013-07-02 Thread Chris Wilson
On Tue, Jul 02, 2013 at 01:58:13PM +0300, Ville Syrjälä wrote: > Also IIRC someone told me that w/ uncached mappings the caches aren't > snooped even on LLC platforms. If that's true, MOCS seems even more > dangerous since the client could easily mix cached and uncached > accesses. I don't really u

Re: [Intel-gfx] [PATCH 61/66] drm/i915: Use multiple VMs

2013-07-02 Thread Ville Syrjälä
On Thu, Jun 27, 2013 at 04:43:40PM -0700, Ben Widawsky wrote: > On Thu, Jun 27, 2013 at 04:31:02PM -0700, Ben Widawsky wrote: > > This requires doing an actual switch of the page tables during the > > context switch/execbuf. > > > > Along the way, cut away as much "aliasing" ppgtt as possible > >

Re: [Intel-gfx] [PATCH 61/66] drm/i915: Use multiple VMs

2013-06-27 Thread Ben Widawsky
On Thu, Jun 27, 2013 at 04:31:02PM -0700, Ben Widawsky wrote: > This requires doing an actual switch of the page tables during the > context switch/execbuf. > > Along the way, cut away as much "aliasing" ppgtt as possible > > Signed-off-by: Ben Widawsky > --- > drivers/gpu/drm/i915/i915_gem.c

[Intel-gfx] [PATCH 61/66] drm/i915: Use multiple VMs

2013-06-27 Thread Ben Widawsky
This requires doing an actual switch of the page tables during the context switch/execbuf. Along the way, cut away as much "aliasing" ppgtt as possible Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_gem.c| 22 +- drivers/gpu/drm/i915/i915_gem_context.c