summaryrefslogtreecommitdiff
path: root/spm/cactus/cactus_tests
diff options
context:
space:
mode:
authorOlivier Deprez <olivier.deprez@arm.com>2022-06-09 11:37:46 +0200
committerOlivier Deprez <olivier.deprez@arm.com>2022-06-09 14:40:07 +0200
commit728cc567116e03673f4a03b00c448580c9f82158 (patch)
tree8ce7019e77285e195565d67b0e2d907b1c2ac4ec /spm/cactus/cactus_tests
parent5f591f67738a1bbe6b262c53d9dad46ed8bbcd67 (diff)
fix: NS buffer (48b PA) memory sharing between SPs
Fix [1] by increasing cactus number of xlat tables. This permits running the SP SP mem sharing of a buffer located at a high physical PA region. Test config [2] provides the model parameters to configurare the PE, interconnect and SMMU to handle 48b physical address size. [1] https://review.trustedfirmware.org/c/TF-A/tf-a-tests/+/13599 [2] https://review.trustedfirmware.org/c/ci/tf-a-ci-scripts/+/15445 Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: Ia290f15a6d30c898a5219d2bc1c3949b6ae7e7ef
Diffstat (limited to 'spm/cactus/cactus_tests')
-rw-r--r--spm/cactus/cactus_tests/cactus_test_memory_sharing.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/spm/cactus/cactus_tests/cactus_test_memory_sharing.c b/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
index 884240b..d40f94f 100644
--- a/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
+++ b/spm/cactus/cactus_tests/cactus_test_memory_sharing.c
@@ -205,8 +205,11 @@ CACTUS_CMD_HANDLER(req_mem_send_cmd, CACTUS_REQ_MEM_SEND_CMD)
VERBOSE("Sharing at 0x%llx\n", (uint64_t)constituents[0].address);
mem_attrs = MT_RW_DATA;
- if (non_secure)
+
+ if (non_secure) {
mem_attrs |= MT_NS;
+ }
+
ret = mmap_add_dynamic_region(
(uint64_t)constituents[0].address,
(uint64_t)constituents[0].address,