Skip to contentSkip to conversation

AR5008 hanging computer

ath9k-devel Mark Sutton 6 participants 11 messages Feb 18, 2010 – Apr 17, 2010

lore
Share & tools
lore
#0 lore raw

Hi,
I have this problem as well.
Hardware is:

Atheros Communications Inc. AR5008
Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81

Kernel:Linux 2.6.32.7 #2 PREEMPT Thu Feb 4 14:19:02 PST 2010 i686 GNU/Linux

driver is supplied with kernel.

I used to think it had to do with returning from suspend to ram. Because on return it will never initiate a scan for new AP's. But it hung the other day wen the machine was left running and moved to a new location, scan worked like it should when the lease expired and froze the machine.
The panic can be caused by starting wpa_gui and requesting a scan. Sometimes it works, some it crashes the machine. I'll see if I can find a backtrace, or make one.

Thanks, mark

#1 lore raw
Quoted 9 lines · Mark Sutton

Hi,
I have this problem as well.
Hardware is:

Atheros Communications Inc. AR5008
Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81

Kernel:Linux 2.6.32.7 #2 PREEMPT Thu Feb 4 14:19:02 PST 2010 i686 GNU/Linux

Here is a call trace from last night when it hung during reboot.

pcmcia_socket pcmcia_socket0: cs: IO port probe 0x820-0x8ff: clean. pcmcia_socket pcmcia_socket0: cs: IO port probe 0xc00-0xcf7: clean. pcmcia_socket pcmcia_socket0: cs: IO port probe 0xa00-0xaff: clean. intel8x0_measure_ac97_clock: measured 55061 usecs (2653 samples)
intel8x0: clocking to 48000
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81: mem=0xf0ce0000, irq=11 Adding 1044216k swap on /dev/hda2. Priority:-1 extents:1 across:1044216k EXT4-fs (hda4): mounted filesystem with ordered data mode

 Modules linked in: acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 ath9k snd_ac97_codec ac97_bus mac80211 snd_pcm snd_seq pcmcia snd_timer snd_seq_device ath fan thermal video uhci_hcd cfg80211 processor snd ehci_hcd yenta_socket thermal_sys soundcore toshiba_acpi rsrc_nonstatic rtc_cmos usbcore intel_agp pcmcia_core e100 psmouse agpgart rtc_core snd_page_alloc rfkill output rtc_lib mii led_class hwmon evdev ac battery button

Pid: 621, comm: phy0 Not tainted (2.6.32.7 #2) Portable PC
EIP: 0060:[<f087fa1f>] EFLAGS: 00000292 CPU: 0 EIP is at yenta_interrupt+0x1f/0xf0 [yenta_socket]
EAX: 00000000 EBX: eeb45440 ECX: 00020102 EDX: 00000000
ESI: c1394010 EDI: ee954400 EBP: 00000000 ESP: ed9c1cec
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b6b4b3b0 CR3: 22832000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

 Call Trace:
  [<c1060bae>] ? handle_IRQ_event+0x6e/0x180
  [<c102cd45>] ? irq_exit+0x35/0x80
  [<c1062b6d>] ? handle_level_irq+0x7d/0x120
  [<c1004e57>] ? handle_irq+0x17/0x20
  [<c10049ea>] ? do_IRQ+0x3a/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<f0c90000>] ? ath9k_hw_AR9287_check_eeprom+0x1c0/0x250 [ath9k]
  [<c1060b56>] ? handle_IRQ_event+0x16/0x180
  [<c10064b2>] ? mask_and_ack_8259A+0x62/0x110
  [<c1062b6d>] ? handle_level_irq+0x7d/0x120
  [<c1004e57>] ? handle_irq+0x17/0x20
  [<c10049ea>] ? do_IRQ+0x3a/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<c102c9fd>] ? __do_softirq+0x3d/0x1c0
  [<c1060bae>] ? handle_IRQ_event+0x6e/0x180
  [<c102cbad>] ? do_softirq+0x2d/0x40
  [<c102cd75>] ? irq_exit+0x65/0x80
  [<c10049f3>] ? do_IRQ+0x43/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<f0c9007b>] ? ath9k_hw_AR9287_check_eeprom+0x23b/0x250 [ath9k]
  [<c119a972>] ? ioread32+0x32/0x40
  [<f0c82180>] ? ath9k_hw_set_interrupts+0x230/0x2b0 [ath9k]
  [<f0c98b76>] ? ath_set_channel+0x106/0x110 [ath9k]
  [<f0c9a90d>] ? ath9k_config+0x29d/0x310 [ath9k]
  [<f0bba062>] ? ieee80211_hw_config+0x62/0xb0 [mac80211]
  [<f0bbdf7a>] ? ieee80211_scan_work+0x35a/0x5b0 [mac80211]
  [<c103c9aa>] ? worker_thread+0x16a/0x270
  [<c101e29b>] ? pick_next_task_fair+0x6b/0xb0
  [<f0bbdc20>] ? ieee80211_scan_work+0x0/0x5b0 [mac80211]
  [<c1040300>] ? autoremove_wake_function+0x0/0x50
  [<c103c840>] ? worker_thread+0x0/0x270
  [<c1040004>] ? kthread+0x74/0x80
  [<c103ff90>] ? kthread+0x0/0x80
  [<c1003653>] ? kernel_thread_helper+0x7/0x14
 Modules linked in: acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 ath9k snd_ac97_codec ac97_bus mac80211 snd_pcm snd_seq pcmcia snd_timer snd_seq_device ath fan thermal video uhci_hcd cfg80211 processor snd ehci_hcd yenta_socket thermal_sys soundcore toshiba_acpi rsrc_nonstatic rtc_cmos usbcore intel_agp pcmcia_core e100 psmouse agpgart rtc_core snd_page_alloc rfkill output rtc_lib mii led_class hwmon evdev ac battery button

Pid: 621, comm: phy0 Not tainted (2.6.32.7 #2) Portable PC
EIP: 0060:[<c1060b56>] EFLAGS: 00000246 CPU: 0 EIP is at handle_IRQ_event+0x16/0x180
EAX: 00000000 EBX: eeb45440 ECX: 00020102 EDX: eeb45440
ESI: c1394010 EDI: eeb45440 EBP: ed9c1e10 ESP: ed9c1cfc
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b6b4b3b0 CR3: 22832000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

 Call Trace:
  [<c102cd45>] ? irq_exit+0x35/0x80
  [<c10064b2>] ? mask_and_ack_8259A+0x62/0x110
  [<c1062b6d>] ? handle_level_irq+0x7d/0x120
  [<c1004e57>] ? handle_irq+0x17/0x20
  [<c10049ea>] ? do_IRQ+0x3a/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<f0c90000>] ? ath9k_hw_AR9287_check_eeprom+0x1c0/0x250 [ath9k]
  [<c1060b56>] ? handle_IRQ_event+0x16/0x180
  [<c10064b2>] ? mask_and_ack_8259A+0x62/0x110
  [<c1062b6d>] ? handle_level_irq+0x7d/0x120
  [<c1004e57>] ? handle_irq+0x17/0x20
  [<c10049ea>] ? do_IRQ+0x3a/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<c102c9fd>] ? __do_softirq+0x3d/0x1c0
  [<c1060bae>] ? handle_IRQ_event+0x6e/0x180
  [<c102cbad>] ? do_softirq+0x2d/0x40
  [<c102cd75>] ? irq_exit+0x65/0x80
  [<c10049f3>] ? do_IRQ+0x43/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<f0c9007b>] ? ath9k_hw_AR9287_check_eeprom+0x23b/0x250 [ath9k]
  [<c119a972>] ? ioread32+0x32/0x40
  [<f0c82180>] ? ath9k_hw_set_interrupts+0x230/0x2b0 [ath9k]
  [<f0c98b76>] ? ath_set_channel+0x106/0x110 [ath9k]
  [<f0c9a90d>] ? ath9k_config+0x29d/0x310 [ath9k]
  [<f0bba062>] ? ieee80211_hw_config+0x62/0xb0 [mac80211]
  [<f0bbdf7a>] ? ieee80211_scan_work+0x35a/0x5b0 [mac80211]
  [<c103c9aa>] ? worker_thread+0x16a/0x270
  [<c101e29b>] ? pick_next_task_fair+0x6b/0xb0
  [<f0bbdc20>] ? ieee80211_scan_work+0x0/0x5b0 [mac80211]
  [<c1040300>] ? autoremove_wake_function+0x0/0x50
  [<c103c840>] ? worker_thread+0x0/0x270
  [<c1040004>] ? kthread+0x74/0x80
  [<c103ff90>] ? kthread+0x0/0x80
  [<c1003653>] ? kernel_thread_helper+0x7/0x14
 Modules linked in: acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 ath9k snd_ac97_codec ac97_bus mac80211 snd_pcm snd_seq pcmcia snd_timer snd_seq_device ath fan thermal video uhci_hcd cfg80211 processor snd ehci_hcd yenta_socket thermal_sys soundcore toshiba_acpi rsrc_nonstatic rtc_cmos usbcore intel_agp pcmcia_core e100 psmouse agpgart rtc_core snd_page_alloc rfkill output rtc_lib mii led_class hwmon evdev ac battery button

