]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/sme: Disable streaming mode and ZA when flushing CPU state
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:30 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 22 Apr 2022 17:51:19 +0000 (18:51 +0100)
commit53cb359b67fb31ef25bcb1a436df2e4f678b0337
tree4e87f3baedc2cac522fb4a0b415486e6bdca06ad
parent1f0a810f033b3aceec47c9293bb1021d1516f445
arm64/sme: Disable streaming mode and ZA when flushing CPU state

Both streaming mode and ZA may increase power consumption when they are
enabled and streaming mode makes many FPSIMD and SVE instructions undefined
which will cause problems for any kernel mode floating point so disable
both when we flush the CPU state. This covers both kernel_neon_begin() and
idle and after flushing the state a reload is always required anyway.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220419112247.711548-23-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/fpsimd.c