Re: [PATCH v2 2/3] drm/i915/perf: prepare driver to receive multiple ctx handles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux