From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0049.outbound.protection.outlook.com [104.47.41.49]) by dpdk.org (Postfix) with ESMTP id 5D1492BB2 for ; Fri, 12 May 2017 07:46:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=c/OYtqMII9hfPfEVobOvw8RUOKehqV847ZWF0SHJGK0=; b=O/4UUnDL7BOEt76w3whW23Xc2wfjrHk/0b9cKt/71SPS6catYlwRiJoyNqZzBCl58n8EGzojCzqaDDZm1lLOFOFzz+RjvkTyXWuMa/sU9SgfmaxgyauGS883DCy74uRDGooBlqzvVm5la054Hi5KiWaNy81eBx8GRwXreFKvstM= Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from 1scrb-1.caveonetworks.com (50.233.148.156) by BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Fri, 12 May 2017 05:45:55 +0000 From: Ashwin Sekhar T K To: jerin.jacob@caviumnetworks.com, thomas@monjalon.net, maciej.czekaj@caviumnetworks.com, viktorin@rehivetech.com, jianbo.liu@linaro.org, bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com, konstantin.ananyev@intel.com Cc: dev@dpdk.org, Ashwin Sekhar T K Date: Thu, 11 May 2017 22:45:41 -0700 Message-Id: <20170512054547.753-1-ashwin.sekhar@caviumnetworks.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170510101643.30556-1-ashwin.sekhar@caviumnetworks.com> References: <20170510101643.30556-1-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CY4PR04CA0039.namprd04.prod.outlook.com (10.172.133.25) To BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 15cd1f99-a10b-46c8-ca90-08d498fa29c9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 3:JSKlyU1yv3rK36BZRdzlpFFCQmhL44yW3Vz/+X0H37/Db4VxsKIXyOKUAKFFit6qvBPHiVHZv1ODhSslKRtCs28okNrzfEAdGV2qQk/6Jc69v6lbnM69tRhxtXmnVt8tMJ2EAkBm8EsocWtGSmrlGQu60Y7LOvTHVRSbF7Q+Tqro1xlPpSHnRqyuKd9v1nvmpiPhIBPbirqbmAcZWkC1gAAPiwoIyuJj5PpiOGlsnnEv3Ha5+426NiWQbeq+LJ0G+2h3JCw6r2UIplUrK3+zJ/IYQ/aEfY6R+y/HaNfMCFd2bToC7zpqiM5LWGWed96uXGAjp3PKW7d7ytpd4geKww==; 25:woXAkLjQqa17X7pwxiHT09lIxdzO+CaqSGfGHaOwU5+zwXMEapvdehgN9KxVdIwJ+SoF8pRD1ImzITKODERzEYYJKkNFuD3O4AeUghtR8T75c0fAew4HtLg6E4FmoH6qRs4uA6v2AjswOAZOvfOGzpzJ/pamHcFQqrMax50k/e/rAW7/TqfZiOfFxJO4IUKjhY8PqGPzGn2DcsDGD+VwjvvfdkoMzd/7WI882OjFfrqQeNNKfkfvIkeJWiDjSoGR/nwyikAJjL7cD7AJZnhCJtPPkYOgnyzvLu/lZgNzA8yPOw5NoiTQhKJqNxOhW7PupZkVhnzZ/kkZxSq0evo+yJd6gCaY7dpn0gaZKhSpPfHEhADa4os15fhZlL3+mcDm11wl00zxZzVF1V9xbJJkWaIUGOpMsc8kl6z5YFbLkiLICFB6dcgQ9PaEaAqpsM7UXrTeVG33atasvYtU683hp4yVvgkkGSfLMHW6FBQk3KQ= X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 31:B1KvBElbMu+bc7Qknd0V8cndYgIZxRYVHEePH9+pkU/B3ayYBQsWTmcXW2+g66pKZxpPQtWucMWEeyA1K8ihF5xum8ZS7avxpFk282ZdHwWe1iQYru7woZf6Au58l43JdKjKpI6SsPfeZwUsWQcmoPVZCMGZxC8IbYK6EbuyAL3uztUEaqr7iR9d0uQF1uXNxVv0KrGK9J55qL9iy+P6g2kX8inxe7uhc3qngVR0On0=; 20:CSrTObIh4RsPKGvO5hQQ7uAWeTouBVSbF/cX2vy2OFZKFMzueA0dPCdEEW0FdZ4tBu3hu/r594lwOUC6mEHCcr0wyLn3aJm4nPO6NUgAuFTmKiH7vfBjjLK6F7sIRnJqFUMoABT8S5O35/ItvzDHLrQ7MhfuTo0Gr224I1LvXzWPWugvYNLhi9CfIwlJEX4EKmw48Hd6oPF6mpmACVB/EIwDBUDevbq/c3oYFpY4jJiCZ2pq5zOsTa9O20jlfy2OrOdp0KIWo4kqBurPRhHMFWp7Xwqg4NSLRyiH0irAbmE91XSmhRvdLtCEDtYuWNT8EQi64ww6QejQcyNTBaDcP0OKgZBPrBgbdRxgvOkqnnubv8ZrQD8KxopiRUDj7KckA3aYlFRqgg/AADqhcubmEyDFTvynfKPZiK71Vr+gNgXrRxvaVToOGV+LhcotOpAKWcVq/4yIy4FZqL2uMFuCyyh68OIunZ5LKOV9JQrEYD3pnEzZesxtBtjvP3Iey374llRK6JXz0G898kDUgzFSXUZGgZYWpJV6pbBptq96cditjZfLUaGZLYSY2temYpASyGp1WNzt9XR7KqCiBf1ZGmuMUA1oqEp3ipl38dAXGA8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(6072148); SRVR:BY2PR07MB2421; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 4:LRQuga7b92ppjvOBRsjcrngWvjniJ/MEVaDICELad65NHHfoKrdr7cNYNcIyVmLtolCTOUSLpjyUtPATthkYbkv/GaApOqUMGMcb1R1OZrnZIPbgeQXfzv15TAe4pwCbYHuaYGVlBeIFDb4yvPX1prZREWqNVLjbFf4zOJU9sYK7yAZoEw+QVwCCGpCiKq83HRYchavoSu4GJLR2yZPmplarbMx70kCKAKN5wngPZea3FlI69cxFfOnlRpgOQRTNIoAmILpUrPIsouJakv4bJ1yoU6F4azwmnOKXh3QNPioE+ZH6FfUckdJWTADG+u3iyM5rZ5ZHklFQOfgkpcQsZTKKW5B+ju8H3bswk6L9oAaWX0Ib/ZI44wD6NWiS5/yGZmBrLsRR2BzextRi6WjjzwAjQoiRNfB75V4bbGkQWoPTn2dLG4/qx2Af36T2+x2VwoAIXoY7VyflXV71QiHRlorpka2q+DZJoHrKXLKkbokLIFDL8fX4yrbMjcavj/QWcE8/Ap1NUzwh8YdaVs+Z4OxqEY0WIdnx+LSyzZxySIFyuGOWjQwUuB0c9bcrX1Gch0jFJM7mP4dylfn+/+G3CayGb5A2kW+ZwVr+HSxPgrhc8KUlLOhkD6A+eNWAS6clQJ8lmlE1NJid8l5UwVnRuE5m8fGN24gTOZh+MN2VdFBzJyQBaSajSTP5Ov0FKMcNItHdU5sNrq8f/xCdzY5PAADLo6qbg7vowXykzth/+lfWa0tGtJ4GhLioDzAfa6BPzVu7gNx8hEOWmKmZ63AFSg== X-Forefront-PRVS: 0305463112 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39450400003)(39850400002)(39840400002)(6486002)(8676002)(6506006)(25786009)(81166006)(76176999)(42186005)(2906002)(189998001)(47776003)(66066001)(33646002)(48376002)(50986999)(53416004)(50466002)(53936002)(7736002)(4326008)(478600001)(305945005)(6512007)(50226002)(6116002)(3846002)(2950100002)(42882006)(72206003)(110136004)(107886003)(36756003)(5660300001)(6666003)(1076002)(38730400002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB2421; H:1scrb-1.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR07MB2421; 23:6BiMD3U3JB708UDz0jffjk3YcJbLtD6h3I0rNvltv?= =?us-ascii?Q?mV2Jyx439fVprlNcs1EbZubCKqOdHOTAkSUmIsYxn/KdX2lav1Mc2CfN/E1i?= =?us-ascii?Q?nO7tQyLbnu7yne5Bi1Kgdc+ycNoXpi6GOiRf/WfKjVLmrDDdSnt2Cw82PSJH?= =?us-ascii?Q?9I501SuuXV6wbYB6eUWNHzqb00SqP2gK0GlC9fmQEBHq/ZB7fajygVotb8F4?= =?us-ascii?Q?sjhHLmXLASaOYGzNjnHhXLh8pJsb90Q4wUZ9BdPICk23/1FDgsaqBc6G/VYN?= =?us-ascii?Q?13NxO70p0EG+S0DWEl+KOgZ04Y0wi9fVXAyz85Zn4LLqFYoafBhzgLtLwE5M?= =?us-ascii?Q?TZMn+wOR2NC+tPq0v1uZ+SiS/DLxM0qblgs79utJ5NGaFEbl8wr8+JfcrGge?= =?us-ascii?Q?UohFgjfi8Nga8P95mH4Gbarb0EAEWkBwzmkxMMHcPBD2COi7c1+qNit1V7ji?= =?us-ascii?Q?1/viuMg/eFHDt0IBKvM5boHZjd3m8T5GtRiXbIkV+Lj5mkeqqvjosd0kAHyR?= =?us-ascii?Q?BuTr+pILhMH6ukxwehDa+1JLjM9OMzUTOzG/CObt9VFfeNtWJOrgtOUkbaon?= =?us-ascii?Q?RPvTw8h1xh9iAzz5Io8a1VNwpFFgftSXoMmjVeGgm2gT3yqZJVAyrsLa0M41?= =?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yy64jGr0wdK/7JzuYOsBopSihYneurGbDWPMAMlayMdTGxmnJOOg==; 5:XQ3VcmA2UbCogvNPvubZqrjyUPdDnC0JQcE1LJb+z4xmXcCfseXkHkD3Fpj0OV5l+THRuNyJlPqgFzNjUxJ6X46/DZJXoqOHmoWtD8wLGOIujQY5S2Q0wnbFz0rTUmiDFpseytjLzMZXCIM1rSTcfw==; 24:yI6ral+anWJ9kT6dJbC+/+Yc8xpUw+nq4E+Fb2WY7twKSDUX7cgLj4BL0YI1ITFIB6wGOqk4Lc90vXPgG6t7NZyc04RLiWpkIhEvNLotAZ8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 7:MNlPsf9Nl8PFDrX+ScuMZ+lU8PDSPBZmo2ClR+RLVPV/3OeUTC2zwObdGEFte2NL0UgitVDLS7fMK4GKCPnjqKokji/7arr1lP7J7P64grr9VKeW83Wz+wrkHxcOiIeR8eq2Pp/9GMzcAvp9f0g7bFcYyrcoT/jHoaSsvF/SljZmdr8cBJgw5I5J9PU7wE78Ajd1Bz4bBdEXFpkm/4ZO9cO9KowbB+6b8VMV0VMsS6Q1nQ0i/utdsUYJpVFC99rhDuVsIZ21DSWIohSHqROWGmMSCxY3uqPdlQeYXo0qzWd7m062nu7jOvTbca/S6r41zKz7dbsZ7FOniqT033+m6Q== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2017 05:45:55.9387 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2421 Subject: [dpdk-dev] [PATCH v3 0/6] Add clang compilation support for armv8a linuxapp 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: , X-List-Received-Date: Fri, 12 May 2017 05:46:02 -0000 This series of patches adds the clang compilation support for armv8a linuxapp. Patch 1 adds an rte_pause() to a tight while loop in rte_eal_wait_lcore(). It fixes warning -Wempty-body seen with armv8a clang compilation. Patch 2 is basically for removing the usage of assembly directive ".arch armv8-a+crc" as this is not understood by clang. For removing these directives, compilation of armv8a crc32 support is made conditional and is only done for machines which has the crc extensions. Doing this avoids the need for having the ".arch armv8-a+crc" directives in the code. Patch 3, 4, and 5 are for fixing the compilation errors/warnings. Patch 6 adds the arm64-armv8a-linuxapp-clang defconfig. It also moves all the common defines to common_armv8a_config. Now defconfigs arm64-armv8a-linuxapp-gcc/clang contain only the defines related to toolchain. v3: * Moved [PATCH v2 6/6] to [PATCH v3 1/6] and moved [PATCH v2 2/6] to [PATCH v3 6/6]. v2: * Moved common defines from arm64-armv8a-linuxapp-gcc to common_armv8a_config * Removed the -Wno-empty-body flag from eal Makefile. Added rte_pause() to the while loop causing this warning. Ashwin Sekhar T K (6): eal: pause while busy-waiting for slave hash: compile armv8a CRC32 support conditionally net/thunderx: fix compile errors for armv8a clang acl: fix warning seen with armv8a clang eal/arm: fix warnings seen with armv8a clang config: add clang support for armv8a linuxapp config/common_armv8a_linuxapp | 53 ++++++++++++++++++++++ config/defconfig_arm64-armv8a-linuxapp-clang | 35 ++++++++++++++ config/defconfig_arm64-armv8a-linuxapp-gcc | 23 +--------- drivers/net/thunderx/base/nicvf_plat.h | 2 +- lib/librte_acl/Makefile | 5 +- lib/librte_eal/common/eal_common_launch.c | 3 +- .../common/include/arch/arm/rte_byteorder.h | 2 +- lib/librte_hash/Makefile | 2 + lib/librte_hash/rte_crc_arm64.h | 4 -- lib/librte_hash/rte_hash_crc.h | 2 +- 10 files changed, 100 insertions(+), 31 deletions(-) create mode 100644 config/common_armv8a_linuxapp create mode 100644 config/defconfig_arm64-armv8a-linuxapp-clang -- 2.12.2