Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359281 - sys-kernel/vanilla-sources-2.6.38.1 radeon driver lockup
Summary: sys-kernel/vanilla-sources-2.6.38.1 radeon driver lockup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugzilla.kernel.org/show_bug....
Whiteboard: linux-3.0
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-17 14:34 UTC by Dillon
Modified: 2011-07-22 23:35 UTC (History)
2 users (show)

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


Attachments
kernel config (.kconfig,86.20 KB, text/plain)
2011-03-17 14:34 UTC, Dillon
Details
dmesg with vanilla-sources (dmesg-vanilla.log,30.34 KB, text/plain)
2011-03-18 23:25 UTC, Dillon
Details
kconfig with vanilla-sources (kconfig-vanilla.log,83.05 KB, text/plain)
2011-03-18 23:26 UTC, Dillon
Details
lspci with vanilla-sources (lspci-vanilla.log,10.04 KB, text/plain)
2011-03-18 23:27 UTC, Dillon
Details
kconfig with hardened-sources (kconfig-hardened,86.21 KB, text/plain)
2011-03-18 23:37 UTC, Dillon
Details
lspci -kv with hardened-sources (lspci-hardened.log,9.77 KB, text/plain)
2011-03-18 23:39 UTC, Dillon
Details
dmesg with hardened-sources (dmesg-hardened.log,30.53 KB, text/plain)
2011-03-18 23:41 UTC, Dillon
Details
BUG: 2.6.37-hardened-r7 fails with UMS (bug-2.6.37-hardened-r7,2.27 KB, text/plain)
2011-05-15 20:12 UTC, Dillon
Details
BUG: 2.6.38.1 fails with UMS (bug-2.6.38.1,2.24 KB, text/plain)
2011-05-15 20:13 UTC, Dillon
Details
2.6.37-hardened-r7 Kernel Configuration (389480,67.56 KB, text/plain)
2011-05-15 20:18 UTC, Dillon
Details
2.6.38.1 Kernel Configuration (389481,65.73 KB, text/plain)
2011-05-15 20:22 UTC, Dillon
Details
BUG: 2.6.38.1fails with UMS (70441,9.91 KB, text/html)
2011-05-15 20:53 UTC, Dillon
Details
BUG: 2.6.38.6 fails with UMS (70441,9.91 KB, text/html)
2011-05-15 20:56 UTC, Dillon
Details
2.6.38.6 Kernel Configuration (kconfig-2.6.38.6,65.75 KB, text/plain)
2011-05-15 23:39 UTC, Dillon
Details
BUG: 2.6.38.6 fails with UMS (bug-2.6.38.6,2.19 KB, text/plain)
2011-05-15 23:45 UTC, Dillon
Details
This reverse patch prevents the regression from manifesting (badcommit.patch,548 bytes, patch)
2011-05-16 20:50 UTC, Dillon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dillon 2011-03-17 14:34:30 UTC
Created attachment 266265 [details]
kernel config

+++ This bug was initially created as a clone of Bug #329345 +++
Appears to be similar to this bug.

Reproducible: Always

Steps to Reproduce:
1. Start X (in my case, I use KDE.)


Actual Results:  
kernel messages show scheduling errors:

