diff mbox series

[v2] arm64/idreg: Don't disable SME when disabling SVE

Message ID 20230315-arm64-override-sve-sme-v2-1-bab7593e842b@kernel.org (mailing list archive)
State New, archived
Headers show
Series [v2] arm64/idreg: Don't disable SME when disabling SVE | expand

Commit Message

Mark Brown March 23, 2023, 10:06 p.m. UTC
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>
---
Changes in v2:
- Fix typo in subject.
- Link to v1: https://lore.kernel.org/r/20230315-arm64-override-sve-sme-v1-1-3514ad657548@kernel.org
---
 arch/arm64/kernel/idreg-override.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


---
base-commit: e8d018dd0257f744ca50a729e3d042cf2ec9da65
change-id: 20230315-arm64-override-sve-sme-b65f8dbbbcbe

Best regards,

Comments

Will Deacon April 11, 2023, 10:17 p.m. UTC | #1
On Thu, 23 Mar 2023 22:06:32 +0000, Mark Brown wrote:
> 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.
> 
> [...]

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

[1/1] arm64/idreg: Don't disable SME when disabling SVE
      https://git.kernel.org/arm64/c/b2ad9d4e249e

Cheers,
diff mbox series

Patch

diff --git a/arch/arm64/kernel/idreg-override.c b/arch/arm64/kernel/idreg-override.c
index d833d78a7f31..9d8edeb6aa46 100644
--- a/arch/arm64/kernel/idreg-override.c
+++ b/arch/arm64/kernel/idreg-override.c
@@ -167,7 +167,7 @@  static const struct {
 } aliases[] __initconst = {
 	{ "kvm-arm.mode=nvhe",		"id_aa64mmfr1.vh=0" },
 	{ "kvm-arm.mode=protected",	"id_aa64mmfr1.vh=0" },
-	{ "arm64.nosve",		"id_aa64pfr0.sve=0 id_aa64pfr1.sme=0" },
+	{ "arm64.nosve",		"id_aa64pfr0.sve=0" },
 	{ "arm64.nosme",		"id_aa64pfr1.sme=0" },
 	{ "arm64.nobti",		"id_aa64pfr1.bt=0" },
 	{ "arm64.nopauth",