[Mesa-dev] [PATCH 0/3] anv/i965: account timestamp correctly on Gen10

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Dec 4 16:21:26 UTC 2017


Hi all,

We've had some timestamp related issues on Gen10. Those are mostly
related to the fact that the frequency of the timestamps is variable
depending on the part you get. There is no way to tell from the
PCI-id, you can only get that information by reading a couple of
registers.

We introduced a new parameter to query in the kernel to expose that
information. This seems like it's going to land in 4.16. Here are the
userspace patches making use of that new param.

Cheers,

Lionel Landwerlin (3):
  drm-uapi: Update drm/i915 headers from drm-next
  i965: read CS timestamp frequency from the kernel on Gen10+
  anv: query CS timestamp frequency from the kernel

 include/drm-uapi/README                  |  8 ++--
 include/drm-uapi/drm.h                   | 41 +++++++++++++++++++
 include/drm-uapi/drm_mode.h              | 70 +++++++++++++++++++++++++++++++-
 include/drm-uapi/i915_drm.h              | 38 +++++++++++++++++
 src/intel/vulkan/anv_device.c            | 13 ++++++
 src/mesa/drivers/dri/i965/intel_screen.c | 24 +++++++++++
 6 files changed, 188 insertions(+), 6 deletions(-)

--
2.15.1


More information about the mesa-dev mailing list