Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-12-01 Thread Chris Wilson
Quoting Chris Wilson (2020-12-01 09:33:20) > Quoting Tvrtko Ursulin (2020-12-01 09:26:05) > > Now second copy comes and calls emit_pte which again writes to [0, > > CHUNK_SZ) virtual range. How does that end up in the PTE backing store > > and not previous object backing store? > > It all boils

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-12-01 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-12-01 09:26:05) > > On 30/11/2020 16:44, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2020-11-30 16:26:44) > >> > >> On 30/11/2020 16:21, Chris Wilson wrote: > >>> Quoting Tvrtko Ursulin (2020-11-30 16:07:44) > > On 30/11/2020 13:39, Chris Wilson wrote: >

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-12-01 Thread Tvrtko Ursulin
On 30/11/2020 16:44, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-11-30 16:26:44) On 30/11/2020 16:21, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-11-30 16:07:44) On 30/11/2020 13:39, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-11-30 13:12:55) On 28/11/2020 18:40, Chris Wils

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-30 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-11-30 16:26:44) > > On 30/11/2020 16:21, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2020-11-30 16:07:44) > >> > >> On 30/11/2020 13:39, Chris Wilson wrote: > >>> Quoting Tvrtko Ursulin (2020-11-30 13:12:55) > On 28/11/2020 18:40, Chris Wilson wrote: > > I

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-30 Thread Tvrtko Ursulin
On 30/11/2020 16:21, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-11-30 16:07:44) On 30/11/2020 13:39, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-11-30 13:12:55) On 28/11/2020 18:40, Chris Wilson wrote: If we pipeline the PTE updates and then do the copy of those pages within a si

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-30 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-11-30 16:07:44) > > On 30/11/2020 13:39, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2020-11-30 13:12:55) > >> On 28/11/2020 18:40, Chris Wilson wrote: > >>> If we pipeline the PTE updates and then do the copy of those pages > >>> within a single unpreemptible comm

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-30 Thread Tvrtko Ursulin
On 30/11/2020 13:39, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-11-30 13:12:55) On 28/11/2020 18:40, Chris Wilson wrote: If we pipeline the PTE updates and then do the copy of those pages within a single unpreemptible command packet, we can submit the copies and leave them to be schedule

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-30 Thread Chris Wilson
Quoting Chris Wilson (2020-11-30 13:39:54) > Quoting Tvrtko Ursulin (2020-11-30 13:12:55) > > > > On 28/11/2020 18:40, Chris Wilson wrote: > > > +struct i915_request * > > > +intel_context_migrate_pages(struct intel_context *ce, > > > + struct scatterlist *src, > > > +

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-30 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-11-30 13:12:55) > > On 28/11/2020 18:40, Chris Wilson wrote: > > If we pipeline the PTE updates and then do the copy of those pages > > within a single unpreemptible command packet, we can submit the copies > > and leave them to be scheduled without having to synchrono

Re: [Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-30 Thread Tvrtko Ursulin
On 28/11/2020 18:40, Chris Wilson wrote: If we pipeline the PTE updates and then do the copy of those pages within a single unpreemptible command packet, we can submit the copies and leave them to be scheduled without having to synchronously wait under a global lock. Signed-off-by: Chris Wilson

[Intel-gfx] [RFC 4/4] drm/i915/gt: Pipelined page migration

2020-11-28 Thread Chris Wilson
If we pipeline the PTE updates and then do the copy of those pages within a single unpreemptible command packet, we can submit the copies and leave them to be scheduled without having to synchronously wait under a global lock. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/Makefile