[PATCH 0/2] arm64: cleanup DAIF.D manipulation
Mark Rutland
mark.rutland at arm.com
Mon Apr 22 04:35:21 PDT 2024
Hi,
These patches cleanup some historical manipulation of DAIF.D which is no
longer necessary. The main goal here is to remove the unnecessary
manipulation so that it's easier to rework DAIF manipulation in future
to handle other exception mask bits (e.g. PSTATE.{ALLINT,PM}). That's
necessary for supporting the architectural NMI, etc.
The first patch updates a stale comment, removing an already-stale
reference to a macro that'll be removed entirely in the second patch.
The second patch removes the unnecessary manipulation of DAIF.D. The
additional lines are all comments added to setup_arch() and
secondary_start_kernel() to explain the initial unmasking of DAIF bits.
The commit message explains the history of the manipulation, and why the
change is desirable and safe.
I've build-tested and boot-tested this locally atop v6.9-rc3.
Mark.
Mark Rutland (2):
arm64: assembler: update stale comment for disable_step_tsk
arm64: defer clearing DAIF.D
arch/arm64/include/asm/assembler.h | 6 +-----
arch/arm64/kernel/setup.c | 11 +++++++++--
arch/arm64/kernel/smp.c | 7 +++++++
arch/arm64/mm/proc.S | 10 ----------
4 files changed, 17 insertions(+), 17 deletions(-)
--
2.30.2
More information about the linux-arm-kernel
mailing list