Snowball: Board hangs while doing Bluetooth file transfer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IglooCommunity |
New
|
Medium
|
Mridul Jain | ||
Linaro Android |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Description:
==========
Trying to send a image file( from gallery app) over Bluetooth to another phone.
File transfer didn't complete and snowball board hangs during file transfer, need to reboot device to use it again.
Serial Logs shows following messages:
-------------------
[ 225.481964] INFO: rcu_preempt detected stalls on CPUs/tasks: { 0} (detected by 1, t=6002 jiffies)
[ 225.490875] Backtrace for cpu 1 (current):
[ 225.494995] [<c001d8a0>] (unwind_
[ 225.503631] [<c05e5aec>] (dump_stack+
[ 225.513092] [<c001aecc>] (smp_send_
[ 225.524322] [<c0016678>] (arch_trigger_
[ 225.534576] [<c00982dc>] (__rcu_
[ 225.544067] [<c0099eb4>] (rcu_check_
[ 225.553985] [<c0041048>] (update_
[ 225.563476] [<c007b6d4>] (tick_sched_
[ 225.572448] [<c0056668>] (__run_
[ 225.581665] [<c005763c>] (hrtimer_
[ 225.590637] [<c001bacc>] (twd_handler+
[ 225.600036] [<c00953fc>] (handle_
[ 225.610015] [<c00915f8>] (generic_
[ 225.618804] [<c0016058>] (handle_
[ 225.627258] [<c0008544>] (gic_handle_
[ 225.635589] Exception stack(0xeaa3fbd0 to 0xeaa3fc18)
[ 225.640655] fbc0: 00000002 00000002 00000008 00000001
[ 225.648834] fbe0: eaa3fc54 c1732ac0 00000000 c1732ac0 00e42000 c1732ac8 00000001 eaa3fc44
[ 225.656982] fc00: 00000001 eaa3fc18 c002627c c00809a0 20000013 ffffffff
[ 225.663604] [<c0014c80>] (__irq_
[ 225.672393] [<c00809a0>] (generic_
[ 225.682647] [<c0080ae4>] (smp_call_
[ 225.693359] [<c0080de0>] (smp_call_
[ 225.703247] [<c0080e7c>] (smp_call_
[ 225.712066] [<c0080ee0>] (on_each_
[ 225.720672] [<c00c7b18>] (drain_
[ 225.730407] [<c00ca188>] (__alloc_
[ 225.740600] [<c05e76b8>] (cache_
[ 225.750183] [<c00f45d0>] (kmem_cache_
[ 225.759307] [<c00f8690>] (get_empty_
[ 225.768005] [<c01057bc>] (path_openat+
[ 225.776428] [<c0105c60>] (do_filp_
[ 225.784881] [<c00f63d0>] (do_sys_
[ 225.792968] [<c00f6494>] (sys_open+
[ 225.801300]
[ 225.801330] sending IPI to all other CPUs:
[ 405.801940] INFO: rcu_preempt detected stalls on CPUs/tasks: { 0} (detected by 1, t=24034 jiffies)
[ 405.810913] Backtrace for cpu 1 (current):
[ 405.815002] [<c001d8a0>] (unwind_
[ 405.823608] [<c05e5aec>] (dump_stack+
[ 405.833099] [<c001aecc>] (smp_send_
[ 405.844329] [<c0016678>] (arch_trigger_
[ 405.854583] [<c00982dc>] (__rcu_
[ 405.864044] [<c0099eb4>] (rcu_check_
[ 405.873962] [<c0041048>] (update_
[ 405.883453] [<c007b6d4>] (tick_sched_
[ 405.892425] [<c0056668>] (__run_
[ 405.901641] [<c005763c>] (hrtimer_
[ 405.910583] [<c001bacc>] (twd_handler+
[ 405.919982] [<c00953fc>] (handle_
[ 405.929992] [<c00915f8>] (generic_
[ 405.938781] [<c0016058>] (handle_
[ 405.947204] [<c0008544>] (gic_handle_
[ 405.955535] Exception stack(0xeaa3fbd0 to 0xeaa3fc18)
[ 405.960601] fbc0: 00000002 00000002 00000008 00000001
[ 405.968780] fbe0: eaa3fc54 c1732ac0 00000000 c1732ac0 00e42000 c1732ac8 00000001 eaa3fc44
[ 405.976928] fc00: 00000001 eaa3fc18 c002627c c0080998 20000013 ffffffff
[ 405.983551] [<c0014c80>] (__irq_
[ 405.992340] [<c0080998>] (generic_
[ 406.002593] [<c0080ae4>] (smp_call_
[ 406.013305] [<c0080de0>] (smp_call_
[ 406.023193] [<c0080e7c>] (smp_call_
[ 406.031982] [<c0080ee0>] (on_each_
[ 406.040588] [<c00c7b18>] (drain_
[ 406.050354] [<c00ca188>] (__alloc_
[ 406.060516] [<c05e76b8>] (cache_
[ 406.070098] [<c00f45d0>] (kmem_cache_
[ 406.079223] [<c00f8690>] (get_empty_
[ 406.087921] [<c01057bc>] (path_openat+
[ 406.096343] [<c0105c60>] (do_filp_
[ 406.104797] [<c00f63d0>] (do_sys_
[ 406.112884] [<c00f6494>] (sys_open+
[ 406.121215]
[ 406.121215] sending IPI to all other CPUs:
IMPACT:
=======
BT file transfer fails.
Reproducible:
===========
2/2
Steps:
=======
1. Bootup snowball device, turn ON Bluetooth, Connect to a commercial phone having BT feature.
2. After pairing is done , open Gallery app(assuming it has some image files , otherwise copy some jpeg images to sd card)
3. Log press an image ->select share option->via Bluetooth->Select paired device ->File transfer should start.
Issue: After around 8% file transfer the snowball board hangs for 30 seconds and then prints the error logs and then hangs completely.
Logs:
======
See attached logs
Changed in igloocommunity: | |
assignee: | nobody → Mridul Jain (mridul-jain-2) |
Changed in igloocommunity: | |
importance: | Undecided → Medium |
Changed in linaro-android: | |
assignee: | Zach Pfeffer (pfefferz) → nobody |
I'm not sure if this is specific to snowball, or even if it is related to bluetooth. I just hit a backtrace that appears to be the same on a pandaboard after transferring a file over USB and letting it sit idle for a few minutes with an open adb shell connection: backtrace+ 0x0/0xf8) from [<c00183bc>] (smp_send_ all_cpu_ backtrace+ 0x5c/0xc0) all_cpu_ backtrace+ 0x5c/0xc0) from [<c008a7b4>] (__rcu_ pending+ 0x39c/0x418) pending+ 0x39c/0x418) from [<c008b360>] (rcu_check_ callbacks+ 0x194/0x2a4) callbacks+ 0x194/0x2a4) from [<c0052dc4>] (update_ process_ times+0x38/ 0x4c) process_ times+0x38/ 0x4c) from [<c0071804>] (tick_sched_ timer+0x88/ 0xd8) timer+0x88/ 0xd8) from [<c0065b14>] (__run_ hrtimer+ 0x7c/0x278) hrtimer+ 0x7c/0x278) from [<c0066900>] (hrtimer_ interrupt+ 0x114/0x2a0) interrupt+ 0x114/0x2a0) from [<c0018c14>] (twd_handler+ 0x30/0x44) 0x30/0x44) from [<c0086b44>] (handle_ percpu_ devid_irq+ 0x90/0x180) percpu_ devid_irq+ 0x90/0x180) from [<c0083434>] (generic_ handle_ irq+0x28/ 0x3c) handle_ irq+0x28/ 0x3c) from [<c0014298>] (handle_ IRQ+0x4c/ 0xb0) IRQ+0x4c/ 0xb0) from [<c06288f4>] (__irq_ svc+0x34/ 0xac) svc+0x34/ 0xac) from [<c0628484>] (__raw_ spin_lock_ irqsave+ 0x88/0xa8) spin_lock_ irqsave+ 0x88/0xa8) from [<bf0141fc>] (st_unregister+ 0x38/0x144 [st_drv]) 0x38/0x144 [st_drv]) from [<bf06b04c>] (ti_st_ close+0x3c/ 0x84 [btwilink]) close+0x3c/ 0x84 [btwilink]) from [<bf01f84c>] (hci_dev_ do_close+ 0x104/0x1e4 [bluetooth]) do_close+ 0x104/0x1e4 [bluetooth]) from [<bf0202e8>] (hci_dev_ close+0x14/ 0x68 [bluetooth]) close+0x14/ 0x68 [bluetooth]) from [<bf02bfbc>] (hci_sock_ ioctl+0x190/ 0x3cc [bluetooth]) ioctl+0x190/ 0x3cc [bluetooth]) from [<c04a8b14>] (sock_ioctl+ 0x70/0x264) 0x70/0x264) from [<c00e7404>] (do_vfs_ ioctl+0x80/ 0x534) ioctl+0x80/ 0x534) from [<c00e7924>] (sys_ioctl+ 0x6c/0x7c) 0x6c/0x7c) from [<c00133a0>] (ret_fast_ syscall+ 0x0/0x30) backtrace+ 0x0/0xf8) from [<c00183bc>] (smp_send_ all_cpu_ backtrace+ 0x5c/0xc0) all_cpu_ backtrace+ 0x5c/0xc0) from [<c00...
[ 1178.132659] INFO: rcu_preempt detected stalls on CPUs/tasks: { 0} (detected by 1, t=7682 jiffies)
[ 1178.141998] Backtrace for cpu 1 (current):
[ 1178.146331] [<c0019fb4>] (unwind_
[ 1178.156799] [<c00183bc>] (smp_send_
[ 1178.167236] [<c008a7b4>] (__rcu_
[ 1178.177215] [<c008b360>] (rcu_check_
[ 1178.187683] [<c0052dc4>] (update_
[ 1178.197662] [<c0071804>] (tick_sched_
[ 1178.207092] [<c0065b14>] (__run_
[ 1178.216796] [<c0066900>] (hrtimer_
[ 1178.226226] [<c0018c14>] (twd_handler+
[ 1178.236145] [<c0086b44>] (handle_
[ 1178.246673] [<c0083434>] (generic_
[ 1178.255950] [<c0014298>] (handle_
[ 1178.264343] [<c06288f4>] (__irq_
[ 1178.273986] [<c0628484>] (__raw_
[ 1178.284881] [<bf0141fc>] (st_unregister+
[ 1178.295806] [<bf06b04c>] (ti_st_
[ 1178.307281] [<bf01f84c>] (hci_dev_
[ 1178.319061] [<bf0202e8>] (hci_dev_
[ 1178.330596] [<bf02bfbc>] (hci_sock_
[ 1178.340850] [<c04a8b14>] (sock_ioctl+
[ 1178.349731] [<c00e7404>] (do_vfs_
[ 1178.358428] [<c00e7924>] (sys_ioctl+
[ 1178.367309]
[ 1178.367309] sending IPI to all other CPUs:
[ 1358.382690] INFO: rcu_preempt detected stalls on CPUs/tasks: { 0} (detected by 1, t=30754 jiffies)
[ 1358.392120] Backtrace for cpu 1 (current):
[ 1358.396453] [<c0019fb4>] (unwind_
[ 1358.406890] [<c00183bc>] (smp_send_