Skip to content
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

Open-AMP update to SHA 5fce292fd447 #17

Merged

Conversation

iuliana-prodan
Copy link
Contributor

@iuliana-prodan iuliana-prodan commented Sep 29, 2023

Open-AMP update to SHA 5fce292fd447c2396731efeb7852ab7d84454aa1 - https://github.com/OpenAMP/open-amp/commits/main

@iuliana-prodan
Copy link
Contributor Author

@carlocaione @arnopo please review
Thanks

@iuliana-prodan
Copy link
Contributor Author

iuliana-prodan commented Sep 29, 2023

In this PR I've taken also this commit : OpenAMP/open-amp@e63d07d and I get the following warnings:

[5/168] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/home/nxa06898/data/zephyrproject/zephyr), build: zephyr-v3.4.0-4679-g8f0d319d8f2b
[66/168] Building C object zephyr/CMakeFiles/zephyr.dir/lib/open-amp/resource_table.c.obj
In file included from /home/nxa06898/data/zephyrproject/zephyr/lib/open-amp/resource_table.c:30:
/home/nxa06898/data/zephyrproject/zephyr/lib/open-amp/./resource_table.h:29: warning: "VRING_ALIGNMENT" redefined
   29 | #define VRING_ALIGNMENT         16  /* fixed to match with Linux constraint */
      | 
In file included from /home/nxa06898/data/zephyrproject/zephyr/lib/open-amp/./resource_table.h:11:
/home/nxa06898/data/zephyrproject/modules/lib/open-amp/open-amp/lib/include/openamp/virtio.h:139: note: this is the location of the previous definition
  139 | #define VRING_ALIGNMENT           4096
      | 
[158/168] Building C object CMakeFiles/app.dir/src/main_remote.c.obj
In file included from /home/nxa06898/data/zephyrproject/zephyr/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c:18:
/home/nxa06898/data/zephyrproject/zephyr/lib/open-amp/./resource_table.h:29: warning: "VRING_ALIGNMENT" redefined
   29 | #define VRING_ALIGNMENT         16  /* fixed to match with Linux constraint */
      | 
In file included from /home/nxa06898/data/zephyrproject/modules/lib/open-amp/open-amp/lib/include/openamp/rpmsg_virtio.h:19,
                 from /home/nxa06898/data/zephyrproject/modules/lib/open-amp/open-amp/lib/include/openamp/open_amp.h:12,
                 from /home/nxa06898/data/zephyrproject/zephyr/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c:16:
/home/nxa06898/data/zephyrproject/modules/lib/open-amp/open-amp/lib/include/openamp/virtio.h:139: note: this is the location of the previous definition
  139 | #define VRING_ALIGNMENT           4096
      | 

when compiling openamp_rsc_table sample for nxp_adsp_imx8m: west build -p always -b nxp_adsp_imx8m samples/subsys/ipc/openamp_rsc_table

Not quite sure how to fix this.
Why was VRING_ALIGNMENT added here in this OpenAMP/open-amp@e63d07d ?

@carlocaione
Copy link
Collaborator

Probably @arnopo must take a look here but it looks a name clash to me. Maybe we can rename the zephyr define?

@arnopo
Copy link
Collaborator

arnopo commented Oct 2, 2023

Probably @arnopo must take a look here but it looks a name clash to me. Maybe we can rename the zephyr define?

The issue is in open-amp lib. the VRING_ALIGNMENT is a system definition that should be common to the main and the coprocessor.
Could you send a patch on open-amp that removes VRING_ALIGNMENT and VRING_DECLARE definition?
They are not used yet and generate a regression, so should be removed for the coming release.

@iuliana-prodan
Copy link
Contributor Author

Probably @arnopo must take a look here but it looks a name clash to me. Maybe we can rename the zephyr define?

The issue is in open-amp lib. the VRING_ALIGNMENT is a system definition that should be common to the main and the coprocessor. Could you send a patch on open-amp that removes VRING_ALIGNMENT and VRING_DECLARE definition? They are not used yet and generate a regression, so should be removed for the coming release.

