Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299458 - media-libs/mesa-7.7-r1: do_ioctls: Failed to get GB pipe count, error number -22
Summary: media-libs/mesa-7.7-r1: do_ioctls: Failed to get GB pipe count, error number -22
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-03 12:05 UTC by Martin Mokrejš
Modified: 2010-01-10 23:08 UTC (History)
1 user (show)

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


Attachments
xdm.log (xdm.log,2.12 KB, text/plain)
2010-01-03 12:07 UTC, Martin Mokrejš
Details
dmesg (dmesg.txt,27.09 KB, text/plain)
2010-01-03 12:08 UTC, Martin Mokrejš
Details
xdm.log (mesa-7.5.2) (xdm.log,3.04 KB, text/plain)
2010-01-03 17:04 UTC, Martin Mokrejš
Details
Xorg.log.0 (mesa-7.5.2) (Xorg.0.log,33.73 KB, text/plain)
2010-01-03 17:04 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2010-01-03 12:05:40 UTC
During startup of xdm the "Xserver" turns off&on my LCD display few times but in the end the screen is black although with some backlight enabled instead of the big X mouse pointer being show by X and later the xdm-login window should have appeared.

in var/log/xdm.log I see:
do_ioctls: Failed to get GB pipe count, error number -22
xdm error (pid 8913): server unexpectedly died
xdm error (pid 8913): Server for display :0 can't be started, session disabled

I looks it could be an old bug or something new?
http://lists.freedesktop.org/archives/mesa-commit/2009-December/014631.html

My hardware is ASUS L3C/S laptop with and old radeon 7500M PCI card.

# emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32 i686)
=================================================================
System uname: Linux-2.6.32-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 01 Jan 2010 15:45:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.5.4-r3, 2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo caps cblas cddb cdparanoia cdr clamav cli colordiff compress consolekit cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gstreamer gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libedit libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug modules motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp openssl pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3support qt4 quicktime rar raw readline recode reflection reiserfs romio rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads thunar tidy tiff tk transcode truetype unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Mokrejš 2010-01-03 12:07:56 UTC
Created attachment 215006 [details]
xdm.log

BTW, have no /etc/X11/xorg.conf, I rely completely on autodetection as the upgrade from 1.6 series xorg-server to 1.7 somehow did not work with my xorg.conf.
Comment 2 Martin Mokrejš 2010-01-03 12:08:08 UTC
Created attachment 215007 [details]
dmesg
Comment 3 Martin Mokrejš 2010-01-03 14:59:28 UTC
This has to do with my upgrade away from x11-base/xorg-server-1.7.3 to x11-base/xorg-server-1.7.3.902 (I cannot revert as the original ebuild is now gone from portage), or x11-libs/libdrm-2.4.15 to x11-libs/libdrm-2.4.17 transition or lest likely with app-laptop/radeontool-1.5-r3 to app-laptop/radeontool-1.6. upgrade.

Recompilation of x11-drivers/ libdrm, xorg-server, mesa does not help. I will re-try downgrade of libdrm although I did that without any luck.

BTW, I have x11-drivers/xf86-video-ati-6.12.4 for about two months so that cannot e the cause.
Comment 4 Martin Mokrejš 2010-01-03 17:03:16 UTC
(In reply to comment #3)
> 
> Recompilation of x11-drivers/ libdrm, xorg-server, mesa does not help. I will
> re-try downgrade of libdrm although I did that without any luck.
> 
> BTW, I have x11-drivers/xf86-video-ati-6.12.4 for about two months so that
> cannot be the cause.

So, I tried downgrade of libdrm, xorg-server to 1.7.3-901-r1, recompiled x11-drivers/, mesa-7.7-r1, no luck.

I finally have a functional system (getting xdm login) after downgrade to media-libs/mesa-7.5.2. I will attach xdm.log and X.org.log files for this working situation.
Comment 5 Martin Mokrejš 2010-01-03 17:04:28 UTC
Created attachment 215050 [details]
xdm.log (mesa-7.5.2)
Comment 6 Martin Mokrejš 2010-01-03 17:04:51 UTC
Created attachment 215052 [details]
Xorg.log.0  (mesa-7.5.2)
Comment 7 Martin Mokrejš 2010-01-03 17:19:19 UTC
And, decent upgrade of mesa to media-libs/mesa-7.6.1 did not break my system so I conclude the bug got introduced between 7.6.1 and 7.7.
Comment 8 Corbin Simpson 2010-01-03 19:52:31 UTC
You are using Radeon Gallium without KMS enabled. This will never work.

Not sure how to properly close this. Please file Radeon Gallium bugs upstream and keep in mind that it is testing-quality and not meant for production use.

Also, if the ebuild is enabling Radeon Gallium by default (without USE="gallium") then I would consider that a bug on the ebuild.
Comment 9 Martin Mokrejš 2010-01-03 22:26:16 UTC
If you mean the nomodeset kernel options I can drop then. I was just hoping they they would help. See ArchLinux nice wikipages. They disabled KMS for the whole distro recently until it stabilizes.

Yes, I believe this is an ebuild issue as I do not alter any USE flag for the KMS/gallium stuff. It must come from my profile.

# emerge -pv mesa

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] media-libs/mesa-7.7-r1 [7.6.1] USE="gallium* motif -debug -nptl -pic (-selinux) -xcb" VIDEO_CARDS="radeon -intel -mach64 -mga -none -nouveau% -r128 -radeonhd -savage -sis (-sunffb) -svga% -tdfx -via (-s3virge%) (-trident%)" 0 kB

#


Nevertheless, would you please comment on the "do_ioctls: Failed to get GB pipe count, error number -22" problem? In which version of what package should be the fix. Any clues when was that problem introduced, if it did not exist since e.g. KMS support started to accumulate in that package. Is that really in mesa? 

So "USE=-gallium emerge mesa" should work for me? Does it have to do with the modeset kernel options at all? Thanks.
Comment 10 Corbin Simpson 2010-01-03 23:21:34 UTC
The error is in Mesa, in src/gallium/winsys/drm/radeon/core/radeon_drm.c, and it means that either your video card isn't a Radeon, or that you don't have KMS enabled.

This is not a bug. I explicitly did not write DRI1/UMS/legacy support into the Radeon Gallium code. You must be using KMS and a DRI2-capable Xserver.

To resolve the error, go kick the ebuild and/or profile maintainers, and notify them that there is no good reason to enable Gallium yet, since no Gallium drivers are production-quality at this time.

Also, the version of the Radeon Gallium drivers in Mesa 7.7 is not very stable; even if the USE flag remains on, I would highly encourage removing --enable-gallium-radeon from the configure line for that version of the ebuild.
Comment 11 Martin Mokrejš 2010-01-04 09:12:26 UTC
Thanks for clarifications. I do see some DRI2 messages in the Xorg.log and do not think I asked for that. The chip is from 2001 or so, probably DRI1 only. Maintainers are now CCed so they should have received already their copies. Thanks once again.
Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2010-01-10 23:08:56 UTC
All gallium masked for <=-7.8