Bug 13957

Summary: drmWaitVBlank returned -1
Product: Mesa Reporter: Laurent Bigonville <bigon>
Component: Drivers/DRI/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xorg.conf
Xorg.0.log
xrandr

Description Laurent Bigonville 2008-01-07 13:47:44 UTC
Hi,

With googleearth I get:
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.

and it takes age to start.
After that googleearth run quite smoothly.

radeon driver version: 6.7.197
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
Comment 1 Michel Dänzer 2008-01-08 00:21:22 UTC
Please attach (as opposed to paste) the full xorg.conf and Xorg.0.log files and the output of xrandr --verbose. Which version of Mesa are you using?
Comment 2 Laurent Bigonville 2008-01-08 05:34:27 UTC
Created attachment 13584 [details]
xorg.conf
Comment 3 Laurent Bigonville 2008-01-08 05:35:04 UTC
Created attachment 13585 [details]
Xorg.0.log
Comment 4 Laurent Bigonville 2008-01-08 05:35:44 UTC
Created attachment 13586 [details]
xrandr
Comment 5 Benjamin Close 2008-01-11 02:39:21 UTC
Bugzilla Upgrade Mass Bug Change

NEEDSINFO state was removed in Bugzilla 3.x, reopening any bugs previously listed as NEEDSINFO.

  - benjsc
    fd.o Wrangler
Comment 6 Michel Dänzer 2008-02-27 08:12:40 UTC
Does this also happen if another 3D application (e.g. glxgears) is running when you start Google Earth?
Comment 7 Arkadiusz Miskiewicz 2008-02-27 08:47:04 UTC
Happens for me too. 

mesa 7.0.2/xserver 1.4.0.90/ati git driver from 20080227 (post 1.6.8), kernel 2.6.24

Setting: <option name="vblank_mode" value="0" /> in drirc makes googleeart start (but machine locks up later)
Comment 8 Arkadiusz Miskiewicz 2008-02-27 08:56:43 UTC
More info, X600 mobile radeon, XAA.

Tried running googleearth while glxgears was already running - no change. Still got 
"do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset."

In my case this is like: googlearth &; splash shows; do_wait error is displayed on console and it looks like it never progress - splash is displayed all the time.
Comment 9 Michel Dänzer 2008-02-27 09:23:28 UTC
After getting some more information on IRC, it looks like this is a Mesa bug related to whatever extension Google Earth uses for sync-to-vblank (sync-to-vblank seems to be generally working, e.g. using the vblank_mode driconf setting). It would be interesting to know if this still happens with the mesa Git master branch.
Comment 10 Laurent Bigonville 2008-02-27 09:45:32 UTC
still happening with 7.0.3~rc2
Comment 11 Arkadiusz Miskiewicz 2008-02-28 01:31:06 UTC
http://gitweb.freedesktop.org/?p=mesa/mesa.git;a=commitdiff;h=2407e48f2805e27e76e2e1d7083926c4077d9032;hp=5b91ee27c0f6e6379a9dc0bb41f4aef2f66b6346

applied on top of 7.0.2 fixes (or workarounds) the problem for me.
Comment 12 Michel Dänzer 2008-02-28 02:45:56 UTC
Fix backported to 7.0 branch, it'll be in the 7.0.3 release.

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.