This bug is written to server as a small summary of all the issues I have encountered with the xorg-server upgrade to 1.5 version. The computer used was a media-center PC used ~7 hours/day so the success was critical... I have spent around 12 hours to find the winning combination. My video card is a intel 865G joe@moon> lspci 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) Latest stable versions in gentoo: xorg-server: 1.5.3-r5 xf86-video-intel: 2.6.3-r1 libdrm: 2.4.5 mesa: 7.3-r1 gentoo-kernel: 2.6.27-r8 Issues: mplayer XV playback crash: as shown in http://forums.freebsd.org/showthread.php?p=18997 Solution: downgrade to xf86-video-intel: 2.6.1 My configuration: xorg-server: 1.5.3-r5 xf86-video-intel: 2.6.3-r1 libdrm: 2.4.5 mesa: 7.3-r1 gentoo-kernel: 2.6.29 Issues: the libdrm and the kernel combination was creating issues https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/304871 could not use X anymore, In case of disabling the acceleration "Noaccel" "true" I cannot get XV As a result mythfrontend crashed with "Segmenattaion ..." X with EXA acceleration did not start at all due to the following error: "Couldn't bind memory for BO front buffer" Using "legacy3d" "off" did not help much. The error was gone but X server was not usable and crashed soon afterwords. a reboot was necessary (via ssh or kernel magic keys) Mouse was still accessible but the keyboard did not work In the end I got the following erros in the Xorg.*.log [mi] EQ overflowing. The server is probably stuck in an infinite loop. UXA acceleration was not successful either. I could get the system up and running with: xorg-server: 1.5.3-r5 xf86-video-intel: 2.6.1 libdrm: 2.4.5 mesa: 7.3-r1 gentoo-kernel: 2.6.27-r7 One last comment is that after the xorg-server upgrade mytfrontend aspect ratio during playback was changed. To fix it I had to use DisplaySize option to set the correct aspect. I did not have to set Xinerama to off Reproducible: Always
With intel, the problem is that at least 2.6.28, if not 2.6.29 kernel is required for the card to correctly work with UXA. As for the keyboard, most probably you are missing xf86-input-evdev.
I had 2.6.29 but X was unusable. Frozen... kill `pidof X` did not work kill -9 worked but the image was still frozen on the screen. Only a reboot could get it out of that state. Reading a lot of posts I have the feeling that the work in UXA is not yet finished, at least not for old chipsets like mine. xf86-input-evdev I had it. I have triple checked that.
More info for the record: Did more experiments with the UXA acceleration. kernel 2.6.28: black screen: (X) mouse is moving, keyboard is dead kernel 2.6.29: loads background, some windows, keyboard works then it stops responding. with the following messages (also see the attachment): ....... [mi] EQ overflowing. The server is probably stuck in an infinite loop. Backtrace: 0: X(xorg_backtrace+0x37) [0x8124193] [mi] mieqEnequeue: out-of-order valuator event; dropping. [mi] EQ overflowing. The server is probably stuck in an infinite loop. ....
Created attachment 188199 [details] Xorg log file
Please post your `emerge --info' too.
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r7 i686) ================================================================= System uname: Linux-2.6.27-gentoo-r7-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-glibc2.0 Timestamp of tree: Sun, 12 Apr 2009 13:45:02 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.se/" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j 3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib accessibility acl acpi alsa apache2 apm arts asf automount avi beagle berkdb bitmap-fonts bluetooth branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt css cups curl dbus deprecated dga dia dlloader dri dts dvb dvd dvdnav dvdr dvdread eds effects emboss encode esd evo fam fbcondecor fbsplash ffmpeg fftw firefox flac foomaticdb fortran gd gdbm gif gimpprint gnokii gnome gpm gs gstreamer gtk gtkhtml h264 hal huro ical iconv ieee1394 imagemagick inkjar ipv6 irda isdnlog java jpeg jpeg2k kde kipi kqemu ldap libg++ libnotify libwww lirc live lm_sensors logrotate mad midi mikmod mjpeg mmx mmxext mng mono mp3 mp4 mpeg mplayer mudflap mysql ncurses network new-login nfs nls nptl nptlonly nsplugin nuv ogg opengl openmp openntpd oss pam pcre pdf pdflib perl plotutils plugin pmu png posix postscript ppds pppd python qt3 qt3support qt4 quicktime readline reflection regex rtc samba scanner sdl server session sms sndfile sound spell spl sse sse2 ssl startup-notification subtitles svg sysfs tcpd threads tiff tk transcode truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vim-syntax visualization vorbis win32codecs x264 x86 xext xine xinerama xml xorg xprint xscreensaver xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="tda1004x" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
The "Couldn't bind memory for BO front buffer" is only present with the i915 kernel module (at least at 2.6.28) but not with the i830. UXA seems broken on my site with the 2.6.28, too.
I've just put xf86-video-intel 2.7.0 in portage under p.mask. Please give it a try as it has a _lot_ of UXA fixes. As for the kernel, you should definitely be using the latest 2.6.29 ebuilds from ~arch for improved stability. Please don't hesitate to reopen this bug if you still have UXA issues. Thanks
No luck. See the complete story below. I might try the xorg-1.6.1 when available. I have: 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) Tryed the following combinations: =1.=xorg-1.5.3=intel-2.7.0=2.6.29-gentoo=UXA================================== ... X.Org X Server 1.5.3 Release Date: 5 November 2008 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.29-gentoo i686 Current Operating System: Linux mythtvbackend 2.6.29-gentoo-r3 #1 SMP Wed May 6 21:57:24 CEST 2009 i686 Build Date: 11 April 2009 12:12:33PM ... Module intel: vendor="X.Org Foundation" compiled for 1.5.3, module version = 2.7.0 ... (**) intel(0): Using UXA for acceleration +++++++++++++++++ I get black screen, the mouse is moving but no windows load nor the keyboard is working ... [mi] EQ overflowing. The server is probably stuck in an infinite loop. Backtrace: 0: X(xorg_backtrace+0x37) [0x8124193] [mi] mieqEnequeue: out-of-order valuator event; dropping. [mi] EQ overflowing. The server is probably stuck in an infinite loop. <repeating many times> ==================================================== =1.=xorg-1.5.3=intel-2.7.0=2.6.29-gentoo=EXA============================ Same error as above. Similar behaviour I have attached 2 files conatining the errors above
Created attachment 190783 [details] UXA trial
Created attachment 190785 [details] EXA trial
I ma having a similar issue with another chipset: 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) The X server starts fain then within few hours I get: ............ (**) Dell Dell USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200 (II) XINPUT: Adding extended input device "Dell Dell USB Optical Mouse" (type: MOUSE) [mi] EQ overflowing. The server is probably stuck in an infinite loop. Backtrace: 0: /usr/bin/X(xorg_backtrace+0x37) [0x8124f03] [mi] mieqEnequeue: out-of-order valuator event; dropping. [mi] EQ overflowing. The server is probably stuck in an infinite loop. ........... Mouse works but the keyboard is dead. All other programs are still responding. e.g. I can ssh login on the machine. I will attach the log file.
Created attachment 190928 [details] Xorg log file for Intel Corporation Mobile 945GM/GMS, 943/940GML Xorg log file for 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
Tried xf86-video-intel-2.7.1 and kernel 2.6.29-gentoo-r4 with UXA. While it went further than before it froze within 5-10 sec. Googleing around it appears that there still a lot of work to be done for the intel driver. :-( I have tried again 2.6.29-gentoo-r4, xf86-video-intel-2.6.1 and x11-base/xorg-server-1.5.3-r5 (EXA) and now works. :-) I am quite happy since I needed 2.6.29 for power-down. (with 2.6.27 my HP D530 SFF did not always power down (40% of time)). In the meantime I have also bought an NVidia card... just in case.
If you ever want to track this down again, you might want to unmask xorg-server 1.6 to get UXA and DRI2 (both should show up in Xorg.0.log). This is the configuration upstream is focusing on. Thanks
Thanks. I will wait for xf86-video-intel-2.8.x, kernel 2.6.30 and xorg-xserver-1.6 to be put in the portage tree. Best regards, Octavian
Rémi, I've followed your recommendation and am using the current setup: xf86-video-intel-2.7.1-r1 xorg-server-1.6.2 libdrm-2.4.11 mesa-7.3-r1 gentoo-kernel 2.6.29-r5 My xorg.conf device section is: Option "AccelMethod" "UXA" Option "Tiling" "False" Identifier "Card0" Driver "intel" VendorName "Intel Corporation" BoardName "82865G Integrated Graphics Controller" BusID "PCI:0:2:0" I am able to get X to start and login (although the gnome login manager is rendered a bit funky), but as soon as the gnome desktop loads, X crashes out. I've attached my Xorg.0.log Any suggestions as to how to fix this?
Created attachment 197283 [details] slotdawg's Xorg.0.log
(In reply to comment #17) > xf86-video-intel-2.7.1-r1 > xorg-server-1.6.2 > libdrm-2.4.11 > mesa-7.3-r1 > gentoo-kernel 2.6.29-r5 That's a weird combination you have there :) Try a newer kernel from ~arch. 2.6.30-r2 should do. Thanks
Hey Rémi, I went ahead and compiled kernel-2.6.30-r2, and X is definitely working better than it did under *.29, but it still crashes out after a couple minutes. Sometimes it lets me log into Gnome, other times it crashes at the login. When it crashes, I am still able to move the pointer, but keyboard input seems to be dropped. I can't ctrl + alt + backspace or change to a different tty. Any other suggestions? Should I try using EXA or enabling tiling? Thanks for all your help with this! -Matt
(In reply to comment #20) > Hey Rémi, > > I went ahead and compiled kernel-2.6.30-r2, and X is definitely working better > than it did under *.29, but it still crashes out after a couple minutes. > Sometimes it lets me log into Gnome, other times it crashes at the login. When > it crashes, I am still able to move the pointer, but keyboard input seems to be > dropped. I can't ctrl + alt + backspace or change to a different tty. Looks like a GPU hang. > Any other suggestions? Should I try using EXA or enabling tiling? No, EXA support is gone from the upcoming 2.8 release. So better not rely on that, and tiling should be on by default. My suggestion now is to either : - unmask 2.7.99.901 and try that (only if you're on ~x86 or ~amd64) - or if you are on a _stable_, to grab the -9999 ebuild from the x11 overlay and try that instead. Thanks
The intel video drivers are broken for some time now. You can find a lot of evidence by just googling around. It seems that the first release at the beginning of the year was a "deadline release". Since then they are fixing the issues all over the place kernel/libdrm/mesa/xf86-video-intel. For 3 months, I am forced to run the latest from the x11-overlay: [I--] [ ~] media-libs/mesa-9999 (0) [I--] [ ~] x11-libs/libdrm-9999 (0) [I--] [ ~] x11-drivers/xf86-video-intel-9999 (0) [I--] [ ~] x11-base/xorg-server-1.6.2 (0) As for the kernels the latest the better: Linux pc67247005 2.6.30-gentoo-r2 #1 SMP Tue Jul 7 14:39:52 CEST 2009 i686 Genuine Intel(R) CPU U2500 @ 1.20GHz GenuineIntel GNU/Linux I am using UXA and no KMS since I get a black screen after booting. I am waiting for 2.6.31 since it seems to contain more i910 bug fixes. Anyway, with the "latest" setup I have very unpredictable behavior with my Linux box, which I have never experienced in the past 8 years!, such as: 1. After xdm start the screen goes black in 5-15% of cases. 2. I am using kdm 4 as the login manager. With kdm I need to login 3 times (this is in fact predictable :-) to get the KDE4 session up and running. First time it just crashes as soon as I authenticate. At kdm restart a garbled login screen appears (some horizontal lines all over). Second time after I authenticate I see the KDE splash screen almost until the end, then X crashes again. The third attempt starts the KDE . Huraaaa!!! If I go to hibernate and come back I can work for few hours before the xorg server locks. Especially if I ssh to another PC and open an X window. The mouse is still moving but keyboard is dead. I can neither switch to console nor kill the X server via kernel Sys Req Magic keys. Moreover, if the xorg does not die, after few days it consumes 1.4GB of share memory. I know this is not important but my swap goes crazy sometime.... To put it in a nutshell, there is nothing you can do. Just update often and keep your fingers crossed. Best regards, Octavian P.S. My graphic hardware is: 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
(In reply to comment #22) > The intel video drivers are broken for some time now. This might be true on some systems, but as the Intel maintainer, I can tell you that the number of bugs is steadily going down since around March. > Since then they are fixing the > issues all over the place kernel/libdrm/mesa/xf86-video-intel. Indeed, now that the drivers are split, getting fixes is more cumbersome. > For 3 months, I am forced to run the latest from the x11-overlay: > [I--] [ ~] media-libs/mesa-9999 (0) > [I--] [ ~] x11-libs/libdrm-9999 (0) > [I--] [ ~] x11-drivers/xf86-video-intel-9999 (0) > [I--] [ ~] x11-base/xorg-server-1.6.2 (0) This is also a possibility. Although I would recommend using mesa's 7.5 branch instead of the master branch. We have special code in the x11 overlay's git eclass to do this without editing ebuilds. Just add : mesa_LIVE_BRANCH="mesa_7_5_branch" to your make.conf and rebuild mesa. This way you can test the next releases early. > As for the kernels the latest the better: > Linux pc67247005 2.6.30-gentoo-r2 #1 SMP Tue Jul 7 14:39:52 CEST 2009 i686 > Genuine Intel(R) CPU U2500 @ 1.20GHz GenuineIntel GNU/Linux That's very true as well. Usually, the latest ~arch gentoo-sources are stable. > I am using UXA and no KMS since I get a black screen after booting. Please file a bug [1] as your issue might be specific to your system. I cannot stress enough how _important_ it is that you report bugs upstream when you're testing their latest code. > I am waiting for 2.6.31 since it seems to contain more i910 bug fixes. Don't wait if you can. The kernel is now at -rc2 which should be stable enough for day-to-day use. Again, the sooner you report bugs, the sooner Intel devs can fix them. > Anyway, with the "latest" setup I have very unpredictable behavior with my > Linux box, which I have never experienced in the past 8 years!, such as: [snip] That's why you should file bugs upstream, for all the reasons you pointed out yourself. Writing graphics drivers is extremely hard. Intel folks will eventually manage to get most bugs out. The real question is "when?". You can help make them fix bugs faster. > Moreover, if the xorg does not die, after few days it consumes 1.4GB of share > memory. I know this is not important but my swap goes crazy sometime.... You might want to reemerge libdrm, I saw a patch go in this morning that should make a big difference with UMS. > To put it in a nutshell, there is nothing you can do. > Just update often and keep your fingers crossed. That's not entirely true. You can help by reporting bugs. Yes, I've said it 4 or 5 times already, but I'm trying to get a point across :) Please file bugs (there, I've said it again :) ) Thanks [1] http://intellinuxgraphics.org/how_to_report_bug.html
Alright, so like Octavian, I've emerged the following from the x11 overlay: media-libs/mesa-9999 x11-libs/libdrm-9999 x11-drivers/xf86-video-intel-9999 x11-base/xorg-server-1.6.2 I enabled tiling (it was manually disabled before, as specified in this gentoo-wiki article > http://en.gentoo-wiki.com/wiki/Intel_GMA) X is definitely more stable than before, I am able to log in to gnome and use as normal, although sooner or later the GPU locks up again and I am just left with a pointer and no keyboard. Fortunately, this box's main purpose is as a server (primarily development :-), so running X is not critical. For now, I am going to sit tight and just make sure to continually run updates. I am going to wait a bit longer before I upgrade to 2.6.31, simply because I need the kernel to be stable (beyond r2) and do not want to sacrifice that just to get X running a bit smoother. It appears that Octavian and I have a slightly different configuration. I believe my graphics controller may be a little older than his: 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) One thing that may be of note is that if I boot the box without the monitor on (I use a KVM), KMS does not load and the kernel does not boot. Is this behavior typical of KMS? The problem only occurs if the KVM is not set to the gentoo box during boot. Rémi, thank you for all of your help!
(In reply to comment #24) > I enabled tiling (it was manually disabled before, as specified in this > gentoo-wiki article > http://en.gentoo-wiki.com/wiki/Intel_GMA) Yes, this page on gentoo-wiki is crap. I should edit it, but I have other priorities :) > X is definitely more stable than before, I am able to log in to gnome and use > as normal, although sooner or later the GPU locks up again and I am just left > with a pointer and no keyboard. That's better, that should make things easier to track down. > I am going to wait a bit longer before I > upgrade to 2.6.31, simply because I need the kernel to be stable (beyond r2) > and do not want to sacrifice that just to get X running a bit smoother. Alright, but do try 2.6.31 at some point now that -r2 is out. The kernel itself should be usable on a day to day basis and a lot of Intel patches have gone in. > One thing that may be of note is that if I boot the box without the monitor on > (I use a KVM), KMS does not load and the kernel does not boot. Is this > behavior typical of KMS? The problem only occurs if the KVM is not set to the > gentoo box during boot. I know that with UMS, X won't start if a monitor isn't plugged in. Maybe KMS has the same flaw, but I don't know about that. > Rémi, thank you for all of your help! No problem. Glad I can help :) But now, since you've upgraded everything, open your own bug next time you update so we can keep issues separated. It helps me focus on bugs rather than bugzilla. Thanks
tried the following combination: vanilla 2.6.31-rc2 (KMS activated by i915.modeset=1 although in the messages log it complains) mesa 7.5 branch (as instructed) libdrm-9999 xf86-video-intel-9999 Framebuffer resolution and fonts looks much better, X seems to be OK but could not activate efects in KDE4 (I had this before and is not a priority). Unfortunately with 2.6.31 I cannot compile ndiswrapper (b43 did not work in my case) and sleep freezes the computer completely. I will try to get more debug info in the next weeks since my spare time is almost ZERO. Best regards, Octavian
Updates: CHIPSET: 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) - See http://bugs.freedesktop.org/show_bug.cgi?id=23088 CHIPSET: 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) - Everything is solved except for a (NONCRITICAL) crash during the FIRST KDE session login. I will write a bug at freedesktop later. - sleep with 2.6.31-r4 works again - ndiswrapper fixed. I will write another ticket with the solution/workaround Best regards, Octavian
bugzie
Closing with the proper resolution as per comment #27. Thanks