-
Notifications
You must be signed in to change notification settings - Fork 8.2k
OpenAMP rsc table sample #16985
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
OpenAMP rsc table sample #16985
Conversation
This comment has been minimized.
This comment has been minimized.
|
@galak Please, could you take a look to this pull request and associated OpenAMP pull request: zephyrproject-rtos/open-amp#2. |
dbkinder
left a comment
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.
doc changes LTGM, thanks!
erwango
left a comment
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.
First batch of comments
scripts/dts/extract/globals.py
Outdated
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.
Expect conflicts with #17660
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.
#17660 is now merged, you'll have to report this patch in scripts/dts/gen_defines.py
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
samples/subsys/ipc/openamp_rsc_table/remote/stm32mp157c_dk2.overlay
Outdated
Show resolved
Hide resolved
samples/subsys/ipc/openamp_rsc_table/remote/stm32mp157c_dk2.overlay
Outdated
Show resolved
Hide resolved
ulfalizer
left a comment
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.
Review comments fixed
|
@arnopo could you please rebase this and fix the conflicts? Is this otherwise ready to be merged? |
|
@galak: gentle reminder. This PR still waits your review :) |
|
This seems to have been neglected for awhile. I just triggered a Shippable re-run. @galak could you take a look? |
galak
left a comment
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.
In general looks good, a few updates based on changes I made to PR #17553 that we should reflect here.
samples/subsys/ipc/openamp_rsc_table/remote/stm32mp157c_dk2.overlay
Outdated
Show resolved
Hide resolved
galak
left a comment
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.
Do you see having more things in lib/open-amp/. Wonder if we need the rsc_table dir, or if we can flatten things a little?
|
Thanks @galak for the review, i will push a new version ASAP ( likely tomorrow) |
No more things it pipe for the moment, ok i will suppress the rsc_dtable dir |
rsc_table dir has been suppressed |
galak
left a comment
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.
In general looks good, some minor updates. Should we get PR #14750 merged first, after which I think this should be good.
|
Shippable issue seems not linked to this PR: |
outdated as solve by a rebase |
The resource table is needed by the Linux kernel OS for a rpmsg generic support, but is also recognised by OpenAMP. This table allows to add trace based on the RAM console and to support rpmsg protocol. Signed-off-by: Arnaud Pouliquen <[email protected]>
Rebase the resource table management to the new implementation in open-amp module Signed-off-by: Arnaud Pouliquen <[email protected]>
64 kB of memory is reserved for the inter-processor communication. this makes sense only if RPMsg is used. Allow to use this memory for firmware data by default. Signed-off-by: Arnaud Pouliquen <[email protected]>
This sample is designed to respond to the Linux rpmsg sample client. It should be platform independent and based on the the integration of a resource table in the elf file. Signed-off-by: Arnaud Pouliquen <[email protected]>
|
@galak, |
This pull request proposes an implementation of the RPMSg protocol based on a resource table.
The resource table can be use to declare resources shared between the main and coprocessor. It is integrated in the co-processor firmware in a specific section. This section can be recognized and parsed by the Linux OS kernel to initialize shared resources such as trace and RPMsg protocol.
Based on this resource table, the objective is to propose a sample that is platform agnostic and that answers to the Linux rpmsg client sample integrated in the Linux kernel distribution.
For time being this pull request only implements the co-processor side, and could be extended in future to also implement the master part.