This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP3430 - I2C timeout error

Other Parts Discussed in Thread: OMAP3530

We have connected Accelerometer on I2C3 of OMAP3430. We are using 2.6.29 kernel from git://git.omapzoom.org.  When we are trying to retreive data from Accelerometer we are getting error saying "i2c_omap i2c_omap.3: timeout waiting for bus ready". This has resulted in Kernel panic. I have attached the Kernel panic log.

Also referred few discussions on the same lines...

   http://patchwork.kernel.org/patch/49514/

The above mentioned patch is already being applied to kernel. Please let me know if anyone already faced similar proble with respect to I2C3. Also if any patches which can be incorporated for the same.

BUG: soft lockup - CPU#0 stuck for 61s! [er$SensorThread:1005]

Modules linked in:

Pid: 100

5, comm: er$SensorThread

CPU: 0 Not tainted (2.6.29-omap1-dirty #15)

PC is at omap_i2c_isr+0x278/0x34c

LR is at handle_IRQ_event+0x3c/0x74

pc : [<c02644e8>] lr : [<c00999d8>] psr: 40000113

sp : cc711cd0 ip : 00000082 fp : cc711cf4

r10: cfa21200 r9 : cc710000 r8 : 0000601f

r7 : 00000001 r6 : 00000000 r5 : 00005000 r4 : cfa21200

r3 : 00005000 r2 : 0000003c r1 : 00000000 r0 : 00000001

Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user

Control: 10c5387d Table: 8f0c4019 DAC: 00000015

PC: 0xc0264468:

4468 e584302c 9a00001e ea00001f e3150010 0a000006 e5940000 ebfee830 e5942000

4488 e2822068 e1a01000 e59f0114 ebf823bb e3150901 0a00001a e5940000 ebfee827

44a8 e5942000 e2822068 e1a01000 e59f00f4 ebf823b2 ea000012 e3150003 0a000005

44c8 e5942004 e3043010 e3866b01 e0053003 e1c230b8 eaffff76 e5943004 e1d330b8

44e8 e1a05003 e3150b01 0afffff2 e2403001 e5942004 e6ef0073 e1c2c1bc e3500000

4508 1affffcd e5942004 e3043010 e0053003 e1c230b8 ea000017 e3150b02 0a000009

4528 e5940000 ebfee805 e5942000 e2822068 e1a01000 e59f0070 ebf82390 e1d432b8

4548 e3833b02 e1c432b8 e3150b01 0a000009 e5940000 ebfee7f9 e5942000 e2822068

LR: 0xc0099958:

9958 c046b7cc c0468621 c0468630 c0468640 c046865a c0468664 c0468673 c0468680

9978 c046868c c0468697 c04686a6 c04686b2 c04686bc c04686c7 c04686d3 c04686e1

9998 c050d4c0 e1a0c00d e92dd8f0 e24cb004 e5913004 e1a04001 e3130020 e1a07000

99b8 1a000000 f1080080 e3a06000 e1a05006 e5941010 e1a00007 e1a0e00f e594f000

99d8 e3500001 e1866000 05943004 e5944014 01855003 e3540000 1afffff4 e3150040

99f8 0a000001 e1a00007 eb059b00 f10c0080 e1a00006 e89da8f0 e1a0c00d e92dd830

9a18 e24cb004 e24dd008 e591c028 e591e030 e1a04001 e1a02001 e5913020 e1a05000

9a38 e1a01000 e59f01a4 e88d5000 ebff4e4f e5941004 e59f0198 ebff4e4c e5943004

SP: 0xcc711c50:

1c50 00000025 cc711d50 00000000 00010002 cc711c84 cc711c70 c0039058 c009b68c

1c70 ffffffff fa200000 cc711cf4 cc711c88 c0039a04 c003900c 00000001 00000000

1c90 0000003c 00005000 cfa21200 00005000 00000000 00000001 0000601f cc710000

1cb0 cfa21200 cc711cf4 00000082 cc711cd0 c00999d8 c02644e8 40000113 ffffffff

1cd0 cfa25d40 00000000 00000000 0000003d 00000000 cc710000 cc711d14 cc711cf8

1cf0 c00999d8 c026427c c04e3f9c 0000003d cfa25d40 00000001 cc711d34 cc711d18

1d10 c009b724 c00999a8 0000003d 00000000 00008601 00000001 cc711d4c cc711d38

1d30 c0039058 c009b68c ffffffff fa200000 cc711dcc cc711d50 c0039a04 c003900c

FP: 0xcc711c74:

1c74 fa200000 cc711cf4 cc711c88 c0039a04 c003900c 00000001 00000000 0000003c

1c94 00005000 cfa21200 00005000 00000000 00000001 0000601f cc710000 cfa21200

1cb4 cc711cf4 00000082 cc711cd0 c00999d8 c02644e8 40000113 ffffffff cfa25d40

1cd4 00000000 00000000 0000003d 00000000 cc710000 cc711d14 cc711cf8 c00999d8

1cf4 c026427c c04e3f9c 0000003d cfa25d40 00000001 cc711d34 cc711d18 c009b724

1d14 c00999a8 0000003d 00000000 00008601 00000001 cc711d4c cc711d38 c0039058

1d34 c009b68c ffffffff fa200000 cc711dcc cc711d50 c0039a04 c003900c 00000000

1d54 00000000 00000001 00000001 00000000 cfa21200 00008601 cc711e50 00000000

R4: 0xcfa21180:

1180 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

11a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

11c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

11e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

1200 c04e07c0 fa060000 0000003d c04daf24 c04d9e7c 00000000 cfa21218 cfa21218

1220 00000000 00000190 00000000 cc711e0c 00000000 00000000 00000000 00000000

1240 00000001 c03e7444 00000000 00000000 00000000 00000000 00000000 cfa2125c

1260 cfa2125c cc710000 00000000 cfa21258 00000001 cfa21274 cfa21274 00000000

R9: 0xcc70ff80:

ff80 ad080f90 00000000 000000f0 c003a028 cc70e000 00000000 00000000 cc70ffa8

ffa0 c0039e80 c0090210 ad080f8c ad080f90 ad080f90 00000000 ffffffae 00000000

ffc0 ad080f8c ad080f90 00000000 000000f0 00100000 ad041b45 10000000 00124548

ffe0 ad08024c 100ffe40 afe0f690 afe0da04 20000010 ad080f90 ff11049b f60a08ff

0000 00000002 00020004 00000000 cc703cc0 c04e0e0c 00000000 00000017 00000000

0020 cc703cc0 c04d3058 cfbdc200 cc710000 c03cb410 cc703e28 cc711ebc cc711e90

0040 c03c9ce4 00000000 00000000 00000000 00000000 00000000 00000000 00000000

0060 484bdf00 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R10: 0xcfa21180:

1180

00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

11a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

11c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

11e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

1200 c04e07c0 fa060000 0000003d c04daf24 c04d9e7c 00000000 cfa21218 cfa21218

1220 00000000 00000190 00000000 cc711e0c 00000000 00000000 00000000 00000000

1240 00000001 c03e7444 00000000 00000000 00000000 00000000 00000000 cfa2125c

1260 cfa2125c cc710000 00000000 cfa21258 00000001 cfa21274 cfa21274 00000000

[<c003b7e0>] (show_regs+0x0/0x50) from [<c0099468>] (softlockup_tick+0x10c/0x170)

r5:000000d3 r4:00000096

[<c009935c>] (softlockup_tick+0x0/0x170) from [<c007671c>] (run_local_timers+0x1c/0x20)

[<c0076700>] (run_local_timers+0x0/0x20) from [<c0076990>] (update_process_times+0x38/0x68)

[<c0076958>] (update_process_times+0x0/0x68) from [<c008d07c>] (tick_sched_timer+0x8c/0xc8)

r7:000000d0 r6:280d658c r5:cc711c88 r4:c0516320

[<c008cff0>] (tick_sched_timer+0x0/0xc8) from [<c008503c>] (__run_hrtimer+0x70/0xbc)

r7:000135b2 r6:c04e2898 r5:c0516320 r4:c008cff0

[<c0084fcc>] (__run_hrtimer+0x0/0xbc) from [<c0085ae8>] (hrtimer_interrupt+0x178/0x200)

r7:000135b2 r6:1a31f49a r5:000000d0 r4:280d658c

[<c0085970>] (hrtimer_interrupt+0x0/0x200) from [<c0046ba0>] (omap2_gp_timer_interrupt+0x28/0x34)

[<c0046b78>] (omap2_gp_timer_interrupt+0x0/0x34) from [<c00999d8>] (handle_IRQ_event+0x3c/0x74)

[<c009999c>] (handle_IRQ_event+0x0/0x74) from [<c009b724>] (handle_level_irq+0xa4/0x154)

r7:00010002 r6:c04d79e0 r5:00000025 r4:c04e39fc

[<c009b680>] (handle_level_irq+0x0/0x154) from [<c0039058>] (__exception_text_start+0x58/0x70)

r7:00010002 r6:00000000 r5:cc711d50 r4:00000025

[<c0039000>] (__exception_text_start+0x0/0x70) from [<c0039a04>] (__irq_svc+0x44/0xa4)

Exception stack(0xcc711c88 to 0xcc711cd0)

1c80: 00000001 00000000 0000003c 00005000 cfa21200 00005000

1ca0: 00000000 00000001 0000601f cc710000 cfa21200 cc711cf4 00000082 cc711cd0

1cc0: c00999d8 c02644e8 40000113 ffffffff

r5:fa200000 r4:ffffffff

[<c0264270>] (omap_i2c_isr+0x0/0x34c) from [<c00999d8>] (handle_IRQ_event+0x3c/0x74)

r9:cc710000 r8:00000000 r7:0000003d r6:00000000 r5:00000000

r4:cfa25d40

[<c009999c>] (handle_IRQ_event+0x0/0x74) from [<c009b724>] (handle_level_irq+0xa4/0x154)

r7:00000001 r6:cfa25d40 r5:0000003d r4:c04e3f9c

[<c009b680>] (handle_level_irq+0x0/0x154) from [<c0039058>] (__exception_text_start+0x58/0x70)

r7:00000001 r6:00008601 r5:00000000 r4:0000003d

[<c0039000>] (__exception_text_start+0x0/0x70) from [<c0039a04>] (__irq_svc+0x44/0xa4)

Exception stack(0xcc711d50 to 0xcc711d98)

1d40: 00000000 00000000 00000001 00000001

1d60: 00000000 cfa21200 00008601 cc711e50 00000000 00000002 cfa21200 cc711dcc

1d80: cc711d98 cc711d98 c0264060 c02640c0 40000013 ffffffff

r5:fa200000 r4:ffffffff

[<c0263f70>] (omap_i2c_xfer+0x0/0x300) from [<c0261028>] (i2c_transfer+0x9c/0xb0)

[<c0260f8c>] (i2c_transfer+0x0/0xb0) from [<c02613c8>] (i2c_smbus_xfer+0x38c/0x4cc)

r7:00000001 r6:00000000 r5:00000038 r4:00000000

[<c026103c>] (i2c_smbus_xfer+0x0/0x4cc) from [<c026182c>] (i2c_smbus_read_byte_data+0x3c/0x4c)

[<c02617f0>] (i2c_smbus_read_byte_data+0x0/0x4c) from [<c0266dd8>] (bma150_i2c_read+0x38/0x78)

[<c0266da0>] (bma150_i2c_read+0x0/0x78) from [<c026602c>] (smb380_read_accel_xyz+0x3c/0x98)

r7:00000006 r6:cc711f22 r5:00000006 r4:cc711f22

[<c0265ff0>] (smb380_read_accel_xyz+0x0/0x98) from [<c0266f3c>] (bma150_read+0x40/0xd0)

r5:00000006 r4:484bdd00

[<c0266efc>] (bma150_read+0x0/0xd0) from [<c00cf1d0>] (vfs_read+0xb8/0x148)

r6:cc711f70 r5:484bdd00 r4:cc6adcc0

[<c00cf118>] (vfs_read+0x0/0x148) from [<c00cf5b8>] (sys_read+0x44/0x70)

r7:00000006 r6:cc6adcc0 r5:00000000 r4:00000000

[<c00cf574>] (sys_read+0x0/0x70) from [<c0039e80>] (ret_fast_syscall+0x0/0x2c)

r8:c003a028 r7:00000003 r6:80702250 r5:484bdd30 r4:80702150

r8:c003\0xff\0xff\0xff\0xff`\0xff\0xff\0xff00000003 r6:80702250 r5:484bdd30 r4:80702150

r8:c

003\0xff\0xff\0xff\0xff`\0xff\0xff\0xff00\0xff\0xff\0xff0\0xff\0xff r6:\0xff\0xff70\0xff\0xff\0xb50\0xffr5:484bdd30 r4:80702150

r8:c003\0xff\0xff\0xff\0xff`\0xff\0xff\0xff00\0xff\0xff\0xff0\0xff

 

 

  • Hi,

     

    I am also facing the same kernel crash, but my application is different.

    It deals with webcam.

     

    CPU: 0    Not tainted  (2.6.28-rc9-omap1 #14)
    PC is at handle_IRQ_event+0x28/0x74
    LR is at handle_level_irq+0x94/0xec
    pc : [<c008cc30>]    lr : [<c008e18c>]    psr: 48000113
    sp : c7eede90  ip : c7eedeb0  fp : c7eedeac
    r10: 0000001d  r9 : c0638ba8  r8 : 00000000
    r7 : 0000005c  r6 : 00000000  r5 : 0000005c  r4 : c7a1b360
    r3 : 00000000  r2 : 0000006e  r1 : c7a1b360  r0 : 0000005c
    Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    Control: 10c5387d  Table: 87f48018  DAC: 00000015
    [<c003b370>] (show_regs+0x0/0x50) from [<c008c738>] (softlockup_tick+0x108/0x148)
     r5:00000104 r4:000000c7
    [<c008c630>] (softlockup_tick+0x0/0x148) from [<c006f25c>] (run_local_timers+0x1c/0x20)
     r8:c0637d08 r7:00000107 r6:297648b1 r5:c7976cc0 r4:00000000
    [<c006f240>] (run_local_timers+0x0/0x20) from [<c006f2dc>] (update_process_times+0x30/0x60)
    [<c006f2ac>] (update_process_times+0x0/0x60) from [<c0081f9c>] (tick_sched_timer+0x90/0xc4)
     r5:c7eede48 r4:c06796d0
    [<c0081f0c>] (tick_sched_timer+0x0/0xc4) from [<c007c2dc>] (__run_hrtimer+0x30/0x70)
     r7:7fffffff r6:ffffffff r5:c0637d08 r4:c06796d0
    [<c007c2ac>] (__run_hrtimer+0x0/0x70) from [<c007cf08>] (hrtimer_interrupt+0x174/0x1e8)
     r5:00000107 r4:c06796d0
    [<c007cd94>] (hrtimer_interrupt+0x0/0x1e8) from [<c004412c>] (omap2_gp_timer_interrupt+0x28/0x34)
    [<c0044104>] (omap2_gp_timer_interrupt+0x0/0x34) from [<c008cc44>] (handle_IRQ_event+0x3c/0x74)
    [<c008cc08>] (handle_IRQ_event+0x0/0x74) from [<c008e18c>] (handle_level_irq+0x94/0xec)
     r7:0000005c r6:00000000 r5:0000005f r4:c0639b20
    [<c008e0f8>] (handle_level_irq+0x0/0xec) from [<c0039068>] (__exception_text_start+0x68/0x88)
     r5:c7eedee0 r4:0000005f
    [<c0039000>] (__exception_text_start+0x0/0x88) from [<c0039a30>] (__irq_svc+0x30/0x80)
    Exception stack(0xc7eede48 to 0xc7eede90)
    de40:                   0000005c c7a1b360 0000006e 00000000 c7a1b360 0000005c
    de60: 00000000 0000005c 00000000 c0638ba8 0000001d c7eedeac c7eedeb0 c7eede90
    de80: c008e18c c008cc30 48000113 ffffffff
     r5:d8200000 r4:ffffffff
    [<c008cc08>] (handle_IRQ_event+0x0/0x74) from [<c008e18c>] (handle_level_irq+0x94/0xec)
     r7:000000b9 r6:00000000 r5:0000005c r4:c0639a6c

     

    Thanks and Regards,

    HarishKumar.V

  • Hello,

    Did you find a solution? I am having the same problem with i2c2 on omap3530 (kernel 2.6.33).

    After a short time, I got a soft lockup:

    [  400.507843] BUG: soft lockup - CPU#0 stuck for 61s! [x4:988]
    [  400.516693] Modules linked in: gspca_ov534 lpm_omap3530 dsplinkk cmemk libertas_sdio libertas cfg80211 lib80211 gspca_main [last unloaded: gspca_ov534]
    [  400.536743]
    [  400.541259] Pid: 988, comm:                   x4
    [  400.548919] CPU: 0    Not tainted  (2.6.33.7 #8)
    [  400.556488] PC is at omap_i2c_isr+0x30c/0x3ec
    [  400.563720] LR is at handle_IRQ_event+0x38/0xfc
    [  400.571105] pc : [<c02578d0>]    lr : [<c0085894>]    psr: 40000113
    [  400.571105] sp : c4bb5e40  ip : 00000001  fp : 00000001
    [  400.588226] r10: c48d3818  r9 : 00000154  r8 : 00000001
    [  400.596160] r7 : 0000001e  r6 : 00000000  r5 : 00004000  r4 : c48d3800
    [  400.605407] r3 : 00004000  r2 : 00000002  r1 : fa072000  r0 : 0000601f
    [  400.614685] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [  400.624725] Control: 10c5387d  Table: 84bc8019  DAC: 00000015

     

    Thanks for your help.

    Regards,

    Guillaume