All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arch-armv8-5a.inc: Add tune include for armv8.5a
@ 2021-12-24 10:05 Kevin Hao
  2021-12-24 10:05 ` [PATCH 2/2] armv9a/tune: Add the support for the Neoverse N2 core Kevin Hao
       [not found] ` <16C3A8F7D6F5EA98.22520@lists.openembedded.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Kevin Hao @ 2021-12-24 10:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: Richard Purdie

This adds support for the armv8.5a architecture and the crypto
extension.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
 .../machine/include/arm/arch-armv8-5a.inc     | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta/conf/machine/include/arm/arch-armv8-5a.inc

diff --git a/meta/conf/machine/include/arm/arch-armv8-5a.inc b/meta/conf/machine/include/arm/arch-armv8-5a.inc
new file mode 100644
index 000000000000..a1bcb7fb9a16
--- /dev/null
+++ b/meta/conf/machine/include/arm/arch-armv8-5a.inc
@@ -0,0 +1,19 @@
+DEFAULTTUNE ?= "armv8-5a"
+
+TUNEVALID[armv8-5a] = "Enable instructions for ARMv8.5-a"
+TUNE_CCARGS_MARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8-5a', ' -march=armv8.5-a', '', d)}"
+# TUNE crypto will be handled by arch-armv8a.inc below
+MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8-5a', 'armv8-5a:', '', d)}"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+# Little Endian base configs
+AVAILTUNES += "armv8-5a armv8-5a-crypto"
+ARMPKGARCH:tune-armv8-5a                    ?= "armv8-5a"
+ARMPKGARCH:tune-armv8-5a-crypto             ?= "armv8-5a"
+TUNE_FEATURES:tune-armv8-5a                  = "aarch64 armv8-5a"
+TUNE_FEATURES:tune-armv8-5a-crypto           = "${TUNE_FEATURES:tune-armv8-5a} crypto"
+PACKAGE_EXTRA_ARCHS:tune-armv8-5a            = "${PACKAGE_EXTRA_ARCHS:tune-armv8a} armv8-5a"
+PACKAGE_EXTRA_ARCHS:tune-armv8-5a-crypto     = "${PACKAGE_EXTRA_ARCHS:tune-armv8-5a} armv8-5a-crypto"
+BASE_LIB:tune-armv8-5a                       = "lib64"
+BASE_LIB:tune-armv8-5a-crypto                = "lib64"
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] armv9a/tune: Add the support for the Neoverse N2 core
  2021-12-24 10:05 [PATCH 1/2] arch-armv8-5a.inc: Add tune include for armv8.5a Kevin Hao
@ 2021-12-24 10:05 ` Kevin Hao
       [not found] ` <16C3A8F7D6F5EA98.22520@lists.openembedded.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Hao @ 2021-12-24 10:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: Richard Purdie

This adds the support for the Neoverse N2 core, even though the
Neoverse N2 core implements the Arm v9.0-A architecture, but the support
of it in GCC is based on the Arm v8.5-A architecture. Please see the
commit 50d9db203bc3 ("aarch64: Add support for Neoverse N2 CPU") in GCC
for more detail.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
 .../include/arm/armv9a/tune-neoversen2.inc    | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc

diff --git a/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc b/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc
new file mode 100644
index 000000000000..36355f7bedb0
--- /dev/null
+++ b/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc
@@ -0,0 +1,22 @@
+#
+# Tune Settings for Neoverse-N2
+#
+DEFAULTTUNE ?= "neoversen2"
+
+TUNEVALID[neoversen2] = "Enable Neoverse-N2 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen2', ' -mcpu=neoverse-n2', '', d)}"
+
+# Even though the Neoverse N2 core implemnts the Arm v9.0-A architecture,
+# but the support of it in GCC is based on the Arm v8.5-A architecture.
+require conf/machine/include/arm/arch-armv8-5a.inc
+
+# Little Endian base configs
+AVAILTUNES                                         += "neoversen2 neoversen2-crypto"
+ARMPKGARCH:tune-neoversen2                          = "neoversen2"
+ARMPKGARCH:tune-neoversen2-crypto                   = "neoversen2-crypto"
+TUNE_FEATURES:tune-neoversen2                       = "${TUNE_FEATURES:tune-armv8-5a} neoversen2"
+TUNE_FEATURES:tune-neoversen2-crypto                = "${TUNE_FEATURES:tune-neoversen2} crypto"
+PACKAGE_EXTRA_ARCHS:tune-neoversen2                 = "${PACKAGE_EXTRA_ARCHS:tune-armv8-5a} neoversen2"
+PACKAGE_EXTRA_ARCHS:tune-neoversen2-crypto          = "${PACKAGE_EXTRA_ARCHS:tune-armv8-5a-crypto} neoversen2 neoversen2-crypto"
+BASE_LIB:tune-neoversen2                            = "lib64"
+BASE_LIB:tune-neoversen2-crypto                     = "lib64"
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH 2/2] armv9a/tune: Add the support for the Neoverse N2 core
       [not found] ` <16C3A8F7D6F5EA98.22520@lists.openembedded.org>
@ 2022-01-12  2:43   ` Kevin Hao
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Hao @ 2022-01-12  2:43 UTC (permalink / raw)
  To: openembedded-core; +Cc: Richard Purdie

