-
Notifications
You must be signed in to change notification settings - Fork 1.3k
FF-A Notifications #6394
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
FF-A Notifications #6394
Changes from all commits
da034d5
2eb6725
7fd1295
09a38da
cafc04b
ce283b9
4dff0f3
9881d55
d28c0cb
43244fa
d6d60cd
9c3ceb3
4a25f54
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,23 +74,25 @@ | |
| * | ||
| * Call register usage: | ||
| * w3: Service ID, OPTEE_FFA_EXCHANGE_CAPABILITIES | ||
| * w4-w7: Note used (MBZ) | ||
| * w4-w7: Not used (MBZ) | ||
| * | ||
| * Return register usage: | ||
| * w3: Error code, 0 on success | ||
| * w4: Bit[7:0]: Number of parameters needed for RPC to be supplied | ||
| * as the second MSG arg struct for | ||
| * OPTEE_FFA_YIELDING_CALL_WITH_ARG. | ||
| * Bit[31:8]: Reserved (MBZ) | ||
| * w5: Bitfield of secure world capabilities OPTEE_FFA_SEC_CAP_* below, | ||
| * unused bits MBZ. | ||
| * w6-w7: Not used (MBZ) | ||
| * w5: Bitfield of OP-TEE capabilities OPTEE_FFA_SEC_CAP_* | ||
| * w6: The maximum secure world notification number | ||
| * w7: Not used (MBZ) | ||
| */ | ||
| /* | ||
| * Secure world supports using an offset into the argument shared memory | ||
| * object, see also OPTEE_FFA_YIELDING_CALL_WITH_ARG | ||
| */ | ||
| #define OPTEE_FFA_SEC_CAP_ARG_OFFSET BIT(0) | ||
| /* OP-TEE supports asynchronous notification via FF-A */ | ||
| #define OPTEE_FFA_SEC_CAP_ASYNC_NOTIF BIT(1) | ||
|
|
||
| #define OPTEE_FFA_EXCHANGE_CAPABILITIES OPTEE_FFA_BLOCKING_CALL(2) | ||
|
|
||
|
|
@@ -109,6 +111,21 @@ | |
| */ | ||
| #define OPTEE_FFA_UNREGISTER_SHM OPTEE_FFA_BLOCKING_CALL(3) | ||
|
|
||
| /* | ||
| * Inform OP-TEE that normal world is able to receive asynchronous | ||
| * notifications. | ||
| * | ||
| * Call register usage: | ||
| * w3: Service ID, OPTEE_FFA_ENABLE_ASYNC_NOTIF | ||
| * w4: Notification value to request bottom half processing | ||
| * w5-w7: Not used (MBZ) | ||
| * | ||
| * Return register usage: | ||
| * w3: Error code, 0 on success | ||
| * w4-w7: Not used (MBZ) | ||
| */ | ||
| #define OPTEE_FFA_ENABLE_ASYNC_NOTIF OPTEE_FFA_BLOCKING_CALL(5) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not using ID 4?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what happened with ID 4, but this has to be kept in synch with the kernel patches so changing this now might be more trouble than it's worth. |
||
|
|
||
| /* | ||
| * Call with struct optee_msg_arg as argument in the supplied shared memory | ||
| * with a zero internal offset and normal cached memory attributes. | ||
|
|
||
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.
nitpicking: would fit in a single line with s/intid/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.
Agree, but I prefer using the same name for the argument.