hi,
I use the arago project to build and run dsplink examples on dm6467 evm. when I run the script ti-dsplink-examples-run.sh, it may fail sometimes on message multi sample. the following output is the successful message and the failed message.
root@dm6467-evm:/usr/share/ti/ti-dsplink-examples# ./ti-dsplink-examples-run.sh
Running Loop Sample App
=============== Sample Application : LOOP ==========
==== Executing sample for DSP processor Id 0 ====
Entered LOOP_Create ()
Leaving LOOP_Create ()
Entered LOOP_Execute ()
Transferred 1000 buffers
Transferred 2000 buffers
Leaving LOOP_Execute ()
Entered LOOP_Delete ()
Leaving LOOP_Delete ()
====================================================
Running Message Sample App
========== Sample Application : MESSAGE ==========
Entered MESSAGE_Create ()
Leaving MESSAGE_Create ()
Entered MESSAGE_Execute ()
Transferring 10000 iterations took 2 seconds 409958 microseconds.
RoundTrip Time for 1 message is 240 microseconds.
Leaving MESSAGE_Execute ()
Entered MESSAGE_Delete ()
Leaving MESSAGE_Delete ()
====================================================
Running Message Multi Sample App
======= Sample Application : MESSAGEMULTI App [1] =======
App [ 1]: Entered MESSAGEMULTI_Create ()
App [ 1]: gppMsgqName [GPPMSGQ1]
App [ 1]: dspMsgqName [DSPMSGQ1]
App [ 1]: PROC_setup status [0x8000]
App [ 1]: PROC_attach status [0x8000]
App [ 1]: POOL_open MQT_POOL_ID status [0x8000]
App [ 1]: MSGQ_open status [0x8000]
App [ 1]: PROC_load status [0x8000]
App [ 1]: PROC_start status [0x8000]
App [ 1]: POOL_open App Pool status [0x8000]
App [ 1]: MSGQ_transportOpen status [0x8000]
App [ 1]: NOTIFY_register status [0x8000]
App [ 1]: NOTIFY_notify status [0x8000]
App [ 1]: Leaving MESSAGEMULTI_Create ()
App [ 1]: Entered MESSAGEMULTI_Execute ()
App [ 1]: Transferred 100 messages
App [ 1]: Leaving MESSAGEMULTI_Execute ()
App [ 1]: Entered MESSAGEMULTI_Delete ()
App [ 1]: MSGQ_release status [0x8000]
App [ 1]: MSGQ_transportClose status [0x800d]
App [ 1]: NOTIFY_unregister status [0x8000]
App [ 1]: PROC_stop status [0x8000]
App [ 1]: MSGQ_close status [0x8000]
App [ 1]: POOL_close App Pool status [0x800d]
App [ 1]: POOL_close MQT_POOL_ID status [0x800d]
App [ 1]: PROC_detach status [0x8009]
App [ 1]: PROC_destroy status [0x8008]
App [ 1]: Leaving MESSAGEMULTI_Delete ()
================================================
Running MultiProcessor List Sample App
========== Sample Application : MP_LIST ==========
Entered MP_LIST_Create ()
Leaving MP_LIST_Create ()
Entered MP_LIST_Execute ()
Verified 100 list based transfer
Leaving MP_LIST_Execute ()
Entered MP_LIST_Delete ()
Leaving MP_LIST_Delete ()
====================================================
Running MultiProcessorCriticalSection Transfer Sample App
========== Sample Application : MPCSXFER ==========
Entered MPCSXFER_Create ()
Leaving MPCSXFER_Create ()
Entered MPCSXFER_Execute ()
GPP->DSP: Transferred 100 buffers
DSP->GPP: Transferred 100 buffers
GPP->DSP: Transferred 200 buffers
DSP->GPP: Transferred 200 buffers
GPP->DSP: Transferred 300 buffers
DSP->GPP: Transferred 300 buffers
GPP->DSP: Transferred 400 buffers
DSP->GPP: Transferred 400 buffers
GPP->DSP: Transferred 500 buffers
DSP->GPP: Transferred 500 buffers
GPP->DSP: Transferred 600 buffers
DSP->GPP: Transferred 600 buffers
GPP->DSP: Transferred 700 buffers
DSP->GPP: Transferred 700 buffers
GPP->DSP: Transferred 800 buffers
DSP->GPP: Transferred 800 buffers
GPP->DSP: Transferred 900 buffers
DSP->GPP: Transferred 900 buffers
GPP->DSP: Transferred 1000 buffers
DSP->GPP: Transferred 1000 buffers
Leaving MPCSXFER_Execute ()
Entered MPCSXFER_Delete ()
Leaving MPCSXFER_Delete ()
====================================================
Running Ringio Sample App
========== Sample Application : RING_IO ==========
Bytes to transfer :128
Data buffer size :2048
Entered RING_IO_Create ()
Leaving RING_IO_Create ()
Entered RING_IO_ReaderClient ()
Entered RING_IO_WriterClient ()
GPP-->DSP:Sent Data Transfer Start Attribute
GPP-->DSP:Sent Data Transfer Start Notification
GPP-->DSP:Total Bytes Transmitted 128
RingIO_setAttribute succeeded to set the RINGIO_DATA_END. Status = [0x8100]
GPP-->DSP:Sent Data Transfer End Attribute
GPP-->DSP:Sent Data Transfer End Notification
Leaving RING_IO_WriterClient ()
GPP<--DSP:Received Data TransferStart Attribute
GPP<--DSP:Received Data TransferEnd Attribute
GPP<--DSP:Bytes Received 128
GPP<--DSP:Received Data Transfer End Notification
Leaving RING_IO_ReaderClient ()
Entered RING_IO_Delete ()
Leaving RING_IO_Delete ()
====================================================
Running Scale Sample App
=============== Sample Application : SCALE ==========
Entered SCALE_Create ()
Leaving SCALE_Create ()
Entered SCALE_Execute ()
Changed the scale factor to: 2
Changed the scale factor to: 3
Changed the scale factor to: 4
Changed the scale factor to: 5
Changed the scale factor to: 6
Changed the scale factor to: 7
Changed the scale factor to: 8
Changed the scale factor to: 9
Changed the scale factor to: 10
Transferred 100 buffers
Changed the scale factor to: 11
Changed the scale factor to: 12
Changed the scale factor to: 13
Changed the scale factor to: 14
Changed the scale factor to: 15
Changed the scale factor to: 16
Changed the scale factor to: 17
Changed the scale factor to: 18
Changed the scale factor to: 19
Changed the scale factor to: 20
Transferred 200 buffers
Changed the scale factor to: 21
Changed the scale factor to: 22
Changed the scale factor to: 23
Changed the scale factor to: 24
Changed the scale factor to: 25
Changed the scale factor to: 26
Changed the scale factor to: 27
Changed the scale factor to: 28
Changed the scale factor to: 29
Changed the scale factor to: 30
Transferred 300 buffers
Changed the scale factor to: 31
Changed the scale factor to: 32
Changed the scale factor to: 33
Changed the scale factor to: 34
Changed the scale factor to: 35
Changed the scale factor to: 36
Changed the scale factor to: 37
Changed the scale factor to: 38
Changed the scale factor to: 39
Changed the scale factor to: 40
Transferred 400 buffers
Changed the scale factor to: 41
Changed the scale factor to: 42
Changed the scale factor to: 43
Changed the scale factor to: 44
Changed the scale factor to: 45
Changed the scale factor to: 46
Changed the scale factor to: 47
Changed the scale factor to: 48
Changed the scale factor to: 49
Changed the scale factor to: 50
Transferred 500 buffers
Leaving SCALE_Execute ()
Entered SCALE_Delete ()
Leaving SCALE_Delete ()
====================================================
root@dm6467-evm:/usr/share/ti/ti-dsplink-examples# ./ti-dsplink-examples-run.sh
Running Loop Sample App
=============== Sample Application : LOOP ==========
==== Executing sample for DSP processor Id 0 ====
Entered LOOP_Create ()
Leaving LOOP_Create ()
Entered LOOP_Execute ()
Transferred 1000 buffers
Transferred 2000 buffers
Leaving LOOP_Execute ()
Entered LOOP_Delete ()
Leaving LOOP_Delete ()
====================================================
Running Message Sample App
========== Sample Application : MESSAGE ==========
Entered MESSAGE_Create ()
Leaving MESSAGE_Create ()
Entered MESSAGE_Execute ()
Transferring 10000 iterations took 2 seconds 469828 microseconds.
RoundTrip Time for 1 message is 246 microseconds.
Leaving MESSAGE_Execute ()
Entered MESSAGE_Delete ()
Leaving MESSAGE_Delete ()
====================================================
Running Message Multi Sample App
======= Sample Application : MESSAGEMULTI App [1] =======
App [ 1]: Entered MESSAGEMULTI_Create ()
App [ 1]: gppMsgqName [GPPMSGQ1]
App [ 1]: dspMsgqName [DSPMSGQ1]
App [ 1]: PROC_setup status [0x8000]
App [ 1]: PROC_attach status [0x8000]
App [ 1]: POOL_open MQT_POOL_ID status [0x8000]
App [ 1]: MSGQ_open status [0x8000]
App [ 1]: PROC_load status [0x8000]
App [ 1]: PROC_start status [0x80008052]
App [ 1]: PROC_start () failed. status [0x80008052]
App [ 1]: Leaving MESSAGEMULTI_Create ()
App [ 1]: Entered MESSAGEMULTI_Delete ()
App [ 1]: MSGQ_release status [0x8000800b]
App [ 1]: MSGQ_release () failed. status [0x8000800b]
App [ 1]: MSGQ_transportClose status [0x80008000]
App [ 1]: NOTIFY_unregister status [0x8000802d]
App [ 1]: PROC_stop status [0x8000800b]
App [ 1]: MSGQ_close status [0x8000]
App [ 1]: POOL_close App Pool status [0x80008000]
App [ 1]: POOL_close MQT_POOL_ID status [0x800d]
App [ 1]: PROC_detach status [0x8009]
App [ 1]: PROC_destroy status [0x8008]
App [ 1]: Leaving MESSAGEMULTI_Delete ()
================================================
Running MultiProcessor List Sample App
========== Sample Application : MP_LIST ==========
Entered MP_LIST_Create ()
Leaving MP_LIST_Create ()
Entered MP_LIST_Execute ()
Verified 100 list based transfer
Leaving MP_LIST_Execute ()
Entered MP_LIST_Delete ()
Leaving MP_LIST_Delete ()
====================================================
Running MultiProcessorCriticalSection Transfer Sample App
========== Sample Application : MPCSXFER ==========
Entered MPCSXFER_Create ()
Leaving MPCSXFER_Create ()
Entered MPCSXFER_Execute ()
GPP->DSP: Transferred 100 buffers
DSP->GPP: Transferred 100 buffers
GPP->DSP: Transferred 200 buffers
DSP->GPP: Transferred 200 buffers
GPP->DSP: Transferred 300 buffers
DSP->GPP: Transferred 300 buffers
GPP->DSP: Transferred 400 buffers
DSP->GPP: Transferred 400 buffers
GPP->DSP: Transferred 500 buffers
DSP->GPP: Transferred 500 buffers
GPP->DSP: Transferred 600 buffers
DSP->GPP: Transferred 600 buffers
GPP->DSP: Transferred 700 buffers
DSP->GPP: Transferred 700 buffers
GPP->DSP: Transferred 800 buffers
DSP->GPP: Transferred 800 buffers
GPP->DSP: Transferred 900 buffers
DSP->GPP: Transferred 900 buffers
GPP->DSP: Transferred 1000 buffers
DSP->GPP: Transferred 1000 buffers
Leaving MPCSXFER_Execute ()
Entered MPCSXFER_Delete ()
Leaving MPCSXFER_Delete ()
====================================================
Running Ringio Sample App
========== Sample Application : RING_IO ==========
Bytes to transfer :128
Data buffer size :2048
Entered RING_IO_Create ()
Leaving RING_IO_Create ()
Entered RING_IO_ReaderClient ()
Entered RING_IO_WriterClient ()
GPP-->DSP:Sent Data Transfer Start Attribute
GPP-->DSP:Sent Data Transfer Start Notification
GPP-->DSP:Total Bytes Transmitted 128
RingIO_setAttribute succeeded to set the RINGIO_DATA_END. Status = [0x8100]
GPP-->DSP:Sent Data Transfer End Attribute
GPP-->DSP:Sent Data Transfer End Notification
Leaving RING_IO_WriterClient ()
GPP<--DSP:Received Data TransferStart Attribute
GPP<--DSP:Received Data TransferEnd Attribute
GPP<--DSP:Bytes Received 128
GPP<--DSP:Received Data Transfer End Notification
Leaving RING_IO_ReaderClient ()
Entered RING_IO_Delete ()
Leaving RING_IO_Delete ()
====================================================
Running Scale Sample App
=============== Sample Application : SCALE ==========
Entered SCALE_Create ()
Leaving SCALE_Create ()
Entered SCALE_Execute ()
Changed the scale factor to: 2
Changed the scale factor to: 3
Changed the scale factor to: 4
Changed the scale factor to: 5
Changed the scale factor to: 6
Changed the scale factor to: 7
Changed the scale factor to: 8
Changed the scale factor to: 9
Changed the scale factor to: 10
Transferred 100 buffers
Changed the scale factor to: 11
Changed the scale factor to: 12
Changed the scale factor to: 13
Changed the scale factor to: 14
Changed the scale factor to: 15
Changed the scale factor to: 16
Changed the scale factor to: 17
Changed the scale factor to: 18
Changed the scale factor to: 19
Changed the scale factor to: 20
Transferred 200 buffers
Changed the scale factor to: 21
Changed the scale factor to: 22
Changed the scale factor to: 23
Changed the scale factor to: 24
Changed the scale factor to: 25
Changed the scale factor to: 26
Changed the scale factor to: 27
Changed the scale factor to: 28
Changed the scale factor to: 29
Changed the scale factor to: 30
Transferred 300 buffers
Changed the scale factor to: 31
Changed the scale factor to: 32
Changed the scale factor to: 33
Changed the scale factor to: 34
Changed the scale factor to: 35
Changed the scale factor to: 36
Changed the scale factor to: 37
Changed the scale factor to: 38
Changed the scale factor to: 39
Changed the scale factor to: 40
Transferred 400 buffers
Changed the scale factor to: 41
Changed the scale factor to: 42
Changed the scale factor to: 43
Changed the scale factor to: 44
Changed the scale factor to: 45
Changed the scale factor to: 46
Changed the scale factor to: 47
Changed the scale factor to: 48
Changed the scale factor to: 49
Changed the scale factor to: 50
Transferred 500 buffers
Leaving SCALE_Execute ()
Entered SCALE_Delete ()
Leaving SCALE_Delete ()
====================================================
and when failed, the kernel debug message is :
DSP-side configuration mismatch/failure
0 -> success
Positive value -> DSP-side failure code.
(Uint32) -1 -> DSP-side component was not initialized.
ProcId received : 0, Expected : 0
DRV configuration status [0xffffffff]
IPS configuration status [0xffffffff]
POOL configuration status [0xffffffff]
MPCS configuration status [0xffffffff]
MPLIST configuration status [0xffffffff]
MQT configuration status [0xffffffff]
DATA configuration status [0xffffffff]
RINGIO configuration status [0xffffffff]
What is the problem?