FAQ: [#6776] mcapi message case print unexpected loop info(2011)

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

[#6776] mcapi message case print unexpected loop info

Submitted By: Mingquan Pan

Open Date

2011-09-01 03:47:00     Close Date

2011-09-05 02:13:23

Priority:

Medium     Assignee:

steven miao

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

5013

App binary format:

N/A     

Summary: mcapi message case print unexpected loop info

Details:

 

mcapi message case print unexpected loop info.

In the msg1 case, it send 4 message data, but the mcapi_msg1 print 5 round of sending back info(0,1,2,3,4). This first printing info line isn't expected, it prints before the real sending happens.

 

sm_debug:sm_find_session bits 00000000 localep 100

sm_debug:table bits1 00000000

sm_debug:table index 0

sm_debug:table bits2 00000001

sm_debug:create ep index 0 srcep 100 type 4

sm_debug:session 02913828

sm_debug:size of session 60

sm_debug:sm_send_packet: 0 02913828

sm_debug:sm_send_packet: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:alloc buffer 292b9a0

sm_debug:sm_default_sendmsg session type 4

sm_debug:sm_default_sendmsg: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:sm_send_packet: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:sm_send_message_internal: dst 1 src 0

sm_debug:send message cpu 1 sent 2

COREB: sm_handle_control_message type 4000000

sm_debug:sm_send_packet: 0 02913828

sm_debug:sm_send_packet: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:alloc buffer 292b9e0

sm_debug:sm_default_sendmsg session type 4

sm_debug:sm_default_sendmsg: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:sm_send_packet: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:sm_send_message_internal: dst 1 src 0

sm_debug:send message cpu 1 sent 3

COREB: @@@ wake up

COREB: sm_handle_control_message type 4000000

sm_debug:sm_send_packet: 0 02913828

sm_debug:sm_send_packet: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:alloc buffer 292ba20

sm_debug:sm_default_sendmsg session type 4

sm_debug:sm_default_sendmsg: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:sm_send_packet: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:sm_send_message_internal: dst 1 src 0

sm_debug:send message cpu 1 sent 4

COREB: sm_handle_control_message type 4000000

sm_debug:sm_send_packet: 0 02913828

sm_debug:sm_send_packet: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:alloc buffer 292ba60

sm_debug:sm_default_sendmsg session type 4

sm_debug:sm_default_sendmsg: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:sm_send_packet: len 12 type 4000000 dst 1 dstep 5 src 0 srcep 100

sm_debug:sm_send_message_internal: dst 1 src 0

sm_debug:send message cpu 1 sent 5

COREB: sm_handle_control_message type 4000000

sm_debug:session status index 0, avail 0

COREB:

CoreB: mcapi message loop test. The 0 time send back ok.

COREB: index 0 ,local ep 5

COREB: msg type 4000000 index 0 session type 4

COREB: type 4000000, dstep 5, srcep 100

COREB: recved packet msg handle0

COREB: msg_recv_internal msg type 4000000 alloc 3d40000

COREB: avail 1

COREB: index 0 avail 1

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB:  sm_recv_packet session type 4 localep5

COREB: sm_recv_packet() 1Hello MCAPI

COREB:  sm_recv_packet msg

COREB: buffer 1Hello MCAPI len 12 se 100 sn 0

COREB: sm_send_message_internal() dst 0 src 1 4000001

sm_debug:sm_find_session bits 00000001 localep 100

sm_debug:index 0 ,local ep 100 type 4

sm_debug:session 02913828 index 0 msg type4000001

sm_debug:sm_default_recvmsg msg type 4000001

sm_debug:ack matched free buf 292b9a0 message 0292b980 02913830 0292b9c0

COREB: free message 3d40000

COREB: endpoint=65541 has received: [1Hello MCAPI]

COREB: endpoint=100 sendback: buf 3c04cf4

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB: index 0, se 5, sn 1

COREB: index 0, re 100, rn 0

COREB: sm_default_sendmsg msg type 4000000

COREB: sm_send_message_internal() dst 0 src 1 4000000

sm_debug:sm_find_session bits 00000001 localep 100

sm_debug:index 0 ,local ep 100 type 4

sm_debug:session 02913828 index 0 msg type4000000

sm_debug:sm_default_recvmsg msg type 4000000

sm_debug:msg_recv_internal wakeup wait thread

COREB: endpoint=65541 has sent: [1Hello MCAPI]

COREB:

CoreB: mcapi message loop test. The 1 time send back ok.

COREB: index 0 ,local ep 5

sm_debug:session status index 0, avail 1

sm_debug:recv sleep on queue index sm_recv_packet index 0

sm_debug:recv 1Hello MCAPI

sm_debug:sm_send_message_internal: dst 1 src 0

sm_debug:send message cpu 1 sent 6

COREB: msg type 4000000 index 0 session type 4

COREB: sm_handle_control_message type 4000000

COREB: type 4000000, dstep 5, srcep 100

COREB: recved packet msg handle0

COREB: msg_recv_internal msg type 4000000 alloc 3d40040

COREB: avail 1

COREB: index 0 avail 1

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB:  sm_recv_packet session type 4 localep5

COREB: sm_recv_packet() 1Hello MCAPI

COREB:  sm_recv_packet msg

COREB: buffer 1Hello MCAPI len 12 se 100 sn 0

COREB: sm_send_message_internal() dst 0 src 1 4000001

sm_debug:sm_find_session bits 00000001 localep 100

sm_debug:index 0 ,local ep 100 type 4

sm_debug:session 02913828 index 0 msg type4000001

sm_debug:sm_default_recvmsg msg type 4000001

sm_debug:ack matched free buf 292b9e0 message 0292b9c0 02913830 0292ba00

COREB: free message 3d40040

COREB: endpoint=65541 has received: [1Hello MCAPI]

COREB: endpoint=100 sendback: buf 3c04cf4

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB: index 0, se 5, sn 1

COREB: index 0, re 100, rn 0

COREB: sm_default_sendmsg msg type 4000000

COREB: sm_send_message_internal() dst 0 src 1 4000000

sm_debug:sm_find_session bits 00000001 localep 100

sm_debug:index 0 ,local ep 100 type 4

sm_debug:session 02913828 index 0 msg type4000000

sm_debug:sm_default_recvmsg msg type 4000000

sm_debug:msg_recv_internal wakeup wait thread

COREB: endpoint=65541 has sent: [1Hello MCAPI]

COREB:

CoreB: mcapi message loop test. The 2 time send back ok.

COREB: index 0 ,local ep 5

COREB: msg type 4000000 index 0 session type 4

COREB: type 4000000, dstep 5, srcep 100

COREB: recved packet msg handle0

sm_debug:session status index 0, avail 1

sm_debug:recv sleep on queue index sm_recv_packet index 0

sm_debug:recv 1Hello MCAPI

sm_debug:sm_send_message_internal: dst 1 src 0

sm_debug:send message cpu 1 sent 7

COREB: sm_handle_control_message type 4000000

COREB: msg_recv_internal msg type 4000000 alloc 3d40080

COREB: avail 1

COREB: index 0 avail 1

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB:  sm_recv_packet session type 4 localep5

COREB: sm_recv_packet() 1Hello MCAPI

COREB:  sm_recv_packet msg

COREB: buffer 1Hello MCAPI len 12 se 100 sn 0

COREB: sm_send_message_internal() dst 0 src 1 4000001

sm_debug:sm_find_session bits 00000001 localep 100

sm_debug:index 0 ,local ep 100 type 4

sm_debug:session 02913828 index 0 msg type4000001

sm_debug:sm_default_recvmsg msg type 4000001

sm_debug:ack matched free buf 292ba20 message 0292ba00 02913830 0292ba40

COREB: free message 3d40080

COREB: endpoint=65541 has received: [1Hello MCAPI]

COREB: endpoint=100 sendback: buf 3c04cf4

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB: index 0, se 5, sn 1

COREB: index 0, re 100, rn 0

COREB: sm_default_sendmsg msg type 4000000

COREB: sm_send_message_internal() dst 0 src 1 4000000

sm_debug:sm_find_session bits 00000001 localep 100

sm_debug:index 0 ,local ep 100 type 4

sm_debug:session 02913828 index 0 msg type4000000

sm_debug:sm_default_recvmsg msg type 4000000

sm_debug:msg_recv_internal wakeup wait thread

COREB: endpoint=65541 has sent: [1Hello MCAPI]

COREB:

CoreB: mcapi message loop test. The 3 time send back ok.

COREB: index 0 ,local ep 5

COREB: msg type 4000000 index 0 session type 4

COREB: type 4000000, dstep 5, srcep 100

COREB: recved packet msg handle0

COREB: msg_recv_internal msg type 4000000 alloc 3d400c0

COREB: avail 1

COREB: index 0 avail 1

sm_debug:session status index 0, avail 1

sm_debug:recv sleep on queue index sm_recv_packet index 0

sm_debug:recv 1Hello MCAPI

sm_debug:sm_send_message_internal: dst 1 src 0

sm_debug:send message cpu 1 sent 8

COREB: sm_handle_control_message type 4000001

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB:  sm_recv_packet session type 4 localep5

COREB: sm_recv_packet() 1Hello MCAPI

COREB:  sm_recv_packet msg

COREB: buffer 1Hello MCAPI len 12 se 100 sn 0

COREB: sm_send_message_internal() dst 0 src 1 4000001

sm_debug:sm_find_session bits 00000001 localep 100

sm_debug:index 0 ,local ep 100 type 4

sm_debug:session 02913828 index 0 msg type4000001

sm_debug:sm_default_recvmsg msg type 4000001

sm_debug:ack matched free buf 292ba60 message 0292ba40 02913830 02913830

COREB: free message 3d400c0

COREB: endpoint=65541 has received: [1Hello MCAPI]

COREB: endpoint=100 sendback: buf 3c04cf4

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB: index 0, se 5, sn 1

COREB: index 0, re 100, rn 0

COREB: sm_default_sendmsg msg type 4000000

COREB: sm_send_message_internal() dst 0 src 1 4000000

sm_debug:sm_find_session bits 00000001 localep 100

sm_debug:index 0 ,local ep 100 type 4

sm_debug:session 02913828 index 0 msg type4000000

sm_debug:sm_default_recvmsg msg type 4000000

sm_debug:msg_recv_internal wakeup wait thread

COREB: endpoint=65541 has sent: [1Hello MCAPI]

COREB:

CoreB: mcapi message loop test. The 4 time send back ok.

COREB: mcapi_trans_valid_endpoint ep 65541 index 0 valid 1

COREB: mcapi_trans_endpoint_delete 817 d 0 n 1 e 5 index 0

COREB: CoreB Test PASSED

COREB: before run task

COREB: before run task

COREB: before run task

sm_debug:session status index 0, avail 1

sm_debug:recv sleep on queue index sm_recv_packet index 0

sm_debug:recv 1Hello MCAPI

sm_debug:sm_send_message_internal: dst 1 src 0

sm_debug:send message cpu 1 sent 9

COREB: sm_handle_control_message type 4000001

root:/bin> COREB: @@@ wake up

COREB: before run task

COREB: before run task

 

Follow-ups

 

--- steven miao                                              2011-09-02 03:43:23

fixed in mcapi task

 

--- Mingquan Pan                                             2011-09-05 02:13:23

Yes, it prints the exact 4 loops now. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes