summaryrefslogtreecommitdiff
path: root/plat/arm/fvp
diff options
context:
space:
mode:
authorMark Dykes <mardyk01@review.trustedfirmware.org>2020-10-14 15:14:15 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2020-10-14 15:14:15 +0000
commit8c65f72e903377d42b78239eefc6e0d78166e8c1 (patch)
tree8f22d22a7d7b900ac1c1d2da36f067006f6f1371 /plat/arm/fvp
parent970eb05ce05d9b01fd48fb420701a3145a50e223 (diff)
parent250fccc9557e7a746a304a17e192c9d1d4894138 (diff)
Merge "TFTF: Fix maximum number of CPUs in DSU cluster"
Diffstat (limited to 'plat/arm/fvp')
-rw-r--r--plat/arm/fvp/platform.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/plat/arm/fvp/platform.mk b/plat/arm/fvp/platform.mk
index b993d72..3c4311f 100644
--- a/plat/arm/fvp/platform.mk
+++ b/plat/arm/fvp/platform.mk
@@ -28,21 +28,31 @@ ifeq ($(FVP_MAX_PE_PER_CPU),2)
$(eval $(call CREATE_SEQ,CLS,1))
$(eval $(call CREATE_SEQ,CPU,8))
else
+# CPU inside DynamIQ Shared Unit: 1 cluster with up to 8 CPUs
+ifeq ($(FVP_CLUSTER_COUNT),1)
+$(eval $(call CREATE_SEQ,CLS,1))
+$(eval $(call CREATE_SEQ,CPU,8))
+else
# CPU with single thread: max 4 clusters with up to 4 CPUs
$(eval $(call CREATE_SEQ,CLS,4))
$(eval $(call CREATE_SEQ,CPU,4))
endif
+endif
# Check cluster count
ifneq ($(FVP_CLUSTER_COUNT),$(filter $(FVP_CLUSTER_COUNT),$(CLS)))
$(error "Incorrect FVP_CLUSTER_COUNT = ${FVP_CLUSTER_COUNT} \
- specified for FVP port with FVP_MAX_PE_PER_CPU = ${FVP_MAX_PE_PER_CPU}")
+ specified for FVP port with \
+ FVP_MAX_CPUS_PER_CLUSTER = ${FVP_MAX_CPUS_PER_CLUSTER} \
+ FVP_MAX_PE_PER_CPU = ${FVP_MAX_PE_PER_CPU}")
endif
# Check number of CPUs per cluster
ifneq ($(FVP_MAX_CPUS_PER_CLUSTER),$(filter $(FVP_MAX_CPUS_PER_CLUSTER),$(CPU)))
$(error "Incorrect FVP_MAX_CPUS_PER_CLUSTER = ${FVP_MAX_CPUS_PER_CLUSTER} \
- specified for FVP port with FVP_MAX_PE_PER_CPU = ${FVP_MAX_PE_PER_CPU}")
+ specified for FVP port with \
+ FVP_CLUSTER_COUNT = ${FVP_CLUSTER_COUNT} \
+ FVP_MAX_PE_PER_CPU = ${FVP_MAX_PE_PER_CPU}")
endif
# Pass FVP topology definitions to the build system