arm-trusted-firmware/lib
Soby Mathew c97cba4ea4 Fix the CAS spinlock implementation
Make the spinlock implementation use ARMv8.1-LSE CAS instruction based
on a platform build option. The CAS-based implementation used to be
unconditionally selected for all ARM8.1+ platforms.

The previous CAS spinlock implementation had a bug wherein the spin_unlock()
implementation had an `sev` after `stlr` which is not sufficient. A dsb is
needed to ensure that the stlr completes prior to the sev. Having a dsb is
heavyweight and a better solution would be to use load exclusive semantics
to monitor the lock and wake up from wfe when a store happens to the lock.
The patch implements the same.

Change-Id: I5283ce4a889376e4cc01d1b9d09afa8229a2e522
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2019-10-04 10:19:35 +02:00
..
aarch32 Fix Coverity #261967, Infinite loop 2019-08-06 13:06:03 +01:00
aarch64 Add support for Branch Target Identification 2019-05-24 14:44:45 +01:00
bl_aux_params Introduce lightweight BL platform parameter library 2019-07-18 16:42:40 -07:00
compiler-rt compiler_rt: Import lshrdi3.c file 2018-11-06 15:42:51 +01:00
coreboot Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
cpus Zeus: apply the MSR SSBS instruction 2019-09-11 14:37:42 +01:00
el3_runtime Fix MTE support from causing unused variable warnings 2019-09-20 09:17:55 +01:00
extensions Refactor ARMv8.3 Pointer Authentication support code 2019-09-13 14:11:59 +01:00
libc libc: fix sparse warning for __assert() 2019-09-11 11:28:46 +09:00
libfdt libfdt: Downgrade to version 1.4.6-9 2018-10-30 13:42:13 +00:00
locks Fix the CAS spinlock implementation 2019-10-04 10:19:35 +02:00
optee Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00
pmf Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci Adding new optional PSCI hook pwr_domain_on_finish_late 2019-09-25 22:06:44 -05:00
romlib Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
semihosting Remove several warnings reported with W=2 2019-04-01 10:43:42 +01:00
sprt SPM: Introduce SPRT C host library 2018-12-11 15:04:24 +00:00
stack_protector Add support for default stack-protector flag 2019-04-30 14:42:40 +01:00
utils plat/arm: Sanitise includes 2019-01-25 16:04:10 +00:00
xlat_tables Fix Coverity #343008, Side affect in assertion 2019-08-06 13:06:03 +01:00
xlat_tables_v2 Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00
zlib Sanitise includes across codebase 2019-01-04 10:43:17 +00:00