Update armv8 tune file
cover Update armv8 tune file
This extends arch-armv8 support to enable armv8-a and crypto.
Add cortexa53 framework.
Boot tested on Odroid-c2 (cortexa53)
Armin Kuster (2):
armv8: update to use armv8-a tune
new tune: add base cortexa53 support
meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ meta/conf/machine/include/tune-cortexa53.inc | 18 ++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 meta/conf/machine/include/tune-cortexa53.inc
Signature · 1 line
2.5.0
PATCH 1/2 armv8: update to use armv8-a tune
--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
meta/conf/machine/include/arm/arch-armv8.inc +25 -0
@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a" + +TUNEVALID[armv8-a] = "Enable instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', ' -march=armv8-a', '', d)}" + +TUNEVALID[crypto] = "Enable crypto instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}" + +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', 'armv8a:', '' ,d)}" + require conf/machine/include/arm/arch-arm64.inc + +AVAILTUNES += "armv8-a armv8-a-crypto" +ARMPKGARCH_tune-armv8-a ?= "armv8-a" + +# Enable Crypto extension. This also enables Advanced SIMD and floating-point instructions +ARMPKGARCH_tune-armv8-a-crypto ?= "armv8-a" + +TUNE_FEATURES_tune-armv8-a = "aarch64 armv8-a" +TUNE_FEATURES_tune-armv8-a-crypto = "${TUNE_FEATURES_tune-armv8-a} crypto" + +PACKAGE_EXTRA_ARCHS_tune-armv8-a = "aarch64 armv8-a" +PACKAGE_EXTRA_ARCHS_tune-armv8-a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8-a} armv8-a-crypto" + +BASE_LIB_tune-armv8-a = "${BASE_LIB_tune-aarch64}" +BASE_LIB_tune-armv8-a-crypto = "${BASE_LIB_tune-aarch64}"
Signature · 1 line
2.5.0
Re: [PATCH 1/2] armv8: update to use armv8-a tune
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 11 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"
do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
--Mark
Quoted 26 lines
meta/conf/machine/include/arm/arch-armv8.inc +24
-0+ +TUNEVALID[armv8-a] = "Enable instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', ' -march=armv8-a', '', d)}" + +TUNEVALID[crypto] = "Enable crypto instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}" + +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', 'armv8a:', '' ,d)}" + require conf/machine/include/arm/arch-arm64.inc + +AVAILTUNES += "armv8-a armv8-a-crypto" +ARMPKGARCH_tune-armv8-a ?= "armv8-a" + +# Enable Crypto extension. This also enables Advanced SIMD and floating-point instructions +ARMPKGARCH_tune-armv8-a-crypto ?= "armv8-a" + +TUNE_FEATURES_tune-armv8-a = "aarch64 armv8-a" +TUNE_FEATURES_tune-armv8-a-crypto = "${TUNE_FEATURES_tune-armv8-a} crypto" + +PACKAGE_EXTRA_ARCHS_tune-armv8-a = "aarch64 armv8-a" +PACKAGE_EXTRA_ARCHS_tune-armv8-a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8-a} armv8-a-crypto" + +BASE_LIB_tune-armv8-a = "${BASE_LIB_tune-aarch64}" +BASE_LIB_tune-armv8-a-crypto = "${BASE_LIB_tune-aarch64}"
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 6 lines · Mark Hatle
Quoted 5 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 6 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
works for me either way.
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a' formated as?
- armin
Quoted 29 lines
--Mark
Quoted 26 lines
meta/conf/machine/include/arm/arch-armv8.inc +24
-0+ +TUNEVALID[armv8-a] = "Enable instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', ' -march=armv8-a', '', d)}" + +TUNEVALID[crypto] = "Enable crypto instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}" + +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', 'armv8a:', '' ,d)}" + require conf/machine/include/arm/arch-arm64.inc + +AVAILTUNES += "armv8-a armv8-a-crypto" +ARMPKGARCH_tune-armv8-a ?= "armv8-a" + +# Enable Crypto extension. This also enables Advanced SIMD and floating-point instructions +ARMPKGARCH_tune-armv8-a-crypto ?= "armv8-a" + +TUNE_FEATURES_tune-armv8-a = "aarch64 armv8-a" +TUNE_FEATURES_tune-armv8-a-crypto = "${TUNE_FEATURES_tune-armv8-a} crypto" + +PACKAGE_EXTRA_ARCHS_tune-armv8-a = "aarch64 armv8-a" +PACKAGE_EXTRA_ARCHS_tune-armv8-a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8-a} armv8-a-crypto" + +BASE_LIB_tune-armv8-a = "${BASE_LIB_tune-aarch64}" +BASE_LIB_tune-armv8-a-crypto = "${BASE_LIB_tune-aarch64}"
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 16 lines · On 7/31/17 12:40 PM, akuster808 wrote:
Quoted 6 lines · Mark Hatle
Quoted 5 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 6 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
Quoted 4 lines
works for me either way.
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a' formated as?
My preference is to drop the '-'. As for the '.', I'm not sure.. not something we've run across before.
We could just drop it (the '.'), but it really depends on if armv81a would confuse someone (familiar with arm) or not.
--Mark
Quoted 31 lines
- armin
Quoted 29 lines
--Mark
Quoted 26 lines
meta/conf/machine/include/arm/arch-armv8.inc +24
-0+ +TUNEVALID[armv8-a] = "Enable instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', ' -march=armv8-a', '', d)}" + +TUNEVALID[crypto] = "Enable crypto instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}" + +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', 'armv8a:', '' ,d)}" + require conf/machine/include/arm/arch-arm64.inc + +AVAILTUNES += "armv8-a armv8-a-crypto" +ARMPKGARCH_tune-armv8-a ?= "armv8-a" + +# Enable Crypto extension. This also enables Advanced SIMD and floating-point instructions +ARMPKGARCH_tune-armv8-a-crypto ?= "armv8-a" + +TUNE_FEATURES_tune-armv8-a = "aarch64 armv8-a" +TUNE_FEATURES_tune-armv8-a-crypto = "${TUNE_FEATURES_tune-armv8-a} crypto" + +PACKAGE_EXTRA_ARCHS_tune-armv8-a = "aarch64 armv8-a" +PACKAGE_EXTRA_ARCHS_tune-armv8-a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8-a} armv8-a-crypto" + +BASE_LIB_tune-armv8-a = "${BASE_LIB_tune-aarch64}" +BASE_LIB_tune-armv8-a-crypto = "${BASE_LIB_tune-aarch64}"
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 19 lines · Mark Hatle
Quoted 18 lines · On 7/31/17 12:40 PM, akuster808 wrote:
Quoted 6 lines · Mark Hatle
Quoted 5 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 6 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
works for me either way.
Quoted 8 lines
Quoted 2 lines
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a' formated as?
My preference is to drop the '-'. As for the '.', I'm not sure.. not something we've run across before.
We could just drop it (the '.'), but it really depends on if armv81a would confuse someone (familiar with arm) or not.
I would suggest to also sync with other distros and ensure that we dont do something different. Its very costly later. Since applications get ported to most common combination
Quoted 35 lines
--Mark
Quoted 31 lines
- armin
Quoted 29 lines
--Mark
Quoted 26 lines
meta/conf/machine/include/arm/arch-armv8.inc +24
-0+ +TUNEVALID[armv8-a] = "Enable instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', ' -march=armv8-a', '', d)}" + +TUNEVALID[crypto] = "Enable crypto instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}" + +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', 'armv8a:', '' ,d)}" + require conf/machine/include/arm/arch-arm64.inc + +AVAILTUNES += "armv8-a armv8-a-crypto" +ARMPKGARCH_tune-armv8-a ?= "armv8-a" + +# Enable Crypto extension. This also enables Advanced SIMD and floating-point instructions +ARMPKGARCH_tune-armv8-a-crypto ?= "armv8-a" + +TUNE_FEATURES_tune-armv8-a = "aarch64 armv8-a" +TUNE_FEATURES_tune-armv8-a-crypto = "${TUNE_FEATURES_tune-armv8-a} crypto" + +PACKAGE_EXTRA_ARCHS_tune-armv8-a = "aarch64 armv8-a" +PACKAGE_EXTRA_ARCHS_tune-armv8-a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8-a} armv8-a-crypto" + +BASE_LIB_tune-armv8-a = "${BASE_LIB_tune-aarch64}" +BASE_LIB_tune-armv8-a-crypto = "${BASE_LIB_tune-aarch64}"
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 22 lines · Khem Raj
Quoted 20 lines · Mark Hatle
Quoted 19 lines · On 7/31/17 12:40 PM, akuster808 wrote:
Quoted 6 lines · Mark Hatle
Quoted 5 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 6 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
works for me either way.
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a' formated as?
Quoted 8 lines
Quoted 5 lines
My preference is to drop the '-'. As for the '.', I'm not sure.. not something we've run across before.
We could just drop it (the '.'), but it really depends on if armv81a would confuse someone (familiar with arm) or not.
I would suggest to also sync with other distros and ensure that we dont do something different. Its very costly later. Since applications get ported to most common combination
Sync what part? naming of file? ( sorry lost regarding your comment)
- armin
Quoted 32 lines
Quoted 32 lines
--Mark
Quoted 29 lines
- armin
Quoted 28 lines
--Mark
Quoted 26 lines
meta/conf/machine/include/arm/arch-armv8.inc +24
-0+ +TUNEVALID[armv8-a] = "Enable instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', ' -march=armv8-a', '', d)}" + +TUNEVALID[crypto] = "Enable crypto instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}" + +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', 'armv8a:', '' ,d)}" + require conf/machine/include/arm/arch-arm64.inc + +AVAILTUNES += "armv8-a armv8-a-crypto" +ARMPKGARCH_tune-armv8-a ?= "armv8-a" + +# Enable Crypto extension. This also enables Advanced SIMD and floating-point instructions +ARMPKGARCH_tune-armv8-a-crypto ?= "armv8-a" + +TUNE_FEATURES_tune-armv8-a = "aarch64 armv8-a" +TUNE_FEATURES_tune-armv8-a-crypto = "${TUNE_FEATURES_tune-armv8-a} crypto" + +PACKAGE_EXTRA_ARCHS_tune-armv8-a = "aarch64 armv8-a" +PACKAGE_EXTRA_ARCHS_tune-armv8-a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8-a} armv8-a-crypto" + +BASE_LIB_tune-armv8-a = "${BASE_LIB_tune-aarch64}" +BASE_LIB_tune-armv8-a-crypto = "${BASE_LIB_tune-aarch64}"
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 45 lines · On Tue, Aug 1, 2017 at 8:17 AM, akuster808 <[email protected]> wrote:
Quoted 42 lines · Khem Raj
Quoted 38 lines · Mark Hatle
Quoted 23 lines · On 7/31/17 12:40 PM, akuster808 wrote:
Quoted 9 lines · Mark Hatle
Quoted 7 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)Quoted 10 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
Quoted 5 lines
works for me either way.
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a'
formated as?My preference is to drop the '-'. As for the '.', I'm not sure.. not something
we've run across before.We could just drop it (the '.'), but it really depends on if armv81a would
confuse someone (familiar with arm) or not.
Quoted 5 lines
Quoted 3 lines
I would suggest to also sync with other distros and ensure that we dont do something different. Its very costly later. Since applications get ported to most common combination
Sync what part? naming of file? ( sorry lost regarding your comment)
naming convention for arch e.g.
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 46 lines · Khem Raj
Quoted 45 lines · On Tue, Aug 1, 2017 at 8:17 AM, akuster808 <[email protected]> wrote:
Quoted 42 lines · Khem Raj
Quoted 38 lines · Mark Hatle
Quoted 23 lines · On 7/31/17 12:40 PM, akuster808 wrote:
Quoted 9 lines · Mark Hatle
Quoted 7 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)Quoted 10 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
Quoted 5 lines
works for me either way.
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a'
formated as?My preference is to drop the '-'. As for the '.', I'm not sure.. not something
we've run across before.We could just drop it (the '.'), but it really depends on if armv81a would
confuse someone (familiar with arm) or not.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I would suggest to also sync with other distros and ensure that we dont do something different. Its very costly later. Since applications get ported to most common combination
Sync what part? naming of file? ( sorry lost regarding your comment)
naming convention for arch e.g.
I'd say Debian/Ubuntu -- Fedora/RH would be the two primary sources I'd look at.
Between debian package names and RPM package names, it should give a clue if
there is any community standard forming for those names.
(May still be too premature for those environments for the armv8.X-a naming... and I've not seen it discussed on any other lists either.)
--Mark
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 56 lines · Mark Hatle
Quoted 46 lines · Khem Raj
Quoted 45 lines · On Tue, Aug 1, 2017 at 8:17 AM, akuster808 <[email protected]> wrote:
Quoted 42 lines · Khem Raj
Quoted 38 lines · Mark Hatle
Quoted 23 lines · On 7/31/17 12:40 PM, akuster808 wrote:
Quoted 9 lines · Mark Hatle
Quoted 7 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)Quoted 10 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
Quoted 5 lines
works for me either way.
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a'
formated as?My preference is to drop the '-'. As for the '.', I'm not sure.. not something
we've run across before.We could just drop it (the '.'), but it really depends on if armv81a would
confuse someone (familiar with arm) or not.Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I would suggest to also sync with other distros and ensure that we dont do something different. Its very costly later. Since applications get ported to most common combination
Sync what part? naming of file? ( sorry lost regarding your comment)
naming convention for arch e.g.
Quoted 6 lines
I'd say Debian/Ubuntu -- Fedora/RH would be the two primary sources I'd look at.
Between debian package names and RPM package names, it should give a clue if
there is any community standard forming for those names.(May still be too premature for those environments for the armv8.X-a naming... and I've not seen it discussed on any other lists either.)
yeah, it will be good to not go through the pain of community doing something else later
like *-*-gnueabihf triplet was invented and to date we keep fixing packages for OE
to account for gnueabihf can be gnueabi + -mfloat-abi=hard but packages just assume
Quoted 2 lines
--Mark
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 48 lines · Khem Raj
Quoted 47 lines · Mark Hatle
Quoted 33 lines · Khem Raj
Quoted 32 lines · On Tue, Aug 1, 2017 at 8:17 AM, akuster808 <[email protected]> wrote:
Quoted 30 lines · Khem Raj
Quoted 28 lines · Mark Hatle
Quoted 18 lines · On 7/31/17 12:40 PM, akuster808 wrote:
Quoted 7 lines · Mark Hatle
Quoted 6 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)Quoted 9 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
Quoted 5 lines
works for me either way.
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a'
formated as?My preference is to drop the '-'. As for the '.', I'm not sure.. not something
we've run across before.Quoted 9 lines
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
We could just drop it (the '.'), but it really depends on if armv81a would
confuse someone (familiar with arm) or not.I would suggest to also sync with other distros and ensure that we dont do something different. Its very costly later. Since applications get ported to most common combination
Sync what part? naming of file? ( sorry lost regarding your comment)
naming convention for arch e.g.
I'd say Debian/Ubuntu -- Fedora/RH would be the two primary sources I'd look at.
Between debian package names and RPM package names, it should give a clue if
there is any community standard forming for those names.
Quoted 8 lines
Quoted 2 lines
(May still be too premature for those environments for the armv8.X-a naming... and I've not seen it discussed on any other lists either.)
yeah, it will be good to not go through the pain of community doing something else later
like *-*-gnueabihf triplet was invented and to date we keep fixing packages for OE
to account for gnueabihf can be gnueabi + -mfloat-abi=hard but packages just assume
I think I now understand the issue. Any interest in having additional tune files warehoused somewhere so folks don't have to reinvent the wheel? Something like "meta-extra-tunes" ?
I prefer fostering contributions for additional tune files that get vetted by the community rather than the multitude of unseen implementations I have found sitting around.
regards,
armin
Quoted 3 lines
Quoted 3 lines
--Mark
Re: [PATCH 1/2] armv8: update to use armv8-a tune
Quoted 60 lines · On 8/3/17 10:56 AM, akuster808 wrote:
Quoted 48 lines · Khem Raj
Quoted 47 lines · Mark Hatle
Quoted 33 lines · Khem Raj
Quoted 32 lines · On Tue, Aug 1, 2017 at 8:17 AM, akuster808 <[email protected]> wrote:
Quoted 30 lines · Khem Raj
Quoted 28 lines · Mark Hatle
Quoted 18 lines · On 7/31/17 12:40 PM, akuster808 wrote:
Quoted 7 lines · Mark Hatle
Quoted 6 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)Quoted 9 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 7 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
Quoted 5 lines
works for me either way.
While we are at it. How would we want ‘armv8.1-a’, ‘armv8.2-a’, ‘armv8.3-a'
formated as?My preference is to drop the '-'. As for the '.', I'm not sure.. not something
we've run across before.Quoted 9 lines
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
We could just drop it (the '.'), but it really depends on if armv81a would
confuse someone (familiar with arm) or not.I would suggest to also sync with other distros and ensure that we dont do something different. Its very costly later. Since applications get ported to most common combination
Sync what part? naming of file? ( sorry lost regarding your comment)
naming convention for arch e.g.
I'd say Debian/Ubuntu -- Fedora/RH would be the two primary sources I'd look at.
Between debian package names and RPM package names, it should give a clue if
there is any community standard forming for those names.Quoted 8 lines
Quoted 2 lines
(May still be too premature for those environments for the armv8.X-a naming... and I've not seen it discussed on any other lists either.)
yeah, it will be good to not go through the pain of community doing something else later
like *-*-gnueabihf triplet was invented and to date we keep fixing packages for OE
to account for gnueabihf can be gnueabi + -mfloat-abi=hard but packages just assume
Quoted 7 lines
I think I now understand the issue. Any interest in having additional tune files warehoused somewhere so folks don't have to reinvent the wheel? Something like "meta-extra-tunes" ?
I prefer fostering contributions for additional tune files that get vetted by the community rather than the multitude of unseen implementations I have found sitting around.
I wouldn't be against it. The original thought was that new tunes (and related configurations) would be housed in the BSP until submitted to the YP. But I'm not sure in hindsight that is very robust..
Having a general meta-* layer that can just collect arch settings would be useful to help coordinate people, but keep out in-progress stuff from the base. The only issue is someone will have to further coordinate acceptance into the extra layer, and help push them into the oe-core proper when the tune quality is at a correct level --or-- the tune becomes prevalent in the world.
(I just don't want it to become a dumping ground and it never ends up in the core... Similarly moving older tunes out of the core might some day be useful as well.)
Key of course is this should include tunes, as well as things like siteinfo.bbclass and insane.bbclass or other extensions. (via:PACKAGEQA_EXTRA_MACHDEFFUNCS and similar.)
While the toolchains, arch recipe patches, etc should be elsewhere...
--Mark
Quoted 7 lines
regards,
arminQuoted 3 lines
Quoted 3 lines
--Mark
Re: [PATCH 1/2] armv8: update to use armv8-a tune
In reply to Mark HatleQuoted 6 lines · Mark Hatle
Quoted 5 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- meta/conf/machine/include/arm/arch-armv8.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
Quoted 8 lines
meta/conf/machine/include/arm/arch-armv8.inc line 1
Quoted 6 lines
meta/conf/machine/include/arm/arch-armv8.inc +1
-0@@ -1 +1,26 @@ +DEFAULTTUNE ?= "armv8-a"do we want the '-a'? The other arm (7) are of the format armv7a (no '-').
On the other hand, gcc went with armv7-a instead of armv7a... So, maybe having '-a' is actually more aligned with others?
Quoted 32 lines
Quoted 26 lines
meta/conf/machine/include/arm/arch-armv8.inc +24
-0+ +TUNEVALID[armv8-a] = "Enable instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', ' -march=armv8-a', '', d)}" + +TUNEVALID[crypto] = "Enable crypto instructions for ARMv8-a" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', d)}" + +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-a', 'armv8a:', '' ,d)}" + require conf/machine/include/arm/arch-arm64.inc + +AVAILTUNES += "armv8-a armv8-a-crypto" +ARMPKGARCH_tune-armv8-a ?= "armv8-a" + +# Enable Crypto extension. This also enables Advanced SIMD and floating-point instructions +ARMPKGARCH_tune-armv8-a-crypto ?= "armv8-a" + +TUNE_FEATURES_tune-armv8-a = "aarch64 armv8-a" +TUNE_FEATURES_tune-armv8-a-crypto = "${TUNE_FEATURES_tune-armv8-a} crypto" + +PACKAGE_EXTRA_ARCHS_tune-armv8-a = "aarch64 armv8-a" +PACKAGE_EXTRA_ARCHS_tune-armv8-a-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8-a} armv8-a-crypto" + +BASE_LIB_tune-armv8-a = "${BASE_LIB_tune-aarch64}" +BASE_LIB_tune-armv8-a-crypto = "${BASE_LIB_tune-aarch64}"Signature · 4 lines
_______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
PATCH 2/2 new tune: add base cortexa53 support
In reply to Armin Kuster--- meta/conf/machine/include/tune-cortexa53.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta/conf/machine/include/tune-cortexa53.inc
meta/conf/machine/include/tune-cortexa53.inc new file +18 -0
@@ -0,0 +1,18 @@ +DEFAULTTUNE ?= "armv8-a" + +TUNEVALID[cortexa53] = "Enable Cortex-A53 specific processor optimizations" +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa53', ' -mcpu=cortex-a53', '', d)}" + +require conf/machine/include/arm/arch-armv8.inc + +ARMPKGARCH_tune-cortexa53 = "cortexa53" +ARMPKGARCH_tune-cortexa53-crypto = "cortexa53" + +TUNE_FEATURES_tune-cortexa53 = "aarch64 armv8-a cortexa53" +TUNE_FEATURES_tune-cortexa53-crypto = "${TUNE_FEATURES_tune-cortexa53} crypto" + +PACKAGE_EXTRA_ARCHS_tune-cortexa53 = "aarch64 armv8-a cortexa53" +PACKAGE_EXTRA_ARCHS_tune-cortexa53-crypto = "${PACKAGE_EXTRA_ARCHS_tune-cortexa53} cortexa53-crypto" + +BASE_LIB_tune-cortexa53 = "${BASE_LIB_tune-aarch64}" +BASE_LIB_tune-cortexa53-crypto = "${BASE_LIB_tune-aarch64}"
Signature · 1 line
2.5.0
✗ patchtest: failure for Update armv8 tune file
In reply to Armin Kuster== Series Details ==
Series: Update armv8 tune file
Revision: 1
URL : https://patchwork.openembedded.org/series/8041/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Patch [2/2] new tune: add base cortexa53 support Issue Patch is missing Signed-off-by [test_signed_off_by_presence] Suggested fix Sign off the patch (either manually or with "git commit --amend -s")
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe