From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0086.outbound.protection.outlook.com [104.47.41.86]) by dpdk.org (Postfix) with ESMTP id 43F321F5 for ; Thu, 18 May 2017 10:56:16 +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=avY0v/Io6e2Cxrl/dJC6WtFp5ql7KzCMZaZHq7TmzNU=; b=g5wI7TWgYhCL5xoZZtIMMISbJj0JLIXg6hg4vd/m+1IFbJ+pie7GRUaZZMap01uBTrRsw9du4WrPLUcDRizpEMIyi8Goy/ujfcr3x+Oy6A25nRVqtSHdKpbcy4r/G66DM+cDr8mVtP2Frlc+GiwSwqWtbsIZV2VIyt68G27MPD8= Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (111.93.218.67) by BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) 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 08:56:11 +0000 Date: Thu, 18 May 2017 14:25:45 +0530 From: Jerin Jacob To: Ashwin Sekhar T K Cc: john.mcnamara@intel.com, jianbo.liu@linaro.org, dev@dpdk.org, halayli@gmail.com Message-ID: <20170518085504.GA13709@jerin> References: <20170517181949.12002-1-ashwin.sekhar@caviumnetworks.com> <20170518073426.14920-1-ashwin.sekhar@caviumnetworks.com> <20170518073426.14920-3-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170518073426.14920-3-ashwin.sekhar@caviumnetworks.com> User-Agent: Mutt/1.8.2 (2017-04-18) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0073.INDPRD01.PROD.OUTLOOK.COM (10.174.144.141) To BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 166048bc-d19b-47d5-da1e-08d49dcbbd26 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 3:Cq1+WeCxMq96arTsRy4f3G2uzV57c3Ql895GHdy8aPGSjrU1xrzKuox0RQ7u6hd7VnHqduc1/xKuDd7eV0JgeQNIFJc19KsMFOm8ro97Z42MyhuctQcv5XbtXUq0vR2BW26l1qCPKfde3udaE7LEtOIfkmFumWZ//vkKEAAXi1zyLrJdAwCx4dEsQcVQ6ByUHFKUWIv9MX86VBEN7CdpwkM0yDU4Ge/l+p0eS/8IRLBMsmR7wRWfm9PeQs8DbSrjrcCp93xWtIZo2BdmGsKap4U5BtVHApOnVPG2RZOJlBpuC+/cvE3KyG8VJf0d6dt5DM3J5NbKnRSpFU47uSkPOA==; 25:BM7A25CaNRqWbJWoUeLhxrBnwKsoIgt6AvaLAfFOLAmgr+onrVRufduLoRJL/XM57tghhykAV4nf0aZ5Cr53ExgYkkxnOlxxUYbD/RlHsOtGrlPkSPJucxG91Yjs6paf4lMFAhs528JtQxGM635gHrZeWiL8XqYXgKrY73wctEYb0aDF2WP4tJ6ukPOxFmL2dy4Oqrycky9LzlimwsWf7WMKu7vWxD4R1uO9BQknQlyeC0HP+Dk+kwb11LYjwQsSLcc32MNAqiIgMQHqD0tTQjvo+qwJNFnOqXx6t3OGzXQeC6FC/wM6PCRRIIYYZw08jZ7VDndSri2IRYuKlEE1CNmxQC2Dj6LRpG6LBgE8Z4rohq2oIk4+C722kMEm3qVUv/PnKqWVxlhsxQQQGr8UWh3uWDrRTkHBnpGUkXXgboDDdBaVGxwsPwci/qo4IAVHF5LmN3tJlHiNj7hqwttF3zK6CE6BAnPFiUgPs0sJHV8= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 31:btvfMOqQkMJKSupYegj7jjoHwyfl+tlABS8s6OFsNa1+L+5jl79xUSOfGi0aAYAmg26GbVVDKCnMTt19opCxtTdJON76UhnyrjjEzIPSLte42HY3jNox98+sKpT5tC5BzmT391K6Q41++P8Sf41pidHLHTNjQ40caRBTQdoXi+F3ce1hZkf7YgKb+t3erhI/Z4UaR9JDejJN7tAFqUZFHFROSWCQq0PaeS71PZHfYS8=; 20:HPPUut7hdxwsV236ZVm2Q1kldoG07zbkldyC70k1AxEcVKzHz0axXyVkaUC4w/9xh1sAg0SNlT4kH7kw3Uoyn27hBYObv3pbzHdbx5whbBXyN7kqZxwpE5oJcq/oPv3nF8Sa7gzHsg5efCuiPchK5jT33M+BhqVoxaN5TaXMbQ7uyNftmRmq6OgKQ7bvZZk4rOODbJvO4r9qdDv8lapbGp2A808bpJ0Uz8wvPB0GgN+/VTSnbWFvjLJCUvZMp+d6DYYKpYSSIpDbbcjlGThTmXcyANzOFNwnVaQl+SUDQPCWmbu8YNjdKWYTJN/dya/bU6gbySIrIwirJnvu4Y6Jo5ptVWA/uWp2TaUbvNDyy2uZOok+94qcCZ9Xp1y/6/RLyk+zhhXkNw0nHfUEZZreQUISBusWUhTAtGLSm+pENOqQ1fnTUaTo8E9Gd6ri9BAgF+rN6BgzTKvGK858q+7/y4pV9JC268JNaWbxWwg/Ti61GKuOSBswZ+Y+gVUrHPZRw3Y7r/4WcAQgeho1yrxgdCupZOEb1qxFFRId/AAAqzdKlgIkxuN2QtpW2LKFrhE5ofQ2sjgKj1oTf44r06u1cjwGHp7DNgZhWbo4nciAi2o= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(6041248)(20161123555025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(6072148); SRVR:BY1PR0701MB1722; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 4:ShxeKDDp7vpQ4a75rTs8QL+6ka7oMUMV/CeSBcwIyvx8E1REC14BInhPLCHSdzAqJEYqiAgktSkaW75pJiOMABoL9XD2B4aejVdPKjC/VlMYMFZSli7v3IzjJtSwoo0enO3dj05hEPlIZebxKGj0NYkuN4av1VaLDCEcfzx+0f3bw/kSaNFswosCVz308kVFGd/mlbCeLkxJ6/fCnIhLFPquSjoFXi73Iw+DZ47XDqcmxMHeEYeCz+XQX6ETBJmR3YraALnxutgE7acOxLNZdiICZp+EHHE4+Hn4vLQEeND0DNmHUxK/B0nllZRp22SrYRw9k18xZf5PQ0Bny4zkyMOTJRCKiTJtPHUjM43pzFQuVqh5/5bdTnb5OqmpHpk1n33QoV+KsVW5COowil7tmNm7girNPmnUJO4ehQHdrLxje01VzG27wnCtGYtcF01C83ReSgqPkTLKvbjm5OMFS9uBUjpawxn9Ztmsy5Hn8kmzl8jOrRYgH+EUGOoQWpCvURHz0tL1TNmxsYzq3RL/mIiA0koPGFxQPL5S7LtkfLUYIwQ8P1DdFkBq6bebo1eQIn2UUxeH7pj6j9feT3tx6kO20B3NdUkr/l9/bG38dUcPBmRpJ0+kCkJu85vRhqS2URGZzWYb+dwV3BeXy6nF6HOq+fJAOJvc2oQH3iqWXC4jkN0MSHgGN0uyqqPL+EbKajFJGamoWuyhOILgSSipTMDl2LB/7/127HqXgc5tu6cmaifSjyxIXyRNA4eIE+9T0jSqhnxUcbH4+bMv6PcizetknbU/bbo+P8W05OCRzWYYBgkKYaUxmjBB/QGhthSP X-Forefront-PRVS: 0311124FA9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39850400002)(39410400002)(39400400002)(13464003)(42186005)(229853002)(5009440100003)(33656002)(76176999)(6636002)(54356999)(9686003)(42882006)(6666003)(50986999)(478600001)(55016002)(66066001)(33716001)(4001350100001)(2950100002)(4326008)(6862004)(53936002)(189998001)(6496005)(1076002)(7736002)(5660300001)(6116002)(3846002)(23726003)(25786009)(72206003)(38730400002)(8676002)(83506001)(81166006)(110136004)(6246003)(50466002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1722; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1722; 23:OM3DKVC/JP4YHVCbpFE0Az9KBx8y+9/vGQ7AG88?= =?us-ascii?Q?JixqoiKj5vO+MRrD/sP83C4sbGQb8SxLpbDL4BqwzqFHuPYH/Kr70uYsPiK3?= =?us-ascii?Q?yAHe+IvBqnf//0b8quL8eJpFD5c5AQeKASuHchxb2oObDKGTDmJOZgL3PZmM?= =?us-ascii?Q?zKgm8hAVSL/7ThTLh+RRs4ZNf/NmHCUKU4om9ElgWUPtRW6CCg1kPl2aNGCN?= =?us-ascii?Q?iQyQrYfQlbqawdaS7cRXG2HWV5Ow7YcELNIl24U89lb9s4yV9wqSkaP6SZSq?= =?us-ascii?Q?sbq7E/VIlotiLL3oHFACT8LaUlnrvuDnTqwZ7ciNTAYSXkoJewXzDLfju/zk?= =?us-ascii?Q?6MPHNJTO0RheKP7yvur2Z6aPScB5KRP9qP/b0J4j7XqcK4VZZ1VioDLwM/tO?= =?us-ascii?Q?bD0ZezYabW23dboCNN44gIno5N40Jg4JnREj+XMHjvjI3GtR0SnQ6WFsB7fU?= =?us-ascii?Q?uR9F8S36gUe2s22+1DkexBst0B2iIyKvkSBn7ktvVfVVEJm2NnAtL3MXdliN?= =?us-ascii?Q?oTc8YJGw2wvDkD/4o/FhbSmgAVmWKVIcuPNiK5VqeJjGiEn/KCim7tsn6Wul?= =?us-ascii?Q?4SnQfIIDfEBPACzEcdrgP9/BGDYy+i1VjEhv88HUckW3Aav4MB31WdSLwghf?= =?us-ascii?Q?x/8dKAgHffaHelLCNAKG4NKF3RWsu5y4ONBIlOnlIfc/vuPx/gA1iuS+iAdI?= =?us-ascii?Q?Mq8+l/RPEbUPUrwc111xKhFtz32BQkzd2b2ZY8pzl8BRvhNg1IClcem3ajJ0?= =?us-ascii?Q?csx3/SvM/poEedmCwhIqul3yvv+EXveJWvGacltWjoIveYa4V4kGizYDwohO?= =?us-ascii?Q?KQo87kaIllsGXY6mbXVjTdrCyDa1yz6FB2OR7HU70909lZtAgL+KfOT2ZP7y?= =?us-ascii?Q?cNCEYNOK/G2rXJPSvcz0TxvZGa7W4IcdLAUEBggpah6ZihabWjGcYEQOYtE4?= =?us-ascii?Q?cH1/CfHTdhqxrZNLjwFhOZlgwlLgDM9ANcB2TEcilxE755ngpLEm47LUnZtq?= =?us-ascii?Q?kDtSDsSguOee4OLsodUVCpQSZGbyDmSQKwjhjf7jJGBH4DG+THesrx58X1X1?= =?us-ascii?Q?OKYTwmvftGRB6oiH6ND4SgcP4nptGUubAFbJWc04mGm5M0sbcZu2chYzNpQ8?= =?us-ascii?Q?R0h8v4Y+6B+rokC2RY+h1dw50W2te6Tpj4GBO0gX7Q8iwFtil8+W5LA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 6:lJRqEa8SdBDRU6KoPMtBHi/Ov41SLZ89+931Cn1bLOtfd+rDSFWuz5qsZSXZBIx4HrgscGLdeFaNX0dvCoe6roQoIUH5NHv1QIve9tDKABNpOkJ1Pxp/TnM7rxCvxEBHFlsNSUQmIYp3+8JnXTgElQVVJ9UTS7VW6jp9eir/JtJ0dFHO3Vwgt0czsI1X25hftzNDsls0riuUmYKgdKxtJR4H7KIegMMoYKmCKwvAtFfedsc77BSzum5dK/5az5o5JbJzhJN8mD36attNnBeXlso+tnm82IhZoQajEuhqpo7LEAhkvcLi7k2M7quBS0F9b6b1W3z1VS/mhKcuUO2i+1FY5JUHOirDdo7U0A8+jE8z3JPHxKkz7LV3bYrEdR5ETFOVWJFH3AKU+L93+XOzZStUFGrDkShOBtslAa78hqB0sVAm7W0GExJU8ERTscVll7p3/QcAfQzp4AeSRJBdKEIBee+dCw7WHzcDwHZmUgAtLUS96LDSl5sjCT0A9/V0Xy/wBxw4dsLvsRjyyXJxaQ==; 5:62/zcFR69xp6X88GM4K/tBSdF+kGrjmiAI7EYr9Mhp5p5t2NN4jKwltEtMISp6xCsbOIlKkHhXnAAGxSXZOBJv/CKMudjXjBQ80wXRUzcEH5ycB2zhumZmu7UmbUWbkbO95xtXM45OhAW2/X4rC3ag==; 24:Yz8uJUXPTjKnEMvjiQ7I/H2chGUuR+3ZM+znT1r6eIE11JFMW9g2rhEPdgQucnPQ1+C5yDcuHx0JE4nh4ZLR5HrZVIbpOMoL4oTUc5GfSDA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 7:oHObPEhCi4Y+QG7P80FIkX6MqQFkkQHdNQjohZytlJ87iL7xmAWxO2W4m0XkpqyBPvdAxpRVcDKACxu7niTnEXpS+6kuQhv3pzGE5tKSHFx8uqHxK5v6ZXbhhc9DlJVY33mRLeFB6oJmxxU5dsgda+1ADs4BGBPSiTfjHELNIj4o34zCOqqqtDK49hwmXAAq4O7V8nD9OhH/hHB9nPydSBkCHPGTAmd8S6VGWF67akxSQFFbxegOugegjuek+Jgfdw2gQB774wmLkfpDIOh539oGoyYXGnNI/ts+Dtl9znsSP/wqH//3l7Nou93NiaBWG2wxRirGemQfzfR84M2IFg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2017 08:56:11.2268 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1722 Subject: Re: [dpdk-dev] [PATCH v2 2/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 08:56:16 -0000 -----Original Message----- > Date: Thu, 18 May 2017 00:34:26 -0700 > 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 > Subject: [dpdk-dev] [PATCH v2 2/2] examples/performance-thread: add arm64 > support > X-Mailer: git-send-email 2.12.2 > > Updated Makefile to allow compilation for arm64 architecture. > > Added necessary arm64 support for lthread. > > Fixed minor compilation errors for arm64 compilation. > > Tested the apps l3fwd-thread and lthread_pthread_shim on thunderx > and x86_64. > > +void > +ctx_switch(struct ctx *new_ctx __rte_unused, struct ctx *curr_ctx __rte_unused) > +{ > + /* SAVE CURRENT CONTEXT */ > + asm volatile ( > + /* Save SP */ > + "mov x3, sp\n" > + "str x3, [x1, #0]\n" > + > + /* Save FP and LR */ > + "stp x29, x30, [x1, #8]\n" > + > + /* Save Callee Saved Regs x19 - x28 */ > + "stp x19, x20, [x1, #24]\n" > + "stp x21, x22, [x1, #40]\n" > + "stp x23, x24, [x1, #56]\n" > + "stp x25, x26, [x1, #72]\n" > + "stp x27, x28, [x1, #88]\n" > + ); IMO, We need to save SIMD registers in the context as well. x86 code also not doing that, looks like it is an obvious bug in x86 code as well.