-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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 support for imx8mp_evk M7 core for openamp_rsc_table sample #78585
Add support for imx8mp_evk M7 core for openamp_rsc_table sample #78585
Conversation
This enables openamp_rsc_table sample for imx8mp_evk on M7 core Signed-off-by: Alexandru Lastur <[email protected]>
685dd2d
to
db07b16
Compare
db07b16
to
5f55eb5
Compare
5f55eb5
to
c55d466
Compare
c55d466
to
bbf90ae
Compare
@alxlastur looks good to me! Ready to merge. @arnopo please have a look. |
lib/open-amp/Kconfig
Outdated
@@ -18,3 +18,19 @@ config OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF | |||
help | |||
This option specifies the number of buffer used in a Vring for | |||
interprocessor communication | |||
|
|||
config IPM_RX_CHANNEL_ID |
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.
related to the resource table not to iPM so config should be renamed
OPENAMP_RSC_TABLE_IPM_RX_ID
or something similar
lib/open-amp/resource_table.h
Outdated
#define VRING0_ID 0 /* (master to remote) fixed to 0 for Linux compatibility */ | ||
#endif |
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.
CONFIG_IPM_RX_CHANNEL_ID
has a default value set to 0
Having only following code
#define VRING0_ID CONFIG_IPM_RX_CHANNEL_ID
should work in all cases, no need to use #ifdef CONFIG_IPM_RX_CHANNEL_ID
( TBC by tests)
bbf90ae
to
9ff2b8e
Compare
lib/open-amp/resource_table.h
Outdated
#define VRING_RX_ADDRESS -1 /* allocated by Master processor */ | ||
#define VRING_TX_ADDRESS -1 /* allocated by Master processor */ | ||
#define VRING_BUFF_ADDRESS -1 /* allocated by Master processor */ | ||
#define VRING_ALIGNMENT 16 /* fixed to match with Linux constraint */ | ||
|
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 think you changed something here so that it appears in the diff.
-#define VRING_ALIGNMENT 16 /* fixed to match with Linux constraint */
+#define VRING_ALIGNMENT 16 /* fixed to match with Linux constraint */
This is not what we want. If you want to change the spacing or anything else we can later create a separate patch.
9ff2b8e
to
987143f
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.
A last minor update on comment
lib/open-amp/resource_table.h
Outdated
#define VRING1_ID \ | ||
CONFIG_OPENAMP_RSC_TABLE_IPM_TX_ID /* (remote to master) default to 1 for \ | ||
* Linux compatibility \ | ||
*/ |
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.
The multiline comment format is not correct and the term master
should be removed.
Furthermore the sentence default to 0/1 for Linux compatibility
seems deprecated now , you can remove it.
proposal:
#define VRING0_ID CONFIG_OPENAMP_RSC_TABLE_IPM_RX_ID /* (host to remote) /
#define VRING1_ID CONFIG_OPENAMP_RSC_TABLE_IPM_TX_ID / (remote to host) */
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. @arnopo please have a look. Thank you
987143f
to
b995459
Compare
Currently, Zephyr is always sending back notifications to AP (e.g Linux in our case) on channel 0. But this currently doesn't work if Linux uses other channel id for communication. So, add option to use predefined vring ID that can accomodate Linux used ID. Signed-off-by: Alexandru Lastur <[email protected]>
b995459
to
14b0f95
Compare
@dbaluta please have a look |
Hi @alxlastur! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
Add support for imx8mp_evk M7 core for openamp_rsc_table sample