All of lore.kernel.org
 help / color / mirror / Atom feed
From: tingwei@codeaurora.org
To: Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Set DBGCLAIM when self-host debug is enabled
Date: Wed, 06 Jan 2021 18:29:53 +0800	[thread overview]
Message-ID: <512a30e6cc6877687c10c0f9ccc3c4c5@codeaurora.org> (raw)

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

             reply	other threads:[~2021-01-06 10:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 10:29 tingwei [this message]
2021-01-06 12:23 ` Set DBGCLAIM when self-host debug is enabled Mark Rutland
2021-01-06 12:23   ` Mark Rutland
2021-01-08  4:00   ` Tingwei Zhang
2021-01-11 11:44     ` Mark Rutland
2021-01-11 11:44       ` Mark Rutland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=512a30e6cc6877687c10c0f9ccc3c4c5@codeaurora.org \
    --to=tingwei@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.