Re: [Intel-gfx] [PATCH] drm/i915: Reduce context HW ID lifetime

2018-09-04 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-09-03 10:59:01) > > On 31/08/2018 13:36, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2018-08-30 17:23:43) > >> > >> On 30/08/2018 11:24, Chris Wilson wrote: > >>> +static int assign_hw_id(struct drm_i915_private *i915, unsigned int *out) > >>> +{ > >>> + int re

Re: [Intel-gfx] [PATCH] drm/i915: Reduce context HW ID lifetime

2018-09-03 Thread Tvrtko Ursulin
On 31/08/2018 13:36, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-08-30 17:23:43) On 30/08/2018 11:24, Chris Wilson wrote: +static int steal_hw_id(struct drm_i915_private *i915) +{ + struct i915_gem_context *ctx, *cn; + LIST_HEAD(pinned); + int id = -ENOSPC; + + lockdep_as

Re: [Intel-gfx] [PATCH] drm/i915: Reduce context HW ID lifetime

2018-08-31 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-08-30 17:23:43) > > On 30/08/2018 11:24, Chris Wilson wrote: > > +static int steal_hw_id(struct drm_i915_private *i915) > > +{ > > + struct i915_gem_context *ctx, *cn; > > + LIST_HEAD(pinned); > > + int id = -ENOSPC; > > + > > + lockdep_assert_held(&i91

Re: [Intel-gfx] [PATCH] drm/i915: Reduce context HW ID lifetime

2018-08-30 Thread Tvrtko Ursulin
On 30/08/2018 11:24, Chris Wilson wrote: Future gen reduce the number of bits we will have available to differentiate between contexts, so reduce the lifetime of the ID assignment from that of the context to its current active cycle (i.e. only while it is pinned for use by the HW, will it have a

[Intel-gfx] [PATCH] drm/i915: Reduce context HW ID lifetime

2018-08-30 Thread Chris Wilson
Future gen reduce the number of bits we will have available to differentiate between contexts, so reduce the lifetime of the ID assignment from that of the context to its current active cycle (i.e. only while it is pinned for use by the HW, will it have a constant ID). This means that instead of a

[Intel-gfx] [PATCH] drm/i915: Reduce context HW ID lifetime

2018-06-02 Thread Chris Wilson
Future gen reduce the number of bits we will have available to differentiate between contexts, so reduce the lifetime of the ID assignment from that of the context to its current active cycle (i.e. only while it is pinned for use by the HW, will it have a constant ID). This means that instead of a