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.

ProcMgr_attach failed [0x86a85003] omap3530 beagleboard

Hi ,
  i'm getting error message when i try to run the DSP sample applications on Beagle board.  ProcMgr_attach failed [0x86a85003]

i'm using AM35x-OMAP35x-LINUX-PSP-04.02.00.07 with Beagle board REVC5. i used kernel from the PSP. then i built syslink with the following tools.

bios_6_33_00_19

ipc_1_23_05_40

codec_engine_3_21_02_25

TI_CGT_C6000_7.3.1

xdctools_3_23_00_32

syslink_2_10_01_15

after built i'm running with the following bootargs

console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootfstype=ext2 rw rootwait mem=250M

after booting into file system when i'm trying to load syslink.ko i'm getting following messages.

/]#insmod /lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko TRACE=1 TRACEFAILURE=1
[   38.611999] SysLink version : 2.10.01.15
[   38.611999] SysLink module created on Date:Jan  6 2012 Time:14:13:04
[   38.622894] Trace enabled
[   38.625701] Trace SetFailureReason enabled
[   38.907684] ------------[ cut here ]------------
[   38.912567] WARNING: at /home/eswar/vtobbc/script-build/kernel/kernel/lockdep.c:2481 lockdep_trace_alloc+0xac/0xec()
[   38.923583] Modules linked in: syslink(+)
[   38.927825] [<c004a348>] (unwind_backtrace+0x0/0xec) from [<c00721d0>] (warn_slowpath_common+0x4c/0x64)
[   38.937683] [<c00721d0>] (warn_slowpath_common+0x4c/0x64) from [<c0072200>] (warn_slowpath_null+0x18/0x1c)
[   38.947784] [<c0072200>] (warn_slowpath_null+0x18/0x1c) from [<c009e870>] (lockdep_trace_alloc+0xac/0xec)
[   38.957824] [<c009e870>] (lockdep_trace_alloc+0xac/0xec) from [<c00fa000>] (kmem_cache_alloc_notrace+0x1c/0xd0)
[   38.968383] [<c00fa000>] (kmem_cache_alloc_notrace+0x1c/0xd0) from [<c00f1d5c>] (__get_vm_area_node+0xac/0x1f8)
[   38.978942] [<c00f1d5c>] (__get_vm_area_node+0xac/0x1f8) from [<c00f276c>] (__vmalloc_node+0x70/0xa8)
[   38.988586] [<c00f276c>] (__vmalloc_node+0x70/0xa8) from [<c00f28c0>] (vmalloc+0x24/0x2c)
[   38.997802] [<c00f28c0>] (vmalloc+0x24/0x2c) from [<bf02aa8c>] (MemoryOS_alloc+0xc0/0x1a4 [syslink])
[   39.008117] [<bf02aa8c>] (MemoryOS_alloc+0xc0/0x1a4 [syslink]) from [<bf01f970>] (Memory_alloc+0x68/0x154 [syslink])
[   39.019805] [<bf01f970>] (Memory_alloc+0x68/0x154 [syslink]) from [<bf020408>] (GateMutex_create+0x1c/0x90 [syslink])
[   39.031616] [<bf020408>] (GateMutex_create+0x1c/0x90 [syslink]) from [<bf043268>] (GateMP_setup+0xd8/0x3b4 [syslink])
[   39.043457] [<bf043268>] (GateMP_setup+0xd8/0x3b4 [syslink]) from [<bf018118>] (Platform_setup+0x188/0x5b8 [syslink])
[   39.055267] [<bf018118>] (Platform_setup+0x188/0x5b8 [syslink]) from [<bf043898>] (Ipc_setup+0xa0/0x158 [syslink])
[   39.066772] [<bf043898>] (Ipc_setup+0xa0/0x158 [syslink]) from [<bf1134d8>] (KnlUtilsDrv_initializeModule+0x4d8/0x568 [syslink])
[   39.079193] [<bf1134d8>] (KnlUtilsDrv_initializeModule+0x4d8/0x568 [syslink]) from [<c003a3b8>] (do_one_initcall+0xc8/0x1a0)
[   39.090942] [<c003a3b8>] (do_one_initcall+0xc8/0x1a0) from [<c00ab434>] (sys_init_module+0x90/0x1b0)
[   39.100494] [<c00ab434>] (sys_init_module+0x90/0x1b0) from [<c0044540>] (ret_fast_syscall+0x0/0x3c)
[   39.109954] ---[ end trace eda13c4b30a0aa20 ]---
[   39.114776] BUG: sleeping function called from invalid context at /home/eswar/vtobbc/script-build/kernel/mm/slab.c:3101
[   39.126068] in_atomic(): 0, irqs_disabled(): 128, pid: 635, name: insmod
[   39.133056] INFO: lockdep is turned off.
[   39.137176] irq event stamp: 30895
[   39.140716] hardirqs last  enabled at (30894): [<c00d53d8>] get_page_from_freelist+0x304/0x490
[   39.149749] hardirqs last disabled at (30895): [<bf02633c>] Gate_enterSystem+0x10/0x18 [syslink]
[   39.159271] softirqs last  enabled at (29553): [<c007837c>] irq_exit+0x50/0x9c
[   39.166839] softirqs last disabled at (29546): [<c007837c>] irq_exit+0x50/0x9c
[   39.174438] [<c004a348>] (unwind_backtrace+0x0/0xec) from [<c00fa018>] (kmem_cache_alloc_notrace+0x34/0xd0)
[   39.184631] [<c00fa018>] (kmem_cache_alloc_notrace+0x34/0xd0) from [<c00f1d5c>] (__get_vm_area_node+0xac/0x1f8)
[   39.195220] [<c00f1d5c>] (__get_vm_area_node+0xac/0x1f8) from [<c00f276c>] (__vmalloc_node+0x70/0xa8)
[   39.204864] [<c00f276c>] (__vmalloc_node+0x70/0xa8) from [<c00f28c0>] (vmalloc+0x24/0x2c)
[   39.213775] [<c00f28c0>] (vmalloc+0x24/0x2c) from [<bf02aa8c>] (MemoryOS_alloc+0xc0/0x1a4 [syslink])
[   39.224060] [<bf02aa8c>] (MemoryOS_alloc+0xc0/0x1a4 [syslink]) from [<bf01f970>] (Memory_alloc+0x68/0x154 [syslink])
[   39.235717] [<bf01f970>] (Memory_alloc+0x68/0x154 [syslink]) from [<bf020408>] (GateMutex_create+0x1c/0x90 [syslink])
[   39.247528] [<bf020408>] (GateMutex_create+0x1c/0x90 [syslink]) from [<bf043268>] (GateMP_setup+0xd8/0x3b4 [syslink])
[   39.259368] [<bf043268>] (GateMP_setup+0xd8/0x3b4 [syslink]) from [<bf018118>] (Platform_setup+0x188/0x5b8 [syslink])
[   39.271179] [<bf018118>] (Platform_setup+0x188/0x5b8 [syslink]) from [<bf043898>] (Ipc_setup+0xa0/0x158 [syslink])
[   39.282684] [<bf043898>] (Ipc_setup+0xa0/0x158 [syslink]) from [<bf1134d8>] (KnlUtilsDrv_initializeModule+0x4d8/0x568 [syslink])
[   39.295074] [<bf1134d8>] (KnlUtilsDrv_initializeModule+0x4d8/0x568 [syslink]) from [<c003a3b8>] (do_one_initcall+0xc8/0x1a0)
[   39.306823] [<c003a3b8>] (do_one_initcall+0xc8/0x1a0) from [<c00ab434>] (sys_init_module+0x90/0x1b0)
[   39.316406] [<c00ab434>] (sys_init_module+0x90/0x1b0) from [<c0044540>] (ret_fast_syscall+0x0/0x3c)

when i tried to run samples i'm getting following message.

[root@VRINDA-OBBC messageq]# ./messageqapp_release 1 DSP ./messageq_omap3530_dsp.x64P

MessageQApp sample application
Entered MessageQApp_startup
Loa[  120.398803] *** _OMAP3530_halMmuEnable: iommu_get failed!
[  120.398803]  Error [0x86a85003] at Line no: 375 in file /home/eswar/vtobbc/syslink/ti/syslink_2_10_01_15/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/family/hlos/knl/omc
ding and startin[  120.426666] *** OMAP3530_halMmuCtrl: Failed to configure DSP MMUat _OMAP3530_halMmuEnable
[  120.426666]  Error [0x86a85003] at Line no: 184 in file /home/eswar/vtobbc/syslink/ti/syslink_2_10_01_15/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/family/hlos/knl/omc
g procId [0] wit[  120.458496] *** OMAP3530PROC_attach: Failed to enable the slave MMU
[  120.458496]  Error [0x86a85003] at Line no: 1091 in file /home/eswar/vtobbc/syslink/ti/syslink_2_10_01_15/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/family/hlos/knl/oc
h [./messageq_om[  120.487518] *** Processor_attach: Failed to attach to the specific Processor!
[  120.487548]  Error [0x86a85003] at Line no: 121 in file /home/eswar/vtobbc/syslink/ti/syslink_2_10_01_15/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/procMgr/common/Proc
ap3530_dsp.x64P][  120.515075] *** ProcMgr_attach: Processor_attach failed!
[  120.515075]  Error [0x86a85003] at Line no: 986 in file /home/eswar/vtobbc/syslink/ti/syslink_2_10_01_15/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/procMgr/common/Proc

[  120.540557] *** ProcMgrDrv_ioctl: Kernel-side ProcMgr_attach failed
[  120.540588]  Error [0x86a85003] at Line no: 925 in file /home/eswar/vtobbc/syslink/ti/syslink_2_10_01_15/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/procMgr/hlos/knl/Lc
ProcMgr_attach failed [0x86a85003]
SlaveLoader_startup status [-2035789821]
Leaving MessageQApp_startup 86a85003

i verified the thread

http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/136557.aspx#502348

but not solved.
i'm using 2.6.37 kernel. so i think iva2 patch is already applied.

can anyone please help.