Bug#414031: google-earth doesn't work with current version of xserver-xorg-video-i810
On Thu, 2007-03-08 at 20:16 +0100, Hermann Kraus wrote: > Package: xserver-xorg-video-i810 > Version: 2:1.7.2-4 > Severity: normal > > When trying to run google earth with the current version of > xserver-xorg-video-i810 I get the following messages: > - > 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 I only get one frame per 3 or 4 seconds. Therefore google-earth is > unusable with this driver. > Both vars are not set. > glxgears works without any problems. Maybe Google Earth enables sync-to-vblank via GLX API. Does it work if you set the environment variable vblank_mode=0 ? Alternatively, does it work with libgl1-mesa-dri from experimental? What does dmesg|grep i915 say? > I'm not sure when this problem was introduced, but the last time I used > google-earth was around mid-february IIRC. Is there somewhere an archive > of old versions so I can try which ones work? There's snapshot.debian.net. -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer
Bug#414031: google-earth doesn't work with current version of xserver-xorg-video-i810
On Fri, 09 Mar 2007 15:40:23 +0100, Michel Dänzer <[EMAIL PROTECTED]> wrote: Maybe Google Earth enables sync-to-vblank via GLX API. Does it work if you set the environment variable vblank_mode=0 ? Yes, that works fine! Thanks! Alternatively, does it work with libgl1-mesa-dri from experimental? -- The following packages will be upgraded: libdrm2 libgl1-mesa-dri libgl1-mesa-glx -- This problem is gone. However the version from experimental seems to be really experimental and doesn't work well. As soon as you zoom in to much the screen gets blue. http://r2d2.stefanm.com/gearth-dri-experimental.png http://r2d2.stefanm.com/gearth-dri-testing.png The first screenshot is taken with libs from experimental and no fixes, the second one with the normal libs from etch, both show "RMS Queen Mary" from the "Sightseeing" tour. Perhaps I would have to upgrade other packages to make this work, however this is not important as the solution above works. What does dmesg|grep i915 say? - [drm] Initialized i915 1.6.0 20060119 on minor 0 - I'm not sure when this problem was introduced, but the last time I used google-earth was around mid-february IIRC. Is there somewhere an archive of old versions so I can try which ones work? There's snapshot.debian.net. After playing with different old versions and none working I remembered that I changed something else too: My kernel. I upgraded from 2.6.19 to 2.6.20 some weeks ago. Booted 2.6.19 and everything worked again. Then I checked the diffs for i915 and they changed the vblank functions. So this is a problem with different versions of userland and kernel software. I'm sorry, that I didn't check the kernel earlier, but I didn't even think that it might be a kernel problem as xserver-xorg-video-i810-modesetting works with this kernel. Here a list what works and what doesn't: Works: - kernel 2.6.19 - kernel 2.6.20 with vblank_mode=0 - kernel 2.6.20 with xserver-xorg-video-i810-modesetting Works but not good: - kernel 2.6.20 with libs from experimental (see above) - kernel 2.6.20 with LIBGL_ALWAYS_INDIRECT=1 (slow) Does not work at all: - kernel 2.6.20 with libs from etch and no special settings I'll use the vblank_mode solution for now. I'm not sure if this bugreport should be closed or kept open. Thank you for your help! Regards, Hermann -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#414031: google-earth doesn't work with current version of xserver-xorg-video-i810
On Sun, 2007-03-11 at 15:05 +0100, Hermann Kraus wrote: > On Fri, 09 Mar 2007 15:40:23 +0100, Michel Dänzer <[EMAIL PROTECTED]> > wrote: > > Alternatively, does it work with libgl1-mesa-dri from experimental? > > -- > The following packages will be upgraded: >libdrm2 libgl1-mesa-dri libgl1-mesa-glx > -- > > This problem is gone. However the version from experimental seems to be > really experimental and doesn't work well. As soon as you zoom in to much > the screen gets blue. That's a bug related to fog which has been fixed upstream in git in the meantime. > I'm not sure if this bugreport should be closed or kept open. We should keep it open for now as it might be a genuine bug in xserver-xorg-video-i810. Can you try rebuilding it with the attached patch to see if that helps with the new kernel? Please try both versions of libgl1-mesa-dri, as I suspect this might fix the old version but regress the new one, requiring another fix for the latter. -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer diff --git a/src/i830_dri.c b/src/i830_dri.c index 524c4de..d1716bc 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -1513,13 +1513,20 @@ I830DRISetVBlankInterrupt (ScrnInfoPtr pScrn, Bool on) if (pI830->directRenderingEnabled && pI830->drmMinor >= 5) { if (on) { - if (pI830->planeEnabled[1]) { - if (pI830->drmMinor >= 6) - pipe.pipe = DRM_I830_VBLANK_PIPE_A | DRM_I830_VBLANK_PIPE_B; - else + if (pI830->drmMinor >= 6) { + pipe.pipe = 0; + + if (pI830->planeEnabled[0]) + pipe.pipe |= DRM_I830_VBLANK_PIPE_A; + + if (pI830->planeEnabled[1]) + pipe.pipe |= DRM_I830_VBLANK_PIPE_B; + } else { + if (pI830->planeEnabled[1]) pipe.pipe = DRM_I830_VBLANK_PIPE_B; - } else - pipe.pipe = DRM_I830_VBLANK_PIPE_A; + else + pipe.pipe = DRM_I830_VBLANK_PIPE_A; + } } else { pipe.pipe = 0; }
Bug#414031: google-earth doesn't work with current version of xserver-xorg-video-i810
On Mon, 12 Mar 2007 09:39:51 +0100, Michel Dänzer <[EMAIL PROTECTED]> wrote: We should keep it open for now as it might be a genuine bug in xserver-xorg-video-i810. Can you try rebuilding it with the attached patch to see if that helps with the new kernel? Please try both versions of libgl1-mesa-dri, as I suspect this might fix the old version but regress the new one, requiring another fix for the latter. You are right. This works with the old lib but not with new one. However it depends on the kernel version again: Kernel 2.6.19: -old lib: works -new lib: works but prints this error message: - do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset. - Kernel 2.6.20: -old lib: works -new lib: fails (error message + unusable slow) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#414031: google-earth doesn't work with current version of xserver-xorg-video-i810
On Mon, 2007-03-12 at 15:15 +0100, Hermann Kraus wrote: > On Mon, 12 Mar 2007 09:39:51 +0100, Michel Dänzer <[EMAIL PROTECTED]> > wrote: > > > We should keep it open for now as it might be a genuine bug in > > xserver-xorg-video-i810. Can you try rebuilding it with the attached > > patch to see if that helps with the new kernel? Please try both versions > > of libgl1-mesa-dri, as I suspect this might fix the old version but > > regress the new one, requiring another fix for the latter. > > You are right. This works with the old lib but not with new one. However > it depends on the kernel version again: > > Kernel 2.6.19: > -old lib: works > -new lib: works but prints this error message: > - > do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working > correctly. > Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset. > - > > Kernel 2.6.20: > -old lib: works > -new lib: fails (error message + unusable slow) Where's the difference between kernel versions? :) Anyway, since the current upstream versions don't exhibit this problem together and fixing xf86-video-intel for old Mesa would break current Mesa, I don't intend to do anything about this upstream. Also, since no version of Debian ships the problematic combination of kernel, xf86-video-intel and Mesa, I'm not sure it's even worth doing anything about it in Debian packages. XSF, what do you think? -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer
Bug#414031: google-earth doesn't work with current version of xserver-xorg-video-i810
On Tue, 13 Mar 2007 12:29:41 +0100, Michel Dänzer <[EMAIL PROTECTED]> wrote: Kernel 2.6.19: -old lib: works -new lib: works but prints this error message: [...] Kernel 2.6.20: -old lib: works -new lib: fails (error message + unusable slow) Where's the difference between kernel versions? :) Perhaps this was not stated clearly in my message: Kernel 2.6.19 only prints the error message, but there is no impact on the usability of the program. With 2.6.20 the program is unusable slow. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#414031: google-earth doesn't work with current version of xserver-xorg-video-i810
On Tue, 2007-03-13 at 14:34 +0100, Hermann Kraus wrote: > On Tue, 13 Mar 2007 12:29:41 +0100, Michel Dänzer <[EMAIL PROTECTED]> > wrote: > >> Kernel 2.6.19: > >> -old lib: works > >> -new lib: works but prints this error message: > [...] > >> Kernel 2.6.20: > >> -old lib: works > >> -new lib: fails (error message + unusable slow) > > > > Where's the difference between kernel versions? :) > > Perhaps this was not stated clearly in my message: > Kernel 2.6.19 only prints the error message, but there is no impact on the > usability of the program. With 2.6.20 the program is unusable slow. Ah, thanks for the clarification. I'm not entirely sure exactly where that difference comes from but have some ideas. -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer
Bug#414031: google-earth doesn't work with current version of xserver-xorg-video-i810
tags 414031 + fixed-upstream thanks On Tue, Mar 13, 2007 at 12:29:41PM +0100, Michel Dänzer wrote: > On Mon, 2007-03-12 at 15:15 +0100, Hermann Kraus wrote: > > On Mon, 12 Mar 2007 09:39:51 +0100, Michel Dänzer <[EMAIL PROTECTED]> > > wrote: > > > > > We should keep it open for now as it might be a genuine bug in > > > xserver-xorg-video-i810. Can you try rebuilding it with the attached > > > patch to see if that helps with the new kernel? Please try both versions > > > of libgl1-mesa-dri, as I suspect this might fix the old version but > > > regress the new one, requiring another fix for the latter. > > > > You are right. This works with the old lib but not with new one. However > > it depends on the kernel version again: > > > > Kernel 2.6.19: > > -old lib: works > > -new lib: works but prints this error message: > > - > > do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working > > correctly. > > Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset. > > - > > > > Kernel 2.6.20: > > -old lib: works > > -new lib: fails (error message + unusable slow) > > Where's the difference between kernel versions? :) > > Anyway, since the current upstream versions don't exhibit this problem > together and fixing xf86-video-intel for old Mesa would break current > Mesa, I don't intend to do anything about this upstream. > > Also, since no version of Debian ships the problematic combination of > kernel, xf86-video-intel and Mesa, I'm not sure it's even worth doing > anything about it in Debian packages. XSF, what do you think? I agree with you on this one. We'll have to remember to close this bug when we get the next upstream release in to the archive. - David Nusinow -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]