From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0048.outbound.protection.outlook.com [104.47.34.48]) by dpdk.org (Postfix) with ESMTP id EC84D3238 for ; Wed, 18 Jan 2017 02:22:33 +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=bLwgTiRoZ3ryaevzEgH3fWX14GuSb8S+7ECXC3tMWSduK099GLkv1j/BkUvkV5d80rU8itYax2wmTIkt4CXZllUjRKtoJINj6k0bt3onKhis5N5gDdU5VQGmkqwSz5rh6KRi+A6vhJa4ZHf/ka1T0tJbpzGv8DCCcpK3c8edWXs= 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:29 +0000 From: Jerin Jacob To: CC: , , , , , , Jerin Jacob Date: Wed, 18 Jan 2017 06:51:18 +0530 Message-ID: <1484702502-25451-6-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: 4429a138-a79c-41fa-ec14-08d43f4079f8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 3:GbX70vbQtyPVJ/KYTVfXIV87f+vLEPGaYgjkc4AFZdstSs+FLZ7emJuLy62DKBjREpw/Aysu3KRji/NMH77MDM/TKcWlrQxLGnqHn3U4zdIQEgS8htZ0ReDySFNAmMLUtIc2y/njhtd8ACb7xwJ0nrJ/plnnLzYkl7MoFbo5jIag3elNhxrNG+8LQPDbLI85hXOSObYfYULsenzs88QU5iomzoCEJqQdb2A7EZE/MJn8uTSodFVygm3OmId+Flu1XrMLoONeCsrUpso+PsggWA==; 25:lOLLNhJm0FzP1b12eqBZaUaKNeczr2NCQGVMdPKWcvMqkou9jqbJTVMSH6pdRyn0Q+8yqNmaW1WFL3mtmdMwU0hE1dmqpmG7kyZipZzA39oOs+h2a7kVr94kJeoGIwfNEzEtjqNGeQPWwwwIHbRGN+BvhOaQK5EoETHKRQ0Sj4UiulQAqmYyduMD7tX8mt4t3cFmN2JyOWI5JHrZbiNNJQwCbiy/ye0ZG17cuypD68DA2hxSLw7UN8IPzMBQlXWgGgDgSU0qEbWY+djHGDnfESrk5ZVl77W9Q+X//8ODUtM8az7WLUKG92UBaKgRhBMoKXHpc7klEURFKIC5HljiWCDDXWaOylGj7YxALE4uOh98u0CQ91jaF+U3hcxGBImgq6E39+5QKPiOaHj9qXtmycOKgr/VJTrTq77zzB0bOdnP1wV3I6OH7oeZaPpA1AKdKREHKkCKy6HM+xRQdCs7nw== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 31:XWbj/Z842isP5LTsOD+ws0Ixx3yahLeUZ2LDr7HJoP0OqchQDSLgOraU0+poX8WjM4o6qlMN4EgpMTsU5u+xzUtAOiVMZLWwcBcKRpQZbbLNeb+Q2EpPJgPkwpzSjyt1Egy6AQTZnxNxB2DuHQlyn8qT83pe/+p58jjqHqK7ShPyGKjHg/j6XUqC9x6kcMHP+uoFrkoG7VgVLsvpsRxgZO0ioj75SJBHq5fNp/leyW4l3olB4BbBI0FOYAffPuOlaQyWkxQs4/VLlU2ACX3Ghg==; 20:LztACihYrrZpUBx6YUPRc41BJ7eXZLdrG28H+UdgO0c/EhhxiNZzb/mA6w1aMEEs+OyDYOEvzwzV8pKH8Ho7BPwbsFGurFlEmJVcJf+A1cFsPWCFlvA0X6D+cahXukXIj6QORuJO7cyWO5t7EiBGdsTsqgNC8OtJIld9PgD3zVL50reL4DVS+hGPJjEdkELRpJE0fk7xLLLBmi+7X1mqUrc/dZJPtoL4f+SP9T/DLbA0vby7vCRt9kD+JB1fjDWRxOEmIOJit5iIbOSBFbub2jLaP4NT86Hd1PthPmSZr5zL/F3j2s2k133wyee4eRPc8fM+dY2UsoHCVxX0Z5enoKK2f4M5uWhLHc7k2E7WZEu2UZ3k+tJR9s+XVuxB1uoPupYXWop2rRsiz5N9h88TkcmdvvIvmYfX18xyVj57NR8kZrzgn1IBw2ClCUy4aKBMG0DAbl9ZpG9Z3+OWDwRcUhBU0m7aNf36CWNXYe9dUYleZmLV7NTH1pUSRAf9OrBQM9jFCmHSL3pd2BX8quRE78pEkJf7ghtszwVHYnhVslpk7vEuyoyF1l21Cl7NkJldp3v6HcmUeTsGFRRSSGUoggSAImzV05rS4ZSpqTWhrMk= 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)(3002001)(10201501046)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(6072148); SRVR:BY1PR0701MB1721; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 4:r/5wSvgBnMJLCIyZfv4uLUEBZVcYecJ4V+cJDGtBFt316QFzOHu/Y22LMc/3DJ2ZzWg6NgZ1T5KJI7zNESzC3Uo50Zn/vZPyO/9QYieMmYRKY8ODbBfYBzWZuH/ktLhEnb8i4bSE1cUb6BXFH4G9tsXjkbXV5l5Ku7TpfiKWa7/O4Ang+pBbVzel0TyeVIsLot5z+6w5pruS5XQwqkmz65i149hHzxDL/sodBCQbjTG8Y2gw3jxdip4JNcQK1dZ2ONfuAC0/Tz/PjXuX0M+cp7uKY3P2u/dzFTpZ8FhV5n2mZuiFt9iCZXuPKO9hmaD8pl2Phsf/9t943ZHQILcX0XOkU7pXRugLJ9pve0I9k49eH6CJb9CxI2wJQCAjxg5f7DLEj8acIAz1XFgFh+GCvUSbg0B2VrEgN9O6ocmYGYe24E6Qmj8i0XResBkyEf3KFT7y8pkUGI03BQqvM/f6KxDd5Mtan7nDqTSYjQiiB3Tiy5XWYJvptdMQvvsX3zX3nb3Bkzl+m63RTEhNjWLmFui5YqOof8AIyba9nRXTvDvcBymF8TnG9NGuEsySkNzAgxrjTtjP2t/dvcuwBMcp9w== 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; B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yAjXrs3BdEA3AJdvuDl3iZP9rLzuyrxbAKdtGkgEyYX+9CgQznoJ3O51OxaH7MNB7J9unHUuju2eHyxnlVJWbo3GpgR9YGCb9BPoJWPV5ba3lsl+Pl62QMB37I=; 24:ba/kPbKI1rIn/SH4fq956hmNSf9Ib/j9Es2yeNQXoa65ZsekehdlybzG8a1We7IjnLVurlAfs3NZXcZ/qtQMBESGbFdSiDvn50uyCbu5oWE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 7:mliu5hSnR6+DXSXxHSBkAWTgRG00osGR1uA7P+KxmlvGgbN9WOTsrLpYEFkiWak36uVngop2H0KW7wXt9QFUI/uV2oVgrgqq8dp6zCyPOSyRAsKpRwwAyNgP7kXMvZXFKk7cq2KLiDXxdaFyvQonJgKP4LCOpFFlszEkWPfshUms/sj+dAr5wh0Dl/frBdKV6f/PkFqc6H/ZtfE2fbm47+6SjDK5NByvSgjfevnyPzc5Jb/OzMa9lX5S3k2LNc5At9Dh55BZyG/heQFyb2AcV1zfukFaEe3c3JEEBaY0ciXW0L6AdPw1LB5HEFWabSwv3LQ3MhLd5+kZU2TAuwJ0aiArFxWrUE5atwI5L6dn1GT8Puza6bmwfocoslpofmK7A3XHE+eBhnSdGIq/d9cOezRAQ4jIdVvrazEuGmAZMlX6ZE1k0R5SwBhA2zmBDRBQjwc95NPLni7wmmHvRItHoQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 01:22:29.5513 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1721 Subject: [dpdk-dev] [PATCH v5 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: Wed, 18 Jan 2017 01:22:34 -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