Skip to contentSkip to conversation

ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7

PATCH In review Giulio Benetti 2 participants 7 messages Dec 2, 2021 – Dec 3, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7

ARM_SINGLE_ARMV7M implies Arm Cortex M7 too, so let's add it to description with M0/M3/M4.

---
 arch/arm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Kconfig +1 -1
index c2724d986fa0..67efbde70e34 100644
@@ -329,7 +329,7 @@ config ARCH_MULTIPLATFORM
 	select USE_OF
 
 config ARM_SINGLE_ARMV7M
-	bool "ARMv7-M based platforms (Cortex-M0/M3/M4)"
+	bool "ARMv7-M based platforms (Cortex-M0/M3/M4/M7)"
 	depends on !MMU
 	select ARM_NVIC
 	select AUTO_ZRELADDR
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 2 lines · Giulio Benetti

ARM_SINGLE_ARMV7M implies Arm Cortex M7 too, so let's add it to description with M0/M3/M4.

Well it also implies M33 and M55. I'd suggest drop specific implementations from description - so we do not need to update it each time new compatible core is released. To account newest cores like M33 and M55 you can rephrase to:
- ARMv7-M/v8-M
- ARMv7-M and above

Cheers
Vladimir

Quoted 20 lines
---
 arch/arm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Kconfig +1 -1
index c2724d986fa0..67efbde70e34 100644
@@ -329,7 +329,7 @@ config ARCH_MULTIPLATFORM
 	select USE_OF
 
 config ARM_SINGLE_ARMV7M
-	bool "ARMv7-M based platforms (Cortex-M0/M3/M4)"
+	bool "ARMv7-M based platforms (Cortex-M0/M3/M4/M7)"
 	depends on !MMU
 	select ARM_NVIC
 	select AUTO_ZRELADDR
#2 lore raw

Hi Vladimir,

Quoted 9 lines · Vladimir Murzin
Quoted 2 lines · Giulio Benetti

ARM_SINGLE_ARMV7M implies Arm Cortex M7 too, so let's add it to description with M0/M3/M4.

Well it also implies M33 and M55. I'd suggest drop specific implementations from description - so we do not need to update it each time new compatible core is released. To account newest cores like M33 and M55 you can rephrase to:
- ARMv7-M/v8-M

This ^^^ is ok for me. Also, I don't see any M0 used at the moment so no ARMv6-M makes sense, if any in the future we can update. I see M3,M4,M7 for the moment, so ARMv7-M. But at the moment no ARMv8-M, or am I wrong? Maybe it would be better to add ARMv8-M when there will really be the support, considering also that ARM_SINGLE_ARMV7M is a bit ambiguous to be used with ARMv8-M. So maybe that could be modified too when an ARMv8-M is added.

What do you think about this?

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 26 lines

- ARMv7-M and above

Cheers
Vladimir

Quoted 20 lines
---
  arch/arm/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Kconfig +1 -1
index c2724d986fa0..67efbde70e34 100644
@@ -329,7 +329,7 @@ config ARCH_MULTIPLATFORM
  	select USE_OF
 
  config ARM_SINGLE_ARMV7M
-	bool "ARMv7-M based platforms (Cortex-M0/M3/M4)"
+	bool "ARMv7-M based platforms (Cortex-M0/M3/M4/M7)"
  	depends on !MMU
  	select ARM_NVIC
  	select AUTO_ZRELADDR
#3 lore raw
Quoted 7 lines · Giulio Benetti

Hi Vladimir,

Quoted 4 lines · Vladimir Murzin
Quoted 2 lines · Giulio Benetti

ARM_SINGLE_ARMV7M implies Arm Cortex M7 too, so let's add it to description with M0/M3/M4.

Quoted 7 lines
Quoted 5 lines

Well it also implies M33 and M55. I'd suggest drop specific implementations from description - so we do not need to update it each time new compatible core is released. To account newest cores like M33 and M55 you can rephrase to:
- ARMv7-M/v8-M

This ^^^ is ok for me. Also, I don't see any M0 used at the moment so no ARMv6-M makes sense, if any in the future we can update. I see M3,M4,M7 for the moment, so ARMv7-M. But at the moment no ARMv8-M, or am I wrong?

We already support PMSAv8 which is ARMv8-M, M33/M55 is in flight [1].

Quoted 3 lines

Maybe it would be better to add ARMv8-M when there will really be the support, considering also that ARM_SINGLE_ARMV7M is a bit ambiguous to be used with ARMv8-M. So maybe that could be modified too when an ARMv8-M is added.

