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 0AB19A04C0; Mon, 28 Sep 2020 21:39:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 577DF1D66B; Mon, 28 Sep 2020 21:39:47 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70074.outbound.protection.outlook.com [40.107.7.74]) by dpdk.org (Postfix) with ESMTP id A71721D659 for ; Mon, 28 Sep 2020 21:39:44 +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=eL4NXwsWzay1eAPXELYAlmDl45U2Iji6m5lS87yksaI=; b=nahWMRNHqhwEQoH95oRh1FMcKuDkfOX6hzeHvJyu6FbO+zYUJfEhdkZ2DRYJn+5FYlX8IR56FbAMh3NZKxlfLjT45M8zaLG+WCWhEdW+edWICXmg4kFfVDP7yDIq6QHC6yuFzj3gJQmg01lZu7IchFSb8y2AIZpsPOM4ImwUU8I= Received: from AM5PR0701CA0008.eurprd07.prod.outlook.com (2603:10a6:203:51::18) by AM0PR08MB4484.eurprd08.prod.outlook.com (2603:10a6:208:139::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Mon, 28 Sep 2020 19:39:42 +0000 Received: from VE1EUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:51:cafe::7d) by AM5PR0701CA0008.outlook.office365.com (2603:10a6:203:51::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.18 via Frontend Transport; Mon, 28 Sep 2020 19:39:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT005.mail.protection.outlook.com (10.152.18.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21 via Frontend Transport; Mon, 28 Sep 2020 19:39:41 +0000 Received: ("Tessian outbound 34b830c8a0ef:v64"); Mon, 28 Sep 2020 19:39:41 +0000 X-CR-MTA-TID: 64aa7808 Received: from 35ce0c524a74.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 00AAFEBD-4B01-4DA5-B903-9DA6AAE9912C.1; Mon, 28 Sep 2020 19:39:34 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 35ce0c524a74.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 28 Sep 2020 19:39:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JN4aLgGVY5o1iBj96XLdxbjImOTM1EsiqDpkC8IJV/uCtzDcVScJGy7eDixfnIwX1oYVP5UoX3Uq6C0cYGNjUb1FvxKx9vpiL+9gHEZobH95Ik7wWuWHz5mWS/8KSol6/pcsOqPjoeXd7uz256iRv2Yl/gMAeQy9otPdQhGj2LzHvvYcmrhi6v5dTIr056X9GQr2KE/iG/xDo6RcPqtFebZHGY/X9rtc2pSrgB/BL4K3fsxBdJmCNddoTb7gRQRfhT9bFi2znAWKMWNhlfco4sBtDx/N0/9obqul6VO2Ma9z12pjWUTyu0Q9XtxbG4qzkgV7Ezo1MKTdzqe4/NRbVw== 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-SenderADCheck; bh=eL4NXwsWzay1eAPXELYAlmDl45U2Iji6m5lS87yksaI=; b=OuT0tHlaq/8XWmmEc4qttQSZOILCzRh9wqEMHkYjvCpz7tF13FYKDXvdDe3GhRjlltaeQMy8sJ0EVN/rpHHHGeN7ccMm/xdYgLwQIuRC1nzUKUSGAM8Tb9Tje5SUggBEmHkwwRs7dCBe35W73kqUWEPLx7bgaP6Fh/TTTg8fF+T2cRUuPC07YHHgJzwmHqRM4FG2wN0gG2I+/2I0kkS0UCBOdcjrBV6sozS50cg7IuJjA+KhSxVJsWmqVl5dWHWmq0ndL3CsndguXVR1h3OQuQ+d7QSqcY9gqa5moqp9gwivBtNrLSnkLJ3/eQeq8+ZxV3OsP+yEiBu7NaSn9gln6w== 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=eL4NXwsWzay1eAPXELYAlmDl45U2Iji6m5lS87yksaI=; b=nahWMRNHqhwEQoH95oRh1FMcKuDkfOX6hzeHvJyu6FbO+zYUJfEhdkZ2DRYJn+5FYlX8IR56FbAMh3NZKxlfLjT45M8zaLG+WCWhEdW+edWICXmg4kFfVDP7yDIq6QHC6yuFzj3gJQmg01lZu7IchFSb8y2AIZpsPOM4ImwUU8I= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DB7PR08MB3609.eurprd08.prod.outlook.com (2603:10a6:10:42::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.19; Mon, 28 Sep 2020 19:39:31 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::7814:9c1:781f:475d]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::7814:9c1:781f:475d%4]) with mapi id 15.20.3412.029; Mon, 28 Sep 2020 19:39:31 +0000 From: Honnappa Nagarahalli To: Ali Saidi CC: Dharmik Thakkar , Phil Yang , Ruifeng Wang , "bruce.richardson@intel.com" , "dev@dpdk.org" , "hemant.agrawal@nxp.com" , "jerinjacobk@gmail.com" , "juraj.linkes@pantheon.tech" , nd , "vcchunga@amazon.com" , Honnappa Nagarahalli , nd Thread-Topic: [dpdk-dev] [RFC PATCH 1/2] build: rework Arm build options Thread-Index: AQHWkh7iZjNQsOTEok2ZiSuOGAlT4ql3K7DQgAB2HYCAAIgjIIAAL+sAgAYb3TA= Date: Mon, 28 Sep 2020 19:39:31 +0000 Message-ID: References: <20200924220710.19937-1-alisaidi@amazon.com> In-Reply-To: <20200924220710.19937-1-alisaidi@amazon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 4D4DD59A21C09A4D8B8F232C59C814BE.0 x-checkrecipientchecked: true Authentication-Results-Original: amazon.com; dkim=none (message not signed) header.d=none;amazon.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [70.112.90.121] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8f40f606-7f08-4486-04d1-08d863e63e89 x-ms-traffictypediagnostic: DB7PR08MB3609:|AM0PR08MB4484: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: pJ/IwZXQpjK/+WZ5sTnzuX0L43Y/YwrGbLw3nBKRvz/Je7Sfy1nYJGuPCcKoqdRiZpr3bsCi8z84VKfkVMWS6bvSE4jRgkk7CqqNNTfbx/vZoOEJE5RnD/l+uPK9D6ENxTwYoU+M8T8tILkl7Uxqgtki0aGNTvCgNE6xWcsJgtqhFu1lNaN0LUu9oq+RJvWOPGAu2hANkmV7CoPojPpzRjSGbMjOT2orFZuWy3FwQ1ok8j8zPe4N5qeilZ+T5Qj7w2B5yYcEZq5qzOY1jbabM96/zuQRbD2+OsmOwKtJof+dceqWkbOfPcqB46p4DfH4vKkzH8CkZ/Bq1tyZbc/Zj6tBOsXDqDAmfHAw9vKBP41w6Mg0XjXw/8a9KxssSSAO X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(396003)(346002)(366004)(39850400004)(66446008)(2906002)(8936002)(66476007)(86362001)(66946007)(6916009)(33656002)(7696005)(4326008)(76116006)(66556008)(478600001)(83380400001)(52536014)(26005)(64756008)(6506007)(8676002)(186003)(55016002)(9686003)(71200400001)(54906003)(316002)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 2io9jtNzLJVcgNsOFGjofdlMTy42ZZGH6IqHLcu4c+OYFfkzX/UinY3dFQ4sNT41ivkexD8cZd4XHbIbSbOxK6XeEitVEbwAHJ4xPFGCCecY4CMBE4GVFe3wPv1h1Y5yndWwZJLJeQ7CX0raavwWnaJ7bojtcM/srAPjI7TBZH1cYRC2MHgI8/bm1C8TgtOXGU5vFjVT0pibh1ynjXaB6+faq9n1uie504TpYkjhqdi1T7vaJAnNodpp9hO2pqq6r1Q4rHeA13ONkEflZ+FQh+HSzfZMnHBa61KJqHn0hxheEkwX73UYDCq8GA/kx+ENKcLd32BLcx1YcJxuAbvJxsssATo4kQpMsITOX+RO+R4fxq3Z9XSLbqBemHemgpCc2my0/6HXT/3qlkC/fUBkPaTcBqI3w9xsjUkXgtn3RdzYIkQGIMA0FC5x6vSxTSfStlcQsjL1wu43ZyQo9IueSWgD1ByAMiKc6qZyssF1fcwlQg3yWek07d+3QJ0+kqIXiXggux7P5Mf3uGpjx0QVKxbyZFe69z1sSe3UiEgELQql990Ln5Lae8eDq6HYqjS2RgSHASmVGGY6lkpNFOC7EJ+mQh49EzxaApbLBBzB2cMzlOkac7Rj9kKcQVU4BGp33ZJ/IywSrGg84dag/OKtSA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3609 Original-Authentication-Results: amazon.com; dkim=none (message not signed) header.d=none;amazon.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 943c9222-7244-40ba-06a4-08d863e638a0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OiByF7Cpnv+zpWMC8rBln5T+iHiySZ/7haPQhRoZe4prMfjzmX+FrFq3qDY1xuEyQraPtGxbmwgZMsiOSPAndIHpXEdcR2a+Dh2kfJr5X0zgZ4viVuQiHzUuQ2QMd51m7N5rlBA9rfepm5KIuBB70dkHl3fGXjtQAO+mXPixofOq2uGS599zlMJXTGu6KZt738KjRt70fJxKDHpDxwS0d/wZvCk4J+JAh4hnMwey6K3ibJCWzohKyn3heh4IMVzUwYteD5a7FkH5lnKmRoxOLMuMQootqi2zI/Abh3Rny85waEzzTsIg4HJPL3mlpqRTx/x5zjn7fHJ35iUjGrOiO4RSfp8rXvpB5OLpSDJtWsvJUdVB44Ip/zaaqpg5T9qMNQkpaHl2THe4JQkgr1xXfYr19GiE0epJl8yiHGxguRGszdLKu+0dE+Q9cZWryTyN 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:(4636009)(376002)(346002)(39850400004)(136003)(396003)(46966005)(70586007)(82310400003)(356005)(7696005)(186003)(336012)(36906005)(54906003)(316002)(81166007)(86362001)(5660300002)(52536014)(4326008)(82740400003)(8676002)(2906002)(26005)(478600001)(70206006)(33656002)(8936002)(6862004)(55016002)(6506007)(83380400001)(9686003)(47076004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2020 19:39:41.4590 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f40f606-7f08-4486-04d1-08d863e63e89 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: VE1EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4484 Subject: Re: [dpdk-dev] [RFC PATCH 1/2] build: rework Arm build options X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >=20 > > > > > > > > > > The current system can identify only the implementer and part > > > > > number of the arm device we're targeting, which is enough to > > > > > identify the target > > > CPU. > > > > > However, even the full MIDR information is not enough to > > > > > identify the SoC we're targeting. > > > > > > > > > > Expand the "machine" meson variable to allow specifying the > > > > > target arm > > > SoC. > > > > > The SoC identification implies the CPU, so drop the current MIDR > > > > > based CPU identification in favor of user input, which is the > > > > > only way to identify the target SoC. This implies that native > > > > > builds are not possible. Instead do a default (non-optimized, > > > > > but executable on any > > > > > aarch64 device) build. > I don't think this is really what we want. The MIDR identifies the archit= ecture > features that are supported and we should continue to use that for native > builds. >=20 > The difference between SoCs really comes down to the RAM and core count, > which are also detectable or could be specified seperately and defaulted = to > the detected values. Hi Ali, thank you for the feedback. The differences between SoCs can be mor= e than RAM/core count (ex: NUMA details) and addresses the need to compile = only some modules of DPDK. But, having said that we will keep the native build also. It will continue = to function the way it does today.=20 >=20 > >=20 > > > > > > Maybe we can have multiple labels mean the same thing - default, > > > generic, > > > armv8 or even generic-armv8 (that's the most descriptive name IMO) > > > could all mean the generic arm build executable on all aarch64 SoCs. > > > That many names is probably confusing, but sticking to two (default > > > and one more) seems feasible. > > > > > > What does everyone else think? > > 'armv8' makes lot more sense to me and it conveys what the build does. > We can keep 'default' to be backward compatible, we can skip others. >=20 > native build below should just be that. Detect the MIDR, use that for the > feature flags and use the existing number of CPUs (or a user-specified > number). I like > generic-armv8 personally beacuse specifies a generic build that won't be > optimized.