[Intel-gfx] [PATCH v2 2/3] drm/i915/perf: prepare driver to receive multiple ctx handles
Chris Wilson
chris at chris-wilson.co.uk
Thu Apr 2 07:12:30 UTC 2020
Quoting Lionel Landwerlin (2020-03-31 12:48:20)
> -static struct intel_context *oa_context(struct i915_perf_stream *stream)
> -{
> - return stream->pinned_ctx ?: stream->engine->kernel_context;
Maybe better to use pinned_ctxs[0] if set?
There are certain risks* to using the kernel_context, so we should keep
its use minimised.
* Mostly the danger of hangs/corruption, inadvertent global barriers.
-Chris
More information about the Intel-gfx
mailing list