]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RISC-V: fix vector insn load/store width mask
authorJesse Taube <jesse@rivosinc.com>
Thu, 6 Jun 2024 18:28:00 +0000 (14:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:33:53 +0000 (09:33 +0200)
commitabb84c462000f017a609db05f35a1e59244c4d05
tree053b0a3b92fae1876a81ef407e4e4c0d0690f91d
parent2d83492259ad746b655f196cd5d1be4b3d0a3782
RISC-V: fix vector insn load/store width mask

[ Upstream commit 04a2aef59cfe192aa99020601d922359978cc72a ]

RVFDQ_FL_FS_WIDTH_MASK should be 3 bits [14-12], shifted down by 12 bits.
Replace GENMASK(3, 0) with GENMASK(2, 0).

Fixes: cd054837243b ("riscv: Allocate user's vector context in the first-use trap")
Signed-off-by: Jesse Taube <jesse@rivosinc.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Link: https://lore.kernel.org/r/20240606182800.415831-1-jesse@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/include/asm/insn.h