Skip to contentSkip to conversation

arch/arm: Add Cortex-a53 CPU

PATCH New Matt Flax 4 participants 7 messages Aug 19, 2016 – Aug 20, 2016

lore
Share & tools
lore

Matt Flax

author
#0 lore raw

PATCH 1/1 arch/arm: Add Cortex-a53 CPU

Adds the Cortex-a53 CPU to the target architecture variant choice. This sets the toolchain to use cortex-a53 as the target. The effect is that various cortex-a53 tunings are enabled for the compilation of packages.

---
 arch/Config.in.arm | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/Config.in.arm +8 -0
index ee612f5..72bb744 100644
@@ -170,6 +170,13 @@ config BR2_cortex_a17
 	select BR2_ARM_CPU_HAS_THUMB2
 	select BR2_ARM_CPU_ARMV7A
 	select BR2_ARCH_HAS_MMU_OPTIONAL
+config BR2_cortex_a53
+	bool "cortex-A53"
+	select BR2_ARM_CPU_HAS_ARM
+	select BR2_ARM_CPU_HAS_NEON
+	select BR2_ARM_CPU_HAS_VFPV4
+	select BR2_ARM_CPU_ARMV7A
+	select BR2_ARCH_HAS_MMU_OPTIONAL
 config BR2_cortex_m3
 	bool "cortex-M3"
 	select BR2_ARM_CPU_HAS_THUMB2
@@ -458,6 +465,7 @@ config BR2_GCC_TARGET_CPU
 	default "cortex-a12"	if BR2_cortex_a12
 	default "cortex-a15"	if BR2_cortex_a15
 	default "cortex-a17"	if BR2_cortex_a17
+	default "cortex-a53"	if BR2_cortex_a53
 	default "cortex-m3"	if BR2_cortex_m3
 	default "cortex-m4"	if BR2_cortex_m4
 	default "fa526"		if BR2_fa526
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 arch/arm: Add Cortex-a53 CPU

Hello,

Quoted 5 lines · Matt Flax

Adds the Cortex-a53 CPU to the target architecture variant choice. This sets the toolchain to use cortex-a53 as the target. The effect is that various cortex-a53 tunings are enabled for the compilation of packages.

The A53 is an ARM64 CPU, so it should rather be added to Config.in.aarch64 (in which we don't yet have a CPU selection, but that can be added).

Or are you building a 32 bits ARM system for a Cortex-A53 ? In that case, adding it to Config.in.arm would be OK, but it's a bit annoying that we would have to duplicate many ARM CPUs between Config.in.arm and Config.in.aarch64.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 arch/arm: Add Cortex-a53 CPU

Hi Thomas,
Thomas Petazzoni wrote,

Quoted 9 lines

Hello,

Quoted 5 lines · Matt Flax

Adds the Cortex-a53 CPU to the target architecture variant choice. This sets the toolchain to use cortex-a53 as the target. The effect is that various cortex-a53 tunings are enabled for the compilation of packages.

Quoted 8 lines

The A53 is an ARM64 CPU, so it should rather be added to Config.in.aarch64 (in which we don't yet have a CPU selection, but that can be added).

Or are you building a 32 bits ARM system for a Cortex-A53 ? In that case, adding it to Config.in.arm would be OK, but it's a bit annoying that we would have to duplicate many ARM CPUs between Config.in.arm and Config.in.aarch64.

The new rpi3 can be compiled with optimization for cortex-a53 in ARM 32 bit mode. The aarch64 port for rpi3 isn't complete. So this might be a use case. I fixed one issue in uCLibc-ng in the past to allow cortex-a53 optimized builds.

best regards
Waldemar

#3 lore raw

PATCH 1/1 arch/arm: Add Cortex-a53 CPU

In reply to Thomas Petazzoni
Quoted 12 lines · Thomas Petazzoni

Hello,

Quoted 5 lines · Matt Flax

Adds the Cortex-a53 CPU to the target architecture variant choice. This sets the toolchain to use cortex-a53 as the target. The effect is that various cortex-a53 tunings are enabled for the compilation of packages.

Quoted 8 lines

The A53 is an ARM64 CPU, so it should rather be added to Config.in.aarch64 (in which we don't yet have a CPU selection, but that can be added).

Or are you building a 32 bits ARM system for a Cortex-A53 ? In that case, adding it to Config.in.arm would be OK, but it's a bit annoying that we would have to duplicate many ARM CPUs between Config.in.arm and Config.in.aarch64.

64bit kernel with 32bit userspace is most common usecase as of now for a53 that I see. so you need some sort of multilib.

Quoted 10 lines

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160819/f178d6c9/attachment.asc>

#4 lore raw

PATCH 1/1 arch/arm: Add Cortex-a53 CPU

Hello,

Quoted 11 lines · Khem Raj
Quoted 11 lines · Matt Flax
Quoted 5 lines

Adds the Cortex-a53 CPU to the target architecture variant choice. This sets the toolchain to use cortex-a53 as the target. The effect is that various cortex-a53 tunings are enabled for the compilation of packages.

The A53 is an ARM64 CPU, so it should rather be added to Config.in.aarch64 (in which we don't yet have a CPU selection, but that can be added).

Quoted 7 lines
Quoted 4 lines

Or are you building a 32 bits ARM system for a Cortex-A53 ? In that case, adding it to Config.in.arm would be OK, but it's a bit annoying that we would have to duplicate many ARM CPUs between Config.in.arm and Config.in.aarch64.

64bit kernel with 32bit userspace is most common usecase as of now for a53 that I see. so you need some sort of multilib.

I think on RPi3 they use a 32 bit kernel and 32 bit userspace, which probably is what Matt was targeting. But I'd like to hear from Matt's use case first.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#5 lore raw

PATCH 1/1 arch/arm: Add Cortex-a53 CPU

Quoted 23 lines · Thomas Petazzoni

Hello,

Quoted 16 lines · Khem Raj
Quoted 15 lines · Matt Flax
Quoted 5 lines

Adds the Cortex-a53 CPU to the target architecture variant choice. This sets the toolchain to use cortex-a53 as the target. The effect is that various cortex-a53 tunings are enabled for the compilation of packages.

The A53 is an ARM64 CPU, so it should rather be added to Config.in.aarch64 (in which we don't yet have a CPU selection, but that can be added).

Or are you building a 32 bits ARM system for a Cortex-A53 ? In that case, adding it to Config.in.arm would be OK, but it's a bit annoying that we would have to duplicate many ARM CPUs between Config.in.arm and Config.in.aarch64.

Quoted 6 lines
Quoted 2 lines

64bit kernel with 32bit userspace is most common usecase as of now for a53 that I see. so you need some sort of multilib.

I think on RPi3 they use a 32 bit kernel and 32 bit userspace, which probably is what Matt was targeting. But I'd like to hear from Matt's use case first.

rpi3 is 32bit all the way, so this patch is fine for that case.

Quoted 6 lines

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160819/15633324/attachment.asc>

author
#6 lore raw

PATCH 1/1 arch/arm: Add Cortex-a53 CPU

Quoted 20 lines · Khem Raj
Quoted 20 lines · Thomas Petazzoni

Hello,

Quoted 14 lines · Khem Raj
Quoted 14 lines · Matt Flax
Quoted 5 lines

Adds the Cortex-a53 CPU to the target architecture variant choice. This sets the toolchain to use cortex-a53 as the target. The effect is that various cortex-a53 tunings are enabled for the compilation of packages.

The A53 is an ARM64 CPU, so it should rather be added to Config.in.aarch64 (in which we don't yet have a CPU selection, but that can be added).

Or are you building a 32 bits ARM system for a Cortex-A53 ? In that case, adding it to Config.in.arm would be OK, but it's a bit annoying that we would have to duplicate many ARM CPUs between Config.in.arm and Config.in.aarch64.

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

64bit kernel with 32bit userspace is most common usecase as of now for a53 that I see. so you need some sort of multilib.

I think on RPi3 they use a 32 bit kernel and 32 bit userspace, which probably is what Matt was targeting. But I'd like to hear from Matt's use case first.

rpi3 is 32bit all the way, so this patch is fine for that case.

My use case is 32 bit kernel with a 32 bit buildroot.

I have been working with the s5p6818 Nexcell silicon and they have A53 cores. These cores are more powerful then ARMv7 cortex cores ... because they have a more advanced neon hardware floating point processor. Even with a 32 bit kernel and os, gcc can optimise the code using the "cortex-a53" tuning.
I think (at this point in time) the neon unit can handle 64bit (double) computations, even when the kernel is 32 bit. This can only be enabled in gcc using the "cortex-a53" tuning. From a hardware standpoint, if it is in silicon, then it will work - no matter what the software is doing ... I guess it just depends on the 32 bit gcc implementation of being able to load and unload the various 64 bit types efficiently. Not sure where to look for more information, however Aarch32 is mentioned in the a53 gcc config :
https://github.com/gcc-mirror/gcc/blob/master/gcc/config/arm/cortex-a53.md
They also mention special register load instructions for aarch32.

From my experience, the Nexcell s5p6818 ARMv8 A53 cores roughly double
their speed in heavy floating point execution over Exynos 4412 ARMv7 Cortex-A9 cores. It is possible that this is because their NEON hardware processors have double the vector size ?

Matt

Quoted 11 lines
Quoted 5 lines

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160820/cc17038c/attachment.html>