What do you think about this?

Well, I prefer to touch this as rare as possible, and if we touch it then ensure we do not need to touch it for a long time ;)

Look at A-class cores,

config ARCH_MULTI_V7
bool "ARMv7 based platforms (Cortex-A, PJ4, Scorpion, Krait)"

it doesn't mention ARMv8, yet it is pretty much possible to run it on some cores either bare-metal or as a guest (just look under arch/arm/include/asm/cputype.h)

These are just config options, not a legal deeds...

[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/T/

Cheers
Vladimir

Quoted 2 lines

Best regards

#4 lore raw
Quoted 14 lines · Vladimir Murzin
Quoted 13 lines · Giulio Benetti

Hi Vladimir,

Quoted 9 lines · Vladimir Murzin
Quoted 2 lines · Giulio Benetti

ARM_SINGLE_ARMV7M implies Arm Cortex M7 too, so let's add it to description with M0/M3/M4.

Well it also implies M33 and M55. I'd suggest drop specific implementations from description - so we do not need to update it each time new compatible core is released. To account newest cores like M33 and M55 you can rephrase to:
- ARMv7-M/v8-M

Quoted 3 lines
Quoted 1 line

This ^^^ is ok for me. Also, I don't see any M0 used at the moment so no ARMv6-M makes sense, if any in the future we can update. I see M3,M4,M7 for the moment, so ARMv7-M. But at the moment no ARMv8-M, or am I wrong?

We already support PMSAv8 which is ARMv8-M, M33/M55 is in flight [1].

Ah, I've missed that. And great for M33!

Quoted 7 lines
Quoted 3 lines

Maybe it would be better to add ARMv8-M when there will really be the support, considering also that ARM_SINGLE_ARMV7M is a bit ambiguous to be used with ARMv8-M. So maybe that could be modified too when an ARMv8-M is added.

What do you think about this?

Well, I prefer to touch this as rare as possible, and if we touch it then ensure we do not need to touch it for a long time ;)

Quoted 8 lines

Look at A-class cores,

config ARCH_MULTI_V7
bool "ARMv7 based platforms (Cortex-A, PJ4, Scorpion, Krait)"

it doesn't mention ARMv8, yet it is pretty much possible to run it on some cores either bare-metal or as a guest (just look under arch/arm/include/asm/cputype.h)

Ah yeah, thanks for pointing, then I'm going with ARMv7-M/v8-M

Quoted 1 line

These are just config options, not a legal deeds...

+1

Thank you
Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 8 lines

[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/T/

Cheers
Vladimir

Quoted 2 lines

Best regards

#5 lore raw

PATCH 1/1 ARM: Kconfig: improve ARM_SINGLE_ARMV7M with ARMv8-M too

In reply to Vladimir Murzin

ARM_SINGLE_ARMV7M implies ARMv7-M and ARMv8-M, so let's remove "Cortex-M0/M3/M4" mention and add "/v8-M" after ARMv7-M instead.

---
 arch/arm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Kconfig +1 -1
index c2724d986fa0..4a36a80e57b7 100644
@@ -329,7 +329,7 @@ config ARCH_MULTIPLATFORM
 	select USE_OF
 
 config ARM_SINGLE_ARMV7M
-	bool "ARMv7-M based platforms (Cortex-M0/M3/M4)"
+	bool "ARMv7-M/v8-M based platforms"
 	depends on !MMU
 	select ARM_NVIC
 	select AUTO_ZRELADDR
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#6 lore raw

Re: [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M with ARMv8-M too

Quoted 14 lines · Giulio Benetti

ARM_SINGLE_ARMV7M implies ARMv7-M and ARMv8-M, so let's remove "Cortex-M0/M3/M4" mention and add "/v8-M" after ARMv7-M instead.

---
 arch/arm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/Kconfig +0 -0
index c2724d986fa0..4a36a80e57b7 100644

arch/arm/Kconfig config ARCH_MULTIPLATFORM · line 335

Quoted 8 lines
arch/arm/Kconfig +1 -1
@@ -329,7 +329,7 @@ config ARCH_MULTIPLATFORM
 	select USE_OF
 
 config ARM_SINGLE_ARMV7M
-	bool "ARMv7-M based platforms (Cortex-M0/M3/M4)"
+	bool "ARMv7-M/v8-M based platforms"
 	depends on !MMU
 	select ARM_NVIC
 	select AUTO_ZRELADDR

Thanks
Vladimir