Re: [Intel-gfx] [PATCH v10 3/4] drm/i915/perf: prepare driver to receive multiple ctx handles

2020-04-30 Thread Lionel Landwerlin
On 30/04/2020 17:55, Chris Wilson wrote: Quoting Lionel Landwerlin (2020-04-30 14:55:35) @@ -1382,6 +1446,12 @@ static void i915_oa_stream_destroy(struct i915_perf_stream *stream) BUG_ON(stream != perf->exclusive_stream); + err = intel_context_pin(stream->config_context);

Re: [Intel-gfx] [PATCH v10 3/4] drm/i915/perf: prepare driver to receive multiple ctx handles

2020-04-30 Thread Chris Wilson
Quoting Lionel Landwerlin (2020-04-30 14:55:35) > @@ -1382,6 +1446,12 @@ static void i915_oa_stream_destroy(struct > i915_perf_stream *stream) > > BUG_ON(stream != perf->exclusive_stream); > > + err = intel_context_pin(stream->config_context); > + if (err) { > +

[Intel-gfx] [PATCH v10 3/4] drm/i915/perf: prepare driver to receive multiple ctx handles

2020-04-30 Thread Lionel Landwerlin
Make all the internal necessary changes before we flip the switch. v2: Use an unlimited number of intel contexts (Chris) v3: Handle GEM context with multiple RCS0 logical contexts (Chris) v4: Let the intel_context create its own timeline (Chris) Only pin configuration context when needed