Bug 20672 - Sync to vblank does not work on X1300 Mobility
Summary: Sync to vblank does not work on X1300 Mobility
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r300 (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-15 06:38 UTC by Christian Speckner
Modified: 2009-03-16 04:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf (6.76 KB, text/plain)
2009-03-15 06:39 UTC, Christian Speckner
Details
xorg logfile (48.45 KB, text/plain)
2009-03-15 06:39 UTC, Christian Speckner
Details

Description Christian Speckner 2009-03-15 06:38:19 UTC
When I enable any vsync mode in driconf, glxgears takes some seconds to display anything besides a black window, then garbage, and after that, it renders correctly with a very slow framerate (<1 fps). Other 3D applications display the same behaviour. If I enable interrupts instead of sleeps, I additionally get the following message:

do_wait: drmWaitVBlank returned -1

This is mesa 7.3 (there was no option for that one above, so I set unspecified). I am using xorg-server 1.5.3 on gentoo together with the radeon driver 6.12.0. The machine is a thinkpad T60/Core duo (no Core2, so 32 bit) with a X1300 mobility radeon.

I have attached xorg.conf and Xorg.0.log; please tell me if you need any further info.
Comment 1 Christian Speckner 2009-03-15 06:39:09 UTC
Created attachment 23870 [details]
xorg.conf
Comment 2 Christian Speckner 2009-03-15 06:39:25 UTC
Created attachment 23871 [details]
xorg logfile
Comment 3 Christian Speckner 2009-03-15 06:40:46 UTC
Oh, in case anyone is interested, drm is in-kernel drm, linux 2.6.27.
Comment 4 Michel Dänzer 2009-03-16 02:09:59 UTC
Does

watch grep radeon /proc/interrupts

show an increase in the number of interrupts received from the Radeon which roughly corresponds to the display refresh rate?
Comment 5 Christian Speckner 2009-03-16 03:45:13 UTC
No, it doesn't; no interrupts seem to be generated.
Comment 6 Michel Dänzer 2009-03-16 03:55:43 UTC
Did you check with and without glxgears or another 3D app running?
Comment 7 Christian Speckner 2009-03-16 04:00:33 UTC
Yep, I did. "grep radeon /proc/interrupts" gives

16:          1          0   IO-APIC-fasteoi   yenta, uhci_hcd:usb2, radeon@pci:0000:01:00.0

which doesn't change on running glxgears.
Comment 8 Michel Dänzer 2009-03-16 04:13:50 UTC
This is most likely an issue in the kernel then, or possibly in xf86-video-ati. Can you try a newer kernel (e.g. 2.6.28.x) or the DRM kernel modules from git://anongit.freedesktop.org/git/mesa/drm ?
Comment 9 Christian Speckner 2009-03-16 04:27:49 UTC
On the spot, thanks! I just tried the git drm modules, and it now works fine.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.