From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0068.outbound.protection.outlook.com [104.47.33.68]) by dpdk.org (Postfix) with ESMTP id 5814C58CF for ; Tue, 27 Dec 2016 10:50:57 +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=oCWpw4F4hbbN3N7oERg1+TLVt0s8PqxURagXhP1ld74=; b=Rb3Nk5sXz6Gl4bCiIcvjiEDbx4KqtuU/1JZ+lhToK/KYrT5zcX7YHk8enZCGmcFOG3vkz7b6COsS+5mlfoFwvu8p6T067kfeN+8bqIEvEz2hYN+JNITz9sps6v+eZ12+Yk4B8KU0KlF7Lvwni/iUU9LEZ6EohRhceQ7T8YXMIHA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.localdomain (202.83.56.97) by BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Tue, 27 Dec 2016 09:50:52 +0000 From: Jerin Jacob To: CC: , , , , , , Jerin Jacob Date: Tue, 27 Dec 2016 15:19:11 +0530 Message-ID: <1482832175-27199-6-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1482832175-27199-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1481680558-4003-1-git-send-email-jerin.jacob@caviumnetworks.com> <1482832175-27199-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.83.56.97] X-ClientProxiedBy: PN1PR01CA0001.INDPRD01.PROD.OUTLOOK.COM (10.164.137.8) To BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) X-MS-Office365-Filtering-Correlation-Id: 73693f9b-0234-411f-b919-08d42e3dda2c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 3:bZlJSRarGXQONfSPEyH843rmU/uh51O2GeVjbHXzJ2kcbaUdhGKm8If0zVFn/xpMdqHx4KnYGeSdxpkDyjJqzEX5yYjh4/RIEqDp7/+T7MTXE5/h8mNVEqaixeSsyBB21zybV2K0e7U1aZfmcRrS9BmrupMGYzf2DA5UW4T3ZXY7aJMaYyP86tdQAjAfEZh93+xm/F3RcQqhNVZkcZqEdQLsJcOaiE2m9IqsMKDsI3ymcH3qTWYDzsH0psfUpzCVdAx/+EtMtO2VAE+eoL2UFQ== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 25:1IUci6HRPqWfssEssNybWFEAWQdmKSJVym1WE0oa8/vMFOosvdDWJNokhrPVYDlgjjRD9fcNwCIbgAjzmGfyskqHs6pXibjPiHOXl+YIopL4TGcOBUfjH6jyBjlHO6gYggLuSXB6pJrbMee1JU2OaTYyD2aD4OTqoSGkMnR41v0zC8gwteiLWwyNlQ5jGRc5hkFJa5hZRfZefH08aFsEXzKNGZHKbD5X0nJDwmMhq4+QpoX8Eit02of71OWa1Xlg6SRxGOnEQXlbvqFzcgdiMY+qtaXEWwNOCIlRDdqAm16/7yDbWgxCdNnoGyiBmJ5ZJ3R3XuLgDykp8UA8kthB1nUTIlg+nLI5tP1F191scLeS6pXK5nzS/s6Se1OhlPERALVZlYxeD/4B5NAZdj1GWcGts1/X2ngubbmFz9oNj7jYSHU++xXD35sSP0zcX2ztFqTGJOXE4bAo3jK3kA0LfQ9+5CvpYdTDK2R62Yt1IDLWRk/rHHiE7g0kTzD2GTTnAEmgaQl4jzomU9AqVPVvGB9Co+FKed81C7S2ox6cUB5sEL3mCN9d9vQwRCEKqn6jCwWIuH9Dwg30q+ymOe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19QFn7DgWQdaciya3a2gBTSHKlmIwqfKrhPEbuROm9o5p8FC/e1gpieCRDNPFZ2Ke3tSR94= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123558021)(20161123564025)(20161123562025)(6072148); SRVR:BLUPR0701MB1713; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 4:wyyFD0S2Hurfie3RRWlelD3FlFvvD9iYMpIGhdgyjsWxlliYqY3U272vtGbqyfKOECL5XAMUHt8e2/CcBUa97vdTGc1sH0aHzn5scdrYBiqOCrZAOg8ns+uDwachD17pHAl1AJ3X2jaaDF9E18+Vlnsk+M2oFXaq+AYE/mQ2tGahp3Xzo4zUpO4J0GTgaEq3dEILWpXDfh8tLg9w+L+quionMgPSm4C//k1p4c79Yxgnt5o8ybiIzZZDUdXI0XkOj0/LMc/gSM3QsnCd3oAlvfBKdKcpjcOl2Ik7vpqDQ1Qr+m8dQ2CllRVwhR4T36+S6FRYoyJJ3qp3oujCuM3kL9omVMTxvq6K1hzO/YITLv6s7zsZ0cncQ+cmwMa+AR7EkvWtmMZfaYVSMwzuQ+M3s+SlVrRIy2vTsnUb24C1zRaac6smsvfxEh+edrU7jIf4Hv1CphCs9zQvnTBXSzCadV+cE3IYSEaSQwqIHRdxDpZBYm6QNDmGWOPZw9fXN1t4jh/CinujQ8y9lN40jv42C3intYg/8DBP+XLf8uNGATQQitzAJrOkoL7RHqfOg7mMmZlnrVRXeCzRMp8my6O7HlmxSMFY/GwwUbSmMofeDfU= X-Forefront-PRVS: 0169092318 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(199003)(189002)(4001430100002)(3846002)(4326007)(6116002)(50986999)(76176999)(5003940100001)(6506006)(6512006)(6486002)(92566002)(2351001)(50466002)(110136003)(305945005)(8676002)(66066001)(2906002)(101416001)(81156014)(81166006)(42186005)(50226002)(68736007)(106356001)(36756003)(97736004)(33646002)(107886002)(48376002)(105586002)(38730400001)(7736002)(6916009)(5660300001)(42882006)(47776003)(25786008)(189998001)(2950100002)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1713; H:localhost.localdomain.localdomain; 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; BLUPR0701MB1713; 23:7IJNnbUIBN8n/Z+SN59kzcBpnEW1kT/oSKVTV1y?= =?us-ascii?Q?Oz9jz+aqSGame5lgKC1xoLE+BI62O7oSW5CoAFnWp1Js5musvALv7HsT/ucF?= =?us-ascii?Q?XSUPGICmrpi8MPFAI6Fdjt/znL9Vm52DADeeG9xXuJTClIZ6mN26UQOiVnE+?= =?us-ascii?Q?PNCBNYj48NUVsAIZf/i3bb+3zkxC553fkauDh1UyM7LTCP5JLIEGdYE+Cyhr?= =?us-ascii?Q?1dxZi4UV7QbQoEQLi9TXaCpn8WO35YPxx4LpZWkcMbLdptqfTT7wDb2TGOfE?= =?us-ascii?Q?LzaekPHtxbmZrvKVp0wOiJgqPJE/zK+fbE2WaRfehada1AlQaUudOpVZRPpI?= =?us-ascii?Q?HjQMNEajjMqlIw1/9tMiXD0AOuiztDPiYxG5ev5yEFCf3PfL5gO5rjJ1JH3N?= =?us-ascii?Q?5jqh2vON0/Y6at3eqM1lxwXubyKPpNDv1AabzVjXVCxTeMXUeO4AUKMBSCm1?= =?us-ascii?Q?ecjZRp1intGjpA7Ntdjwi+x6Kh4+HUX4WYPTtQM67eqzloYcaDsxNjykeLjM?= =?us-ascii?Q?n0p0G2xeRd2c+IrYj7ZJQIPykfXGB6oNF8nj/voHqbALBz10hlP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th6zEbuynik6SWIGjUe/W6J17jmU3xJzkgkkW2Cp9TQ1IUXUpAwwV0XGc0CyNdnKPHZJisFnQIX+zmgvz8nEMcX3I6Kw1+Mmdv5skbxNAxTyuBJeYUrV6phX63lZbA9d+ybnuSKCnfhV/gU2mTg8=; 5:2nROBGk4T1sR6pLdbwTl8CAtWIAHK50cN4LkOi0qdoMWLfJXTuSoaaii7k36hRbB9RFJqzoK1FcMYQAzSmWaY9tWldv+GT+cxOREPocaW7LwJ237kBZvL0XE1stMN2Bko16tYPboUTrmdyOm0MywGQ==; 24:Vg+bH9ad18vZy9ZIN5a0Kc9XBOVz8OgV0D3pxsJMrtwfQ3VYrLoi1Cq455MQCeAPxDD3u15OFczKeejh3+ROeKIuoWWXs5/FJYkTvRzDCNg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 7:cvOPocfrf2NZI6uq9WwRiHnABV0ZWbR+JpAjR9/kyRrv9nNStalqDs1WySjtedgbbHfnbK+yMKsUVpTVaRkRDIPstCFP08JTCSq3odQ7pOphoUcyu90ogIy0kygr0YxgaF50hF8ZzMSmAujW23jh7DpmcNXQpGgXtc/Rkhw0BiZCGRxlPSlv4/SqzDuR/GQtZNecwQbwkJFzyxPPNiK1FGa07VplY6AJ+xIQzikw7zQV1M7MrtiQac4cCweCmRTf8xQV/wmnHagxVoTaTdtwHHRMA1tuIJ+S7V1IBtTHPl80PJx2enacyZafH5OLEYBbITyU1Dd3ahme2o6piVwdtCso9Cw6zuVk8ckE0pqx3CGeH7iDWj7x5+9Ges+n2NLLyPfqQAQfh9t5cXuU3FmLiJ6Z8/YlvZOe6fuHL4MFM2wTPD+u9Riw31FWq+nEchphp1PQWFACAXIOHHGVNA1OEQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2016 09:50:52.5463 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1713 Subject: [dpdk-dev] [PATCH v2 05/29] eal/arm: separate smp barrier definition for ARMv7 and ARMv8 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: Tue, 27 Dec 2016 09:50:57 -0000 Separate the smp barrier definition for arm and arm64 for fine control on smp barrier definition for each architecture. Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_atomic.h | 6 ------ lib/librte_eal/common/include/arch/arm/rte_atomic_32.h | 6 ++++++ lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic.h b/lib/librte_eal/common/include/arch/arm/rte_atomic.h index 454a12b..f3f3b6e 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/arm/rte_atomic.h @@ -39,10 +39,4 @@ #include #endif -#define rte_smp_mb() rte_mb() - -#define rte_smp_wmb() rte_wmb() - -#define rte_smp_rmb() rte_rmb() - #endif /* _RTE_ATOMIC_ARM_H_ */ diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_32.h b/lib/librte_eal/common/include/arch/arm/rte_atomic_32.h index 9ae1e78..dd627a0 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_atomic_32.h +++ b/lib/librte_eal/common/include/arch/arm/rte_atomic_32.h @@ -67,6 +67,12 @@ extern "C" { */ #define rte_rmb() __sync_synchronize() +#define rte_smp_mb() rte_mb() + +#define rte_smp_wmb() rte_wmb() + +#define rte_smp_rmb() rte_rmb() + #ifdef __cplusplus } #endif diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h index 671caa7..d854aac 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h +++ b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h @@ -81,6 +81,12 @@ static inline void rte_rmb(void) dmb(ishld); } +#define rte_smp_mb() rte_mb() + +#define rte_smp_wmb() rte_wmb() + +#define rte_smp_rmb() rte_rmb() + #ifdef __cplusplus } #endif -- 2.5.5