Fix the __riscv_copy_vec_words_unaligned implementation
PATCH 1/1 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.
--- 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 · 1 line
2.46.0
Hi Tingbo,
Quoted 13 lines · Tingbo Liao
Correct the
VEC_Smacro definition to fix the implementation of vector words copy in the case of unalignment in RISC-V.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 +0
-0
arch/riscv/kernel/vec-copy-unaligned.S line 17
Quoted 8 lines
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. */
That's a good catch, thanks.
However, your patch title should be prefixed with "riscv:" :
"[PATCH] riscv: Fix the __riscv_copy_vec_words_unaligned implementation"
And you miss the following Fixes tag:
And then you can add:
Can you respin a v2 with all those modifications please?
Thanks,
Alex
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 7 lines · On Wed, 26 Feb 2025 23:27:21 -0800 you wrote:
Correct the
VEC_Smacro definition to fix the implementation of vector words copy in the case of unalignment in RISC-V.Signed-off-by Tingbo Liao <[email protected]>--- arch/riscv/kernel/vec-copy-unaligned.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- 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