Skip to content

arm64/sve: Document our actual SVE syscall ABI

Mark Brown linux-arm-kernel linux-kselftest 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 5 repliesApplied
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 1 replySuperseded

Changes in v3 from the cover letter

- Rebase onto v6.0-rc3.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3kselftest/arm64: Correct buffer allocation for SVE Z registerstools/testing/selftests/arm64/abi/syscall-abi.c+2 -20 replies
2/3arm64/sve: Document our actual ABI for clearing registers on syscallDocumentation/arm64/sve.rst+1 -10 replies
3/3kselftest/arm64: Enforce actual ABI for SVE syscallstools/testing/selftests/arm64/abi/syscall-abi.c+38 -190 replies

Reviews trailers per patch

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

PatchCatalin Marinas
1/3A-b
2/3A-b
3/3A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] arm64/sve: Document our actual SVE syscall ABI

Currently our SVE syscall ABI documentation does not reflect the actual implemented ABI, it says that register state not shared with FPSIMD becomes undefined on syscall when in reality we always clear it. Since changing this would cause a change in the observed kernel behaviour there is a substantial desire to avoid taking advantage of the documented ABI so instead let's document what we actually do so it's clear that it is in reality an ABI.

There has been some pushback on tightening the documentation in the past but it is hard to see who that helps, it makes the implementation decisions less clear and makes it harder for people to discover and make use of the actual ABI. The main practical concern is that qemu's user mode does not currently flush the registers.

v3:
- Rebase onto v6.0-rc3.
v2:
- Rebase onto v6.0-rc1.

Mark Brown (3):
kselftest/arm64: Correct buffer allocation for SVE Z registers arm64/sve: Document our actual ABI for clearing registers on syscall kselftest/arm64: Enforce actual ABI for SVE syscalls

 Documentation/arm64/sve.rst                   |  2 +-
 .../testing/selftests/arm64/abi/syscall-abi.c | 61 ++++++++++++-------
 2 files changed, 41 insertions(+), 22 deletions(-)

base-commit: b90cb1053190353cc30f0fef0ef1f378ccc063c5

Signature · 1 line
2.30.2