Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201519 - X lockups with xf86-video-i810-2.2.0
Summary: X lockups with xf86-video-i810-2.2.0
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Rémi Cardona (RETIRED)
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-06 20:53 UTC by Daniel Ostrow (RETIRED)
Modified: 2008-02-27 12:22 UTC (History)
15 users (show)

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


Attachments
xorg.conf (xorg.conf,3.03 KB, text/plain)
2007-12-06 20:54 UTC, Daniel Ostrow (RETIRED)
Details
Xorg crashing on a i915 (Xorg.0.log.crash,25.72 KB, text/plain)
2008-01-08 09:56 UTC, Tobias Jakobi
Details
log of working Xorg with intel 2.2.0-r1 (Xorg.0.log,39.07 KB, text/plain)
2008-01-10 13:55 UTC, dark_mail
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ostrow (RETIRED) gentoo-dev 2007-12-06 20:53:18 UTC
X (x11-base/xorg-server-1.4-r2) has lockups several times daily, sometimes without any form of user interaction when using x11-drivers/xf86-video-i810-2.2.0.

Hardware is:

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)

The error is:

Error in I830WaitLpRing(), timeout for 2 seconds
pgetbl_ctl: 0x1ffc0001 pgetbl_err: 0x10
ipeir: 0 iphdr: 7d000006
LP ring tail: 12138 head: 11fec len: 1f001 start 0
eir: 0 esr: 10 emr: ffff
instdone: fa41 instpm: 0
memmode: 306 instps: 800f00c4
hwstam: fffe ier: 2 imr: 8 iir: a0
Ring at virtual 0xa78e5000 head 0x11fec tail 0x12138 count 83
    00011f6c: 00000000
    00011f70: 00000000
    00011f74: 7f1c0011
    00011f78: 3f600000
    00011f7c: 3f600000
    00011f80: 3f800000
    00011f84: 3f800000
    00011f88: 3f800000
    00011f8c: 3f800000
    00011f90: be000000
    00011f94: 3f600000
    00011f98: 00000000
    00011f9c: 3f800000
    00011fa0: 00000000
    00011fa4: 3f800000
    00011fa8: be000000
    00011fac: be000000
    00011fb0: 00000000
    00011fb4: 00000000
    00011fb8: 00000000
    00011fbc: 00000000
    00011fc0: 02000011
    00011fc4: 00000000
    00011fc8: 54f00006
    00011fcc: 03cc0070
    00011fd0: 00000000
    00011fd4: 0001001b
    00011fd8: 00c00fe0
    00011fdc: 00000000
    00011fe0: 00000070
    00011fe4: 00c00f70
    00011fe8: 7d000006
    00011fec: 00000003
Ring end
space: 130732 wanted 131064
(II) intel(0): [drm] removed 1 reserved context for kernel
(II) intel(0): [drm] unmapping 8192 bytes of SAREA 0xdfc73000 at 0xb7af4000
(II) intel(0): [drm] Closed DRM master.

Fatal server error:
lockup

(II) AIGLX: Suspending AIGLX clients for VT switch
(II) intel(0): fbc disabled on plane a
Error in I830WaitLpRing(), timeout for 2 seconds
pgetbl_ctl: 0x1ffc0001 pgetbl_err: 0x10
ipeir: 0 iphdr: 7d000006
LP ring tail: 12140 head: 11fec len: 1f001 start 0
eir: 0 esr: 10 emr: ffff
instdone: fa41 instpm: 0
memmode: 306 instps: 800f00c4
hwstam: fffe ier: 2 imr: 8 iir: a0
Ring at virtual 0xa78e5000 head 0x11fec tail 0x12140 count 85
    00011f6c: 00000000
    00011f70: 00000000
    00011f74: 00000011
    00011f78: 00000000
    00011f7c: 00000000
    00011f80: 00000000
    00011f84: 00000000
    00011f88: 00000000
    00011f8c: 00000000
    00011f90: 00000000
    00011f94: 00000000
    00011f98: 00000000
    00011f9c: 00000000
    00011fa0: 00000000
    00011fa4: 00000000
    00011fa8: 00000000
    00011fac: 00000000
    00011fb0: 00000000
    00011fb4: 00000000
    00011fb8: 00000000
    00011fbc: 00000000
    00011fc0: 00000011
    00011fc4: 00000000
    00011fc8: 00000006
    00011fcc: 00000070
    00011fd0: 00000000
    00011fd4: 0000001b
    00011fd8: 00000fe0
    00011fdc: 00000000
    00011fe0: 00000070
    00011fe4: 00000f70
    00011fe8: 00000006
    00011fec: 00000003
