[Intel-gfx] [PATCH 0/9] i915: Cannonlake perf support

Lionel Landwerlin lionel.g.landwerlin at intel.com
Fri Oct 27 16:03:20 UTC 2017


Hi all,

Here is a series to enable perf support on Cannonlake. It requires
exposing some more information to userspace, for a couple of reasons :

   1) Cannonlake introduces asymetric slices (i.e. not the same number
      of subslices for each slice)

   2) Depending on the parts, the frequency of the command stream
      might be different (this is something we rely on for queries in
      GL & Vulkan, as well as for parsing OA reports), it used to be
      fixed enough in previous generation, that we could just hardcode
      it in the device infos.

There are also a few cleanups after going through the whitelisted
registers.

Cheers,

Lionel Landwerlin (9):
  drm/i915/perf: complete whitelisting for OA programming on HSW
  drm/i915/perf: add support for Coffeelake GT3
  drm/i915/perf: refactor perf setup
  drm/i915: fix register naming
  drm/i915/perf: enable perf support on CNL
  drm/i915: expose command stream timestamp frequency to userspace
  drm/i915: expose eu topology to userspace
  drm/i915/debugfs: reuse max slice/subslices already stored in sseu
  drm/i915/perf: reuse timestamp frequency from device info

 drivers/gpu/drm/i915/Makefile            |   4 +-
 drivers/gpu/drm/i915/i915_debugfs.c      |  52 +++---
 drivers/gpu/drm/i915/i915_drv.c          |  58 ++++++-
 drivers/gpu/drm/i915/i915_drv.h          |  28 +++-
 drivers/gpu/drm/i915/i915_oa_cflgt3.c    | 109 +++++++++++++
 drivers/gpu/drm/i915/i915_oa_cflgt3.h    |  34 ++++
 drivers/gpu/drm/i915/i915_oa_cnl.c       | 121 ++++++++++++++
 drivers/gpu/drm/i915/i915_oa_cnl.h       |  34 ++++
 drivers/gpu/drm/i915/i915_perf.c         | 105 +++++++-----
 drivers/gpu/drm/i915/i915_reg.h          |  42 ++++-
 drivers/gpu/drm/i915/intel_device_info.c | 270 +++++++++++++++++++++++++------
 drivers/gpu/drm/i915/intel_lrc.c         |   2 +-
 drivers/gpu/drm/i915/intel_ringbuffer.h  |   2 +-
 include/uapi/drm/i915_drm.h              |  65 ++++++++
 14 files changed, 800 insertions(+), 126 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/i915_oa_cflgt3.c
 create mode 100644 drivers/gpu/drm/i915/i915_oa_cflgt3.h
 create mode 100644 drivers/gpu/drm/i915/i915_oa_cnl.c
 create mode 100644 drivers/gpu/drm/i915/i915_oa_cnl.h

--
2.15.0.rc2


More information about the Intel-gfx mailing list