arm-trusted-firmware/services/std_svc/spmd
Rakshit Goyal 8f60d99f44 fix(spmd): prevent SIMD context loss
When SPMD_SPM_AT_SEL2 is enabled, saving and restoring the SIMD context
is not needed because the SPMC handles it. The function
spmd_secure_interrupt_handler incorrectly restores the SWD SIMD context
before entering the SPMC without saving the NWD SIMD context, leading to
its loss. Furthermore, the SWD SIMD context is saved after returning
from the SPMC which is unnecessary.

This commit prevents the restoration of the SWD SIMD context before SPMC
entry and the saving of the SWD SIMD context after returning from the
SPMC when SPMD_SPM_AT_SEL2 is enabled. This ensures the preservation of
the NWD SIMD context.

Change-Id: I16a3e698e61da7019b3a670475e542d1690a5dd9
Signed-off-by: Rakshit Goyal <rakshit.goyal@arm.com>
2025-02-13 08:48:44 +00:00
..
aarch64 SPMD: add SPM dispatcher based upon SPCI Beta 0 spec 2020-02-10 14:09:21 +00:00
spmd.mk fix(build): remove duplicated include order 2023-11-01 13:54:58 -05:00
spmd_logical_sp.c fix(spmd): fix build failure due to redefinition 2024-12-03 16:02:21 +00:00
spmd_main.c fix(spmd): prevent SIMD context loss 2025-02-13 08:48:44 +00:00
spmd_pm.c fix(spmd): fix FFA_VERSION forwarding 2023-10-25 11:27:10 +02:00
spmd_private.h fix(spmd): fix build failure due to redefinition 2024-12-03 16:02:21 +00:00