-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add rpmsg-echo-test example #1
Conversation
6464427
to
eae2ecc
Compare
I will close this pull request and open new one as new echo_test app contains more changes. |
As discussed this with Arnaud same pull request can be used. |
eae2ecc
to
f10ea12
Compare
I addressed comments in latest commit.
|
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.
Looks good to me.
This project uses same license as openamp project. So copy over open-amp project license file and add AMD copyrights line Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
examples directory will contain different apps demonstrating various functionality of openamp framework This particular app was moved from meta-openamp project as meta-openamp is supposed to have only Yocto bitbake recipes and not source files. This app demonstrates fast IPC communication without data corruption between Host and Remote processor. IPC communication is done via rpmsg framework in kernelspace Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
f10ea12
to
ef0e414
Compare
@wmamills, @arnopo, @edmooring I have split changes in different commits as requested. If all look good, I will do the same for other examples as well. |
look good to me |
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.
Reference should be to the openamp lib example not the Xilinx sample
Ah! I understand now. That would be: https://github.com/OpenAMP/open-amp/blob/main/apps/examples/echo/rpmsg-echo.c I will update README accordingly in all the examples. |
ef0e414
to
47b85cf
Compare
Done. |
Kernel uses rpmsg_ctrl from virtio0.rpmsg_ctrl.0.0 directory. Add this support without breaking backward compatibility Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
@arnopo , @edmooring |
use __progname instead of hardcode binary name Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
Attempt to probe rpmsg_ctrl driver for kernel >= 6.0. If failed, then assume it's kernel < 6.0 and continue execution. Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
replace "Master" with "Host" Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
3a2482b
to
1bf5aad
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.
LGTM
Point to the main branch tha integrate the pull request OpenAMP#1 Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
rpmsg-echo-test example demonstrates how to write linux userspace application that uses rpmsg devices in kernel space. This application sends pre-defined payload to remote processor firmware and waits for remote processor to send same payload back. It then verifies received payload integrity. Number of packets to send to remote processor can be configured from command line
Signed-off-by: Tanmay Shah tanmay.shah@amd.com