-
Notifications
You must be signed in to change notification settings - Fork 294
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
rpmsg: reserve 0-1023 for predefined services in rpmsg_create_ept #209
Conversation
caller can still pass the fixed address from 0 to 1023, but rpmsg_create_ept allocate the dynamic address from 1024. |
I think here it is important that we are aligned first on the Linux implementation.
So here the main point here is to understand what is a predefined service Now let's have look at __rpmsg_create_ept to understand how RPMSG_RESERVED_ADDRESSES is used
Regarding this code a predefined service is a service with a fixed address. And as this function can be called through rpmsg_create_ept API, any user can define a "predefined" service by specifying the chinfo.src address.
Did i miss something? |
Yes, your understand is correct. This patch align OpenAMP implementation with Linux kernel. The only difference is we trust that caller don't pass the duplicated address inside 0-1023 and then bypass the check to simplify the implemntation. |
This version seems to me a good compromise that would match with Linux implementation, while keeping compatibility with existing implementation:
I just need to do few more test on my side before approving it. Then the title of this patch would need to be reworked as rpmsg_create_ept can allocated reserved address. @edmooring: could you review it and give your opinion please? |
and allocate the dynamic address from 1024 like Linux kernel Signed-off-by: Xiang Xiao <[email protected]>
518e507
to
da354dc
Compare
@arnopo done. |
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.
Aside from my comments, looks good to go.
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.
Good to go.
and allocate the dynamic address from 1024 like Linux kernel
Signed-off-by: Xiang Xiao [email protected]