Skip to content

RISC-V: hwprobe: Introduce which-cpus

Andrew Jones linux-riscv 3 versions – Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyApplied 4/4
  2. v26 patches 1 replySuperseded
  3. v16 patches 11 repliesSuperseded

Patches in v3 All 4 applied

#Subject and filesSizeRepliesApplied
1/4RISC-V: hwprobe: Clarify cpus size parameterDocumentation/arch/riscv/hwprobe.rst arch/riscv/kernel/sys_riscv.c arch/riscv/kernel/vdso/hwprobe.c +3 more+23 -300 repliesApplied
2/4RISC-V: Move the hwprobe syscall to its own filearch/riscv/kernel/Makefile arch/riscv/kernel/sys_hwprobe.c arch/riscv/kernel/sys_riscv.c+290 -2850 repliesApplied
3/4RISC-V: hwprobe: Introduce which-cpus flagDocumentation/arch/riscv/hwprobe.rst arch/riscv/include/asm/hwprobe.h arch/riscv/include/uapi/asm/hwprobe.h +2 more+204 -141 replyApplied
4/4RISC-V: selftests: Add which-cpus hwprobe testtools/testing/selftests/riscv/hwprobe/Makefile tools/testing/selftests/riscv/hwprobe/which-cpus.c+158 -10 repliesApplied

Reviews trailers per patch

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

PatchPalmer DabbeltConor DooleyEvan Green
1/4R-b R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/4] RISC-V: hwprobe: Introduce which-cpus

This series introduces a flag for the hwprobe syscall which effectively reverses its behavior from getting the values of keys for a set of cpus to getting the cpus for a set of key-value pairs.

Change since v2[1]:
- Rebased on v6.7-rc1 to get green on patchwork (dropped a couple patches that were merged with [2])
- Added an r-b from Conor

Changes since v1[3]:
- Dropped copyrights when splitting hwprobe out of sys_riscv.c [Conor]
- Improved documentation [Evan]
- Fixed a bug where the set of cpus could get changed to the set of all online cpus [Evan]
- Added check for empty set of cpus in the vdso function [Evan, drew]
- Replaced memset with a for-loop in the vdso function because we don't have memset there [drew]
- Added an r-b from Conor

Changes since the RFC[4]:
- Split hwprobe out of sys_riscv.c into its own file [Palmer]
- Split the which-cpus functionality out of do_riscv_hwprobe() [Palmer]
- Rename hwprobe_key_is_map to hwprobe_key_is_bitmask [Evan]
- Move the homogeneous_cpus logic into the vDSO function [Evan]
- Rework logic to not need to allocate any memory
- Honor cpu affinity in the which-cpus selftests utility
- Picked up some r-b's

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/
[4] https://lore.kernel.org/all/[email protected]/

Andrew Jones (4):
RISC-V: hwprobe: Clarify cpus size parameter
RISC-V: Move the hwprobe syscall to its own file
RISC-V: hwprobe: Introduce which-cpus flag
RISC-V: selftests: Add which-cpus hwprobe test

 Documentation/arch/riscv/hwprobe.rst          |  28 +-
 arch/riscv/include/asm/hwprobe.h              |  24 ++
 arch/riscv/include/uapi/asm/hwprobe.h         |   3 +
 arch/riscv/kernel/Makefile                    |   1 +
 arch/riscv/kernel/sys_hwprobe.c               | 375 ++++++++++++++++++
 arch/riscv/kernel/sys_riscv.c                 | 285 -------------
 arch/riscv/kernel/vdso/hwprobe.c              |  86 +++-
 .../testing/selftests/riscv/hwprobe/Makefile  |   5 +-
 .../testing/selftests/riscv/hwprobe/hwprobe.c |   2 +-
 .../testing/selftests/riscv/hwprobe/hwprobe.h |   2 +-
 .../selftests/riscv/hwprobe/which-cpus.c      | 154 +++++++
 .../selftests/riscv/vector/vstate_prctl.c     |  10 +-
 12 files changed, 660 insertions(+), 315 deletions(-)
 create mode 100644 arch/riscv/kernel/sys_hwprobe.c
 create mode 100644 tools/testing/selftests/riscv/hwprobe/which-cpus.c
Signature · 7 lines
2.41.0


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