[PATCH 0/2] drm: add monotonic timestamp support

Imre Deak imre.deak at intel.com
Tue Oct 23 11:53:24 PDT 2012


This is needed to make applications using wait-for-vblank/page-flip
timestamps independent of time ajdustments other than adjustments for
HW clock jitter.

I've tested these with an updated intel-gpu-test/flip_test and will send
the update for that once there's no objection about this patchset.

The patchset is based on the nightly branch of [1], with Rob Clark's
"drm: add drm_send_vblank_event() helper" patchset applied.

Changes since the RFC:
- use monotonic instead of raw monotonic time
- use a module global flag instead of a per-client flag to set the
  compatibility mode with GTOD timestamps
- rebased on top of Rob Clark's drm_send_vblank_event patchset

[1] git://people.freedesktop.org/~danvet/drm-intel

Imre Deak (2):
  drm: use monotonic time in drm_calc_vbltimestamp_from_scanoutpos
  drm: add support for monotonic vblank timestamps

 drivers/gpu/drm/drm_ioctl.c |    3 +++
 drivers/gpu/drm/drm_irq.c   |   39 ++++++++++++++++++++++++++++++---------
 drivers/gpu/drm/drm_stub.c  |    8 ++++++++
 include/drm/drmP.h          |    1 +
 include/uapi/drm/drm.h      |    1 +
 5 files changed, 43 insertions(+), 9 deletions(-)

-- 
1.7.9.5



More information about the dri-devel mailing list