[PW_SID:1067676] [RFC] riscv: add userspace interface to voluntarily release vector state#1626
[PW_SID:1067676] [RFC] riscv: add userspace interface to voluntarily release vector state#1626linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
Conversation
Vector registers in RVV can be large, and saving/restoring them on context switches introduces overhead. Some workloads only use vector instructions in short phases, after which the vector state does not need to be preserved. This patch introduces a userspace-controlled mechanism: - Userspace can declare that it no longer needs the vector state. - Kernel will skip saving/restoring vector registers during context switch while the declaration is active. - If the thread executes vector instructions after releasing its vector state, the kernel will revoke the declaration automatically. This reduces unnecessary vector context switch overhead and improves performance in workloads with intermittent vector usage. This is an RFC patch to solicit feedback on the API design and implementation approach. Signed-off-by: daichengrong <daichengrong@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
|
Patch 1: "[RFC] riscv: add userspace interface to voluntarily release vector state" |
PR for series 1067676 applied to workflow__riscv__fixes
Name: [RFC] riscv: add userspace interface to voluntarily release vector state
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1067676
Version: 1