sm_ipt: Add Shared Memory Inter-Processor Transport#524
sm_ipt: Add Shared Memory Inter-Processor Transport#524dchat-nordic wants to merge 1 commit intonrfconnect:mainfrom
Conversation
carlescufi
left a comment
There was a problem hiding this comment.
NACKing for now until I learn more about the purpose of this library
|
Main purpose of this library is a backend for nRF RPC. Additionally, it can be later used as a backend for IPC Service. Main benefits of this library (compared to current RPMsg solution):
|
68d59bd to
989537d
Compare
|
@dchat-nordic, please update commit message, to follow commit guidelines:
|
989537d to
47d1bab
Compare
| #include <stdbool.h> | ||
|
|
||
| #include "sm_ipt.h" | ||
| #include "sm_ipt_log.h" |
There was a problem hiding this comment.
(just a side comment)
We are repeating the same pattern for logs here as in nRF RPC. We can consider some common solution for them, but not necessary now in this PR.
|
This PR requires high level documentation. |
47d1bab to
d0294bb
Compare
8e04175 to
0f86928
Compare
821d07c to
d0d9144
Compare
It's a pity you cannot get the Visio file. However, the image looks a lot better now and is aligned with the figure guidelines. I think we can live without the native format so far. |
d0d9144 to
129c3ec
Compare
b989777 to
390a82a
Compare
|
@peknis, There are small changes in Can you look at it? |
390a82a to
0f500c5
Compare
0f500c5 to
2922ca6
Compare
hubertmis
left a comment
There was a problem hiding this comment.
I have some concerns about strategy for IPC transport availability in nRF Connect SDK. I believe we need to align on long-term plans before we merge a new transport to the repository.
| tx = ctx->out.shm_queue->queue_tx; | ||
| dst = tx; | ||
|
|
||
| if (dst >= QUEUE_ITEMS_CNT) { |
There was a problem hiding this comment.
We should unlock the mutex just before memory_corrupted_error();
SM_IPT is OS independent shared memory communication protocol, which works on shared memory and provides os-porting header templates. Signed-off-by: Dominik Chat <dominik.chat@nordicsemi.no> Co-authored-by: Dominik Kilian <Dominik.Kilian@nordicsemi.no>
2922ca6 to
c55b8b8
Compare
|
Should we close this for now? It can always be reopened |
SM IPT is an OS independent shared memory
communication library, which works on shared memory
and provides os-porting templates.
Signed-off-by: Dominik Chat dominik.chat@nordicsemi.no
Co-authored-by: Dominik Kilian Dominik.Kilian@nordicsemi.no