-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 VM availability messages #6958
Conversation
8302e60
to
ac591fa
Compare
core/arch/arm/kernel/thread_spmc.c
Outdated
@@ -523,6 +523,10 @@ TEE_Result spmc_fill_partition_entry(uint32_t ffa_vers, void *buf, size_t blen, | |||
|
|||
fpi->partition_properties = part_props; | |||
|
|||
/* In FF-A 1.0 only bits [2:0] are defined, let's mask others */ | |||
if (ffa_vers < FFA_VERSION_1_1) | |||
fpi->partition_properties &= 0x07; |
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.
Please use FFA_PART_PROP_DIRECT_REQ_RECV | FFA_PART_PROP_DIRECT_REQ_SEND | FFA_PART_PROP_INDIRECT_MSGS
instead of 0x7
.
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.
Done
ac591fa
to
2cd448b
Compare
@@ -120,7 +120,9 @@ TEE_Result sp_partition_info_get(uint32_t ffa_vers, void *buf, size_t buf_size, | |||
{ | |||
TEE_Result res = TEE_SUCCESS; | |||
uint32_t part_props = FFA_PART_PROP_DIRECT_REQ_RECV | | |||
FFA_PART_PROP_DIRECT_REQ_SEND; | |||
FFA_PART_PROP_DIRECT_REQ_SEND | |
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.
Aren't these properties owned by the SP? Shouldn't these be read from the manifest?
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.
Done
2cd448b
to
88959d3
Compare
I think the qemu failure is unrelated to this PR. The checkpatch failure is just for a long error message. |
That is #6952 again, indeed.
...that we want to keep on a single line, yes. Thanks! |
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.
Acked-by: Jens Wiklander <[email protected]>
88959d3
to
ef0ee6b
Compare
Thanks, tag applied |
Please apply the tag to the first commit too 😉 |
So far the properties of S-EL0 SPs have been hardcoded when queried by FFA_PARTITION_INFO_GET. This was supposed to be a temporary workaround, so replace this with reading the properties from the SP's manifest which is the proper solution. Acked-by: Jens Wiklander <[email protected]> Signed-off-by: Balint Dobszay <[email protected]>
The VM availability messages sent by the hypervisor to an SP should be forwarded to the SP, if the SP has subscribed for these based on the SP manifest. Acked-by: Jens Wiklander <[email protected]> Signed-off-by: Balint Dobszay <[email protected]>
ef0ee6b
to
a51894f
Compare
Ooops, fixed! |
No description provided.