Commit 1ddda837 authored by Jean-Philippe Brucker's avatar Jean-Philippe Brucker Committed by Greg Kroah-Hartman

arm64: Clear OSDLR_EL1 on CPU boot

commit 6fda41bf upstream.

Some firmwares may reboot CPUs with OS Double Lock set. Make sure that
it is unlocked, in order to use debug exceptions.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ab905782
...@@ -135,6 +135,7 @@ NOKPROBE_SYMBOL(disable_debug_monitors); ...@@ -135,6 +135,7 @@ NOKPROBE_SYMBOL(disable_debug_monitors);
*/ */
static int clear_os_lock(unsigned int cpu) static int clear_os_lock(unsigned int cpu)
{ {
write_sysreg(0, osdlr_el1);
write_sysreg(0, oslar_el1); write_sysreg(0, oslar_el1);
isb(); isb();
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment