From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0059.outbound.protection.outlook.com [104.47.41.59]) by dpdk.org (Postfix) with ESMTP id 361612C38 for ; Sun, 7 Oct 2018 08:31:57 +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:X-MS-Exchange-SenderADCheck; bh=fnBFypwQHX7iazdT6u9Vr++onHbG/m6HDgS/r5liJLM=; b=AQc9GZSLDnspXWNryz3YUlZS1O7Re+hpu83wu0629qGamZ5I/Z9Jcb59nsLwoUcRhFUCteEvUdiWFXFYvT7vyoKMTaG0Z2CMdCVEZKufTa7U10EGwLWB+czyVJoHTDv5Qkc8s9rGLVSJROQV+c1CukIV27n/YQjjk3QpPogwDMI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.8.8.4.4 (122.167.112.78) by SN6PR07MB5006.namprd07.prod.outlook.com (2603:10b6:805:ac::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.21; Sun, 7 Oct 2018 06:31:52 +0000 From: Jerin Jacob To: Jan Viktorin , Gavin Hu Cc: dev@dpdk.org, thomas@monjalon.net, ola.liljedahl@arm.com, Jerin Jacob Date: Sun, 7 Oct 2018 12:01:27 +0530 Message-Id: <20181007063127.27960-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [122.167.112.78] X-ClientProxiedBy: MAXPR0101CA0030.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:d::16) To SN6PR07MB5006.namprd07.prod.outlook.com (2603:10b6:805:ac::32) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99abe5f4-05e4-4394-24c6-08d62c1e935c X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB5006; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5006; 3:onGRKprfRh6Vbd3byj9q198oW3JZvjBDf4MumtSAtrWbH722jH30ADSCK7QYMLAbB7skLZgmaC5KvCmq07nYhx7EAz/KppGavswtpbaZ7d2IZx78VMuxsiwZpct9OjT21Y+1AsqXuUblacYVHBe+8tFxbNhYaFQZ/GHBgJ221rK0g1gsuiWnfxr6Qwa1Bd9tzzi/v4llJM8KIhBMTR9SbN+Nj6C/P6Nneln+mNr9nyM3tQM2ay8k/ZHaB2PcB8qQ; 25:TBNEg4YoQdFXJCfHLc3wQIYF4mvypkGp/mHD0zc/O7c+10gH/XPSBQ4D/RVnJns0h5pSeRPtthwa8YRQGj2GDE9y/UlhafFdaqYSbFrfchUtXv5cVTWXFsDc7jjlxf3vanYtroWWAGkhSV7fj1Jqn7WF8i76WuhXVB0WAQHbBQ6lRw2o5LY+6LWA1dGr/j0qNDf6lqLkfOyytSb/WMGriPmwTcRGeLZMC5dGUK3O9vCB+tfBUrev44AT+5IFeBkJ10r88tiPNgOuaC+OVhF9LHSmP0OWHmu8LobNguZlmyDupZihxDYGk2rHadZ8Zm1fvPLppNsk/Zt39IVIGxTtOA==; 31:KV4nubv3PKuKVp06iwlSCXILR56vHpKJtNUilyxBrF/sR3grH0raDpwKFlvRuQyPBHqZacHpSuQn7loY3NbV/iH0MfJ74xweY5nFn6AWoZ4TX09EzULt5pJiTw9HRRyG7sSpfSdPLbZM/xt2u5tbQLQtxhOYIFIPxkzKrEsrPDom2IZbUlKV4D5fgXOwz9OsEc5SpBGzaIeOXhAG18o3UpIAcJRpsA1cxyEae6TQdrc= X-MS-TrafficTypeDiagnostic: SN6PR07MB5006: X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5006; 20:r6MQBonzQOhcsP9woneB7KG5xd0QWGNbj65s0nh7Qhb3229kZJW1AiSo9IsbECEJE4v/+oiljIDhbFrQ8gVMDxedVDmvUTwg/ZqYZDvN/Zw5aD5rtx5aaaOAtv5GjVW9zXy2PfCMUib3AmjbMcR6Gg9gmgQDA/LWpnvP5Vkxu7EOugqQfD5jDcxovdT5sqdxV+mrFWDCO4dzpW8LRC7MmxDVf8q4fANk+/DVJT/wONhJmx6qgN9jYzUll5yEmEx2EEr1oTseH+xOHo73WD0eE3UvkZMmUVF9exxa2boFYwHTaeh2Y0111aF6hHCs5GSgW15eTXXBtHMzlpBiBFjqeeF+/+qooNx1bsierithjY94zZ8EHuwiF/nG6v25rI8dtK8VYInfc0W6geGsG3v3FUck/XErxR4fZJXQP4vTupysfjsLlt62HoQcvjUi/3hlR4RNV2jwGqQQbdWsVbxb6mBYV3maQLP0UZuvwTciVieyNFupzGz4dGPigWaxHSrCEedXcSZNi7WWA2ooZV0fHSyPAkOmCq6qf7PP2bYeoVZokTZW7CiODSGUNWeJ4EddmgbU9LvSOJonXZ6IGA6seqNAaIAUumtd5629ExHBmTg=; 4:Zd1F1Co1AfXSiVNpLHeWBVytHn4+nRO/ct0vJr06abyQefxq7Btnmssw12iH4+5TdnfX0OMpdy4zIpZ1c5C6o8oE7XqW/7f3VqtN3+h7ea8Hzp+qxQiigq6QCUMDcLl4+UEXgQrMRAoWHWLYXEj200T3WjkysXq+Hf5htuFSKDeCnTUFMXghyYihQVXUBlg+3ASI1uJ9Q9FpgLogvB/W+y7687+SsaB0nZebOt6bCg6ApNR1wyutBmQx4fIt6dZMc7iZXF9SHcwcr2QpH28S4A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(93006095)(10201501046)(149066)(150057)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051); SRVR:SN6PR07MB5006; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB5006; X-Forefront-PRVS: 0818724663 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(136003)(366004)(346002)(376002)(39860400002)(396003)(199004)(189003)(51416003)(52116002)(386003)(956004)(2616005)(486006)(305945005)(7736002)(476003)(26005)(44832011)(1857600001)(186003)(16526019)(42882007)(72206003)(966005)(478600001)(316002)(97736004)(48376002)(36756003)(50466002)(6666003)(5660300001)(66066001)(50226002)(106356001)(14444005)(2870700001)(8676002)(47776003)(575784001)(4326008)(110136005)(53936002)(1076002)(25786009)(3846002)(81166006)(105586002)(8936002)(6116002)(6486002)(81156014)(6306002)(68736007)(2906002)(107886003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB5006; H:jerin.8.8.4.4; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR07MB5006; 23:0pz5Kf4545sKoZ1uNN2kuwzQsSJ9/ZdDUDKd7IKmH?= =?us-ascii?Q?KWJ8HBHHCqQc1GAGcXT2Pm8UKa6xPwYqACWFDwHB5wsGxGUdmxnDaNqUVHWz?= =?us-ascii?Q?DgE/LptgLVJX2VFXLrIK4AbEiDYJxtkMOl8Fq5FpAulMZrWLNR/dc39giN2n?= =?us-ascii?Q?Yy+WgUVbTKPEeo5C0zyCPuREaI8tpC0gaa4RhenmS1fRJmgmT7hz+XX0YSxO?= =?us-ascii?Q?f9tsV60tEs+w10nB2rDa+bDKGIpqYoQqmSZy6oPtl2rxdBhn9UEGodBg8lmA?= =?us-ascii?Q?80mg65fg0FBaXn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xObjOFO?= =?us-ascii?Q?pMHQyMj37RFcC/RLVOKzV0/h/ShJkeT4+XizXRIrT13ba+JTovuLlCaTq6Wi?= =?us-ascii?Q?n9PRN/fWdOB6wRls5fEOslg926cMfBCLzYkLk09Zic0z4fCmcybbxoDBRcso?= =?us-ascii?B?dz09?= X-Microsoft-Antispam-Message-Info: iHj03KBBJp461XT2iOB8RmJEhUbOjy/B/Vdi89T6O8YAFzJaVwhpENRPVMAv9QTqgz59H48E7pjM/0ob1A0v/T1bDAPQ0aO8BvNJK9GKbW8HhSdtgflAgapb5usE82lCsCE203UVKM9rYE/74O0nxGrGiFsgojoPuJA3/gCpPjc7TmG4CPpiUkhFalI/3/7Nb0AI3/EU3NyYGL9H19R/Hx2h1pnbx6aykvFHGei9W0cejCIwOEPzptkba7Kxlhd+5iqbQCleGhaToqbnTs9Lty+nQkXs/TQfTw5zC/5fA8d/DpdUbtbgwSR5XueVEk9tVB42NSBJYZ0MfK5eTqR4JGzcpNu+I1FkM6wwjBsuYII= X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB5006; 6:UkcopjWB6lMrvkgkU+qNwjk+srhsTMed0dxpsCdyx2h2j2Ldaz/4P6lCRtpamD9m0KiFCDmU1T7yfpf4esnW0nZdl1/QlYMfFPyszVqdyerkOLs0XF4e5QDrXZspZxnybZlNdv3rBmdiOhRKQzc8mGyCfOfNSjHFkZWrZl610yF8sejFghX/3RL+i3w8XaGQu35xETNVlehvd9G0OoLyRqsEtqcbHXp/bc6bbgQtswCY/GZfFDcpj4DVeBzefn3rYCqK7tpC7NfFyBzCsg9SN7e4BkXmDae9Q0tF08mlFjL9fmw4LjrIEaz40HESaoLN44atO1QbcCBKsjMSUA2F1aGIsi19vvArho3xR5gar2VrTcI9oWR7oOgiCmehKrjLcSy4yNLZ4LxVC4Y3QXVnPqKYs52To1uVn5qq30osOZAKNBqVIeyL2Jx74/jbTJ4ualHOc/2lz6Phh+Kq7ew9sQ==; 5:bNthnkNOL6MN4yt/sFn7XjbKJ0nEAezwNg1dUjPVGQ6j7+EH+HJiPHMcLJvqobWqnjeHBhk9BZOX06BLb5G/znoVNhgPG3dYA7eVNZxBTXoTtAvEKRwhsPlp14mustww98LuMPA8KG8lWHi+W2U6eFM09f2UE57rYk+49V2ErHE=; 7:NGKNuCPkJrLWaAnyEIGONzjY9NLEPsuIplZewJHy4RG2RXqOXaqAQaUDBrjCwdfA3fgGxtwlRaoL/Hs069ucLg0fmZyPgI9H4BuQPJFEFJZ4/zXIErzbzaMKmDw4eRCHigX+ih2LqQ8rMLJZ9MQduk00F8/1NzpTHaVriCOf61bAOi/xrrSeFwmNhekiLAMqxz8lzegQVU/n8Xas8FnfESx9ULcf/Vlmi3otGsdC1lSHxuUaBNCFF0onK3kScImv SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2018 06:31:52.7746 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99abe5f4-05e4-4394-24c6-08d62c1e935c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB5006 Subject: [dpdk-dev] [PATCH] eal/armv7: add support for rte pause 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: Sun, 07 Oct 2018 06:31:57 -0000 Add support for rte_pause() implementation for armv7. Signed-off-by: Jerin Jacob --- The reference implementation for Linux's cpu_relax() for armv7 is at https://elixir.bootlin.com/linux/latest/source/arch/arm/include/asm/processor.h#L100 --- lib/librte_eal/common/include/arch/arm/rte_pause_32.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/arch/arm/rte_pause_32.h b/lib/librte_eal/common/include/arch/arm/rte_pause_32.h index d4768c7a9..9b856e0cf 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_pause_32.h +++ b/lib/librte_eal/common/include/arch/arm/rte_pause_32.h @@ -9,11 +9,13 @@ extern "C" { #endif -#include +#include + #include "generic/rte_pause.h" static inline void rte_pause(void) { + rte_compiler_barrier(); } #ifdef __cplusplus -- 2.19.0