linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Set DBGCLAIM when self-host debug is enabled
@ 2021-01-06 10:29 tingwei
  2021-01-06 12:23 ` Mark Rutland
  0 siblings, 1 reply; 4+ messages in thread
From: tingwei @ 2021-01-06 10:29 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland; +Cc: linux-arm-kernel, linux-kernel

Hi Will and Mark,

In recent implementation of save/restore ARM debug registers in EL2/EL3, 
we found
it's necessary to know whether self-host debug is enabled so EL2/EL3 can 
avoid
saving/restoring debug registers but no one is using debug.

In ARM PSCI, it has one option to set DBGCLAIM[1] to 1 to indicate that 
debug is
in use by a self-host debugger. Do you think it's resonable to add this 
to Kernel?

For example, can we set DBGCLAIM[1] to 1 in enable_debug_monitors() and 
clear it
in disable_debug_monitors().

Thanks,
Tingwei

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora 
Forum, a Linux Foundation Collaborative Project

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

end of thread, other threads:[~2021-01-11 11:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 10:29 Set DBGCLAIM when self-host debug is enabled tingwei
2021-01-06 12:23 ` Mark Rutland
2021-01-08  4:00   ` Tingwei Zhang
2021-01-11 11:44     ` Mark Rutland

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).