arm64/idreg: Don't disable SME when disabling SVE
authorMark Brown <broonie@kernel.org>
Thu, 23 Mar 2023 22:06:32 +0000 (22:06 +0000)
committerWill Deacon <will@kernel.org>
Tue, 11 Apr 2023 21:35:37 +0000 (22:35 +0100)
commitb2ad9d4e249ea28be5c9678bf1feec6d50f07613
tree10dce7cb24048555a2c67dd2ef806f0f2416dae9
parent79260355593f96a7580a1995f07a9662c0d5a9ae
arm64/idreg: Don't disable SME when disabling SVE

SVE and SME are separate features which can be implemented without each
other but currently if the user specifies arm64.nosve then we disable SME
as well as SVE. There is already a separate override for SME so remove the
implicit disablement from the SVE override.

One usecase for this would be testing SME only support on a system which
implements both SVE and SME.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230315-arm64-override-sve-sme-v2-1-bab7593e842b@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/idreg-override.c