summaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorRaghu Krishnamurthy <raghu.ncstate@gmail.com>2023-01-16 19:44:03 -0800
committerRaghu Krishnamurthy <raghu.ncstate@gmail.com>2023-05-10 15:21:18 -0700
commit353a6cebde2586a866142f7dfbc6b8df644d03cd (patch)
treec498aead8680c2807f0a716c681ced2f9f011cfb /plat
parentc61a188e932400ab599e0a4d4b07c2df532f3590 (diff)
test(interrupts): add tests for interrupt routing
This patch modifies existing secure interrupt tests to test interrupt routing to particular cores/mpidr. Hafnium added a new field "interrupts-target" to enable targeting interrupts to cores that are NOT the boot core. This change modifies the cactus manifest to target the secure watchdog timer (existing secure interrupt on fvp) to a particular mpidr. To test interrupt handling, it converts the existing tests that use the secure watchdog timer to test interrupt handling, to multi core tests, such that the same test runs on the appropriate mpidr as opposed to the boot core. Since the interrupt may be targeted to a secondary PE, the corresponding secondary vcpus of cactus need a round of ffa_run to function, which has also been added. The mpidr to target to is platform specific and is defined as a platform specific macro. Signed-off-by: Raghu Krishnamurthy <raghu.ncstate@gmail.com> Change-Id: I27f48cde68945e59fb2ce84625ca145048eaffd1
Diffstat (limited to 'plat')
-rw-r--r--plat/arm/fvp/include/platform_def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/arm/fvp/include/platform_def.h b/plat/arm/fvp/include/platform_def.h
index b8871c4..ca391b3 100644
--- a/plat/arm/fvp/include/platform_def.h
+++ b/plat/arm/fvp/include/platform_def.h
@@ -308,4 +308,7 @@
#define ARM_SECURE_SERVICE_BUFFER_BASE 0xff600000ull
#define ARM_SECURE_SERVICE_BUFFER_SIZE 0x10000ull
+
+#define PLAT_INTERRUPT_MPIDR 0x81010300
+
#endif /* __PLATFORM_DEF_H__ */