Re: [Intel-gfx] [PATCH v6 08/11] drm/i915: add a new perf configuration execbuf parameter

2019-07-01 Thread Lionel Landwerlin
On 01/07/2019 15:05, Chris Wilson wrote: Quoting Lionel Landwerlin (2019-07-01 12:34:34) +static int eb_oa_config(struct i915_execbuffer *eb) +{ + int err; + + if (!eb->oa_config) + return 0; + + err = i915_active_request_set(&eb->engine->last_oa_config, +

Re: [Intel-gfx] [PATCH v6 08/11] drm/i915: add a new perf configuration execbuf parameter

2019-07-01 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-07-01 12:34:34) > +static int eb_oa_config(struct i915_execbuffer *eb) > +{ > + int err; > + > + if (!eb->oa_config) > + return 0; > + > + err = i915_active_request_set(&eb->engine->last_oa_config, > +

[Intel-gfx] [PATCH v6 08/11] drm/i915: add a new perf configuration execbuf parameter

2019-07-01 Thread Lionel Landwerlin
We want the ability to dispatch a set of command buffer to the hardware, each with a different OA configuration. To achieve this, we reuse a couple of fields from the execbuf2 struct (I CAN HAZ execbuf3?) to notify what OA configuration should be used for a batch buffer. This requires the process m