I see that a PR was created: OpenAMP/open-amp#505

I'll wait for this PR, from open-amp repo, to be merge and then I'll update mine.
Hope it's ok with you @arnopo @carlocaione

@arnopo
Copy link
Collaborator

arnopo commented Oct 3, 2023

Probably @arnopo must take a look here but it looks a name clash to me. Maybe we can rename the zephyr define?

The issue is in open-amp lib. the VRING_ALIGNMENT is a system definition that should be common to the main and the coprocessor. Could you send a patch on open-amp that removes VRING_ALIGNMENT and VRING_DECLARE definition? They are not used yet and generate a regression, so should be removed for the coming release.

I see that a PR was created: OpenAMP/open-amp#505

I'll wait for this PR, from open-amp repo, to be merge and then I'll update mine. Hope it's ok with you @arnopo @carlocaione

@iuliana-prodan
Please, could you have a short test to confirm that OpenAMP/open-amp#505 fix the issue?
Then for your information the open-amp Libraries should be release at the end of this month. I don't know if you want/can wait the release to align the open-amp Zephyr repository.

@iuliana-prodan
Copy link
Contributor Author

iuliana-prodan commented Oct 4, 2023

Probably @arnopo must take a look here but it looks a name clash to me. Maybe we can rename the zephyr define?

The issue is in open-amp lib. the VRING_ALIGNMENT is a system definition that should be common to the main and the coprocessor. Could you send a patch on open-amp that removes VRING_ALIGNMENT and VRING_DECLARE definition? They are not used yet and generate a regression, so should be removed for the coming release.

I see that a PR was created: OpenAMP/open-amp#505
I'll wait for this PR, from open-amp repo, to be merge and then I'll update mine. Hope it's ok with you @arnopo @carlocaione

@iuliana-prodan Please, could you have a short test to confirm that OpenAMP/open-amp#505 fix the issue?

Yes, I've tested it and everything works perfectly.

Then for your information the open-amp Libraries should be release at the end of this month. I don't know if you want/can wait the release to align the open-amp Zephyr repository.

@carlocaione what do you think about this?
Should we wait for the open-amp release?

@carlocaione
Copy link
Collaborator

@carlocaione what do you think about this? Should we wait for the open-amp release?

At least we should wait for that fix to be merged, then we can update this commit with the new SHA.

Synchronize code with sha1 5fce292fd447c2396731efeb7852ab7d84454aa1

Signed-off-by: Iuliana Prodan <[email protected]>
Use WITH_DCACHE option for all cache operations:
vrings, buffers and resource table.
The other options will be deprecated.

Signed-off-by: Iuliana Prodan <[email protected]>
@iuliana-prodan iuliana-prodan changed the title Open-AMP update to SHA f2162a69ac67 Open-AMP update to SHA 5fce292fd447c2396731efeb7852ab7d84454aa1 Oct 13, 2023
@iuliana-prodan iuliana-prodan changed the title Open-AMP update to SHA 5fce292fd447c2396731efeb7852ab7d84454aa1 Open-AMP update to SHA 5fce292fd447 Oct 13, 2023
@iuliana-prodan
Copy link
Contributor Author

@carlocaione what do you think about this? Should we wait for the open-amp release?

At least we should wait for that fix to be merged, then we can update this commit with the new SHA.

Updated open-amp to 5fce292fd447c2396731efeb7852ab7d84454aa1 from https://github.com/OpenAMP/open-amp/commits/main

@arnopo
Copy link
Collaborator

arnopo commented Oct 19, 2023

@carlocaione
I let you merge it,

@carlocaione carlocaione merged commit 214f9fc into zephyrproject-rtos:master Oct 19, 2023
@carlocaione
Copy link
Collaborator

@iuliana-prodan after the freeze is over please push a Zephyr commit to update the manifest SHA

@iuliana-prodan
Copy link
Contributor Author

@iuliana-prodan after the freeze is over please push a Zephyr commit to update the manifest SHA

zephyrproject-rtos/zephyr#64364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants