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
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.
(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.
(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.
(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.
(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.
Created attachment 266405 [details] dmesg with vanilla-sources =sys-kernel/vanilla-sources-2.6.36.3
Created attachment 266407 [details] kconfig with vanilla-sources
Created attachment 266409 [details] lspci with vanilla-sources
Created attachment 266415 [details] kconfig with hardened-sources =sys-kernel/hardened-sources-2.6.36-r9
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
Created attachment 266419 [details] dmesg with hardened-sources
vanilla-sources-2.6.38 also exhibits this problem. It would appear to be as you said, the code just isn't ready yet.
(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.
(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.
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.
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
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
Created attachment 273325 [details] 2.6.37-hardened-r7 Kernel Configuration Updated to new kernel and configuration
Created attachment 273327 [details] 2.6.38.1 Kernel Configuration Updated for given kernel
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
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
(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.
I tested with both vanilla 2.6.38.1, and .6, what do you mean?
Created attachment 273347 [details] 2.6.38.6 Kernel Configuration
Created attachment 273351 [details] BUG: 2.6.38.6 fails with UMS fixed mime type.
Comment on attachment 273325 [details] 2.6.37-hardened-r7 Kernel Configuration fixed mime type
(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?
Created attachment 273497 [details, diff] This reverse patch prevents the regression from manifesting Derived via git bisect, applies cleanly to 2.6.38.6
Upstream bug report https://bugzilla.kernel.org/show_bug.cgi?id=35192
(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
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.
genpatches including linux-3.0 released. Closing.