Bug 3797 - Alsa 1.0.7 driver package oops kernel while using azx modules with 2.6.10_rc2_mm2
Summary: Alsa 1.0.7 driver package oops kernel while using azx modules with 2.6.10_rc2...
Status: REJECTED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: i386 Linux
: P2 blocking
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-22 20:51 UTC by Tariq Firoz
Modified: 2005-08-03 05:54 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.10-rc2-mm2
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Tariq Firoz 2004-11-22 20:51:36 UTC
Distribution: Gentoo
Hardware Environment: Intel 915GAV mob (with Intel 5.1 Avance audio ), maxtor
160gb sata drive, sony dvd-writer, samsung cd-writer
Software Environment: alsa-driver 1.0.7 (also tried with alsa-cvs) with
2.6.10-rc2-mm2 kernel
Problem Description: Kernel oops


Steps to reproduce: 
1. disable everything alsa (except alsa module support) from kernel
2. ALSA_CARDS="azx" in /etc/make.conf and emerge alsa-driver
3. /etc/init.d/alsasound start 

Actual Results:  
Kernel oops (but that does not happed if i manually compiler alsa-driver 1.0.7
using ./configure --with-cards=azx --with-oss=yes ... but still sound quality is
very bad, has a lot of crackle and noise)

Expected Results:  
Enabled my sound card base on intel 915g chipset (Azalia advance audio)
Comment 1 Lance Albertson 2004-11-25 23:57:57 UTC
I'm experiencing the same thing myself. I compiled my kernel with debugging info
and got this below in my messages logfile. I'm running gentoo-dev-sources-2.6.9-r3. 

ACPI: PCI interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1b.0 to 64
################### ** PW FOUND: NID is: 0xc **
################### DBG: type of jack is: 0x8
################### DBG: color of line out jack is: 0x3
######################### mixer table content ############################ 
## MIX-TYPE | CTL NAME | NID | IDX | AMP-DIR | DATA-DIR | AMP-TYPE |
AMP-MAX-STEPS ## 
3   |  UNKNOWN  |   0x4   |   0   |   1   |    1    |    1    |       0       
2   |  PCM CAPTURE  |   0x9   |   0   |   0   |    0    |    0    |       0       
########################################################################## 
Unable to handle kernel NULL pointer dereference at virtual address 00000054
printing eip:
f8c1cb28
*pde = 00000000
Oops: 0000 [#1]
SMP 
Modules linked in: snd_seq snd_seq_device snd_azx snd_pcm snd_timer snd
snd_page_alloc nvidia ohci1394 ieee1394
CPU:    0
EIP:    0060:[<f8c1cb28>]    Tainted: P   VLI
EFLAGS: 00010246   (2.6.9-gentoo-r6) 
EIP is at snd_azx_mast_vol_out_callback_put+0x36/0xfd [snd_azx]
eax: 00000000   ebx: f790c700   ecx: f569c400   edx: 00000040
esi: ed3d8f22   edi: ed3d8f21   ebp: f1a03800   esp: ed3d8efc
ds: 007b   es: 007b   ss: 0068
Process alsactl (pid: 30411, threadinfo=ed3d8000 task=f4ef18b0)
Stack: 00000000 00000000 00000000 00000000 00000000 00000000 f569c400 c02189cc 
f569c400 4040ee10 f563b400 f569c400 f563b54c 00000002 f8c26eea f790c700 
f569c400 000002c4 f790c700 00000000 fffffff3 ed3d8000 bfffee10 f57b2c80 
Call Trace:
[<c02189cc>] copy_from_user+0x42/0x6e
[<f8c26eea>] snd_ctl_elem_write+0x1a6/0x1f5 [snd]
[<f8c27a37>] snd_ctl_ioctl+0x2cf/0x3ae [snd]
[<f8c27768>] snd_ctl_ioctl+0x0/0x3ae [snd]
[<c0169b77>] sys_ioctl+0x101/0x27a
[<c0105f71>] sysenter_past_esp+0x52/0x71
Code: c7 04 24 00 00 00 00 8d 74 24 26 e8 6d 18 00 00 8d 7c 24 25 8b 4c 24 40 0f
b6 51 44 8b 6b 5c 88 54 24 26 0f b6 51 48 88 54 24 27 <0f> b6 50 54 89 54 24 20
8b 48 58 89 4c 24 1c 8b 40 5c 89 44 24 

This oops appears to be happening when this is called:

alsactl -f /etc/asound.state restore 0

I'm guessing this could be an issue with alsa itself and not the kernel, but it
never hurts to ask the expert :)
Comment 2 Tariq Firoz 2004-11-26 00:05:10 UTC
yup, i have the same problem ... dunno what's causing it (I am using the latest
cvs alsa-driver, alsa-utils etc.)

Tariq Firoz
Comment 3 Tariq Firoz 2004-11-26 00:11:25 UTC
1. I have the latest alsa-driver, alsa-lib, alsa-util, alsa-tool from cvs.
2. My board is 915 GAV (supports ICH6 High-definition Audio, which is enabled 
   in Bios)
3. Have enabled alsa sound in kernel as module (but no other sound modules)
4. Earlier I was getting a lot of static with alsa-driver 1.0.7, but with the
   cvs version, things have become better.

   Right now the situation is:
	a) sound skipping (xrun something ??)
	b) Kernel Oops when starting, kde (arts disabled), gnome
	   or while trying to "modprobe snd-pcm-oss", or while trying to
	   start alsamixer.
      c) Works fine with mplayer, mpg123 (some static and a lot of skipping)

	My Kernel is 2.6.10-rc2-mm2 (Using gentoo ebuild), with 3 GHz P-4 (HT enabled)
	I have SMP enabled kernel with SMT (for HT support). My Hard drive is SATA Maxtor
	160 GB. 

	I still don't see "azx" driver in 2.6.10-rc2-mm2 kernel (I believe there were a lot
	of alsa merges in "rc2" kernel ?)
Comment 4 Lance Albertson 2004-11-27 10:43:52 UTC
Could this possibly be something with SMP? I thought it was, but after
recompiling the kernel w/o SMP and turning off HT in the bios, I still have the
same problem with it oops'ing the kernel.  So, I'm still not sure. I woudl like
to get this going if I could :\. Getting tempted to pop in my Audigy while I
wait to get this going.
Comment 5 Adrian Bunk 2005-08-03 05:54:08 UTC
Bugs in external drivers like snd-azx don't belong here.

Note You need to log in before you can comment on or make changes to this bug.