Bug 115837 - ALSA: snd_intel8x0 doesn't work
Summary: ALSA: snd_intel8x0 doesn't work
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Kernel (show other bugs)
Version: RC 1
Hardware: i386 All
: P5 - None : Major
Target Milestone: ---
Assignee: Takashi Iwai
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 11:38 UTC by Andreas Gruenbacher
Modified: 2005-09-13 10:05 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
hwinfo output on this machine (178.92 KB, patch)
2005-09-08 11:40 UTC, Andreas Gruenbacher
Details | Diff
Brute-force patch to fix "codec semaphore" errors (742 bytes, patch)
2005-09-08 14:22 UTC, Takashi Iwai
Details | Diff
Add "buggy_semaphore" option (1.85 KB, patch)
2005-09-08 16:18 UTC, Takashi Iwai
Details | Diff
Fixed patch for buggy_semaphore option (3.26 KB, patch)
2005-09-08 17:44 UTC, Takashi Iwai
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Gruenbacher 2005-09-08 11:38:53 UTC
Machine: ASUS S5200N Centrino notebook  
With the Beta4 and RC1 kernels, the snd_intel8x0 spits out errors when loading 
(the kind and number of semaphore messages varies slightly): 
  
ACPI: PCI Interrupt 0000:00:1f.5[B] -> Link [LNKB] -> GSI 7 (level, low) ->  
IRQ 7  
PCI: Setting latency timer of device 0000:00:1f.5 to 64  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ALSA sound/pci/intel8x0.c:596: codec_semaphore: semaphore is not ready [0x1] 
[0x700300]  
ACPI: PCI interrupt for device 0000:00:1f.5 disabled  
Intel ICH: probe of 0000:00:1f.5 failed with error -13  
 
$ cat /proc/asound/cards 
--- no soundcards --- 
 
With the 9.3 kernel, sound works fine on this machine.
Comment 1 Andreas Gruenbacher 2005-09-08 11:40:05 UTC
Created attachment 49184 [details]
hwinfo output on this machine
Comment 2 Daniel Gollub 2005-09-08 14:00:23 UTC
Machine: ASUS M2400N

i got the same errors since i updated the bios to "M2N02080A".
before bios update sound works fine.

Are/which logs are needed?
Comment 3 Daniel Gollub 2005-09-08 14:02:50 UTC
forgot the versions:
RC1 and Beta4 works until bios update fine...
Comment 4 Andreas Gruenbacher 2005-09-08 14:18:22 UTC
I've got BIOS version 0210 from 02/27/04. ASUS has a 0211 update for the S5N 
(S5xxxN)  series which I couldn't yet install because I don't have Windows 
around. (Is there a DOS flash utility, too?) 
Comment 5 Takashi Iwai 2005-09-08 14:21:42 UTC
The patch below is a brute-force fix to ignore "codec semaphore" errors.
This _might_ bring the device workable somehow, but it's of course no correct fix.
Comment 6 Takashi Iwai 2005-09-08 14:22:42 UTC
Created attachment 49217 [details]
Brute-force patch to fix "codec semaphore" errors
Comment 7 Takashi Iwai 2005-09-08 14:25:06 UTC
BTW, the sound works with 9.3 kernel together with SL10.0 system on Andreas'
machine.  (You'll need to create /dev/snd/* files manually because of udev
changes after 9.3 kernel, though.)

I consider it's a problem of PCI core or ACPI problem on the recent kernel
rather than the sound driver itself.  The changes of intel8x0 and ac97 codes
between 9.3 and 10.0 kernels are fairly small and all non-critical.
Comment 8 Andreas Gruenbacher 2005-09-08 15:30:00 UTC
The patch from comment 6 makes sound work on this machine. 
Comment 9 Daniel Gollub 2005-09-08 16:05:50 UTC
the patch makes also sound on ASUS M2400N again...
Comment 10 Takashi Iwai 2005-09-08 16:18:18 UTC
OK, then please use the patch below, instead.
It adds a new module option "buggy_semaphore".  Set buggy_semaphore=1 for
snd-intel8x0 module (e.g. in /etc/modprobe.d/sound file).

If this works, I'll submit the patch.
Comment 11 Takashi Iwai 2005-09-08 16:18:58 UTC
Created attachment 49234 [details]
Add "buggy_semaphore" option
Comment 12 Takashi Iwai 2005-09-08 17:43:58 UTC
The patch #11 might not work well.  Try the next one below.
Comment 13 Takashi Iwai 2005-09-08 17:44:54 UTC
Created attachment 49249 [details]
Fixed patch for buggy_semaphore option
Comment 14 Takashi Iwai 2005-09-08 18:59:25 UTC
Confirmed to work on Andreas' machine.  The patch is committed to kernel CVS now.
Comment 15 Daniel Gollub 2005-09-09 12:37:40 UTC
patch on #13 works fine too on ASUS M2400N :)
Comment 16 Takashi Iwai 2005-09-12 19:05:29 UTC
OK, I resolve this to FIXED since a workaround is provided.

It would be nicer to detect this automatically, but the best is to fix the core
stuff again, instead.
Comment 17 Daniel Gollub 2005-09-13 10:05:53 UTC
maybe it is a good idea to append this workaround module parameter in yast2
'sound' to the extended options ... until the core stuff is fixed. like the parm
"buggy_irq".