Skip to contentSkip to conversation

awe64 isa pnp ALSA problems since 2.6.17

DISCUSSION Santiago Garcia Mantinan 3 participants 6 messages Jun 30, 2006 – Jul 4, 2006 Sound

lore
Share & tools
lore
#0 lore raw

Hi!

I'm experiencing some problems on 2.6.17 that I didn't have on 2.6.16, most noticeable are the messages when alsa is loaded:

setup_irq: irq handler mismatch
<c012387b> setup_irq+0xe5/0xfb <c01bfc95> pnp_test_handler+0x0/0x6 <c01238fc> request_irq+0x6b/0x8b <c01bfe55> pnp_check_irq+0xb8/0x12f <c01bfc95> pnp_test_handler+0x0/0x6 <c01c083b> pnp_assign_irq+0xd7/0xf4 <c01c0acd> pnp_assign_resources+0x1bc/0x23a <c01c0bac>
pnp_auto_config_dev+0x6
1/0x8f
<c01c0bf9> pnp_activate_dev+0x1f/0x46 <d08de81b>
snd_sb16_pnp_detect+0x1ae/0x3
4f [snd_sbawe]
<c01bf3d5> card_probe+0xb1/0x104 <c01bf4a8>

pnp_register_card_driver+0x80/0x90
 <d085a070> alsa_card_sb16_init+0x70/0xae [snd_sbawe]  <c01223ba>
sys_init_modul
e+0x1103/0x1272
 <c01024b3> syscall_call+0x7/0xb 

pnp: Device 00:01.00 activated.
pnp: Device 00:01.02 activated.

before this messages isapnp is initialiced without any problem with this messages:

isapnp: Scanning for PnP cards...
pnp: SB audio device quirk - increasing port range
pnp: AWE32 quirk - adding two ports
isapnp: Card 'Creative SB AWE64 PnP'
isapnp: 1 Plug & Play card detected total

As I said this is only happening on 2.6.17 and not on 2.6.16, also some programs still using the oss api are sounding really bad now (I noticed this on skype, but not on kiax or mpg123).

Machine is a pentium III with a via apollo mvp3 chipset.

I don't know what else to add, don't hesitate to ask for any other details or for any tests you'd like.

Regards...

Signature · 1 line
Manty/BestiaTester -> http://manty.net
#1 lore raw

At Fri, 30 Jun 2006 22:57:03 +0200,

Quoted 34 lines · Santiago Garcia Mantinan

Hi!

I'm experiencing some problems on 2.6.17 that I didn't have on 2.6.16, most noticeable are the messages when alsa is loaded:

setup_irq: irq handler mismatch
<c012387b> setup_irq+0xe5/0xfb <c01bfc95> pnp_test_handler+0x0/0x6 <c01238fc> request_irq+0x6b/0x8b <c01bfe55> pnp_check_irq+0xb8/0x12f <c01bfc95> pnp_test_handler+0x0/0x6 <c01c083b> pnp_assign_irq+0xd7/0xf4 <c01c0acd> pnp_assign_resources+0x1bc/0x23a <c01c0bac>
pnp_auto_config_dev+0x6
1/0x8f
<c01c0bf9> pnp_activate_dev+0x1f/0x46 <d08de81b>
snd_sb16_pnp_detect+0x1ae/0x3
4f [snd_sbawe]
<c01bf3d5> card_probe+0xb1/0x104 <c01bf4a8>

pnp_register_card_driver+0x80/0x90
 <d085a070> alsa_card_sb16_init+0x70/0xae [snd_sbawe]  <c01223ba>
sys_init_modul
e+0x1103/0x1272
 <c01024b3> syscall_call+0x7/0xb 

pnp: Device 00:01.00 activated.
pnp: Device 00:01.02 activated.

before this messages isapnp is initialiced without any problem with this messages:

isapnp: Scanning for PnP cards...
pnp: SB audio device quirk - increasing port range
pnp: AWE32 quirk - adding two ports
isapnp: Card 'Creative SB AWE64 PnP'
isapnp: 1 Plug & Play card detected total

Quoted 8 lines

As I said this is only happening on 2.6.17 and not on 2.6.16, also some programs still using the oss api are sounding really bad now (I noticed this on skype, but not on kiax or mpg123).

Machine is a pentium III with a via apollo mvp3 chipset.

I don't know what else to add, don't hesitate to ask for any other details or for any tests you'd like.

The patch should fix the error above.

Takashi

