From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0064.outbound.protection.outlook.com [104.47.32.64]) by dpdk.org (Postfix) with ESMTP id 7CC4D2C3F for ; Thu, 18 May 2017 12:23:22 +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=Ujc+ZHdw8BtAoiFO1I4BHYX8gtS1qxB3N0zE2JPyOdo=; b=hSvdvsqstWTg1y2vlWtfoAux7OWAhmXBLHUntigrpBUiIqnnRZs/axvK9+0Z62RCIWozsgNyGJw9K5OowyJGSzHr1NegdcN/1yFidm0uwjncDxYVcXe1qMh0QkhyjfsssXtKkM5dorQk9eZDvQlQZ4whXQPxisve9mgEnGUd14o= 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 BL2PR07MB2420.namprd07.prod.outlook.com (10.167.101.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Thu, 18 May 2017 10:23:19 +0000 From: Ashwin Sekhar T K To: jerin.jacob@caviumnetworks.com, john.mcnamara@intel.com, jianbo.liu@linaro.org Cc: dev@dpdk.org, Ashwin Sekhar T K Date: Thu, 18 May 2017 03:21:49 -0700 Message-Id: <20170518102151.35504-1-ashwin.sekhar@caviumnetworks.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170517181949.12002-1-ashwin.sekhar@caviumnetworks.com> References: <20170517181949.12002-1-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: BN6PR08CA0065.namprd08.prod.outlook.com (10.172.144.27) To BL2PR07MB2420.namprd07.prod.outlook.com (10.167.101.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a350e674-21ea-47f5-403c-08d49dd7e7d5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BL2PR07MB2420; X-Microsoft-Exchange-Diagnostics: 1; BL2PR07MB2420; 3:kANQtOC4DMtu8siqBpbbITBnqaZL+fTguAhHSToU2ZbZ+4FMeIPmpgESq2i6TJDt452fKS5gMo1+jX7iiC779T6sfo4EDzYGjpaFj0Cv97EVBBkJRQbvFfnIp/yRd9In6r1m+otsuLUzXTWqa1BC6lpHk9iJYacbZnQYD4v64laqgqADovFAE4yh7x58bOHAv6atsy09Wv7SqHlJysqXw9pvZOiPOLJgRhnX6H6ZUPd9ZdCShQAYuQf4D5AHDcSUNRL+b2hiB7q9nlixS88iXTw/pVgIZnt5xddZo01DbeM96hS0Xr1nuzy06FwDsHPFH6KnR5hS43qC2EpEbpkb8Q==; 25:Kf8fL7+d54AzJtB2HKr5CX7p7Gl5WO2RdbIlGaqGysF92vV4DTwW6LP88Y3JDZeliURYPFtWb6GcF1u44KMwbC5ujH24mXartHgg7ndbXsEsGo+XNmFvZYLgLVeJpKhk10596m3lTvhP86hDzjeZyoNHMOh8D5W8YVOoq0F4uAAIF6CsS0iror8g/wFznyb1o7G//zcy+30t60Gbjzy7Ch98yFY/cIbxfdY8AHRJd04qyhLg/iltugRMBVgqJrNKR+1zwuj93NJ1wLDDxgMhPagJPlaHBa143e4k+RVaVSn3XQpUfEpr9nT54vmbZIBje4XLwleTduR5tIVdQuFTF/sdJ7yvP5Gynk5qfymqY5MVPCp5vfTvQTD6EyB7r71+DyFsCL9HANE0aglSfdmsCiwf8vzMHD/caTKtsMGGcdLBngaXOIWESucHw8RtAE1BoFbEqqiNVxz0fs061V9zhs7942ZFYi5MEGpYQLSaxuA= X-Microsoft-Exchange-Diagnostics: 1; BL2PR07MB2420; 31:jGPnO492ekoc7aK5pD9dlN9TYQ1YnTUNWv9WfSoe6YS96KY0CDjb7V44qvjMYUnYUutARvRD51CWMvVcg7mwWGEaPkFr+aSnJeosLE7g3utBnV40Q4gpMwuaj8ix+yjm74Is6vSaU5/xa1a8lcGuK/1acwCdlTLYKaJY4fd3Oj5zgLtl7YWRTOnKoQmHO+ME6rI2RFsv43Rn6bp2qLQoo6MBpqG9cK6PpYkEAlYH7NQ=; 20:yz9U4IGZPdmobIQFtgEqe5tWnG41GniIJ75SY1QtYFyNP9ZuLSbnE4iqMXKNf+bMO2GAQyEjKRBF77tuqZ0FjWWoa0x1Nj+pGEeUChcukTiKg/T0muuGL0H/M7f0H54Nt6h5DLHcMr1mIeXID1iO7oxUGrfi3XcrFr7LsVZZ3WksojpN2x28ctUkkimqXF+JI9IR5JD/g/Lpv7A1yCbfQbG+Vs71JzyQy2HesKsCHA/aMrB/iLz2ihmNEcEn88W0p/Pi7ltqXkHV0HNAyakCkq0HZ/EPxWSDcQv/RVsW34auGWYHjwBAJpyVIq8T7c94mQ+iSZ31/9S9M4PvtLI5wBPgIA3b8Z+uUF+roXIERvlb/8dWIzRcodkQ6VkoCDV5MXqAYlsIQwKCvZ9QvW1Q7t/KWg2E9PvS9nK0vF12FmKfdXYiLFBzoizjATRdssI5JyGg/w6n351lmHnPTYZ9KYzUDgzDJLZCbAu7N4OHO7dJ0nbFDtsamfyPS9hBjcFbj5++vkisn/ej/tM0KgT+DohoPEXSBsdCSQ+sr8rQALUmAQEqQAgWo/VZ31Eso5gC77lQ0Vl9ThBbux+2/AOcpmM9KgTUFahAtDLQPvGWASY= 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)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(20161123555025)(6072148); SRVR:BL2PR07MB2420; BCL:0; PCL:0; RULEID:; SRVR:BL2PR07MB2420; X-Microsoft-Exchange-Diagnostics: 1; BL2PR07MB2420; 4:vCiCtHPKwpL9AhWSbswP/5x2W7+Wq46vVXBY7EHBORRN6KEY5rQaCaNj2PB550xikiKumRsZWkUyKjqV5+Gt5LUAd+WrCcWAd4IYd/FpKocl51uzZT3/zx8TPrTo/c87sXHzQubhyvDSOQs+eB8BKw+et3ttDepmJb75lB0e9VyEKoBam6Fbt6dlAhLmmeufVZ7YWjwASSD6auLuVXiQOQ6r0YCPaffZg8miezrMlQmEm2SKTdigKu/r5+uEwJwpENFlIh/SPtUTbKqq8lC1ePBqpDF5KsezOZaL8BIxRfehuEZpVDdIJUF+I7PsMmvEdaQnCGIjgcir9g1IWYKZTl23JPii4aaWV1DTZGm7Wv9o7ccpOvTbGwOfXpEt+YQGYe+NvD0PNlwWoS+AxAMOuAV+zCsecKpyGQ5fSy871RWQZ3czQ4veyD+YAKMp7qdqbkVnfWvfqGtqwaSxdcIwvLVNi5zZb8uFQBART9FnvTQ0+/Pie6z3DpObdgy0w5eQMkTvRZ+PJtDRs55o8/xTz6AzvGmjdxJtWwrCvwarYptHeBheQlbfo1iOCcf/shFt1gwWW2qfZw+jX6azESUxWqD7FkfcaVkN6ZxBtUaXqCRjGccibZ9hmLtI7EvzkWRwzcSaga/pN2SR5FWwRGyoVKZS9YbYqAq6J0Uq9N+uCmuLcNPqgdhDWhqxB5wAJIvHK/YP3wAyqClG0GQ1i07MsOkADFhiU2nJgB1qjbl6qhft60aK9BFoJQWMizrl5oLD1R47kWj3qGHUMpxGocBJMQ== X-Forefront-PRVS: 0311124FA9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39400400002)(39410400002)(39450400003)(39850400002)(81166006)(5660300001)(25786009)(110136004)(6116002)(4326008)(7736002)(66066001)(53416004)(189998001)(50986999)(76176999)(8676002)(3846002)(50226002)(72206003)(33646002)(53936002)(36756003)(6512007)(38730400002)(107886003)(478600001)(42186005)(6666003)(48376002)(1076002)(5003940100001)(6486002)(2950100002)(6506006)(50466002)(42882006); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR07MB2420; H:1scrb-1.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR07MB2420; 23:cg9k8zjTU/mFOe8EcnOGG7hve9n0oRnQPoVicYaP9?= =?us-ascii?Q?mpoI18f9E+kjm5iXJizYgp3PmuY+9+tOnMZGymLosVhNvBm6ZI+H84weaiIt?= =?us-ascii?Q?50bO2rvAvn0QG0XsdLUX8d3sKIkvIB/AS4PSEEzdDGRmf0tdXRVkNXNG1mHU?= =?us-ascii?Q?U9RE96M5VJQy8Ec8nQqx1nolTctk2PCy93ySVGGo7bOy4aEDe7s0ilgXzBzm?= =?us-ascii?Q?rD6uXFnGXwIZVwuWA2o/Zzw1PxKzg4SlkjKjIX3WhYUqklc82t+iNP+j96oZ?= =?us-ascii?Q?brsKyjbKAQz54tVaxz8Q4QcEFIt/dzZ2FjBa5J3NQlZ5xWTrpQT9LlwRkJC3?= =?us-ascii?Q?bi9BUuKd4Fvuw74AfMPqu/G/8wwPxWTlNrgvwFU8PcTZeyP4BSk1XY8US0ag?= =?us-ascii?Q?W2hqwLKg6/2A4X8q40k0gNW84/tE0rLzfKwjrcK+n1GsUAuvZeqNRQHT0piC?= =?us-ascii?Q?M6UMrHoXT+oo5xUkdtD41qmAmahdY8lIa92EMxicpYS8pfWIJNE1l706b8LW?= =?us-ascii?Q?7kKxkTy9bDBMgDjW0lVD1LCADBh+wb83ISxo3BRgWXx6Q2fbMd+drStvj3bR?= =?us-ascii?Q?O7qoYJVQqQkymjG2AsRIU/LxYH+5ubPGWKldCRMZwLo0wPk28GBM6WAFIhkf?= =?us-ascii?Q?3aJM24YsMNWI1lJ7fh0cdMVplPbGfn6fy3BlCL8B9WBo7Jbyy4AdcP9hS6xs?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71N2EOLWIJs/04muxcO3rxx7SCSJPRNtX8GFE517SM+iZ1atqLYvqGz44vZA+KXtsYbhu1jSYg99Zl/tBWx9pmJjW43rg==; 24:ZYJMph3j355fsJ7FL0Jh2BZkeTl0dR8lBHmxT5GUDoOmCrE+5RPpedQ311D4Tw7krmr0pt3zGRPoZIHcI4jLVPPchQYOec+8awU7UjjyD1Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR07MB2420; 7:mvmyruT0EabZ5DQprHRKBBqE7B77vev1g+2dPjoKTrHl/K/Xgc4uDDU5zfrXW4bRHmW5YhfLu8rJSStI4GwpfaYT/H9Ln5FY/K1zp9sN+EWXz5jNmYgiDw/leahACB/V9du3g5P0Ys+lWb2k5GT/xFfqbnQFo0Jr0obob+2coroz18SujSxObJzK39uAhX9iGQPq+UzxklCySQGRkIY+bBfvaSh7Di7Ktau5lYt4aW3MwUAep4LnVyco73/hnjWyTygaPm4o2Fb+3ERnmx+Q+1IPx+YjxPT4uwdb6pfdBybpXbCZCrvCH6bj7rJdQiEfMl+ftT3+5iqH2/3J1KWt1w== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2017 10:23:19.3860 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR07MB2420 Subject: [dpdk-dev] [PATCH v3 0/2] examples/performance-thread: add arm64 support 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: Thu, 18 May 2017 10:23:23 -0000 This series of patches adds the arm64 support for performance-thread app. Patch 1 moves some x86 specific code to architecture dependent directory Patch 2 adds the necessary arm64 support for lthread. v3: * Added save/restore of callee saved ASIMD registers in ctx_switch v2: * Split the patch into separate patches, one for code reorg and another for adding arm64 support. Ashwin Sekhar T K (2): examples/performance-thread: reorganise arch dependent code examples/performance-thread: add arm64 support examples/performance-thread/Makefile | 4 +- .../performance-thread/common/arch/arm64/ctx.c | 117 +++++++++++++++++++++ .../performance-thread/common/arch/arm64/ctx.h | 110 +++++++++++++++++++ .../performance-thread/common/arch/arm64/stack.h | 111 +++++++++++++++++++ .../performance-thread/common/arch/x86/stack.h | 66 ++++++++++++ examples/performance-thread/common/common.mk | 10 +- examples/performance-thread/common/lthread.c | 11 +- examples/performance-thread/l3fwd-thread/main.c | 2 +- 8 files changed, 417 insertions(+), 14 deletions(-) create mode 100644 examples/performance-thread/common/arch/arm64/ctx.c create mode 100644 examples/performance-thread/common/arch/arm64/ctx.h create mode 100644 examples/performance-thread/common/arch/arm64/stack.h create mode 100644 examples/performance-thread/common/arch/x86/stack.h -- 2.12.2