Skip to content

arm64: cleanup DAIF handling for EL0 returns

Mark Rutland linux-arm-kernel 1 version Applied

Status from this message: Applied to arm64 (for-next/daif-cleanup), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: Simplify do_notify_resume() DAIF maskingarch/arm64/kernel/signal.c+15 -191 reply
2/3arm64: Move do_notify_resume() to entry-common.carch/arm64/include/asm/exception.h arch/arm64/kernel/entry-common.c arch/arm64/kernel/signal.c+35 -343 replies
3/3arm64: Unmask Debug + SError in do_notify_resume()arch/arm64/kernel/entry-common.c+5 -31 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMark BrownItaru Kitayama
SeriesT-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] arm64: cleanup DAIF handling for EL0 returns

Hi,

These patches rework DAIF handling when returning to EL0, simplifiying the logic in do_notify_resume() and allowing Debug + SError to be unmasked for a little longer during exception return.

My primary motivation for these changes is to centralize entry/exit DAIF management within entry-common.c, as this will allow entry/exit sequences to be specialised, and make it much easier to add support for FEAT_NMI. With specialized entry DAIF management, it will also be possible to simplify local_daif_{save,restore}() and local_irq_{save,restore}().

I'm sending this out on its own as (IMO) it's a nice cleanup on its own, and I don't believe that I'll have the remainder of the DAIF rework ready for this cycle.

The series is based on v6.8-rc3.

Mark.

Mark Rutland (3):
arm64: Simplify do_notify_resume() DAIF masking
arm64: Move do_notify_resume() to entry-common.c
arm64: Unmask Debug + SError in do_notify_resume()

 arch/arm64/include/asm/exception.h |  2 +-
 arch/arm64/kernel/entry-common.c   | 36 ++++++++++++++++++++++++++-
 arch/arm64/kernel/signal.c         | 39 ++----------------------------
 3 files changed, 38 insertions(+), 39 deletions(-)
Signature · 7 lines
2.30.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel