Hi All,

We are getting a kernel panic in cppi_completion routine for musb. 
We are using Davinci DM365 with PSP3.20. The board has a SMSC USB hub and we
have connected USB storage and USB modem on this hub. The observation during
kernel panic is: it seems like USB gets stalled and hence either the USB
modem / SCSI layer tried to unlink the URBs. During this there is a
interrupt from USB controller and it gives kernel panic in cppi_completion
routine.

Can somebody help me in this regards? 

Following is the dump for kernel panic;

Log 1: Kernel panic from SCSI layer

Unable to handle kernel NULL pointer dereference at virtual address 00000008
pgd = c0004000
[00000008] *pgd=00000000
Internal error: Oops: 17 [#1] PREEMPT
Modules linked in: dm365mmap irqk edmak cmemk drv csl power_management
libertas_sdio libertas
CPU: 0    Tainted: G        W   (2.6.32-rc2-davinci1 #63)
PC is at cppi_completion+0xe4/0x304
LR is at cppi_completion+0x90/0x304
pc : [<c026d75c>]    lr : [<c026d708>]    psr: 80000093
sp : c2791df8  ip : c2791df8  fp : c2791e54
r10: c207e400  r9 : 00000000  r8 : c207e478
r7 : c207e454  r6 : 00000000  r5 : c20518d0  r4 : 0000000d
r3 : 00000000  r2 : 0000001f  r1 : c051d990  r0 : 00000005
Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0005317f  Table: 82b90000  DAC: 00000017
Process scsi_eh_0 (pid: 991, stack limit = 0xc2790270)
Stack: (0xc2791df8 to 0xc2792000)
1de0:                                                       c2eb4cc0
c2573200 
1e00: c2eb4cc0 c20519d8 00000001 0000000d c20518d0 fec64400 c207e400
fec64140 
1e20: fffffffc 00000002 c026d54c 0000000d c20518d0 00000002 fec64000
a0000013 
1e40: c2790000 c2791f88 c2791e94 c2791e58 c0268eec c026d688 c2791e84
c2791e68 
1e60: c003c4e4 c00399f8 c2051800 c205e280 0000000c 00000001 00000000
00000000 
1e80: c2790000 c2791f88 c2791ebc c2791e98 c006e2f0 c0268e64 c0039a84
c2790000 
1ea0: c04ccb9c 0000000c c205e280 c05096cc c2791ee4 c2791ec0 c00708c8
c006e2b4 
1ec0: c2791ee4 0000000c 00000000 c2760a3c 00000002 00000001 c2791efc
c2791ee8 
1ee0: c002c070 c00707b0 ffffffff fec48000 c2791f64 c2791f00 c002ca6c
c002c010 
1f00: ffffff8d 00000024 60000093 60000013 c20a26e0 c2760800 c2760a3c
c2790000 
1f20: 00000001 c2791f90 c2791f88 c2791f64 c2791ec0 c2791f48 c01bc1e4
c025dce4 
1f40: 60000013 ffffffff c2791f6c c20a26e0 c2760800 c2791f84 c2791f74
c2791f68 
1f60: c02126c0 c025dc28 c2791fc4 c2791f78 c02141ac c02126a4 c2791fc4
c2791f88 
1f80: c03a02a4 c0039dc4 c2791f88 c2791f88 c20a26ec c20a26ec c2791fc4
c2791fcc 
1fa0: c2029d88 c2760800 c0214068 00000000 00000000 00000000 c2791ff4
c2791fc8 
1fc0: c00573ec c0214078 00000000 00000000 c2791fd0 c2791fd0 00000000
00000000 
1fe0: 00000000 00000000 00000000 c2791ff8 c00442f0 c0057378 e46fffd5
00000000 
Backtrace: 
[<c026d678>] (cppi_completion+0x0/0x304) from [<c0268eec>]
(davinci_interrupt+0x98/0x2c0)
[<c0268e54>] (davinci_interrupt+0x0/0x2c0) from [<c006e2f0>]
(handle_IRQ_event+0x4c/0x118)
[<c006e2a4>] (handle_IRQ_event+0x0/0x118) from [<c00708c8>]
(handle_edge_irq+0x128/0x1b8)
 r8:c05096cc r7:c205e280 r6:0000000c r5:c04ccb9c r4:c2790000
[<c00707a0>] (handle_edge_irq+0x0/0x1b8) from [<c002c070>]
(asm_do_IRQ+0x70/0x8c)
 r8:00000001 r7:00000002 r6:c2760a3c r5:00000000 r4:0000000c
[<c002c000>] (asm_do_IRQ+0x0/0x8c) from [<c002ca6c>] (__irq_svc+0x4c/0x90)
Exception stack(0xc2791f00 to 0xc2791f48)
1f00: ffffff8d 00000024 60000093 60000013 c20a26e0 c2760800 c2760a3c
c2790000 
1f20: 00000001 c2791f90 c2791f88 c2791f64 c2791ec0 c2791f48 c01bc1e4
c025dce4 
1f40: 60000013 ffffffff

 r5:fec48000 r4:ffffffff
[<c025dc18>] (command_abort+0x0/0x104) from [<c02126c0>]
(__scsi_try_to_abort_cmd+0x2c/0x34)
 r6:c2791f84 r5:c2760800 r4:c20a26e0
[<c0212694>] (__scsi_try_to_abort_cmd+0x0/0x34) from [<c02141ac>]
(scsi_error_handler+0x144/0x388)
[<c0214068>] (scsi_error_handler+0x0/0x388) from [<c00573ec>]
(kthread+0x84/0x8c)
[<c0057368>] (kthread+0x0/0x8c) from [<c00442f0>] (do_exit+0x0/0x654)
 r7:00000000 r6:00000000 r5:00000000 r4:00000000
Code: e88d5000 e58d4008 e58d500c ebf7525f (e1d630b8) 
Kernel panic - not syncing: Fatal exception in interrupt
Backtrace: 
[<c00306d0>] (dump_backtrace+0x0/0x110) from [<c0030814>]
(dump_stack+0x18/0x1c)
 r6:c2791db0 r5:c2790000 r4:c04f5690
[<c00307fc>] (dump_stack+0x0/0x1c) from [<c0041230>] (panic+0x54/0x124)
[<c00411dc>] (panic+0x0/0x124) from [<c0030988>] (die+0x150/0x17c)
 r3:00010000 r2:c2790000 r1:c04f5690 r0:c0441814
[<c0030838>] (die+0x0/0x17c) from [<c0032648>] (__do_kernel_fault+0x6c/0x7c)
[<c00325dc>] (__do_kernel_fault+0x0/0x7c) from [<c0032824>]
(do_page_fault+0x1cc/0x1e4)
 r7:00000000 r6:00000008 r5:c2026d80 r4:ffffffff
[<c0032658>] (do_page_fault+0x0/0x1e4) from [<c002c27c>]
(do_DataAbort+0x40/0xa4)
[<c002c23c>] (do_DataAbort+0x0/0xa4) from [<c002ca0c>]
(__dabt_svc+0x4c/0x60)
Exception stack(0xc2791db0 to 0xc2791df8)
1da0:                                     00000005 c051d990 0000001f
00000000 
1dc0: 0000000d c20518d0 00000000 c207e454 c207e478 00000000 c207e400
c2791e54 
1de0: c2791df8 c2791df8 c026d708 c026d75c 80000093 ffffffff

 r8:c207e478 r7:c207e454 r6:00000000 r5:c2791de4 r4:ffffffff
[<c026d678>] (cppi_completion+0x0/0x304) from [<c0268eec>]
(davinci_interrupt+0x98/0x2c0)
[<c0268e54>] (davinci_interrupt+0x0/0x2c0) from [<c006e2f0>]
(handle_IRQ_event+0x4c/0x118)
[<c006e2a4>] (handle_IRQ_event+0x0/0x118) from [<c00708c8>]
(handle_edge_irq+0x128/0x1b8)
 r8:c05096cc r7:c205e280 r6:0000000c r5:c04ccb9c r4:c2790000
[<c00707a0>] (handle_edge_irq+0x0/0x1b8) from [<c002c070>]
(asm_do_IRQ+0x70/0x8c)
 r8:00000001 r7:00000002 r6:c2760a3c r5:00000000 r4:0000000c
[<c002c000>] (asm_do_IRQ+0x0/0x8c) from [<c002ca6c>] (__irq_svc+0x4c/0x90)
Exception stack(0xc2791f00 to 0xc2791f48)
1f00: ffffff8d 00000024 60000093 60000013 c20a26e0 c2760800 c2760a3c
c2790000 
1f20: 00000001 c2791f90 c2791f88 c2791f64 c2791ec0 c2791f48 c01bc1e4
c025dce4 
1f40: 60000013 ffffffff

 r5:fec48000 r4:ffffffff
[<c025dc18>] (command_abort+0x0/0x104) from [<c02126c0>]
(__scsi_try_to_abort_cmd+0x2c/0x34)
 r6:c2791f84 r5:c2760800 r4:c20a26e0
[<c0212694>] (__scsi_try_to_abort_cmd+0x0/0x34) from [<c02141ac>]
(scsi_error_handler+0x144/0x388)
[<c0214068>] (scsi_error_handler+0x0/0x388) from [<c00573ec>]
(kthread+0x84/0x8c)
[<c0057368>] (kthread+0x0/0x8c) from [<c00442f0>] (do_exit+0x0/0x654)
 r7:00000000 r6:00000000 r5:00000000 r4:00000000



Log 2: Kernel panic from usb-serial (USB modem)

Unable to handle kernel NULL pointer dereference at virtual address 00000008
pgd = c3854000
[00000008] *pgd=81fbd031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT
Modules linked in: dm365mmap irqk edmak cmemk drv csl power_management
libertas_sdio libertas
CPU: 0    Not tainted  (2.6.32-rc2-davinci1 #90)
PC is at cppi_completion+0xcc/0x2ec
LR is at cppi_completion+0x78/0x2ec
pc : [<c0272de0>]    lr : [<c0272d8c>]    psr: 80000093
sp : c0775c58  ip : c0775c58  fp : c0775cb4
r10: c2076400  r9 : 00000000  r8 : c2076478
r7 : c2076454  r6 : 00000000  r5 : c20558d0  r4 : 00000001
r3 : 00000000  r2 : 00000e08  r1 : c0549640  r0 : 00000005
Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 0005317f  Table: 83854000  DAC: 00000015
Process avl_qt (pid: 2532, stack limit = 0xc0774270)
Stack: (0xc0775c58 to 0xc0776000)
5c40:                                                       c0775c74
c0775c68 
5c60: c0054414 00000001 00000001 00000001 c20558d0 fec64400 c2076400
fec64140 
5c80: fffffffc 00000002 c0054a40 00000001 c20558d0 00000002 fec64000
60000013 
5ca0: c0774000 00000000 c0775cf4 c0775cb8 c026e4cc c0272d24 c0253f94
c01c24b0 
5cc0: c0775ce4 c0775cd0 c0252268 c2075c40 0000000c 00000001 00000000
00000000 
5ce0: c0774000 00000000 c0775d1c c0775cf8 c006f434 c026e464 c0775d34
c0774000 
5d00: c04f6b98 0000000c c2075c40 c05353b0 c0775d44 c0775d20 c0071a0c
c006f3f8 
5d20: c0775d44 0000000c 00000000 c2e03500 00000002 00000001 c0775d5c
c0775d48 
5d40: c002d070 c00718f4 ffffffff fec48000 c0775dec c0775d60 c002da6c
c002d010 
5d60: 00000000 000000c0 c04ee3f8 c06b9380 c2055800 c06b9000 c2e03500
ffffff98 
5d80: 80000013 00000000 00000000 c0775dec 00000000 c0775da8 c0098ed8
c02719f8 
5da0: 20000013 ffffffff 00000000 00000000 c0774000 00000011 c0775dec
c20558d0 
5dc0: c006f434 c2055800 c2e03500 c2e03500 ffffff98 ffffff98 c0774000
00000008 
5de0: c0775e14 c0775df0 c0252374 c02718a0 c0775e14 a0000013 00000000
c2e03500 
5e00: ffffff98 00000000 c0775e34 c0775e18 c0252d38 c0252280 c2e96540
c2e03500 
5e20: 00000008 c0610800 c0775e44 c0775e38 c0253b10 c0252cc4 c0775e94
c0775e48 
5e40: c0268bd4 c0253ae0 c0775e84 c0775e58 c2e96588 c2e96580 00000008
c0610800 
5e60: c2e96540 c2b32d60 c03bf480 c2c56400 c320c800 00000008 c0610800
c0774000 
5e80: c2e03d80 c320cbc8 c0775ebc c0775e98 c0264c68 c0268b20 c0058a04
c003af04 
5ea0: c2ebfa80 c320c800 c0610800 00000008 c0775f0c c0775ec0 c01e2ff8
c0264be0 
5ec0: c2e03d80 c0610800 c0775f0c 00000000 c2ebfa80 c003e184 c320c910
c320c910 
5ee0: c320cbb0 00000008 00000008 c320c800 c0774000 000815c0 c2e03d80
00000008 
5f00: c0775f54 c0775f10 c01e0260 c01e2d50 c01e61ec c01e2d40 c2d5c440
00000000 
5f20: 4b4b9dc1 3b39906d c009e3f0 c2e03d80 000815c0 c0775f78 00000004
c002dfe4 
5f40: c0774000 00000000 c0775f74 c0775f58 c009d93c c01e00e4 c00602e8
00000000 
5f60: 00000000 c2e03d80 c0775fa4 c0775f78 c009de20 c009d898 00000000
00000000 
5f80: 4b4b9dc2 00000001 425008d0 00000015 00061eb8 40ce1550 00000000
c0775fa8 
5fa0: c002de60 c009ddec 00000015 00061eb8 00000015 000815c0 00000008
34393000 
5fc0: 00000015 00061eb8 40ce1550 00000004 003d0f00 beef6b74 00000000
beef6b74 
5fe0: 00000000 41bdedc8 40ce94dc 40ce9bc4 80000010 00000015 00000000
00000000 
Backtrace: 
[<c0272d14>] (cppi_completion+0x0/0x2ec) from [<c026e4cc>]
(davinci_interrupt+0x78/0x29c)
[<c026e454>] (davinci_interrupt+0x0/0x29c) from [<c006f434>]
(handle_IRQ_event+0x4c/0x118)
[<c006f3e8>] (handle_IRQ_event+0x0/0x118) from [<c0071a0c>]
(handle_edge_irq+0x128/0x1b8)
r8:c05353b0 r7:c2075c40 r6:0000000c r5:c04f6b98 r4:c0774000
[<c00718e4>] (handle_edge_irq+0x0/0x1b8) from [<c002d070>]
(asm_do_IRQ+0x70/0x8c)
r8:00000001 r7:00000002 r6:c2e03500 r5:00000000 r4:0000000c
[<c002d000>] (asm_do_IRQ+0x0/0x8c) from [<c002da6c>] (__irq_svc+0x4c/0x90)
Exception stack(0xc0775d60 to 0xc0775da8)
5d60: 00000000 000000c0 c04ee3f8 c06b9380 c2055800 c06b9000 c2e03500
ffffff98 
5d80: 80000013 00000000 00000000 c0775dec 00000000 c0775da8 c0098ed8
c02719f8 
5da0: 20000013 ffffffff

r5:fec48000 r4:ffffffff
[<c0271890>] (musb_urb_dequeue+0x0/0x1b4) from [<c0252374>]
(unlink1+0x104/0x110)
[<c0252270>] (unlink1+0x0/0x110) from [<c0252d38>]
(usb_hcd_unlink_urb+0x84/0xa0)
r8:00000000 r7:ffffff98 r6:c2e03500 r5:00000000 r4:a0000013
[<c0252cb4>] (usb_hcd_unlink_urb+0x0/0xa0) from [<c0253b10>]
(usb_unlink_urb+0x40/0x44)
r7:c0610800 r6:00000008 r5:c2e03500 r4:c2e96540
[<c0253ad0>] (usb_unlink_urb+0x0/0x44) from [<c0268bd4>]
(option_write+0xc4/0x2bc)
[<c0268b10>] (option_write+0x0/0x2bc) from [<c0264c68>]
(serial_write+0x98/0xb0)
[<c0264bd0>] (serial_write+0x0/0xb0) from [<c01e2ff8>]
(n_tty_write+0x2b8/0x3a4)
r7:00000008 r6:c0610800 r5:c320c800 r4:c2ebfa80
[<c01e2d40>] (n_tty_write+0x0/0x3a4) from [<c01e0260>]
(tty_write+0x18c/0x234)
[<c01e00d4>] (tty_write+0x0/0x234) from [<c009d93c>] (vfs_write+0xb4/0xdc)
[<c009d888>] (vfs_write+0x0/0xdc) from [<c009de20>] (sys_write+0x44/0x70)
r6:c2e03d80 r5:00000000 r4:00000000
[<c009dddc>] (sys_write+0x0/0x70) from [<c002de60>]
(ret_fast_syscall+0x0/0x28)
r6:40ce1550 r5:00061eb8 r4:00000015
Code: e88d5000 e58d4008 e58d500c ebf7410e (e1d630b8) 
INTERFACE [ppp0]Kernel panic - not syncing: Fatal exception in interrupt

GSM : CMD [+CBacktrace: SQ]
GSM : GSM 
CMD[AT+CSQ
[<c00316d0>] 
             (dump_backtrace+0x0/0x110) from [<c0031814>]
(dump_stack+0x18/0x1c)
r6:c0775c10 r5:c0774000 r4:c0521370
[<c00317fc>] (dump_stack+0x0/0x1c) from [<c0042370>] (panic+0x54/0x124)
[<c004231c>] (panic+0x0/0x124) from [<c0031988>] (die+0x150/0x17c)
r3:00010000 r2:c0774000 r1:c0521370 r0:c0463704
[<c0031838>] (die+0x0/0x17c) from [<c0033648>] (__do_kernel_fault+0x6c/0x7c)
[<c00335dc>] (__do_kernel_fault+0x0/0x7c) from [<c0033824>]
(do_page_fault+0x1cc/0x1e4)
r7:c002b600 r6:00000008 r5:c2ebfa80 r4:ffffffff
[<c0033658>] (do_page_fault+0x0/0x1e4) from [<c002d27c>]
(do_DataAbort+0x40/0xa4)
[<c002d23c>] (do_DataAbort+0x0/0xa4) from [<c002da0c>]
(__dabt_svc+0x4c/0x60)
Exception stack(0xc0775c10 to 0xc0775c58)
5c00:                                     00000005 c0549640 00000e08
00000000 
5c20: 00000001 c20558d0 00000000 c2076454 c2076478 00000000 c2076400
c0775cb4 
5c40: c0775c58 c0775c58 c0272d8c c0272de0 80000093 ffffffff

r8:c2076478 r7:c2076454 r6:00000000 r5:c0775c44 r4:ffffffff
[<c0272d14>] (cppi_completion+0x0/0x2ec) from [<c026e4cc>]
(davinci_interrupt+0x78/0x29c)
[<c026e454>] (davinci_interrupt+0x0/0x29c) from [<c006f434>]
(handle_IRQ_event+0x4c/0x118)
[<c006f3e8>] (handle_IRQ_event+0x0/0x118) from [<c0071a0c>]
(handle_edge_irq+0x128/0x1b8)
r8:c05353b0 r7:c2075c40 r6:0000000c r5:c04f6b98 r4:c0774000
[<c00718e4>] (handle_edge_irq+0x0/0x1b8) from [<c002d070>]
(asm_do_IRQ+0x70/0x8c)
r8:00000001 r7:00000002 r6:c2e03500 r5:00000000 r4:0000000c
[<c002d000>] (asm_do_IRQ+0x0/0x8c) from [<c002da6c>] (__irq_svc+0x4c/0x90)
Exception stack(0xc0775d60 to 0xc0775da8)
5d60: 00000000 000000c0 c04ee3f8 c06b9380 c2055800 c06b9000 c2e03500
ffffff98 
5d80: 80000013 00000000 00000000 c0775dec 00000000 c0775da8 c0098ed8
c02719f8 
5da0: 20000013 ffffffff

r5:fec48000 r4:ffffffff
[<c0271890>] (musb_urb_dequeue+0x0/0x1b4) from [<c0252374>]
(unlink1+0x104/0x110)
[<c0252270>] (unlink1+0x0/0x110) from [<c0252d38>]
(usb_hcd_unlink_urb+0x84/0xa0)
r8:00000000 r7:ffffff98 r6:c2e03500 r5:00000000 r4:a0000013
[<c0252cb4>] (usb_hcd_unlink_urb+0x0/0xa0) from [<c0253b10>]
(usb_unlink_urb+0x40/0x44)
r7:c0610800 r6:00000008 r5:c2e03500 r4:c2e96540
[<c0253ad0>] (usb_unlink_urb+0x0/0x44) from [<c0268bd4>]
(option_write+0xc4/0x2bc)
[<c0268b10>] (option_write+0x0/0x2bc) from [<c0264c68>]
(serial_write+0x98/0xb0)
[<c0264bd0>] (serial_write+0x0/0xb0) from [<c01e2ff8>]
(n_tty_write+0x2b8/0x3a4)
r7:00000008 r6:c0610800 r5:c320c800 r4:c2ebfa80
[<c01e2d40>] (n_tty_write+0x0/0x3a4) from [<c01e0260>]
(tty_write+0x18c/0x234)
[<c01e00d4>] (tty_write+0x0/0x234) from [<c009d93c>] (vfs_write+0xb4/0xdc)
[<c009d888>] (vfs_write+0x0/0xdc) from [<c009de20>] (sys_write+0x44/0x70)
r6:c2e03d80 r5:00000000 r4:00000000
[<c009dddc>] (sys_write+0x0/0x70) from [<c002de60>]
(ret_fast_syscall+0x0/0x28)
r6:40ce1550 r5:00061eb8 r4:00000015

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to