Ring end
space: 130724 wanted 131064

FatalError re-entered, aborting
lockup 

xorg.conf attached for reference.

emerge --info for reference:

Portage 2.1.4_rc7 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r0, 2.6.24-rc2 x86_64)
=================================================================
System uname: 2.6.24-rc2 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Tue, 04 Dec 2007 23:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-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 /var/lib/bongo"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs cvs digest distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF8"
LC_ALL="en_US.UTF8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dostrow/local/overlays/portage /home/dostrow/local/overlays/tango"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 7zip X a52 aac aalib acl acpi alsa amd64 arj avahi bash-completion battery berkdb bitmap-fonts bzip2 cairo cdaudio cdparanoia cdr clamav cli cpufreq cracklib crypt cups dbus divx dri dvd dvdr dvdread eds emboss encode esd evo exif fam fastcgi ffmpeg firefox flac foomaticdb fortran gdbm gif glitz gmedia gnome gnutls gpm gstreamer gtk hal howl-compat iconv ieee1394 imagemagick ipod isdnlog jack java jpeg jpeg2k kerberos lha libburn libnotify libsexy lm_sensors logrotate lua mad mdnsresponder-compat memcache midi mikmod mmx mono mozbranding mp3 mpeg msn mudflap muine musepack ncurses nls no-seamonkey nptl nptlonly nsplugin offensive ogg opengl openmp oracle oss pam pcmcia pcre pdf perl plugins png ppds pppd python qt3support quicktime rar readline realmedia reflection rrdtool rtc ruby samba sdl sensord serpentine server session snmp spell spl sse sse2 ssl startup-notification streamripper svg tcl tcltk tcpd theora thunar-vfs tiff tk truetype truetype-fonts type1-fonts unicode usb vidcap vim vorbis webdav wifi wlan wma wmf wmp xattr xine xinerama xml xorg xv xvid zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Ostrow (RETIRED) gentoo-dev 2007-12-06 20:54:05 UTC
Created attachment 137900 [details]
xorg.conf
Comment 2 Andrew Todd 2007-12-07 03:22:01 UTC
I am also experiencing this bug. I also have an Intel 945GM.
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2007-12-07 13:42:13 UTC
I haven't tried 2.2.0 just yet. Donnie bumped it before giving it to me. I own an 855, I'll let you guys know how it works for me this weekend.

If either could post your traces in the xorg-devel mailing list, because I haven't seen anything resembling in the past couple of weeks.

FYI, there are some _major_ changes in this release wrt DRI and memory management. And I fear this release might be bumpy until 2.2.1 or even .2

Thanks
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2007-12-08 10:24:17 UTC
In only an hour using 2.2.0, I had 3 crashes and 2 lockups when using Xv...

