[Intel-gfx] [PATCH 3/3] drm/i915/perf: enable OAR context save/restore of performance counters
Chris Wilson
chris.p.wilson at intel.com
Mon Oct 14 19:58:40 UTC 2019
Quoting Umesh Nerlige Ramappa (2019-10-14 19:55:31)
> @@ -2313,6 +2377,17 @@ static int lrc_configure_all_contexts(struct i915_perf_stream *stream,
> return err;
> }
>
> + /*
> + * For Gen12, performance counters are context
> + * saved/restored. Only enable it for the context that
> + * requested this.
> + */
> + if (ctx == stream->ctx && IS_GEN(i915, 12)) {
> + err = gen12_configure_context_oar(ctx, oa_config != NULL);
regs[CTX_CONTEXT_CONTROL] |= intel_lrc_make_ctx_control(engine);
can be modified with a plain LRI (at least I have successfully modified
INHIBIT_SYN_CTX before). Have you tried just emitting an LRI in the pinned
context?
-Chris
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
More information about the Intel-gfx
mailing list