arm64: debug: don't mask DAIF for mdscr_write()
authorAda Couprie Diaz <ada.coupriediaz@arm.com>
Mon, 27 Jul 2026 16:34:10 +0000 (17:34 +0100)
committerWill Deacon <will@kernel.org>
Thu, 6 Aug 2026 13:07:45 +0000 (13:07 +0000)
commit7cf2d6efb86fc98c4f5f78e438e2e32d88d76ff7
treed6c0f13c5c5eb81e147edbe9623ce10a256d5ca1
parentb7f741717d1e7bcdca2d5eaf3babbb5026cdb3a4
arm64: debug: don't mask DAIF for mdscr_write()

Masking DAIF around the write to MDSCR_EL1 doesn't do anything: we can
write to sysregs with interrupts unmasked, and writing to PSTATE is
not a context synchronization event so it does not synchronize it.

This is done in the context of a general interrupt handling cleanup,
so it does not address the missing context synchronization for the
MDSCR_EL1 write, staying consistent with the current state.  This
should be addressed in a future patch.

Signed-off-by: Ada Couprie Diaz <ada.coupriediaz@arm.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/debug-monitors.c