-
Notifications
You must be signed in to change notification settings - Fork 291
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
handle_vdev_rsc not checking remoteproc_allocate_id #386
Comments
I don't see where rproc->bitmap gets used anywhere else in the code. Are handle_vdev_rsc and the bitmap field of the remoteproc struct necessary? |
Right, |
|
Is it valid to use RSC_NOTIFY_ID_ANY as the notify ID in the resource table? |
Yes that's means that the device lets the host to define them. And pre-defined ID is not supported on Linux Side: |
Sorry @tammyleino Here is your comment with my answer
Right, That would be much better! |
Thank you @arnopo - I was having an internet hiccup and it posted thrice. I deleted two of them - you were probably deleting at the same time as me. |
@arnopo In the case that the notifyid is duplicated or we are somehow out of new IDs to assign to the device, should the resource table parsing fail or continue to the next resource? ie; should handle_vdev_rsc() return -RPROC_ERR_RSC_TAB_NS or another error that would cause parsing to stop and return failure? |
@tammyleino @arnopo, |
Agree with @edmooring, I guess that such cases should only occurs during a development phase.
|
I opened two separate pull requests for the items discussed in this issue. |
Is the purpose of remoteproc_allocate_id in handle_vdev_rsc to ensure that the notify_id is unique? If so, it does not seem that the code is handling errors properly.
I would expect that the handle_vdev_rsc returns an error if the given ID is already in use.
The text was updated successfully, but these errors were encountered: