From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0043.outbound.protection.outlook.com [104.47.1.43]) by dpdk.org (Postfix) with ESMTP id 985D21B1AD for ; Thu, 25 Jan 2018 22:03:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=74a0yYscaorfUvL+Ee9iJLzRYp8iqBfGJTR8p3JRjwM=; b=Yzq2p9RJChW6+cHzBykzfmMhMHchyMEkiQi2T3zgA2u9zqFXkV7fRxVwk1/kWH+nDYWV2J28yPWBVO3IK62DBRP0I1nHUxPChhFFWi3MM3sPByGPaenLolM0td/V5GZ57aZ19WbfZ4EjdEOvdOh0wdRLSE7VtY3VE3IaHk7IeLg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by DB6PR0501MB2037.eurprd05.prod.outlook.com (2603:10a6:4:6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Thu, 25 Jan 2018 21:03:12 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, bruce.richardson@intel.com, konstantin.ananyev@intel.com, chaozhu@linux.vnet.ibm.com, jerin.jacob@caviumnetworks.com, jianbo.liu@arm.com Cc: arybchenko@solarflare.com, dev@dpdk.org, Yongseok Koh Date: Thu, 25 Jan 2018 13:02:44 -0800 Message-Id: <20180125210250.38233-4-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180125210250.38233-1-yskoh@mellanox.com> References: <20180119004430.15305-1-yskoh@mellanox.com> <20180125210250.38233-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: CY4PR15CA0014.namprd15.prod.outlook.com (2603:10b6:910:14::24) To DB6PR0501MB2037.eurprd05.prod.outlook.com (2603:10a6:4:6::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 298ee63b-c7a3-485f-b4a5-08d564370cbb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB6PR0501MB2037; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2037; 3:b5hPPUnPzsXKS1So5aN+Y63FZrZauyWxR4Kkfq7WcCNCw2hsmvABo6u34pJdmSiiySW8ZvmqkUFiK+4MLHn231vYcFuIifab9LNZ2qvUkmmuPTprfCLQ7ioNzdYpiY7jrQUoY1IEGEF1zJfSvV3XYP+/nldWVEPZu84L21vzRw96xrjgASFOe6gmdzZr/sHmPdNjnfaJjcUZ56bLlUfj4RfnUnvmwK+qe2b3CgH3X4+aQjoZEGe59S30n0IIaIyH; 25:tgtpebABwUeS31yjYtFFTC6RfXu6eD4+FziIxDsx69ur6kaOzFukr3C5s0AqIEtX7y30190Y06yUjWkMLNOHrKfI+UIV+qMqY56YhWPD0ebUf+5+RUh96dK1hm9Q/UiFmVIFyP441CyIAwIlou/HRWSBmN40MODQOiVf6jRf6T4Xu4Lnl5S9VSUxywuDVrWmGfx6orPZf/Y4fCTbbQzMDKYEPMaQhcJZbTUfljSwY03RAs/5Q9aNw8Sp534s0E0Leeet+Ti7vyPHDv7gjGrlkXByQEbTBUUVZohNcpPsD6F2Bs175kO+HITIiBhqor+WDq0oAAmGEl32l0Cd15p7nA==; 31:RbklMCNLESzUVDP1A37FEk+cK9A122KSkyI8OwGNzzfZxTDO+GUb9qoTjo4/n5N1dRECfiOaBofXRFRsI+VN2jA1c20y3C3zJ/RukMopo+lDyxMNSZg5fD1E3mJpI0iWJosIsdX3hQAOVjxmsQNTLKmx8Gj0kmCV4+8HYZSnOkopk8DftR7nDNRdqSh73zbA3WZnOwoeXm0xegaj7RMmxi83cl1OiEIFrQQC2XHtvoM= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2037: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2037; 20:Z2o0HOTbWS9joYiqZBfsiplCl6cvaEDQR2StuCWOKqE6SIQLkCq6HHAOBnkpYp1bLzUUKUxw79nSyyfrQgHxRQNUx+JGX02T83cx3bIeXYA7PsuzSeZr4lgFwfDPdLAiUUYNQgfxDsCfEifcgQw6NQfSDRw1dRcs5WcUwOTTiWXc51QE1QchYwr14PZ3LahftLrjVcRlbXFYBR5aX8my5W7Iz5eWUYOIt4J7jPpXE3FWK70JVwKOoB1JtnoPgH2fKNwERq6wQg+I9urkAgyLZ2UMIJ/qPzA+5wffZv5lgzJq9nsyLJnvrwtjQhjckA9tDwciguKtcV9b5WqZxAjV5g4u8OvMz5nZJpIRbesKxM4Tigto6GRKaMht7QkcRHlQIJ+7ShLsVW3UeB2owHo32Jcyt1RLjOMDPuIWIWjIOzlTHm+UHRQu1UEIPP9Wnk4Ybqur1tkbCCvIP6HsBL1zt86DIKmVXi7bOK5EL+h4Y7ys2TsgnrK5urZHVMtZ1UIy; 4:HkpiCgxEirtTZgdNkV601DNv8yo5pWtj0IF4iEYfqOjhvAS8t7xMvFO4PrEMNpKL8Qd8yHLwmLLnGV3mh2UOYdDAwG9eRNE8AWzLDGreRxULx4D/Spil/DoSt1r6/pUhEBgRKtX+a2+YNzGlW9Mn7fNZUaslLLQpD7SajVHht0eKHXbiZZ9e04CiMWffBV3sIXSfCUKMin2uIqPlbJKN3ZEAW6anNfpxpYOoGgtTtNoYyxR2ZOm6WeFRuQGCpQN4FHEmQkXc7g8mE/S1jcRXIg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(2400081)(944501161)(10201501046)(3002001)(6055026)(6041288)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:DB6PR0501MB2037; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2037; X-Forefront-PRVS: 0563F2E8B7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(39860400002)(39380400002)(346002)(396003)(199004)(189003)(47776003)(66066001)(21086003)(69596002)(105586002)(106356001)(6116002)(26005)(3846002)(16526019)(478600001)(305945005)(7736002)(1076002)(2950100002)(6666003)(81166006)(8676002)(81156014)(76176011)(386003)(51416003)(52116002)(7696005)(186003)(2906002)(316002)(16586007)(5660300001)(48376002)(50466002)(97736004)(36756003)(53936002)(55016002)(8936002)(50226002)(68736007)(107886003)(4326008)(25786009)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2037; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2037; 23:V3WmK8WdA8Lpy7XoxpyY13Dq5BsQtUiZxx/5OQY?= =?us-ascii?Q?6NkZrwI8PnaFbSbp16Bdpgss2RFDMAx7XzKxmwuMZekBjyKrcpM6/p1EswW2?= =?us-ascii?Q?NieaYYqOLCk4l0mOSG9YbyhQi21R6lMcCOz5+XEl+0A9WVtFijpAtdBgnEhK?= =?us-ascii?Q?+49CiAQfjDi2DezmN7ax6QYiJYDsrOBeHqDxXN0TINVyWPBC2loX5iFE6m/9?= =?us-ascii?Q?l1l6NXNB8z+SKN3ffVuw3tyN1hPfHx45JUeUNU1YBTjW+B//Lw83zgsiMMhh?= =?us-ascii?Q?vZBQkVpGlV6WhR0O7MEw3UWrL/MsADPG8BdNTey3BB5/ddy3wYpCXngxvKbN?= =?us-ascii?Q?gX8xj8mebvqZDGp8kYy2rtVumPcksEe1kndAYnY8O8eDtSd26z2m1V8IHEBw?= =?us-ascii?Q?IOAcwnPpN4qyBxnoZqOACnx5eela2Cz4GROXYZEIrZisfl+tnGwYaz0KNDJF?= =?us-ascii?Q?N5qgccftuXAreowiTmh4856/5TF++m5RYiku11pa/7KiLrdlECV6NB0Hunq7?= =?us-ascii?Q?Z0HstHo3QCP+o2AlvEsslTmsiieI0ODJk6XTjRdapLR2sIEOvgACY0EIezoi?= =?us-ascii?Q?tm5TSbI48EcbD1XZ1hE9DYbGG8uxDyK0QPMeB7jfdwhapZxTSz/+MWfL+kBS?= =?us-ascii?Q?kkMaU8j8zy/YS4RUBOGFJXqWEHBc77LJmB9ZyTlTYnSb/e3R05Lryp5qgbe9?= =?us-ascii?Q?nV9Sibx5oNmdDawIf/ANfWwYhhwlwkQrxVqMYyo2U3DJG44nKrFcILm/LZCU?= =?us-ascii?Q?WAyvwhc+QIaXRX8B1tZJhBjoxkwVeCjh/nRLW8G7UNOl9Q5Blryxg0h1DGi5?= =?us-ascii?Q?gAfHcdiRxzRsNuooLD43WDoXUeG/6GaWt8kT/iBGDWykMj3Hf4oRhEPzUuSF?= =?us-ascii?Q?nId3vSBppaLFcO4ag0gTSl09JQCbsLZlUYlvxqw/FZzag28tmuPEafdOWHRW?= =?us-ascii?Q?Ub2JZws3irbljcKsNZkBjyXSVVpRZKqkPQf7VY3bnnFoKF7nxeaH3dLhurgL?= =?us-ascii?Q?PXVTDkbqGX98Tdf1+tp3+ITgZ22L1qu3DGRJiRP4Kzi5+U3SMLaJhBmfE36K?= =?us-ascii?Q?vBvi1ZOyCkx2rMxVywLPsmDwdazZCC4xk70P+7Tp1sJkK4IsKYVtiELHzBV3?= =?us-ascii?Q?fheXriyqOf+w3nR/E0HaW6ijL6bSnyr+i?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2037; 6:WoVBrcWVs1N+tZjxrCUMMhPC1/n620gmG/yf9ySyX94m42ItvkGRdt4RGsrFvbThRsH/hLtoFHeLsz0Z04EQteqI3CxpKRY+153iIPvHYJPUvYKYECVQuHKBzDpIKAUhGYTq2DszOUVEchLFoYpWERISfATHgm1w4czI8eATu5HkZegzTUzkPiyNFwnhaexpA7PQkfGliGFBYNawVgygIRO2hhGjU/Q3H6GgVkBPOpnd18T8af6VpVLjXKo6QdomWs+Atg5CYQmQgHO4pGbEMLvQNXLjDKIHmiC0mWoMTknDijJr+zA+YB+BF2jpVDP3xJ3OT9lxiB5s9nLqEag+8gdWStZZiBGTUZgge2QJ77M=; 5:useAg1CA2kkOeF/fvyilLh48MN7qMhG2tHcEx8fcYInuDXUhUjz6U9qUfCLcv9j6rZrERZbVpoYQCr873N2TOVpcegfCFlPJc17Q+bSPHcainY6AbuBOrE1QKMHR/P2Y1AA6USjBBVImdJqYAhri7hGEJj+NK1VHZ+O3TiM86xQ=; 24:2S3ORkESwC50ix23BY7zB1ThpurkkYkfFIOYLfrbKcvvvMKsaG/KwEBm0VNDqd8Xf1NYDciP6E1P2zoJa6PuaTIqyIRikFBqY5jHxSw3bbg=; 7:I//MO4SpnFSnvlrzigY+FJQJBCZsrtE5/tC/J9vcVrDd2KuKC2beA+k4R/vHJfLxAMRN80hA4YF0Otk412fhMoT4d3ghcgFNvHXxPTxBYiZ+mlaOV6LX1JEIQUeaFs7OmY0UQzD8wNY2J+gPwSqGAdkfHZR24ATwNqc2P5q81GhWvw6EYqT6TaP3eJcKMhiTQz7WAjEst9i+o4/9BYT0pPCF9QP9lhU6DMBveBPJZZm8i7NdVudbE1/p+0i5fi2o SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2018 21:03:12.4430 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 298ee63b-c7a3-485f-b4a5-08d564370cbb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2037 Subject: [dpdk-dev] [PATCH v4 3/9] eal/x86: define coherent I/O memory barriers 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, 25 Jan 2018 21:03:16 -0000 Signed-off-by: Yongseok Koh --- lib/librte_eal/common/include/arch/x86/rte_atomic.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/common/include/arch/x86/rte_atomic.h b/lib/librte_eal/common/include/arch/x86/rte_atomic.h index 36cfabc38..8fb796c63 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/x86/rte_atomic.h @@ -39,6 +39,10 @@ extern "C" { #define rte_io_rmb() rte_compiler_barrier() +#define rte_cio_wmb() rte_compiler_barrier() + +#define rte_cio_rmb() rte_compiler_barrier() + /*------------------------- 16 bit atomic operations -------------------------*/ #ifndef RTE_FORCE_INTRINSICS -- 2.11.0