Skip to content

Commit 40e09eb

Browse files
Mr-Bossmanpalmer-dabbelt
authored andcommitted
RISC-V: hwprobe: Document unaligned vector perf key
Document key for reporting the speed of unaligned vector accesses. The descriptions are the same as the scalar equivalent values. Signed-off-by: Jesse Taube <jesse@rivosinc.com> Reviewed-by: Charlie Jenkins <charlie@rivosinc.com> Link: https://lore.kernel.org/r/20241017-jesse_unaligned_vector-v10-6-5b33500160f8@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent e7c9d66 commit 40e09eb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Documentation/arch/riscv/hwprobe.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,19 @@ The following keys are defined:
274274
represent the highest userspace virtual address usable.
275275

276276
* :c:macro:`RISCV_HWPROBE_KEY_TIME_CSR_FREQ`: Frequency (in Hz) of `time CSR`.
277+
278+
* :c:macro:`RISCV_HWPROBE_KEY_MISALIGNED_VECTOR_PERF`: An enum value describing the
279+
performance of misaligned vector accesses on the selected set of processors.
280+
281+
* :c:macro:`RISCV_HWPROBE_MISALIGNED_VECTOR_UNKNOWN`: The performance of misaligned
282+
vector accesses is unknown.
283+
284+
* :c:macro:`RISCV_HWPROBE_MISALIGNED_VECTOR_SLOW`: 32-bit misaligned accesses using vector
285+
registers are slower than the equivalent quantity of byte accesses via vector registers.
286+
Misaligned accesses may be supported directly in hardware, or trapped and emulated by software.
287+
288+
* :c:macro:`RISCV_HWPROBE_MISALIGNED_VECTOR_FAST`: 32-bit misaligned accesses using vector
289+
registers are faster than the equivalent quantity of byte accesses via vector registers.
290+
291+
* :c:macro:`RISCV_HWPROBE_MISALIGNED_VECTOR_UNSUPPORTED`: Misaligned vector accesses are
292+
not supported at all and will generate a misaligned address fault.

0 commit comments

Comments
 (0)