FAQ: [#6938] mcapi case of two processes fails to be run on 2012 trunk head(2011)

Document created by Aaronwu Employee on Sep 12, 2013
Version 1Show Document
  • View in full screen mode

[#6938] mcapi case of two processes fails to be run on 2012 trunk head

Submitted By: Mingquan Pan

Open Date

2012-01-04 03:37:10     Close Date

2012-01-09 03:39:09

Priority:

Medium     Assignee:

steven miao

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

2011r1-rc4

App binary format:

N/A     

Summary: mcapi case of two processes fails to be run on 2012 trunk head

Details:

 

mcapi case of two processes fails to be run on 2012 trunk head.

 

bfin> bootm^M

## Booting kernel from Legacy Image at 02000000 ...^M

   Image Name:   bf561-0.5-3.1.0-ADI-2012R1-pre-s^M

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)^M

   Data Size:    4203154 Bytes = 4 MiB^M

   Load Address: 00001000^M

   Entry Point:  0019cdf4^M

   Verifying Checksum ... OK^M

   Uncompressing Kernel Image ... OK^M

Starting Kernel at = 0019cdf4^M

Linux version 3.1.0-ADI-2012R1-pre-svn10275 (test@linux66-561-jtag-capture) (gcc version 4.3.5 (ADI-2011R1-RC4) ) #24 Tue Jan 3 18:32:17 CST 2012^M

register early platform devices^M

bootconsole [early_shadow0] enabled^M

bootconsole [early_BFuart0] enabled^M

early printk enabled on early_BFuart0^M

Board Memory: 64MB^M

Kernel Managed Memory: 60MB^M

Memory map:^M

  fixedcode = 0x00000400-0x00000490^M

  text      = 0x00001000-0x0011b760^M

  rodata    = 0x0011b760-0x00174130^M

  bss       = 0x00175000-0x00184bac^M

  data      = 0x00184bac-0x00196000^M

    stack   = 0x00194000-0x00196000^M

  init      = 0x00196000-0x00811000^M

  available = 0x00811000-0x03b00000^M

  DMA Zone  = 0x03b00000-0x03c00000^M

Hardware Trace active and enabled^M

Boot Mode: 0^M

Reset caused by Software reset^M

Blackfin support (C) 2004-2010 Analog Devices, Inc.^M

...

 

 

root:/bin> ./icc_loader -f -e ./mcapi_msg2

writiCg tO 0xR3c0E000B 0x:054    sytem: O_handle_control_message type 2000000

 

task_init_addr 3c00208

task_exit_addr ffffffff

COREB: sm_handle_control_message 2000000 2000000

COREB: task exit 0

COREB: task init 3c00208 exit 0

m /COREB: @@@ gen pool create0

COREB: @@@ gen pool create1

COREB: session table 3d00000

COREB: sm_send_message_internal() dst 0 src 1 2000001

tCOREB: finish sm_handle_control_message task status 1

COREB: finish1 sm_handle_control_message task status 1

COREB: before run task 3c00208

COREB: [icc_task_init] 71

mpCOREB: [icc_task_init] 76

COREB: create ep

COREB: create ep index 0 srcep 5

COREB: ep1 10005  

/COREB: create ep

COREB: index 0 ,local ep 5

COREB: create ep index 1 srcep 6

COREB: ep2 10006  

* 2> /dev/null; dmesg -c > /dev/null

root:/bin> rm /tmp/* 2> /dev/null; dmesg -c > /dev/null

root:/bin> spawn /bin/sh -c rsh -l root 10.100.4.50 ' msg2 > /tmp/corea.log  2>&1 ; cat /tmp/* ; dmesg'

test log

MCAPI_DEBUG:mcapi_trans_initialize 865

MCAPI_DEBUG:mcapi_trans_initialize_ 824

semget

MCAPI_DEBUG:mcapi_trans_initialize_ 853 db size 2c34c

MCAPI_DEBUG:mcapi_trans_initialize_ 857

MCAPI_DEBUG: node index 0 ep index 1

node=0, port=200

ep2 0  

MCAPI_DEBUG: mcapi_trans_get_endpoint_internal node_num=1, port_num=6

node=1, port=6

ep4 c8  

MCAPI_DEBUG:domain 0 node 0 endpoint 200

MCAPI_DEBUG:index 0 200

MCAPI_DEBUG:domain 0 node 0 endpoint 200

MCAPI_DEBUG:domain 0 node 1 endpoint 6

MCAPI_DEBUG:index 0 200

MCAPI_DEBUG:index 32, re 200, rn 0

WRONG: line=40

40

MCAPI_DEBUG:mcapi_trans_initialize 865

MCAPI_DEBUG:mcapi_trans_initialize_ 824

semget

MCAPI_DEBUG:mcapi_trans_initialize_ 853 db size 2c34c

MCAPI_DEBUG:mcapi_trans_initialize_ 857

MCAPI_DEBUG: node index 0 ep index 0

node=0, port=101

ep1 65  

MCAPI_DEBUG: mcapi_trans_get_endpoint_internal node_num=1, port_num=5

node=1, port=5

ep3 0  

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:mcapi_trans_valid_endpoint endpoint=0x65 (database indices: n=0,e=101) rc=1

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:domain 0 node 1 endpoint 5

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:index 0, re 101, rn 0

MCAPI_DEBUG:index 0, re 5, rn 1

endpoint=101 has sent: [PARENT HELLO MCAPI 0]

coreA: The 0 time sending, status 1

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:domain 0 node 1 endpoint 5

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:index 32, re 101, rn 0

COREB: sm_handle_control_message type 4000000

COREB: index 0 ,local ep 5

COREB: msg type 4000000 index 0 session type 4

The case is ending!! corea_case_status: 0, coreb_case_status 0 , execption_count 0!!

case fail!!!

spawn /bin/sh

rsh -l root 10.100.4.50 ' cat /tmp/* ; dmesg' ts/uclinux-dist/testsuites/mcapi> 

test log

MCAPI_DEBUG:mcapi_trans_initialize 865

MCAPI_DEBUG:mcapi_trans_initialize_ 824

semget

MCAPI_DEBUG:mcapi_trans_initialize_ 853 db size 2c34c

MCAPI_DEBUG:mcapi_trans_initialize_ 857

MCAPI_DEBUG: node index 0 ep index 1

node=0, port=200

ep2 0  

MCAPI_DEBUG: mcapi_trans_get_endpoint_internal node_num=1, port_num=6

node=1, port=6

ep4 c8  

MCAPI_DEBUG:domain 0 node 0 endpoint 200

MCAPI_DEBUG:index 0 200

MCAPI_DEBUG:domain 0 node 0 endpoint 200

MCAPI_DEBUG:domain 0 node 1 endpoint 6

MCAPI_DEBUG:index 0 200

MCAPI_DEBUG:index 32, re 200, rn 0

WRONG: line=40

40

MCAPI_DEBUG:mcapi_trans_initialize 865

MCAPI_DEBUG:mcapi_trans_initialize_ 824

semget

MCAPI_DEBUG:mcapi_trans_initialize_ 853 db size 2c34c

MCAPI_DEBUG:mcapi_trans_initialize_ 857

MCAPI_DEBUG: node index 0 ep index 0

node=0, port=101

ep1 65  

MCAPI_DEBUG: mcapi_trans_get_endpoint_internal node_num=1, port_num=5

node=1, port=5

ep3 0  

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:mcapi_trans_valid_endpoint endpoint=0x65 (database indices: n=0,e=101) rc=1

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:domain 0 node 1 endpoint 5

MCAPI_DEBUG:index 101 101

MCAPI_DEBUG:index 0, re 101, rn 0

MCAPI_DEBUG:index 0, re 5, rn 1

endpoint=101 has sent: [PARENT HELLO MCAPI 0]

coreA: The 0 time sending, status 1

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:domain 0 node 0 endpoint 101

MCAPI_DEBUG:domain 0 node 1 endpoint 5

MCAPI_DEBUG:index 0 101

MCAPI_DEBUG:index 32, re 101, rn 0

COREB: sm_handle_control_message type 4000000

COREB: index 0 ,local ep 5

COREB: msg type 4000000 index 0 session type 4

COREB: type 4000000, dstep 5, srcep 101

COREB: recved packet msg handle0

COREB: msg_recv_internal msg type 4000000 alloc 3e00000

COREB: avail 1

COREB: index 0 avail 1

COREB:  sm_recv_packet session type 4 localep5

COREB: sm_send_message_internal() dst 0 src 1 4000001

COREB: free message 3e00000

COREB: endpoint=65541 has received: [PARENT HELLO MCAPI 0]

COREB: endpoint=101 sendback: buf 3c05008

COREB: sm_default_sendmsg msg type 4000000

COREB: sm_send_message_internal() dst 0 src 1 4000000

COREB: endpoint=65541 has sent: [PARENT HELLO MCAPI 0]

COREB:  sm_recv_packet session type 4 localep6

COREB: WRONG: line==45

COREB: WRONG: line==100

COREB:

CoreB: mcapi message loop test. The 0 time send back,status1 1 ,status2 -22 .

 

Printing last log finished.

 

Last passed test result is not found!!

 

 

Follow-ups

 

--- steven miao                                              2012-01-05 21:51:02

merge 2011R1 libmcapi share mem fix

 

--- Mingquan Pan                                             2012-01-09 04:02:48

Yeah, it runs better and now it can finish more than 200 rounds of cases, till

:

 

root:/bin> ^[[6n./icc_loader -f -e ./mcapi_pkt1 ^M

writCng Oo 0R03cE000B, 0:510    sbytms: _Khandle_control_message type

2000000^M

^M

task_init_addr 3c00200^M

task_exit_addr ffffffff^M

COREB: sm_handle_control_message 2000000 2000000^M

COREB: task exit 0^M

COREB: task init 3c00200 exit 0^M

m /COREB: @@@ gen pool create0 ^M

COREB: @@@ gen pool create1 ^M

COREB: session table 3d00000^M

COREB: sm_send_message_internal() dst 0 src 1 2000001^M

tCOREB: finish sm_handle_control_message task status 1^M

COREB: finish1 sm_handle_control_message task status 1^M

COREB: before run task 3c00200^M

COREB: [icc_task_init] 83^M

mpCOREB: [icc_task_init] 87^M

COREB: create ep ^M

COREB: create ep index 0 srcep 5^M

COREB: mcapi pktchan test ep1 10005^M

/COREB: create ep ^M

COREB: index 0 ,local ep 5^M

COREB: create ep index 1 srcep 6^M

COREB: mcapi pktchan test ep2 10006^M

COREB: mcapi pktchan test ep3 c8^M

* 2> /dev/null; dmesg -c > /dev/null^M

root:/bin> rm /tmp/* 2> /dev/null; dmesg -c > /dev/null^M

root:/bin> ^[[6nspawn /bin/sh -c rsh -l root 10.100.4.50 ' pkt1 >

/tmp/corea.log  2>&1 ; cat /tmp/* ; dmesg' ^M

sh: can't execute 'cat': Cannot allocate memory^M

sh: can't execute 'dmesg': Cannot allocate memory^M

The case is ending!! corea_case_status: 0, coreb_case_status 0 ,

execption_count 0!!

case fail!!!

spawn /bin/sh^M

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/mcapi>

rsh -l root 10.100.4.50 ' cat /tmp/* ; dmesg' ^M

sh: can't execute 'cat': Cannot allocate memory^M

sh: can't execute 'dmesg': Cannot allocate memory^M

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/mcapi>

print log time out!!

 

Last passed test result is not found!!

 

Case 209 ...FAIL

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes