Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51747 - resume freezes iBook with ppc-development-sources-2.6.5_rc2-r1 & alsa modules loaded
Summary: resume freezes iBook with ppc-development-sources-2.6.5_rc2-r1 & alsa modules...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC All
: High critical (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-22 11:29 UTC by Michael Kiermaier
Modified: 2004-08-20 01:28 UTC (History)
0 users

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


Attachments
The used kernel config (.config,25.54 KB, text/plain)
2004-05-22 11:32 UTC, Michael Kiermaier
Details
My /etc/pbbuttonsd.conf (pbbuttonsd.conf,2.86 KB, text/plain)
2004-05-22 11:33 UTC, Michael Kiermaier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kiermaier 2004-05-22 11:29:03 UTC
I have an Apple iBook Rev. 2.2 800 MHz and installed the ppc-development-sources-2.6.5_rc2-r1. Wakeup from sleep does not work. (works on ppc-development-sources-2.6.2 and -2.6.3. Wakeup doesn't work on 2.6.4, but the error seems to be different.).

Reproducible: Always
Steps to Reproduce:
1. emerge ppc-development-sources (version 2.6.5_rc2-r1)
2. compile them
3. emerge pbbutonsd
4. emerge alsa-utils
5. rc-update add pbbuttonsd default
6. rc-update add alsasound boot
7. reboot new kernel
8. sleep
9. try to resume

Actual Results:  
The text-console resume-messages terminate on these lines:

[...]
ADB mouse at 3, handler set to 4 (trackpad)
adb: finished probe task...
tumbler: i2c is not initialized
Oops: kernel access of bad area, sig: 11 [#1]
NIP: C016F78C LR: EA3C0F98 SP: E46A5D80 REGS: e46acd0 TRAP: 0301    Not Tainted
MSR: 0000b032 EE: 1 PR: 0 PF: 1 ME: 1 IR/DR: 11
DAR: 00000006, DSISR: 40000000
TASK = e55be0c0[5948] 'pbbuttonsd' Last syscall: 54
GPR00: EA3CoF98 E46A5D80 E55BE0C0 00000000 00000040 00000000 00000000 00000000 00000040
GPR08: 00000002 FFFFFFFF E55BE0C0 00000000 90CDEE14
Call trace:
 [ea3c0f98] snapper set capture source+0x28/0x38 [snd_powermac]
 [ea3c1520] tumbler_resume+0xa0/0x138 [snd_powermac]
 [ea3be3e0] snd_pmac_resume+0xf4/0xf8 [snd_powermac]
 [ea3be42c] snd_pmac_sleep_notify+0x48/0x54 [snd_posermac]
 [c02be458] 0xc02be458
 [c02bebdc] 0xc02bebdc
 [c02bf0b4] 0xc02bf0b4
 [c02bf91c] 0xc02bf91c
 [c006899c] sys_ioctl+0xdc/0x2fc
 [c0005afc] ret_from_syscall+0x0/0x44

After that, the iBook freezes, I cannot do anything but a hard reboot. Interestingly, the framebuffer console screensaver still works, and after it darkens the screen, I still can switch back to the text by pressing some key.

Expected Results:  
The wakeup should continue, of course.
I checked /var/log/everything/current, but there are no messages from the
crashed sleep/wakeup process. (metalog caching was disabled, of course).

I took the kernel config directly from my 2.6.2 kernel (only adjusted the new
options). On 2.6.2, wakeup works flawlessly. Also I tried 2.6.3, and there
aren't any problems with wakeup, either. On 2.6.4, wakeup doesn't work, but it seems to be a different error. I posted a seperate bug here: http://bugs.gentoo.org/show_bug.cgi?id=51736

alsa-utils is version 1.0.4
pbbuttonsd is version 0.5.11

# emerge info
Portage 2.0.50-r6 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.3_pre20040420-r0,
2.6.2_rc1-benh1)
=================================================================
System uname: 2.6.2_rc1-benh1 ppc 750FX
Gentoo Base System version 1.4.15
distcc 2.14 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/lib/pbbuttons /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=750 -fsigned-char -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://gd.tuwien.ac.at/opsys/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib apache2 apm arts audiofile berkdb caps crypt cups doc dvd encode
flac foomaticdb gdbm gif gphoto2 gpm gtk2 guile icq imlib innodb jack jack-tmpfs
java jpeg kde ladcca lcms libwww mad maildir mitshm motif mozilla mpeg mysql
ncurses nls offensive oggvorbis opengl pam pdflib perl png ppc python qt radeon
readline samba sasl sdl slang speex spell ssl tcltk tcpd tetex tiff truetype usb
video_cards_radeon wmf xml xml2 xmms xv zlib"
Comment 1 Michael Kiermaier 2004-05-22 11:32:05 UTC
Created attachment 31845 [details]
The used kernel config
Comment 2 Michael Kiermaier 2004-05-22 11:33:45 UTC
Created attachment 31846 [details]
My /etc/pbbuttonsd.conf
Comment 3 Michael Kiermaier 2004-05-22 11:36:45 UTC
I forgot to mention:
If I stop alsasound before setting the iBook to sleep, the resume works.
Comment 4 Luca Barbato gentoo-dev 2004-05-23 12:42:40 UTC
use the development-source-2.6.6 and tell me if that behaviour still apply, the ppc-development-sources will be deprecated soon
Comment 5 Michael Kiermaier 2004-05-23 16:25:18 UTC
I tried development-sources-2.6.6, and the error remains. The error message looks nearly, but not *exactly* the same. If there is the need for the error message, please tell me. It is quite tedious to copy it manually from the frozen screen, so I don't copy it right now.

Why will the ppc-development-sources be deprecated?
Comment 6 Luca Barbato gentoo-dev 2004-05-24 02:05:53 UTC
the ppc-development-sources was just the snapshots from the benh tree plus some patches needed for internal uses (gcloop).

now benh commits directly on the mainline and the gcloop is already present in the gentoo-dev-sources.

Non mac platform are supported by other specialized kernels.
Comment 7 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-08-19 19:31:31 UTC
does resume work with newer kernels?
Comment 8 Michael Kiermaier 2004-08-20 01:28:08 UTC
Yes, I currently use development-sources-2.6.8.1, and sleep/resume works again!