BBB - Appears to Crash if unplug radios

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

BBB - Appears to Crash if unplug radios

Postby SPAmichael » Mon Oct 26, 2015 7:26 pm

Hello, greetings. I have been "fighting" an issue where my Beaglebone Black crashes if I unplug an Atheros USB radio. It appears as if this only occurs with radios that use the ath9k_htc driver. Another complication is that it only happens if I am using a usb hub. I have tried different hubs, both powered and not. My colleague has a different set of hardware and is experiencing the same issue, with the identical signature. We've tried 5 different hubs and 6 different radios between us. This happens whether or not the radios are active interfaces.

I also tried some older Arch distributions, back to kernel 3.x, and it still happens.

The complexities of the USB bus and hardware are beyond me. I'm hoping someone can help to point me in the right direction. Here is the console output when I unplug the radio:

$this->bbcode_second_pass_code('', '
[root@spa bin]# [ 3284.887259] usb 1-1.4.4: USB disconnect, device number 5
[ 3312.253693] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper:0]
[ 3312.260877] Modules linked in: ipt_MASQUERADE nf_nat_masquerade_ipv4 tun iptable_mangle xt_conntrack iptable_filter xt_nat xt_tcpudp iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ccm bridge stp llc arc4 ath9k_htc ath9k_common ath9k_hw rt2800usb rt2800lib ath rt2x00usb rt2x00lib mac80211 cfg80211 omap_sham omap_aes omap_rng crc_ccitt rng_core tilcdc tda998x drm_kms_helper uio_pdrv_genirq uio sch_fq_codel ip_tables x_tables
[ 3312.301352] CPU: 0 PID: 0 Comm: swapper Not tainted 4.2.4-1-ARCH #1
[ 3312.307643] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 3312.313761] task: c0d43470 ti: c0d3c000 task.ti: c0d3c000
[ 3312.319195] PC is at __usb_hcd_giveback_urb+0x90/0x150
[ 3312.324362] LR is at musb_start_urb+0x748/0xd0c
[ 3312.328910] pc : [<c060f9d4>] lr : [<c066bc28>] psr: 600d0113
[ 3312.328910] sp : c0d3ddf0 ip : c0d3db88 fp : c0d3de0c
[ 3312.340434] r10: 00000040 r9 : c0df4b53 r8 : 00000007
[ 3312.345677] r7 : ddfa459c r6 : ddb73c00 r5 : a00d0113 r4 : dcb69080
[ 3312.352229] r3 : dc8ba004 r2 : dc8ba004 r1 : e0834c16 r0 : 00000000
[ 3312.358783] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 3312.366120] Control: 10c5387d Table: 9c9b0019 DAC: 00000015
[ 3312.371887] CPU: 0 PID: 0 Comm: swapper Not tainted 4.2.4-1-ARCH #1
[ 3312.378174] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 3312.384328] [<c0017094>] (unwind_backtrace) from [<c0014264>] (show_stack+0x20/0x24)
[ 3312.392120] [<c0014264>] (show_stack) from [<c08b46bc>] (dump_stack+0x24/0x28)
[ 3312.399378] [<c08b46bc>] (dump_stack) from [<c0011180>] (show_regs+0x1c/0x20)
[ 3312.406550] [<c0011180>] (show_regs) from [<c00d0a5c>] (watchdog_timer_fn+0x170/0x1a4)
[ 3312.414512] [<c00d0a5c>] (watchdog_timer_fn) from [<c009a134>] (__hrtimer_run_queues.constprop.6+0x154/0x284)
[ 3312.424473] [<c009a134>] (__hrtimer_run_queues.constprop.6) from [<c009a454>] (hrtimer_interrupt+0x9c/0x1b8)
[ 3312.434354] [<c009a454>] (hrtimer_interrupt) from [<c003613c>] (omap2_gp_timer_interrupt+0x38/0x40)
[ 3312.443447] [<c003613c>] (omap2_gp_timer_interrupt) from [<c008de80>] (handle_irq_event_percpu+0xa8/0x1e8)
[ 3312.453144] [<c008de80>] (handle_irq_event_percpu) from [<c008dffc>] (handle_irq_event+0x3c/0x50)
[ 3312.462057] [<c008dffc>] (handle_irq_event) from [<c00908a0>] (handle_level_irq+0xa8/0x128)
[ 3312.470445] [<c00908a0>] (handle_level_irq) from [<c008d528>] (generic_handle_irq+0x3c/0x4c)
[ 3312.478920] [<c008d528>] (generic_handle_irq) from [<c008d7c4>] (__handle_domain_irq+0x64/0xb8)
[ 3312.487658] [<c008d7c4>] (__handle_domain_irq) from [<c0009428>] (omap_intc_handle_irq+0xcc/0xd4)
[ 3312.496574] [<c0009428>] (omap_intc_handle_irq) from [<c08ba100>] (__irq_svc+0x40/0x54)
[ 3312.504609] Exception stack(0xc0d3dda8 to 0xc0d3ddf0)
[ 3312.509681] dda0: 00000000 e0834c16 dc8ba004 dc8ba004 dcb69080 a00d0113
[ 3312.517893] ddc0: ddb73c00 ddfa459c 00000007 c0df4b53 00000040 c0d3de0c c0d3db88 c0d3ddf0
[ 3312.526103] dde0: c066bc28 c060f9d4 600d0113 ffffffff
[ 3312.531178] [<c08ba100>] (__irq_svc) from [<c060f9d4>] (__usb_hcd_giveback_urb+0x90/0x150)
[ 3312.539482] [<c060f9d4>] (__usb_hcd_giveback_urb) from [<c060fb20>] (usb_giveback_urb_bh+0x8c/0xc0)
[ 3312.548577] [<c060fb20>] (usb_giveback_urb_bh) from [<c004da84>] (tasklet_action+0x70/0xb8)
[ 3312.556967] [<c004da84>] (tasklet_action) from [<c004d184>] (__do_softirq+0x12c/0x2e4)
[ 3312.564920] [<c004d184>] (__do_softirq) from [<c004d638>] (irq_exit+0xe8/0x11c)
[ 3312.572262] [<c004d638>] (irq_exit) from [<c008d7c8>] (__handle_domain_irq+0x68/0xb8)
[ 3312.580126] [<c008d7c8>] (__handle_domain_irq) from [<c0009428>] (omap_intc_handle_irq+0xcc/0xd4)
[ 3312.589037] [<c0009428>] (omap_intc_handle_irq) from [<c08ba100>] (__irq_svc+0x40/0x54)
[ 3312.597071] Exception stack(0xc0d3df20 to 0xc0d3df68)
[ 3312.602142] df20: dd9bbc10 00800000 fa04c190 c0023540 c0e10040 c0d3c000 c0d3f134 c0df5628
[ 3312.610355] df40: c0df4b53 c0df4b53 c0d081c0 c0d3df74 c0d3df78 c0d3df68 c0010ef8 c0010efc
[ 3312.618563] df60: 600d0013 ffffffff
[ 3312.622068] [<c08ba100>] (__irq_svc) from [<c0010efc>] (arch_cpu_idle+0x48/0x4c)
[ 3312.629509] [<c0010efc>] (arch_cpu_idle) from [<c00779c8>] (default_idle_call+0x30/0x3c)
[ 3312.637638] [<c00779c8>] (default_idle_call) from [<c0077afc>] (cpu_startup_entry+0x128/0x164)
[ 3312.646289] [<c0077afc>] (cpu_startup_entry) from [<c08b1088>] (rest_init+0x80/0x84)
[ 3312.654071] [<c08b1088>] (rest_init) from [<c0ca9d98>] (start_kernel+0x408/0x414)
[ 3340.254347] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper:0]
[ 3340.261512] Modules linked in: ipt_MASQUERADE nf_nat_masquerade_ipv4 tun iptable_mangle xt_conntrack iptable_filter xt_nat xt_tcpudp iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ccm bridge stp llc arc4 ath9k_htc ath9k_common ath9k_hw rt2800usb rt2800lib ath rt2x00usb rt2x00lib mac80211 cfg80211 omap_sham omap_aes omap_rng crc_ccitt rng_core tilcdc tda998x drm_kms_helper uio_pdrv_genirq uio sch_fq_codel ip_tables x_tables
[ 3340.301965] CPU: 0 PID: 0 Comm: swapper Tainted: G L 4.2.4-1-ARCH #1
[ 3340.309476] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 3340.315591] task: c0d43470 ti: c0d3c000 task.ti: c0d3c000
[ 3340.321015] PC is at __usb_hcd_giveback_urb+0x90/0x150
[ 3340.326174] LR is at musb_start_urb+0x748/0xd0c
[ 3340.330721] pc : [<c060f9d4>] lr : [<c066bc28>] psr: 600d0113
[ 3340.330721] sp : c0d3ddf0 ip : c0d3db88 fp : c0d3de0c
[ 3340.342245] r10: 00000040 r9 : c0df4b53 r8 : 00000007
[ 3340.347488] r7 : ddfa459c r6 : ddb73c00 r5 : a00d0113 r4 : dcb69000
[ 3340.354039] r3 : dc8ba004 r2 : dc8ba004 r1 : e0834c16 r0 : 00000000
[ 3340.360592] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 3340.367928] Control: 10c5387d Table: 9c9b0019 DAC: 00000015
[ 3340.373695] CPU: 0 PID: 0 Comm: swapper Tainted: G L 4.2.4-1-ARCH #1
[ 3340.381204] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 3340.387333] [<c0017094>] (unwind_backtrace) from [<c0014264>] (show_stack+0x20/0x24)
[ 3340.395114] [<c0014264>] (show_stack) from [<c08b46bc>] (dump_stack+0x24/0x28)
[ 3340.402369] [<c08b46bc>] (dump_stack) from [<c0011180>] (show_regs+0x1c/0x20)
[ 3340.409538] [<c0011180>] (show_regs) from [<c00d0a5c>] (watchdog_timer_fn+0x170/0x1a4)
[ 3340.417493] [<c00d0a5c>] (watchdog_timer_fn) from [<c009a134>] (__hrtimer_run_queues.constprop.6+0x154/0x284)
[ 3340.427453] [<c009a134>] (__hrtimer_run_queues.constprop.6) from [<c009a454>] (hrtimer_interrupt+0x9c/0x1b8)
[ 3340.437327] [<c009a454>] (hrtimer_interrupt) from [<c003613c>] (omap2_gp_timer_interrupt+0x38/0x40)
[ 3340.446414] [<c003613c>] (omap2_gp_timer_interrupt) from [<c008de80>] (handle_irq_event_percpu+0xa8/0x1e8)
[ 3340.456110] [<c008de80>] (handle_irq_event_percpu) from [<c008dffc>] (handle_irq_event+0x3c/0x50)
[ 3340.465022] [<c008dffc>] (handle_irq_event) from [<c00908a0>] (handle_level_irq+0xa8/0x128)
[ 3340.473411] [<c00908a0>] (handle_level_irq) from [<c008d528>] (generic_handle_irq+0x3c/0x4c)
[ 3340.481886] [<c008d528>] (generic_handle_irq) from [<c008d7c4>] (__handle_domain_irq+0x64/0xb8)
[ 3340.490623] [<c008d7c4>] (__handle_domain_irq) from [<c0009428>] (omap_intc_handle_irq+0xcc/0xd4)
[ 3340.499534] [<c0009428>] (omap_intc_handle_irq) from [<c08ba100>] (__irq_svc+0x40/0x54)
[ 3340.507568] Exception stack(0xc0d3dda8 to 0xc0d3ddf0)
[ 3340.512639] dda0: 00000000 e0834c16 dc8ba004 dc8ba004 dcb69000 a00d0113
[ 3340.520851] ddc0: ddb73c00 ddfa459c 00000007 c0df4b53 00000040 c0d3de0c c0d3db88 c0d3ddf0
[ 3340.529060] dde0: c066bc28 c060f9d4 600d0113 ffffffff
[ 3340.534135] [<c08ba100>] (__irq_svc) from [<c060f9d4>] (__usb_hcd_giveback_urb+0x90/0x150)
[ 3340.542436] [<c060f9d4>] (__usb_hcd_giveback_urb) from [<c060fb20>] (usb_giveback_urb_bh+0x8c/0xc0)
[ 3340.551523] [<c060fb20>] (usb_giveback_urb_bh) from [<c004da84>] (tasklet_action+0x70/0xb8)
[ 3340.559911] [<c004da84>] (tasklet_action) from [<c004d184>] (__do_softirq+0x12c/0x2e4)
[ 3340.567864] [<c004d184>] (__do_softirq) from [<c004d638>] (irq_exit+0xe8/0x11c)
[ 3340.575205] [<c004d638>] (irq_exit) from [<c008d7c8>] (__handle_domain_irq+0x68/0xb8)
[ 3340.583069] [<c008d7c8>] (__handle_domain_irq) from [<c0009428>] (omap_intc_handle_irq+0xcc/0xd4)
[ 3340.591981] [<c0009428>] (omap_intc_handle_irq) from [<c08ba100>] (__irq_svc+0x40/0x54)
[ 3340.600014] Exception stack(0xc0d3df20 to 0xc0d3df68)
[ 3340.605086] df20: dd9bbc10 00800000 fa04c190 c0023540 c0e10040 c0d3c000 c0d3f134 c0df5628
[ 3340.613297] df40: c0df4b53 c0df4b53 c0d081c0 c0d3df74 c0d3df78 c0d3df68 c0010ef8 c0010efc
[ 3340.621506] df60: 600d0013 ffffffff
[ 3340.625011] [<c08ba100>] (__irq_svc) from [<c0010efc>] (arch_cpu_idle+0x48/0x4c)
[ 3340.632442] [<c0010efc>] (arch_cpu_idle) from [<c00779c8>] (default_idle_call+0x30/0x3c)
[ 3340.640569] [<c00779c8>] (default_idle_call) from [<c0077afc>] (cpu_startup_entry+0x128/0x164)
[ 3340.649221] [<c0077afc>] (cpu_startup_entry) from [<c08b1088>] (rest_init+0x80/0x84)
[ 3340.656999] [<c08b1088>] (rest_init) from [<c0ca9d98>] (start_kernel+0x408/0x414)
')

If it helps, here's the output of lsusb with just a hub attached:

Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And here with a hub and an Atheros radio attached:

Bus 001 Device 004: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Thanks for any insight! (Edited to make the console output "code.")

Michael Sen-Roy
SPAmichael
 
Posts: 1
Joined: Mon Oct 26, 2015 7:06 pm

Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 3 guests