From: Mario Kleiner Subject: Re: CRTC video scanout position for high precision vblank timestamping? Date: Wed, 29 Dec 2010 11:31:15 +0100 Message-ID: <4D1B0DF3.304@tuebingen.mpg.de> References: <4D1AF8F4.6020707@tuebingen.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: Maarten Maathuis Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org On 12/29/2010 10:35 AM, Maarten Maathuis wrote: > I found these by simply dumping the entire range modesetting related > registers. At the time they didn't help me (the issue of swapbuffers > remains unsolved on this generation of hardware, it didn't interest me > *that* much). I don't know what exactly you are doing, but a lot of > stuff is done through pushbuffers (even modesetting) so there are no > "instant" registers that i know of. > Oh, it's about precisely timestamping when a scanout starts (at end of vblank) and when exactly a bufferswap completed - when the post-swap frontbuffer starts to scan out. This commit gives the background info: This is what it looks like in the i915 kms, to be implemented very similar in nouveau kms: -mario