Skip to contentSkip to conversation

sleep from invalid function (ALSA related?)

BUG 2.6.0-test9 Erik Mouw 3 participants 3 messages Nov 13, 2003 – Nov 18, 2003

lore
Share & tools
lore

Erik Mouw

author
#0 lore raw

Hi,

I compiled 2.6.0-test9 on my desktop last night. Not too many problems so far, but this debug trace caught my attention:

Debug: sleeping function called from invalid context at include/asm/semaphore.h:119 in_atomic():1, irqs_disabled():0

Call Trace:
 [<c011df5b>] __might_sleep+0xab/0xd0
 [<e0c2d608>] ap_cs8427_sendbytes+0x38/0xd0 [snd_ice1712]
 [<e0b5a292>] snd_i2c_sendbytes+0x22/0x30 [snd_i2c]
 [<e0bcd14c>] snd_cs8427_reg_read+0x2c/0xa0 [snd_cs8427]
 [<e0bcd432>] snd_cs8427_create+0x92/0x320 [snd_cs8427]
 [<e0b4c320>] snd_device_new+0x20/0x70 [snd]
 [<e0c2954f>] snd_ice1712_init_cs8427+0x2f/0x70 [snd_ice1712]
 [<e0c2dfad>] snd_ice1712_delta_init+0x23d/0x2d0 [snd_ice1712]
 [<e0c2d112>] snd_ice1712_probe+0x322/0x350 [snd_ice1712]
 [<c0169de4>] dput+0x24/0x220
 [<c01ad55b>] pci_device_probe_static+0x4b/0x60
 [<c01ad5a6>] __pci_device_probe+0x36/0x50
 [<c01ad5ec>] pci_device_probe+0x2c/0x50
 [<c01ed34d>] bus_match+0x3d/0x70
 [<c01ed47a>] driver_attach+0x5a/0x90
 [<c01ed774>] bus_add_driver+0xa4/0xc0
 [<c01edbd1>] driver_register+0x31/0x40
 [<c01ad7cb>] pci_register_driver+0x5b/0x80
 [<e0af3015>] alsa_card_ice1712_init+0x15/0x4c [snd_ice1712]
 [<c0136670>] sys_init_module+0x130/0x280
 [<c010a36f>] syscall_call+0x7/0xb

It looks ALSA related to me, the soundcard I use is a Midiman Audiophile 2496, which uses the ice1712 driver.

Erik

Signature · 3 lines
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
| Data lost? Stay calm and contact Harddisk-recovery.com
#1 lore raw

At Thu, 13 Nov 2003 12:33:16 +0100,

Quoted 5 lines · Erik Mouw

Hi,

I compiled 2.6.0-test9 on my desktop last night. Not too many problems so far, but this debug trace caught my attention:

(snip)

Quoted 2 lines

It looks ALSA related to me, the soundcard I use is a Midiman Audiophile 2496, which uses the ice1712 driver.

the attached patch should fix.
please give a try.

--
Takashi Iwai <[email protected]> ALSA Developer - www.alsa-project.org

#2 lore raw
Quoted 10 lines · Takashi Iwai

At Thu, 13 Nov 2003 12:33:16 +0100,

Quoted 2 lines · Erik Mouw

I compiled 2.6.0-test9 on my desktop last night. Not too many problems so far, but this debug trace caught my attention:

(snip)

Quoted 2 lines

It looks ALSA related to me, the soundcard I use is a Midiman Audiophile 2496, which uses the ice1712 driver.

the attached patch should fix.
please give a try.

Yes, that fixes it indeed, no debug warnings on load/unload. Thanks!

Erik

Signature · 1 line
----  Erik Mouw  ----  www.bitwizard.nl  ----  +31 15 2600 998  ----