]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2fad7fb2d8bf3dbc717776890f1ec28ccca9267
tree7f7091caf7ca0035f78b23ec40e065b7308a96b7
parent25f0279e6a2acb99e7fb66b81b431aa8636db248
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