Kernel crashes while running MCAPI application on Linux ARM ADSP-SC589

Hello,

We have developed MCAPI thread based application on Linux ARM ADSP-SC589. In this application, two threads are created for sending and receiving message from SHARC0 using MCAPI framework respectively. On Sharc0 side, the freeRTOS has been implemented. Two threads are created on SHARC0 to send and receive the message from ARM respectively using MCAPI framework. The threads on ARM and SHARC0 are running parallelly in order to exchange the messages. 

During this execution, we have occasionally witnessed the following kernel crash messages.

CHECK_STATUS---send_wait::MCAPI_SUCCESS
Endpoint:--100 has sent: [hello mcapi core0 0]   ------251971
CHECK_STATUS---send:MCAPI_PENDING
CHECK_STATUS---send_wait::MCAPI_SUCCESS
Endpoint:--100 has sent: [hello mcapi core0 0]   ------251972
CHECK_STATUS---send:MCAPI_PENDING
CHECK_STATUS---send_wait::MCAPI_SUCCESS------------[ cut here ]------------
kernel BUG at ../drivers/staging/icc/core/protocol.c:433!
Internal error: Oops - BUG: 0 [#1] ARM
Modules linked in:
CPU: 0 PID: 586 Comm: multiconsole Not tainted 4.0.0-ADI-1.2.0-svn43 #3
Hardware name: SC58x-EZKIT (Device Tree Support)
task: cc935240 ti: c9a56000 task.ti: c9a56000
PC is at sm_send_message_internal+0x148/0x14c
LR is at 0x2
pc : [<c02d1624>]    lr : [<00000002>]    psr: 60000013
sp : c9a57eb8  ip : 00000002  fp : 00000001
r10: b6dc7e08  r9 : ce8f3000  r8 : 00000000
r7 : c057387c  r6 : c9947590  r5 : c0017db8  r4 : 00000000
r3 : 00000000  r2 : c99475b4  r1 : c99f7280  r0 : cc95c080
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c53c7d  Table: cba9c059  DAC: 00000015
Process multiconsole (pid: 586, stack limit = 0xc9a56210)
Stack: (0xc9a57eb8 to 0xc9a58000)
7ea0:                                                       c9a0e280 c0017db8
7ec0: cc95c080 c057387c 00000000 c02d3350 00000000 c992dc50 c057387c 00000000
7ee0: c99f7280 b6ef12d8 00000800 c992dc50 cba00000 00000027 cc8e5a00 c056473c
7f00: 00000001 c003de80 00000000 00000003 c99ef880 00006d03 b6ef12d8 00000003
7f20: c9a56000 b6ef12d8 c9948d80 c00ac9b8 c054b470 c003586c c995001c cc935240
7f40: cc953280 00000000 00000000 cc935240 c054de10 cc953280 c9a57f8c c039deb0
7f60: cc8e5a00 c0045ed0 c0045dc4 c99ef881 c99ef880 00006d03 b6ef12d8 00000003
7f80: c9a56000 00000000 b65c7d9c c00acc0c b6ef10f4 b65c7e18 00000064 00000036
7fa0: c000e284 c000e100 b6ef10f4 b65c7e18 00000003 00006d03 b6ef12d8 b6ef12d8
7fc0: b6ef10f4 b65c7e18 00000064 00000036 00010006 000117a0 00000000 b65c7d9c
7fe0: b6ef1174 b65c7d74 b6ee6984 b6e0f5c6 00000030 00000003 cfffd821 cfffdc21
[<c02d1624>] (sm_send_message_internal) from [<c02d3350>] (icc_ioctl+0x111c/0x1948)
[<c02d3350>] (icc_ioctl) from [<c00ac9b8>] (do_vfs_ioctl+0x37c/0x59c)
[<c00ac9b8>] (do_vfs_ioctl) from [<c00acc0c>] (SyS_ioctl+0x34/0x5c)
[<c00acc0c>] (SyS_ioctl) from [<c000e100>] (ret_fast_syscall+0x0/0x34)
Code: e5952004 eaffffd7 e3e0000a e8bd81f0 (e7f001f2)
---[ end trace 949ea5605c454028 ]---
Endpoint:--100 has sent: [hello mcapi core0 0]   ------251973
CHECK_STATUS---recv:MCAPI_SUCCESS
Core0: mode(3) message recv. The 0 time receiving
Endpoint=101 size 0x11 has received: [hello mcapi core1] -------236247
CHECK_STATUS---recv:MCAPI_SUCCESS
Core0: mode(3) message recv. The 0 time receiving
Endpoint=101 size 0x11 has received: [hello mcapi core1] -------236248
CHECK_STATUS---recv:MCAPI_SUCCESS

Can anyone help us out, What can be the reason for this kernel crash message?

Quick feedback will be appreciated

Thanks