Skip to content

[PW_SID:993002] [v3] riscv: Add sysctl to control discard of vstate on syscall entry - #801

Closed
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw993002
Closed

[PW_SID:993002] [v3] riscv: Add sysctl to control discard of vstate on syscall entry#801
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw993002

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 993002 applied to workflow__riscv__fixes

Name: [v3] riscv: Add sysctl to control discard of vstate on syscall entry
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=993002
Version: 3

Vector registers are always clobbered in the syscall entry path to
enforce the documented ABI that vector state is not preserved across
syscalls. However, this operation can be slow on some RISC-V cores.
To mitigate this performance impact, add a sysctl knob to control
whether vector state is discarded in the syscall entry path:

/proc/sys/abi/riscv_v_vstate_discard

Valid values are:

0: Vector state is not intentionally clobbered when entering a syscall
1: Vector state is always clobbered when entering a syscall

The initial state is controlled by CONFIG_RISCV_ISA_V_VSTATE_DISCARD.

Fixes: 9657e9b ("riscv: Discard vector state on syscalls")
Signed-off-by: Drew Fustini <dfustini@tenstorrent.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 103.68 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1157.73 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1613.49 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.77 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.82 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.37 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 73.95 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
kdoc
Desc: Detects for kdoc errors
Duration: 0.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Add sysctl to control discard of vstate on syscall entry"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.33 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot deleted the pw993002 branch August 22, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants