From: Yeoreum Yun <yeoreum.yun@arm.com>
To: catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org,
oliver.upton@linux.dev, ardb@kernel.org, frederic@kernel.org,
james.morse@arm.com, joey.gouly@arm.com,
scott@os.amperecomputing.com
Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/7] support FEAT_LSUI and apply it on futex atomic ops
Date: Thu, 26 Jun 2025 08:56:39 +0100 [thread overview]
Message-ID: <aFz9N1Bs6Y5f1sCT@e129823.arm.com> (raw)
In-Reply-To: <20250617183635.1266015-1-yeoreum.yun@arm.com>
Gentle ping in case of forgotten.
> Since Armv9.6, FEAT_LSUI supplies the load/store instructions for
> previleged level to access to access user memory without clearing
> PSTATE.PAN bit.
>
> This patchset support FEAT_LUSI and applies in futex atomic operation
> where can replace from ldxr/stlxr pair implmentation with clearing
> PSTATE.PAN bit to correspondant load/store unprevileged atomic operation
> without clearing PSTATE.PAN bit.
>
> Patch Sequences
> ================
>
> Patch #1 adds cpufeature for FEAT_LUSI
>
> Patch #2 expose FEAT_LUSI to guest
>
> Patch #3 adds Kconfig for FEAT_LUSI
>
> Patch #4 separtes former futex atomic-op implmentation from futex.h
> to futex_ll_sc_u.h
>
> Patch #5 implments futex atomic operation using lsui instruction.
>
> Patch #6 introduces lsui.h to apply runtime patch to use former
> implmentation when FEAT_LUSI doesn't support.
>
> Patch #7 applies lsui.h into arch_futext_atomic_op().
>
> Patch History
> ==============
> from v2 to v3:
> - expose FEAT_LUSI to guest
> - add help section for LUSI Kconfig
> - https://lore.kernel.org/all/20250611151154.46362-1-yeoreum.yun@arm.com/
>
> from v1 to v2:
> - remove empty v9.6 menu entry
> - locate HAS_LUSI in cpucaps in order
> - https://lore.kernel.org/all/20250611104916.10636-1-yeoreum.yun@arm.com/
>
> Yeoreum Yun (7):
> arm64: cpufeature: add FEAT_LSUI
> arm64/kvm: expose FEAT_LSUI to guest
> arm64/Kconfig: add LSUI Kconfig
> arm64/futex: move futex atomic logic with clearing PAN bit
> arm64/futex: add futex atomic operation with FEAT_LSUI
> arm64/asm: introduce lsui.h
> arm64/futex: support futex with FEAT_LSUI
>
> arch/arm64/Kconfig | 9 ++
> arch/arm64/include/asm/futex.h | 99 ++++++-------------
> arch/arm64/include/asm/futex_ll_sc_u.h | 115 +++++++++++++++++++++
> arch/arm64/include/asm/futex_lsui.h | 132 +++++++++++++++++++++++++
> arch/arm64/include/asm/lsui.h | 37 +++++++
> arch/arm64/kernel/cpufeature.c | 8 ++
> arch/arm64/kvm/sys_regs.c | 5 +-
> arch/arm64/tools/cpucaps | 1 +
> 8 files changed, 336 insertions(+), 70 deletions(-)
> create mode 100644 arch/arm64/include/asm/futex_ll_sc_u.h
> create mode 100644 arch/arm64/include/asm/futex_lsui.h
> create mode 100644 arch/arm64/include/asm/lsui.h
>
> --
> LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}
>
--
Sincerely,
Yeoreum Yun
prev parent reply other threads:[~2025-06-26 8:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-17 18:36 [PATCH v3 0/7] support FEAT_LSUI and apply it on futex atomic ops Yeoreum Yun
2025-06-17 18:36 ` [PATCH v3 1/7] arm64: cpufeature: add FEAT_LSUI Yeoreum Yun
2025-06-17 18:36 ` [PATCH v3 2/7] arm64/kvm: expose FEAT_LSUI to guest Yeoreum Yun
2025-07-02 17:17 ` Marc Zyngier
2025-06-17 18:36 ` [PATCH v3 3/7] arm64/Kconfig: add LSUI Kconfig Yeoreum Yun
2025-06-17 18:36 ` [PATCH v3 4/7] arm64/futex: move futex atomic logic with clearing PAN bit Yeoreum Yun
2025-06-17 18:36 ` [PATCH v3 5/7] arm64/futex: add futex atomic operation with FEAT_LSUI Yeoreum Yun
2025-06-17 18:36 ` [PATCH v3 6/7] arm64/asm: introduce lsui.h Yeoreum Yun
2025-06-17 18:36 ` [PATCH v3 7/7] arm64/futex: support futex with FEAT_LSUI Yeoreum Yun
2025-06-26 7:56 ` Yeoreum Yun [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=aFz9N1Bs6Y5f1sCT@e129823.arm.com \
--to=yeoreum.yun@arm.com \
--cc=ardb@kernel.org \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=frederic@kernel.org \
--cc=james.morse@arm.com \
--cc=joey.gouly@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oliver.upton@linux.dev \
--cc=scott@os.amperecomputing.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox