mbox series

[0/4] drm/i915/perf: Add OA buffer size uAPI parameter

Message ID 20181010165533.23345-1-lionel.g.landwerlin@intel.com (mailing list archive)
Headers show
Series drm/i915/perf: Add OA buffer size uAPI parameter | expand

Message

Lionel Landwerlin Oct. 10, 2018, 4:55 p.m. UTC
Hi all,

This series cleans up a couple of things (Matthew actually reviewed a
couple patches internally) and adds support for a new opening
parameter for the i915 perf stream, allowing the user to specify the
size of the global OA buffer it wants to use.

Initially I wrote a first series that was trying to guess what the
user wanted and selected the smallest buffer size, but in the end an
actual size parameter is better, giving userspace more flexibility and
removing guesses from i915.

Cheers,

Lionel Landwerlin (4):
  drm/i915/perf: remove redundant oa buffer initialization
  drm/i915/perf: pass stream to vfuncs when possible
  drm/i915/perf: do not warn when OA buffer is already allocated
  drm/i915/perf: add a parameter to control the size of OA buffer

 drivers/gpu/drm/i915/i915_drv.h  |  26 +----
 drivers/gpu/drm/i915/i915_perf.c | 168 +++++++++++++++++++++----------
 drivers/gpu/drm/i915/i915_reg.h  |   2 +
 include/uapi/drm/i915_drm.h      |   8 ++
 4 files changed, 129 insertions(+), 75 deletions(-)

--
2.19.1