From mboxrd@z Thu Jan 1 00:00:00 1970 From: Imre Deak Subject: [PATCH 0/2] drm: add monotonic timestamp support Date: Tue, 23 Oct 2012 21:53:24 +0300 Message-ID: <1351018407-7009-1-git-send-email-imre.deak@intel.com> References: <1349444222-22274-1-git-send-email-imre.deak@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1349444222-22274-1-git-send-email-imre.deak@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Daniel Vetter , Chris Wilson , krh@freedesktop.org, Mario Kleiner , =?UTF-8?q?Michel=20D=C3=A4nzer?= Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org 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