Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59cae187 authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Trilok Soni
Browse files

ARM64: spinlock: Add SEV and dsb(ishst) in unlock code



In certain unexplained cases, the stlr alone might not wakeup
the processor waiting in WFE on a spinlock.

Add an explicity dsb(ishst) and SEV in write_unlock, read_unlock
and spin_unlock to ensure that the core waiting on the lock
wakes up from WFE.

ISHST variant of the DSB should be fine here since this would
be applicable for the inner shareable domain only with the
store instruction before it.

Selectable by config option ARM64_SEV_IN_LOCK_UNLOCK and it
is disabled by default.

CRs-Fixed: 962923
Change-Id: I691ff5713d4d564623b75b053b40d1f46d74868a
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: default avatarTrilok Soni <tsoni@codeaurora.org>
parent b7ca2f4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment