FAQ: [#6723] mcapi scalar case: coreB fails to send 8bit scalar data back to coreA(2011)

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

[#6723] mcapi scalar case: coreB fails to send 8bit scalar data back to coreA

Submitted By: Mingquan Pan

Open Date

2011-08-04 23:41:38     Close Date

2011-08-09 23:18:36

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 scalar case: coreB fails to send 8bit scalar data back to coreA

Details:

 

mcapi scalar case: coreB fails to send 8bit scalar data back to coreA.

 

After the coreb receive the data sent from coreA, it is expected to send 8 bit data back to CoreA. But it looks coreA doesn't get that data.

 

log is like:

...

 

sm_debug:       110 : 109

sm_debug:received 110

sm_debug:feb1f180 COREB: msg type7000003 src ep 65 scalar0 11223344 scalar1 55667788

sm_debug:       111 : 110

sm_debug:received 111

sm_debug:feb1f1c0 COREB: sm_recv_scalar() s011223344 s155667788 avail 0

sm_debug:       112 : 111

sm_debug:received 112

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

sm_debug:feb1f000 COREB:  sm_recv_scalar msg

sm_debug:       113 : 112

sm_debug:received 113

sm_debug:feb1f040 COREB: [1122334455667788] size 8 received_size 8

sm_debug:       114 : 113

sm_debug:received 114

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

sm_debug:feb1f080 COREB: recv scalar[1122334455667788] exp[1122334455667788] 1 1

sm_debug:       115 : 114

sm_debug:received 115

sm_debug:feb1f0c0 COREB: endpoint=65541 has received 8 byte(s): [1122334455667788]

sm_debug:       116 : 115

sm_debug:received 116

sm_debug:feb1f100 COREB: mcapi_trans_valid_endpoint ep 65542 index 1 valid 1

sm_debug:       117 : 116

sm_debug:received 117

MCsm_debug:ioctl type 0de 0 endpoint 200

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

sm_debug:feb1f140 COREB: mcapi_trans_channel_connected 519 1 remote200

sm_debug:       118 : 117

sm_debug:received 118

sm_debug:feb1f180 COREB: index 0 ,local ep 5

sm_debug:       119 : 118

sm_debug:received 119

sm_debug:feb1f1c0 COREB: index 1 ,local ep 6

sm_debug:       120 : 119

sm_debug:received 120

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

sm_debug:session status index 1, avail 0ndex 200 200

 

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

sm_debug:feb1f000 COREB: mcapi_trans_sclchan_connect_i index 1 ep200

sm_debug:       121 : 120

sm_debug:received 121

sm_debug:feb1f040 COREB: mcapi_trans_valid_endpoint ep 65542 index 1 valid 1

sm_debug:       122 : 121

sm_debug:received 122

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

sm_debug:feb1f080 COREB:   mcapi_trans_sclchan_send_open_i 1361

sm_debug:       123 : 122

sm_debug:received 123

sm_debug:feb1f0c0 COREB: mcapi_trans_sclchan_send 0 1 6 200

sm_debug:       124 : 123

sm_debug:received 124

MCsm_debug:ioctl type 0de 0 endpoint 200

 

ex 200 200session status index 1, avail 0

 

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

e 0 endpoint 200 type 0

 

Msm_debug:session status index 1, avail 0dex 200 200

 

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

MCsm_debug:ioctl type 0de 0 endpoint 200

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

e 0 endpoint 200 type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

ex 200 200session status index 1, avail 0

 

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

e 0 endpoint 200 type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

MCAPI_DEBUG:domain 0 node 0 endpoint 200sm_debug:ioctl type 0

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 0

MCAPI_DEBUG:mcapi_trans_msg_available avail = 0

 

case are attached.

 

Follow-ups

 

--- steven miao                                              2011-08-08 04:04:34

need explicit type casts to handle uint64_t to uint8/16/32_t

 

--- Mingquan Pan                                             2011-08-09 23:18:36

Yes, coreA can get the 8 bit data sent from coreB now.

 

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:session status index 1, avail 1

MCsm_debug:ioctl type 7000003vailable avail = 1

 

MCAPI_DEBUG:domain 0 node 0 endpoint 200

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

sm_debug:recv sleep on queue index sm_recv_scalar index 1

sm_debug:scalar0 88, scalar1 0

sm_debug:leave recv scalar

endpoint=200 has received 1 byte(s): [88]!!!

MCAPI_DEBUG:domain 0 node 0 endpoint 200

MCAPI_DEBUG:index 101 200

MCAPI_DEBUG:index 200 200

 

So close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

mcapi_scl1.c    text/x-csrc    4306    Mingquan Pan

scl1.c    text/x-csrc    4777    Mingquan Pan

Attachments

Outcomes