From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0057.outbound.protection.outlook.com [104.47.33.57]) by dpdk.org (Postfix) with ESMTP id 01EAC108F for ; Wed, 18 Jan 2017 02:22:23 +0100 (CET) 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=4aOfwS2OL2Sg+CueWKMWXlaEr0aR0hVKkyLhD0iOizo=; b=FwYQaYuiPvtnulrCvuLubnjLYy8hPFq37lokYEompiOK7OV7+jsZX3ySM8io9P6qY0Vruhgh/HTZ8I4w290tkBKzGLCymXf80GTwX1V2AC6U9gwDZO0T9y3TBPmGwWJj9V6p8ChlAzbwgMTM+do892ThL7v1Bi4ra2GhhHCpgwk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from jerin.caveonetworks.com (111.93.218.67) by BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Wed, 18 Jan 2017 01:22:18 +0000 From: Jerin Jacob To: CC: , , , , , , Jerin Jacob Date: Wed, 18 Jan 2017 06:51:15 +0530 Message-ID: <1484702502-25451-3-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1484702502-25451-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1484637244-7548-1-git-send-email-jerin.jacob@caviumnetworks.com> <1484702502-25451-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0115.INDPRD01.PROD.OUTLOOK.COM (10.174.56.159) To BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) X-MS-Office365-Filtering-Correlation-Id: cb7cbf53-7981-49c9-7e27-08d43f407345 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 3:Vac/aEbb1KpaGje3UrduPxPkruLDHUwcm2SJ7Mym0mejOTr7GSlFvY/d0iQP72ZnfN2BPb/034pxGLmqQ5Jtcqub6deBznNkK0D2Axc3yYmlqjVRSJQub39FTzHHI0waDp7/XF/J9oYLLzBmHdHwWvKKAlCOJAZtGljSYvxSocJAnLtuxuV5NeDobXcwfkPsdFH65I0e/48ibv9NQXptNrjN6NRNGaqViA3iAcjK4Nty8y/lF9UUOZqVHIAD35OZ1Pk0boReectBE0nfMMKlQw== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 25:DYvOxYFIIruJbMeFBw/NrG1OTQ2YV//Rw94rGhiX8UPGUoZ+BSpcOFP8EflwrkXP1wArQkwc6XjJYG5S3RofKM4FXL8/3LOUXVOqpQSWGyj1tkG4SauaGqn1I0QmBmy2u54otoS7iy5yiKCax14KlFZB0zEA3Q+bxdYnLUaocSIBWVCVOt2871mCY0r6E0FOW84JRbb+WLcUgvRKp5vh7fIXShYfdGqMA/eTLuGPhROlUCr/BFi7VAfwYuL2v7EMXNevOZKPmGlsoeCzLbx/YPkC9G6q/FwR+e3XzFFhSL7idg47cRNoSOnBRkrh4+V3uGCX/qOb5BkZ4Jc78N/gVgcdqZjlU8vuAY9AFdVn2oukuTHITAhCYonrWERd3LHgz3owVxKhiHB2FaCumfRds2yFl90F+pTRwI3gFK85NdXFk6/66WBj3nfbmlFoeAZk6H5Xj4952eb8knLQjCnPkM08RqPiI5rIMyumKdWZpZ6UQxDaZI6bcuOr5Jwk371KsN2siwpDcO7cd34sxOHXLIQkGQlBuhCFLQR7JuP7hEaDlrFRUMEialAwRpZM81dHd9uqz+hDx3ktWCXimSjnoX0zD2sDxfgPXML3LCF+8j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xyf3PDzrhSAKBnBEvi/5QCDR8DSCCfLHwSaGbZTD/joiw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(6072148); SRVR:BY1PR0701MB1721; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 4:uBv7hAbQ3GGi9kpqYex6tr16r8hleCDzqZ81gIwiJR23gIq2kSviWI2bhoR/awoQLVzolZo5ixRMW9+keeGH7VWPyK2MkOE3c4gnPNu51BDIJBjwPOGK4czeB7nJ3OcwAFNQVHNhWqquGDilHsQqtiiGd7edyfK3K60AI4WzJDn7nA/JYchFGReNkFTZ5sS9JyntcNYXJhkvoBPDu5F+x0slYR0W97ZyDS/UHkeKMLHFkAn3mDrlyU87odgtVyZMaN/yKkaSBHEUHJiAITGpdp73hOons0sKa9Wn/e6iudFdUROpOC6PaZaoxyhzDFSJk93yczizkMLhT2dw4JA/DRbyCk2NTY9QhXb88Wf/hcWC6WnZkpytXpOMXUq80HH6WUTVjBMfkVJGoRKRzDjr0+GpyJDSkhlzIlUqfXGW04qsNTNNGU5UyvD+aHdb3n0gUK74LZCxQSQYCgO9az4nyo5YSJSJdncx3Vm4IOYsx1jgMySPFhAjboMuv69LEVpy2rljlPU2drfdyA4G/M4SizJOwKLgWBZ7ZowKAFNdwO4NlZMINszNl44j75xvUsYLaW/h1cedaTS0SuhCK1usQRL7k7GaYSmnX4MVbnOwZZc/+Pbf3XEzQKCRRP11jvIh X-Forefront-PRVS: 01917B1794 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(199003)(189002)(4326007)(6506006)(50986999)(97736004)(47776003)(107886002)(25786008)(189998001)(54906002)(66066001)(92566002)(101416001)(38730400001)(81156014)(81166006)(6486002)(2906002)(42186005)(53936002)(50226002)(8676002)(2351001)(68736007)(305945005)(53416004)(3846002)(50466002)(6666003)(105586002)(33646002)(6116002)(4001430100002)(5660300001)(6512007)(48376002)(69596002)(76176999)(42882006)(5003940100001)(5009440100003)(36756003)(7736002)(110136003)(6916009)(106356001)(2950100002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1721; H:jerin.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1721; 23:LlU2F4AbpJ0vvOFIvxNqevN4GNEtWGGw0tIXdKZ?= =?us-ascii?Q?ftyMBS0iR+CS8WeHQf8kpnoeSRZx3Gl+g1vS+FFr1iJzTWCBkxexvtL25a+y?= =?us-ascii?Q?hT7Q2NLBoEq7V+cv2W49Dgh9++CKsf7x3GpJvF4q5lXWzl+0xeywS652z4ZI?= =?us-ascii?Q?2kb0uJC2uneB1XEU/jPnOmw6gYy+VBs6h1nqUUnq2O6Gdn82zkp3Eqb6zlxI?= =?us-ascii?Q?qd1G1Z/QCOxi6q4Km71EgCWQrn/zM3841eryLNyT9Q7et5tY0kSQDzxCVYcP?= =?us-ascii?Q?oLp7VefBTFDlLXPcdLFRfdd55hatSRfhF7lkTQaMtMuiO0nZrlJTN2KzdxFF?= =?us-ascii?Q?TI0bp48IQ6VZSmjYVrMH5cOZqii+DvIMYmWQA0GU68D1bkDO/e7V6w8wk7Br?= =?us-ascii?Q?sznUf+X3etal63lDpUKq98eAU8/kxG4gK2r8jd1eYwnn+yctRC3UucEjw+Uq?= =?us-ascii?Q?d1BKPhyjsu3pWwcU4ScoKfSgJ4/HilHjJ1lZpE3M1c+P2Aa4TazENBBPls8W?= =?us-ascii?Q?lsJAc1eCeE+RY5931t//GCCQW3nXdhpzYQC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Ngf9eYJJNa8niHP/uVbokGnJvFGULcU17bOxEb5tGBAPcSHU9IRh612e9HxMqA2mAROLKXluyzTRw5HUmXr8rW3AINrUkDrZ360F7w== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 01:22:18.3121 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1721 Subject: [dpdk-dev] [PATCH v5 02/29] eal/x86: define I/O device memory barriers for IA 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: Wed, 18 Jan 2017 01:22:24 -0000 The patch does not provide any functional change for IA. I/O barriers are mapped to existing smp barriers. CC: Bruce Richardson CC: Konstantin Ananyev Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/x86/rte_atomic.h | 6 ++++++ 1 file changed, 6 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 00b1cdf..4eac666 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/x86/rte_atomic.h @@ -61,6 +61,12 @@ extern "C" { #define rte_smp_rmb() rte_compiler_barrier() +#define rte_io_mb() rte_mb() + +#define rte_io_wmb() rte_compiler_barrier() + +#define rte_io_rmb() rte_compiler_barrier() + /*------------------------- 16 bit atomic operations -------------------------*/ #ifndef RTE_FORCE_INTRINSICS -- 2.5.5