commit | f4fc7ee1d4d60031deaba0c415982357936ece10 | [log] [tgz] |
---|---|---|
author | Balint Dobszay <balint.dobszay@arm.com> | Mon Jun 16 15:03:55 2025 +0200 |
committer | Balint Dobszay <balint.dobszay@arm.com> | Mon Jun 16 16:13:52 2025 +0200 |
tree | 9933d00cdd9da29a4d5de08ce8d66c6928eb5ab4 | |
parent | 68389c7661a9558d3c431559a3e1d89c22959861 [diff] |
Fix page count handling in FFA_MEM_PERM_GET FF-A v1.2 and lower doesn't support passing a page count argument in the FFA_MEM_PERM_GET interface. The corresponding register value MBZ, but the actual number of pages affected by the call is always 1. Starting from FF-A v1.3 an arbitrary page count is allowed, but to keep backwards compatibility the actual register value is offset by -1. Add this logic to the Interface type. Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: Ia4539210544e34016472bf7b069cc20bcd761151
Arm Firmware Framework for Arm A-profile (FF-A) specification
FF-A Memory Management Protocol specification
Library for handling common FF-A related functionality, create and parse interfaces and descriptors defined by FF-A. Starting from FF-A v1.2 the memory management related parts of the specification have been moved to a separate document (link above).
thiserror
) so the library user knows what's wrong.ffa_v1_1
and later modules).zerocopy
traits.The FF-A specification allows different components of a system to use different versions of the specification. The version used at a specific FF-A instance (i.e. an interface between two FF-A components) is discovered at runtime, either by parsing FF-A manifests or using FFA_VERSION
. An FF-A component might have to use multiple versions at runtime on its different interfaces, therefore this library must be able to support this and having a compile time fixed version is not possible. Because of this, most of the functions to create or parse FF-A messages and data structures require passing the FF-A version used at the instance where the serialized data was received from or will be sent to.
FFA_MEM_*
interfaces (partial).The project is MIT and Apache-2.0 dual licensed, see LICENSE-APACHE
and LICENSE-MIT
.
arm-ffa is a trustedfirmware.org maintained project. All contributions are ultimately merged by the maintainers listed below.
Please follow the directions of the Trusted Firmware Processes
Contributions are handled through review.trustedfirmware.org.
Please follow the directions of the Trusted Firmware Security Center
Copyright 2025 Arm Limited and/or its affiliates open-source-office@arm.com
Arm is a registered trademark of Arm Limited (or its subsidiaries or affiliates).