From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [RFC 0/4] drm: add raw monotonic timestamp support Date: Thu, 11 Oct 2012 12:32:27 +0200 Message-ID: <2493106.XTsF2gsEpr@avalon> 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: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [95.142.166.194]) by gabe.freedesktop.org (Postfix) with ESMTP id 31FD49E782 for ; Thu, 11 Oct 2012 03:31:43 -0700 (PDT) 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: dri-devel@lists.freedesktop.org Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi Imre, On Friday 05 October 2012 16:36:58 Imre Deak wrote: > 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 Could you please also update Documentation/DocBook/drm.tmpl to document that the event timestamp is a raw monotonic clock timestamp ? > 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(-) -- Regards, Laurent Pinchart