I'm tempted to p.mask 2.2.0 for now.
Comment 5 Giacomo Graziosi 2007-12-15 22:14:50 UTC
I can confirm this bug: xf86-video-i810-2.2.0 gives me random crashes and after every crash I am unable to switch to a terminal or restart X, looks like a kernel freeze.
Going back to version 2.1.0 seems to have stopped the problems.
Comment 6 Robert Buchholz (RETIRED) gentoo-dev 2007-12-17 02:00:37 UTC
(In reply to comment #4)
> In only an hour using 2.2.0, I had 3 crashes and 2 lockups when using Xv...
> 
> I'm tempted to p.mask 2.2.0 for now.

Please do. It totally distorts display on my X3100 965, too while 2.1.1 worked fine.
Comment 7 Timothy Stotts 2007-12-17 19:43:38 UTC
(In reply to comment #2)
> I am also experiencing this bug. I also have an Intel 945GM.
> 

Same card. No crashes here. However, X flickers the laptop panel approx. once per minute. The external LCD works fine. XrandR is completely broken; enable/disable and adjust of outputs doesn't work.

Unfortunately, with xorg-server 1.4, 2.2.0 appears the minimum for DRM to work.
Comment 8 Rene Gass 2007-12-17 19:52:42 UTC
(In reply to comment #6)
> Please do. It totally distorts display on my X3100 965, too while 2.1.1 worked
> fine.

If you mean broken display of GIF/JPEG/whatever images, that may be caused by
  Option "AccelMethod" "EXA"
Please try "XAA" instead.

Regarding crashes, I only manage to crash my X if I hide/unhide my Amarok window quickly (using a global hotkey to hide/unhide Amarok's window and keeping that hotkey pressed). Other than that, the 2.2.0 driver is stable for me (965G on an Intel mainboard, that is).
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2007-12-18 06:41:20 UTC
@Timothy

DRM works fine with 2.1.1
Comment 10 Julien 2007-12-21 11:31:32 UTC
(In reply to comment #7)
> ...However, X flickers the laptop panel approx. once
> per minute. The external LCD works fine.

Same problem with version 2.2 (on Intel Corporation Mobile 945GM/GMS) @ 1280x800@60Hz.

Related bug on freedesktop:
https://bugs.freedesktop.org/show_bug.cgi?id=11239
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2007-12-21 13:07:17 UTC
Thanks for trying the driver.

I got word of a patch for Xv related issues, I need to try it and maybe push it to portage.
Comment 12 Stanislav Lechev 2007-12-26 00:10:37 UTC
just for the count...
no troubles at all on GM965/GL960 @ 1680x1050
Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2007-12-27 16:39:45 UTC
Alright folks, I just pushed xf86-video-i810-2.2.0-r1 with a patch that will be included in the next release.

It only fixes Xv issues, please try this driver ASAP (it's not masked).

Thanks
Comment 14 Tobias Jakobi 2008-01-08 09:55:44 UTC
Hi there,

I'm also experiencing the X lockups. I was previously using xf86-video-i810-2.2.0 with xorg-server-1.4-r2. Going to attach a Xorg.log when X crashed while using this combination.

I did however update xorg-server to 1.4.9.90 and xf86-video-i810 to 2.2.0-r1. The XVideo problems are indeed gone, but the X-crashing is still there.

When X crashes I get a garbled screen and the server seems to restart, but not succesfully. I get a black screen after a while, but the system is still responding. VT switching does not work, I always do a ctrl-alt-del at this point to restart the entire system. That brings the visuals back.

The last output in the Xorg.0.log.old is:
(WW) intel(0): ESR is 0x00000010, page table error
(WW) intel(0): PGTBL_ER is 0x00000010, display A pte
(WW) intel(0): PRB0_CTL (0x0001f001) indicates ring buffer enabled
(WW) intel(0): PRB0_HEAD (0x3ae16684) and PRB0_TAIL (0x00016c38) indicate ring buffer not flushed
(WW) intel(0): Existing errors found in hardware state.

That's nearly (?) the same as in the attached log.
Comment 15 Tobias Jakobi 2008-01-08 09:56:29 UTC
Created attachment 140452 [details]
Xorg crashing on a i915
Comment 16 dark_mail 2008-01-10 13:51:39 UTC
I defense of 2.2.0-r1, I can say it works or me on a 915 chip.

Sometimes the screen flickers (goes black), but only for an instant, and is normal again aftewards.

I'm using kernel 2.6.23-tuxonice-r6, Intel 915 with 1400x1050 (if that's relevant).
Adding last Xorg.log, gives a couple of warnings, but nothing serious IMHO.
Comment 17 dark_mail 2008-01-10 13:55:04 UTC
Created attachment 140606 [details]
log of working Xorg with intel 2.2.0-r1
Comment 18 Robert Bradbury 2008-01-14 14:01:20 UTC
(In reply to comment #16)
> I defense of 2.2.0-r1, I can say it works or me on a 915 chip.
> 

I concur regarding the 915 chip.  I'm runing X Server 1.4.0.90 and i810_drv.so version 2.2.0.  It works fairly well when using only a single virtual terminal.  It corrects what I would call a video "echo" problem where any video (mplayer, flash, etc.) would have 3 identical (or nearly so) frames overlaid at widely separated positions in the video frame (perhaps a timing problem???).  I think that problem was in the 2.1.0 driver, perhaps the 2.0.0 driver as well.  Video did work on the 1.x.x drivers.

However, they may still be a problem in the 2.1.1 driver when switching between multiple virtual terminals (only one of which will support DRI) and/or virtual terminals and the console (which is running the intelfb driver).  The X server would hang/crash and there would usually be an error about the ring buffer overflowing.  IMO, more testing needs to be done on extensive X terminal and console terminal (VT) switching. 

The 915 is currently talking to a Dell widescreen LCD @ 1680x1050 after hacking the BIOS to support that resolution using the 915resolution program.
Comment 19 Rémi Cardona (RETIRED) gentoo-dev 2008-01-24 13:52:07 UTC
I've just added a snapshot of the upcoming 2.2.1 release, as upstream wants
more testing before making official releases.

Please try this snapshot on top of xorg-server-1.4.0.90. If it isn't fixed,
please open a bug in freedesktop's bugzilla [1] and paste the url here.

Thanks

[1] https://bugs.freedesktop.org/
Comment 20 Andrew Todd 2008-01-27 03:10:54 UTC
I've opened a bug on freedesktop.org, as I'm still seeing problems.

https://bugs.freedesktop.org/show_bug.cgi?id=14263
Comment 21 Rémi Cardona (RETIRED) gentoo-dev 2008-01-27 07:21:43 UTC
Alright, thanks for testing. Let's see what upstream does :)
Comment 22 Tobias Jakobi 2008-01-27 15:00:06 UTC
I'm also testing the pre-2.2.1 release but I haven't encountered any errors during normal work. So only thing that stopped working for me is suspending. I can't get the system out of standby mode without killing the graphics adapter. Only ACPI events, ctrl-alt-del and sysrq works after that. I can't even do a blind switch to console and do something there. Haven't tried sshd though.

Greets,
Tobias
Comment 23 Alex 2008-02-12 06:41:14 UTC
Has anyone of you a virtual screen size wider than 2048 pixels? 
I tried that to get XRandR working with expanding the desktop over two monitors but everything that's above 2048 leads to a crash with the same "space: 130724 wanted 131064" message as metioned here.
This happens for me with every 2.x version of the driver (1.7.x doesn't work with XRandR so I can't downgrade).
Comment 24 Rémi Cardona (RETIRED) gentoo-dev 2008-02-12 08:07:34 UTC
That "Virtual" screen size is not virtual at all, it's the size of the framebuffer:

 - it has to be set in xorg.conf because for now, the driver can't resize it dynamically
 - on i915 and bellow, the framebuffer can't be larger than 2048x2048. It's a limitation of the hardware. If I'm not mistaken, i945 has a bigger limit (4096x4096) and i965 was designed from the ground up not to have such a limit.

In a nutshell, we (I have an i855 laptop) are screwed :)

But for now, let's keep this bug on topic. @all here: have you tried 2.2.0.90? Does it help at all?

Thanks
Comment 25 Robert Buchholz (RETIRED) gentoo-dev 2008-02-13 20:11:50 UTC
I see all the weirdest behaviour with 2.2.0.90. Bascially what happens is that the image is not updated in certain areas of the screen. Think: Characters in the bugzilla text field not disappearing when i hit backspace, or marked text is not actually marked. Same happens in the console, where the last entered command does not disappear when i hit return (feels weird).
Comment 26 Robert Buchholz (RETIRED) gentoo-dev 2008-02-13 20:13:27 UTC
Oh, it's a GMA X3100 graphics, not sure how that translates to the 9*5 names.
Comment 27 Rémi Cardona (RETIRED) gentoo-dev 2008-02-13 22:51:58 UTC
X3100 is i965.

Robert, you're having a bug that I have never heard of in the past 6 months I've been closely following the development of the intel driver.

I strongly advise you to open a bug in bugs.fd.o so that this can be quickly resolved before the final release. Please add me CC to that bug so I can track patches and what not.

Thanks
Comment 28 Tobias Jakobi 2008-02-14 12:16:23 UTC
I have activated the restart-on-logout option in gdm, so upon logout of the window manager the xorg server does a restart. Sometimes the server won't come up again.

Going to check if I can reproduce this and filter out some interesting details from the X log.
Comment 29 Robert Buchholz (RETIRED) gentoo-dev 2008-02-16 16:13:39 UTC
(In reply to comment #27)
> I strongly advise you to open a bug in bugs.fd.o so that this can be quickly
> resolved before the final release. Please add me CC to that bug so I can track
> patches and what not.

Thanks for encouraging, https://bugs.freedesktop.org/show_bug.cgi?id=14523
Comment 30 Rémi Cardona (RETIRED) gentoo-dev 2008-02-27 12:22:24 UTC
Bug is now in the hands of Intel people :) Closing as there is little I can do here.