2004-04-01 19:33:25

by sean

[permalink] [raw]
Subject: irq 16 : Nobody cared - alsa v. io-apic in 2.6.5-rc3-bk2

I have a VIA k400 motherboard.

From dmesg:

...................
Advanced Linux Sound Architecture Driver Version 1.0.4rc2 (Tue Mar 30
08:19:30 2004 UTC).
ALSA device list:
#0: C-Media PCI CMI8738-MC6 (model 55) at 0xe800, irq 16
NET: Registered protocol family 2
.....................
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 372k freed
irq 16: nobody cared!
Call Trace:
[<c0108508>] __report_bad_irq+0x28/0x80
[<c01088ae>] do_IRQ+0x15e/0x1a0
[<c0106e08>] common_interrupt+0x18/0x20
[<c01044e3>] default_idle+0x23/0x30
[<c010455d>] cpu_idle+0x2d/0x40
[<c04ee61b>] start_kernel+0x2ab/0x320
[<c04ee1c0>] unknown_bootoption+0x0/0x180


handlers:
[<c0395800>] (snd_cmipci_interrupt+0x0/0x130)
Disabling IRQ #16
..............

I'm not sure which of the io-apic output is relevant but:

ENABLING IO-APIC IRQs
init IO_APIC IRQs
IO-APIC (apicid-pin) 2-0, 2-16, 2-17, 2-18, 2-19, 2-20, 2-21, 2-22,
2-23 not connected.
..TIMER: vector=0x31 pin1=2 pin2=-1
Using local APIC timer interrupts.
.................
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7 10 11 12 14 15)
SCSI subsystem initialized
......................
IOAPIC[0]: Set PCI routing entry (2-16 -> 0xa9 -> IRQ 16 Mode:1 Active:1)
00:00:01[A] -> 2-16 -> IRQ 16
..........................
testing the IO APIC.......................
IO APIC #2......
.... register #00: 02000000
....... : physical APIC id: 02
....... : Delivery Type: 0
....... : LTS : 0
.... register #01: 00178003
....... : max redirection entries: 0017
....... : PRQ implemented: 1
....... : IO APIC version: 0003
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
00 000 00 1 0 0 0 0 0 0 00
01 001 01 0 0 0 0 0 1 1 39
02 001 01 0 0 0 0 0 1 1 31
03 001 01 0 0 0 0 0 1 1 41
04 001 01 0 0 0 0 0 1 1 49
05 001 01 0 0 0 0 0 1 1 51
06 001 01 0 0 0 0 0 1 1 59
07 001 01 0 0 0 0 0 1 1 61
08 001 01 0 0 0 0 0 1 1 69
09 001 01 0 1 0 1 0 1 1 71
0a 001 01 0 0 0 0 0 1 1 79
0b 001 01 0 0 0 0 0 1 1 81
0c 001 01 0 0 0 0 0 1 1 89
0d 001 01 0 0 0 0 0 1 1 91
0e 001 01 0 0 0 0 0 1 1 99
0f 001 01 0 0 0 0 0 1 1 A1
10 001 01 1 1 0 1 0 1 1 A9
11 001 01 1 1 0 1 0 1 1 B1
12 001 01 1 1 0 1 0 1 1 C1
13 001 01 1 1 0 1 0 1 1 C9
14 000 00 1 0 0 0 0 0 0 00
15 001 01 1 1 0 1 0 1 1 D1
16 001 01 1 1 0 1 0 1 1 B9
17 001 01 1 1 0 1 0 1 1 D9
IRQ to pin mappings:
IRQ0 -> 0:2
IRQ1 -> 0:1
IRQ3 -> 0:3
IRQ4 -> 0:4
.......................
IRQ15 -> 0:15
IRQ16 -> 0:16
IRQ17 -> 0:17
IRQ18 -> 0:18
IRQ19 -> 0:19
IRQ21 -> 0:21
IRQ22 -> 0:22
IRQ23 -> 0:23
.................................... done.
PCI: Using ACPI for IRQ routing
...................


sean


2004-04-02 09:14:18

by Brown, Len

[permalink] [raw]
Subject: Re: irq 16 : Nobody cared - alsa v. io-apic in 2.6.5-rc3-bk2


On Thu, 2004-04-01 at 14:24, sean wrote:
> I have a VIA k400 motherboard.
>