[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(13).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(14).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(15).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(0).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(1).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(2).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(3).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(4).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(5).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(6).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !
[drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(7).
[drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB !

AmberLight ~ # emerge --info
Portage 2.1.9.42 (hardened/linux/amd64, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.36-hardened-r9-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-1.12.14
Timestamp of tree: Thu, 17 Mar 2011 07:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=k8-sse3 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.osuosl.org/ http://mirror.usu.edu/mirrors/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
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="/var/lib/layman/techwolf /var/lib/layman/sunrise /var/lib/layman/roslin /usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl acpi afs aim alsa amd64 ao arts autoipd avahi berkdb branding bzip2 caps cdda cddb cdinstall chroot cli consolekit cracklib crypt css cups cxx dbus dga directfb djvu dri dv dvd dvdr dvdread emovix encode ffmpeg firefox flac fortran ftp gcj gdbm geoip gif glut gnutls gpm graphviz gstreamer hardened iconv icq imap inotify java javascript joystick jpeg jpeg2k justify kde lame laptop ldap lm_sensors mad mdnsresponder-compat memlimit mesa mmap mmx modules mp3 mpeg mplater msn mudflap multilib musicbrainz mysql mysqli ncurses nls nntp nptl nptlonly nsplugin ogg openal opengl openmp oss pam pcre pdf perl png pop portaudio postgres pppd pulseaudio python qt3support qt4 raw rdesktop readline rss ruby scanner sdl semantic-desktop session sharedmem silc skey sockets socks5 speex spell sql sqlite sqlite3 sse sse2 ssl static-libs subversion svg sysfs syslog sysvipc taglib tcpd theora thunderbird tiff timidity truetype urandom v4l v4l2 vcd vorbis webkit wifi x264 xattr xcomposite xine xorg xv xvid yahoo zeroconf zlib" 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" 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="keyboard evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2011-03-17 19:12:01 UTC
Hi,

As first resort in case you aren't try to load radeon as a module. This solved a lot of hardened related problems for me.
Comment 2 Dillon 2011-03-17 21:07:57 UTC
(In reply to comment #1)
> Hi,
> 
> As first resort in case you aren't try to load radeon as a module. This solved
> a lot of hardened related problems for me.

This workaround did not work for me, unfortunately.
Comment 3 Anthony Basile gentoo-dev 2011-03-17 22:22:08 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Hi,
> > 
> > As first resort in case you aren't try to load radeon as a module. This solved
> > a lot of hardened related problems for me.
> 
> This workaround did not work for me, unfortunately.

We need to determine if this is a hardened issue or a vanilla issue.  hardened-sources-2.6.36-r9 is based on vanilla-2.6.36.3.  Can you see if the problem is not there for vanilla?  Any >=vanilla-2.6.36.3.  Sorry to ask you to do this, but I can't test your hardware and this does seem like a driver/hardware specific problem.
Comment 4 Dillon 2011-03-18 00:19:25 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > Hi,
> > > 
> > > As first resort in case you aren't try to load radeon as a module. This solved
> > > a lot of hardened related problems for me.
> > 
> > This workaround did not work for me, unfortunately.
> 
> We need to determine if this is a hardened issue or a vanilla issue. 
> hardened-sources-2.6.36-r9 is based on vanilla-2.6.36.3.  Can you see if the
> problem is not there for vanilla?  Any >=vanilla-2.6.36.3.  Sorry to ask you to
> do this, but I can't test your hardware and this does seem like a
> driver/hardware specific problem.

I'm already on it. And it's not a problem.
Comment 5 Anthony Basile gentoo-dev 2011-03-18 00:48:47 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > (In reply to comment #1)
> > > > Hi,
> > > > 
> > > > As first resort in case you aren't try to load radeon as a module. This solved
> > > > a lot of hardened related problems for me.
> > > 
> > > This workaround did not work for me, unfortunately.
> > 
> > We need to determine if this is a hardened issue or a vanilla issue. 
> > hardened-sources-2.6.36-r9 is based on vanilla-2.6.36.3.  Can you see if the
> > problem is not there for vanilla?  Any >=vanilla-2.6.36.3.  Sorry to ask you to
> > do this, but I can't test your hardware and this does seem like a
> > driver/hardware specific problem.
> 
> I'm already on it. And it's not a problem.

Okay, I've got your kernel-config.  Can you also give me lspci -kv and dmesg when you hit the bug.
Comment 6 Dillon 2011-03-18 23:25:51 UTC
Created attachment 266405 [details]
dmesg with vanilla-sources

=sys-kernel/vanilla-sources-2.6.36.3
Comment 7 Dillon 2011-03-18 23:26:41 UTC
Created attachment 266407 [details]
kconfig with vanilla-sources
Comment 8 Dillon 2011-03-18 23:27:27 UTC
Created attachment 266409 [details]
lspci with vanilla-sources
Comment 9 Dillon 2011-03-18 23:37:50 UTC
Created attachment 266415 [details]
kconfig with hardened-sources

=sys-kernel/hardened-sources-2.6.36-r9
Comment 10 Dillon 2011-03-18 23:39:47 UTC
Created attachment 266417 [details]
lspci -kv with hardened-sources

It's interesting to note in the vanilla-sources logs for dmesg we notice that KMS works , but there is flickering
Comment 11 Dillon 2011-03-18 23:41:39 UTC
Created attachment 266419 [details]
dmesg with hardened-sources
Comment 12 Dillon 2011-03-19 17:28:53 UTC
vanilla-sources-2.6.38 also exhibits this problem. It would appear to be as you said, the code just isn't ready yet.
Comment 13 Anthony Basile gentoo-dev 2011-03-19 18:30:35 UTC
(In reply to comment #12)
> vanilla-sources-2.6.38 also exhibits this problem. It would appear to be as you
> said, the code just isn't ready yet.

I'd submit this one upstream: https://bugzilla.kernel.org   If you don't feel comfortable doing that, then I can.  They'll need the chipset and the kernel oops (probably all the dmesg would be good).  Make sure to assign it to the right component.
Comment 14 Dillon 2011-03-24 18:27:29 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > vanilla-sources-2.6.38 also exhibits this problem. It would appear to be as you
> > said, the code just isn't ready yet.
> 
> I'd submit this one upstream: https://bugzilla.kernel.org   If you don't feel
> comfortable doing that, then I can.  They'll need the chipset and the kernel
> oops (probably all the dmesg would be good).  Make sure to assign it to the
> right component.

I would appreciate that, thanks.
Comment 15 Anthony Basile gentoo-dev 2011-03-26 15:56:25 UTC
Upstream is aware of this issue:

https://lkml.org/lkml/2010/11/9/696

That was on ubuntu 10.10 which runs 2.6.35.  You hit it on 2.6.36.  I looked at the commits in 2.6.37 and 2.6.38.  Not much in the former, but for .38 there were lots of recent commits fixing radeon drm:

http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fstable%2Flinux-2.6.38.y.git&a=search&h=HEAD&st=commit&s=radeon

These are now in 2.6.38.1. I suspect they will solve your issue.  I'll eventually get them into a hardened-sources, but if you have time, try vanilla-2.6.38.1 and see if you still get the oops.


@kernel team.  I'm reassigning this since its a vanilla issue, not hardened, but I'll give this bug love.
Comment 16 Dillon 2011-05-15 20:12:12 UTC
Created attachment 273321 [details]
BUG:  2.6.37-hardened-r7 fails with UMS

KMS fails with a blank screen and sshd not starting, I can't get any more information
Comment 17 Dillon 2011-05-15 20:13:51 UTC
Created attachment 273323 [details]
BUG: 2.6.38.1 fails with UMS

I did not try KMS, but UMS locks up the vtys, sshd still responds
Comment 18 Dillon 2011-05-15 20:18:08 UTC
Created attachment 273325 [details]
2.6.37-hardened-r7 Kernel Configuration

Updated to new kernel and configuration
Comment 19 Dillon 2011-05-15 20:22:38 UTC
Created attachment 273327 [details]
2.6.38.1 Kernel Configuration

Updated for given kernel
Comment 20 Dillon 2011-05-15 20:53:00 UTC
Created attachment 273329 [details]
BUG: 2.6.38.1fails with UMS

AmberLight ~ # diff /usr/src/linux-2.6.38.?/.config
3,4c3,4
< # Linux/x86_64 2.6.38.1 Kernel Configuration
< # Sun May 15 14:58:58 2011
---
> # Linux/x86_64 2.6.38.6 Kernel Configuration
> # Sun May 15 16:29:24 2011
1790c1790
< # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
---
> CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
2452a2453
> # CONFIG_TEST_KSTRTOX is not set
Comment 21 Dillon 2011-05-15 20:56:43 UTC
Created attachment 273331 [details]
BUG: 2.6.38.6 fails with UMS

named one attachment incorrectly
AmberLight ~ # diff /usr/src/linux-2.6.38.?/.config
3,4c3,4
< # Linux/x86_64 2.6.38.1 Kernel Configuration
< # Sun May 15 14:58:58 2011
---
> # Linux/x86_64 2.6.38.6 Kernel Configuration
> # Sun May 15 16:29:24 2011
1790c1790
< # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
---
> CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
2452a2453
> # CONFIG_TEST_KSTRTOX is not se
Comment 22 Anthony Basile gentoo-dev 2011-05-15 21:57:01 UTC
(In reply to comment #18)
> Created attachment 273325 [details]
> 2.6.37-hardened-r7 Kernel Configuration
> 
> Updated to new kernel and configuration

Please test only with vanilla so we can bug upstream.  Upstream will ignore any kernel that has been heavily patched (ie hardened).  If I recall correctly, the problem is there in vanilla, although hardened screamed more loudly about it.

The latest vanilla as of this writing is 2.6.38.6.  Unfortunately I don't have your card to test with.
Comment 23 Dillon 2011-05-15 23:15:40 UTC
I tested with both vanilla 2.6.38.1, and .6, what do you mean?
Comment 24 Dillon 2011-05-15 23:39:43 UTC
Created attachment 273347 [details]
2.6.38.6 Kernel Configuration
Comment 25 Dillon 2011-05-15 23:45:15 UTC
Created attachment 273351 [details]
BUG: 2.6.38.6 fails with UMS

fixed mime type.
Comment 26 Dillon 2011-05-15 23:47:14 UTC
Comment on attachment 273325 [details]
2.6.37-hardened-r7 Kernel Configuration

fixed mime type
Comment 27 Xake 2011-05-16 06:08:51 UTC
(In reply to comment #23)
> I tested with both vanilla 2.6.38.1, and .6, what do you mean?

What he means is that if you have reproduced your problem with vanilla-sources, stop messing with stuff wrt hardened-sources after that.
This because the problem you see with vanilla-sources and hardened-sources most likely has the same cause, and since upstream linux (or in this case the radeon devs) only cares about vanilla-sources they will ignore info from hardened-sources, and it will only bloat this bug and make it harder to parse.
So lets fix vanilla-sources first, and then care about getting hardened-sources to work if the fix for vanilla-sources does not fix your problem, shall we?
Comment 28 Dillon 2011-05-16 20:50:13 UTC
Created attachment 273497 [details, diff]
This reverse patch prevents the regression from manifesting

Derived via git bisect, applies cleanly to 2.6.38.6
Comment 29 Anthony Basile gentoo-dev 2011-05-16 23:34:09 UTC
Upstream bug report 

https://bugzilla.kernel.org/show_bug.cgi?id=35192
Comment 30 Anthony Basile gentoo-dev 2011-05-16 23:39:00 UTC
(In reply to comment #28)
> Created attachment 273497 [details, diff]
> This reverse patch prevents the regression from manifesting
> 
> Derived via git bisect, applies cleanly to 2.6.38.6

For the records, this is commit 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8
Comment 31 Stratos Psomadakis (RETIRED) gentoo-dev 2011-07-10 15:06:15 UTC
Commit bb2b43fefab723f4a0760146e7bed59d41a50e53 upstream fixes the issue.

Since this only affects non-modular kernels, which I think is not a common configuration, I don't think we need to backport it to previous kernels, and close the bug when 3.0 makes it to portage.
Comment 32 Stratos Psomadakis (RETIRED) gentoo-dev 2011-07-22 23:35:16 UTC
genpatches including linux-3.0 released. Closing.