Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270849 - sys-kernel/gentoo-sources-2.6.29-r4 i915_gem crash
Summary: sys-kernel/gentoo-sources-2.6.29-r4 i915_gem crash
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 18:05 UTC by Jaak Ristioja
Modified: 2009-05-25 14:24 UTC (History)
1 user (show)

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


Attachments
xorg.conf (xorg.conf,2.64 KB, text/plain)
2009-05-25 08:34 UTC, Jaak Ristioja
Details
kernel config (kernel.conf,52.95 KB, text/plain)
2009-05-25 08:34 UTC, Jaak Ristioja
Details
Output of lspci -vvnn (lspci.vvnn,21.54 KB, text/plain)
2009-05-25 08:35 UTC, Jaak Ristioja
Details
Xorg.0.log.old (Xorg.0.log.old,20.10 KB, text/plain)
2009-05-25 09:01 UTC, Jaak Ristioja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2009-05-22 18:05:29 UTC
Being frustrated with Intel 3D performance, I revisited my X11 setup, upgrading some X11 stuff etc.

1) Start computer with X
2) Login, run games-fps/tremulous

    [  433.239062] [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0

Black screen, and then back to kdm.

3) Login again, run games-fps/tremulous

[  470.587874] ------------[ cut here ]------------
[  470.587878] kernel BUG at drivers/gpu/drm/i915/i915_gem.c:3389!
[  470.587880] invalid opcode: 0000 [#1] PREEMPT SMP 
[  470.587882] last sysfs file: /sys/devices/virtual/backlight/acpi_video1/brightness
[  470.587884] CPU 1 
[  470.587885] Modules linked in: snd_seq snd_seq_device vboxnetflt vboxdrv snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_timer snd snd_page_alloc
[  470.587895] Pid: 5651, comm: X Not tainted 2.6.29-gentoo-r4-arm #1 ESPRIMO Mobile U9210
[  470.587896] RIP: 0010:[<ffffffff8047bcd8>]  [<ffffffff8047bcd8>] i915_gem_entervt_ioctl+0x108/0x120
[  470.587903] RSP: 0018:ffff880109f3be08  EFLAGS: 00010283
[  470.587904] RAX: ffff88013e6cac90 RBX: ffff88013e6ca000 RCX: ffff88013e6ca000
[  470.587906] RDX: ffff880137c0ef40 RSI: ffff880109f3bc24 RDI: ffff88013eae1800
[  470.587907] RBP: ffff880109f3be28 R08: 000000013e013000 R09: 0000000000000000
[  470.587909] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
[  470.587910] R13: ffff88013eae1800 R14: ffff88013eae1820 R15: 0000000000006459
[  470.587912] FS:  00007fb9de0796f0(0000) GS:ffff88013fa7b080(0000) knlGS:0000000000000000
[  470.587914] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  470.587915] CR2: 00007fb9da670790 CR3: 0000000109db6000 CR4: 00000000000406e0
[  470.587916] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  470.587918] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  470.587920] Process X (pid: 5651, threadinfo ffff880109f3a000, task ffff8800bd3ec620)
[  470.587921] Stack:
[  470.587922]  0000000000000059 ffff88013eae1800 ffff88013e234840 0000000000000000
[  470.587925]  ffff880109f3be88 ffffffff80460ec2 ffff880109f3be98 0000000000000000
[  470.587928]  ffffffff8047bbd0 0000000000000000 ffff88013eae183c ffff88013e234a80
[  470.587931] Call Trace:
[  470.587932]  [<ffffffff80460ec2>] drm_ioctl+0x112/0x330
[  470.587936]  [<ffffffff8047bbd0>] ? i915_gem_entervt_ioctl+0x0/0x120
[  470.587938]  [<ffffffff802cc07d>] vfs_ioctl+0x7d/0xa0
[  470.587942]  [<ffffffff802cc128>] do_vfs_ioctl+0x88/0x580
[  470.587944]  [<ffffffff8026037f>] ? hrtimer_start_range_ns+0xf/0x20
[  470.587947]  [<ffffffff802cc66a>] sys_ioctl+0x4a/0x80
[  470.587950]  [<ffffffff8020bb5b>] system_call_fastpath+0x16/0x1b
[  470.587953] Code: 80 31 c0 e8 3e ff 29 00 c7 83 40 0d 00 00 00 00 00 00 e9 44 ff ff ff 0f 0b eb fe 0f 1f 84 00 00 00 00 00 0f 0b eb fe 0f 1f 40 00 <0f> 0b eb fe 0f 1f 40 00 0f 0b eb fe 66 66 66 2e 0f 1f 84 00 00 
[  470.587978] RIP  [<ffffffff8047bcd8>] i915_gem_entervt_ioctl+0x108/0x120
[  470.587980]  RSP <ffff880109f3be08>
[  470.587982] ---[ end trace 2a351ff253fe187f ]---
[  472.240260] [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 1

Black screen, keyboard and mouse unresponsive (no VT switching, no CTRL+ALT+Backspace).

Portage 2.1.6.11 (default/linux/amd64/2008.0/developer, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r4-arm x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r4-arm-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-glibc2.2.5
Timestamp of tree: Thu, 21 May 2009 20:00:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-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.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-march=core2 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect cvs distlocks fixpackages installsources multilib-strict parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-orphans userfetch userpriv usersandbox usersync"
LANG="et_EE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en et de"
MAKEOPTS="-j3"
USE="X acl acpi alsa amd64 apache2 aspell berkdb bindist bzip2 cairo caps cdr cli consolekit cracklib crypt cups dbus directfb djvu doc dri dvd dvdr dvdread eds emboss encode esd evo exif faac faad fam fbcon firefox flac fortran gdbm gif git glitz gmp gnokii gnutls gpm gstreamer gtk hal hdri htmlhandbook iconv icu idn ipv6 isdnlog jbig jpeg jpeg2k kde kdeprefix kontact kpathsea latex lcms libnotify lua lzma lzo mad mailwrapper md5sum midi mikmod mmx mng mp3 mp4 mpeg mudflap multilib mysql ncurses nptl nptlonly ogg opengl openmp pam pcre pdf perl phonon php pic plasma png postgres ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl semantic-desktop session snmp source spell spl sqlite sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd threads tiff truetype ucs2 unicode usb vorbis webkit xcb xcomposite xetex xinerama xml xorg xprint xscreensaver xulrunner xv zlib" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

x11-libs/libdrm-2.4.11 
media-libs/mesa-7.4.2 
x11-base/xorg-server-1.5.3-r6 
x11-drivers/xf86-video-intel-2.7.1
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-05-25 08:05:58 UTC
please attach Xorg.log, output of lspci -vvnn, xorg.conf, kernel config.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-05-25 08:08:04 UTC
and eix -I acpi
Comment 3 Jaak Ristioja 2009-05-25 08:34:31 UTC
Created attachment 192373 [details]
xorg.conf
Comment 4 Jaak Ristioja 2009-05-25 08:34:50 UTC
Created attachment 192375 [details]
kernel config
Comment 5 Jaak Ristioja 2009-05-25 08:35:13 UTC
Created attachment 192377 [details]
Output of lspci -vvnn
Comment 6 Jaak Ristioja 2009-05-25 08:38:42 UTC
# eix -I acpi
[I] sys-power/acpid
     Available versions:  1.0.4-r5 1.0.6-r1 ~1.0.10 1.0.10_p3 {doc logrotate}
     Installed versions:  1.0.10_p3(14:35:51 07.05.2009)
     Homepage:            http://acpid.sourceforge.net
     Description:         Daemon for Advanced Configuration and Power Interface

I'll try to get a Xorg.0.log of the crash ASAP.
Comment 7 Jaak Ristioja 2009-05-25 09:01:49 UTC
Created attachment 192378 [details]
Xorg.0.log.old

Xorg.0.log.old doesn't show much. And I also couldn't get the kernel to crash on it this time, even after crashing X several times by logging in running tremulous. Here's all what was at the end of dmesg:

[  401.708310] [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0
[  417.614211] nepomukservices[5137]: segfault at 82 ip 00007f6a3a9b7189 sp 00007fff42f979a0 error 4 in libQtCore.so.4.5.1[7f6a3a95f000+214000]
[  427.085483] [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0

The only Xorg related upgrade I've done since filing this bug is the upgrade of x11-proto/xproto from 7.0.14 to 7.0.15.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2009-05-25 09:52:25 UTC
I CCed the kernel guys because I am not sure whether it is just because of the drivers or also from the kernel. Googling revealed that it is maybe also linked to acpi.
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2009-05-25 10:02:43 UTC
Can you try xorg-server-1.6.0 with the latest intel drivers ( 2.7.1 ) . Thanks
Comment 10 Jaak Ristioja 2009-05-25 10:39:56 UTC
(In reply to comment #9)
> Can you try xorg-server-1.6.0 with the latest intel drivers ( 2.7.1 ) . Thanks
> 

Same thing. This time I also got a kernel bug:

[  155.011680] [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 0
[  168.537687] nepomukservices[4917]: segfault at 7f4200000082 ip 00007f4207096189 sp 00007fff0f678080 error 4 in libQtCore.so.4.5.1[7f420703e000+214000]
[  371.679253] ------------[ cut here ]------------
[  371.679257] kernel BUG at drivers/gpu/drm/i915/i915_gem.c:3389!
[  371.679259] invalid opcode: 0000 [#1] PREEMPT SMP 
[  371.679262] last sysfs file: /sys/devices/virtual/backlight/acpi_video1/brightness
[  371.679263] CPU 1 
[  371.679265] Modules linked in: snd_seq snd_seq_device vboxnetflt vboxdrv snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_timer snd snd_page_alloc
[  371.679274] Pid: 5325, comm: X Not tainted 2.6.29-gentoo-r4-arm #1 ESPRIMO Mobile U9210
[  371.679275] RIP: 0010:[<ffffffff8047bcd8>]  [<ffffffff8047bcd8>] i915_gem_entervt_ioctl+0x108/0x120
[  371.679282] RSP: 0018:ffff880136645e08  EFLAGS: 00010283
[  371.679283] RAX: ffff88013eafdc90 RBX: ffff88013eafd000 RCX: ffff88013eafd000
[  371.679285] RDX: ffff88012505c500 RSI: ffff880136645c24 RDI: ffff88013e628000
[  371.679286] RBP: ffff880136645e28 R08: 000000013e7e5000 R09: 0000000000000000
[  371.679287] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
[  371.679289] R13: ffff88013e628000 R14: ffff88013e628020 R15: 0000000000006459
[  371.679291] FS:  00007fd02014d6f0(0000) GS:ffff88013fa7b080(0000) knlGS:0000000000000000
[  371.679292] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  371.679294] CR2: 00000000017e1068 CR3: 0000000137192000 CR4: 00000000000406e0
[  371.679295] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  371.679297] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  371.679298] Process X (pid: 5325, threadinfo ffff880136644000, task ffff88012516c620)
[  371.679300] Stack:
[  371.679300]  0000000000000059 ffff88013e628000 ffff8801215eeb40 0000000000000000
[  371.679303]  ffff880136645e88 ffffffff80460ec2 ffff880136645e98 0000000000000000
[  371.679306]  ffffffff8047bbd0 0000000000000000 ffff88013e62803c ffff8801215ee000
[  371.679309] Call Trace:
[  371.679311]  [<ffffffff80460ec2>] drm_ioctl+0x112/0x330
[  371.679314]  [<ffffffff8047bbd0>] ? i915_gem_entervt_ioctl+0x0/0x120
[  371.679317]  [<ffffffff802cc07d>] vfs_ioctl+0x7d/0xa0
[  371.679320]  [<ffffffff802cc128>] do_vfs_ioctl+0x88/0x580
[  371.679322]  [<ffffffff8026037f>] ? hrtimer_start_range_ns+0xf/0x20
[  371.679326]  [<ffffffff802cc66a>] sys_ioctl+0x4a/0x80
[  371.679328]  [<ffffffff8020bb5b>] system_call_fastpath+0x16/0x1b
[  371.679331] Code: 80 31 c0 e8 3e ff 29 00 c7 83 40 0d 00 00 00 00 00 00 e9 44 ff ff ff 0f 0b eb fe 0f 1f 84 00 00 00 00 00 0f 0b eb fe 0f 1f 40 00 <0f> 0b eb fe 0f 1f 40 00 0f 0b eb fe 66 66 66 2e 0f 1f 84 00 00 
[  371.679356] RIP  [<ffffffff8047bcd8>] i915_gem_entervt_ioctl+0x108/0x120
[  371.679359]  RSP <ffff880136645e08>
[  371.679361] ---[ end trace 277701d5297a0258 ]---
[  373.370244] [drm:gm45_get_vblank_counter] *ERROR* trying to get vblank count for disabled pipe 1

PS: And I discovered, that VT switching doesn't work :S
Comment 11 Markos Chandras (RETIRED) gentoo-dev 2009-05-25 10:51:36 UTC
Can you enable CONFIG_DRM_I915_KMS and try again please?
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-05-25 11:48:55 UTC
make that "add i915.modeset=1 to your grub.conf" instead of rebuilding the kernel

Thanks
Comment 13 Jaak Ristioja 2009-05-25 12:13:20 UTC
Setting i915.modeset=1 doesn't crash Xorg 1.6.1.901-r2 when running tremuluos. VT switching also appears to work now. :)
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-05-25 14:24:43 UTC
For KMS, you might want to try the latest git-sources. If that doesn't fix the issue, please file a bug upstream [1] and paste the url here so we can track it.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html