[-- Attachment #1: Type: text/plain, Size: 2763 bytes --]

On Fri, Dec 24, 2021 at 06:05:18PM +0800, Kevin Hao wrote:
> This adds the support for the Neoverse N2 core, even though the
> Neoverse N2 core implements the Arm v9.0-A architecture, but the support
> of it in GCC is based on the Arm v8.5-A architecture. Please see the
> commit 50d9db203bc3 ("aarch64: Add support for Neoverse N2 CPU") in GCC
> for more detail.

Ping.

Thanks,
Kevin

> 
> Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
> ---
>  .../include/arm/armv9a/tune-neoversen2.inc    | 22 +++++++++++++++++++
>  1 file changed, 22 insertions(+)
>  create mode 100644 meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc
> 
> diff --git a/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc b/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc
> new file mode 100644
> index 000000000000..36355f7bedb0
> --- /dev/null
> +++ b/meta/conf/machine/include/arm/armv9a/tune-neoversen2.inc
> @@ -0,0 +1,22 @@
> +#
> +# Tune Settings for Neoverse-N2
> +#
> +DEFAULTTUNE ?= "neoversen2"
> +
> +TUNEVALID[neoversen2] = "Enable Neoverse-N2 specific processor optimizations"
> +TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen2', ' -mcpu=neoverse-n2', '', d)}"
> +
> +# Even though the Neoverse N2 core implemnts the Arm v9.0-A architecture,
> +# but the support of it in GCC is based on the Arm v8.5-A architecture.
> +require conf/machine/include/arm/arch-armv8-5a.inc
> +
> +# Little Endian base configs
> +AVAILTUNES                                         += "neoversen2 neoversen2-crypto"
> +ARMPKGARCH:tune-neoversen2                          = "neoversen2"
> +ARMPKGARCH:tune-neoversen2-crypto                   = "neoversen2-crypto"
> +TUNE_FEATURES:tune-neoversen2                       = "${TUNE_FEATURES:tune-armv8-5a} neoversen2"
> +TUNE_FEATURES:tune-neoversen2-crypto                = "${TUNE_FEATURES:tune-neoversen2} crypto"
> +PACKAGE_EXTRA_ARCHS:tune-neoversen2                 = "${PACKAGE_EXTRA_ARCHS:tune-armv8-5a} neoversen2"
> +PACKAGE_EXTRA_ARCHS:tune-neoversen2-crypto          = "${PACKAGE_EXTRA_ARCHS:tune-armv8-5a-crypto} neoversen2 neoversen2-crypto"
> +BASE_LIB:tune-neoversen2                            = "lib64"
> +BASE_LIB:tune-neoversen2-crypto                     = "lib64"
> -- 
> 2.31.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#159998): https://lists.openembedded.org/g/openembedded-core/message/159998
> Mute This Topic: https://lists.openembedded.org/mt/87934488/3617424
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [kexin.hao@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-12  2:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-24 10:05 [PATCH 1/2] arch-armv8-5a.inc: Add tune include for armv8.5a Kevin Hao
2021-12-24 10:05 ` [PATCH 2/2] armv9a/tune: Add the support for the Neoverse N2 core Kevin Hao
     [not found] ` <16C3A8F7D6F5EA98.22520@lists.openembedded.org>
2022-01-12  2:43   ` [OE-core] " Kevin Hao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.