[Bug 93147] [regression bisected] Stuttering in games caused by commit 4dfd6486 "drm: Use vblank timestamps to guesstimate how many vblanks were missed"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 3 07:02:23 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=93147

--- Comment #10 from Mario Kleiner <mario.kleiner at tuebingen.mpg.de> ---
Created attachment 120301
  --> https://bugs.freedesktop.org/attachment.cgi?id=120301&action=edit
First proposed patch to fix this on radeon-kms

Ok, the attached patch works on my test systems with my timing tests and
hardware timing measurement equipment and i think it hopefully avoids the races
Ville and me could come up with so far.

One thing which might make sense for improved efficiency is to replace the
udelay(5) in the radeon_flip_work_func() with a usleep_range() that avoids
polling and sleeps the right minimum amount of time. I'll try to try that
today.

For the line buffer sizes for < DCE4 i just guessed values which are hopefully
big enough to cover earlier asics. I think too big is not a big problem for
correctness, but potentially for performance under higher graphics load.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20151203/23e7268d/attachment.html>


More information about the dri-devel mailing list