Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460580 - =sys-kernel/gentoo-sources-[3.7.2,3.8.2] - snd-powermac crashes system on load.
Summary: =sys-kernel/gentoo-sources-[3.7.2,3.8.2] - snd-powermac crashes system on load.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://lists.debian.org/debian-kernel...
Whiteboard: May be caused by commits 3a3dd0186f61...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-06 19:47 UTC by Norayr Chilingarian
Modified: 2013-11-14 20:38 UTC (History)
1 user (show)

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


Attachments
jpg file with dump on a screen on kernel module (snd-powermac.jpg,861.77 KB, image/jpeg)
2013-03-06 19:47 UTC, Norayr Chilingarian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norayr Chilingarian 2013-03-06 19:47:51 UTC
Created attachment 341154 [details]
jpg file with dump on a screen on kernel module

Since 3.7.2, and possibly previous kernels too, till 3.8.2 now I need to blacklist snd-powermap module so that system boot. Or not compile it.
If the module loads, then the kernel hungs.
Comment 1 Norayr Chilingarian 2013-03-06 19:48:17 UTC
kernel I use is gentoo-sources.
Comment 2 Norayr Chilingarian 2013-03-06 19:49:15 UTC
machine is ibook g4
Comment 3 Mike Pagano gentoo-dev 2013-03-23 18:35:20 UTC
Can you add snd-powermac.blacklist=yes to your kernel parameters and retest?
Comment 4 Norayr Chilingarian 2013-03-24 20:44:44 UTC
you mean, does it boot if I blacklist the module?
yes, I tried to prevent it to load both ways - and by adding it to /etc/modprobe.d/blacklist.conf and by passing a kernel command line like you suggested. It this case system boots ok.

I can boot the system, I cannot use alsa sound drivers.
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-05-11 22:47:51 UTC
Does this still happen on later kernel versions? Have you considered doing a git bisect? http://wiki.gentoo.org/wiki/Kernel_git-bisect
Comment 6 Norayr Chilingarian 2013-05-13 22:27:36 UTC
I'll try 3.9 and if the problem exists I'll try to understand how to use git-bisect
Comment 7 Norayr Chilingarian 2013-05-20 20:09:34 UTC
kernel 3.9.2 - without blacklisting snd-powermac machine does not boot.
So finding the last kernel which booted is the only option?
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-19 10:06:20 UTC
(In reply to Norayr Chilingarian from comment #7)
> kernel 3.9.2 - without blacklisting snd-powermac machine does not boot.
> So finding the last kernel which booted is the only option?

Yes, if you have the time to do this please consider doing this:

http://wiki.gentoo.org/wiki/Kernel_git-bisect

Denote your working kernel (3.6.something) as good commit and the earliest that fails (3.7.2) as bad commit.
Comment 9 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-08-12 21:41:06 UTC
There are much more recent kernels now, please try:

1. =sys-kernel/gentoo-sources-3.10.6
2. =sys-kernel/git-sources-3.11_rc5
3. Failing those two, a git bisect to find the bad commit.

Thank you in advance.
Comment 10 Norayr Chilingarian 2013-08-12 22:57:16 UTC
last two weeks I am trying to downgrade and test kernels:

spitak src # pwd
/usr/src
spitak src # ls
config               linux-3.6.1.tar.xz  linux-3.6.5         linux-3.6.8.tar.xz
linux                linux-3.6.2         linux-3.6.5.tar.xz  linux-3.6.9
linux-3.6.1          linux-3.6.2.tar.xz  linux-3.6.6         linux-3.6.9.tar.xz
linux-3.6.10         linux-3.6.3         linux-3.6.6.tar.xz  linux-3.7.1.tar.xz
linux-3.6.10.tar.xz  linux-3.6.3.tar.xz  linux-3.6.7         linux-3.7.tar.xz
linux-3.6.11         linux-3.6.4         linux-3.6.7.tar.xz  linux-3.9.2-gentoo
linux-3.6.11.tar.xz  linux-3.6.4.tar.xz  linux-3.6.8

So I have reached 3.6.2 so far (did not test yet 3.6.1) and it don't boot if I don't blacklist the module.

I don't actually remember the last working option, I was updating Gentoo rare, so I even suspect, may be the hardware is faulty, not the software.
Anyway, I intent to downgrade kernel step by step till 3.5.5 or something similar and see.

Also, I will try new kernels, thank you
Comment 11 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-08-12 23:32:53 UTC
(In reply to Norayr Chilingarian from comment #10)
> last two weeks I am trying to downgrade and test kernels:
> 
> spitak src # pwd
> /usr/src
> spitak src # ls
> config               linux-3.6.1.tar.xz  linux-3.6.5        
> linux-3.6.8.tar.xz
> linux                linux-3.6.2         linux-3.6.5.tar.xz  linux-3.6.9
> linux-3.6.1          linux-3.6.2.tar.xz  linux-3.6.6        
> linux-3.6.9.tar.xz
> linux-3.6.10         linux-3.6.3         linux-3.6.6.tar.xz 
> linux-3.7.1.tar.xz
> linux-3.6.10.tar.xz  linux-3.6.3.tar.xz  linux-3.6.7         linux-3.7.tar.xz
> linux-3.6.11         linux-3.6.4         linux-3.6.7.tar.xz 
> linux-3.9.2-gentoo
> linux-3.6.11.tar.xz  linux-3.6.4.tar.xz  linux-3.6.8
> 
> So I have reached 3.6.2 so far (did not test yet 3.6.1) and it don't boot if
> I don't blacklist the module.
> 
> I don't actually remember the last working option, I was updating Gentoo
> rare, so I even suspect, may be the hardware is faulty, not the software.
> Anyway, I intent to downgrade kernel step by step till 3.5.5 or something
> similar and see.
> 
> Also, I will try new kernels, thank you

It is much less work if you do a bisect instead.

Instead of all those versions, you could have split the range in half and tried the middle; effectively, you would then have determined which half not to test which would have spared you out testing quite some versions. Once you have determined that half, split it again; and so on...

Since you rather would want to do this on a commit level instead of a kernel level; please take a look at how to git bisect, and then try to find the bad commit. Bisects exactly do what I described above for the commits.

http://wiki.gentoo.org/wiki/Kernel_git-bisect

Thank you very much in advance.
Comment 12 Norayr Chilingarian 2013-09-17 06:13:56 UTC
so I decided to follow one of the advices here and try the newest kernel.
we have news with vanilla sources 3.11.1.
mac does not hung during boot, loads snd-powermac, but cannot find the audio card.

dmesg output is: http://pastebin.com/B0NVbKJ9

lines 381-399 are related.

when I rmmode and modprobe snd-powermac module those lines reappear in dmesg

mplayer2 output also confirms that audio card is not detected: http://pastebin.com/Y3JMDLR0 (lines 16-43)

Thank you.
Comment 13 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-14 15:44:58 UTC
Can you try =sys-kernel/git-sources-3.12-rc5?

They've added a commit that should fail adding an adapter sooner, which might uncover the underlying problem; if not, I guess we better report upstream.
Comment 14 Norayr Chilingarian 2013-10-15 22:19:01 UTC
very similar.
It boots.
It even made some sound while loading sound drivers. I believe it did not with other kernels.
However it failed to restore mixer settings during bootup.

Then, alsamixer cannot be run - cannot find mixer.

I have tried to play mp3 file with mplayer2, it says no card found, but plays it. No sound.

Thank you.
Comment 15 Norayr Chilingarian 2013-10-15 22:19:34 UTC
How can I report upstream?
Comment 16 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-15 22:33:35 UTC
Did you check dmesg for new messages on the new kernel?

Upstream you can file a bug at https://bugzilla.kernel.org just like you filed a bug report here; if you do, please provide us the URL of the upstream bug.

Good luck and thank you in advance.