[PATCH] arm64/sve: Use correct size when reinitialising SVE state

Catalin Marinas catalin.marinas at arm.com
Thu Sep 16 10:08:33 PDT 2021


On Thu, 9 Sep 2021 17:53:56 +0100, Mark Brown wrote:
> When we need a buffer for SVE register state we call sve_alloc() to make
> sure that one is there. In order to avoid repeated allocations and frees
> we keep the buffer around unless we change vector length and just memset()
> it to ensure a clean register state. The function that deals with this
> takes the task to operate on as an argument, however in the case where we
> do a memset() we initialise using the SVE state size for the current task
> rather than the task passed as an argument.
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64/sve: Use correct size when reinitialising SVE state
      https://git.kernel.org/arm64/c/e35ac9d0b56e

-- 
Catalin




More information about the linux-arm-kernel mailing list