From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11941A04BA for ; Thu, 8 Oct 2020 01:18:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D09771DBF; Thu, 8 Oct 2020 01:18:37 +0200 (CEST) Received: from smtp-fw-9101.amazon.com (smtp-fw-9101.amazon.com [207.171.184.25]) by dpdk.org (Postfix) with ESMTP id 766761DBF for ; Thu, 8 Oct 2020 01:18:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1602112715; x=1633648715; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=o44ALZqR5YwjToWfbGPtBROInDthQ+uyZYrv1egSZgk=; b=NsjxKFlwtyyxhKOZILiqangenuXzz8I34TBFP584wU71jqNWRkEWbygh Pft7VnREeMlHAQ07H9hjaiZJGl4/ElpZ35p1P8ChmbA7A+0ypOyTWtcTx nk6DhjPayZsqCHFHsdz1r8gVzucUoN8sP6O/9FiAalwVFtknFdgMXiLm6 o=; X-IronPort-AV: E=Sophos;i="5.77,348,1596499200"; d="scan'208";a="74261848" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1e-c7f73527.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 07 Oct 2020 22:59:37 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-1e-c7f73527.us-east-1.amazon.com (Postfix) with ESMTPS id 0E164B0F27; Wed, 7 Oct 2020 22:59:35 +0000 (UTC) Received: from EX13D02UWB001.ant.amazon.com (10.43.161.240) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Oct 2020 22:59:34 +0000 Received: from EX13MTAUWB001.ant.amazon.com (10.43.161.207) by EX13D02UWB001.ant.amazon.com (10.43.161.240) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Oct 2020 22:59:34 +0000 Received: from dev-dsk-vcchunga-2a-c5-3b7a0bed.us-west-2.amazon.com (172.19.55.163) by mail-relay.amazon.com (10.43.161.249) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 7 Oct 2020 22:59:34 +0000 Received: by dev-dsk-vcchunga-2a-c5-3b7a0bed.us-west-2.amazon.com (Postfix, from userid 6361087) id 4B79EA411B; Wed, 7 Oct 2020 15:59:34 -0700 (PDT) From: Vimal Chungath To: CC: , , , , , Date: Wed, 7 Oct 2020 15:59:14 -0700 Message-ID: <20201007225914.10955-2-vcchunga@amazon.com> X-Mailer: git-send-email 2.16.6 In-Reply-To: <20201007225914.10955-1-vcchunga@amazon.com> References: <20201005185059.28915-1-vcchunga@amazon.com> <20201007225914.10955-1-vcchunga@amazon.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [dpdk-stable] [19.11] [PATCH v2 1/1] config: add Graviton2(arm64) defconfig X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Add make configuration for Graviton2 platform with 64-bit Arm Neoverse N1 cores. Sample build steps: make config T=arm64-graviton2-linux-gcc O=arm64-build make -C arm64-build OR make config T=graviton2 O=arm64-build make -C arm64-build For more information about Graviton2 platform, refer to: https://aws.amazon.com/ec2/graviton/ Signed-off-by: Vimal Chungath --- config/defconfig_arm64-graviton2-linux-gcc | 1 + config/defconfig_arm64-graviton2-linuxapp-gcc | 13 ++++++++++ config/defconfig_graviton2 | 1 + mk/machine/graviton2/rte.vars.mk | 34 +++++++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 120000 config/defconfig_arm64-graviton2-linux-gcc create mode 100644 config/defconfig_arm64-graviton2-linuxapp-gcc create mode 120000 config/defconfig_graviton2 create mode 100644 mk/machine/graviton2/rte.vars.mk diff --git a/config/defconfig_arm64-graviton2-linux-gcc b/config/defconfig_arm64-graviton2-linux-gcc new file mode 120000 index 000000000..80ac94d54 --- /dev/null +++ b/config/defconfig_arm64-graviton2-linux-gcc @@ -0,0 +1 @@ +defconfig_arm64-graviton2-linuxapp-gcc \ No newline at end of file diff --git a/config/defconfig_arm64-graviton2-linuxapp-gcc b/config/defconfig_arm64-graviton2-linuxapp-gcc new file mode 100644 index 000000000..e99fef307 --- /dev/null +++ b/config/defconfig_arm64-graviton2-linuxapp-gcc @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) Amazon.com, Inc or its affiliates +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="graviton2" +CONFIG_RTE_MAX_LCORE=64 +CONFIG_RTE_CACHE_LINE_SIZE=64 +CONFIG_RTE_MAX_MEM_MB=1048576 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n +CONFIG_RTE_LIBRTE_VHOST_NUMA=n diff --git a/config/defconfig_graviton2 b/config/defconfig_graviton2 new file mode 120000 index 000000000..80ac94d54 --- /dev/null +++ b/config/defconfig_graviton2 @@ -0,0 +1 @@ +defconfig_arm64-graviton2-linuxapp-gcc \ No newline at end of file diff --git a/mk/machine/graviton2/rte.vars.mk b/mk/machine/graviton2/rte.vars.mk new file mode 100644 index 000000000..1796c9cf8 --- /dev/null +++ b/mk/machine/graviton2/rte.vars.mk @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) Amazon.com, Inc or its affiliates +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# + +# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +include $(RTE_SDK)/mk/rte.helper.mk + +MACHINE_CFLAGS += $(call rte_cc_has_argument, -march=armv8.2-a+crypto) +MACHINE_CFLAGS += $(call rte_cc_has_argument, -mcpu=neoverse-n1) -- 2.16.6