Pid: 621, comm: phy0 Not tainted (2.6.32.7 #2) Portable PC
EIP: 0060:[<f09754ad>] EFLAGS: 00000246 CPU: 0 EIP is at usb_hcd_irq+0x2d/0x60 [usbcore]
EAX: 00000000 EBX: eea13400 ECX: 00001442 EDX: 00000000
ESI: 00000246 EDI: ee85d3c0 EBP: 00000000 ESP: ed9c1cf0
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b6b4b3b0 CR3: 22832000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

 Call Trace:
  [<c1060bae>] ? handle_IRQ_event+0x6e/0x180
  [<c102cd45>] ? irq_exit+0x35/0x80
  [<c1062b6d>] ? handle_level_irq+0x7d/0x120
  [<c1004e57>] ? handle_irq+0x17/0x20
  [<c10049ea>] ? do_IRQ+0x3a/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<f0c90000>] ? ath9k_hw_AR9287_check_eeprom+0x1c0/0x250 [ath9k]
  [<c1060b56>] ? handle_IRQ_event+0x16/0x180
  [<c10064b2>] ? mask_and_ack_8259A+0x62/0x110
  [<c1062b6d>] ? handle_level_irq+0x7d/0x120
  [<c1004e57>] ? handle_irq+0x17/0x20
  [<c10049ea>] ? do_IRQ+0x3a/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<c102c9fd>] ? __do_softirq+0x3d/0x1c0
  [<c1060bae>] ? handle_IRQ_event+0x6e/0x180
  [<c102cbad>] ? do_softirq+0x2d/0x40
  [<c102cd75>] ? irq_exit+0x65/0x80
  [<c10049f3>] ? do_IRQ+0x43/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<f0c9007b>] ? ath9k_hw_AR9287_check_eeprom+0x23b/0x250 [ath9k]
  [<c119a972>] ? ioread32+0x32/0x40
  [<f0c82180>] ? ath9k_hw_set_interrupts+0x230/0x2b0 [ath9k]
  [<f0c98b76>] ? ath_set_channel+0x106/0x110 [ath9k]
  [<f0c9a90d>] ? ath9k_config+0x29d/0x310 [ath9k]
  [<f0bba062>] ? ieee80211_hw_config+0x62/0xb0 [mac80211]
  [<f0bbdf7a>] ? ieee80211_scan_work+0x35a/0x5b0 [mac80211]
  [<c103c9aa>] ? worker_thread+0x16a/0x270
  [<c101e29b>] ? pick_next_task_fair+0x6b/0xb0
  [<f0bbdc20>] ? ieee80211_scan_work+0x0/0x5b0 [mac80211]
  [<c1040300>] ? autoremove_wake_function+0x0/0x50
  [<c103c840>] ? worker_thread+0x0/0x270
  [<c1040004>] ? kthread+0x74/0x80
  [<c103ff90>] ? kthread+0x0/0x80
  [<c1003653>] ? kernel_thread_helper+0x7/0x14
 Modules linked in: acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 ath9k snd_ac97_codec ac97_bus mac80211 snd_pcm snd_seq pcmcia snd_timer snd_seq_device ath fan thermal video uhci_hcd cfg80211 processor snd ehci_hcd yenta_socket thermal_sys soundcore toshiba_acpi rsrc_nonstatic rtc_cmos usbcore intel_agp pcmcia_core e100 psmouse agpgart rtc_core snd_page_alloc rfkill output rtc_lib mii led_class hwmon evdev ac battery button

Pid: 621, comm: phy0 Not tainted (2.6.32.7 #2) Portable PC
EIP: 0060:[<c119a972>] EFLAGS: 00000292 CPU: 0 EIP is at ioread32+0x32/0x40
EAX: 00700100 EBX: eeb45440 ECX: 00001442 EDX: 00000030
ESI: 00000000 EDI: eea4eec0 EBP: ee94cc00 ESP: ed9c1ccc
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b6b4b3b0 CR3: 22832000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

 Call Trace:
  [<f0cf3569>] ? snd_intel8x0_interrupt+0x19/0x280 [snd_intel8x0]
  [<f08f5739>] ? e100_intr+0x19/0xd0 [e100]
  [<c1060bae>] ? handle_IRQ_event+0x6e/0x180
  [<c102cd45>] ? irq_exit+0x35/0x80
  [<c1062b6d>] ? handle_level_irq+0x7d/0x120
  [<c1004e57>] ? handle_irq+0x17/0x20
  [<c10049ea>] ? do_IRQ+0x3a/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<f0c90000>] ? ath9k_hw_AR9287_check_eeprom+0x1c0/0x250 [ath9k]
  [<c1060b56>] ? handle_IRQ_event+0x16/0x180
  [<c10064b2>] ? mask_and_ack_8259A+0x62/0x110
  [<c1062b6d>] ? handle_level_irq+0x7d/0x120
  [<c1004e57>] ? handle_irq+0x17/0x20
  [<c10049ea>] ? do_IRQ+0x3a/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<c102c9fd>] ? __do_softirq+0x3d/0x1c0
  [<c1060bae>] ? handle_IRQ_event+0x6e/0x180
  [<c102cbad>] ? do_softirq+0x2d/0x40
  [<c102cd75>] ? irq_exit+0x65/0x80
  [<c10049f3>] ? do_IRQ+0x43/0xa0
  [<c1003569>] ? common_interrupt+0x29/0x30
  [<f0c9007b>] ? ath9k_hw_AR9287_check_eeprom+0x23b/0x250 [ath9k]
  [<c119a972>] ? ioread32+0x32/0x40
  [<f0c82180>] ? ath9k_hw_set_interrupts+0x230/0x2b0 [ath9k]
  [<f0c98b76>] ? ath_set_channel+0x106/0x110 [ath9k]
  [<f0c9a90d>] ? ath9k_config+0x29d/0x310 [ath9k]
  [<f0bba062>] ? ieee80211_hw_config+0x62/0xb0 [mac80211]
  [<f0bbdf7a>] ? ieee80211_scan_work+0x35a/0x5b0 [mac80211]
  [<c103c9aa>] ? worker_thread+0x16a/0x270
  [<c101e29b>] ? pick_next_task_fair+0x6b/0xb0
  [<f0bbdc20>] ? ieee80211_scan_work+0x0/0x5b0 [mac80211]
  [<c1040300>] ? autoremove_wake_function+0x0/0x50
  [<c103c840>] ? worker_thread+0x0/0x270
  [<c1040004>] ? kthread+0x74/0x80
  [<c103ff90>] ? kthread+0x0/0x80
  [<c1003653>] ? kernel_thread_helper+0x7/0x14
#2 lore raw
Quoted 25 lines · Mark Sutton
Quoted 9 lines · Mark Sutton

Hi,
I have this problem as well.
Hardware is:

Atheros Communications Inc. AR5008
Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81

Kernel:Linux 2.6.32.7 #2 PREEMPT Thu Feb 4 14:19:02 PST 2010 i686 GNU/Linux

Here is a call trace from last night when it hung during reboot.

pcmcia_socket pcmcia_socket0: cs: IO port probe 0x820-0x8ff: clean. pcmcia_socket pcmcia_socket0: cs: IO port probe 0xc00-0xcf7: clean. pcmcia_socket pcmcia_socket0: cs: IO port probe 0xa00-0xaff: clean. intel8x0_measure_ac97_clock: measured 55061 usecs (2653 samples)
intel8x0: clocking to 48000
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81: mem=0xf0ce0000, irq=11 Adding 1044216k swap on /dev/hda2. Priority:-1 extents:1 across:1044216k EXT4-fs (hda4): mounted filesystem with ordered data mode

...

Quoted 3 lines

Pid: 621, comm: phy0 Not tainted (2.6.32.7 #2) Portable PC
EIP: 0060:[<f087fa1f>] EFLAGS: 00000292 CPU: 0 EIP is at yenta_interrupt+0x1f/0xf0 [yenta_socket]

That's the PCMCIA subsystem, not ath9k. We could suspect ath9k to cause it if it was immediately after ath9k was loaded, but there were other things going on after the ath9k initialization.

Signature · 2 lines
Regards,
Pavel Roskin
#3 lore raw
Quoted 8 lines
Quoted 3 lines

Pid: 621, comm: phy0 Not tainted (2.6.32.7 #2) Portable PC
EIP: 0060:[<f087fa1f>] EFLAGS: 00000292 CPU: 0 EIP is at yenta_interrupt+0x1f/0xf0 [yenta_socket]

That's the PCMCIA subsystem, not ath9k. We could suspect ath9k to cause it if it was immediately after ath9k was loaded, but there were other things going on after the ath9k initialization.

Sorry about that Pavel, this was a boot hang after a crash caused through an ath9k hang. I thought it was the same problem, but the card is mini-pci, so shouldn't have to do with yenta.

I can cause the hang every time if I boot the machine with no configured AP available. I have rebuilt ath9k with debugging and configured kdump. I was just trying to make a core dump by unplugging the AP. This time it took 55 seconds for the machine to hang. I say hang not crash since after two or so minutes (not knowing what should happen with a kdump kernel, there is no "stop-a" like on sparc) it came back.
I have included the traces from dmesg.
I can also pass debug mask or I guess force a dump, which ever is more useful. The driver will also not scan for APs after a suspend to ram. Booting the machine in an area without wifi will cause a hang every time, even just booting to a cli login prompt.
Time frame is 30 to 120 seconds.
I suppose now it would come back if an AP were turned on. Logging in as root and rmmod ath9k, problem goes away.
The driver/card will run for weeks if associated.

Is it possible this is a hardware issue?

Thanks, mark

wlan0: direct probe to AP 00:0c:e5:48:f9:2f (try 1)
wlan0: direct probe responded
wlan0: authenticate with AP 00:0c:e5:48:f9:2f (try 1)
wlan0: authenticated
wlan0: associate with AP 00:0c:e5:48:f9:2f (try 1)
wlan0: RX AssocResp from 00:0c:e5:48:f9:2f (capab=0x401 status=0 aid=1)
wlan0: associated
No probe response from AP 00:0c:e5:48:f9:2f after 500ms, disconnecting.

BUG: soft lockup - CPU#0 stuck for 61s! [phy0:604]
Modules linked in: usbhid hid nvidia(P) acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm ath9k pcmcia snd_seq mac80211 snd_timer yenta_socket snd_seq_device ath fan rsrc_nonstatic uhci_hcd thermal cfg80211 video snd processor toshiba_acpi pcmcia_core ehci_hcd thermal_sys led_class rtc_cmos e100 soundcore rtc_core battery ac evdev hwmon mii rtc_lib output rfkill snd_page_alloc intel_agp usbcore psmouse agpgart button

Pid: 604, comm: phy0 Tainted: P (2.6.32.7 #4) Portable PC
EIP: 0060:[<c0294d02>] EFLAGS: 00000296 CPU: 0 EIP is at ioread32+0x32/0x40
EAX: 00000000 EBX: edc40000 ECX: f0c40000 EDX: f0c48258
ESI: edc40000 EDI: 00001000 EBP: 00000000 ESP: ed899d24
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b7868000 CR3: 27fc7000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

Call Trace:
 [<f0bfc656>] ? ath9k_hw_procmibevent+0x36/0x140 [ath9k]
 [<f0c03090>] ? ath_isr+0x140/0x180 [ath9k]
 [<c015f175>] ? handle_IRQ_event+0x45/0x190
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c016122d>] ? handle_level_irq+0x7d/0x120
 [<c0104d75>] ? handle_irq+0x15/0x20
 [<c010492a>] ? do_IRQ+0x3a/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<c012b4ad>] ? __do_softirq+0x3d/0x1d0
 [<c015f175>] ? handle_IRQ_event+0x45/0x190
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c0106280>] ? enable_8259A_irq+0x40/0x70
 [<c012b66d>] ? do_softirq+0x2d/0x40
 [<c012b825>] ? irq_exit+0x65/0x70
 [<c0104933>] ? do_IRQ+0x43/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<c0294d02>] ? ioread32+0x32/0x40
 [<f0be83b4>] ? ath9k_hw_set_interrupts+0x294/0x350 [ath9k]
 [<f0c00e0d>] ? ath_set_channel+0x19d/0x1a0 [ath9k]
 [<f0c02efd>] ? ath9k_config+0x2ed/0x340 [ath9k]
 [<f0b26056>] ? ieee80211_hw_config+0x56/0xa0 [mac80211]
 [<f0b29dcd>] ? ieee80211_scan_work+0x28d/0x530 [mac80211]
 [<c013eb00>] ? prepare_to_wait_exclusive+0x40/0x90
 [<f0b29b40>] ? ieee80211_scan_work+0x0/0x530 [mac80211]
 [<c013af8a>] ? worker_thread+0x13a/0x2b0
 [<c011d001>] ? pick_next_task_fair+0xb1/0x100
 [<c013e8e0>] ? autoremove_wake_function+0x0/0x40
 [<c013ae50>] ? worker_thread+0x0/0x2b0
 [<c013e624>] ? kthread+0x74/0x80
 [<c013e5b0>] ? kthread+0x0/0x80
 [<c01035d3>] ? kernel_thread_helper+0x7/0x14
BUG: soft lockup - CPU#0 stuck for 61s! [phy0:604]
Modules linked in: usbhid hid nvidia(P) acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm ath9k pcmcia snd_seq mac80211 snd_timer yenta_socket snd_seq_device ath fan rsrc_nonstatic uhci_hcd thermal cfg80211 video snd processor toshiba_acpi pcmcia_core ehci_hcd thermal_sys led_class rtc_cmos e100 soundcore rtc_core battery ac evdev hwmon mii rtc_lib output rfkill snd_page_alloc intel_agp usbcore psmouse agpgart button

Pid: 604, comm: phy0 Tainted: P (2.6.32.7 #4) Portable PC
EIP: 0060:[<c0294d02>] EFLAGS: 00000296 CPU: 0 EIP is at ioread32+0x32/0x40
EAX: 00000000 EBX: edc40000 ECX: f0c40000 EDX: f0c48258
ESI: edc40000 EDI: 00001000 EBP: 00000000 ESP: ed899c7c
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b7868000 CR3: 27fc7000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

Call Trace:
 [<f0bfc656>] ? ath9k_hw_procmibevent+0x36/0x140 [ath9k]
 [<f0c03090>] ? ath_isr+0x140/0x180 [ath9k]
 [<c015f175>] ? handle_IRQ_event+0x45/0x190
 [<c0161273>] ? handle_level_irq+0xc3/0x120
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c016122d>] ? handle_level_irq+0x7d/0x120
 [<c0104d75>] ? handle_irq+0x15/0x20
 [<c010492a>] ? do_IRQ+0x3a/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<f0c00000>] ? ath9k_configure_filter+0x40/0x70 [ath9k]
 [<c015f146>] ? handle_IRQ_event+0x16/0x190
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c016122d>] ? handle_level_irq+0x7d/0x120
 [<c0104d75>] ? handle_irq+0x15/0x20
 [<c010492a>] ? do_IRQ+0x3a/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<c012b4ad>] ? __do_softirq+0x3d/0x1d0
 [<c015f175>] ? handle_IRQ_event+0x45/0x190
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c0106280>] ? enable_8259A_irq+0x40/0x70
 [<c012b66d>] ? do_softirq+0x2d/0x40
 [<c012b825>] ? irq_exit+0x65/0x70
 [<c0104933>] ? do_IRQ+0x43/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<c0294d02>] ? ioread32+0x32/0x40
 [<f0be83b4>] ? ath9k_hw_set_interrupts+0x294/0x350 [ath9k]
 [<f0c00e0d>] ? ath_set_channel+0x19d/0x1a0 [ath9k]
 [<f0c02efd>] ? ath9k_config+0x2ed/0x340 [ath9k]
 [<f0b26056>] ? ieee80211_hw_config+0x56/0xa0 [mac80211]
 [<f0b29dcd>] ? ieee80211_scan_work+0x28d/0x530 [mac80211]
 [<c013eb00>] ? prepare_to_wait_exclusive+0x40/0x90
 [<f0b29b40>] ? ieee80211_scan_work+0x0/0x530 [mac80211]
 [<c013af8a>] ? worker_thread+0x13a/0x2b0
 [<c011d001>] ? pick_next_task_fair+0xb1/0x100
 [<c013e8e0>] ? autoremove_wake_function+0x0/0x40
 [<c013ae50>] ? worker_thread+0x0/0x2b0
 [<c013e624>] ? kthread+0x74/0x80
 [<c013e5b0>] ? kthread+0x0/0x80
 [<c01035d3>] ? kernel_thread_helper+0x7/0x14
BUG: soft lockup - CPU#0 stuck for 61s! [phy0:604]
Modules linked in: usbhid hid nvidia(P) acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm ath9k pcmcia snd_seq mac80211 snd_timer yenta_socket snd_seq_device ath fan rsrc_nonstatic uhci_hcd thermal cfg80211 video snd processor toshiba_acpi pcmcia_core ehci_hcd thermal_sys led_class rtc_cmos e100 soundcore rtc_core battery ac evdev hwmon mii rtc_lib output rfkill snd_page_alloc intel_agp usbcore psmouse agpgart button

Pid: 604, comm: phy0 Tainted: P (2.6.32.7 #4) Portable PC
EIP: 0060:[<c015f146>] EFLAGS: 00000246 CPU: 0 EIP is at handle_IRQ_event+0x16/0x190
EAX: 0000000b EBX: eea10580 ECX: 00020101 EDX: eea10580
ESI: 0000000b EDI: 00000000 EBP: ed899d10 ESP: ed899ca4
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b7868000 CR3: 27fc7000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

Call Trace:
 [<c0161273>] ? handle_level_irq+0xc3/0x120
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c016122d>] ? handle_level_irq+0x7d/0x120
 [<c0104d75>] ? handle_irq+0x15/0x20
 [<c010492a>] ? do_IRQ+0x3a/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<f0c00000>] ? ath9k_configure_filter+0x40/0x70 [ath9k]
 [<c015f146>] ? handle_IRQ_event+0x16/0x190
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c016122d>] ? handle_level_irq+0x7d/0x120
 [<c0104d75>] ? handle_irq+0x15/0x20
 [<c010492a>] ? do_IRQ+0x3a/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<c012b4ad>] ? __do_softirq+0x3d/0x1d0
 [<c015f175>] ? handle_IRQ_event+0x45/0x190
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c0106280>] ? enable_8259A_irq+0x40/0x70
 [<c012b66d>] ? do_softirq+0x2d/0x40
 [<c012b825>] ? irq_exit+0x65/0x70
 [<c0104933>] ? do_IRQ+0x43/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<c0294d02>] ? ioread32+0x32/0x40
 [<f0be83b4>] ? ath9k_hw_set_interrupts+0x294/0x350 [ath9k]
 [<f0c00e0d>] ? ath_set_channel+0x19d/0x1a0 [ath9k]
 [<f0c02efd>] ? ath9k_config+0x2ed/0x340 [ath9k]
 [<f0b26056>] ? ieee80211_hw_config+0x56/0xa0 [mac80211]
 [<f0b29dcd>] ? ieee80211_scan_work+0x28d/0x530 [mac80211]
 [<c013eb00>] ? prepare_to_wait_exclusive+0x40/0x90
 [<f0b29b40>] ? ieee80211_scan_work+0x0/0x530 [mac80211]
 [<c013af8a>] ? worker_thread+0x13a/0x2b0
 [<c011d001>] ? pick_next_task_fair+0xb1/0x100
 [<c013e8e0>] ? autoremove_wake_function+0x0/0x40
 [<c013ae50>] ? worker_thread+0x0/0x2b0
 [<c013e624>] ? kthread+0x74/0x80
 [<c013e5b0>] ? kthread+0x0/0x80
 [<c01035d3>] ? kernel_thread_helper+0x7/0x14
BUG: soft lockup - CPU#0 stuck for 61s! [phy0:604]
Modules linked in: usbhid hid nvidia(P) acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm ath9k pcmcia snd_seq mac80211 snd_timer yenta_socket snd_seq_device ath fan rsrc_nonstatic uhci_hcd thermal cfg80211 video snd processor toshiba_acpi pcmcia_core ehci_hcd thermal_sys led_class rtc_cmos e100 soundcore rtc_core battery ac evdev hwmon mii rtc_lib output rfkill snd_page_alloc intel_agp usbcore psmouse agpgart button

Pid: 604, comm: phy0 Tainted: P (2.6.32.7 #4) Portable PC
EIP: 0060:[<c0294d02>] EFLAGS: 00000296 CPU: 0 EIP is at ioread32+0x32/0x40
EAX: 00000000 EBX: edc40000 ECX: f0c40000 EDX: f0c4402c
ESI: 00000000 EDI: f0c29bed EBP: f4041071 ESP: ed899c60
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b7868000 CR3: 27fc7000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

Call Trace:
 [<f0be8464>] ? ath9k_hw_set_interrupts+0x344/0x350 [ath9k]
 [<f0c03089>] ? ath_isr+0x139/0x180 [ath9k]
 [<c015f175>] ? handle_IRQ_event+0x45/0x190
 [<c0161273>] ? handle_level_irq+0xc3/0x120
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c016122d>] ? handle_level_irq+0x7d/0x120
 [<c0104d75>] ? handle_irq+0x15/0x20
 [<c010492a>] ? do_IRQ+0x3a/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<f0c00000>] ? ath9k_configure_filter+0x40/0x70 [ath9k]
 [<c015f146>] ? handle_IRQ_event+0x16/0x190
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c016122d>] ? handle_level_irq+0x7d/0x120
 [<c0104d75>] ? handle_irq+0x15/0x20
 [<c010492a>] ? do_IRQ+0x3a/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<c012b4ad>] ? __do_softirq+0x3d/0x1d0
 [<c015f175>] ? handle_IRQ_event+0x45/0x190
 [<c010637c>] ? mask_and_ack_8259A+0x5c/0x100
 [<c0106280>] ? enable_8259A_irq+0x40/0x70
 [<c012b66d>] ? do_softirq+0x2d/0x40
 [<c012b825>] ? irq_exit+0x65/0x70
 [<c0104933>] ? do_IRQ+0x43/0xa0
 [<c01034e9>] ? common_interrupt+0x29/0x30
 [<c0294d02>] ? ioread32+0x32/0x40
 [<f0be83b4>] ? ath9k_hw_set_interrupts+0x294/0x350 [ath9k]
 [<f0c00e0d>] ? ath_set_channel+0x19d/0x1a0 [ath9k]
 [<f0c02efd>] ? ath9k_config+0x2ed/0x340 [ath9k]
 [<f0b26056>] ? ieee80211_hw_config+0x56/0xa0 [mac80211]
 [<f0b29dcd>] ? ieee80211_scan_work+0x28d/0x530 [mac80211]
 [<c013eb00>] ? prepare_to_wait_exclusive+0x40/0x90
 [<f0b29b40>] ? ieee80211_scan_work+0x0/0x530 [mac80211]
 [<c013af8a>] ? worker_thread+0x13a/0x2b0
 [<c011d001>] ? pick_next_task_fair+0xb1/0x100
 [<c013e8e0>] ? autoremove_wake_function+0x0/0x40
 [<c013ae50>] ? worker_thread+0x0/0x2b0
 [<c013e624>] ? kthread+0x74/0x80
 [<c013e5b0>] ? kthread+0x0/0x80
 [<c01035d3>] ? kernel_thread_helper+0x7/0x14

wlan0: direct probe to AP 00:0c:e5:48:f9:2f (try 1)
wlan0: direct probe responded
wlan0: authenticate with AP 00:0c:e5:48:f9:2f (try 1)
wlan0: authenticated
wlan0: associate with AP 00:0c:e5:48:f9:2f (try 1)
wlan0: RX AssocResp from 00:0c:e5:48:f9:2f (capab=0x401 status=0 aid=1)
wlan0: associated

#4 lore raw
Quoted 1 line · Mark Sutton

Is it possible this is a hardware issue?

It looks like a hardware issue, but maybe it can be worked around.

Quoted 12 lines
BUG: soft lockup - CPU#0 stuck for 61s! [phy0:604]
Modules linked in: usbhid hid nvidia(P) acpi_cpufreq cpufreq_stats cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm ath9k pcmcia snd_seq mac80211 snd_timer yenta_socket snd_seq_device ath fan rsrc_nonstatic uhci_hcd thermal cfg80211 video snd processor toshiba_acpi pcmcia_core ehci_hcd thermal_sys led_class rtc_cmos e100 soundcore rtc_core battery ac evdev hwmon mii rtc_lib output rfkill snd_page_alloc intel_agp usbcore psmouse agpgart button

Pid: 604, comm: phy0 Tainted: P (2.6.32.7 #4) Portable PC
EIP: 0060:[<c0294d02>] EFLAGS: 00000296 CPU: 0 EIP is at ioread32+0x32/0x40
EAX: 00000000 EBX: edc40000 ECX: f0c40000 EDX: f0c48258
ESI: edc40000 EDI: 00001000 EBP: 00000000 ESP: ed899d24
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b7868000 CR3: 27fc7000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

Quoted 2 lines
Call Trace:
 [<f0bfc656>] ? ath9k_hw_procmibevent+0x36/0x140 [ath9k]

I believe the register number is in DX. Register 0x8258 is AR_SLP_MIB_CTRL, and it's indeed being read in ath9k_hw_procmibevent(). Somehow reading that register causes a CPU lockup.

An easy workaround would be to comment out this line in ani.c:

if (!(REG_READ(ah, AR_SLP_MIB_CTRL) & AR_SLP_MIB_PENDING))

Leave the new line so that the register is cleared unconditionally.

Signature · 2 lines
Regards,
Pavel Roskin
#5 lore raw
Quoted 1 line · Pavel Roskin
Quoted 1 line
BUG: soft lockup - CPU#0 stuck for 61s! [phy0:604]

Yesterday I experienced a panic when I put some load on my 5008 card.

I'm using wireless-testing as of Mar 7, and in general this is a clear improvement when compared with code as of Feb 1. Thanks to Felix for great work on the driver!

Unfortunately I don't have a backtrace since I was in X on my laptop, and I also haven't been able to reproduce the issue. :\

Will post again, possibly in a new thread, if I can make it happen again. Previously I have not been using .11n much, but now I was, 130 or 170Mb connection and 70/70 link quality, I was a few meters away from the AP.

//Peter

#6 lore raw
In reply to Pavel Roskin

Quoting Pavel Roskin <[email protected]>:

Quoted 33 lines · Mark Sutton
Quoted 2 lines

Is it possible this is a hardware issue?

It looks like a hardware issue, but maybe it can be worked around.

Quoted 20 lines
BUG: soft lockup - CPU#0 stuck for 61s! [phy0:604]
Modules linked in: usbhid hid nvidia(P) acpi_cpufreq cpufreq_stats  

cpufreq_userspace cpufreq_ondemand cpufreq_powersave freq_table cpufreq_conservative lm90 adm1021 arc4 ecb snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm ath9k pcmcia snd_seq mac80211 snd_timer yenta_socket snd_seq_device ath fan rsrc_nonstatic uhci_hcd thermal cfg80211 video snd processor toshiba_acpi pcmcia_core ehci_hcd thermal_sys led_class rtc_cmos e100 soundcore rtc_core battery ac evdev hwmon mii rtc_lib output rfkill snd_page_alloc intel_agp usbcore psmouse agpgart button

Pid: 604, comm: phy0 Tainted: P (2.6.32.7 #4) Portable PC
EIP: 0060:[<c0294d02>] EFLAGS: 00000296 CPU: 0 EIP is at ioread32+0x32/0x40
EAX: 00000000 EBX: edc40000 ECX: f0c40000 EDX: f0c48258
ESI: edc40000 EDI: 00001000 EBP: 00000000 ESP: ed899d24
DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
CR0: 8005003b CR2: b7868000 CR3: 27fc7000 CR4: 000006d0
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: ffff0ff0 DR7: 00000400

Quoted 2 lines
Call Trace:
 [<f0bfc656>] ? ath9k_hw_procmibevent+0x36/0x140 [ath9k]

I believe the register number is in DX. Register 0x8258 is AR_SLP_MIB_CTRL, and it's indeed being read in ath9k_hw_procmibevent(). Somehow reading that register causes a CPU lockup.

Quoted 5 lines

An easy workaround would be to comment out this line in ani.c:

if (!(REG_READ(ah, AR_SLP_MIB_CTRL) & AR_SLP_MIB_PENDING))

Leave the new line so that the register is cleared unconditionally.

I've been running a 2.6.33.1 with this one line modification and I haven't seen a single system hang anymore. My wlan device is sold as D-Link DWA-645:

03:00.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)

	Subsystem: Device 07d1:3a09
	Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 11
	Memory at 4c000000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [40] #80 [0000]
	Kernel driver in use: ath9k
	Kernel modules: ath9k

Without this patch I would get a ath9k based hang in a 3-4 days time eventually.
The hang could be solved usually by unplugging and re-plugging the pcmcia card.

Regards,
Tomi Orava

#7 lore raw
In reply to Mark Sutton
Quoted 11 lines · Mark Sutton
Quoted 9 lines · Mark Sutton

Hi,
I have this problem as well.
Hardware is:

Atheros Communications Inc. AR5008
Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81

Kernel:Linux 2.6.32.7 #2 PREEMPT Thu Feb 4 14:19:02 PST 2010 i686 GNU/Linux

Here is a call trace from last night when it hung during reboot.

Hmm, it looks like my problem might be related to yours as well.

My lspci entry is:

03:00.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)

	Subsystem: Device 07d1:3a09
	Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 11
	Memory at 4c000000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [40] #80 [0000]
	Kernel driver in use: ath9k
	Kernel modules: ath9k

and dmesg reports the hardware as:

phy0: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81 mem=0xf8300000, irq=11

My problem is that the laptop will eventually hang sooner or later to a complete halt if there is some traffic going via the wlan pcmcia card. The hang can usually be recovered by ejecting the card from its slot.

One of the logs contains the following information:
(kernel version isUbuntu 2.6.32-12.17-generic)

Feb 14 14:39:52 foobar kernel: [20442.972015] BUG: soft lockup - CPU#0 stuck for 61s! [phy1:2531]
Feb 14 14:39:52 foobar kernel: [20442.972015] Modules linked in: ip6table_filter ip6_tables act_police cls_flow cls_fw cls_u32 sch_htb sch_hfsc sch_ingre

ss sch_sfq xt_time xt_connlimit xt_realm iptable_raw xt_comment xt_recent xt_policy ipt_ULOG ipt_REDIRECT ipt_NETMAP ipt_ECN ipt_ecn ipt_CLUSTERIP ipt_ah ipt_addrtype nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_ama nda nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrac k_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp xt_tcpmss xt_pkttype xt_physdev xt_owner xt_NFQUEUE xt_NFLOG nfnetlink_log xt_multiport x t_MARK xt_mark xt_mac xt_limit xt_length xt_iprange xt_helper xt_hashlimit xt_DSCP xt_dscp xt_dccp xt_conntrack xt_CONNMARK xt_connmark xt_CLASSIFY ipt_LO G iptable_mangle nfnetlink arc4 ath9k mac80211 ath cfg80211 led_class binfmt_misc rfcomm ppdev sco bnep

Feb 14 14:39:52 foobar kernel: l2cap lirc_mceusb lirc_dev ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_RE

JECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp deflate zlib_deflate ctr twofish twofish_common camellia serpent blowfish cast5 des_generic ae s_i586 aes_generic xcbc rmd160 sha256_generic sha1_generic crypto_null af_key rpcsec_gss_krb5 nfsd exportfs nfs lockd nfs_acl auth_rpcgss sunrpc joydev pc mcia snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd yenta_socket rsrc_nonstatic pcmcia_core soundcore dell_wmi psmouse serio_raw btusb bluetooth dcdbas snd_page_alloc irda crc_c citt shpchp lp parport raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor async_memcpy async_tx raid1 raid0 multipath linear dm_raid45 xor usbhi d ohci1394 fbcon tileblit font bitblit softcursor intel_agp ieee1394 vga16fb vgastate tg3 video output agpg

Feb 14 14:39:52 foobar kernel: art
Feb 14 14:39:52 foobar kernel: [20442.972015]
Feb 14 14:39:52 foobar kernel: [20442.972015] Pid: 2531, comm: phy1 Not tainted (2.6.32-12-generic #17-Ubuntu) Portable PC
Feb 14 14:39:52 foobar kernel: [20442.972015] EIP: 0060:[<c0351b62>] EFLAGS: 00000292 CPU: 0
Feb 14 14:39:52 foobar kernel: [20442.972015] EIP is at ioread32+0x32/0x40
Feb 14 14:39:52 foobar kernel: [20442.972015] EAX: 00000000 EBX: e55c8000 ECX: f86600ac EDX: f86600b8
Feb 14 14:39:52 foobar kernel: [20442.972015] ESI: f4041071 EDI: 40c00000 EBP: e2239c60 ESP: e2239c60
Feb 14 14:39:52 foobar kernel: [20442.972015]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Feb 14 14:39:52 foobar kernel: [20442.972015] CR0: 8005003b CR2: b75a8000 CR3: 369ba000 CR4: 000006d0
Feb 14 14:39:52 foobar kernel: [20442.972015] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
Feb 14 14:39:52 foobar kernel: [20442.972015] DR6: ffff0ff0 DR7: 00000400
Feb 14 14:39:52 foobar kernel: [20442.972015] Call Trace:
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f88b83ab>] ath9k_ioread32+0x2b/0x80 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f88b9ee4>] ath9k_hw_set_interrupts+0x1d4/0x360 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f88d2d1d>] ath_isr+0x13d/0x170 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c019e204>] handle_IRQ_event+0x54/0x150
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0106e27>] ? mask_and_ack_8259A+0x57/0xf0
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c01a0734>] handle_level_irq+0x74/0x100
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0105a9d>] handle_irq+0x1d/0x30
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c05a9e4c>] do_IRQ+0x4c/0xc0
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f88b83ab>] ? ath9k_ioread32+0x2b/0x80 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0103a90>] common_interrupt+0x30/0x40
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f80700e0>] ? xor_p5_mmx_5+0x20/0x1a0 [xor]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c01517fd>] ? __do_softirq+0x4d/0x1b0
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c012a458>] ? default_spin_lock_flags+0x8/0x10
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c05a598f>] ? _spin_lock_irqsave+0x2f/0x50
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0106d37>] ? enable_8259A_irq+0x47/0x70
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c01a0772>] ? handle_level_irq+0xb2/0x100
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c01519a5>] do_softirq+0x45/0x50
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0151af5>] irq_exit+0x65/0x70
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c05a9e55>] do_IRQ+0x55/0xc0
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0103a90>] common_interrupt+0x30/0x40
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0351b62>] ? ioread32+0x32/0x40
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f88b83ab>] ath9k_ioread32+0x2b/0x80 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f88b9f7a>] ath9k_hw_set_interrupts+0x26a/0x360 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f88d176e>] ath_set_channel+0x17e/0x180 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f88d2b87>] ath9k_config+0x287/0x2e0 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f875bcc2>] ieee80211_hw_config+0x72/0xb0 [mac80211]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f875f635>] ieee80211_scan_work+0x175/0x320 [mac80211]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0161eee>] run_workqueue+0x8e/0x150
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<f875f4c0>] ? ieee80211_scan_work+0x0/0x320 [mac80211]
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0162034>] worker_thread+0x84/0xe0
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0165f90>] ? autoremove_wake_function+0x0/0x50
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0161fb0>] ? worker_thread+0x0/0xe0
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0165d04>] kthread+0x74/0x80
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c0165c90>] ? kthread+0x0/0x80
Feb 14 14:39:52 foobar kernel: [20442.972015]  [<c01040e7>] kernel_thread_helper+0x7/0x10
Feb 14 14:39:52 foobar kernel: [20446.657338] pcmcia_socket pcmcia_socket0: pccard: card ejected from slot 0

-- Here the pcmcia wlan card was ejected and the system started responding again.

Feb 14 14:39:52 foobar kernel: [20446.693722] wlan0: deauthenticating from 00:0d:0b:b2:8c:dd by local choice (reason=3)
Feb 14 14:39:52 foobar kernel: [20446.701944] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.710055] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.718167] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.726279] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.734390] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.742502] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.742506] ath9k: Unable to stop TxDMA. Reset HAL!
Feb 14 14:39:52 foobar kernel: [20446.850877] ath9k: timeout (100000 us) on reg 0x7000: 0xffffffff & 0x00000003 != 0x00000000
Feb 14 14:39:52 foobar kernel: [20446.850881] ath9k: Chip reset failed
Feb 14 14:39:52 foobar kernel: [20446.850883] ath9k: Unable to reset hardware; reset status -22
Feb 14 14:39:52 foobar kernel: [20446.861656] ath9k: DMA failed to stop in 10 ms AR_CR=0xffffffff AR_DIAG_SW=0xffffffff
Feb 14 14:39:52 foobar kernel: [20446.969249] ath9k: timeout (100000 us) on reg 0x7000: 0xffffffff & 0x00000003 != 0x00000000
Feb 14 14:39:52 foobar kernel: [20447.076842] ath9k: timeout (100000 us) on reg 0x7000: 0xffffffff & 0x00000003 != 0x00000000
Feb 14 14:39:52 foobar kernel: [20447.399108] ath9k 0000:03:00.0: PCI INT A disabled
Feb 14 14:39:54 foobar kernel: [20448.488074] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0
Feb 14 14:39:54 foobar kernel: [20448.488156] pci 0000:03:00.0: reg 10 32bit mmio: [0x000000-0x00ffff]
Feb 14 14:39:54 foobar kernel: [20448.488495] ath9k 0000:03:00.0: enabling device (0000 -> 0002)
Feb 14 14:39:54 foobar kernel: [20448.488518] ath9k 0000:03:00.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
Feb 14 14:39:54 foobar kernel: [20448.939749] ath: EEPROM regdomain: 0x30
Feb 14 14:39:54 foobar kernel: [20448.939754] ath: EEPROM indicates we should expect a direct regpair map
Feb 14 14:39:54 foobar kernel: [20448.939757] ath: Country alpha2 being used: AM
Feb 14 14:39:54 foobar kernel: [20448.939759] ath: Regpair used: 0x30
Feb 14 14:39:54 foobar kernel: [20448.945107] phy2: Selected rate control algorithm 'ath9k_rate_control'
Feb 14 14:39:54 foobar kernel: [20448.946630] cfg80211: Calling CRDA for country: AM
Feb 14 14:39:54 foobar kernel: [20448.947513] Registered led device: ath9k-phy2::radio
Feb 14 14:39:54 foobar kernel: [20448.948455] Registered led device: ath9k-phy2::assoc
Feb 14 14:39:54 foobar kernel: [20448.948959] Registered led device: ath9k-phy2::tx
Feb 14 14:39:54 foobar kernel: [20448.949443] Registered led device: ath9k-phy2::rx
Feb 14 14:39:54 foobar kernel: [20448.949458] phy2: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81: mem=0xf8520000, irq=11
Feb 14 14:39:54 foobar kernel: [20449.105089] cfg80211: Current regulatory domain intersected:
Feb 14 14:39:54 foobar kernel: [20449.105100]  (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Feb 14 14:39:54 foobar kernel: [20449.105110]  (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Feb 14 14:39:54 foobar kernel: [20449.105119]  (5170000 KHz - 5250000 KHz @ 20000 KHz), (N/A, 1800 mBm)
Feb 14 14:39:54 foobar kernel: [20449.105128]  (5250000 KHz - 5330000 KHz @ 20000 KHz), (N/A, 1800 mBm)
Feb 14 14:39:54 foobar kernel: [20449.162437] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Feb 14 14:40:01 foobar kernel: [20455.898813] wlan0: deauthenticating from 00:0d:0b:b2:8c:dd by local choice (reason=3)
Feb 14 14:40:01 foobar kernel: [20455.904452] wlan0: direct probe to AP 00:0d:0b:b2:8c:dd (try 1)
Feb 14 14:40:01 foobar kernel: [20455.908238] wlan0: direct probe responded
Feb 14 14:40:01 foobar kernel: [20455.908242] wlan0: authenticate with AP 00:0d:0b:b2:8c:dd (try 1)
Feb 14 14:40:01 foobar kernel: [20455.910440] wlan0: authenticated

I'll have to find out if there really was some original karmic kernels (without the compat-wireless backport updates) that actually doesn't have this hang problem.

Redards,
Tomi Orava

#8 lore raw
Quoted 146 lines · Tomi Orava
Quoted 11 lines · Mark Sutton
Quoted 9 lines · Mark Sutton

Hi,
? ? ?I have this problem as well.
Hardware is:

Atheros Communications Inc. AR5008
Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81

Kernel:Linux 2.6.32.7 #2 PREEMPT Thu Feb 4 14:19:02 PST 2010 i686 GNU/Linux

Here is a call trace from last night when it hung during reboot.

Hmm, it looks like my problem might be related to yours as well.

My lspci entry is:

03:00.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)
? ? ? ?Subsystem: Device 07d1:3a09
? ? ? ?Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 11 ? ? ? ?Memory at 4c000000 (32-bit, non-prefetchable) [size=64K] ? ? ? ?Capabilities: [40] #80 [0000]
? ? ? ?Kernel driver in use: ath9k
? ? ? ?Kernel modules: ath9k

and dmesg reports the hardware as:

phy0: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81 mem=0xf8300000, irq=11

My problem is that the laptop will eventually hang sooner or later to a complete halt if there is some traffic going via the wlan pcmcia card. The hang can usually be recovered by ejecting the card from its slot.

One of the logs contains the following information:
(kernel version isUbuntu 2.6.32-12.17-generic)

Feb 14 14:39:52 foobar kernel: [20442.972015] BUG: soft lockup - CPU#0 stuck for 61s! [phy1:2531]
Feb 14 14:39:52 foobar kernel: [20442.972015] Modules linked in: ip6table_filter ip6_tables act_police cls_flow cls_fw cls_u32 sch_htb sch_hfsc sch_ingre

ss sch_sfq xt_time xt_connlimit xt_realm iptable_raw xt_comment xt_recent xt_policy ipt_ULOG ipt_REDIRECT ipt_NETMAP ipt_ECN ipt_ecn ipt_CLUSTERIP ipt_ah ipt_addrtype nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_ama nda nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrac k_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp xt_tcpmss xt_pkttype xt_physdev xt_owner xt_NFQUEUE xt_NFLOG nfnetlink_log xt_multiport x t_MARK xt_mark xt_mac xt_limit xt_length xt_iprange xt_helper xt_hashlimit xt_DSCP xt_dscp xt_dccp xt_conntrack xt_CONNMARK xt_connmark xt_CLASSIFY ipt_LO G iptable_mangle nfnetlink arc4 ath9k mac80211 ath cfg80211 led_class binfmt_misc rfcomm ppdev sco bnep

Feb 14 14:39:52 foobar kernel: l2cap lirc_mceusb lirc_dev ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_RE

JECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp deflate zlib_deflate ctr twofish twofish_common camellia serpent blowfish cast5 des_generic ae s_i586 aes_generic xcbc rmd160 sha256_generic sha1_generic crypto_null af_key rpcsec_gss_krb5 nfsd exportfs nfs lockd nfs_acl auth_rpcgss sunrpc joydev pc mcia snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd yenta_socket rsrc_nonstatic pcmcia_core soundcore dell_wmi psmouse serio_raw btusb bluetooth dcdbas snd_page_alloc irda crc_c citt shpchp lp parport raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor async_memcpy async_tx raid1 raid0 multipath linear dm_raid45 xor usbhi d ohci1394 fbcon tileblit font bitblit softcursor intel_agp ieee1394 vga16fb vgastate tg3 video output agpg

Feb 14 14:39:52 foobar kernel: art
Feb 14 14:39:52 foobar kernel: [20442.972015]
Feb 14 14:39:52 foobar kernel: [20442.972015] Pid: 2531, comm: phy1 Not tainted (2.6.32-12-generic #17-Ubuntu) Portable PC
Feb 14 14:39:52 foobar kernel: [20442.972015] EIP: 0060:[<c0351b62>] EFLAGS: 00000292 CPU: 0
Feb 14 14:39:52 foobar kernel: [20442.972015] EIP is at ioread32+0x32/0x40
Feb 14 14:39:52 foobar kernel: [20442.972015] EAX: 00000000 EBX: e55c8000 ECX: f86600ac EDX: f86600b8
Feb 14 14:39:52 foobar kernel: [20442.972015] ESI: f4041071 EDI: 40c00000 EBP: e2239c60 ESP: e2239c60
Feb 14 14:39:52 foobar kernel: [20442.972015] ?DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Feb 14 14:39:52 foobar kernel: [20442.972015] CR0: 8005003b CR2: b75a8000 CR3: 369ba000 CR4: 000006d0
Feb 14 14:39:52 foobar kernel: [20442.972015] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
Feb 14 14:39:52 foobar kernel: [20442.972015] DR6: ffff0ff0 DR7: 00000400
Feb 14 14:39:52 foobar kernel: [20442.972015] Call Trace:
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f88b83ab>] ath9k_ioread32+0x2b/0x80 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f88b9ee4>] ath9k_hw_set_interrupts+0x1d4/0x360 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f88d2d1d>] ath_isr+0x13d/0x170 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c019e204>] handle_IRQ_event+0x54/0x150
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0106e27>] ? mask_and_ack_8259A+0x57/0xf0
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c01a0734>] handle_level_irq+0x74/0x100
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0105a9d>] handle_irq+0x1d/0x30
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c05a9e4c>] do_IRQ+0x4c/0xc0
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f88b83ab>] ? ath9k_ioread32+0x2b/0x80 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0103a90>] common_interrupt+0x30/0x40
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f80700e0>] ? xor_p5_mmx_5+0x20/0x1a0 [xor]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c01517fd>] ? __do_softirq+0x4d/0x1b0
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c012a458>] ? default_spin_lock_flags+0x8/0x10
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c05a598f>] ? _spin_lock_irqsave+0x2f/0x50
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0106d37>] ? enable_8259A_irq+0x47/0x70
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c01a0772>] ? handle_level_irq+0xb2/0x100
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c01519a5>] do_softirq+0x45/0x50
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0151af5>] irq_exit+0x65/0x70
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c05a9e55>] do_IRQ+0x55/0xc0
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0103a90>] common_interrupt+0x30/0x40
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0351b62>] ? ioread32+0x32/0x40
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f88b83ab>] ath9k_ioread32+0x2b/0x80 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f88b9f7a>] ath9k_hw_set_interrupts+0x26a/0x360 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f88d176e>] ath_set_channel+0x17e/0x180 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f88d2b87>] ath9k_config+0x287/0x2e0 [ath9k]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f875bcc2>] ieee80211_hw_config+0x72/0xb0 [mac80211]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f875f635>] ieee80211_scan_work+0x175/0x320 [mac80211]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0161eee>] run_workqueue+0x8e/0x150
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<f875f4c0>] ? ieee80211_scan_work+0x0/0x320 [mac80211]
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0162034>] worker_thread+0x84/0xe0
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0165f90>] ? autoremove_wake_function+0x0/0x50
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0161fb0>] ? worker_thread+0x0/0xe0
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0165d04>] kthread+0x74/0x80
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c0165c90>] ? kthread+0x0/0x80
Feb 14 14:39:52 foobar kernel: [20442.972015] ?[<c01040e7>] kernel_thread_helper+0x7/0x10
Feb 14 14:39:52 foobar kernel: [20446.657338] pcmcia_socket pcmcia_socket0: pccard: card ejected from slot 0

-- Here the pcmcia wlan card was ejected and the system started responding again.

Feb 14 14:39:52 foobar kernel: [20446.693722] wlan0: deauthenticating from 00:0d:0b:b2:8c:dd by local choice (reason=3)
Feb 14 14:39:52 foobar kernel: [20446.701944] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.710055] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.718167] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.726279] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.734390] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.742502] ath9k: Failed to stop TX DMA in 100 msec after killing last frame
Feb 14 14:39:52 foobar kernel: [20446.742506] ath9k: Unable to stop TxDMA. Reset HAL!
Feb 14 14:39:52 foobar kernel: [20446.850877] ath9k: timeout (100000 us) on reg 0x7000: 0xffffffff & 0x00000003 != 0x00000000
Feb 14 14:39:52 foobar kernel: [20446.850881] ath9k: Chip reset failed
Feb 14 14:39:52 foobar kernel: [20446.850883] ath9k: Unable to reset hardware; reset status -22
Feb 14 14:39:52 foobar kernel: [20446.861656] ath9k: DMA failed to stop in 10 ms AR_CR=0xffffffff AR_DIAG_SW=0xffffffff
Feb 14 14:39:52 foobar kernel: [20446.969249] ath9k: timeout (100000 us) on reg 0x7000: 0xffffffff & 0x00000003 != 0x00000000
Feb 14 14:39:52 foobar kernel: [20447.076842] ath9k: timeout (100000 us) on reg 0x7000: 0xffffffff & 0x00000003 != 0x00000000
Feb 14 14:39:52 foobar kernel: [20447.399108] ath9k 0000:03:00.0: PCI INT A disabled
Feb 14 14:39:54 foobar kernel: [20448.488074] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0
Feb 14 14:39:54 foobar kernel: [20448.488156] pci 0000:03:00.0: reg 10 32bit mmio: [0x000000-0x00ffff]
Feb 14 14:39:54 foobar kernel: [20448.488495] ath9k 0000:03:00.0: enabling device (0000 -> 0002)
Feb 14 14:39:54 foobar kernel: [20448.488518] ath9k 0000:03:00.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
Feb 14 14:39:54 foobar kernel: [20448.939749] ath: EEPROM regdomain: 0x30
Feb 14 14:39:54 foobar kernel: [20448.939754] ath: EEPROM indicates we should expect a direct regpair map
Feb 14 14:39:54 foobar kernel: [20448.939757] ath: Country alpha2 being used: AM
Feb 14 14:39:54 foobar kernel: [20448.939759] ath: Regpair used: 0x30
Feb 14 14:39:54 foobar kernel: [20448.945107] phy2: Selected rate control algorithm 'ath9k_rate_control'
Feb 14 14:39:54 foobar kernel: [20448.946630] cfg80211: Calling CRDA for country: AM
Feb 14 14:39:54 foobar kernel: [20448.947513] Registered led device: ath9k-phy2::radio
Feb 14 14:39:54 foobar kernel: [20448.948455] Registered led device: ath9k-phy2::assoc
Feb 14 14:39:54 foobar kernel: [20448.948959] Registered led device: ath9k-phy2::tx
Feb 14 14:39:54 foobar kernel: [20448.949443] Registered led device: ath9k-phy2::rx
Feb 14 14:39:54 foobar kernel: [20448.949458] phy2: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81: mem=0xf8520000, irq=11
Feb 14 14:39:54 foobar kernel: [20449.105089] cfg80211: Current regulatory domain intersected:
Feb 14 14:39:54 foobar kernel: [20449.105100] ?(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Feb 14 14:39:54 foobar kernel: [20449.105110] ?(2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Feb 14 14:39:54 foobar kernel: [20449.105119] ?(5170000 KHz - 5250000 KHz @ 20000 KHz), (N/A, 1800 mBm)
Feb 14 14:39:54 foobar kernel: [20449.105128] ?(5250000 KHz - 5330000 KHz @ 20000 KHz), (N/A, 1800 mBm)
Feb 14 14:39:54 foobar kernel: [20449.162437] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Feb 14 14:40:01 foobar kernel: [20455.898813] wlan0: deauthenticating from 00:0d:0b:b2:8c:dd by local choice (reason=3)
Feb 14 14:40:01 foobar kernel: [20455.904452] wlan0: direct probe to AP 00:0d:0b:b2:8c:dd (try 1)
Feb 14 14:40:01 foobar kernel: [20455.908238] wlan0: direct probe responded
Feb 14 14:40:01 foobar kernel: [20455.908242] wlan0: authenticate with AP 00:0d:0b:b2:8c:dd (try 1)
Feb 14 14:40:01 foobar kernel: [20455.910440] wlan0: authenticated
Quoted 2 lines

I'll have to find out if there really was some original karmic kernels (without the compat-wireless backport updates) that actually doesn't have this hang problem.

Karmic uses 2.6.31 which has already reached the end of its development. You will no longer see stable kernel releases based on 2.6.31.y kernels so best is to upgrade. ath9k had a large number of patches which did not get merged into 2.6.31 [1] which should have, which is why we worked hard for 2.6.32 to ensure all regressions/fixes are propagated to stable.

Karmic ships lbm though and that uses the 802.11 bits from 2.6.32 which should be good.

[1] http://bombadil.infradead.org/~mcgrof/patches/ath9k/fixes-not-in-2.6.31-for-ath9k.txt

Luis

#9 lore raw

Quoting "Luis R. Rodriguez" <[email protected]>:

Quoted 13 lines
Quoted 11 lines · Tomi Orava
Quoted 10 lines · Mark Sutton
Quoted 9 lines · Mark Sutton

Hi,
? ? ?I have this problem as well.
Hardware is:

Atheros Communications Inc. AR5008
Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81

Kernel:Linux 2.6.32.7 #2 PREEMPT Thu Feb 4 14:19:02 PST 2010 i686 GNU/Linux

<snip>

Quoted 7 lines

Karmic uses 2.6.31 which has already reached the end of its development. You will no longer see stable kernel releases based on 2.6.31.y kernels so best is to upgrade. ath9k had a large number of patches which did not get merged into 2.6.31 [1] which should have, which is why we worked hard for 2.6.32 to ensure all regressions/fixes are propagated to stable.

Quoted 5 lines

Karmic ships lbm though and that uses the 802.11 bits from 2.6.32 which should be good.

[1]
http://bombadil.infradead.org/~mcgrof/patches/ath9k/fixes-not-in-2.6.31-for-ath9k.txt

Unfortunately, I completely forgot to mention the very important fact that in my understanding the "standard" karmic kernels ie. 2.6.31.x worked quite ok compared to the compat-wireless versions included in linux-backports-karmic etc etc. In other words, my problem tends to be that the latest
ath9k versions are having some problems, while the older 2.6.31 seem to be working without hangs in my case (not counting connection drops every once in a while). Sorry, for turning this upside down.

Although, I've been way too busy with other important matters, I'll try to find the last "properly" working kernel by using the GIT kernel versions, so that I can be sure about the used versions. Unfortunately, this laptop is quite slow and the hang doesn't happen immediately (might take 1-2 days, but still it will always happen with newer versions of the ath9k drivers). Anyway, it's very good to know if these problems are more common among cards based on these chips or is this just a rare case.

This particular card was sold as D-Link DWA-645.

I'll report back after I've done some more testing in order to get more facts about different ath9k driver versions.

Regards,
Tomi Orava

#10 lore raw
Quoted 49 lines · Tomi Orava

Quoting "Luis R. Rodriguez" <[email protected]>:

Quoted 13 lines
Quoted 11 lines · Tomi Orava
Quoted 10 lines · Mark Sutton
Quoted 9 lines · Mark Sutton

Hi,
? ? ?I have this problem as well.
Hardware is:

Atheros Communications Inc. AR5008
Atheros AR5416 MAC/BB Rev:2 AR5133 RF Rev:81

Kernel:Linux 2.6.32.7 #2 PREEMPT Thu Feb 4 14:19:02 PST 2010 i686 GNU/Linux

<snip>

Quoted 7 lines

Karmic uses 2.6.31 which has already reached the end of its development. You will no longer see stable kernel releases based on 2.6.31.y kernels so best is to upgrade. ath9k had a large number of patches which did not get merged into 2.6.31 [1] which should have, which is why we worked hard for 2.6.32 to ensure all regressions/fixes are propagated to stable.

Quoted 5 lines

Karmic ships lbm though and that uses the 802.11 bits from 2.6.32 which should be good.

[1]
http://bombadil.infradead.org/~mcgrof/patches/ath9k/fixes-not-in-2.6.31-for-ath9k.txt

Unfortunately, I completely forgot to mention the very important fact that in my understanding the "standard" karmic kernels ie. 2.6.31.x worked quite ok compared to the compat-wireless versions included in linux-backports-karmic etc etc. In other words, my problem tends to be that the latest
ath9k versions are having some problems, while the older 2.6.31 seem to be working without hangs in my case (not counting connection drops every once in a while). Sorry, for turning this upside down.

Although, I've been way too busy with other important matters, I'll try to find the last "properly" working kernel by using the GIT kernel versions, so that I can be sure about the used versions. Unfortunately, this laptop is quite slow and the hang doesn't happen immediately (might take 1-2 days, but still it will always happen with newer versions of the ath9k drivers). Anyway, it's very good to know if these problems are more common among cards based on these chips or is this just a rare case.

Quoted 4 lines

This particular card was sold as D-Link DWA-645.

I'll report back after I've done some more testing in order to get more facts about different ath9k driver versions.

You'll want to read:

http://wireless.kernel.org/en/users/Documentation/Reporting_bugs
http://wireless.kernel.org/en/users/Documentation/Fix_Propagation

That should get you to test and report against the right thing.

Luis