[0/2] arm64/fp: Initialise all bits in vector control registers to known values

Message ID 20240213-arm64-fp-init-vec-cr-v1-0-7e7c2d584f26@kernel.org
Headers
Series arm64/fp: Initialise all bits in vector control registers to known values |

Message

Mark Brown Feb. 13, 2024, 3:32 p.m. UTC
  We currently do read/modify/write sequences whenever we update fields in
ZCR_EL1 and SMCR_EL1 so fields we are not explicitly handling will not
be initialised to known values, fix this.  The EL2 registers are already
fully configured.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (2):
      arm64/sve: Ensure that all fields in ZCR_EL1 are set to known values
      arm64/sme: Ensure that all fields in SMCR_EL1 are set to known values

 arch/arm64/kernel/fpsimd.c | 5 +++++
 1 file changed, 5 insertions(+)
---
base-commit: 54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
change-id: 20240212-arm64-fp-init-vec-cr-018449327500

Best regards,
  

Comments

Catalin Marinas Feb. 22, 2024, 10:04 p.m. UTC | #1
On Tue, 13 Feb 2024 15:32:44 +0000, Mark Brown wrote:
> We currently do read/modify/write sequences whenever we update fields in
> ZCR_EL1 and SMCR_EL1 so fields we are not explicitly handling will not
> be initialised to known values, fix this.  The EL2 registers are already
> fully configured.
> 
> 

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

[1/2] arm64/sve: Ensure that all fields in ZCR_EL1 are set to known values
      https://git.kernel.org/arm64/c/2f0090549b64
[2/2] arm64/sme: Ensure that all fields in SMCR_EL1 are set to known values
      https://git.kernel.org/arm64/c/93576e349887