From: vallau01 Date: Tue, 2 Aug 2022 14:16:11 +0000 (+0200) Subject: feat(hikey960): add memory sharing hooks for SPMC_AT_EL3 X-Git-Tag: baikal/aarch64/sdk5.9~45^2~2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=5f905a249839e9e20ebf44c22d95caaf3a2e5611;p=arm-tf.git feat(hikey960): add memory sharing hooks for SPMC_AT_EL3 These allows a platform to do any System-MMU/IOMMU configuration in line with FF-A memory sharing. Change-Id: Id517759198421a32c5d16bf5bb99590275e77736 Signed-off-by: vallau01 Signed-off-by: Lukas Hanel --- diff --git a/plat/hisilicon/hikey960/hikey960_bl31_setup.c b/plat/hisilicon/hikey960/hikey960_bl31_setup.c index f39476ebf..49918ef87 100644 --- a/plat/hisilicon/hikey960/hikey960_bl31_setup.c +++ b/plat/hisilicon/hikey960/hikey960_bl31_setup.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -182,6 +183,26 @@ int plat_spmc_shmem_datastore_get(uint8_t **datastore, size_t *size) *size = SPMC_SHARED_MEMORY_OBJ_SIZE; return 0; } + +/* + * Add dummy implementations of memory management related platform hooks. + * These can be used to implement platform specific functionality to support + * a memory sharing/lending operation. + * + * Note: The hooks must be located as part of the initial share request and + * final reclaim to prevent order dependencies with operations that may take + * place in the normal world without visibility of the SPMC. + */ +int plat_spmc_shmem_begin(struct ffa_mtd *desc) +{ + return 0; +} + +int plat_spmc_shmem_reclaim(struct ffa_mtd *desc) +{ + return 0; +} + #endif void bl31_platform_setup(void)