* [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7 @ 2021-12-02 22:20 Giulio Benetti 2021-12-03 9:30 ` Vladimir Murzin 0 siblings, 1 reply; 7+ messages in thread From: Giulio Benetti @ 2021-12-02 22:20 UTC (permalink / raw) To: linux-arm-kernel, linux-kernel Cc: Russell King, Arnd Bergmann, Linus Walleij, Andrew Morton, Russell King (Oracle), Ard Biesheuvel, Mark Rutland, Anshuman Khandual, Geert Uytterhoeven, Mike Rapoport, Uwe Kleine-König, Lukas Bulwahn, Giulio Benetti ARM_SINGLE_ARMV7M implies Arm Cortex M7 too, so let's add it to description with M0/M3/M4. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c2724d986fa0..67efbde70e34 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -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.25.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7 2021-12-02 22:20 [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7 Giulio Benetti @ 2021-12-03 9:30 ` Vladimir Murzin 2021-12-03 16:41 ` Giulio Benetti 0 siblings, 1 reply; 7+ messages in thread From: Vladimir Murzin @ 2021-12-03 9:30 UTC (permalink / raw) To: Giulio Benetti, linux-arm-kernel, linux-kernel Cc: Russell King, Arnd Bergmann, Linus Walleij, Andrew Morton, Russell King (Oracle), Ard Biesheuvel, Mark Rutland, Anshuman Khandual, Geert Uytterhoeven, Mike Rapoport, Uwe Kleine-König, Lukas Bulwahn On 12/2/21 10:20 PM, Giulio Benetti wrote: > 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 > > Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> > --- > arch/arm/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index c2724d986fa0..67efbde70e34 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7 2021-12-03 9:30 ` Vladimir Murzin @ 2021-12-03 16:41 ` Giulio Benetti 2021-12-03 17:01 ` Vladimir Murzin 0 siblings, 1 reply; 7+ messages in thread From: Giulio Benetti @ 2021-12-03 16:41 UTC (permalink / raw) To: Vladimir Murzin, linux-arm-kernel, linux-kernel Cc: Russell King, Arnd Bergmann, Linus Walleij, Andrew Morton, Russell King (Oracle), Ard Biesheuvel, Mark Rutland, Anshuman Khandual, Geert Uytterhoeven, Mike Rapoport, Uwe Kleine-König, Lukas Bulwahn Hi Vladimir, On 03/12/21 10:30, Vladimir Murzin wrote: > On 12/2/21 10:20 PM, Giulio Benetti wrote: >> 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 -- Giulio Benetti Benetti Engineering sas > - ARMv7-M and above > > Cheers > Vladimir > >> >> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> >> --- >> arch/arm/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index c2724d986fa0..67efbde70e34 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -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 >> > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7 2021-12-03 16:41 ` Giulio Benetti @ 2021-12-03 17:01 ` Vladimir Murzin 2021-12-03 17:03 ` Giulio Benetti 2021-12-03 17:09 ` [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M with ARMv8-M too Giulio Benetti 0 siblings, 2 replies; 7+ messages in thread From: Vladimir Murzin @ 2021-12-03 17:01 UTC (permalink / raw) To: Giulio Benetti, linux-arm-kernel, linux-kernel Cc: Russell King, Arnd Bergmann, Linus Walleij, Andrew Morton, Russell King (Oracle), Ard Biesheuvel, Mark Rutland, Anshuman Khandual, Geert Uytterhoeven, Mike Rapoport, Uwe Kleine-König, Lukas Bulwahn On 12/3/21 4:41 PM, Giulio Benetti wrote: > Hi Vladimir, > > On 03/12/21 10:30, Vladimir Murzin wrote: >> On 12/2/21 10:20 PM, Giulio Benetti wrote: >>> 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? We already support PMSAv8 which is ARMv8-M, M33/M55 is in flight [1]. > 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/20211201132908.106711-1-vladimir.murzin@arm.com/T/ Cheers Vladimir > > Best regards ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7 2021-12-03 17:01 ` Vladimir Murzin @ 2021-12-03 17:03 ` Giulio Benetti 2021-12-03 17:09 ` [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M with ARMv8-M too Giulio Benetti 1 sibling, 0 replies; 7+ messages in thread From: Giulio Benetti @ 2021-12-03 17:03 UTC (permalink / raw) To: Vladimir Murzin, linux-arm-kernel, linux-kernel Cc: Russell King, Arnd Bergmann, Linus Walleij, Andrew Morton, Russell King (Oracle), Ard Biesheuvel, Mark Rutland, Anshuman Khandual, Geert Uytterhoeven, Mike Rapoport, Uwe Kleine-König, Lukas Bulwahn On 03/12/21 18:01, Vladimir Murzin wrote: > On 12/3/21 4:41 PM, Giulio Benetti wrote: >> Hi Vladimir, >> >> On 03/12/21 10:30, Vladimir Murzin wrote: >>> On 12/2/21 10:20 PM, Giulio Benetti wrote: >>>> 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? > > We already support PMSAv8 which is ARMv8-M, M33/M55 is in flight [1]. Ah, I've missed that. And great for M33! >> 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) Ah yeah, thanks for pointing, then I'm going with ARMv7-M/v8-M > These are just config options, not a legal deeds... +1 Thank you Best regards -- Giulio Benetti Benetti Engineering sas > [1] https://lore.kernel.org/linux-arm-kernel/20211201132908.106711-1-vladimir.murzin@arm.com/T/ > > Cheers > Vladimir > >> >> Best regards > ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M with ARMv8-M too 2021-12-03 17:01 ` Vladimir Murzin 2021-12-03 17:03 ` Giulio Benetti @ 2021-12-03 17:09 ` Giulio Benetti 2021-12-03 17:12 ` Vladimir Murzin 1 sibling, 1 reply; 7+ messages in thread From: Giulio Benetti @ 2021-12-03 17:09 UTC (permalink / raw) To: linux-arm-kernel, linux-kernel, Vladimir Murzin Cc: Russell King, Arnd Bergmann, Linus Walleij, Andrew Morton, Russell King (Oracle), Ard Biesheuvel, Mark Rutland, Anshuman Khandual, Geert Uytterhoeven, Mike Rapoport, Uwe Kleine-König, Lukas Bulwahn, 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. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c2724d986fa0..4a36a80e57b7 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -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 -- 2.25.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M with ARMv8-M too 2021-12-03 17:09 ` [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M with ARMv8-M too Giulio Benetti @ 2021-12-03 17:12 ` Vladimir Murzin 0 siblings, 0 replies; 7+ messages in thread From: Vladimir Murzin @ 2021-12-03 17:12 UTC (permalink / raw) To: Giulio Benetti, linux-arm-kernel, linux-kernel Cc: Russell King, Arnd Bergmann, Linus Walleij, Andrew Morton, Russell King (Oracle), Ard Biesheuvel, Mark Rutland, Anshuman Khandual, Geert Uytterhoeven, Mike Rapoport, Uwe Kleine-König, Lukas Bulwahn On 12/3/21 5:09 PM, Giulio Benetti wrote: > 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. > > Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> > --- > arch/arm/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index c2724d986fa0..4a36a80e57b7 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -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 > Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com> Thanks Vladimir ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-12-03 17:12 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-12-02 22:20 [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M description with Cortex M7 Giulio Benetti 2021-12-03 9:30 ` Vladimir Murzin 2021-12-03 16:41 ` Giulio Benetti 2021-12-03 17:01 ` Vladimir Murzin 2021-12-03 17:03 ` Giulio Benetti 2021-12-03 17:09 ` [PATCH] ARM: Kconfig: improve ARM_SINGLE_ARMV7M with ARMv8-M too Giulio Benetti 2021-12-03 17:12 ` Vladimir Murzin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).