From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 67FD742CD3; Fri, 16 Jun 2023 05:17:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E217240DDB; Fri, 16 Jun 2023 05:17:33 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2072.outbound.protection.outlook.com [40.107.8.72]) by mails.dpdk.org (Postfix) with ESMTP id B58CC4021E for ; Fri, 16 Jun 2023 05:17:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=957d2RX7ZFoIwkle7mErkr7RoAaN8y2cJCrrQvT8S7k=; b=pMTytQlYblaMmqU8E25Ci3CxN/fco1c4Hqjs0tmEqLcbqKG3nbd4E15csX6zW4x45NPC2+ybz7/9vRvcb6cDaiiR6O1ublkRUnOLM6C2gjRwWcVxWKC57kO4zvMudjQgJeJRSE/+AZ29uxLPNtMZETskJvpKLn5S4poRHc1B4Bo= Received: from AM7PR03CA0018.eurprd03.prod.outlook.com (2603:10a6:20b:130::28) by DU0PR08MB9298.eurprd08.prod.outlook.com (2603:10a6:10:41d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.25; Fri, 16 Jun 2023 03:17:25 +0000 Received: from AM7EUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:130:cafe::ea) by AM7PR03CA0018.outlook.office365.com (2603:10a6:20b:130::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29 via Frontend Transport; Fri, 16 Jun 2023 03:17:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT034.mail.protection.outlook.com (100.127.140.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.25 via Frontend Transport; Fri, 16 Jun 2023 03:17:25 +0000 Received: ("Tessian outbound 5bb4c51d5a1f:v136"); Fri, 16 Jun 2023 03:17:24 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: d5adf9a21fac296f X-CR-MTA-TID: 64aa7808 Received: from 49576c519fc7.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id AE89D97D-8380-46D3-A18B-78FB5DE7D162.1; Fri, 16 Jun 2023 03:17:18 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 49576c519fc7.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 16 Jun 2023 03:17:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ad1wuOxl8F98YTFshcLBIoKu7yqq6NTLmNc9hGt8yQNp1aPEyWCj7zdzLUstxK+JvTNg9bhPZl+h9qJYs+UYiMQosaqoQ+GA6TaozUarb+Vv4V13pX8hcGVsocmB/mQSKZmYh7y8KouJJrSHSTAqyGj9kyJ+OXhnjyNThqo3Atm8ucBqcgneFjTc8C9cHciGuD16QNEVAKD7EqTzYlRzWQ9sbKHW8SWIVgN+NnE5HpLfLdqYvJRoO5a74abLHHVLYrz+QWy51UQCaqN3j2sFqk2fX4GhjYyTzpcIBR5p1vmOAqQmE161i9is5ug7LoDYlvEpmdILxRIQO7JnKegWrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=957d2RX7ZFoIwkle7mErkr7RoAaN8y2cJCrrQvT8S7k=; b=A8IrQ6c98ROSFfdVSxwNHbYuEIVfhKfAkN2p7y1sdnDc0i49rxlJ5+UyyIapqBkMEF8AecZotIvxlSRGpqJxOrxfrHQYOzofS2NsEBwytpWIMZ/Vzacq78pw+g18aIKRTwy4TzhshtpLr8csFSv70RiB5LioiZTzHDo4abpFkpAi/mceBezK7NQF+SdaWlIhsr20PkDdBAFhx8ytQe+pkV+sMy5IhP0cRJ83v5QcaCZRLI3NdJbQh/Gp3NbJ+ipa1TxGzXN2FbfjRHvFSRHLF4RiQtH+xGjaasYd3MDvNR1d2hsWTYNqVAHrc5m5nIyRQEvl/XVNVRVi9a6nGs6Yiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=957d2RX7ZFoIwkle7mErkr7RoAaN8y2cJCrrQvT8S7k=; b=pMTytQlYblaMmqU8E25Ci3CxN/fco1c4Hqjs0tmEqLcbqKG3nbd4E15csX6zW4x45NPC2+ybz7/9vRvcb6cDaiiR6O1ublkRUnOLM6C2gjRwWcVxWKC57kO4zvMudjQgJeJRSE/+AZ29uxLPNtMZETskJvpKLn5S4poRHc1B4Bo= Received: from AS8PR08MB7080.eurprd08.prod.outlook.com (2603:10a6:20b:401::19) by DU0PR08MB8279.eurprd08.prod.outlook.com (2603:10a6:10:40d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Fri, 16 Jun 2023 03:17:15 +0000 Received: from AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::dd71:31fd:80b0:c4e0]) by AS8PR08MB7080.eurprd08.prod.outlook.com ([fe80::dd71:31fd:80b0:c4e0%4]) with mapi id 15.20.6500.025; Fri, 16 Jun 2023 03:17:14 +0000 From: Ruifeng Wang To: Yutang Jiang , "dev@dpdk.org" CC: "patches@amperecomputing.com" , "yutang.jiang@amperecomputing.com" , nd , "juraj.linkes@pantheon.tech" , nd Subject: RE: [PATCH v2] config/arm: add Ampere Altra/AltraMax/AmpereOne platform Thread-Topic: [PATCH v2] config/arm: add Ampere Altra/AltraMax/AmpereOne platform Thread-Index: AQHZn30HtZFLGe3D10GHi2hMqsiZDK+Mwv3Q Date: Fri, 16 Jun 2023 03:17:14 +0000 Message-ID: References: <20230615112423.54861-1-jiangyutang@os.amperecomputing.com> In-Reply-To: <20230615112423.54861-1-jiangyutang@os.amperecomputing.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: D236495F840E8F448E11A6D07BA0FA1E.0 Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: AS8PR08MB7080:EE_|DU0PR08MB8279:EE_|AM7EUR03FT034:EE_|DU0PR08MB9298:EE_ X-MS-Office365-Filtering-Correlation-Id: f94ec5ed-82a8-4475-6005-08db6e18351b x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: VrtQYV4/B/z8HVVlTBoMOxcnbmDxPudScKyEiLO+nIZ6q/QjOdAViMmQ1Zy6Ql8mVmTYZgjtvH7P9jsOkcadj8L3t5T5+IZh+XCJDIoWJolzzrpg7eLkDMHaOdZrGpSAi4Eci1uz4lz1r0YeApWmYWGx5pjhFFwt7YZXBpBA4aE3w8VRfvusHGwyM7UfENKwgNWeuO/Yrveza4yFSIuTkmteVnTN9WHUHcXxR8kk6G/0YALGZMSdpnBXZIKo5OtfUzj4CSSM0BBymTTa/H6paFjlPx+8PjZB4epZ6EGUzHlXc9zvdIsSM1se2HxgUdqnEwKeCci42WttR+hdCHjeDQJQCTqX6ZlxVI5XudalWmWyyYNcFzOb4jy6fadEW9ukQbpAK+icrymIChYPAxSyPP73orQZHpnM33JEgR9LXEf3IUSKxMiE30xc6TINv3pfOQP7dLRkkBCDQkR6cS8/KoQymkvdinwevebJTdYBZOkJTIkXd9mOEdTEKBtkPdhXAOUG1jWVEkEE2rrSeCqpnnnv69EPP7rk8l7Ex6q0TV9CU8PVdKEr2SIZ4oBR3v02bHZxEL+Oj0i2qF90kQMqGHNJvleMB7onpXs8gncxK2ya2HQAtuDTeVzUUPpqkZOS X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB7080.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(136003)(346002)(376002)(366004)(396003)(451199021)(55016003)(478600001)(110136005)(54906003)(7696005)(122000001)(5660300002)(8936002)(52536014)(8676002)(41300700001)(2906002)(86362001)(38070700005)(33656002)(38100700002)(64756008)(66446008)(66476007)(66556008)(316002)(66946007)(4326008)(76116006)(71200400001)(26005)(9686003)(53546011)(6506007)(186003)(83380400001); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8279 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 529f0b8f-aba6-4fa0-74d1-08db6e182eba X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b1h8KcwAS6s0Tq4JSPz3Zwxdw5qDHdbjJiqsC1CMqqrJzFCqkW/1O6NXeV5CYp+Pg7KMZ1V1Gr9KkfpY8+G9fdZnIlGsEgYTrp6+N1u5K7Jny2GDeZYIPcmS6sDalpDZ1D4TDu4Nwv8zPRrWMH3GgT7kRjDYZEgJi5p9JYver9ZlyjBStWoef+FALTKSmgeU8s9GB5yLoTDubsbzzmVnpnn2g1BfAjj+ksazoDAnlYrKZ/cr5gvX+lpxbVLyCM+Cj2HGB9t7rKVX3chxhgyMzIFHsh4X37qQe7+fiJrYkusPtpZK0sDuUXxFUeTBaRDQNlk2i+casnxV89pPDtOuUSC9KZ6MVgB8RVaV4q84v49DiyY7ySHRq2p2JWVL1yp89cUkAE8uVTdNTMpQYPgikId9X9u5HF90lhurJeH04PWTkBRs7mP+1NZucIUWkuayqAwCYmN7BjNIu5u2EXwEi76pzB2bk/zZ7zhWhBFM3g7e5uyEgwhsCl8r9QAmknjYpf4bnQOvHsUn7+zsr9yWQwW3/hYIgRr9z+p6JoXgk12UW5y38vojGbi/wv+s0OAbHJRKgE7EFvMt6SZvE8jdaxdltqiPgMlvJnNvRCtOLtXq5StLkQ83Q5d4U2KXABp8xlFO4ZglRs/gYtsBHJXttyq9REJ0J36VvVzkxXvDnd0IV53TUPjGLYPPLAG42MjHeRT89OwBNKRm9r4fJYhme9bbY4a4IeS0o1dfr9IzogMlsnpQ068kvzVOWCONChD8 X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230028)(4636009)(396003)(376002)(136003)(39860400002)(346002)(451199021)(36840700001)(46966006)(40470700004)(110136005)(54906003)(82310400005)(41300700001)(8676002)(86362001)(7696005)(8936002)(316002)(33656002)(70206006)(70586007)(4326008)(40460700003)(9686003)(478600001)(36860700001)(26005)(47076005)(40480700001)(55016003)(82740400003)(5660300002)(52536014)(83380400001)(6506007)(53546011)(356005)(2906002)(186003)(81166007)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2023 03:17:25.1532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f94ec5ed-82a8-4475-6005-08db6e18351b X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9298 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Yutang Jiang > Sent: Thursday, June 15, 2023 7:24 PM > To: dev@dpdk.org > Cc: patches@amperecomputing.com; yutang.jiang@amperecomputing.com; > jiangyutang@os.amperecomputing.com; Ruifeng Wang ; = nd ; > juraj.linkes@pantheon.tech > Subject: [PATCH v2] config/arm: add Ampere Altra/AltraMax/AmpereOne platf= orm >=20 > This patch add Ampere series platform support for DPDK: > 1. Merging the eMAG and AmpereOne to the one struct implementer_ampere. > 2. The microarchitecture of Altra/AltraMax is N1, which implementer/part_= number > is defined in arm, so the definition of RTE_MAX_LCORE/RTE_MAX_NUMA_NOD= ES > refers to the quadrant sub-numa definition in AltraMax 2P system. > 3. Added basic definition of AmpereOne. >=20 > Signed-off-by: Yutang Jiang > --- > config/arm/arm64_altra_linux_gcc | 16 ++++++++++ > config/arm/arm64_ampereone_linux_gcc | 16 ++++++++++ > config/arm/meson.build | 45 ++++++++++++++++++++++++---- > 3 files changed, 71 insertions(+), 6 deletions(-) create mode 100644 > config/arm/arm64_altra_linux_gcc create mode 100644 config/arm/arm64_amp= ereone_linux_gcc >=20 > diff --git a/config/arm/arm64_altra_linux_gcc b/config/arm/arm64_altra_li= nux_gcc > new file mode 100644 > index 0000000000..ce0667ebe2 > --- /dev/null > +++ b/config/arm/arm64_altra_linux_gcc > @@ -0,0 +1,16 @@ > +[binaries] > +c =3D ['ccache', 'aarch64-linux-gnu-gcc'] cpp =3D ['ccache', > +'aarch64-linux-gnu-g++'] ar =3D 'aarch64-linux-gnu-gcc-ar' > +strip =3D 'aarch64-linux-gnu-strip' > +pkgconfig =3D 'aarch64-linux-gnu-pkg-config' > +pcap-config =3D '' > + > +[host_machine] > +system =3D 'linux' > +cpu_family =3D 'aarch64' > +cpu =3D 'armv8.2-a' > +endian =3D 'little' > + > +[properties] > +platform =3D 'altra' > diff --git a/config/arm/arm64_ampereone_linux_gcc b/config/arm/arm64_ampe= reone_linux_gcc > new file mode 100644 > index 0000000000..8964432a74 > --- /dev/null > +++ b/config/arm/arm64_ampereone_linux_gcc > @@ -0,0 +1,16 @@ > +[binaries] > +c =3D ['ccache', 'aarch64-linux-gnu-gcc'] cpp =3D ['ccache', > +'aarch64-linux-gnu-g++'] ar =3D 'aarch64-linux-gnu-gcc-ar' > +strip =3D 'aarch64-linux-gnu-strip' > +pkgconfig =3D 'aarch64-linux-gnu-pkg-config' > +pcap-config =3D '' > + > +[host_machine] > +system =3D 'linux' > +cpu_family =3D 'aarch64' > +cpu =3D 'armv8.6-a' > +endian =3D 'little' > + > +[properties] > +platform =3D 'ampereone' > diff --git a/config/arm/meson.build b/config/arm/meson.build index 521343= 4ca4..70a562aac6 > 100644 > --- a/config/arm/meson.build > +++ b/config/arm/meson.build > @@ -71,8 +71,8 @@ part_number_config_arm =3D { > ['RTE_MACHINE', '"neoverse-n1"'], > ['RTE_ARM_FEATURE_ATOMICS', true], > ['RTE_MAX_MEM_MB', 1048576], > - ['RTE_MAX_LCORE', 160], > - ['RTE_MAX_NUMA_NODES', 2] > + ['RTE_MAX_LCORE', 256], > + ['RTE_MAX_NUMA_NODES', 8] > ] > }, > '0xd40': { > @@ -165,16 +165,30 @@ implementer_cavium =3D { implementer_ampere =3D { > 'description': 'Ampere Computing', > 'flags': [ > - ['RTE_MACHINE', '"emag"'], > ['RTE_CACHE_LINE_SIZE', 64], > - ['RTE_MAX_LCORE', 32], > - ['RTE_MAX_NUMA_NODES', 1] > + ['RTE_MAX_LCORE', 1024], > + ['RTE_MAX_NUMA_NODES', 8] > ], > 'part_number_config': { > '0x0': { > 'march': 'armv8-a', > 'march_features': ['crc', 'crypto'], > - 'compiler_options': ['-mtune=3Demag'] > + 'compiler_options': ['-mtune=3Demag'], > + 'flags': [ > + ['RTE_MACHINE', '"eMAG"'], > + ['RTE_MAX_LCORE', 32], > + ['RTE_MAX_NUMA_NODES', 1] > + ] > + }, > + '0xac3': { > + 'march': 'armv8.6-a', > + 'march_features': ['crc', 'crypto'], > + 'compiler_options': ['-mcpu=3Dampere1'], > + 'flags': [ > + ['RTE_MACHINE', '"AmpereOne"'], > + ['RTE_MAX_LCORE', 320], > + ['RTE_MAX_NUMA_NODES', 8] > + ] > } > } > } > @@ -265,6 +279,7 @@ implementers =3D { > '0x43': implementer_cavium, > '0x48': implementer_hisilicon, > '0x50': implementer_ampere, > + '0xc0': implementer_ampere, > '0x51': implementer_qualcomm, > '0x70': implementer_phytium, > } > @@ -346,6 +361,20 @@ soc_emag =3D { > 'part_number': '0x0' > } >=20 > +soc_altra =3D { > + 'description': 'Ampere Altra/AltraMax', > + 'implementer': '0x41', > + 'part_number': '0xd0c', > + 'numa': true > +} > + > +soc_ampereone =3D { > + 'description': 'Ampere AmpereOne', > + 'implementer': '0xc0', > + 'part_number': '0xac3', > + 'numa': true > +} > + > soc_ft2000plus =3D { > 'description': 'Phytium FT-2000+', > 'implementer': '0x70', > @@ -460,6 +489,8 @@ soc_bluefield3 =3D { > Start of SoCs list > generic: Generic un-optimized build for armv8 aarch64 execution = mode. > generic_aarch32: Generic un-optimized build for armv8 aarch32 execution = mode. > +altra: Ampere Altra/AltraMax > +ampereone: Ampere AmpereOne > armada: Marvell ARMADA > bluefield: NVIDIA BlueField > bluefield3: NVIDIA BlueField-3 > @@ -487,6 +518,8 @@ End of SoCs list > socs =3D { > 'generic': soc_generic, > 'generic_aarch32': soc_generic_aarch32, > + 'altra': soc_altra, > + 'ampereone': soc_ampereone, > 'armada': soc_armada, > 'bluefield': soc_bluefield, > 'bluefield3': soc_bluefield3, > -- > 2.40.1 Acked-by: Ruifeng Wang