Linux-RISC-V Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] riscv: uaccess: Allow the last potential unrolled copy
@ 2024-03-13 10:33 Xiao Wang
  2024-05-03 12:16 ` Alexandre Ghiti
  2024-05-22 23:51 ` patchwork-bot+linux-riscv
  0 siblings, 2 replies; 7+ messages in thread
From: Xiao Wang @ 2024-03-13 10:33 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou
  Cc: jerry.shih, nick.knight, ajones, bjorn, andy.chiu, viro, cleger,
	alexghiti, haicheng.li, akira.tsukamoto, linux-riscv,
	linux-kernel, Xiao Wang

When the dst buffer pointer points to the last accessible aligned addr, we
could still run another iteration of unrolled copy.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
---
 arch/riscv/lib/uaccess.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/lib/uaccess.S b/arch/riscv/lib/uaccess.S
index 2e665f8f8fcc..1399d797d81b 100644
--- a/arch/riscv/lib/uaccess.S
+++ b/arch/riscv/lib/uaccess.S
@@ -103,7 +103,7 @@ SYM_FUNC_START(fallback_scalar_usercopy)
 	fixup REG_S   t4,  7*SZREG(a0), 10f
 	addi	a0, a0, 8*SZREG
 	addi	a1, a1, 8*SZREG
-	bltu	a0, t0, 2b
+	bleu	a0, t0, 2b
 
 	addi	t0, t0, 8*SZREG /* revert to original value */
 	j	.Lbyte_copy_tail
-- 
2.25.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2024-05-22 23:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-13 10:33 [PATCH] riscv: uaccess: Allow the last potential unrolled copy Xiao Wang
2024-05-03 12:16 ` Alexandre Ghiti
2024-05-03 12:19   ` Ben Dooks
2024-05-03 13:02     ` Alexandre Ghiti
2024-05-03 14:30       ` Ben Dooks
2024-05-06  7:53         ` Wang, Xiao W
2024-05-22 23:51 ` 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