Skip to content

RFC drm: add raw monotonic timestamp support

Imre Deak dri-devel intel-gfx linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4time: export getnstime_raw_and_real for DRMkernel/time/timekeeping.c+1 -12 replies
2/4drm: make memset/calloc for _vblank_time more robustdrivers/gpu/drm/drm_irq.c+2 -20 replies
3/4drm: use raw time in drm_calc_vbltimestamp_from_scanoutposdrivers/gpu/drm/drm_irq.c+7 -60 replies
4/4drm: add support for raw monotonic vblank timestampsdrivers/gpu/drm/drm_crtc.c drivers/gpu/drm/drm_ioctl.c drivers/gpu/drm/drm_irq.c +9 more+104 -539 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/4] drm: add raw monotonic timestamp support

This is needed to make applications depending on vblank/page flip timestamps independent of time ajdustments.

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 danvet's dinq branch with the following additional patches from the intel-gfx ML applied:
drm/i915: paper over a pipe-enable vs pageflip race drm/i915: don't frob the vblank ts in finish_page_flip drm/i915: call drm_handle_vblank before finish_page_flip

Imre Deak (4):
time: export getnstime_raw_and_real for DRM
drm: make memset/calloc for _vblank_time more robust
drm: use raw time in drm_calc_vbltimestamp_from_scanoutpos
drm: add support for raw monotonic vblank timestamps

 drivers/gpu/drm/drm_crtc.c                |    2 +
 drivers/gpu/drm/drm_ioctl.c               |    3 ++
 drivers/gpu/drm/drm_irq.c                 |   83 ++++++++++++++++-------------
 drivers/gpu/drm/i915/i915_irq.c           |    2 +-
 drivers/gpu/drm/i915/intel_display.c      |   12 ++---
 drivers/gpu/drm/radeon/radeon_display.c   |   10 ++--
 drivers/gpu/drm/radeon/radeon_drv.c       |    2 +-
 drivers/gpu/drm/radeon/radeon_kms.c       |    2 +-
 drivers/gpu/drm/shmobile/shmob_drm_crtc.c |    9 ++--
 include/drm/drm.h                         |    5 +-
 include/drm/drmP.h                        |   38 +++++++++++--
 include/drm/drm_mode.h                    |    4 +-
 kernel/time/timekeeping.c                 |    2 +-
 13 files changed, 113 insertions(+), 61 deletions(-)
Signature · 1 line
1.7.9.5