Skip to contentSkip to conversation

riscv: Fix the __riscv_copy_vec_words_unaligned implementation

PATCH Applied Tingbo Liao 2 participants 2 messages Feb 28, 2025 – Mar 27, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 riscv: Fix the __riscv_copy_vec_words_unaligned implementation

Correct the VEC_S macro definition to fix the implementation of vector words copy in the case of unalignment in RISC-V.

Fixes e7c9d66e313b ("RISC-V: Report vector unaligned access speed hwprobe")
---
 arch/riscv/kernel/vec-copy-unaligned.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kernel/vec-copy-unaligned.S +1 -1
index d16f19f1b3b6..7ce4de6f6e69 100644
@@ -11,7 +11,7 @@
 
 #define WORD_SEW CONCATENATE(e, WORD_EEW)
 #define VEC_L CONCATENATE(vle, WORD_EEW).v
-#define VEC_S CONCATENATE(vle, WORD_EEW).v
+#define VEC_S CONCATENATE(vse, WORD_EEW).v
 
 /* void __riscv_copy_vec_words_unaligned(void *, const void *, size_t) */
 /* Performs a memcpy without aligning buffers, using word loads and stores. */
Signature · 7 lines
2.46.0


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#1 lore raw
This patch was applied to riscv/linux.git (for-next) by Alexandre Ghiti <[email protected]>:

Hello:

This patch was applied to riscv/linux.git (for-next) by Alexandre Ghiti <[email protected]>:

Quoted 8 lines · On Fri, 28 Feb 2025 01:08:01 -0800 you wrote:

Correct the VEC_S macro definition to fix the implementation of vector words copy in the case of unalignment in RISC-V.

Fixes e7c9d66e313b ("RISC-V: Report vector unaligned access speed hwprobe")

[...]

Here is the summary with links:
- [v2] riscv: Fix the __riscv_copy_vec_words_unaligned implementation

    https://git.kernel.org/riscv/c/475afa39b123

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html