* [PATCH] Documentation: RISC-V: uabi: Only scalar misaligned loads are supported
@ 2024-05-24 18:56 Palmer Dabbelt
2024-05-24 19:14 ` Conor Dooley
2024-05-30 21:10 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 3+ messages in thread
From: Palmer Dabbelt @ 2024-05-24 18:56 UTC (permalink / raw)
To: linux-riscv
Cc: corbet, Paul Walmsley, Palmer Dabbelt, aou, costa.shul,
Conor Dooley, linux-doc, linux-riscv, linux-kernel,
Palmer Dabbelt
From: Palmer Dabbelt <palmer@rivosinc.com>
We're stuck supporting scalar misaligned loads in userspace because they
were part of the ISA at the time we froze the uABI. That wasn't the
case for vector misaligned accesses, so depending on them
unconditionally is a userspace bug. All extant vector hardware traps on
these misaligned accesses.
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
---
Documentation/arch/riscv/uabi.rst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/arch/riscv/uabi.rst b/Documentation/arch/riscv/uabi.rst
index 54d199dce78b..2b420bab0527 100644
--- a/Documentation/arch/riscv/uabi.rst
+++ b/Documentation/arch/riscv/uabi.rst
@@ -65,4 +65,6 @@ the extension, or may have deliberately removed it from the listing.
Misaligned accesses
-------------------
-Misaligned accesses are supported in userspace, but they may perform poorly.
+Misaligned scalar accesses are supported in userspace, but they may perform
+poorly. Misaligned vector accesses are only supported if the Zicclsm extension
+is supported.
--
2.45.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: RISC-V: uabi: Only scalar misaligned loads are supported
2024-05-24 18:56 [PATCH] Documentation: RISC-V: uabi: Only scalar misaligned loads are supported Palmer Dabbelt
@ 2024-05-24 19:14 ` Conor Dooley
2024-05-30 21:10 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2024-05-24 19:14 UTC (permalink / raw)
To: Palmer Dabbelt
Cc: linux-riscv, corbet, Paul Walmsley, Palmer Dabbelt, aou,
costa.shul, Conor Dooley, linux-doc, linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 1499 bytes --]
On Fri, May 24, 2024 at 11:56:00AM -0700, Palmer Dabbelt wrote:
> From: Palmer Dabbelt <palmer@rivosinc.com>
>
> We're stuck supporting scalar misaligned loads in userspace because they
> were part of the ISA at the time we froze the uABI. That wasn't the
> case for vector misaligned accesses, so depending on them
> unconditionally is a userspace bug. All extant vector hardware traps on
> these misaligned accesses.
>
> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
> ---
> Documentation/arch/riscv/uabi.rst | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/arch/riscv/uabi.rst b/Documentation/arch/riscv/uabi.rst
> index 54d199dce78b..2b420bab0527 100644
> --- a/Documentation/arch/riscv/uabi.rst
> +++ b/Documentation/arch/riscv/uabi.rst
> @@ -65,4 +65,6 @@ the extension, or may have deliberately removed it from the listing.
> Misaligned accesses
> -------------------
>
> -Misaligned accesses are supported in userspace, but they may perform poorly.
> +Misaligned scalar accesses are supported in userspace, but they may perform
> +poorly. Misaligned vector accesses are only supported if the Zicclsm extension
> +is supported.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Now we just need to find someone that cares sufficiently about Zicclsm
to write the bindings, detection and hwprobe key for Zicclsm. Maybe I'll
be the lucky fool, depending on what the x280 does...
Thanks,
Conor.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: RISC-V: uabi: Only scalar misaligned loads are supported
2024-05-24 18:56 [PATCH] Documentation: RISC-V: uabi: Only scalar misaligned loads are supported Palmer Dabbelt
2024-05-24 19:14 ` Conor Dooley
@ 2024-05-30 21:10 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-05-30 21:10 UTC (permalink / raw)
To: Palmer Dabbelt
Cc: linux-riscv, corbet, paul.walmsley, palmer, aou, costa.shul,
conor.dooley, linux-doc, linux-kernel
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Fri, 24 May 2024 11:56:00 -0700 you wrote:
> From: Palmer Dabbelt <palmer@rivosinc.com>
>
> We're stuck supporting scalar misaligned loads in userspace because they
> were part of the ISA at the time we froze the uABI. That wasn't the
> case for vector misaligned accesses, so depending on them
> unconditionally is a userspace bug. All extant vector hardware traps on
> these misaligned accesses.
>
> [...]
Here is the summary with links:
- Documentation: RISC-V: uabi: Only scalar misaligned loads are supported
https://git.kernel.org/riscv/c/982a7eb97be6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-30 21:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-24 18:56 [PATCH] Documentation: RISC-V: uabi: Only scalar misaligned loads are supported Palmer Dabbelt
2024-05-24 19:14 ` Conor Dooley
2024-05-30 21:10 ` 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