-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sm_ipt: Add Shared Memory Inter-Processor Transport #524
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should unlock the mutex just before memory_corrupted_error();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
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