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,
Make all the internal necessary changes before we flip the switch.
v2: Use an unlimited number of intel contexts (Chris)
Signed-off-by: Lionel Landwerlin
---
drivers/gpu/drm/i915/i915_perf.c | 584 +++--
drivers/gpu/drm/i915/i915_perf_types.h | 23 +-
2 files