riscv: Fix the __riscv_copy_vec_words_unaligned implementation
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")
Reviewed-by Alexandre Ghiti <[email protected]>
Signed-off-by Tingbo Liao <[email protected]>
--- arch/riscv/kernel/vec-copy-unaligned.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kernel/vec-copy-unaligned.S +1 -1
@@ -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
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_Smacro 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")Reviewed-by Alexandre Ghiti <[email protected]>Signed-off-by Tingbo Liao <[email protected]>[...]
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