include/sound/initval.h +2 -1
@@ -62,7 +62,8 @@ static int snd_legacy_find_free_irq(int 
 {
 	while (*irq_table != -1) {
 		if (!request_irq(*irq_table, snd_legacy_empty_irq_handler,
-				 SA_INTERRUPT, "ALSA Test IRQ", (void *) irq_table)) {
+				 SA_INTERRUPT | SA_PROBEIRQ, "ALSA Test IRQ",
+				 (void *) irq_table)) {
 			free_irq(*irq_table, (void *) irq_table);
 			return *irq_table;
 		}
#2 lore raw
Quoted 1 line

The patch should fix the error above.

I have applied your patch, did a make mrproper and then compiled again, I'm still getting the very same message:

setup_irq: irq handler mismatch
<c0123883> setup_irq+0xe5/0xfb <c01bfcb5> pnp_test_handler+0x0/0x6 <c0123904> request_irq+0x6b/0x8b <c01bfe75> pnp_check_irq+0xb8/0x12f <c01bfcb5> pnp_test_handler+0x0/0x6 <c01c085b> pnp_assign_irq+0xd7/0xf4 <c01c0aed> pnp_assign_resources+0x1bc/0x23a <c01c0bcc>
pnp_auto_config_dev+0x6
1/0x8f
<c01c0c19> pnp_activate_dev+0x1f/0x46 <d08de81b>
snd_sb16_pnp_detect+0x1ae/0x3
4f [snd_sbawe]
<c01bf3f5> card_probe+0xb1/0x104 <c01bf4c8>

pnp_register_card_driver+0x80/0x90
 <d085a070> alsa_card_sb16_init+0x70/0xae [snd_sbawe]  <c01223c2>
sys_init_modul
e+0x1103/0x1272
 <c01024b3> syscall_call+0x7/0xb 

pnp: Device 00:01.00 activated.
pnp: Device 00:01.02 activated.

Thanks.

Regards...

Signature · 1 line
Manty/BestiaTester -> http://manty.net
#3 lore raw
Quoted 10 lines · On Tue, 4 Jul 2006 00:31:28 +0200 Santiago Garcia Mantinan <[email protected]>…
Quoted 1 line

The patch should fix the error above.

I have applied your patch, did a make mrproper and then compiled again, I'm still getting the very same message:

setup_irq: irq handler mismatch
<c0123883> setup_irq+0xe5/0xfb <c01bfcb5> pnp_test_handler+0x0/0x6 <c0123904> request_irq+0x6b/0x8b <c01bfe75> pnp_check_irq+0xb8/0x12f <c01bfcb5> pnp_test_handler+0x0/0x6 <c01c085b> pnp_assign_irq+0xd7/0xf4 <c01c0aed> pnp_assign_resources+0x1bc/0x23a <c01c0bcc>

This has been addressed in Linus's current tree, via:

if (request_irq(*irq, pnp_test_handler,
IRQF_DISABLED|IRQF_PROBE_SHARED, "pnp", NULL))

in drivers/pnp/resource.c.

#4 lore raw

At Mon, 3 Jul 2006 17:50:32 -0700,

Quoted 15 lines · Andrew Morton
Quoted 10 lines · On Tue, 4 Jul 2006 00:31:28 +0200 Santiago Garcia Mantinan <[email protected]>…
Quoted 1 line

The patch should fix the error above.

I have applied your patch, did a make mrproper and then compiled again, I'm still getting the very same message:

setup_irq: irq handler mismatch
<c0123883> setup_irq+0xe5/0xfb <c01bfcb5> pnp_test_handler+0x0/0x6 <c0123904> request_irq+0x6b/0x8b <c01bfe75> pnp_check_irq+0xb8/0x12f <c01bfcb5> pnp_test_handler+0x0/0x6 <c01c085b> pnp_assign_irq+0xd7/0xf4 <c01c0aed> pnp_assign_resources+0x1bc/0x23a <c01c0bcc>

Quoted 6 lines

This has been addressed in Linus's current tree, via:

if (request_irq(*irq, pnp_test_handler,
IRQF_DISABLED|IRQF_PROBE_SHARED, "pnp", NULL))

in drivers/pnp/resource.c.

These fixes should go to 2.6.17.x tree, right?
Then I'll prepare the patch for ALSA part...

Takashi

#5 lore raw
In reply to Andrew Morton

Hi!

Quoted 6 lines

This has been addressed in Linus's current tree, via:

if (request_irq(*irq, pnp_test_handler,
IRQF_DISABLED|IRQF_PROBE_SHARED, "pnp", NULL))

in drivers/pnp/resource.c.

Sorry, I missed your message, I have picked the patch from git and works as expected.

I still have the audio problems with skype when using the oss interface, but I have not been able to reproduce them with any other program, I guess this could be either the alsa drivers (I tested 1.0.12rc1 but the result was the same as with 1.0.11rc4 from 2.6.17) or even the libs (I'm using debian's sid 1.0.11-7), even though the problem happens when I use 2.6.17 and doesn't happen if I use 2.6.16.

Thanks for your help.

Regards...

Signature · 1 line
Manty/BestiaTester -> http://manty.net