aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>2019-10-23 11:48:02 +0530
committerThomas Abraham <thomas.abraham@arm.com>2020-04-16 12:59:20 +0530
commit8f73b826efa601a497bccbedcc37f0087f0d0923 (patch)
tree42d53d751cdf1aaa03d927a6d52bb047a3d2b084
parent53a342e22f81d487aa4af2dbe97fde06e89a3bce (diff)
[HACK]: spinlock: send explicit event after store release instructionRD-INFRA-2020.04.16
stlr instruction in the spin_unlock function is expected to send an implicit event to all CPU cores. In a cross chip scenario, FVP has stability issues while sending this implicit event across chips. To avoid the stability issues, add sev instruction which sends explicit events to all cores. Explicit events are propagated across chips without any stability issues. Change-Id: I94db4f940e98f9b60f4120d0bde4930f9d31440c Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
-rw-r--r--lib/locks/exclusive/aarch64/spinlock.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/locks/exclusive/aarch64/spinlock.S b/lib/locks/exclusive/aarch64/spinlock.S
index e941b8a34..2c01a3bee 100644
--- a/lib/locks/exclusive/aarch64/spinlock.S
+++ b/lib/locks/exclusive/aarch64/spinlock.S
@@ -71,5 +71,6 @@ endfunc spin_lock
*/
func spin_unlock
stlr wzr, [x0]
+ sev
ret
endfunc spin_unlock