devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v9 0/6] RISC-V: Detect and report speed of unaligned vector accesses
@ 2024-08-20 15:24 Jesse Taube
  2024-08-20 15:24 ` [PATCH v9 1/6] RISC-V: Check scalar unaligned access on all CPUs Jesse Taube
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Jesse Taube @ 2024-08-20 15:24 UTC (permalink / raw)
  To: linux-riscv
  Cc: Jonathan Corbet, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Conor Dooley, Rob Herring, Krzysztof Kozlowski,
	Clément Léger, Evan Green, Andrew Jones, Jesse Taube,
	Charlie Jenkins, Xiao Wang, Andy Chiu, Eric Biggers, Greentime Hu,
	Björn Töpel, Heiko Stuebner, Costa Shulyupin,
	Andrew Morton, Baoquan He, Anup Patel, Zong Li, Sami Tolvanen,
	Ben Dooks, Alexandre Ghiti, Gustavo A. R. Silva, Erick Archer,
	Joel Granados, linux-doc, linux-kernel, devicetree

Adds support for detecting and reporting the speed of unaligned vector
accesses on RISC-V CPUs. Adds vec_misaligned_speed key to the hwprobe
adds Zicclsm to cpufeature and fixes the check for scalar unaligned
emulated all CPUs. The vec_misaligned_speed key keeps the same format
as the scalar unaligned access speed key.

This set does not emulate unaligned vector accesses on CPUs that do not
support them. Only reports if userspace can run them and speed of
unaligned vector accesses if supported.

The Zicclsm is patches are no longer related to this set.

Changes in v6:
 Added ("RISC-V: Scalar unaligned access emulated on hotplug CPUs")

Changes in V8:
 Dropped Zicclsm
 s/RISCV_HWPROBE_VECTOR_MISALIGNED/RISCV_HWPROBE_MISALIGNED_VECTOR/g
  to match RISCV_HWPROBE_MISALIGNED_SCALAR_*
 Rebased onto palmer/fixes (32d5f7add080a936e28ab4142bfeea6b06999789)

Changes in V9:
 Missed a RISCV_HWPROBE_VECTOR_MISALIGNED...

Jesse Taube (6):
  RISC-V: Check scalar unaligned access on all CPUs
  RISC-V: Scalar unaligned access emulated on hotplug CPUs
  RISC-V: Replace RISCV_MISALIGNED with RISCV_SCALAR_MISALIGNED
  RISC-V: Detect unaligned vector accesses supported
  RISC-V: Report vector unaligned access speed hwprobe
  RISC-V: hwprobe: Document unaligned vector perf key

 Documentation/arch/riscv/hwprobe.rst       |  16 +++
 arch/riscv/Kconfig                         |  57 +++++++-
 arch/riscv/include/asm/cpufeature.h        |  10 +-
 arch/riscv/include/asm/entry-common.h      |  11 --
 arch/riscv/include/asm/hwprobe.h           |   2 +-
 arch/riscv/include/asm/vector.h            |   2 +
 arch/riscv/include/uapi/asm/hwprobe.h      |   5 +
 arch/riscv/kernel/Makefile                 |   3 +-
 arch/riscv/kernel/copy-unaligned.h         |   5 +
 arch/riscv/kernel/fpu.S                    |   4 +-
 arch/riscv/kernel/sys_hwprobe.c            |  41 ++++++
 arch/riscv/kernel/traps_misaligned.c       | 131 +++++++++++++++--
 arch/riscv/kernel/unaligned_access_speed.c | 156 +++++++++++++++++++--
 arch/riscv/kernel/vec-copy-unaligned.S     |  58 ++++++++
 arch/riscv/kernel/vector.c                 |   2 +-
 15 files changed, 465 insertions(+), 38 deletions(-)
 create mode 100644 arch/riscv/kernel/vec-copy-unaligned.S

base-commit: 32d5f7add080a936e28ab4142bfeea6b06999789

-- 
2.45.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-10-24 17:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20 15:24 [PATCH v9 0/6] RISC-V: Detect and report speed of unaligned vector accesses Jesse Taube
2024-08-20 15:24 ` [PATCH v9 1/6] RISC-V: Check scalar unaligned access on all CPUs Jesse Taube
2024-08-20 15:24 ` [PATCH v9 2/6] RISC-V: Scalar unaligned access emulated on hotplug CPUs Jesse Taube
2024-08-20 15:24 ` [PATCH v9 3/6] RISC-V: Replace RISCV_MISALIGNED with RISCV_SCALAR_MISALIGNED Jesse Taube
2024-08-20 15:24 ` [PATCH v9 4/6] RISC-V: Detect unaligned vector accesses supported Jesse Taube
2024-08-20 15:24 ` [PATCH v9 5/6] RISC-V: Report vector unaligned access speed hwprobe Jesse Taube
2024-08-20 15:24 ` [PATCH v9 6/6] RISC-V: hwprobe: Document unaligned vector perf key Jesse Taube
2024-09-20 12:57 ` [PATCH v9 0/6] RISC-V: Detect and report speed of unaligned vector accesses Palmer Dabbelt
2024-09-20 21:01   ` Charlie Jenkins
2024-09-20 21:32     ` Charlie Jenkins
2024-10-24 17:50 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).