当前位置: 技术问答>linux和unix
求助:中段里使用i2c导致系统崩溃
来源: 互联网 发布时间:2016-09-24
本文导语: 在定时期内使用i2c读取数值的时候执行到互斥锁加锁mutex_trylock会崩溃是什么原因? 菜鸟求助~ 内核版本号是Linux-2.6.32 WARNING: at kernel/mutex.c:436 mutex_trylock+0x68/0x138() Modules linked in: minix ipv6 Backtrace: [] (dump_backtrace+0x0...
在定时期内使用i2c读取数值的时候执行到互斥锁加锁mutex_trylock会崩溃是什么原因?
菜鸟求助~
内核版本号是Linux-2.6.32
菜鸟求助~
内核版本号是Linux-2.6.32
WARNING: at kernel/mutex.c:436 mutex_trylock+0x68/0x138()
Modules linked in: minix ipv6
Backtrace:
[] (dump_backtrace+0x0/0x114) from [] (dump_stack+0x18/0x1c)
r7:00000000 r6:c02ad064 r5:c0329953 r4:000001b4
[] (dump_stack+0x0/0x1c) from [] (warn_slowpath_common+0x50)
[] (warn_slowpath_common+0x0/0x68) from [] (warn_slowpath_n)
r7:c304e830 r6:00000000 r5:00000000 r4:c304e848
[] (warn_slowpath_null+0x0/0x1c) from [] (mutex_trylock+0x6)
[] (mutex_trylock+0x0/0x138) from [] (i2c_transfer+0x6c/0xf)
r7:c304e830 r6:00000000 r5:00000000 r4:c304e830
[] (i2c_transfer+0x0/0xfc) from [] (i2c_smbus_xfer+0x3e0/0x)
[] (i2c_smbus_xfer+0x0/0x524) from [] (i2c_smbus_read_byte_)
[] (i2c_smbus_read_byte_data+0x0/0x4c) from [] (pca9555_get)
[] (pca9555_getval+0x0/0x48) from [] (irda_timer_handler+0x)
r5:c039c660 r4:00000102
[] (irda_timer_handler+0x0/0x38) from [] (run_timer_softirq)
[] (run_timer_softirq+0x0/0x280) from [] (__do_softirq+0x98)
[] (__do_softirq+0x0/0x12c) from [] (irq_exit+0x50/0xa8)
[] (irq_exit+0x0/0xa8) from [] (asm_do_IRQ+0x74/0x8c)
[] (asm_do_IRQ+0x0/0x8c) from [] (__irq_usr+0x54/0xa0)
Exception stack(0xc3579fb0 to 0xc3579ff8)
9fa0: 00000000 be910cb4 00000001 be910cb4
9fc0: 00015c94 00000000 00009e60 00000000 00000000 00000000 40025000 be910cc4
9fe0: 00000000 be910cb0 00009f84 00009f84 00000010 ffffffff
r5:fec48000 r4:ffffffff
---[ end trace 14993aec56274977 ]---
BUG: scheduling while atomic: irda/2074/0x00000103
Modules linked in: minix ipv6
Pid: 2074, comm: irda
CPU: 0 Tainted: G W (2.6.32-rc2-davinci1 #215)
PC is at 0x9f84
LR is at 0x9f84
pc : [] lr : [] psr: 00000010
sp : be910cb0 ip : 00000000 fp : be910cc4
r10: 40025000 r9 : 00000000 r8 : 00000000
r7 : 00000000 r6 : 00009e60 r5 : 00000000 r4 : 00015c94
r3 : be910cb4 r2 : 00000001 r1 : be910cb4 r0 : 00000000
Flags: nzcv IRQs on FIQs on Mode USER_32 ISA ARM Segment user
Control: 0005317f Table: 83d3c000 DAC: 00000015
[] (show_regs+0x0/0x50) from [] (__schedule_bug+0x4c/0x60)
r5:c039c660 r4:c3579fb0
[] (__schedule_bug+0x0/0x60) from [] (schedule+0x84/0x380)
r5:c039c660 r4:00003c32
[] (schedule+0x0/0x380) from [] (schedule_timeout+0x1e0/0x2)
[] (schedule_timeout+0x0/0x220) from [] (wait_for_common+0x)
r7:00000064 r6:c304e808 r5:c3ee63c0 r4:c3579d48
[] (wait_for_common+0x0/0x1bc) from [] (wait_for_completion)
[] (wait_for_completion_interruptible_timeout+0x0/0x18) from [