mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 14:24:25 +08:00
43e3f85523
For every possible combination of SVE and SME vector length verify that for each possible value of SVCR after a syscall we leave streaming mode and ZA is preserved. We don't need to take account of any streaming/non streaming SVE vector length changes in the assembler code since the store instructions will handle the vector length for us. We log if the system supports FA64 and only try to set FFR in streaming mode if it does. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Shuah Khan <skhan@linuxfoundation.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20220419112247.711548-39-broonie@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
16 lines
239 B
C
16 lines
239 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2021 ARM Limited.
|
|
*/
|
|
|
|
#ifndef SYSCALL_ABI_H
|
|
#define SYSCALL_ABI_H
|
|
|
|
#define SVCR_ZA_MASK 2
|
|
#define SVCR_SM_MASK 1
|
|
|
|
#define SVCR_ZA_SHIFT 1
|
|
#define SVCR_SM_SHIFT 0
|
|
|
|
#endif
|