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

remoteproc_mmap returns address which can be 0 #236

Open
bentheredonethat opened this issue Oct 26, 2020 · 5 comments
Open

remoteproc_mmap returns address which can be 0 #236

bentheredonethat opened this issue Oct 26, 2020 · 5 comments
Assignees
Labels

Comments

@bentheredonethat
Copy link
Contributor

1 solution is to move returned address to be an argument and make return value success/failure-reason

@arnopo
Copy link
Collaborator

arnopo commented Nov 2, 2020

Do you have a use case that highlights the fact that 0 can be a valid virtual address?
If 0 can be valid, yes, this API needs to be updated, if not, returning NULL in case of failure seems reasonable to me.

@bentheredonethat
Copy link
Contributor Author

yes address can be 0 on Xilinx Zynq UltraScale Plus on RPU running baremetal or FreeRTOS application. The address 0 relates to the lowest value on TCM bank 0A for RPU0 and TCM bank 1A for RPU1.

@arnopo
Copy link
Collaborator

arnopo commented Nov 5, 2020

what about returning METAL_BAD_VA?

@edmooring
Copy link
Contributor

That is probably the best solution, since it doesn't change the documented API. However, the comments in openamp/remoteproc.h need to be enhanced to show the error return value, and any examples that depend on the previous behavior should also be updated. It should probably also be highlighted in the release notes.

@github-actions
Copy link

This issue has been marked as a stale issue because it has been open (more than) 45 days with no activity.

@github-actions github-actions bot added the Stale label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants