Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484764 - x11-drivers/nvidia-drivers - screen freeze sometimes when hardware acceleration used
Summary: x11-drivers/nvidia-drivers - screen freeze sometimes when hardware accelerati...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 13:32 UTC by Alex Efros
Modified: 2014-10-17 18:42 UTC (History)
2 users (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 Alex Efros 2013-09-13 13:32:48 UTC
Sometimes my screen freezes. System itself works mostly ok, but it may take minutes to just switch to another virtual desktop and try to run top/kill (it's unclear is it always just a huge slow down or sometimes it completely hang because I probably just don't wait long enough when it happens and just reboot using SysRq).

I'm using fluxbox without compiz/xcompmgr, and I suppose this issue only happens when hardware acceleration is used, because I got these freezes only in these cases:
- in the middle of playing flash video in browser (opera)
- when starting mplayer with -vf-clr -vo vdpau -vc ffh264vdpau,ffmpeg12vdpau,
- when working with Win7 in VirtualBox with 2D/3D hw acceleration enabled and guest tools with experimental Direct3D support installed

I may view up to 50 films using mplayer and about same amount of flash videos in several days without facing this issue, but then it may happens 3 times one-by-one (mplayer hangs when I start it on next film, I reboot, start mplayer again and it again hangs, I reboot, it happens again, I reboot and run mplayer with `-vo xv` and now everything works fine - probably this may happens because of high I/O activity because I start mplayer quickly after reboot while other apps was still loading, so if this issue is race condition bug…).

Not sure about flash, but when this happens with mplayer I've tried to analyze what's going on: system is working, but incredible slow, it took about 10 minutes to switch to another virtual desktop, run top, found mplayer process using 100% CPU, try to kill it (don't remember is it was successful or mplayer ignored `kill -9`), but it won't fix anything - system still was too slow. In all cases I've to press RESET or use SysRq because trying to do normal shutdown procedure may took hours.

I've this issue for very long time (few years), but I was unable to get anything related to it in logs or debug it in other way, so I had no information to write usable bug report. When it happens yesterday I had background process which was copying large (20GB) file, so instead of using SysRq to sync/unmount/reboot as usually I've waited few minutes until file copying completes - probably because of this delay this time I got something in kernel log related to this issue:

    kern.warn: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context

I had an idea this may be somehow related to hardened, that was one more reason to not report this issue because nvidia-drivers is not officially supported on hardened. But quick search for this warning message result in many reports about similar issues, most happens on Gentoo, and no one mention hardened, so I suppose this isn't related to hardened. Few examples:

https://forums.geforce.com/default/topic/477219/
http://www.nvnews.net/vbulletin/showthread.php?t=163468
http://forums.adobe.com/thread/890878
http://realtechtalk.com/Linux_Ubuntu_Nvidia_GT430_LockupsErrorsFreezes_NVRM_os_schedule_Attempted_to_yield_the_CPU_while_in_atomic_or_interrupt_context-1243-articles
http://blog.the-jedi.co.uk/author/admin/

Last two mention it may be hardware issue. But I'm already have very good PSU (ANTEC Signature SG-650EC 650W). As for capacitors, it's not ease to check them because my video card (Gainward GeForce GTX 560 Ti Phantom 1024MB) use huge passive cooling which I can't remove http://www.gainward.com/main/product/vga/pro/p00457/p00457_pic_6164d3e1e078de2a.jpg - but, thing is, I never experienced any issues while playing (up to 20 hours per day) hard modern 3D games with maximum quality/acceleration in Win7 on same (dual-boot) workstation - so it doesn't looks like hardware or overheating issue.

According to nvidia-settings, usual temperature for video card is 34°C. According to it "PowerMizer" tab when mplayer is running it switch from "performance level" 0 (50MHz) to level 1 (405 MHz). While flash play video it switch to level 2 (835 MHz) and temperature increase to about 50°C. I suppose it may be possible it sometimes switch to level 2 when mplayer starts and then back to level 1 - this may explain why it never freezes while mplayer in the middle of player like with flash.

Not sure is it important, but I've also got this in Xorg.log when it happens at same time when I got this warning in kernel log:

(EE) [mi] EQ overflowing.  Additional events will be discarded until existing events are processed.
(EE) 
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x47) [0x6127b0de907]
(EE) 1: /usr/bin/X (mieqEnqueue+0x2a3) [0x6127b0bd093]
(EE) 2: /usr/bin/X (0x6127aefe000+0x7172d) [0x6127af6f72d]
(EE) 3: /usr/lib64/xorg/modules/input/evdev_drv.so (0x779d957b2000+0x6818) [0x779d957b8818]
(EE) 4: /usr/bin/X (0x6127aefe000+0xa2bc7) [0x6127afa0bc7]
(EE) 5: /usr/bin/X (0x6127aefe000+0xd3ea8) [0x6127afd1ea8]
(EE) 6: /lib64/libpthread.so.0 (0x779d9c0c8000+0x10bf0) [0x779d9c0d8bf0]
(EE) 7: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x640fb) [0x779d965130fb]
(EE) 8: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x64d75) [0x779d96513d75]
(EE) 9: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0xe08bd) [0x779d9658f8bd]
(EE) 10: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4d43e2) [0x779d969833e2]
(EE) 11: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4d5bea) [0x779d96984bea]
(EE) 12: /usr/bin/X (0x6127aefe000+0x1d2f44) [0x6127b0d0f44]
(EE) 13: /usr/bin/X (0x6127aefe000+0x1d37bb) [0x6127b0d17bb]
(EE) 14: /usr/bin/X (miWideLine+0x4de) [0x6127b0d3d0e]
(EE) 15: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4c6d80) [0x779d96975d80]
(EE) 16: /usr/bin/X (miPolySegment+0x53) [0x6127b0ca663]
(EE) 17: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4c7231) [0x779d96976231]
(EE) 18: /usr/bin/X (0x6127aefe000+0x15fa1f) [0x6127b05da1f]
(EE) 19: /usr/bin/X (0x6127aefe000+0x55ef8) [0x6127af53ef8]
(EE) 20: /usr/bin/X (0x6127aefe000+0x5a141) [0x6127af58141]
(EE) 21: /usr/bin/X (0x6127aefe000+0x46a94) [0x6127af44a94]
(EE) 22: /lib64/libc.so.6 (__libc_start_main+0xed) [0x779d9ad6d5dd]
(EE) 23: /usr/bin/X (0x6127aefe000+0x46df1) [0x6127af44df1]
(EE) 
(EE) [mi] These backtraces from mieqEnqueue may point to a culprit higher up the stack.
(EE) [mi] mieq is *NOT* the cause.  It is a victim.
(EE) [mi] EQ overflow continuing.  100 events have been dropped.
(EE) 
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x47) [0x6127b0de907]
(EE) 1: /usr/bin/X (0x6127aefe000+0x7172d) [0x6127af6f72d]
(EE) 2: /usr/lib64/xorg/modules/input/evdev_drv.so (0x779d957b2000+0x6818) [0x779d957b8818]
(EE) 3: /usr/bin/X (0x6127aefe000+0xa2bc7) [0x6127afa0bc7]
(EE) 4: /usr/bin/X (0x6127aefe000+0xd3ea8) [0x6127afd1ea8]
(EE) 5: /lib64/libpthread.so.0 (0x779d9c0c8000+0x10bf0) [0x779d9c0d8bf0]
(EE) 6: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x640fb) [0x779d965130fb]
(EE) 7: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x64d75) [0x779d96513d75]
(EE) 8: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0xe08bd) [0x779d9658f8bd]
(EE) 9: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4d43e2) [0x779d969833e2]
(EE) 10: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4d5bea) [0x779d96984bea]
(EE) 11: /usr/bin/X (0x6127aefe000+0x1d2f44) [0x6127b0d0f44]
(EE) 12: /usr/bin/X (0x6127aefe000+0x1d37bb) [0x6127b0d17bb]
(EE) 13: /usr/bin/X (miWideLine+0x4de) [0x6127b0d3d0e]
(EE) 14: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4c6d80) [0x779d96975d80]
(EE) 15: /usr/bin/X (miPolySegment+0x53) [0x6127b0ca663]
(EE) 16: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4c7231) [0x779d96976231]
(EE) 17: /usr/bin/X (0x6127aefe000+0x15fa1f) [0x6127b05da1f]
(EE) 18: /usr/bin/X (0x6127aefe000+0x55ef8) [0x6127af53ef8]
(EE) 19: /usr/bin/X (0x6127aefe000+0x5a141) [0x6127af58141]
(EE) 20: /usr/bin/X (0x6127aefe000+0x46a94) [0x6127af44a94]
(EE) 21: /lib64/libc.so.6 (__libc_start_main+0xed) [0x779d9ad6d5dd]
(EE) 22: /usr/bin/X (0x6127aefe000+0x46df1) [0x6127af44df1]
(EE) 
(EE) [mi] EQ overflow continuing.  200 events have been dropped.
(EE) 
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x47) [0x6127b0de907]
(EE) 1: /usr/bin/X (0x6127aefe000+0x7172d) [0x6127af6f72d]
(EE) 2: /usr/lib64/xorg/modules/input/evdev_drv.so (0x779d957b2000+0x6818) [0x779d957b8818]
(EE) 3: /usr/bin/X (0x6127aefe000+0xa2bc7) [0x6127afa0bc7]
(EE) 4: /usr/bin/X (0x6127aefe000+0xd3ea8) [0x6127afd1ea8]
(EE) 5: /lib64/libpthread.so.0 (0x779d9c0c8000+0x10bf0) [0x779d9c0d8bf0]
(EE) 6: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x640fb) [0x779d965130fb]
(EE) 7: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x64d75) [0x779d96513d75]
(EE) 8: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0xe08bd) [0x779d9658f8bd]
(EE) 9: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4d43e2) [0x779d969833e2]
(EE) 10: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4d5bea) [0x779d96984bea]
(EE) 11: /usr/bin/X (0x6127aefe000+0x1d2f44) [0x6127b0d0f44]
(EE) 12: /usr/bin/X (0x6127aefe000+0x1d37bb) [0x6127b0d17bb]
(EE) 13: /usr/bin/X (miWideLine+0x4de) [0x6127b0d3d0e]
(EE) 14: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4c6d80) [0x779d96975d80]
(EE) 15: /usr/bin/X (miPolySegment+0x53) [0x6127b0ca663]
(EE) 16: /usr/lib64/xorg/modules/drivers/nvidia_drv.so (0x779d964af000+0x4c7231) [0x779d96976231]
(EE) 17: /usr/bin/X (0x6127aefe000+0x15fa1f) [0x6127b05da1f]
(EE) 18: /usr/bin/X (0x6127aefe000+0x55ef8) [0x6127af53ef8]
(EE) 19: /usr/bin/X (0x6127aefe000+0x5a141) [0x6127af58141]
(EE) 20: /usr/bin/X (0x6127aefe000+0x46a94) [0x6127af44a94]
(EE) 21: /lib64/libc.so.6 (__libc_start_main+0xed) [0x779d9ad6d5dd]
(EE) 22: /usr/bin/X (0x6127aefe000+0x46df1) [0x6127af44df1]
(EE)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-13 13:36:06 UTC
Please post your `emerge --info x11-drivers/nvidia-drivers' output in a comment.
Comment 2 Alex Efros 2013-09-13 13:48:39 UTC
# emerge --info x11-drivers/nvidia-drivers mplayer adobe-flash
Portage 2.2.1 (hardened/linux/amd64, gcc-4.6.3, glibc-2.15-r3, 3.10.1-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.1-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8163184 total,    563224 free
KiB Swap:    4200960 total,   4196444 free
Timestamp of tree: Wed, 11 Sep 2013 11:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo perl-experimental-snapshots gamerlay powerman local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/upsmon-usb/EXT/DownOS /opt/upsmon-usb/EXT/JSystem /service /usr/inferno/keydb /usr/inferno/lib /usr/inferno/services /usr/share/config /usr/share/gnupg/qualified.txt /var/log /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage-distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write=y --backtrack=15"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.kiev.ua/ftp/ http://gentoo.iteam.net.ua/ http://tux.rainside.sk/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.inode.at/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage-packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/perl-experimental-snapshots /var/lib/layman/gamerlay /var/lib/layman/powerman /usr/local/portage"
SYNC="rsync://rsync3.ua.gentoo.org/gentoo-portage"
USE="X a52 aac acl alac alsa amd64 avx bash-completion berkdb bzip2 caps cdda cddb cli cracklib crypt cxx dbus dri dts dvb dvd flac fontconfig gdbm gif gnutls gpg hardened iconv icu id3tag idn ipv6 jpeg jpeg2k justify libnotify mac mad matroska mbox mmx mng modules mp3 mpeg mudflap multilib musepack mysql ncurses network-cron nls nptl nsplugin ogg opengl openmp pam pax_kernel pcre perl png qt3support readline session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 svg tcpd theora tiff truetype unicode urandom vdpau vim-syntax vorbis wavpack x264 xattr xosd xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="log_config vhost_alias autoindex alias rewrite dir deflate filter mime negotiation auth_basic authn_file authz_host authz_user authz_groupfile cgi actions headers env setenvif" 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" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi fancyindex" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv nouveau" 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, USE_PYTHON

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

x11-drivers/nvidia-drivers-319.49 was built with the following:
USE="X (multilib) pax_kernel tools -acpi"


media-video/mplayer-1.1.1-r1 was built with the following:
USE="X a52 alsa cddb cdio dts dv dvb dvd dvdnav enca encode faad gif iconv ipv6 jpeg jpeg2k libass live mad mmx mng mp3 (multilib) network opengl osdmenu png quicktime rar rtc shm speex sse sse2 ssse3 theora toolame tremor truetype twolame unicode vdpau vorbis x264 xscreensaver xv xvid xvmc -3dnow -3dnowext -aalib (-altivec) (-aqua) -bidi -bindist -bl -bluray -bs2b -cdparanoia -cpudetection -debug -dga -directfb -doc -dxr3 -faac -fbcon -ftp -ggi -gsm -jack -joystick -ladspa -libcaca -libmpeg2 -lirc -lzo -md5sum -mmxext -nas -nut -openal -oss -pnm -pulseaudio -pvr -radio -rtmp -samba -sdl -tga -v4l (-vidix) -xanim -xinerama -zoran" ABI_X86="64" VIDEO_CARDS="-mga -s3virge -tdfx"


www-plugins/adobe-flash-11.2.202.310 was built with the following:
USE="64bit (multilib) sse2 -32bit (-debug) -kde (-selinux)"
Comment 3 Anthony Basile gentoo-dev 2014-10-17 18:42:29 UTC
Sorry for the delay in responding to his. I'm gong through old bugs.  I've kinda given up on nvidia on hardened since nouveau mostly works.  I know you don't get all the bling that you do with nvidia, but there are just limits to my time.

If you can't get nouveau to work for you, are really need nvidia, please re test with the latest versions and reopen this bug.