Skip to contentSkip to conversation

arm: fix Kconfig symbol dependency on arm features

PATCH In review Luca Fancellu 4 participants 4 messages Nov 9, 2022 – Nov 10, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: fix Kconfig symbol dependency on arm features

The commit 3c2a14ea81c7 is introducing some unsupported arm features that by default are disabled and are used for the cpufeature.c code.

As they are disabled by default, a typo in the Kconfig symbol they depend on has landed in the codebase unnoticed, instead of depending on ARM64 which does not exist, fix the code to depend on ARM_64 that is the intended symbol.

Fixes 3c2a14ea81c7 ("arm: Define kconfig symbols used by arm64 cpufeatures")
---
 xen/arch/arm/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/Kconfig +4 -4
index 1fe5faf847b8..52a05f704da5 100644
@@ -105,28 +105,28 @@ config HARDEN_BRANCH_PREDICTOR
 
 config ARM64_PTR_AUTH
 	def_bool n
-	depends on ARM64
+	depends on ARM_64
 	help
 	  Pointer authentication support.
 	  This feature is not supported in Xen.
 
 config ARM64_SVE
 	def_bool n
-	depends on ARM64
+	depends on ARM_64
 	help
 	  Scalar Vector Extension support.
 	  This feature is not supported in Xen.
 
 config ARM64_MTE
 	def_bool n
-	depends on ARM64
+	depends on ARM_64
 	help
 	  Memory Tagging Extension support.
 	  This feature is not supported in Xen.
 
 config ARM64_BTI
 	def_bool n
-	depends on ARM64
+	depends on ARM_64
 	help
 	  Branch Target Identification support.
 	  This feature is not supported in Xen.
Signature · 1 line
2.17.1
#1 lore raw

Hi Luca,

Quoted 8 lines

-----Original Message-----
From: Luca Fancellu <[email protected]>
Subject: [PATCH for 4.17] arm: fix Kconfig symbol dependency on arm features

The commit 3c2a14ea81c7 is introducing some unsupported arm features that by default are disabled and are used for the cpufeature.c code.

Quoted 8 lines

As they are disabled by default, a typo in the Kconfig symbol they depend on has landed in the codebase unnoticed, instead of depending on ARM64 which does not exist, fix the code to depend on ARM_64 that is the intended symbol.

Fixes 3c2a14ea81c7 ("arm: Define kconfig symbols used by arm64

cpufeatures")

As IIUC this is a harmless patch, so it is fine to consider this in the release, but I will let the Arm maintainers to do the final call.

If Arm maintainers agree this patch should go to 4.17, feel free to add:

Kind regards,
Henry

Reviewed-by on v1 1/1
#2 lore raw
In reply to Luca Fancellu

Hi Luca,

Quoted 5 lines · Luca Fancellu

The commit 3c2a14ea81c7 is introducing some unsupported arm features that by default are disabled and are used for the cpufeature.c code.

Quoted 7 lines

As they are disabled by default, a typo in the Kconfig symbol they depend on has landed in the codebase unnoticed, instead of depending on ARM64 which does not exist, fix the code to depend on ARM_64 that is the intended symbol.

Fixes 3c2a14ea81c7 ("arm: Define kconfig symbols used by arm64 cpufeatures")

I think this should go in 4.17 as it is fixing an invalid depends in Kconfig.
The change cannot create any issue as those config options are hidden and default to n at the moment.

Cheers
Bertrand

Quoted 44 lines

---
xen/arch/arm/Kconfig | 8 ++++----

1 file changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/Kconfig +0 -0
index 1fe5faf847b8..52a05f704da5 100644
@@ -105,28 +105,28 @@ config HARDEN_BRANCH_PREDICTOR
 

config ARM64_PTR_AUTH
def_bool n

xen/arch/arm/Kconfig +1 -1
-	depends on ARM64
+	depends on ARM_64

help
Pointer authentication support.
This feature is not supported in Xen.

config ARM64_SVE
def_bool n

xen/arch/arm/Kconfig +1 -1
-	depends on ARM64
+	depends on ARM_64

help
Scalar Vector Extension support.
This feature is not supported in Xen.

config ARM64_MTE
def_bool n

xen/arch/arm/Kconfig +1 -1
-	depends on ARM64
+	depends on ARM_64

help
Memory Tagging Extension support.
This feature is not supported in Xen.

config ARM64_BTI
def_bool n

xen/arch/arm/Kconfig +1 -1
-	depends on ARM64
+	depends on ARM_64

help
Branch Target Identification support.
This feature is not supported in Xen.

Signature · 1 line
2.17.1
#3 lore raw

Hi Bertrand,

Quoted 10 lines · Bertrand Marquis
Quoted 10 lines · Luca Fancellu

The commit 3c2a14ea81c7 is introducing some unsupported arm features that by default are disabled and are used for the cpufeature.c code.

As they are disabled by default, a typo in the Kconfig symbol they depend on has landed in the codebase unnoticed, instead of depending on ARM64 which does not exist, fix the code to depend on ARM_64 that is the intended symbol.

Quoted 7 lines
Quoted 2 lines
Fixes 3c2a14ea81c7 ("arm: Define kconfig symbols used by arm64 cpufeatures")

I think this should go in 4.17 as it is fixing an invalid depends in Kconfig.
The change cannot create any issue as those config options are hidden and default to n at the moment.

Committed.

Cheers,

Signature · 1 line
Julien Grall