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

FF-A VM availability messages #6958

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Conversation

balint-dobszay-arm
Copy link
Contributor

No description provided.

@@ -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;
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -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 |
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@balint-dobszay-arm
Copy link
Contributor Author

I think the qemu failure is unrelated to this PR. The checkpatch failure is just for a long error message.

@jforissier
Copy link
Contributor

I think the qemu failure is unrelated to this PR.

That is #6952 again, indeed.

The checkpatch failure is just for a long error message.

...that we want to keep on a single line, yes. Thanks!

Copy link
Contributor

@jenswi-linaro jenswi-linaro left a 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]>

@balint-dobszay-arm
Copy link
Contributor Author

Thanks, tag applied

@jforissier
Copy link
Contributor

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]>
@balint-dobszay-arm
Copy link
Contributor Author

Thanks, tag applied

Please apply the tag to the first commit too 😉

Ooops, fixed!

@jforissier jforissier merged commit 8dde314 into OP-TEE:master Aug 16, 2024
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants