Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534038 - sys-kernel/gentoo-sources-3.17.7 - nouveau driver fails at system resume - nouveau E[ PGRAPH][0000:01:00.0] PGRAPH TLB flush idle timeout fail
Summary: sys-kernel/gentoo-sources-3.17.7 - nouveau driver fails at system resume - no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-30 21:12 UTC by Łukasz Stelmach
Modified: 2015-01-06 08:56 UTC (History)
0 users

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


Attachments
nouveau lockup log (nouveau-lockup.txt,560.45 KB, text/plain)
2014-12-30 21:13 UTC, Łukasz Stelmach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Stelmach 2014-12-30 21:12:02 UTC
After suspending (ACPI S3) and resuming the system X displays garbage and systems becomes unresponsive. I've had no such problems 3.21.21 kernel.

Reproducible: Always




emerge --info sys-kernel/gentoo-sources x11-drivers/xf86-video-nouveau x11-base/xorg-server x11-libs/libdrm
Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.12.21-gentoo-r1-1stl x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.21-gentoo-r1-1stl-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8200_@_2.66GHz-with-gentoo-2.2
KiB Mem:     6116452 total,   4040292 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Mon, 29 Dec 2014 20:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo local-crossdev bitcoin systemd Stl-Gentoo-Ports
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="AdobeAIRSDK AdobeFlash-10.3 adobe-ps BWidget CCPL-ShareAlike-1.0 dlj-1.1 evieext @FREE freedist gccmakedep imake IPAfont JasPer2.0 lha liblbxutil MOTIF mplus-fonts MSttfEULA NVIDIA perforce SixXS stixbeta unRAR xf86rushproto xorg-cf-files xorg-docs skype-eula PUEL Open-CASCADE-Technology-Public-License-6.3 Oracle-BCLA-JavaSE MPEG-4 AdobeFlash-11.x skype-4.0.0.7-copyright dropbox CC-BY-ND-3.0 NVIDIA-r1 NVIDIA-r2 sun-concurrent-util NVIDIA-CUDA Open-CASCADE-LGPL-2.1-Exception-1.0"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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="-march=nocona -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.po.opole.pl"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/var/portage/packages/amd64"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/lib/crossdev /var/lib/layman/bitcoin /var/lib/layman/systemd /usr/local/portage"
SYNC="rsync://rsync1.pl.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr animgif ao aotuv audiofile avahi berkdb bidi bluetooth bzip2 cairo caps cddb cdio cdparanoia cdr cjk cli consolekit cracklib crypt cryptsetup cscope cups curl cvs cxx cyryllic dbus device-mapper dirac djvu dot dri dvd dvdr dvdread emacs encode equalizer esd evo exif expat faac faad fam ffmpeg fftw firefox flac fontconfig fortran fuse gd gdbm gif gimp glib glitz gmp gnuplot gnus gnustep gnutls gpg gpgme gpm gps gs gsl gsm gstreamer gtk hddtemp iconv icu id3 id3tag idn ieee1394 imagemagick imlib inotify introspection ipod ipv6 irda jabber jingle jpeg jpeg2k kerberos kpathsea ladspa latex lcdfilter lcms ldap libcanberra libnotify libsamplerate lm_sensors lua lzma lzo mad matroska mbox md5sum midi mikmod mmap mmx mmxext mng mod modules mp3 mp4 mpeg mtp multilib musepack ncurses network-cron nls nptl nsplugin ntp objc objc++ objc-gc offensive ogg openexr opengl openmp pam pcre pdf perl pgo plotutils png policykit ppds pth pulseaudio python qt3 qt4 quicktime rdesktop readline ruby sasl schroedinger sdl session smp sndfile socks5 sound soundtouch speex spell sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification subversion svg syslog system-sqlite systemd taglib tcl tcpd theora threads thunar tiff timidity tk truetype udev unicode usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx wavpack webdav wifi win32codecs wps wxwindows x264 xattr xcb xft xinerama xml xmp xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="emu10k1x ens1371 hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="systemd" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm i386 mips mipsel" QEMU_USER_TARGETS="aarch64 arm armeb i386 mips mipsel mipsn32 mipsn32el x86_64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau nv fbdev v4l vesa vga dummy" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================


sys-kernel/gentoo-sources-3.12.21-r1 was built with the following:
USE="-build -deblob -experimental -symlink" ABI_X86="64"


sys-kernel/gentoo-sources-3.17.7 was built with the following:
USE="-build -deblob -experimental -symlink" ABI_X86="64"


x11-drivers/xf86-video-nouveau-1.0.10 was built with the following:
USE="" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-base/xorg-server-1.15.0 was built with the following:
USE="ipv6 kdrive nptl suid udev xorg xvfb -dmx -doc -minimal (-selinux) -static-libs -tslib -unwind -xnest" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-libs/libdrm-2.4.58 was built with the following:
USE="-libkms -static-libs" ABI_X86="64 -32 -x32" VIDEO_CARDS="nouveau -exynos -freedreno -intel -omap -radeon -vmware"
Comment 1 Łukasz Stelmach 2014-12-30 21:13:26 UTC
Created attachment 392712 [details]
nouveau lockup log

All the messages from the nouveau driver since system bootup.
Comment 2 Łukasz Stelmach 2015-01-01 20:38:24 UTC
I searched for the regression between v3.12 and v3.17. Everything up to and including v3.14 (i.e. 3.1[234]) works fine. Everything above and including v3.15 breaks. I chose to bisect changes made to drivers/gpu/drm/nouveau between these two versions.

$ git --oneline --decorate --graph ^4dedde7 ^v3.14 v3.15 6ba6b7c  -- drivers/gpu/drm/nouveau/ 
*   763b257 Merge branch 'drm-nouveau-next' of git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-fixes
|\  

[...]

* | 085969e drm/nv50/bar: fix plymouth issues on certain efi macbooks
* | ecf24de (refs/bisect/bad) drm/nouveau: fix fbcon not being accelerated after suspend                          <-- THE BAD!
* | 88e98d4 (HEAD, refs/bisect/good-88e98d49a1b3e0f8103cdd4fd80d576ec33133ab) drm/gf100-/gr: split ppc state into its subunits 
* | 7e19453 drm/gf100-/gf: split tpc state into its subunits

[...]

* | 0ac4e3a drm/nouveau/hwmon: replace strict_strtol() with kstrtol()
* | aa34efe drm/nouveau/hwmon: remove some redundant checks
* | 4ac1b1a drm/nv50/graph: update status enum names
|/  
* 44d847b drm: init TTM dev_mapping in ttm_bo_device_init()
* 6796cb1 drm: use anon-inode instead of relying on cdevs
* 6ba6b7c (refs/bisect/good-6ba6b7cdaf1a48b24c23c303871ffe1640a866e8) Merge tag 'drm/dp-aux-for-3.15-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next

As much as such a quick bisect as mine between two different kernel patchlevels should not be trusted too much, I can say 88e98d4 works pretty nice (three resumes in a rwo without any problems) ecf24de breaks miserably. Its commit message mentions problems with switching to "software fbcon" after resume which is mentioned in my dmesg dump too. However, it appears the commit instead of fixing a problem introduced it on my hardware.

It appears there has been some work done

git log -U50 -p ecf24de^..torvalds/master -- drivers/gpu/drm/nouveau/nouveau_fbcon.c

I will try some recent 3.19-rcX kernels and will report back.
Comment 3 Łukasz Stelmach 2015-01-04 10:07:20 UTC
Linus Torvalds'[1] 3.19.0-rc2-00215-gd753856 still has got the same problem.

[1] git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Comment 4 Łukasz Stelmach 2015-01-05 22:12:23 UTC
Booting with nouveau.nofbaccel=1 in the kernel command line as proposed[1] by Ilia Mirkin, prevents lock-ups on both 3.17.7 as well as on 3.19.0-rc2-00215-gd753856.

[1] http://lists.freedesktop.org/archives/nouveau/2015-January/019633.html
Comment 5 Mike Pagano gentoo-dev 2015-01-05 23:47:12 UTC
Good news, closing as workaround found.
Comment 6 Łukasz Stelmach 2015-01-06 08:56:42 UTC
I am glad I could help. Do you think there is a place where some reference to this bug could be put to help others. How about a message in the ebild that is displayed if the nouveau driver is built?