linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: Clear OS Double Lock Register
@ 2019-04-08 17:17 Jean-Philippe Brucker
  2019-04-08 17:17 ` [PATCH 1/2] arm64: Clear OSDLR_EL1 on CPU boot Jean-Philippe Brucker
  2019-04-08 17:17 ` [PATCH 2/2] arm64: Save and restore OSDLR_EL1 Jean-Philippe Brucker
  0 siblings, 2 replies; 5+ messages in thread
From: Jean-Philippe Brucker @ 2019-04-08 17:17 UTC (permalink / raw)
  To: catalin.marinas, will.deacon; +Cc: linux-arm-kernel

Some firmwares may boot Linux with the OS Double Lock Register set to 1,
even though it normally resets to 0. This happens for example on my
ThunderX2 machine when hotplugging a CPU or rebooting via kexec. As a
result the affected CPU cannot generate debug exceptions from HW
breakpoints or single-step. Sanitize the OSDLR value on CPU boot and
resume.

Jean-Philippe Brucker (2):
  arm64: Clear OS Double Lock on CPU boot
  arm64: Save and restore OSDLR_EL1

 arch/arm64/kernel/debug-monitors.c |  1 +
 arch/arm64/mm/proc.S               | 34 ++++++++++++++++--------------
 2 files changed, 19 insertions(+), 16 deletions(-)

-- 
2.21.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-09 11:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08 17:17 [PATCH 0/2] arm64: Clear OS Double Lock Register Jean-Philippe Brucker
2019-04-08 17:17 ` [PATCH 1/2] arm64: Clear OSDLR_EL1 on CPU boot Jean-Philippe Brucker
2019-04-08 17:17 ` [PATCH 2/2] arm64: Save and restore OSDLR_EL1 Jean-Philippe Brucker
2019-04-09 10:37   ` Will Deacon
2019-04-09 11:29     ` Jean-Philippe Brucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).