Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318053 - x11-drivers/xf86-video-intel: i915 GPU Hung, Failed to submit batch buffer
Summary: x11-drivers/xf86-video-intel: i915 GPU Hung, Failed to submit batch buffer
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-01 20:17 UTC by skaumo
Modified: 2010-06-23 11:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg.0.log output (Xorg.0.log,26.43 KB, text/plain)
2010-05-01 20:18 UTC, skaumo
Details
dmesg output (dmesg.txt,26.65 KB, text/plain)
2010-05-07 12:56 UTC, skaumo
Details
dmesg output from 2.6.34-rc7 (dmesg2.txt,26.28 KB, text/plain)
2010-05-12 07:39 UTC, skaumo
Details
latest dmesg with lapic enabled (dmesg3.txt,27.35 KB, text/plain)
2010-05-13 12:19 UTC, skaumo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description skaumo 2010-05-01 20:17:01 UTC
Looks like i915 is unstable with xorg-server 1.8.0. I recently updated world from a 2 years ago tabletpc, perfectly working configuration to the latest ~x86 tree, and I'm unable to use X, KDE4.

I tried to play around with modesetting, compile i915 as a module or into the kernel, but I have the same error messages either way.

Reproducible: Always

Steps to Reproduce:
1. start xdm with kdm4 or xdm
2. login to kde4 OR click any button on the login screen
   xdm seems stable, and its own UI widgets don't lead to issues
2a. if kde4 started, click on any button (the "K" button for instance)
3. X becomes unresponsive, only mouse cursor moves.
4. optionally try to restart xdm from ssh, but kdm won't start anymore. Only X will start, and will only display the mouse cursor on a black background.

Actual Results:  
i915 driver cannot be unloaded (busy), and both dmesg and Xorg.0.log display error messages related to the driver

Expected Results:  
i915 should be unloadable/reloadable after killing X, and be stable


dmesg says:


i915 0000:00:02.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, low) -> IRQ 10
i915 0000:00:02.0: setting latency timer to 64
[drm] set up 31M of stolen space
[drm] initialized overlay support
udev: renamed network interface eth0 to wl
fbcon: inteldrmfb (fb0) is primary device
Console: switching to colour frame buffer device 128x48
fb0: inteldrmfb frame buffer device
registered panic notifier
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
fbcondecor: console 0 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 0
fbcondecor: console 1 using theme 'emergence'
e100: lan NIC Link is Up 100 Mbps Half Duplex
fbcondecor: switched decor state to 'on' on console 1
Bridge firewalling registered
fbcondecor: console 2 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 2
fbcondecor: console 3 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 3
fbcondecor: console 4 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 4
fbcondecor: console 5 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 5
usb 2-1: new low speed USB device using uhci_hcd and address 3
input: Silitek USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input5
generic-usb 0003:047B:0006.0002: input: USB HID v1.00 Keyboard [Silitek USB Keyboard] on usb-0000:00:1d.0-1/input0
fbcondecor: switched decor state to 'off' on console 1
fbcondecor: console 1 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 1
fbcondecor: switched decor state to 'off' on console 2
fbcondecor: console 2 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 2
fbcondecor: switched decor state to 'off' on console 3
fbcondecor: console 3 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 3
fbcondecor: switched decor state to 'off' on console 4
fbcondecor: console 4 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 4
fbcondecor: switched decor state to 'off' on console 5
fbcondecor: console 5 using theme 'emergence'
fbcondecor: switched decor state to 'on' on console 5
e100: lan NIC Link is Up 100 Mbps Half Duplex
[drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
render error detected, EIR: 0x00000000
[drm:i915_do_wait_request] *ERROR* i915_do_wait_request returns -5 (awaiting 104 at 102)



emerge --info:
Portage 2.2_rc67 (default/linux/x86/10.0/desktop/kde, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-tuxonice-r1 i686)
=================================================================
System uname: Linux-2.6.33-tuxonice-r1-i686-Intel-R-_Pentium-R-_M_processor_900MHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 30 Apr 2010 09:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA skype-eula dlj-1.1 Q3AEULA PUEL"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -ggdb -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/spl
ash /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distcc distlocks fixpackages news protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.inf.elte.hu/ http://gentoo.mirror.solnet.ch"
LANG="it"
LDFLAGS="-Wl,-O1"
LINGUAS="it hu en ru he"
MAKEOPTS="-j5"
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://odin/gentoo-portage/"
USE="X a52 aac aalib accessibility acl acpi aiglx alsa amr apm arts async avi backup bash-completion bidi bogofilter branding bri bzip2 cairo cdinstall cdr cegui cgi cli consolekit contactnotes cpudetection cracklib crypt ctype cups curl cxx dbus dc1394 devil dhcp directfb divx dmi double-precision dri dts dv dvb dvdr dvdread eckb1 ecmark3 ecmg2 ecsteve2 eds emboss encode esd exif extras fam fastcgi fbcon fbcondecor ffmpeg firefox flac florz fortran gadu gd gdbm gdu geoip gif git glitz glut gmedia gnustep gnutls gphoto2 gpm groupwise gsl gsm h323 history hybrid i8x0 iconv icu idn ieee1394 imagemagick imap imlib inotify iptc java javascript jingle jpeg jpeg2k jpgraph kde kdrive kerberos laptop lcms libnotify live lzma lzo mad maps matroska mikmod mmx mmxext mng modelock modules mozdevelop moznoxft mozsvg mozxmlterm mp3 mp4 mpeg mplayer msn mssql mudflap multislot multiuser mysql nas nat ncurses network new-login nls nntp non-flattened nptl nptlonly nsplugin objc objc++ objc-gc odbc offensive ogg opengl openmp optimize oscar pam pango passwordsave pcmcia pcre pdf pdflib perl php png policykit ppds pppd prediction python qq qt-static qt3 qt3support qt4 query-browser quicktime raw rc5 readline realmedia reflection rle rt2500usb rtc rtsp samba sasl sdl session sharedmem shout silc sip skins slang slp sms sndfile speex spell spl sql sqlite sse sse2 ssl startup-notification stream svg svga swat sysfs tcl tcpd thal theora threads tidy tiff tk tools tordns transmitter truetype unicode upnp usb userlocales v4l v4l2 video vim vim-syntax vim-with-x vlm vorbis watchdog wav wifi winbind wmp workbench wxwindows x264 x86 xcb xcomposite xface xforms xinerama xml xorg xrandr xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="intel8x0 intel8x0m" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" DVB_CARDS="usb-a800" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it hu en ru he" LIRC_DEVICES="devinput" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 skaumo 2010-05-01 20:18:45 UTC
Created attachment 229935 [details]
Xorg.0.log output
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-05-05 12:33:19 UTC
Please paste your "emerge -pv xf86-video-intel" output. 
Comment 3 skaumo 2010-05-05 20:20:35 UTC
[ebuild   R   ] x11-drivers/xf86-video-intel-2.11.0  USE="dri" 0 kB
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2010-05-05 22:06:13 UTC
Please paste the full output of dmesg when that message shows up, and please try the latest git-sources kernel (yes, without tuxonice...).

Thanks
Comment 5 skaumo 2010-05-07 12:56:10 UTC
Created attachment 230675 [details]
dmesg output

uname -a output:


Linux TB 2.6.34-rc6-git5 #1 PREEMPT Fri May 7 10:07:15 CEST 2010 i686 Intel(R) Pentium(R) M processor 900MHz GenuineIntel GNU/Linux
Comment 6 skaumo 2010-05-12 07:38:22 UTC
Greetings,


I've also tried with 2.6.34-rc7.
The dmesg output is different: this time it also talks about render errors. Attaching..

Cheers
Comment 7 skaumo 2010-05-12 07:39:27 UTC
Created attachment 231151 [details]
dmesg output from 2.6.34-rc7
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-05-12 07:45:39 UTC
Two things are notable from that dmesg:

* video=intelfb:ywrap,mtrr:4,1024x768-32@60,splash=verbose,theme:emergence

intelfb should not be used. It is not mentioned anywhere else in dmesg so it could be disabled in kernel already. Ensure it is.

* Local APIC disabled by BIOS -- you can enable it with "lapic"
* no APIC, boot with the "lapic" boot parameter to force-enable it.

If the problem is due to an interrupt issue, maybe enabling lapic helps.
Comment 9 skaumo 2010-05-13 12:18:38 UTC
> * video=intelfb:ywrap,mtrr:4,1024x768-32@60,splash=verbose,theme:emergence

removed (intelfb was not compiled. I removed it earlier, just forgot a reference to it in grub.conf), and replaced with lapic


This time X lasts longer: I'm able to click the K button, which opens the menu, I open an application, and... crash again :)

Attaching the new dmesg


Cheers
Comment 10 skaumo 2010-05-13 12:19:09 UTC
Created attachment 231311 [details]
latest dmesg with lapic enabled
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2010-06-23 11:50:15 UTC
Please try with the latest 2.6.35_rc kernel. If it still fails, please file a bug upstream [1] and paste the URL here so we can track the issue.

Thanks
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2010-06-23 11:50:37 UTC
[1] http://intellinuxgraphics.org/how_to_report_bug.html