> irq 16: nobody cared!
> Call Trace:
> [<c0108508>] __report_bad_irq+0x28/0x80
> [<c01088ae>] do_IRQ+0x15e/0x1a0
> [<c0106e08>] common_interrupt+0x18/0x20
> [<c01044e3>] default_idle+0x23/0x30
> [<c010455d>] cpu_idle+0x2d/0x40
> [<c04ee61b>] start_kernel+0x2ab/0x320
> [<c04ee1c0>] unknown_bootoption+0x0/0x180
>
>
> handlers:
> [<c0395800>] (snd_cmipci_interrupt+0x0/0x130)
> Disabling IRQ #16
> ..............

> IOAPIC[0]: Set PCI routing entry (2-16 -> 0xa9 -> IRQ 16 Mode:1
> Active:1)
> 00:00:01[A] -> 2-16 -> IRQ 16

Does acpi=off make a difference and change how /proc/interrupts looks?

If yes, can you try the latest ACPI code that 2.6.5 is missing?
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.5/

thanks,
-Len


2004-04-03 00:34:59

by sean

[permalink] [raw]
Subject: Re: irq 16 : Nobody cared - alsa v. io-apic in 2.6.5-rc3-bk2

Len Brown wrote:
> On Thu, 2004-04-01 at 14:24, sean wrote:
>
>>I have a VIA k400 motherboard.
>>
>
>
>>irq 16: nobody cared!
>>Call Trace:
>> [<c0108508>] __report_bad_irq+0x28/0x80
........................
>>handlers:
>>[<c0395800>] (snd_cmipci_interrupt+0x0/0x130)
>>Disabling IRQ #16
>>..............

>
> Does acpi=off make a difference and change how /proc/interrupts looks?
>
> If yes, can you try the latest ACPI code that 2.6.5 is missing?
> http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.5/
>
> thanks,
> -Len

Correct on all counts. acpi=off changed how /proc/interrupts looked.

Plain rc3-bk2:

cat /proc/interrupts
CPU0
0: 24465969 IO-APIC-edge timer
1: 3894 IO-APIC-edge i8042
2: 0 XT-PIC cascade
8: 1 IO-APIC-edge rtc
9: 0 IO-APIC-level acpi
11: 0 IO-APIC-edge ohci1394, radeon@PCI:1:0:0
12: 208554 IO-APIC-edge i8042
14: 484633 IO-APIC-edge ide0
15: 24 IO-APIC-edge ide1
16: 100000 IO-APIC-level CMI8738-MC6
18: 96443 IO-APIC-level eth1
21: 0 IO-APIC-level ehci_hcd, uhci_hcd, uhci_hcd, uhci_hcd

With acpi=off:

cat /proc/interrupts
CPU0
0: 411879 IO-APIC-edge timer
1: 1037 IO-APIC-edge i8042
2: 0 XT-PIC cascade
8: 1 IO-APIC-edge rtc
12: 15358 IO-APIC-edge i8042
14: 13668 IO-APIC-edge ide0
15: 24 IO-APIC-edge ide1
16: 21258 IO-APIC-level ohci1394, CMI8738-MC6, radeon@PCI:1:0:0
18: 404 IO-APIC-level eth1
21: 0 IO-APIC-level ehci_hcd, uhci_hcd, uhci_hcd, uhci_hcd


And the patch worked.

With the patch:

cat /proc/interrupts
CPU0
0: 138277 IO-APIC-edge timer
1: 942 IO-APIC-edge i8042
2: 0 XT-PIC cascade
8: 1 IO-APIC-edge rtc
9: 0 IO-APIC-level acpi
12: 918 IO-APIC-edge i8042
14: 11189 IO-APIC-edge ide0
15: 24 IO-APIC-edge ide1
16: 7731 IO-APIC-level ohci1394, CMI8738-MC6, radeon@PCI:1:0:0
18: 177 IO-APIC-level eth1
21: 0 IO-APIC-level ehci_hcd, uhci_hcd, uhci_hcd, uhci_hcd


Thanks for all your help. When should we see the patch in the kernel?

sean

2004-04-03 01:16:32

by Brown, Len

[permalink] [raw]
Subject: Re: irq 16 : Nobody cared - alsa v. io-apic in 2.6.5-rc3-bk2

On Fri, 2004-04-02 at 19:34, sean wrote:
> Len Brown wrote:
> > On Thu, 2004-04-01 at 14:24, sean wrote:

> Correct on all counts.

That's it! I'm taking the rest of the week off;-)

> Thanks for all your help. When should we see the patch in the kernel?

Marcelo pulled it into 2.4.26 yesterday.
Linus pulled it into 2.6.5 this morning.

Thanks for the quick feedback!

cheers,
-Len