Tool/software:
Hi:
I study the IPC between A72 and R5F core. My SDK is 10.01.00.04.
I have run the rpmsg_char_simple to test lookback. From the output logs, it have shown the round trip delay time. It was spend the time about 90ms. But we need more short response time.
How can we do that? Because the IPC was base on mailbox and share memory to do. Why it was spend many round trip time?
root@j721s2-evm:/# rpmsg_char_simple -r 0 -n 100
Created endpt device rpmsg-char-0-6457, fd = 4 port = 1025
Exchanging 100 messages with rpmsg device rpmsg-char-0-6457 on rproc id 0 ...
Sending message #0: hello there 0!
Received message #0: round trip delay(usecs) = 300220
hello there 0!
Sending message #1: hello there 1!
Received message #1: round trip delay(usecs) = 120220
hello there 1!
Sending message #2: hello there 2!
Received message #2: round trip delay(usecs) = 120665
hello there 2!
Sending message #3: hello there 3!
Received message #3: round trip delay(usecs) = 96650
hello there 3!
Sending message #4: hello there 4!
Received message #4: round trip delay(usecs) = 94130
hello there 4!
Sending message #5: hello there 5!
Received message #5: round trip delay(usecs) = 91095
hello there 5!
Sending message #6: hello there 6!
Received message #6: round trip delay(usecs) = 94505
hello there 6!
Sending message #7: hello there 7!
Received message #7: round trip delay(usecs) = 97245
hello there 7!
Sending message #8: hello there 8!
Received message #8: round trip delay(usecs) = 98030
hello there 8!
Sending message #9: hello there 9!
Received message #9: round trip delay(usecs) = 91040
hello there 9!
Sending message #10: hello there 10!
Received message #10: round trip delay(usecs) = 90415
hello there 10!
Sending message #11: hello there 11!
Received message #11: round trip delay(usecs) = 91065
hello there 11!
Sending message #12: hello there 12!
Received message #12: round trip delay(usecs) = 90400
hello there 12!
Sending message #13: hello there 13!
Received message #13: round trip delay(usecs) = 92485
hello there 13!
Sending message #14: hello there 14!
Received message #14: round trip delay(usecs) = 90995
hello there 14!
Sending message #15: hello there 15!
Received message #15: round trip delay(usecs) = 91660
hello there 15!
Sending message #16: hello there 16!
Received message #16: round trip delay(usecs) = 100330
hello there 16!
Sending message #17: hello there 17!
Received message #17: round trip delay(usecs) = 92455
hello there 17!
Sending message #18: hello there 18!
Received message #18: round trip delay(usecs) = 96590
hello there 18!
Sending message #19: hello there 19!
Received message #19: round trip delay(usecs) = 102675