From mboxrd@z Thu Jan 1 00:00:00 1970 From: Imre Deak Subject: Re: [RFC 0/4] drm: add raw monotonic timestamp support Date: Mon, 08 Oct 2012 14:22:08 +0300 Message-ID: <1349695328.29511.8.camel@localhost> References: <1349444222-22274-1-git-send-email-imre.deak@intel.com> <87ehlcmsbm.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87ehlcmsbm.fsf@eliezer.anholt.net> 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: Eric Anholt Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Fri, 2012-10-05 at 16:07 -0700, Eric Anholt wrote: > Imre Deak writes: > > > 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 > > While people are in pageflip code: > > It would be really, really cool for application tracing if we could get > timestamps out of our swaps that used the TIMESTAMP register that is the > timer used for event tracing on the GPU using GL_ARB_timer_query. Then > you could get decent visualizations of the latency of your rendering. I assume this querying wouldn't be done through the wait_for_vblank or page_flip ioctls, but rather a new ioctl or even through a new perf event? We could add such a new interface later; this patchset is more focused on the above two ioctls. --Imre