#636: Interrupts problems with the soundcard
------------------------------------------------+---------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: defect | Status: new
Priority: major | Milestone: version
0.9.x - progressive release candidate phase
Component: madwifi: driver | Version: trunk
Keywords: interrupts irq conflicts soundcard | Patch_attached: 0
------------------------------------------------+---------------------------
When I start the ath0 interface (ifconfig ath0 up) I get some
really strange messages from the kernel. Something is going
wrong with the interrupts of my wlan card and my soundcard -
although the interrupts are different.
For the impatient, the error is described at item 6.
----
1 - First of all my equipment:
{{{
- notebook with atheros 5212 chip cardbus card (lspci follows below)
- debian eth - about 1 month old
- madwifi as of 2006-05-20 from subversion
- kernel 2.6.16 self compiled
- onboard PCI soundcard
}}}
----
2 - lspci gives me:
{{{
> 0000:00:06.0 Multimedia audio controller: Creative Labs Ectiva EV1938
> Subsystem: TWINHEAD INTERNATIONAL Corp P88TE (TWINHEAD INTERNATIONAL
Corp)
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort-
<TAbort- <MAb> Latency: 96 (3000ns min, 32000ns max)
> Interrupt: pin A routed to IRQ 5
> Region 0: I/O ports at fcc0 [size=64]
> Region 1: I/O ports at fc40 [size=32]
> Capabilities: [dc] Power Management version 1
> Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold> Status: D0 PME-Enable- DSel=0
DScale=0 PME-
>
> 0000:06:00.0 Ethernet controller: Atheros Communications, Inc. AR5212
802.11ab> Subsystem: Atheros Communications, Inc.: Unknown device 2051
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping> Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
>TAbort- <TAbort- <M> Latency: 168 (2500ns min, 7000ns max), Cache Line
Size: 0x08 (32 bytes)
> Interrupt: pin A routed to IRQ 9
> Region 0: Memory at 36000000 (32-bit, non-prefetchable) [size=64K]
> Capabilities: [44] Power Management version 2
> Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA
PME(D0-,D1-,D2-,D3hot-,D3co> Status: D0 PME-Enable- DSel=0 DScale=2
PME-
}}}
----
3 - During bootup I get the following messages in /var/log/syslog:
{{{
> pcmcia: registering new device pcmcia0.0
> ath_hal: module license 'Proprietary' taints kernel.
> ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
RF5413)
> wlan: 0.8.4.2 (svn 2006-05-20)
> ath_rate_sample: 1.2 (svn 2006-05-20)
> ath_pci: 0.9.4.5 (svn 2006-05-20)
> PCI: Enabling device 0000:06:00.0 (0000 -> 0002)
> ACPI: PCI Interrupt 0000:06:00.0[A] -> Link [LNKC] -> GSI 9 (level, low)
-> IR> wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
24Mbps
> wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> wifi0: H/W encryption support: WEP AES AES_CCM TKIP
> wifi0: mac 7.9 phy 4.5 radio 5.6
> wifi0: Use hw queue 1 for WME_AC_BE traffic
> wifi0: Use hw queue 0 for WME_AC_BK traffic
> wifi0: Use hw queue 2 for WME_AC_VI traffic
> wifi0: Use hw queue 3 for WME_AC_VO traffic
> wifi0: Use hw queue 8 for CAB traffic
> wifi0: Use hw queue 9 for beacons
> wifi0: Atheros 5212: mem=0x36000000, irq=9
> eth0: NE2000 Compatible: io 0x300, irq 10, hw_addr 00:E0:98:17:4A:22
}}}
----
4 - The interrupts /proc/interrupts:
{{{
> CPU0
> 0: 844183 XT-PIC timer
> 1: 161 XT-PIC i8042
> 2: 0 XT-PIC cascade
> 3: 3890 XT-PIC serial
> 5: 4 XT-PIC Ensoniq AudioPCI
> 7: 6 XT-PIC parport0
> 8: 4 XT-PIC rtc
> 9: 2 XT-PIC acpi, yenta, yenta, wifi0
> 10: 881 XT-PIC pcnet_cs
> 11: 1 XT-PIC uhci_hcd:usb1
> 12: 93 XT-PIC i8042
> 14: 11212 XT-PIC ide0
> NMI: 0
> LOC: 0
> ERR: 0
> MIS: 0
}}}
----
5 - ifconfig ath0 resp. ifconfig wifi0:
{{{
ath0 Protokoll:Ethernet Hardware Adresse 00:40:F4:D2:76:D8
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wifi0 Protokoll:UNSPEC Hardware Adresse 00-40-F4-D2-76-D8-00-00-00-
00-00-00 BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:199
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9 Speicher:e0bc0000-e0bd0000
}}}
----
6 - The error: The command "ifconfig ath0 up" results in these messages
on the console and within /var/log/syslog:
{{{
> irq 5: nobody cared (try booting with the "irqpoll" option)
> [__report_bad_irq+36/144] __report_bad_irq+0x24/0x90
> [note_interrupt+147/512] note_interrupt+0x93/0x200
> [handle_IRQ_event+61/112] handle_IRQ_event+0x3d/0x70
> [__do_IRQ+180/192] __do_IRQ+0xb4/0xc0
> [do_IRQ+25/48] do_IRQ+0x19/0x30
> [common_interrupt+26/32] common_interrupt+0x1a/0x20
> [handle_IRQ_event+24/112] handle_IRQ_event+0x18/0x70
> [__do_IRQ+99/192] __do_IRQ+0x63/0xc0
> [do_IRQ+25/48] do_IRQ+0x19/0x30
> [common_interrupt+26/32] common_interrupt+0x1a/0x20
> [get_offset_pmtmr+22/128] get_offset_pmtmr+0x16/0x80
> [do_gettimeofday+26/208] do_gettimeofday+0x1a/0xd0
> [getnstimeofday+20/64] getnstimeofday+0x14/0x40
> [ktime_get_real+29/80] ktime_get_real+0x1d/0x50
> [hrtimer_run_queues+22/208] hrtimer_run_queues+0x16/0xd0
> [run_timer_softirq+12/400] run_timer_softirq+0xc/0x190
> [__do_softirq+66/160] __do_softirq+0x42/0xa0
> [do_softirq+38/48] do_softirq+0x26/0x30
> [local_bh_enable+117/128] local_bh_enable+0x75/0x80
> [pg0+546151328/1069532160] igmp6_group_added+0x30/0x190 [ipv6]
> [md5_final+111/224] md5_final+0x6f/0xe0
> [pg0+546152252/1069532160] ipv6_dev_mc_inc+0x1fc/0x2d0 [ipv6]
> [pg0+546152608/1069532160] ipv6_mc_init_dev+0x90/0xa0 [ipv6]
> [pg0+546051902/1069532160] ipv6_add_dev+0x19e/0x280 [ipv6]
> [__wake_up_locked+29/32] __wake_up_locked+0x1d/0x20
> [pg0+546052204/1069532160] ipv6_find_idev+0x4c/0x90 [ipv6]
> [__down_failed_trylock+7/12] __down_failed_trylock+0x7/0xc
> [pg0+546052310/1069532160] addrconf_add_dev+0x26/0x80 [ipv6]
> [__down_failed_trylock+7/12] __down_failed_trylock+0x7/0xc
> [pg0+546066061/1069532160] addrconf_notify+0x2cd/0x86a [ipv6]
> [pg0+544616138/1069532160] __ieee80211_newstate+0x27a/0x970 [wlan]
> [__wake_up_locked+29/32] __wake_up_locked+0x1d/0x20
> [__down_failed_trylock+7/12] __down_failed_trylock+0x7/0xc
> [.text.lock.devinet+203/290] .text.lock.devinet+0xcb/0x122
> [rtmsg_ifinfo+150/240] rtmsg_ifinfo+0x96/0xf0
> [notifier_call_chain+45/80] notifier_call_chain+0x2d/0x50
> [dev_open+137/144] dev_open+0x89/0x90
> [dev_change_flags+94/336] dev_change_flags+0x5e/0x150
> [devinet_ioctl+1547/1790] devinet_ioctl+0x60b/0x6fe
> [sock_ioctl+167/592] sock_ioctl+0xa7/0x250
> [do_ioctl+42/128] do_ioctl+0x2a/0x80
> [vfs_ioctl+82/688] vfs_ioctl+0x52/0x2b0
> [sys_ioctl+136/160] sys_ioctl+0x88/0xa0
> [syscall_call+7/11] syscall_call+0x7/0xb
> handlers:
> [pg0+544111312/1069532160] (snd_audiopci_interrupt+0x0/0x210
[snd_ens1371])
> Disabling IRQ #5
> ath0: no IPv6 routers present
}}}
The wlan card is running fine even after these messages.
I cannot check whether these messages have some influence on my
soundcard because this systems is quite new and I was not yet able
to get something out of my soundcard - even without trying the
the wlan equipment.
I should mention here that I '''do not''' get these messages when I
remove the module snd_ens1371 before doing the "ifconfig ath0 up".
But I '''do''' get these messages, too, when doing it the other way round:
{{{
- first "ifconfig ath0 up"
- second "modprobe snd_ens1371"
}}}
Ok, that could give the idea that this might be a problem with
the sound module. However I also have an ethernet card (pcmcia)
and activating (ifconfig eth0 up) it does not result in any
problems - whether snd_ens1371 is loaded or not.
Thus I think that the probability is higher
that the error is within the madwifi modules.
----
7 - Finally again the interrupts /proc/interrupts:
{{{
> CPU0
> 0: 1078660 XT-PIC timer
> 1: 161 XT-PIC i8042
> 2: 0 XT-PIC cascade
> 3: 5060 XT-PIC serial
> 5: 100004 XT-PIC Ensoniq AudioPCI
> 7: 6 XT-PIC parport0
> 8: 4 XT-PIC rtc
> 9: 13876 XT-PIC acpi, yenta, yenta, wifi0
> 10: 1397 XT-PIC pcnet_cs
> 11: 1 XT-PIC uhci_hcd:usb1
> 12: 93 XT-PIC i8042
> 14: 11693 XT-PIC ide0
> NMI: 0
> LOC: 0
> ERR: 0
> MIS: 0
}}}
Strange - no change!
Despite the messages given above IRQ 5 still is present here.
--
Ticket URL: <http://madwifi.org/ticket/636>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity