From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0064.outbound.protection.outlook.com [104.47.41.64]) by dpdk.org (Postfix) with ESMTP id 3959B316B for ; Wed, 14 Dec 2016 02:58:43 +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=KH6bkb1Le7nOAT74bjqlNagJ+DZ77E2NE0mDc2MQq5tp9juMj8knU2IkxZypWK3cCJfsht5JK+ugnkG0r/Bd5q3+a5ZJU6XcplQzp/OCBrkcwEw2J7OnK/7zCZMqKSbiswbFocdcvxFj8aQNnSeyIwsk6uhDfaE9piD1BxX+rww= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.localdomain (122.166.91.229) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.771.8; Wed, 14 Dec 2016 01:57:35 +0000 From: Jerin Jacob To: CC: , , , , , Jerin Jacob Date: Wed, 14 Dec 2016 07:25:35 +0530 Message-ID: <1481680558-4003-6-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1481680558-4003-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1481680558-4003-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.166.91.229] X-ClientProxiedBy: MAXPR01CA0006.INDPRD01.PROD.OUTLOOK.COM (10.164.147.13) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: 962cf26f-d146-4b2d-7337-08d423c494a8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:YNILKpXzWefIWhWFU+Zi/cB5+4xYGODT5jbgBhGPKXuvA9L+31Q4Qy6DFY+pWpXZoulchIGBMLzqN4+SiSa0/sZc6XcwHHNBQFvIuudvM7jIh75425T6825TNskw09F5WsyC7MCymllHILUP2NImvEfPmjefHStJ476MX/AiE5DG4tkP2cejf4Ob5OX+4uiecyVnLTmf6GRietLibQSwplm7jlFwUXv8U4rvWIVSbd7dRvmVomd3tV4luRzYAFn1104Enhd4MjaqFyjhuO0tag==; 25:n5KnKa/RV9cvhA/Li/JofLVmd7Atz+Or9bEeV3hr3hr/PzUcMJvyUr258TQSHyeBWxp+wixL4y6h0y/qICtN5raf3cc/tiS2HqT5ChWqZmoPkG3FgEVGPOS3T2+U7j5XTZrEMWAZsvTWrXetZleRrXYCTxmG47yJgJ32gYA0fC0XWEl3e33rujFqnCuLkKLbXZPlf0cn80/TvJrAxV6ysjOpsgMcSzrUyTxfufbSZ4svHBP10HL/F614IG9RcZhrLCaHZ06epaFZKJhEThc8D4NTTTQCQ4tb94IP5qNj3fbQHE79HqemUvBkE/YnPZ8AtLOecaBD5R/k2CVPHKHZ6WUvAhZQr/H/6aJghY4weDMNs+JkvMcKP7i5BIfRWHeYNRyNkWvWt04YUyPKIEKrJrkJNyM9o8te1RnDJmjFzMEQIpWTNE+5TjtV1gRos9pl5MzTqDVahEGpkS+/Xssm3g== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:xYiLO4vjyRwZebR72W0/pDWwCn4nMd3NcYxGJwW3d+2BpzQsFkw7tbusT7dKC+Ep9ECuJPDBNW0INNzQkLW4/l6Yf1u4Y0oTR6SHVb5mJ90tIYtLQZPc3YVTNaZqzrv1SQO4327wdNjxiAJ1qFyKm6oSDTtfrK3PqPeGA90/7Sw+xYWn7ZevzcDbE/1RSles40hES/ySXQDFP7yNGzxj1QSyPfm17GQbp0sPqFl55WoTlVCw7dCjnImpZNcwxybY7WUZ2jwYFm2gFWbr8jXgw1IAtYAgzCmrc/+hGCvhfRM=; 20:YefMiXAh5RqG2oBVo7f2lrWjnmzifqzTWLhqbba0GXOcq89o1pR8bYEqFRjV6M0UGgB76eCHonrRB3kGZ/pFjJ7nBpV1m95gYB1P4aApAoy7Q4KJrK48r5EfLnm5bs9VThQz3KELDS8pwDpG5+V2b6UEmMTi9J4ZjzkvYPE9ttAwQhCFHnei3kb5FoQlTRwsKjf62GnLeNtZ6tSCfktxd67Wcch5YH0uRVEbTZCFh86ySHpdpqSKTnoGtXIWJ44YzkjLSafcvi0CZkCQsR5ZRnnJYuBA4Isw2r0R6AKow1jNYc1taawFT4rM+PUXoq14dl6W6BeF1e59LRQn8FqgXFrcMK1ZRTiPnF7JLHckaYsaxOD0cmlDo9TygqRzqtokhSXAg/ZhiJPsebtdaUX1ROqHoZ4Jo69EV+y0HnH+4Ohs9otzhM+CiyPRjYw3u4/M2S+UdOYYDkXKzkFnoxDsPm0LWcesz65NXFrviNWp7BDBs/tRWPETav8NAiOU+my0vC14BITW71qYE34wfOHp7uqw4hzfSpSp2OuXzB0XGXtAKSehsL6UON5OA9/k3NxV3BLm8xb6z3sZ0IkukCHvJx16u/HHfQKGpiJstuVjXXg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:k43PLeAGMg09PywMfLAOAMRTN8Z93Gc2G252NsGAQ/xdaqPBeNNL76V+PnOBlsD8lY3ISc0bRjW4uYILmv3RgarJ1fnOdEuXFk+mnSx563HWql4xr4JBXrGuxu7vLwuJ7B9y5rGohFZuHJ7rxsMDHL0G15c5qGjeLozsNAN+XaAtWYsv42UB5tUAXHu/8AzjOb0DNoj36V2QGRxT8HPaUVLpLo3kWf1y8kGMJFkcm3PV4maweotXx4ZRFfZbd4WdZ6iQoBv68ZI+9+wkVH+CsJ5a1FiA8sClUCmuJneroj63t2UG6JapgOcblYplC9HJfCu89b1Ga6SiOfezDX6r7IYeCPmO6GIVXzNZrHXZMBVnCkjEUSpNpz3h7CHQH2EAyeh/U20EuG+h40nR24BKl4c1INI6sZ6Gq6bq4UNMFi+zdQhX5zLdt5djmIrMv0WBDEdsSQexFVHF/HBx5VgY2kV50DG3RLzgwGxXSRCmgeKxEbuj1kJ7VcLApyoSI4ZrPnsWRkX1c4lJDja/sfR6eVKBTjMLCLs9JEmBjJw93eNk11BrKX1gqTguFQWIoHeo5roZ9eue7cH+Op7FEJJd7A== X-Forefront-PRVS: 01565FED4C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(39840400002)(39410400002)(189002)(199003)(6116002)(6512006)(6506006)(6486002)(3846002)(66066001)(68736007)(47776003)(92566002)(5003940100001)(50986999)(76176999)(81156014)(50226002)(2906002)(110136003)(33646002)(6916009)(101416001)(42882006)(2950100002)(4326007)(4001430100002)(81166006)(38730400001)(105586002)(8676002)(106356001)(5660300001)(107886002)(305945005)(48376002)(97736004)(50466002)(36756003)(2351001)(42186005)(7736002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BN3PR0701MB1719; 23:MB0MTYY+wZUQ+wPCer9IqyLcZ5hCn2794THQclH?= =?us-ascii?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pamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:PNpIsHWUUHBhnZ/lPQyB0bAYoL1APIvHayW0H70TLwhc/RUcwrwu18OV4hS+nJse4tgm27ENvUlKF0b3K0tCD3xYdgXzoYmZAlcvmB/OqYsnBu7LXQJma3r6KePGNHRNPfxVppYwKwQgbzwA8vq8PAfAul7aE0ubb5lEsLMvAH4uUO6KwKFm/e4bv2mo0vpNl3eq7sc0JOR8in2eTjKf9IYmBusu0ig5rk+HrAMR8uK0u7JKAR2UvbbQPRKmn+PWq5QpIjUun2lz7Li/g4qiar5X2Ckgqtldp141A0C75zRcxd9x9/1zn4IGDD7FixjtZk1/ggzzBD63BwejOTasQXr4J8MTRSsNGsQDBfaRjD+xo2EPeqcu5K2V3kHPNfbVSMWxCeEFTTZD0plvD6yCyou/fwtacYZD+YIkqsDqOvi4L1+D5KneW5UnRzEcUr2ixhy9+E2IC7S9q/SyA/BCzg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2016 01:57:35.5251 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: [dpdk-dev] [PATCH 05/28] 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: Wed, 14 Dec 2016 01:58:43 -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