From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0040.outbound.protection.outlook.com [104.47.36.40]) by dpdk.org (Postfix) with ESMTP id 025177D4B for ; Mon, 5 Jun 2017 10:59:23 +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=g397zfM2+Qgl8JaXgb0Jda6GOA3eXIOg6ZdoB4wv6QQ=; b=GRTPjzwbdYTx1ZkTb+ejiKASmVuvrcrbrbxniJEtflM6Esyi3Fa3J0q814fU7aTk96KmO5gfrCWk76eRbNcA0qJEE3UG67RMvHal/flfWZrDdMpugHqmoskDe9a0tVMB19kjIs5c+fZDINfjvVYDIrFy1iwqacL6hqGuuwpjGHg= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (171.76.74.1) by CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Mon, 5 Jun 2017 08:59:20 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, bruce.richardson@intel.com, Jerin Jacob , Jianbo Liu Date: Mon, 5 Jun 2017 14:28:40 +0530 Message-Id: <20170605085843.16696-3-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170605085843.16696-1-jerin.jacob@caviumnetworks.com> References: <20170511101046.26456-1-jerin.jacob@caviumnetworks.com> <20170605085843.16696-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.76.74.1] X-ClientProxiedBy: BMXPR01CA0026.INDPRD01.PROD.OUTLOOK.COM (10.174.214.12) To CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0701MB1726: X-MS-Office365-Filtering-Correlation-Id: 3086197b-d59a-42f2-c444-08d4abf128eb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 3:5twVLiJKLl00yv30tShhHICTpYF5Axg7cNrLmITQcxIIrXpWcNTzGt1V9iO8Cm5TDMEP6GWmMlxbwCQgRad5wap4z9XiYclzVWYn5gTiybJLst9kD3DvaV65c0ynGQNDDK+/1+dZgVMUkX81NH+McBMHwryRfyyb0Xukn9j1e3nlBn3JMPvAvDM0QEW4tBamrRarufsKq5emUdXerq1lA31q1n4YBH4uQpDm+wCJdLOOFZjHjCotow3xBvkBGWIGS3GkTzolThIZLi4Gd/DzLbUUH5zkiuzooZyiAjAbQaKgv1Rf4bFa3JsN5svS6i9wYx7l+N2XIg4eppLAejaErg==; 25:dCwy6kmbvY0kxvf8S1zxey6cbFeTwKPaV+3meHTCwD/QUpJ8N0UR34jNUEnFpfiINdUTIF1lt72N0KdDAUHlz7HZLbzDzq8b04u4491MSbQ+RduPJ+s+iykkYT5yizxl94F16bvr4EupU3us+9W2mIrMzB9zNdZupypoHOYvcfAfYO1Phdpif5p4Ud49+1h6mm7vjiv2hBGQNaRkrQZ9lkOlNxuCw+OmBlvAS6rWLiYvl5B7oYpo6nzlB275y6eXSN/WFsjmQJerviRL+SMW/bpMh9oFPo3jpDrV4op378eeNitNuvWPiKTHAudKh4P72+kzqACiqbjV9vRNlRMQp6WsEeDDLNvm681RxKn7kRts9ny+n7mYyc5rXALqjLHdFhcKaeM9lm0Yzn7kTh9ckAHlZdo3aZFKg7aUHQ7hhYnfkAraP+QsF0V2GotN1/K2KzL2xVRpa/S5YzzeNFAm87joZ2SixpAGJFPVZhjbW9Y= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 31:w9cqwIColgviEVdKO0hqt9VP+nd0W3a6xTgD9HfdNPqPTxQwbd/CgbTrVdZU7bybP9cn+izK5QfFw/MVSa18m8/5QHWWQqJRLdFxkvlMi/EuCkdb+lE13qa+W/jSsaFpPj6TTiQfDwF50bZf13oOuAs5QS3D53RUFLCunPvciXKgglUSGyk1bLviCEDsm2mzFOYGQ9VCJ91jWmBLq8hFDEgeQOoDQKL1KqGWzuVpF7Q=; 20:NbLnrqmVwRsY3XqrNWQHeAR9hmK0ZnOSnAr9cnFXs0RhGtQG5njNF7Moqz/NSnv2aA2rA/AgNxBPAwFAQHRfhQ0Z1kOKD6jXFINlsQIoICOeOZgXckOyPC7icKXU7oLV0fBnmdkZ9c+xbk10JUHOGdGhCwe+TyA2AGtapW8StSlCTr1FIuE5QNBKHjtpZkPplG0dKIG99yc8bkyLsPVfXRhAK/HcOF1ZO3KtjcsQCe/aRTu43JgFiy0fJF8xIMgcyphWjV0RdZSxouirVg6eF1B2CQbBfvQW5FcnQgKZXIz7UB8H6o0V+gaMvP4N4l58jDFsSctr6bVkAlNOrwxOXPGY9f7lzw5Th2GhAnUPONcup32kdW+I7nAxWZoNx1cLZEzthTZzoBRAAsqTVD+PWTzFXXmqbj/mqBVBW0HGhJjaz8loreKMn/PofQOHZTVloolvlrJvu4ss+okEUQyG+MQts48A7kLU7l1VpVqAOkHvu2ektvXyg4Mu1NvtSwev4pjqg9m4x+6KsHnAhF6O8B50vBEZ+RAJpyOfe67CzTZlzka+beJxiV5C6tB/NXe+GqNvgHAhGfPLTxzT6Yov1000Y4/lg1QPfb0fGe51AaA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0701MB1726; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 4:jSc6GQBDByWXjlDaUzsDLTLJLXwDIxWd8uEUDKx+?= =?us-ascii?Q?Rz5AwMhl/9lswYzxpAqfEPEqkCEGRY5dqh0VYVT7y/z/JKdKU0q7L0WX56PR?= =?us-ascii?Q?siSo8DVg9RQrHjoum7mWz93yVcs1x351MfaXKadq89ldIFxJFx560emLDzkp?= =?us-ascii?Q?3BLrv9yCf7/eZDB+Ptydcnvutj1VEGB2SdXyqj1wp1FDC5eggc3M8RasC9Pg?= =?us-ascii?Q?3ylqmNpE0XcElkyu8Sc22b4vmy5bszTuRS9JrNIcY56yY/wZld9Yu1ow9RSn?= =?us-ascii?Q?A7GnJteIKMEl5g/xYCpHLLofoNbezMVy+i4PvZ84BYgR4LCf791F1ufKcmK0?= =?us-ascii?Q?Bn+HPKRMpi/CN0IMint1oORCYpG+3zY78ei+/0Ri5NPFJmuCPPQdxmaY7pqb?= =?us-ascii?Q?/WN1RlxvwrXZoTjZ9tP5cYy0TFHy83nnH6UtApqEX0jQncrJqYW3NZzoQ+RD?= =?us-ascii?Q?CRsq4uabB7vhmZ20qXoCi44hgDPWjm2gZOHj9Ybp8DnJGcZdByiTQUPpP5Fe?= =?us-ascii?Q?iwyu8FmTQXYBrhpST0Yo/EOJ3P8ZGQd1+tAIx2t/STwDNPQtqiZk5SX2tnTG?= =?us-ascii?Q?prUSKqwNEfx/UdSswnsKqg+f5DZtRfwSOPMrT2IpBIWJxTFiIWfG3aYUGY6u?= =?us-ascii?Q?qQgcFKDw6sEQaRaD5YoqyHMyzbKbOt0EV2MPjG2SQgeaGVI/vqjMXjx/6Wrf?= =?us-ascii?Q?CatANxn1nIwZG7M6rGix/Ji4CE72WCb8o+Z3b/7FYkt2UEFk6W3VstO5Q7xZ?= =?us-ascii?Q?V1gDOgHUi6vJGPZlMIUj2GgL6pX3JIaYprFZncNgLwMsQHeGBloo+T66YvdW?= =?us-ascii?Q?AQ3L3QQLv4Z/nc+EOKKemjcKtKgqgUxNjV3c9No9sVEG4jsgps8P8pFNHqnl?= =?us-ascii?Q?VVpcaEvD+PK7DPmba3UyIFK8zoafOp3a5n4vWgTEhMWTCkCSr7hFXp/x8sMb?= =?us-ascii?Q?yeg3UJTP2c8hwj8wInpHtxcwqWL/p8iCxLvUuzqz1h5rxSpZYqgMeUr/iD7O?= =?us-ascii?Q?NZ6YUN5U+CL2U1D2zw6fHa8IqVbbIt/22F7gTmX31ZHWfgWNdKi7lOY8tAgG?= =?us-ascii?Q?vKYPF+RRowvMeil9G6/l4aPAR8sYpno/OqJY9xrAhCvmhUWC/MaVLnDBY2UJ?= =?us-ascii?Q?8E0rzBZQFRo=3D?= X-Forefront-PRVS: 0329B15C8A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39840400002)(39450400003)(47776003)(189998001)(66066001)(50986999)(76176999)(2361001)(2351001)(36756003)(6116002)(3846002)(1076002)(33646002)(5003940100001)(5660300001)(53416004)(7736002)(305945005)(42186005)(50226002)(81166006)(8676002)(6666003)(72206003)(2950100002)(42882006)(6916009)(478600001)(6512007)(25786009)(110136004)(38730400002)(53936002)(2906002)(6506006)(4326008)(6486002)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1726; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 23:OQApiK+spkhQWaxPlG8zLr7nFMK6mIApiFDG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GzbLyxjJBUFMbkNruRMZObjHMyjOex8ptDUhEWfs87ym0VobllSKtcbxVusoESG+rusdlq5uViH2cIO7PI8gi8lYrMlL2+CUjrhd+9dIIvHFtQJUMTdtN3o+IgqY438Z2anReuze6ylLQFmJspbQNdO5R94ZwC30AU2amrCTgqhyULtTF2s4HZWUWJDs3uHamVbxGC/o+Wodn0esFh1RV/Z1S2z998ltn3xIydo8nlEUVeA5nGdJNb3AXBp0sdzGl8HkadP9gipAHy1SsUhUZYMRQN0/N86LeRCmgzqmGrqnNf70x3pZz2SPVF+CehCgApV; 24:cBoilW3LtnrqrudyQf0cv+2rhzNtpbWcYk5RVxLhvjyXd4c8XEbaKDFpF+Ml7K3nuJ+EqvcuRn4VGq29PinWfEUaELOMQbLa1TJKlAJh9jY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 7:xdiwxbLDgXva6xczSxPFzhZX6v8ReCVuvq86btW3pBxfBJhq+ZpJP3aFPgjPnDF1xbRECtksZu9OVTFcrHu99zKctakgklpu1ZSYhxg/S9+y50/rIVQteGrGKrYAzYGebgNdWaOyQvVIRag5rsE9FFDtClAqrRfY2HoTGegpLYocIxEvU/UWuQcjQUM5AVM8S/HZPSoTq+8BP7bdGqaTp4Pt7TqmJLxNxVrSDghGzAVFDfpYPaMFzZeLGzAptW57XQMvFg4i4s/tSP/t16zoHW+ShV0fqPaaxm4FPgibBH7ib97UjZBrjGJ3EQTgmfu99n3WH9aaC+fhuUovsinstw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2017 08:59:20.7620 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1726 Subject: [dpdk-dev] [PATCH v2 3/6] eal/arm64: rte pause implementation for arm64 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: Mon, 05 Jun 2017 08:59:24 -0000 CC: Jianbo Liu Signed-off-by: Jerin Jacob --- v2: - Removed YEILD instruction comment, as it is an implementation specific(Jianbo) --- lib/librte_eal/common/include/arch/arm/rte_pause.h | 4 ++ .../common/include/arch/arm/rte_pause_64.h | 52 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_pause_64.h diff --git a/lib/librte_eal/common/include/arch/arm/rte_pause.h b/lib/librte_eal/common/include/arch/arm/rte_pause.h index 0fe88aba9..9b79405e6 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_pause.h +++ b/lib/librte_eal/common/include/arch/arm/rte_pause.h @@ -37,7 +37,11 @@ extern "C" { #endif +#ifdef RTE_ARCH_64 +#include +#else #include +#endif #ifdef __cplusplus } diff --git a/lib/librte_eal/common/include/arch/arm/rte_pause_64.h b/lib/librte_eal/common/include/arch/arm/rte_pause_64.h new file mode 100644 index 000000000..4101553e2 --- /dev/null +++ b/lib/librte_eal/common/include/arch/arm/rte_pause_64.h @@ -0,0 +1,52 @@ +/* + * BSD LICENSE + * + * Copyright(c) 2017 Cavium. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Cavium nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _RTE_PAUSE_ARM64_H_ +#define _RTE_PAUSE_ARM64_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include "generic/rte_pause.h" + +static inline void rte_pause(void) +{ + asm volatile("yield" ::: "memory"); +} + +#ifdef __cplusplus +} +#endif + +#endif /* _RTE_PAUSE_ARM64_H_ */ -- 2.13.0