drm/i915/perf: Allow dynamic reconfiguration of the OA stream
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Oct 2019 20:14:03 +0000 (21:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Oct 2019 20:30:27 +0000 (21:30 +0100)
commit7831e9a965ea2ca91855995d62197bc8078bb762
tree7f7091caf7ca0035f78b23ec40e065b7308a96b7
parent4f6ccc74a85cbb4cdd373c374dc76398dc7603a1
drm/i915/perf: Allow dynamic reconfiguration of the OA stream

Introduce a new perf_ioctl command to change the OA configuration of the
active stream. This allows the OA stream to be reconfigured between
batch buffers, giving greater flexibility in sampling. We inject a
request into the OA context to reconfigure the stream asynchronously on
the GPU in between and ordered with execbuffer calls.

Original patch for dynamic reconfiguration by Lionel Landwerlin.

Link: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/932
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191014201404.22468-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_perf.c
include/uapi/drm/i915_drm.h