[PATCH v12 06/40] arm64/sme: Provide ABI documentation for SME

Catalin Marinas catalin.marinas at arm.com
Wed Mar 2 09:23:19 PST 2022


On Fri, Feb 25, 2022 at 04:58:49PM +0000, Mark Brown wrote:
> +4.  System call behaviour
> +-------------------------
> +
> +* On syscall PSTATE.ZA is preserved, if PSTATE.ZA==1 then the contents of the
> +  ZA matrix are preserved.
> +
> +* On syscall PSTATE.SM will be cleared and the SVE registers will be handled
> +  as normal.
> +
> +* Neither the SVE registers nor ZA are used to pass arguments to or receive
> +  results from any syscall.
> +
> +* On creation fork() or clone() the newly created process will have PSTATE.SM
> +  and PSTATE.ZA cleared.

Nitpick: I'd drop fork() from here as we don't implement the syscall on
arm64 and maybe just use clone() as an example, something like: "On
process creation (e.g. clone()), the newly created ...".

Otherwise the ABI looks fine to me, though I'd like the Szabolcs and
Luis to ack from the glibc/gdb side.

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list