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.

Kernel Panic Error after enabling DSP link

Other Parts Discussed in Thread: OMAP3530

Hi ,

I am working on  OMAP 3530 Processor (ARM Cortex-A8 processor+C64x DSP) based our own development kit. I am trying to enable dsplink in-order to make DSP to work.

I have followed the steps given in the http://ossie.wireless.vt.edu/trac/wiki/BeagleBoard_DSPLink web link. I could able to build and insert dsplinkk.ko file successfully. But while running the sample application i am getting below kernel panic errors.

root@ULK:~#
root@ULK:~#
root@ULK:~# insmod dsplinkk.ko
[ 62.337951] DSPLINK Module (1.61.03) created on Date: Dec 5 2012 Time: 15:53:18
root@ULK:~# insmod lpm_omap3530.ko
root@ULK:~# ./lpmON.x470uC
==== LPM ON Test ====
app: LPM_open
app: LPM_set(LPM_CTRL_REFCOUNTOVR)
app: LPM_on
app: LPM_close
==== All Done ====

root@ULK:~# ./lpmOFF.x470uC
==== LPM OFF Test ====
app: LPM_open
app: LPM_set(LPM_CTRL_REFCOUNTOVR)
app: LPM_off
app: LPM_close
==== All Done ====

root@ULK:~# ./messagegpp message.out 1000
========== Sample Application : MESSAGE ==========
Entered MESSAGE_Create ()
[ 131.886535] Unable to handle kernel paging request at virtual address 31362e51
[ 131.894226] pgd = c7de4000
[ 131.896972] [31362e51] *pgd=00000000
[ 131.900634] Internal error: Oops: 5 [#1] PREEMPT
[ 131.905273] Modules linked in: lpm_omap3530 dsplinkk nls_iso8859_1 ircomm_tty ircomm irda
[ 131.913574] CPU: 0 Not tainted (2.6.29-omap1 #18)
[ 131.918823] PC is at PMGR_PROC_load+0x140/0x244 [dsplinkk]
[ 131.924438] LR is at PMGR_PROC_load+0xec/0x244 [dsplinkk]
[ 131.929870] pc : [<bf0aa0c8>] lr : [<bf0aa074>] psr: 80000013
[ 131.929901] sp : c7fb5e28 ip : bf0b49f0 fp : c7fb5e8c
[ 131.941436] r10: bf0b6004 r9 : befdcf07 r8 : bf0b5ff8
[ 131.946685] r7 : 00000000 r6 : 31362e31 r5 : 00008000 r4 : bf0b4800
[ 131.953247] r3 : bf0b482c r2 : bf0b5ff8 r1 : befdcf07 r0 : 00000000
[ 131.959808] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 131.967010] Control: 10c5387d Table: 87de4019 DAC: 00000015
[ 131.972778] Process messagegpp (pid: 1938, stack limit = 0xc7fb42e8)
[ 131.979156] Stack: (0xc7fb5e28 to 0xc7fb6000)
[ 131.983551] 5e20: 00000000 c7fb24c0 befdcc68 00000001 c04f9184 c04f904c
[ 131.991943] 5e40: c7fb5e5c c7fb5e50 bf0a7aa0 c04f9180 c7fb5e7c c7fb5e60 bf0b482c bf0b4800
[ 132.000335] 5e60: 00006f0c 00006c05 00008000 befdcc24 c7fb24c0 c003d004 c7fb4000 40024000
[ 132.008728] 5e80: c7fb5ef4 c7fb5e90 bf0ab46c bf0a9f94 c00b49fc c0057c54 c7e54c40 c7c42980
[ 132.017120] 5ea0: c7fb5ec4 00000000 c7d06a18 000844fb 40968000 c7fb24c0 c7fb5f34 00008000
[ 132.025512] 5ec0: 00000000 befdcf07 00000001 befdcc68 00010000 c7fb5ee0 c04facb4 c7fb24c0
[ 132.033874] 5ee0: 00006c05 befdcc24 c7fb5f14 c7fb5ef8 c00d0c50 bf0aaffc c7fb24c0 c7ced950
[ 132.042266] 5f00: befdcc24 c7fb24c0 c7fb5f7c c7fb5f18 c00d1294 c00d0be4 00000003 c7c42980
[ 132.050659] 5f20: 00087f30 00070000 c7fb5f74 c7fb5f38 c7fb5f64 c7fb5f40 c01e7c24 c0057c54
[ 132.059051] 5f40: c7fb4000 40968000 c7fb24c0 00000000 c7fb5f7c c7fb5f60 00000003 befdcc24
[ 132.067443] 5f60: 00006c05 c7fb24c0 c003d004 c7fb4000 c7fb5fa4 c7fb5f80 c00d1318 c00d0d74
[ 132.075836] 5f80: c7fb4000 00000001 00000792 00000000 00008bb4 00000036 00000000 c7fb5fa8
[ 132.084228] 5fa0: c003ce80 c00d12e4 00000792 00000000 00000003 00006c05 befdcc24 00000003
[ 132.092620] 5fc0: 00000792 00000000 00008bb4 00000036 00000000 00000000 40024000 befdcc0c
[ 132.101013] 5fe0: 00000000 befdcb40 0000b5e8 400f599c 20000010 00000003 00000000 00000000
[ 132.109405] Backtrace:
[ 132.111846] [<bf0a9f88>] (PMGR_PROC_load+0x0/0x244 [dsplinkk]) from [<bf0ab46c>] (DRV_Ioctl+0x47c/0x7d8 [dsplinkk])
[ 132.122589] [<bf0aaff0>] (DRV_Ioctl+0x0/0x7d8 [dsplinkk]) from [<c00d0c50>] (vfs_ioctl+0x78/0x94)
[ 132.131683] r6:befdcc24 r5:00006c05 r4:c7fb24c0
[ 132.136352] [<c00d0bd8>] (vfs_ioctl+0x0/0x94) from [<c00d1294>] (do_vfs_ioctl+0x52c/0x570)
[ 132.144714] r7:c7fb24c0 r6:befdcc24 r5:c7ced950 r4:c7fb24c0
[ 132.150421] [<c00d0d68>] (do_vfs_ioctl+0x0/0x570) from [<c00d1318>] (sys_ioctl+0x40/0x64)
[ 132.158691] r9:c7fb4000 r8:c003d004 r7:c7fb24c0 r6:00006c05 r5:befdcc24
[ 132.165283] r4:00000003
[ 132.167938] [<c00d12d8>] (sys_ioctl+0x0/0x64) from [<c003ce80>] (ret_fast_syscall+0x0/0x2c)
[ 132.176361] r7:00000036 r6:00008bb4 r5:00000000 r4:00000792
[ 132.182098] Code: e1a01009 e5936000 e51b3034 e1a00007 (e596c020)
[ 132.188385] ---[ end trace 3fad10b642e95a22 ]---
[ 133.147674] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 133.156524] pgd = c0004000
[ 133.159271] [00000000] *pgd=00000000
[ 133.163391] Internal error: Oops: 817 [#2] PREEMPT
[ 133.168212] Modules linked in: lpm_omap3530 dsplinkk nls_iso8859_1 ircomm_tty ircomm irda
[ 133.176513] CPU: 0 Tainted: G D (2.6.29-omap1 #18)
[ 133.182403] PC is at exit_mmap+0x170/0x188
[ 133.186523] LR is at kmem_cache_free+0x20/0x68
[ 133.191009] pc : [<c00b3bcc>] lr : [<c00bf610>] psr: 20000113
[ 133.191009] sp : c7fd5de0 ip : c7fd5da8 fp : c7fd5e14
[ 133.202545] r10: 00000001 r9 : c7e404c0 r8 : 00000000
[ 133.207824] r7 : c7d969c0 r6 : 00000000 r5 : 00000061 r4 : c7d96b00
[ 133.214385] r3 : 00000000 r2 : 0000003f r1 : c7f80650 r0 : 00000000
[ 133.220947] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 133.228118] Control: 10c5387d Table: 87da8019 DAC: 00000015
[ 133.233886] Process ipaq-sleep (pid: 1907, stack limit = 0xc7fd42e8)
[ 133.240295] Stack: (0xc7fd5de0 to 0xc7fd6000)
[ 133.244659] 5de0: c7fd5de8 00000000 0000004d c06a9c48 c7d969c0 00000000 c7d969c0 c7d969f4
[ 133.253051] 5e00: c7fd5ee0 c7fd5f60 c7fd5e2c c7fd5e18 c005dce4 c00b3a68 00000000 c7b4e9c0
[ 133.261444] 5e20: c7fd5e54 c7fd5e30 c0061cfc c005dcb4 c008bc00 c7fd4000 c7fd4000 c7b4e9c0
[ 133.269836] 5e40: 0000000b c7fd4000 c7fd5e74 c7fd5e58 c0063730 c0061bc4 0000000b 00000001
[ 133.278228] 5e60: 00000000 00000000 c7fd5e94 c7fd5e78 c0063e28 c00635d4 0000000b c7dc5030
[ 133.286621] 5e80: 000000dc c7fd4000 c7fd5ecc c7fd5e98 c006e164 c0063d84 c7fd5fb0 c7dc5040
[ 133.294982] 5ea0: c7fd5f3c 00000000 00000001 c7fd5fb0 beb98b4c 00000000 c7fd4000 000121cf
[ 133.303375] 5ec0: c7fd5fac c7fd5ed0 c003f17c c006dde0 c7fd5f3c 00000017 c00af8c4 c06681dc
[ 133.311767] 5ee0: 0000000b 00000000 00030001 00000000 c00423f0 c007a144 c7fd4000 00008000
[ 133.320159] 5f00: c003c220 c0042278 c7fd5f2c c7fd5f18 c01e7ab4 c0057c54 00010000 c7b4e9c0
[ 133.328552] 5f20: c7fd5f3c c7fd5f30 c007a148 c01e7a10 c7fd5f7c c7fd5f40 c0042470 c00421a4
[ 133.336944] 5f40: 00030001 c7fd5fb0 00000000 00000000 c7fd5f7c ffffffff 00000001 00000000
[ 133.345336] 5f60: beb98b4c 0000176b 00000001 000121cf c7fd5f9c c7fd5f80 c0042544 c0042278
[ 133.353698] 5f80: ffffffff ffffffff 00000001 00000000 beb98b4c 00000000 c7fd4000 000121cf
[ 133.362091] 5fa0: 00000000 c7fd5fb0 c003cecc c003f11c 00000000 00000000 00000000 00000010
[ 133.370483] 5fc0: 00018a50 00000001 00000000 beb98b4c 0000176b 00000001 000121cf 00000000
[ 133.378875] 5fe0: 00013180 beb98b34 0001311c 00000000 60000010 ffffffff 00000000 00000000
[ 133.387268] Backtrace:
[ 133.389709] [<c00b3a5c>] (exit_mmap+0x0/0x188) from [<c005dce4>] (mmput+0x3c/0xf4)
[ 133.397369] [<c005dca8>] (mmput+0x0/0xf4) from [<c0061cfc>] (exit_mm+0x144/0x14c)
[ 133.404937] r5:c7b4e9c0 r4:00000000
[ 133.408569] [<c0061bb8>] (exit_mm+0x0/0x14c) from [<c0063730>] (do_exit+0x168/0x7b0)
[ 133.416381] r7:c7fd4000 r6:0000000b r5:c7b4e9c0 r4:c7fd4000
[ 133.422119] [<c00635c8>] (do_exit+0x0/0x7b0) from [<c0063e28>] (do_group_exit+0xb0/0xdc)
[ 133.430267] [<c0063d78>] (do_group_exit+0x0/0xdc) from [<c006e164>] (get_signal_to_deliver+0x390/0x3e4)
[ 133.439758] r7:c7fd4000 r6:000000dc r5:c7dc5030 r4:0000000b
[ 133.445495] [<c006ddd4>] (get_signal_to_deliver+0x0/0x3e4) from [<c003f17c>] (do_notify_resume+0x6c/0x588)
[ 133.455230] [<c003f110>] (do_notify_resume+0x0/0x588) from [<c003cecc>] (work_pending+0x1c/0x20)
[ 133.464111] Code: e5973074 e3530001 9a000002 e3a03000 (e5833000)
[ 133.494750] ---[ end trace 3fad10b642e95a23 ]---
[ 133.500152] Fixing recursive fault but reboot is needed!

Could anyone please suggest me to proceed further........

Thanks and regards,

Sujay