免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1657 | 回复: 1
打印 上一主题 下一主题

[内核模块] CPU code hang与spi driver 中schedule问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-07-02 14:45 |只看该作者 |倒序浏览
Hi,
   各位大侠,请问如下log是CPU code死掉导致spi driver里面schedule出问题,还是由于spi driver里面的schedule出问题导致cpu code 挂掉呢?
===
[Wed Jun 24 19:58:43.163 2015] [440669.842091] INFO: rcu_sched detected stall on CPU 0 (t=6000 jiffies)
[Wed Jun 24 19:58:43.164 2015] [440669.848559] Backtrace:
[Wed Jun 24 19:58:43.165 2015] [440669.851150] [<840114ec>] (dump_backtrace+0x0/0x10c) from [<843e960c>] (dump_stack+0x18/0x1c)
[Wed Jun 24 19:58:43.166 2015] [440669.859703]  r6:8453a080 r5:84552240 r4:84dce674 r3:84534294
[Wed Jun 24 19:58:43.167 2015] [440669.865525] [<843e95f4>] (dump_stack+0x0/0x1c) from [<840811bc>] (__rcu_pending+0x88/0x38c)
[Wed Jun 24 19:58:43.168 2015] [440669.873999] [<84081134>] (__rcu_pending+0x0/0x38c) from [<8408224c>] (rcu_check_callbacks+0xe8/0x17c)
[Wed Jun 24 19:58:43.170 2015] [440669.883347] [<84082164>] (rcu_check_callbacks+0x0/0x17c) from [<84042fec>] (update_process_times+0x40/0x64)
[Wed Jun 24 19:58:43.171 2015] [440669.893205]  r8:7146ca98 r7:00000000 r6:a1117440 r5:00000000 r4:9d29e000
[Wed Jun 24 19:58:43.172 2015] [440669.899892] r3:00010000
[Wed Jun 24 19:58:43.173 2015] [440669.902645] [<84042fac>] (update_process_times+0x0/0x64) from [<840641f0>] (tick_sched_timer+0x9c/0xdc)
[Wed Jun 24 19:58:43.174 2015] [440669.912154]  r7:84dce4a0 r6:9d29f9d8 r5:9d29e000 r4:84dce598
[Wed Jun 24 19:58:43.175 2015] [440669.917981] [<84064154>] (tick_sched_timer+0x0/0xdc) from [<8405756c>] (__run_hrtimer+0xf4/0x1c
[Wed Jun 24 19:58:43.176 2015] [440669.926967]  r9:9d29f920 r8:7146c400 r6:84dce4d8 r5:84dce4a0 r4:84dce598
[Wed Jun 24 19:58:43.189 2015] [440669.933846] [<84057478>] (__run_hrtimer+0x0/0x1c from [<840582c4>] (hrtimer_interrupt+0x124/0x28
[Wed Jun 24 19:58:43.190 2015] [440669.943105] [<840581a0>] (hrtimer_interrupt+0x0/0x28 from [<840139c0>] (twd_handler+0x28/0x30)
[Wed Jun 24 19:58:43.190 2015] [440669.952021] [<84013998>] (twd_handler+0x0/0x30) from [<8407e8b4>] (handle_percpu_devid_irq+0xd0/0x150)
[Wed Jun 24 19:58:43.191 2015] [440669.961444]  r4:0000001d r3:84013998
[Wed Jun 24 19:58:43.192 2015] [440669.965151] [<8407e7e4>] (handle_percpu_devid_irq+0x0/0x150) from [<8407ae64>] (generic_handle_irq+0x34/0x4
[Wed Jun 24 19:58:43.192 2015] [440669.975192] [<8407ae30>] (generic_handle_irq+0x0/0x4 from [<8400e5e0>] (handle_IRQ+0x80/0xc0)
[Wed Jun 24 19:58:43.193 2015] [440669.984011] [<8400e560>] (handle_IRQ+0x0/0xc0) from [<840081d0>] (asm_do_IRQ+0x10/0x14)
[Wed Jun 24 19:58:43.194 2015] [440669.992127]  r5:20000113 r4:84068fe8
[Wed Jun 24 19:58:43.194 2015] [440669.995829] [<840081c0>] (asm_do_IRQ+0x0/0x14) from [<8400d738>] (__irq_svc+0x38/0x120)
[Wed Jun 24 19:58:43.195 2015] [440670.003946] Exception stack(0x9d29f9d8 to 0x9d29fa20)
[Wed Jun 24 19:58:43.195 2015] [440670.009103] f9c0:                                                       00000002 00000002
[Wed Jun 24 19:58:43.196 2015] [440670.017398] f9e0: 00000002 00000001 84dd8540 9d29fa54 84dd8540 008a2000 84dd8548 00000001
[Wed Jun 24 19:58:43.207 2015] [440670.025694] fa00: 00000001 9d29fa4c 00000002 9d29fa20 8401b038 84068fe8 20000113 ffffffff
[Wed Jun 24 19:58:43.207 2015] [440670.033996] [<84068f70>] (generic_exec_single+0x0/0x8c) from [<84069174>] (smp_call_function_single+0x178/0x1a
[Wed Jun 24 19:58:43.208 2015] [440670.044298] [<84068ffc>] (smp_call_function_single+0x0/0x1a from [<840693f8>] (smp_call_function_many+0x13c/0x27c)
[Wed Jun 24 19:58:43.209 2015] [440670.054948] [<840692bc>] (smp_call_function_many+0x0/0x27c) from [<8406956c>] (smp_call_function+0x34/0x40)
[Wed Jun 24 19:58:43.210 2015] [440670.064822] [<84069538>] (smp_call_function+0x0/0x40) from [<8401a190>] (__new_context+0xa8/0xe
[Wed Jun 24 19:58:43.211 2015] [440670.073819] [<8401a0e8>] (__new_context+0x0/0xe from [<843ea128>] (__schedule+0x5ec/0x724)
[Wed Jun 24 19:58:43.211 2015] [440670.082370]  r8:984b9b80 r7:9d29e000 r6:a1117440 r5:84dd0060 r4:b019cc60
[Wed Jun 24 19:58:43.212 2015] [440670.089056] r3:00010fb7
[Wed Jun 24 19:58:43.212 2015] [440670.091799] [<843e9b3c>] (__schedule+0x0/0x724) from [<843ea37c>] (schedule+0x78/0x7c)
[Wed Jun 24 19:58:43.213 2015] [440670.099835] [<843ea304>] (schedule+0x0/0x7c) from [<843ea798>] (schedule_timeout+0x20/0x278)
[Wed Jun 24 19:58:43.223 2015] [440670.108394] [<843ea778>] (schedule_timeout+0x0/0x278) from [<843e99e8>] (wait_for_common+0xe4/0x18c)
[Wed Jun 24 19:58:43.224 2015] [440670.117649] [<843e9904>] (wait_for_common+0x0/0x18c) from [<843e9b38>] (wait_for_completion+0x18/0x1c)
[Wed Jun 24 19:58:43.225 2015] [440670.127082] [<843e9b20>] (wait_for_completion+0x0/0x1c) from [<8426a1ec>] (spi_transfer+0x378/0x57c)
[Wed Jun 24 19:58:43.225 2015] [440670.137305] [<84269e74>] (spi_transfer+0x0/0x57c) from [<84268920>] (__spi_async+0xa0/0xb4)
[Wed Jun 24 19:58:43.226 2015] [440670.146735] [<84268880>] (__spi_async+0x0/0xb4) from [<84268c70>] (spi_async_locked+0x34/0x4c)
[Wed Jun 24 19:58:43.227 2015] [440670.155460]  r6:9d29fd00 r5:beddb0ec r4:bea67e00 r3:60000113
[Wed Jun 24 19:58:43.227 2015] [440670.161279] [<84268c3c>] (spi_async_locked+0x0/0x4c) from [<84268d44>] (__spi_sync+0x60/0xa0)
[Wed Jun 24 19:58:43.228 2015] [440670.169916]  r7:00000000 r6:beddb000 r5:bea67e00 r4:9d29fd00
[Wed Jun 24 19:58:43.228 2015] [440670.175733] [<84268ce4>] (__spi_sync+0x0/0xa0) from [<84268db0>] (spi_sync+0x14/0x18)
[Wed Jun 24 19:58:43.229 2015] [440670.183675]  r7:9d29fd78 r6:9d29fd78 r5:00000042 r4:9d29fd00
[Wed Jun 24 19:58:43.249 2015] [440670.189501] [<84268d9c>] (spi_sync+0x0/0x18) from [<839e408c>] (max14830_rw+0x78/0x98 [m915])
[Wed Jun 24 19:58:43.250 2015] [440670.198680] [<839e4014>] (max14830_rw+0x0/0x98 [m915]) from [<839f7234>] (m915_rx.clone.1+0x74/0xf8 [m915_rf915])
[Wed Jun 24 19:58:43.250 2015] [440670.210280]  r8:bc9d9000 r7:a32fdc00 r6:9d29fd76 r5:839f7a04 r4:00000021
[Wed Jun 24 19:58:43.251 2015] [440670.217164] [<839f71c0>] (m915_rx.clone.1+0x0/0xf8 [m915_rf915]) from [<839f7380>] (irq_handle+0xc8/0x220 [m915_rf915])
[Wed Jun 24 19:58:43.252 2015] [440670.229547]  r7:a7bff3b4 r6:84594120 r5:839e49cc r4:9d29ff1e
[Wed Jun 24 19:58:43.253 2015] [440670.235371] [<839f72b8>] (irq_handle+0x0/0x220 [m915_rf915]) from [<8404ce08>] (process_one_work+0x298/0x444)
[Wed Jun 24 19:58:43.253 2015] [440670.246195] [<8404cb70>] (process_one_work+0x0/0x444) from [<8404f1b8>] (worker_thread+0x204/0x350)
[Wed Jun 24 19:58:43.254 2015] [440670.255368] [<8404efb4>] (worker_thread+0x0/0x350) from [<840533c8>] (kthread+0x90/0x98)
[Wed Jun 24 19:58:43.255 2015] [440670.263581] [<84053338>] (kthread+0x0/0x98) from [<84037c9c>] (do_exit+0x0/0x6f8)
[Wed Jun 24 19:58:43.256 2015] [440670.271174]  r6:84037c9c r5:84053338 r4:91a3bee4
===

panic_log.rar

10.97 KB, 下载次数: 4

kernelpaniclog

论坛徽章:
0
2 [报告]
发表于 2015-07-02 14:59 |只看该作者
本帖最后由 jian9158101 于 2015-07-02 15:12 编辑

自己顶一下!
1. SPI BUS所接的外部设备每隔固定时间会跟CPU做交互,即通过GPIO发送interrupt给CPU,而后CPU透过SPI去取数据
2. CPU loading很重,用Uptime来看,基本三项数据都在9左右
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP