arm-bsp: ARMv8-2a: Add tuning files
PATCH 1/3 arm-bsp: ARMv8-2a: Add tuning files
Add all the available ARMv8.2 tunings from GCC. This belongs in OE-Core, but adding here so that it can be used while trying to upstream there.
--- .../include/tune-cortexa73-cortexa35.inc | 20 +++++++++++++++++++ .../include/tune-cortexa75-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa75.inc | 13 ++++++++++++ .../include/tune-cortexa76-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa76.inc | 13 ++++++++++++ .../conf/machine/include/tune-cortexa77.inc | 13 ++++++++++++ .../conf/machine/include/tune-neoversen1.inc | 14 +++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa77.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-neoversen1.inc
meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +20 -0
@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa73-cortexa35" + +TUNEVALID[cortexa73-cortexa35] = "Enable big.LITTLE Cortex-A73.Cortex-A35 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", "cortexa73-cortexa35:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", " -mcpu=cortex-a73.cortex-a35", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa73.cortexa35 implies crc support +AVAILTUNES += "cortexa73-cortexa35 cortexa73-cortexa35-crypto" +ARMPKGARCH_tune-cortexa73-cortexa35 = "cortexa73-cortexa35" +ARMPKGARCH_tune-cortexa73-cortexa35-crypto = "cortexa73-cortexa35-crypto" +TUNE_FEATURES_tune-cortexa73-cortexa35 = "aarch64 crc cortexa73-cortexa35" +TUNE_FEATURES_tune-cortexa73-cortexa35-crypto = "aarch64 crc crypto cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa35 cortexa73-cortexa35-crypto" +BASE_LIB_tune-cortexa73-cortexa35 = "lib64" +BASE_LIB_tune-cortexa73-cortexa35-crypto = "lib64" +
meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +20 -0
@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa75-cortexa55" + +TUNEVALID[cortexa75-cortexa55] = "Enable big.LITTLE Cortex-A75.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", "cortexa75-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", " -mcpu=cortex-a75.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa75.cortexa55 implies crc support +AVAILTUNES += "cortexa75-cortexa55 cortexa75-cortexa55-crypto" +ARMPKGARCH_tune-cortexa75-cortexa55 = "cortexa75-cortexa55" +ARMPKGARCH_tune-cortexa75-cortexa55-crypto = "cortexa75-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa75-cortexa55 = "aarch64 crc cortexa75-cortexa55" +TUNE_FEATURES_tune-cortexa75-cortexa55-crypto = "aarch64 crc crypto cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75-cortexa55 cortexa75-cortexa55-crypto" +BASE_LIB_tune-cortexa75-cortexa55 = "lib64" +BASE_LIB_tune-cortexa75-cortexa55-crypto = "lib64" +
meta-arm-bsp/conf/machine/include/tune-cortexa75.inc new file +13 -0
@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa75" + +TUNEVALID[cortexa75] = "Enable Cortex-A75 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa75', ' -mcpu=cortex-a75', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa75" +ARMPKGARCH_tune-cortexa75 = "cortexa75" +TUNE_FEATURES_tune-cortexa75 = "aarch64 cortexa75 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa75 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75" +BASE_LIB_tune-cortexa75 = "lib64"
meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +20 -0
@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa76-cortexa55" + +TUNEVALID[cortexa76-cortexa55] = "Enable big.LITTLE Cortex-A76.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", "cortexa76-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", " -mcpu=cortex-a76.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa76.cortexa55 implies crc support +AVAILTUNES += "cortexa76-cortexa55 cortexa76-cortexa55-crypto" +ARMPKGARCH_tune-cortexa76-cortexa55 = "cortexa76-cortexa55" +ARMPKGARCH_tune-cortexa76-cortexa55-crypto = "cortexa76-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa76-cortexa55 = "aarch64 crc cortexa76-cortexa55" +TUNE_FEATURES_tune-cortexa76-cortexa55-crypto = "aarch64 crc crypto cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76-cortexa55 cortexa76-cortexa55-crypto" +BASE_LIB_tune-cortexa76-cortexa55 = "lib64" +BASE_LIB_tune-cortexa76-cortexa55-crypto = "lib64" +
meta-arm-bsp/conf/machine/include/tune-cortexa76.inc new file +13 -0
@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa76" + +TUNEVALID[cortexa76] = "Enable Cortex-A76 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa76', ' -mcpu=cortex-a76', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa76" +ARMPKGARCH_tune-cortexa76 = "cortexa76" +TUNE_FEATURES_tune-cortexa76 = "aarch64 cortexa76 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa76 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76" +BASE_LIB_tune-cortexa76 = "lib64"
meta-arm-bsp/conf/machine/include/tune-cortexa77.inc new file +13 -0
@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa77" + +TUNEVALID[cortexa77] = "Enable Cortex-A77 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa77', ' -mcpu=cortex-a77', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa77" +ARMPKGARCH_tune-cortexa77 = "cortexa77" +TUNE_FEATURES_tune-cortexa77 = "aarch64 cortexa77 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa77 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa77" +BASE_LIB_tune-cortexa77 = "lib64"
meta-arm-bsp/conf/machine/include/tune-neoversen1.inc new file +14 -0
@@ -0,0 +1,14 @@ +DEFAULTTUNE ?= "neoversen1" + +TUNEVALID[neoversen1] = "Enable Neoverse-N1 specific processor optimizations" +# Note: Neoverse was called Ares, and GCC will accept "ares" in place of "neoverse-n1" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen1', ' -mcpu=neoverse-n1', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "neoversen1" +ARMPKGARCH_tune-neoversen1 = "neoversen1" +TUNE_FEATURES_tune-neoversen1 = "aarch64 neoversen1 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-neoversen1 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} neoversen1" +BASE_LIB_tune-neoversen1 = "lib64"
Signature · 1 line
2.17.1
PATCH 2/3 arm-bsp: SGI575 should use A75 tuning
Per https://community.arm.com/developer/tools-software/oss-platforms/w/docs/489/system-guidance-for-infrastructure-sgi
The SGI575 is a Cortex-A75. Use that tuning to get better optimization
for the platform.
--- meta-arm-bsp/conf/machine/sgi575.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
meta-arm-bsp/conf/machine/sgi575.conf +1 -3
@@ -4,9 +4,7 @@ #@NAME: SGI575 #@DESCRIPTION: Machine configuration for SGI575 -TUNE_FEATURES = "aarch64" - -require conf/machine/include/arm/arch-armv8a.inc +require conf/machine/include/tune-cortexa75.inc EXTRA_IMAGEDEPENDS += "virtual/control-processor-firmware"
Signature · 1 line
2.17.1
PATCH 3/3 arm-bsp: use neoverse-n1 for N1SDP
In reply to Jon MasonPer https://community.arm.com/developer/tools-software/oss-platforms/w/docs/458/neoverse-n1-sdp
The N1SDP is a Neoverse N1. Use that tuning to get better optimization
for the platform.
--- meta-arm-bsp/conf/machine/n1sdp.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
meta-arm-bsp/conf/machine/n1sdp.conf +1 -3
@@ -4,9 +4,7 @@ #@NAME: N1SDP machine #@DESCRIPTION: Machine configuration for N1SDP -TUNE_FEATURES = "aarch64" - -require conf/machine/include/arm/arch-armv8a.inc +require conf/machine/include/tune-neoversen1.inc KERNEL_IMAGETYPE = "Image" KERNEL_DEVICETREE = "n1sdp/n1sdp.dtb"
Signature · 1 line
2.17.1
Quoted 4 lines · Jon Mason
Add all the available ARMv8.2 tunings from GCC. This belongs in OE-Core, but adding here so that it can be used while trying to upstream there.
This was merged recently in OE-core:
https://git.openembedded.org/openembedded-core/commit/?id=88c79a56b4ddab61c16cd4cb7b887e7d7223d845
Shouldn't you use this ?
Quoted 179 lines
Change-Id I5025eef6d18545478116b5079daf9c4d12e93dcaSigned-off-by Jon Mason <[email protected]>--- .../include/tune-cortexa73-cortexa35.inc | 20 +++++++++++++++++++ .../include/tune-cortexa75-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa75.inc | 13 ++++++++++++ .../include/tune-cortexa76-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa76.inc | 13 ++++++++++++ .../conf/machine/include/tune-cortexa77.inc | 13 ++++++++++++ .../conf/machine/include/tune-neoversen1.inc | 14 +++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa77.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-neoversen1.incmeta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +20
-0@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa73-cortexa35" + +TUNEVALID[cortexa73-cortexa35] = "Enable big.LITTLE Cortex-A73.Cortex-A35 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", "cortexa73-cortexa35:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", " -mcpu=cortex-a73.cortex-a35", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa73.cortexa35 implies crc support +AVAILTUNES += "cortexa73-cortexa35 cortexa73-cortexa35-crypto" +ARMPKGARCH_tune-cortexa73-cortexa35 = "cortexa73-cortexa35" +ARMPKGARCH_tune-cortexa73-cortexa35-crypto = "cortexa73-cortexa35-crypto" +TUNE_FEATURES_tune-cortexa73-cortexa35 = "aarch64 crc cortexa73-cortexa35" +TUNE_FEATURES_tune-cortexa73-cortexa35-crypto = "aarch64 crc crypto cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa35 cortexa73-cortexa35-crypto" +BASE_LIB_tune-cortexa73-cortexa35 = "lib64" +BASE_LIB_tune-cortexa73-cortexa35-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +20
-0@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa75-cortexa55" + +TUNEVALID[cortexa75-cortexa55] = "Enable big.LITTLE Cortex-A75.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", "cortexa75-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", " -mcpu=cortex-a75.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa75.cortexa55 implies crc support +AVAILTUNES += "cortexa75-cortexa55 cortexa75-cortexa55-crypto" +ARMPKGARCH_tune-cortexa75-cortexa55 = "cortexa75-cortexa55" +ARMPKGARCH_tune-cortexa75-cortexa55-crypto = "cortexa75-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa75-cortexa55 = "aarch64 crc cortexa75-cortexa55" +TUNE_FEATURES_tune-cortexa75-cortexa55-crypto = "aarch64 crc crypto cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75-cortexa55 cortexa75-cortexa55-crypto" +BASE_LIB_tune-cortexa75-cortexa55 = "lib64" +BASE_LIB_tune-cortexa75-cortexa55-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa75.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa75" + +TUNEVALID[cortexa75] = "Enable Cortex-A75 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa75', ' -mcpu=cortex-a75', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa75" +ARMPKGARCH_tune-cortexa75 = "cortexa75" +TUNE_FEATURES_tune-cortexa75 = "aarch64 cortexa75 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa75 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75" +BASE_LIB_tune-cortexa75 = "lib64"meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +20
-0@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa76-cortexa55" + +TUNEVALID[cortexa76-cortexa55] = "Enable big.LITTLE Cortex-A76.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", "cortexa76-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", " -mcpu=cortex-a76.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa76.cortexa55 implies crc support +AVAILTUNES += "cortexa76-cortexa55 cortexa76-cortexa55-crypto" +ARMPKGARCH_tune-cortexa76-cortexa55 = "cortexa76-cortexa55" +ARMPKGARCH_tune-cortexa76-cortexa55-crypto = "cortexa76-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa76-cortexa55 = "aarch64 crc cortexa76-cortexa55" +TUNE_FEATURES_tune-cortexa76-cortexa55-crypto = "aarch64 crc crypto cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76-cortexa55 cortexa76-cortexa55-crypto" +BASE_LIB_tune-cortexa76-cortexa55 = "lib64" +BASE_LIB_tune-cortexa76-cortexa55-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa76.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa76" + +TUNEVALID[cortexa76] = "Enable Cortex-A76 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa76', ' -mcpu=cortex-a76', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa76" +ARMPKGARCH_tune-cortexa76 = "cortexa76" +TUNE_FEATURES_tune-cortexa76 = "aarch64 cortexa76 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa76 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76" +BASE_LIB_tune-cortexa76 = "lib64"meta-arm-bsp/conf/machine/include/tune-cortexa77.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa77" + +TUNEVALID[cortexa77] = "Enable Cortex-A77 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa77', ' -mcpu=cortex-a77', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa77" +ARMPKGARCH_tune-cortexa77 = "cortexa77" +TUNE_FEATURES_tune-cortexa77 = "aarch64 cortexa77 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa77 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa77" +BASE_LIB_tune-cortexa77 = "lib64"meta-arm-bsp/conf/machine/include/tune-neoversen1.inc new file +14
-1@@ -0,0 +1,14 @@ +DEFAULTTUNE ?= "neoversen1" + +TUNEVALID[neoversen1] = "Enable Neoverse-N1 specific processor optimizations" +# Note: Neoverse was called Ares, and GCC will accept "ares" in place of "neoverse-n1" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen1', ' -mcpu=neoverse-n1', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "neoversen1" +ARMPKGARCH_tune-neoversen1 = "neoversen1" +TUNE_FEATURES_tune-neoversen1 = "aarch64 neoversen1 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-neoversen1 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} neoversen1" +BASE_LIB_tune-neoversen1 = "lib64" --2.17.1
Quoted 10 lines · Nicolas Dechesne
Quoted 4 lines · Jon Mason
Add all the available ARMv8.2 tunings from GCC. This belongs in OE-Core, but adding here so that it can be used while trying to upstream there.
This was merged recently in OE-core:
https://git.openembedded.org/openembedded-core/commit/?id=88c79a56b4ddab61c16cd4cb7b887e7d7223d845Shouldn't you use this ?
Below, the cores that are ARMv8.2 based are referencing that file.
However, if you are asking if that should be sufficient for those (instead of needing a core specific tuning), the answer appears to be no. If you compare the GCC flags for the generic 8.2
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/aarch64/aarch64-arches.def;h=3be55fa29aa15cb19ab00aeb2edb156ad3d09aee;hb=HEAD
and an A75 (which is 8.2 based)
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/aarch64/aarch64-cores.def;h=a7dde38d7687049825aec4eb9446e76db84cd9c0;hb=HEAD#l102
You will see the flags are different. Perhaps not sufficiently different for anything more than benchmarking, but that is a secondary discussion. Given that these will mostly be used by meta-arm-bsp machines, which will most likely want to be running as optimally as possible, then this is a good thing to have here.
What I would like to do is actually include all of the 8.2 based cores into the conf/machine/include/arm/arch-armv8-2a.inc. This would stop the explosion of core specific tunes in conf/machine/include/ and nicely group them into a CPU generation family file. However, that might be contriversial. While that is being hashed out, this can be used here for those that need it. So, think of this patch as an intermediate step for that change.
Thanks,
Jon
Quoted 183 lines
Quoted 181 lines
Change-Id I5025eef6d18545478116b5079daf9c4d12e93dcaSigned-off-by Jon Mason <[email protected]>--- .../include/tune-cortexa73-cortexa35.inc | 20 +++++++++++++++++++ .../include/tune-cortexa75-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa75.inc | 13 ++++++++++++ .../include/tune-cortexa76-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa76.inc | 13 ++++++++++++ .../conf/machine/include/tune-cortexa77.inc | 13 ++++++++++++ .../conf/machine/include/tune-neoversen1.inc | 14 +++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa77.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-neoversen1.incmeta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +20
-0@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa73-cortexa35" + +TUNEVALID[cortexa73-cortexa35] = "Enable big.LITTLE Cortex-A73.Cortex-A35 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", "cortexa73-cortexa35:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", " -mcpu=cortex-a73.cortex-a35", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa73.cortexa35 implies crc support +AVAILTUNES += "cortexa73-cortexa35 cortexa73-cortexa35-crypto" +ARMPKGARCH_tune-cortexa73-cortexa35 = "cortexa73-cortexa35" +ARMPKGARCH_tune-cortexa73-cortexa35-crypto = "cortexa73-cortexa35-crypto" +TUNE_FEATURES_tune-cortexa73-cortexa35 = "aarch64 crc cortexa73-cortexa35" +TUNE_FEATURES_tune-cortexa73-cortexa35-crypto = "aarch64 crc crypto cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa35 cortexa73-cortexa35-crypto" +BASE_LIB_tune-cortexa73-cortexa35 = "lib64" +BASE_LIB_tune-cortexa73-cortexa35-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +20
-0@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa75-cortexa55" + +TUNEVALID[cortexa75-cortexa55] = "Enable big.LITTLE Cortex-A75.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", "cortexa75-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", " -mcpu=cortex-a75.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa75.cortexa55 implies crc support +AVAILTUNES += "cortexa75-cortexa55 cortexa75-cortexa55-crypto" +ARMPKGARCH_tune-cortexa75-cortexa55 = "cortexa75-cortexa55" +ARMPKGARCH_tune-cortexa75-cortexa55-crypto = "cortexa75-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa75-cortexa55 = "aarch64 crc cortexa75-cortexa55" +TUNE_FEATURES_tune-cortexa75-cortexa55-crypto = "aarch64 crc crypto cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75-cortexa55 cortexa75-cortexa55-crypto" +BASE_LIB_tune-cortexa75-cortexa55 = "lib64" +BASE_LIB_tune-cortexa75-cortexa55-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa75.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa75" + +TUNEVALID[cortexa75] = "Enable Cortex-A75 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa75', ' -mcpu=cortex-a75', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa75" +ARMPKGARCH_tune-cortexa75 = "cortexa75" +TUNE_FEATURES_tune-cortexa75 = "aarch64 cortexa75 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa75 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75" +BASE_LIB_tune-cortexa75 = "lib64"meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +20
-0@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa76-cortexa55" + +TUNEVALID[cortexa76-cortexa55] = "Enable big.LITTLE Cortex-A76.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", "cortexa76-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", " -mcpu=cortex-a76.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc + +# cortexa76.cortexa55 implies crc support +AVAILTUNES += "cortexa76-cortexa55 cortexa76-cortexa55-crypto" +ARMPKGARCH_tune-cortexa76-cortexa55 = "cortexa76-cortexa55" +ARMPKGARCH_tune-cortexa76-cortexa55-crypto = "cortexa76-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa76-cortexa55 = "aarch64 crc cortexa76-cortexa55" +TUNE_FEATURES_tune-cortexa76-cortexa55-crypto = "aarch64 crc crypto cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76-cortexa55 cortexa76-cortexa55-crypto" +BASE_LIB_tune-cortexa76-cortexa55 = "lib64" +BASE_LIB_tune-cortexa76-cortexa55-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa76.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa76" + +TUNEVALID[cortexa76] = "Enable Cortex-A76 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa76', ' -mcpu=cortex-a76', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa76" +ARMPKGARCH_tune-cortexa76 = "cortexa76" +TUNE_FEATURES_tune-cortexa76 = "aarch64 cortexa76 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa76 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76" +BASE_LIB_tune-cortexa76 = "lib64"meta-arm-bsp/conf/machine/include/tune-cortexa77.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa77" + +TUNEVALID[cortexa77] = "Enable Cortex-A77 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa77', ' -mcpu=cortex-a77', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa77" +ARMPKGARCH_tune-cortexa77 = "cortexa77" +TUNE_FEATURES_tune-cortexa77 = "aarch64 cortexa77 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa77 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa77" +BASE_LIB_tune-cortexa77 = "lib64"meta-arm-bsp/conf/machine/include/tune-neoversen1.inc new file +14
-1@@ -0,0 +1,14 @@ +DEFAULTTUNE ?= "neoversen1" + +TUNEVALID[neoversen1] = "Enable Neoverse-N1 specific processor optimizations" +# Note: Neoverse was called Ares, and GCC will accept "ares" in place of "neoverse-n1" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen1', ' -mcpu=neoverse-n1', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "neoversen1" +ARMPKGARCH_tune-neoversen1 = "neoversen1" +TUNE_FEATURES_tune-neoversen1 = "aarch64 neoversen1 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-neoversen1 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} neoversen1" +BASE_LIB_tune-neoversen1 = "lib64" --2.17.1
Quoted 8 lines · Jon Mason
Quoted 6 lines · Nicolas Dechesne
Quoted 4 lines · Jon Mason
Add all the available ARMv8.2 tunings from GCC. This belongs in OE-Core, but adding here so that it can be used while trying to upstream there.
Quoted 6 lines
Quoted 4 lines
This was merged recently in OE-core:
https://git.openembedded.org/openembedded-core/commit/?id=88c79a56b4ddab61c16cd4cb7b887e7d7223d845Shouldn't you use this ?
Below, the cores that are ARMv8.2 based are referencing that file.
ok. I missed them. However, more below ..
Quoted 12 lines
However, if you are asking if that should be sufficient for those (instead of needing a core specific tuning), the answer appears to be no. If you compare the GCC flags for the generic 8.2
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/aarch64/aarch64-arches.def;h=3be55fa29aa15cb19ab00aeb2edb156ad3d09aee;hb=HEAD
and an A75 (which is 8.2 based)
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/aarch64/aarch64-cores.def;h=a7dde38d7687049825aec4eb9446e76db84cd9c0;hb=HEAD#l102
You will see the flags are different. Perhaps not sufficiently different for anything more than benchmarking, but that is a secondary discussion. Given that these will mostly be used by meta-arm-bsp machines, which will most likely want to be running as optimally as possible, then this is a good thing to have here.
I agree with that, we should use CPU flags when they are available.
Quoted 34 lines
What I would like to do is actually include all of the 8.2 based cores into the conf/machine/include/arm/arch-armv8-2a.inc. This would stop the explosion of core specific tunes in conf/machine/include/ and nicely group them into a CPU generation family file. However, that might be contriversial. While that is being hashed out, this can be used here for those that need it. So, think of this patch as an intermediate step for that change.
Thanks,
JonQuoted 22 lines
Quoted 22 lines
Change-Id I5025eef6d18545478116b5079daf9c4d12e93dcaSigned-off-by Jon Mason <[email protected]>--- .../include/tune-cortexa73-cortexa35.inc | 20 +++++++++++++++++++ .../include/tune-cortexa75-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa75.inc | 13 ++++++++++++ .../include/tune-cortexa76-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa76.inc | 13 ++++++++++++ .../conf/machine/include/tune-cortexa77.inc | 13 ++++++++++++ .../conf/machine/include/tune-neoversen1.inc | 14 +++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa77.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-neoversen1.inc
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +0
-0@@ -0,0 +1,20 @@Quoted 8 lines
meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc line 8
Quoted 8 lines
meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +8
-0+DEFAULTTUNE ?= "cortexa73-cortexa35" + +TUNEVALID[cortexa73-cortexa35] = "Enable big.LITTLE Cortex-A73.Cortex-A35 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", "cortexa73-cortexa35:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", " -mcpu=cortex-a73.cortex-a35", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc
The commit log says that you are adding 8.2 tuning, however a73/a35 is not 8.2. Perhaps you should split (or reword $msg).
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +12
-0+ +# cortexa73.cortexa35 implies crc support +AVAILTUNES += "cortexa73-cortexa35 cortexa73-cortexa35-crypto" +ARMPKGARCH_tune-cortexa73-cortexa35 = "cortexa73-cortexa35" +ARMPKGARCH_tune-cortexa73-cortexa35-crypto = "cortexa73-cortexa35-crypto" +TUNE_FEATURES_tune-cortexa73-cortexa35 = "aarch64 crc cortexa73-cortexa35" +TUNE_FEATURES_tune-cortexa73-cortexa35-crypto = "aarch64 crc crypto cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa35 cortexa73-cortexa35-crypto" +BASE_LIB_tune-cortexa73-cortexa35 = "lib64" +BASE_LIB_tune-cortexa73-cortexa35-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +0
-0@@ -0,0 +1,20 @@
Quoted 8 lines
Quoted 8 lines
meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc line 8
Quoted 8 lines
meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +8
-0+DEFAULTTUNE ?= "cortexa75-cortexa55" + +TUNEVALID[cortexa75-cortexa55] = "Enable big.LITTLE Cortex-A75.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", "cortexa75-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", " -mcpu=cortex-a75.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc
Why not using 8.2 here? I stopped reviewing when I noticed that (and that's why I missed that you used 8.2 include later!).
Quoted 37 lines
Quoted 37 lines
Quoted 37 lines
meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +12
-0+ +# cortexa75.cortexa55 implies crc support +AVAILTUNES += "cortexa75-cortexa55 cortexa75-cortexa55-crypto" +ARMPKGARCH_tune-cortexa75-cortexa55 = "cortexa75-cortexa55" +ARMPKGARCH_tune-cortexa75-cortexa55-crypto = "cortexa75-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa75-cortexa55 = "aarch64 crc cortexa75-cortexa55" +TUNE_FEATURES_tune-cortexa75-cortexa55-crypto = "aarch64 crc crypto cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75-cortexa55 cortexa75-cortexa55-crypto" +BASE_LIB_tune-cortexa75-cortexa55 = "lib64" +BASE_LIB_tune-cortexa75-cortexa55-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa75.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa75" + +TUNEVALID[cortexa75] = "Enable Cortex-A75 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa75', ' -mcpu=cortex-a75', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa75" +ARMPKGARCH_tune-cortexa75 = "cortexa75" +TUNE_FEATURES_tune-cortexa75 = "aarch64 cortexa75 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa75 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75" +BASE_LIB_tune-cortexa75 = "lib64"meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +0
-0@@ -0,0 +1,20 @@
Quoted 8 lines
Quoted 8 lines
meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc line 8
Quoted 8 lines
meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +8
-0+DEFAULTTUNE ?= "cortexa76-cortexa55" + +TUNEVALID[cortexa76-cortexa55] = "Enable big.LITTLE Cortex-A76.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", "cortexa76-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", " -mcpu=cortex-a76.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.inc
Why not 8.2?
Quoted 77 lines
Quoted 76 lines
Quoted 74 lines
meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +12
-0+ +# cortexa76.cortexa55 implies crc support +AVAILTUNES += "cortexa76-cortexa55 cortexa76-cortexa55-crypto" +ARMPKGARCH_tune-cortexa76-cortexa55 = "cortexa76-cortexa55" +ARMPKGARCH_tune-cortexa76-cortexa55-crypto = "cortexa76-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa76-cortexa55 = "aarch64 crc cortexa76-cortexa55" +TUNE_FEATURES_tune-cortexa76-cortexa55-crypto = "aarch64 crc crypto cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76-cortexa55 cortexa76-cortexa55-crypto" +BASE_LIB_tune-cortexa76-cortexa55 = "lib64" +BASE_LIB_tune-cortexa76-cortexa55-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa76.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa76" + +TUNEVALID[cortexa76] = "Enable Cortex-A76 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa76', ' -mcpu=cortex-a76', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa76" +ARMPKGARCH_tune-cortexa76 = "cortexa76" +TUNE_FEATURES_tune-cortexa76 = "aarch64 cortexa76 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa76 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76" +BASE_LIB_tune-cortexa76 = "lib64"meta-arm-bsp/conf/machine/include/tune-cortexa77.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa77" + +TUNEVALID[cortexa77] = "Enable Cortex-A77 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa77', ' -mcpu=cortex-a77', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa77" +ARMPKGARCH_tune-cortexa77 = "cortexa77" +TUNE_FEATURES_tune-cortexa77 = "aarch64 cortexa77 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa77 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa77" +BASE_LIB_tune-cortexa77 = "lib64"meta-arm-bsp/conf/machine/include/tune-neoversen1.inc new file +14
-1@@ -0,0 +1,14 @@ +DEFAULTTUNE ?= "neoversen1" + +TUNEVALID[neoversen1] = "Enable Neoverse-N1 specific processor optimizations" +# Note: Neoverse was called Ares, and GCC will accept "ares" in place of "neoverse-n1" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen1', ' -mcpu=neoverse-n1', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "neoversen1" +ARMPKGARCH_tune-neoversen1 = "neoversen1" +TUNE_FEATURES_tune-neoversen1 = "aarch64 neoversen1 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-neoversen1 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} neoversen1" +BASE_LIB_tune-neoversen1 = "lib64" --2.17.1
Quoted 76 lines · Nicolas Dechesne
Quoted 8 lines · Jon Mason
Quoted 6 lines · Nicolas Dechesne
Quoted 4 lines · Jon Mason
Add all the available ARMv8.2 tunings from GCC. This belongs in OE-Core, but adding here so that it can be used while trying to upstream there.
Quoted 6 lines
Quoted 4 lines
This was merged recently in OE-core:
https://git.openembedded.org/openembedded-core/commit/?id=88c79a56b4ddab61c16cd4cb7b887e7d7223d845Shouldn't you use this ?
Below, the cores that are ARMv8.2 based are referencing that file.
ok. I missed them. However, more below ..
Quoted 12 lines
However, if you are asking if that should be sufficient for those (instead of needing a core specific tuning), the answer appears to be no. If you compare the GCC flags for the generic 8.2
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/aarch64/aarch64-arches.def;h=3be55fa29aa15cb19ab00aeb2edb156ad3d09aee;hb=HEAD
and an A75 (which is 8.2 based)
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/aarch64/aarch64-cores.def;h=a7dde38d7687049825aec4eb9446e76db84cd9c0;hb=HEAD#l102
You will see the flags are different. Perhaps not sufficiently different for anything more than benchmarking, but that is a secondary discussion. Given that these will mostly be used by meta-arm-bsp machines, which will most likely want to be running as optimally as possible, then this is a good thing to have here.I agree with that, we should use CPU flags when they are available.
Quoted 43 lines
What I would like to do is actually include all of the 8.2 based cores into the conf/machine/include/arm/arch-armv8-2a.inc. This would stop the explosion of core specific tunes in conf/machine/include/ and nicely group them into a CPU generation family file. However, that might be contriversial. While that is being hashed out, this can be used here for those that need it. So, think of this patch as an intermediate step for that change.
Thanks,
JonQuoted 31 lines
Quoted 31 lines
Change-Id I5025eef6d18545478116b5079daf9c4d12e93dcaSigned-off-by Jon Mason <[email protected]>--- .../include/tune-cortexa73-cortexa35.inc | 20 +++++++++++++++++++ .../include/tune-cortexa75-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa75.inc | 13 ++++++++++++ .../include/tune-cortexa76-cortexa55.inc | 20 +++++++++++++++++++ .../conf/machine/include/tune-cortexa76.inc | 13 ++++++++++++ .../conf/machine/include/tune-cortexa77.inc | 13 ++++++++++++ .../conf/machine/include/tune-neoversen1.inc | 14 +++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa75.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa76.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-cortexa77.inc create mode 100644 meta-arm-bsp/conf/machine/include/tune-neoversen1.incmeta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +3
-0@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa73-cortexa35" + +TUNEVALID[cortexa73-cortexa35] = "Enable big.LITTLE Cortex-A73.Cortex-A35 specific processor optimizations"
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc line 8
Quoted 5 lines
meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +5
-0+TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", "cortexa73-cortexa35:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa73-cortexa35", " -mcpu=cortex-a73.cortex-a35", "", d)}" + +require conf/machine/include/arm/arch-armv8a.incThe commit log says that you are adding 8.2 tuning, however a73/a35 is not 8.2. Perhaps you should split (or reword $msg).
Excellent point. I'll break this out into a separate patch and clean up the message to be more accurate.
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
meta-arm-bsp/conf/machine/include/tune-cortexa73-cortexa35.inc new file +12
-0+ +# cortexa73.cortexa35 implies crc support +AVAILTUNES += "cortexa73-cortexa35 cortexa73-cortexa35-crypto" +ARMPKGARCH_tune-cortexa73-cortexa35 = "cortexa73-cortexa35" +ARMPKGARCH_tune-cortexa73-cortexa35-crypto = "cortexa73-cortexa35-crypto" +TUNE_FEATURES_tune-cortexa73-cortexa35 = "aarch64 crc cortexa73-cortexa35" +TUNE_FEATURES_tune-cortexa73-cortexa35-crypto = "aarch64 crc crypto cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa73-cortexa35" +PACKAGE_EXTRA_ARCHS_tune-cortexa73-cortexa35-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa73-cortexa35 cortexa73-cortexa35-crypto" +BASE_LIB_tune-cortexa73-cortexa35 = "lib64" +BASE_LIB_tune-cortexa73-cortexa35-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +3
-0@@ -0,0 +1,20 @@ +DEFAULTTUNE ?= "cortexa75-cortexa55" + +TUNEVALID[cortexa75-cortexa55] = "Enable big.LITTLE Cortex-A75.Cortex-A55 specific processor optimizations"
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc line 8
Quoted 5 lines
meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +5
-0+TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", "cortexa75-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa75-cortexa55", " -mcpu=cortex-a75.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.incWhy not using 8.2 here? I stopped reviewing when I noticed that (and that's why I missed that you used 8.2 include later!).
Good catch. I'll address this and the ones you mentioned below.
Thanks,
Jon
Quoted 125 lines
Quoted 37 lines
Quoted 37 lines
Quoted 37 lines
meta-arm-bsp/conf/machine/include/tune-cortexa75-cortexa55.inc new file +12
-0+ +# cortexa75.cortexa55 implies crc support +AVAILTUNES += "cortexa75-cortexa55 cortexa75-cortexa55-crypto" +ARMPKGARCH_tune-cortexa75-cortexa55 = "cortexa75-cortexa55" +ARMPKGARCH_tune-cortexa75-cortexa55-crypto = "cortexa75-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa75-cortexa55 = "aarch64 crc cortexa75-cortexa55" +TUNE_FEATURES_tune-cortexa75-cortexa55-crypto = "aarch64 crc crypto cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa75-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa75-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75-cortexa55 cortexa75-cortexa55-crypto" +BASE_LIB_tune-cortexa75-cortexa55 = "lib64" +BASE_LIB_tune-cortexa75-cortexa55-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa75.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa75" + +TUNEVALID[cortexa75] = "Enable Cortex-A75 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa75', ' -mcpu=cortex-a75', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa75" +ARMPKGARCH_tune-cortexa75 = "cortexa75" +TUNE_FEATURES_tune-cortexa75 = "aarch64 cortexa75 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa75 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa75" +BASE_LIB_tune-cortexa75 = "lib64"meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +0
-0@@ -0,0 +1,20 @@Quoted 8 lines
Quoted 8 lines
meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc line 8
Quoted 8 lines
meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +8
-0+DEFAULTTUNE ?= "cortexa76-cortexa55" + +TUNEVALID[cortexa76-cortexa55] = "Enable big.LITTLE Cortex-A76.Cortex-A55 specific processor optimizations" +TUNECONFLICTS[aarch64] = "armv4 armv5 armv6 armv7 armv7a" +MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", "cortexa76-cortexa55:", "" ,d)}" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cortexa76-cortexa55", " -mcpu=cortex-a76.cortex-a55", "", d)}" + +require conf/machine/include/arm/arch-armv8a.incWhy not 8.2?
Quoted 77 lines
Quoted 76 lines
Quoted 74 lines
meta-arm-bsp/conf/machine/include/tune-cortexa76-cortexa55.inc new file +12
-0+ +# cortexa76.cortexa55 implies crc support +AVAILTUNES += "cortexa76-cortexa55 cortexa76-cortexa55-crypto" +ARMPKGARCH_tune-cortexa76-cortexa55 = "cortexa76-cortexa55" +ARMPKGARCH_tune-cortexa76-cortexa55-crypto = "cortexa76-cortexa55-crypto" +TUNE_FEATURES_tune-cortexa76-cortexa55 = "aarch64 crc cortexa76-cortexa55" +TUNE_FEATURES_tune-cortexa76-cortexa55-crypto = "aarch64 crc crypto cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa76-cortexa55" +PACKAGE_EXTRA_ARCHS_tune-cortexa76-cortexa55-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76-cortexa55 cortexa76-cortexa55-crypto" +BASE_LIB_tune-cortexa76-cortexa55 = "lib64" +BASE_LIB_tune-cortexa76-cortexa55-crypto = "lib64" +meta-arm-bsp/conf/machine/include/tune-cortexa76.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa76" + +TUNEVALID[cortexa76] = "Enable Cortex-A76 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa76', ' -mcpu=cortex-a76', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa76" +ARMPKGARCH_tune-cortexa76 = "cortexa76" +TUNE_FEATURES_tune-cortexa76 = "aarch64 cortexa76 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa76 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa76" +BASE_LIB_tune-cortexa76 = "lib64"meta-arm-bsp/conf/machine/include/tune-cortexa77.inc new file +13
-0@@ -0,0 +1,13 @@ +DEFAULTTUNE ?= "cortexa77" + +TUNEVALID[cortexa77] = "Enable Cortex-A77 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa77', ' -mcpu=cortex-a77', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "cortexa77" +ARMPKGARCH_tune-cortexa77 = "cortexa77" +TUNE_FEATURES_tune-cortexa77 = "aarch64 cortexa77 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-cortexa77 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa77" +BASE_LIB_tune-cortexa77 = "lib64"meta-arm-bsp/conf/machine/include/tune-neoversen1.inc new file +14
-1@@ -0,0 +1,14 @@ +DEFAULTTUNE ?= "neoversen1" + +TUNEVALID[neoversen1] = "Enable Neoverse-N1 specific processor optimizations" +# Note: Neoverse was called Ares, and GCC will accept "ares" in place of "neoverse-n1" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen1', ' -mcpu=neoverse-n1', '', d)}" + +require conf/machine/include/arm/arch-armv8-2a.inc + +# Little Endian base configs +AVAILTUNES += "neoversen1" +ARMPKGARCH_tune-neoversen1 = "neoversen1" +TUNE_FEATURES_tune-neoversen1 = "aarch64 neoversen1 crc crypto" +PACKAGE_EXTRA_ARCHS_tune-neoversen1 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} neoversen1" +BASE_LIB_tune-neoversen1 = "lib64" --2.17.1