Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260325 - x11-base/xorg-server-1.5.3 won't start with xf86-video-intel: Couldn't bind memory for BO front buffer
Summary: x11-base/xorg-server-1.5.3 won't start with xf86-video-intel: Couldn't bind m...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks: 251832
  Show dependency tree
 
Reported: 2009-02-26 00:33 UTC by Thomas Bettler
Modified: 2009-03-20 19:13 UTC (History)
1 user (show)

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


Attachments
xorg.conf (xorg.conf.new,2.34 KB, text/plain)
2009-02-26 00:37 UTC, Thomas Bettler
Details
Xorg.0.log (Xorg.0.log,8.21 KB, text/plain)
2009-02-26 07:43 UTC, Thomas Bettler
Details
xorg.conf - forcing intel (xorg.conf,342 bytes, text/plain)
2009-02-26 07:57 UTC, Thomas Bettler
Details
Xorg.1.log - forcing intel (Xorg.1.log,15.13 KB, text/plain)
2009-02-26 08:01 UTC, Thomas Bettler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bettler 2009-02-26 00:33:34 UTC
The X server won't start but initially crashes with this message.

Reproducible: Always

Steps to Reproduce:
1. Follow Guidelines in #251832 and install Xserver 1.5.3 and the rest of the zoo.
2. Rebuild xorg.conf with 'X -configure'. Reuse that config.
3. Start X. Here you are.

Actual Results:  
X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.28-gentoo-r2 i686
Current Operating System: Linux unser 2.6.28-gentoo-r2 #2 SMP PREEMPT Sat Feb 21 22:01:48 CET 2009 i686
Build Date: 26 February 2009  12:12:31AM

        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Feb 26 01:24:30 2009
(++) Using config file: "/root/xorg.conf.new"
(EE) intel(0): Failed to pin front buffer: Cannot allocate memory

Fatal server error:
Couldn't bind memory for BO front buffer


Expected Results:  
a running X.
Comment 1 Thomas Bettler 2009-02-26 00:35:33 UTC
dmesg:
[drm:i915_gem_object_bind_to_gtt] *ERROR* GTT full, but LRU list empty
[drm:i915_gem_object_pin] *ERROR* Failure to bind: -12
Comment 2 Thomas Bettler 2009-02-26 00:37:54 UTC
Created attachment 183208 [details]
xorg.conf
Comment 3 Thomas Bettler 2009-02-26 00:38:46 UTC
uname -a
Linux unser 2.6.28-gentoo-r2 #2 SMP PREEMPT Sat Feb 21 22:01:48 CET 2009 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
Comment 4 Thomas Bettler 2009-02-26 00:39:37 UTC
emerge --info:
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r2-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-glibc2.0
Timestamp of tree: Wed, 25 Feb 2009 20:10:10 +0000
distcc 3.0 i686-pc-linux-gnu [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.6.2
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.28-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/lib/openoffice/share/dict/ /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/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/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="buildpkg collision-protect distcc distlocks fixpackages parallel-fetch protect-owned 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,-O1"
LINGUAS="en de"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi akode akonadi alsa apache2 arts avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdr cli cracklib crypt cups curl daap dbus dri dts dvd dvdread eds emboss encode evo exif fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif gimp glut google-gadgets gphoto2 gpm gstreamer gtk hal htmlhandbook iconv imagemagick ipv6 isdnlog java jpeg jpeg2k kde kdehiddenvisibility kdeprefix kipi kontakt lcms libnotify logrotate mad midi mikmod mmap mmx mng mp3 mpeg mudflap musicbrainz mysql ncurses nepomuk nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pch pcre pdf perl plasma png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba scanner sdl semantic-desktop session slp spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcpd tetex theora tiff truetype unicode usb vcd vorbis win32codecs x86 xattr xcb xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zeroconf zlib" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse vmmouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="vga vesa fbdev vmware nv ati radeon radeonhd intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2009-02-26 00:56:53 UTC
X -configure is mildly broken. Please try running X without any xorg.conf and please attach the full resulting Xorg.0.log.

Thanks
Comment 6 Thomas Bettler 2009-02-26 07:43:24 UTC
Created attachment 183229 [details]
Xorg.0.log

Unfortunately running without xorg.conf works neither.
Comment 7 Thomas Bettler 2009-02-26 07:48:00 UTC
well, appending lspci for completeness.

# lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
05:02.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5782 Gigabit Ethernet (rev 03)
05:09.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 6c)
05:0a.0 Ethernet controller: 3Com Corporation 3cSOHO100-TX Hurricane (rev 30)
Comment 8 Thomas Bettler 2009-02-26 07:56:23 UTC
Seems like the built-in configuration falls back to fbdev, which probably happens because of the crashing intel driver.
Comment 9 Thomas Bettler 2009-02-26 07:57:51 UTC
Created attachment 183231 [details]
xorg.conf - forcing intel
Comment 10 Pacho Ramos gentoo-dev 2009-02-26 07:58:58 UTC
In http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512200 a reporter says that this could work with kernel 2.6.26 for now
Comment 11 Thomas Bettler 2009-02-26 08:01:08 UTC
Created attachment 183235 [details]
Xorg.1.log - forcing intel

dmesg happens to say:
[drm:i915_gem_object_bind_to_gtt] *ERROR* GTT full, but LRU list empty
[drm:i915_gem_object_pin] *ERROR* Failure to bind: -12
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-02-26 10:51:25 UTC
Well of course it's going to work with kernels <2.6.27 since those don't have GEM and the driver falls back to older code paths...

Thomas, could you try removing the fbdev driver which somehow seems to have a higher priority than the intel one?

Oh, and if you have any sort of kernel framebuffer driver (vesafb, uvesafb or intelfb), please disable them.

Thanks
Comment 13 Thomas Bettler 2009-02-26 17:52:38 UTC
It even kind of works with kernel 2.6.27 ... however dri won't work:
xserver 1.5.* requires >= mesa 7.3 and that uses GEM instead of TTM which OTOH requires >= kernel 2.6.28

So with that in mind it becomes clear that we shouldn't go stable with xserver w/o dri. We need to get X running on kernel 2.6.28 - or we will crash intel cards.
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-02-26 23:20:56 UTC
(In reply to comment #13)
> It even kind of works with kernel 2.6.27 ... however dri won't work:
> xserver 1.5.* requires >= mesa 7.3

Nope, xorg-server 1.5 works fine with libdrm 2.3 + mesa 7.2 + -intel 2.4 as well. I actually recommend this combo if newer versions of the intel drivers don't work out for you.

> So with that in mind it becomes clear that we shouldn't go stable with xserver
> w/o dri. We need to get X running on kernel 2.6.28 - or we will crash intel
> cards.

I think we'll stabilize the latest versions, but we will definitely keep the versions I just mentioned for a while, at least until things start to work for a really high percentage of users.

Thanks
Comment 15 Thomas Bettler 2009-02-27 12:44:17 UTC
Remi, you are only partly right.

1) yes, xorg-server-1.5.3 also works with mesa 7.1 / 7.2

2) however TTM has been disabled after mesa 7.0.4 ! See commit log for details: http://cgit.freedesktop.org/mesa/mesa/commit/?h=mesa_7_2_branch&id=eb10cdc838fc31ea2cf59f556f6f7d8b072f5bae

So X will work with the proposition in comment 14, but dri still won't work - as TTM got disabled...


Any other helping ideas ? - If not I propose to not yet stabilize until this issue gets a reliable resolution.
Comment 16 Rémi Cardona (RETIRED) gentoo-dev 2009-02-27 12:53:24 UTC
(In reply to comment #15)
> So X will work with the proposition in comment 14, but dri still won't work -
> as TTM got disabled...

You'll get the old DRI, the one that existed long before TTM. The one that's been available for the better part of this century. Yes, you'll get the warning message that will tell you TTM is not available, but it's only a warning. Just ignore it.

> Any other helping ideas ? - If not I propose to not yet stabilize until this
> issue gets a reliable resolution.

No, we will continue the stabilization effort. We cannot hold back so many improvements any longer, even if some users are going to be temporarily left out.

The real solution is to fix this upstream as there's nothing I can do to help you, I'm just a packager.

Please try the libdrm/mesa/-intel combo I suggested, that should get you a running system.
Comment 17 Thomas Bettler 2009-02-27 13:06:48 UTC
Well, Rémi, I did already as you suggested try your combo and the result is sloooooooow. GLPerformance is dropping from 400 to 25 !

Please consider upstream issues and don't blame all the intel users, only favoring radeon and nvidia hardware.
Comment 18 Rémi Cardona (RETIRED) gentoo-dev 2009-02-27 14:34:25 UTC
Listen, I'm not blaming users, I'm myself very much impacted by all the new code that's hitting Xorg these days. I have an 855 laptop, I know it's difficult.

Meanwhile, I want Gentoo to move on, like EVERY distro is doing. I know very well this upgrade WILL upset some users, it's not something I enjoy doing. Trust me, I'd rather things were different.

Try to understand *my* point of view when I say I *cannot* support every single Intel laptop out there. We just can't, not with the resources we have.

So please, if you want to vent your frustration, go talk to upstream. They are the *only* ones capable of fixing your bug.

Thanks
Comment 19 Rémi Cardona (RETIRED) gentoo-dev 2009-02-27 14:35:54 UTC
Oh and for the record, the X11 team's policy is to never ever again get held up by proprietary drivers.

With that in mind, I don't think it's fair for you to accuse us of favoring those users...