On Tue, 2009-05-05 at 10:44 -0700, Jesse Barnes wrote: > On Sat, 02 May 2009 11:32:02 -0500 > Robert Noland <rnol...@2hip.net> wrote: > > > On Fri, 2009-02-06 at 10:22 -0800, Jesse Barnes wrote: > > > As discussed in the long thread about vblank related timeouts, it > > > turns out GM45 has different frame count registers than previous > > > chips. This patch adds support for them, which prevents us from > > > waiting on really stale sequence values in drm_wait_vblank (which > > > rather than returning immediately ends up timing out or getting > > > interrupted). > > > > I'm not seeing this patch in drm-next... It looks like this register > > should be used for all G4X chips, not just GM45. The counter on my > > G45 (2E22) was counting really fast using the old method. Using this > > register the values seem correct. The docs appear to hold up this > > argument as well I think (devELK). > > > > Running gears synced to vblank was working since vblanks just stay on. > > If vblanks are being switched on and off, (rotating the cube in > > compiz) I was seeing really bad behavior after a few minutes. > > > > Also note that in this case max_vblank_count is 32 bits, not 24. I'm > > setting that value at the same time that I set the function now. > > Yes it should be for G4x. Patch below.
You aren't dealing with the hardware counter being 32 bits now, so once you cross the 24 bit boundary the calculations in drm_update_vblank_counter() will be wrong. robert. -- Robert Noland <rnol...@2hip.net> 2Hip Networks
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com
-- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel