Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Will Deacon <will@kernel.org>
To: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Catalin Marinas <catalin.marinas@arm.com>
Subject: Re: [PATCH V2] arm64/debug: Drop redundant DBG_MDSCR_* macros
Date: Fri, 9 May 2025 17:17:53 +0100	[thread overview]
Message-ID: <20250509161752.GC5984@willie-the-truck> (raw)
In-Reply-To: <20250508044752.234543-1-anshuman.khandual@arm.com>

On Thu, May 08, 2025 at 10:17:52AM +0530, Anshuman Khandual wrote:
> MDSCR_EL1 has already been defined in tools sysreg format and hence can be
> used in all debug monitor related call paths. Subsequently all DBG_MDSCR_*
> macros become redundant and hence can be dropped off completely. While here
> convert all variables handling MDSCR_EL1 register as u64 which reflects its
> true width as well.
> 
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
> Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
> ---
> This patch applies on v6.15-rc5
> 
> Changes in V2:
> 
> - Changed reg, val width to u64 in cortex_a76_erratum_1463225_svc_handler() per Ada
> - Changed mdscr register width to uint64_t in enable_monitor_debug_exceptions() and
>   install_ss() per Ada
>     
> Changes in V1:
> 
> https://lore.kernel.org/all/20250417105253.3188976-1-anshuman.khandual@arm.com/
> 
>  arch/arm64/include/asm/assembler.h            |  4 ++--
>  arch/arm64/include/asm/debug-monitors.h       |  6 -----
>  arch/arm64/kernel/debug-monitors.c            | 22 +++++++++----------
>  arch/arm64/kernel/entry-common.c              |  4 ++--
>  .../selftests/kvm/arm64/debug-exceptions.c    |  4 ++--
>  5 files changed, 17 insertions(+), 23 deletions(-)

Can you post the selftest change as a separate patch, please?

Will


      parent reply	other threads:[~2025-05-09 18:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-08  4:47 [PATCH V2] arm64/debug: Drop redundant DBG_MDSCR_* macros Anshuman Khandual
2025-05-08 13:42 ` Ada Couprie Diaz
2025-05-09 16:17 ` Will Deacon [this message]

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=20250509161752.GC5984@willie-the-truck \
    --to=will@kernel.org \
    --cc=anshuman.khandual@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox