Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305989 - framebuffer conflict with X
Summary: framebuffer conflict with X
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-20 08:32 UTC by ta2002
Modified: 2010-03-15 21:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2010-02-20 08:32:22 UTC
After recent upgrades, I could no longer start X. Attempts would produce a black screen that I could not recover from, with the following in /var/log/messages:

Feb 20 05:37:27 system kdm: :0[3714]: Hung in XOpenDisplay(:0), aborting
Feb 20 05:37:27 system kdm: :0[3714]: Cannot connect to :0, giving up
Feb 20 05:37:27 system kdm[3706]: Display :0 cannot be opened
Feb 20 05:40:23 system kernel: [  720.113283] INFO: task i915/0:388 blocked for more than 120 seconds.
Feb 20 05:40:23 system kernel: [  720.113289] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Feb 20 05:40:23 system kernel: [  720.113294] i915/0        D 2f48a752     0   388      2 0x00000000
Feb 20 05:40:23 system kernel: [  720.113302]  f6ba0600 00000046 f683b0e0 2f48a752 00000006 00000001 f6be66f4 f708d410
Feb 20 05:40:23 system kernel: [  720.113312]  f683b0e0 ffffffff f708d414 c1268e6e f708d414 f708d414 f683b0e0 f708d410
Feb 20 05:40:23 system kernel: [  720.113322]  f7022cf4 f7022000 f708d410 c1268ff0 c1026949 f708d400 c115817b f6806d00
Feb 20 05:40:23 system kernel: [  720.113332] Call Trace:
Feb 20 05:40:23 system kernel: [  720.113348]  [<c1268e6e>] ? __mutex_lock_slowpath+0x42/0x63
Feb 20 05:40:23 system kernel: [  720.113353]  [<c1268ff0>] ? mutex_lock+0x16/0x19
Feb 20 05:40:23 system kernel: [  720.113360]  [<c1026949>] ? queue_delayed_work+0x16/0x18
Feb 20 05:40:23 system kernel: [  720.113371]  [<c115817b>] ? i915_gem_retire_work_handler+0x1c/0x54
Feb 20 05:40:23 system kernel: [  720.113377]  [<c115815f>] ? i915_gem_retire_work_handler+0x0/0x54
Feb 20 05:40:23 system kernel: [  720.113383]  [<c10265b0>] ? worker_thread+0xe0/0x14e
Feb 20 05:40:23 system kernel: [  720.113390]  [<c1028c20>] ? autoremove_wake_function+0x0/0x2d
Feb 20 05:40:23 system kernel: [  720.113395]  [<c10264d0>] ? worker_thread+0x0/0x14e
Feb 20 05:40:23 system kernel: [  720.113401]  [<c1028950>] ? kthread+0x6b/0x70
Feb 20 05:40:23 system kernel: [  720.113406]  [<c10288e5>] ? kthread+0x0/0x70
Feb 20 05:40:23 system kernel: [  720.113413]  [<c1002fb3>] ? kernel_thread_helper+0x7/0x10

Other information from /var/log/messages:

Feb 20 05:28:46 system kernel: [    0.122612] pci 0000:00:02.0: Boot video device
Feb 20 05:28:46 system kernel: [    0.122703] pci 0000:05:08.0: Firmware left e100 interrupts enabled; disabling
Feb 20 05:28:46 system kernel: [    0.126362] Linux agpgart interface v0.103
Feb 20 05:28:46 system kernel: [    0.126449] agpgart-intel 0000:00:00.0: Intel 830M Chipset
Feb 20 05:28:46 system kernel: [    0.126853] agpgart-intel 0000:00:00.0: detected 8060K stolen memory
Feb 20 05:28:46 system kernel: [    0.129306] agpgart-intel 0000:00:00.0: AGP aperture is 128M @ 0xf0000000
Feb 20 05:28:46 system kernel: [    0.129859] processor LNXCPU:00: registered as cooling_device0
Feb 20 05:28:46 system kernel: [    0.129919] ACPI: Processor [CPU0] (supports 8 throttling states)
Feb 20 05:28:46 system kernel: [    0.130761] [drm] Initialized drm 1.1.0 20060810
Feb 20 05:28:46 system kernel: [    0.130854] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb 20 05:28:46 system kernel: [    0.130915] i915 0000:00:02.0: setting latency timer to 64
Feb 20 05:28:46 system kernel: [    0.355469] render error detected, EIR: 0x00000010
Feb 20 05:28:46 system kernel: [    0.355476] [drm:i915_handle_error] *ERROR* EIR stuck: 0x00000010, masking
Feb 20 05:28:46 system kernel: [    0.355487] render error detected, EIR: 0x00000010
Feb 20 05:28:46 system kernel: [    0.368783] [drm] DAC-5: set mode 1280x1024 17
Feb 20 05:28:46 system kernel: [    0.387657] Console: switching to colour frame buffer device 160x64
Feb 20 05:28:46 system kernel: [    0.397398] [drm] fb0: inteldrmfb frame buffer device
Feb 20 05:28:46 system kernel: [    0.397472] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

In a moment of desperation, I passed "i915.modeset=0" on the kernel command line (which disabled the framebuffer), and now the (rest of the) system functions normally again.

Note it is much worse (machine locks up immediately and can't even ssh in) with xcb enabled. I disabled the xcb use flag, recompiled libX11, mesa, and phonon, and uninstalled libxcb and xcb-proto just to get it to work at all.

Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 19 Feb 2010 20:30:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests distlocks fixpackages news protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa ass audiofile berkdb bwscheduler bzip2 cairo caps cdio cdr cjk consolekit cracklib crypt css cups cxx dbus dga directfb downloadorder dri dvd dvdnav encode exif expat fam fbcon ffmpeg flac gcj ggi gif glibc-omitfp gmp gphoto2 gpm gstreamer hal handbook hardcoded-tables iconv idea imagemagick imap imlib infowidget ipfilter ipv6 jabber javascript jbig joystick jpeg kde lcms libcaca libnotify libwww live logviewer lzma mad matroska mbox memlimit mmx mmxext mng mp3 mpeg mudflap mysql nas ncurses network nls no-old-linux nodrm nptl nptlonly ntp ogg opengl openmp oscar osdmenu pcre pdf perl pm-utils png qt3support quicktime readline rss rtc scanfolder scanner sdl search shm silc smtp sndfile speex spell sse sse2 ssl stats svg sysfs tcpd theora threads threadsafe tiff timidity tremor truetype unicode upnp usb userlocales vcd vorbis webinterface x86 xinerama xml xorg xv xvid yahoo zlib zrtp" 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="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Let me know what additional information you need.
Comment 1 Rafał Mużyło 2010-02-20 13:04:15 UTC
I'd try the forum first.
I don't have an intel card, but IIRC,
there are plans to make the driver KMS only.
Also, IIRC, KMS doesn't like stuff similar to uvesafb
- it needs to be only thing, that controls display.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2010-03-12 18:36:10 UTC
Update to the latest stable kernel and please _then_ attach your Xorg.0.log.

Thanks
Comment 3 ta2002 2010-03-15 21:52:14 UTC
OK, I finally figured out that I was supposed to disable ALL hardware framebuffer drivers (intel, various shades of vesa) in the configuration. That stopped this problem, though the machine still locks up frequently (a different bug).