提交 74804fd3 编写于 作者: J Jean-Philippe Brucker 提交者: Xie XiuQi

arm64: Clear OSDLR_EL1 on CPU boot

mainline inclusion
from mainline-5.1
commit 6fda41bf
category: bugfix
bugzilla: 14500
CVE: NA

-------------------------------------------------

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: NJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: NWill Deacon <will.deacon@arm.com>
Signed-off-by: NHongbo Yao <yaohongbo@huawei.com>
Reviewed-by: NXuefeng Wang <wxf.wang@hisilicon.com>
Reviewed-by: NChen Zhou <chenzhou10@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 c758510c
...@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册