diff options
author | Gabor Kertesz <gabor.kertesz@arm.com> | 2023-01-19 13:01:31 +0100 |
---|---|---|
committer | Juan Yescas <jyescas@google.com> | 2023-11-07 17:23:57 -0800 |
commit | 81c4ab96208c2ef9135f2833b25a04dbb73f2f86 (patch) | |
tree | 80403d011aeeaf6f1dd39082cf6ec35e40248d67 /include/linux/trusty/arm_ffa.h | |
parent | fc355d5410270749aabe1916be02eafa0ec5c07d (diff) | |
download | trusty-main-16k-gs-shusky-5.15.tar.gz |
ANDROID: trusty: Make Trusty driver page size agnosticmain-16k-gs-shusky-5.15
The FW interface expects number of 4K pages when memory is shared.
However the driver and the FW share memory in contigous memory areas,
so converting the number of kernel size pages to Trusty FW size pages
makes the Trusty kernel driver page size agnostic.
Bug: 294914413
Bug: 265047549
Bug: 267220208
Bug: 308663811
Change-Id: Ie0b88c9cb30a0a16ea67f8046c7d0def2886c93f
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
[ Kalesh Singh - Round up vds buffer allocation size to page boundary ]
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Diffstat (limited to 'include/linux/trusty/arm_ffa.h')
-rw-r--r-- | include/linux/trusty/arm_ffa.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/trusty/arm_ffa.h b/include/linux/trusty/arm_ffa.h index ab7b2af..95d31b3 100644 --- a/include/linux/trusty/arm_ffa.h +++ b/include/linux/trusty/arm_ffa.h @@ -36,6 +36,13 @@ SMC_FASTCALL64_NR(SMC_ENTITY_SHARED_MEMORY, nr) /** + * FF-A specification mentions explicitly about '4K pages'. This should + * not be confused with the kernel PAGE_SIZE, which is the translation + * granule kernel is configured and may be one among 4K, 16K and 64K. + */ +#define FFA_PAGE_SIZE SZ_4K + +/** * typedef ffa_endpoint_id16_t - Endpoint ID * * Current implementation only supports VMIDs. FFA spec also support stream |