Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358899 - x11-base/xf86-video-nouveau breaks system & exits graphical in recent kernels
Summary: x11-base/xf86-video-nouveau breaks system & exits graphical in recent kernels
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 15:35 UTC by Ian Delaney (RETIRED)
Modified: 2011-05-05 09:03 UTC (History)
1 user (show)

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


Attachments
a kerenl config as requested (config-2.6.36-tuxonice,76.57 KB, text/plain)
2011-03-15 21:56 UTC, Ian Delaney (RETIRED)
Details
config 2.6.37-hardened-r5 (config-2.6.37-hardened-r5,82.37 KB, text/plain)
2011-03-16 10:58 UTC, Ian Delaney (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2011-03-14 15:35:55 UTC
The use  of the driver in current kernels causes the system to freeze.
It exits graphical state, exits to a tty.  Some messages displayed on the screen.

Can't copy & paste them.  They are not to be found in /var/log/dmesg or /var/log/messages.
The output on screen clearly implicates the nouveau driver.
First line states along the lines of the kernel can not handle a page request.
A few lines down it cites the nouveau driver.
Wouls include a log if possible, not traceable.  Supposedly error is output to stderr, not to a log.

Reproducible: Sometimes

Steps to Reproduce:
1. Boot in with driver.
2. Execute emerges.
3. Wait.
Actual Results:  
The graphical state suddenly exits, taken to a tty as stated.

Expected Results:  
stable state.

It occurs in current tuxonice kernel, gentoo sources kernel, hardened kernel.
The paging request falure suggests ksm involvement which has a history.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2011-03-14 15:36:35 UTC
idella@genny /usr/src/linux-2.6.37.2 $ emerge --info
Portage 2.1.9.42 (hardened/linux/x86, gcc-4.5.2-hardenednopie, glibc-2.13-r1, 2.6.37.2 i686)
=================================================================
System uname: Linux-2.6.37.2-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 09 Mar 2011 18:45:01 +0000
ccache version 3.1.4 [disabled]
app-shells/bash:     4.2_p7
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1 Attica skype-eula"
CBUILD="i686-pc-linux"
CFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux"
CONFIG_PROTECT="/etc /etc/conf.d/network /etc/conf.d/xdm /etc/libvirt/libvirtd.conf /etc/ssh/sshd_config /etc/xen/xend-config.sxp /etc/xen/xm-config.xml /usr/share/config /usr/share/gnupg/qualified.txt"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"
DISTDIR="/mnt/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=3.4 --keep-going"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo ftp://mirror.isp.net.au/pub/gentoo/  http://mirror.isp.net.au/pub/gentoo/ http://mirror.averse.net/pub/gentoo/"
LDFLAGS="-Wl,-O2,--as-needed -fPIC"
LINGUAS="en"
MAKEOPTS="-j4"
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/portage-btrfs"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="(-altivec) (-aqua) (-cman) (-corefonts%*) (-cups) (-debug%) (-doc%) (-faad%) (-fixed-point) (-gallium) (-gold%) (-google-gadgets) (-iceweasel%) (-introspection) (-ioctl) (-kdeenablefinal) (-kdeprefix) (-libffi) (-libsigsegv%) (-mozdevelop%) (-n32) (-n64) (-nocxx%) (-one%) (-pango%) (-pch) (-pkcs11%) (-ppcsha1) (-ps3) (-python%*) (-real) (-seamonkey%) (-selinux) (-smartcard%) (-sqlite%) (-uclibc) (-vdpau) (-vfs-compat%*) (-vis) (wide-unicode) 3dnowext X a5 aac accessibility acl acpi aio alsa apm armeb arts audiofile avi bash-completion berkdb blksha1 bluetooth bmp bzip2 bzip2%* cairo cairo%* cdr cli client%* consolekit corefonts cpudetection cracklib cris crypt css ctype cups cups%* cxx cxx%* dba dbmaker dbus declarative device-mapper dga dhcp dri dts dv dvd dvdread encode esd eselect ethereal exceptions exif extensions extras fam fbcon ffmpeg fftw fftw* firefox flac fontconfig fortran ftp fts3 gdbm gif glib gnome gnutls gphoto gpm gprof gstreamer gtk gtk%* gtk2 hal hal%* handbook hardcoded-tables hardened http%* i386 iconv imagemagick inifile ioctl ipc ipc%* java jpeg kde kernel-helper kontact ladcca lcms lcms* ldap libg++ libnotify libvirtd lm_sensors lxc m3 mad mbox mdev%* microblaze mime mipsel mmap mmxext mng modplug modules mono mozilla mp3 mpeg msn mudflap musepack mysql ncurses net netapi network nls nptl nptlonly objc ogg openal opengl openmp oss pam pcre perl perl%* pm-utils png png%* pnp policykit posix ppc64abi32 ppcemb pppd pulseaudio python qdbm qt qt3support qt4 quicktime readline ruby samba sasl sasl% sasl%* scanner sdl semantic-desktop server%* session sh4 sh4eb shared slp smbclient sndfile sockets source sparc32plus spell sql sqlite sse sse2 ssl ssse3 startup-notification static-libs static-libs%* svg svga svgtruetype sysfs tcpd theora threads tiff tordns truetype udev udev%* urandom usb v4l videos vorbis webdav webkit webkit* websockets wifi wifi%* win32codecs x264 x86 x86_64 xcb xcb* xen xen* xine xinerama xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="snd_hda_intel" 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="cris i386 m68k microblaze mips mipsel ppc ppcemb sh4 sh4eb arm mips64 sparc x86_64" QEMU_USER_TARGETS="alpha armeb cris i386 m68k microblaze mips mipsel ppc sh4 sh4eb arm ppc64abi32 sparc x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nouveau vesa v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Rafał Mużyło 2011-03-14 16:29:15 UTC
Given the date, it might just be too old for kernel
- nouveau is still in heavy development.
Try either in-kernel or a more recent ebuild.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-03-14 21:53:27 UTC
x11-base/nouveau-drm is not intended for general use. Please enable in-kernel DRM instead.

See http://www.gentoo.org/doc/en/xorg-config.xml#doc_chap2_sect3 for proper kernel configuration.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2011-03-15 07:32:38 UTC
sorry to confuse.  Not the drm package, the regular nouveau driver.

That gentoo link is what I used to incorporate nouveau driver.
Appears to be a regression.  Was working fine, update world and update nouveau xorg driver breaks graphical.

Other hints point at ksm as the underlying common denominator.

in-kernel DRM  was all enabled.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-03-15 10:03:32 UTC
So the problem appears only if ksm is enabled?
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2011-03-15 16:44:32 UTC
(In reply to comment #5)
> So the problem appears only if ksm is enabled?

Chi;

all my kernel config were much the same.  kms was enabled on all.
What i don't understand is the inplication that kms not be set.
From my understanding it's required by nouveau.
Anyway, a hint.
Given this tip, I set gallium in make.conf and remerged and retried. so far with a small amount of usage, hasn't broken X but am currently switching kernels frequently.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-03-15 16:54:06 UTC
Note that kms and ksm are two very different things.
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2011-03-15 17:51:27 UTC
(In reply to comment #7)
> Note that kms and ksm are two very different things.

Chi,

Oh yes, so it is.

 Symbol: DRM_KMS_HELPER [=m]                                                       │   
  │ Symbol: DRM_I915_KMS [=n]                                                         │   
  │ Type  : boolean                                                                   │   
   Symbol: DRM_RADEON_KMS [=n]                                                       │   
  │ Type  : boolean                                                                   │   
   is all I get on searching with / in menuconfig.

So, it did shatter X again.  once again observing the snippet, it reads with

last sysfs cmd  /sys/devices/pci0000:00/0000:00:02.0/..../card0/

this is the video card.
remaining lines are tech jargon, some hex addresses.
Comment 9 Rafał Mużyło 2011-03-15 18:31:40 UTC
For a lack of better ideas, attach your kernel config.

While Linus frown upon it, nouveau is still in a stage where kernel/xorg drivers incompatibilities happen.

On that note, 2.6.38 was released a few hours ago.
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2011-03-15 21:39:30 UTC
(In reply to comment #9)
> For a lack of better ideas, attach your kernel config.
> 
> While Linus frown upon it, nouveau is still in a stage where kernel/xorg
> drivers incompatibilities happen.
> 
> On that note, 2.6.38 was released a few hours ago.

ok,
 one more crash, one more chance to memorise the path, only two folders better atm.

/sys/devices/pci0000:00/0000:00:0b.0/0000:02:00.0/.... .....   .../card0/

I may get to fill that gap if I invoke it some more.
ok I have re-done kernel configs of hardened and two others.
The tuxonice is yet untouched since making the bug so that should be the best choice, it happens to be a 2.6.36, but that shouldn't spoil anything.
As stated, followed the referenced guide in the first place to use the nouveau.
Comment 11 Ian Delaney (RETIRED) gentoo-dev 2011-03-15 21:56:15 UTC
Created attachment 266045 [details]
a kerenl config as requested

config of the 2.6.36-tuxonice kernel
Comment 12 Ian Delaney (RETIRED) gentoo-dev 2011-03-16 10:58:17 UTC
Created attachment 266087 [details]
config 2.6.37-hardened-r5

It may help; was mostly using this hardened kernel, matches the system profile.
On reflection it is also pretty well untouched.  Am using it now and so far it's held; pattern of unpredictability about when and how it crashes.  When it crashes, there's no escape.
Comment 13 Ian Delaney (RETIRED) gentoo-dev 2011-03-16 14:45:23 UTC
devs:
 
kernel 3.6.37 hardened crashed again.  It took aver 2 hours b4 it decided to blow.

General protection  fault ..... SMP

last sysfs file /sys/devices/pci0000:00/0000:00:0b.0/0000:02:00.0/drm/card0/card0-VGA-1/status

................
................
and curiously the mouse was still working.  
.

That I got from this tuxonice kernel system running nouveau, finally figured to use find in /sys.

It's proving slippery, sometimes breaks after 5 minutes, sometimes some hours.
Comment 14 Ian Delaney (RETIRED) gentoo-dev 2011-05-05 05:46:18 UTC
Can probably discard this one.  Tracked down many incidents of system freezing to overheating.  After some fan maintenance, a number of kernels are now stable with nouveau