The radeon drm driver with kernel mode-switching in the new 2.6.34 kernel does not release the AGP bridge when suspending a laptop. The result is that a system running X cannot resume properly. Only a reboot restores normal operation. Reproducible: Always Steps to Reproduce: 1. Start X (in my case, I use KDE.) 2. Close the lid on the laptop and wait for the system to finish suspending. 3. Open the laptop to resume. Observe that you cannot resume your X session. Actual Results: kernel messages show scheduling errors: Jul 21 18:37:39 thinkpad kernel: 3 80 4294940023 Jul 21 18:37:39 thinkpad kernel: c1 90 4294940023 Jul 21 18:37:39 thinkpad kernel: 10 90 4294940023 Jul 21 18:37:39 thinkpad kernel: 7 80 4294940023 Jul 21 18:37:39 thinkpad kernel: 0 90 4294940023 Jul 21 18:37:39 thinkpad kernel: 8 81 4294940057 Jul 21 18:37:39 thinkpad kernel: 7 80 4294940059 Jul 21 18:37:39 thinkpad kernel: 0 90 4294940059 Jul 21 18:37:39 thinkpad kernel: 8 81 4294940093 Jul 21 18:37:39 thinkpad kernel: last result at 4294940093 Jul 21 18:37:39 thinkpad kernel: last redo_fd_request at 4294940094 Jul 21 18:37:39 thinkpad kernel: 70 00 p. Jul 21 18:37:39 thinkpad kernel: status=0 Jul 21 18:37:39 thinkpad kernel: fdc_busy=1 Jul 21 18:37:39 thinkpad kernel: do_floppy=reset_interrupt Jul 21 18:37:39 thinkpad kernel: cont=f8598f40 Jul 21 18:37:39 thinkpad kernel: current_req=(null) Jul 21 18:37:39 thinkpad kernel: command_status=-1 Jul 21 18:37:39 thinkpad kernel: Jul 21 18:37:39 thinkpad kernel: floppy0: floppy timeout called Jul 21 18:37:39 thinkpad kernel: PM: resume of devices complete after 4299.532 msecs Jul 21 18:37:39 thinkpad kernel: PM: Finishing wakeup. Jul 21 18:37:39 thinkpad kernel: Restarting tasks ... done. Jul 21 18:37:39 thinkpad kernel: video LNXVIDEO:00: Restoring backlight state Jul 21 18:37:40 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(15). Jul 21 18:37:40 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:39 thinkpad acpid: client 3835[0:0] has disconnected Jul 21 18:37:40 thinkpad logger: ACPI event unhandled: processor CPU0 00000081 00000000 Jul 21 18:37:40 thinkpad acpid: client connected from 3835[0:0] Jul 21 18:37:40 thinkpad acpid: 1 client rule loaded Jul 21 18:37:40 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(0). Jul 21 18:37:40 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:40 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(1). Jul 21 18:37:40 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:40 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(2). Jul 21 18:37:40 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:40 thinkpad kdm[3804]: X server for display :0 terminated unexpectedly Jul 21 18:37:40 thinkpad kdm: :0[3875]: pam_unix(kde:session): session closed for user sfbosch Jul 21 18:37:41 thinkpad acpid: client 3835[0:0] has disconnected Jul 21 18:37:41 thinkpad acpid: client connected from 5171[0:0] Jul 21 18:37:41 thinkpad acpid: 1 client rule loaded Jul 21 18:37:41 thinkpad kernel: [drm:drm_mode_getfb] *ERROR* invalid framebuffer id Jul 21 18:37:41 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(3). Jul 21 18:37:41 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:42 thinkpad kdm_greet[5175]: Cannot load /var/lib/kdm-4.4/faces/.default.face: Datei oder Verzeichnis nicht gefunden Jul 21 18:37:42 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(4). Jul 21 18:37:42 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:42 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(5). Jul 21 18:37:42 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:42 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(6). Jul 21 18:37:42 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:42 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(7). Jul 21 18:37:42 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:42 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(8). Jul 21 18:37:42 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:42 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(9). Jul 21 18:37:42 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad dhcpcd[5227]: eth1: dhcpcd not running Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(10). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad dhcpcd[5233]: eth0: dhcpcd not running Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(11). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(12). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad dhcpcd[5240]: eth1: dhcpcd not running Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(13). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(14). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(15). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(0). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(1). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(2). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(3). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:43 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(4). Jul 21 18:37:43 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:44 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(5). Jul 21 18:37:44 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:44 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(6). Jul 21 18:37:44 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Jul 21 18:37:45 thinkpad kernel: [drm:radeon_ib_schedule] *ERROR* radeon: couldn't schedule IB(7). Jul 21 18:37:45 thinkpad kernel: [drm:radeon_cs_ioctl] *ERROR* Faild to schedule IB ! Expected Results: Before this new kernel, resumes worked perfectly. My last kernel was 2.6.32. Apparently 2.6.33 also exhibits this behaviour. Pass the radeon.agpmode=-1 parameter to the kernel at boot time to work around this problem. This bug was reported to (and fixed by) the Linux kernel developers and can be seen here: https://bugzilla.kernel.org/show_bug.cgi?id=15969 Here is my emerge --info: Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686) ================================================================= System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_1500MHz-with-gentoo-1.12.13 Timestamp of tree: Wed, 21 Jul 2010 14:30:13 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r2, 3.1.2-r3 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1" LINGUAS="de en fr nb en_GB en_CA" 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="/usr/local/portage/layman/lisp /usr/local/portage/layman/dottout" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib accessibility acl acpi aim alsa ao apm arts audiofile bash-completion berkdb branding bzip2 cairo calendar cdda cddb cdinstall cdparanoia cdr clamav cli cracklib crypt css cups curl curlwrappers cxx dbus dga dri dv dvb dvd dvdr encode exif expat fbcon festival ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif gimp ginac glut gnuplot gphoto2 gpm gsm gtk hal handbook hddtemp iconv icq icu idn imagemagick imap imlib ipv6 jabber java jingle joystick jpeg jpeg2k kde kontact lame latex lcms libnotify lm_sensors mad mbrola mmx mng modules mp3 mp4 mpeg mplayer msn mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin odbc offensive ofx ogg opengl openmp oscar oss pam pcmcia pcre pda pdf perl plasma plotutils png posix ppds pppd python qt3support qt4 raw rdesktop readline reflection samba scanner sdl session spl sql sse sse2 ssl startup-notification svg svga sysfs syslog tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd vim-syntax vnc vorbis webkit wifi win32codecs wmf wxwidgets x264 x86 xine xinerama xinetd xorg xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en fr nb en_GB en_CA" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
The patch referenced in the bug is released in gentoo-sources-2.6.34-r2. Please test with that kernel and let us know how it goes.
(In reply to comment #1) > The patch referenced in the bug is released in gentoo-sources-2.6.34-r2. > Please test with that kernel and let us know how it goes. Tested ok. $ uname -a Linux thinkpad 2.6.34-gentoo-r2 #1 SMP Wed Jul 28 00:27:57 MDT 2010 i686 Intel(R) Pentium(R) M processor 1500MHz GenuineIntel GNU/Linux
Thanks for testing