From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0055.outbound.protection.outlook.com [104.47.42.55]) by dpdk.org (Postfix) with ESMTP id 6514F2C01 for ; Tue, 17 Jan 2017 08:15:04 +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=GTLPPACmcyBcIJ4whMblkknjlwetJh4sVlls80LAG83nedU4GBEvDtDwAsX02D0FNXXO94EKlcs+92DbqmxCnBYkE+6qBZPi2MK5DZ5clEJiFDbHr2nytRIlakcLMVzKwJEBxzqJnGGgbO5VK18D78ZtOJHiLyB1SBPIVzCxnvY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Tue, 17 Jan 2017 07:14:57 +0000 From: Jerin Jacob To: CC: , , , , , , Jerin Jacob Date: Tue, 17 Jan 2017 12:43:40 +0530 Message-ID: <1484637244-7548-6-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1484637244-7548-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1484212646-10338-1-git-send-email-jerin.jacob@caviumnetworks.com> <1484637244-7548-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: PN1PR01CA0030.INDPRD01.PROD.OUTLOOK.COM (10.164.137.37) To BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) X-MS-Office365-Filtering-Correlation-Id: a1231fc3-eb6b-4f9b-0dca-08d43ea88cb9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 3:TeZC/UvikBRx1b/LB0rPVQBhVmjvxlsJDxL/Nnt654qj3eZN5CYqByvCbUnsgaWF7X3ulwVsQojt9gSj8va/z8ZcXphx93QqkupKifaY9bkxUSl9ZRv8AIs5y+cW2ra1nzz09GJYJvkY7+2RuO4Bd5ONxea8ITZVFhpfsksHXSfbJeewQBasSMrGr5dFbVx+iPM+/+wEGVhPDCO/OORi7PwKBYcniaDJslLJFhO97IeXJGOcAAQrkPAvBMiYy1YQe0RuLKBxuOWzEQKp2+yH5Q==; 25:0jXdQAikWcR13Jggc7WUx0WhO1VdOEQ8FvFyA4+oDo++2kGvFk5SITqzYtSWYEqCtnY6Qw0HihEDgn5gUNFIwAa+mIcmcdYnsbD8PPcmiWfpsgPCMHg5K/BjCZ0XtQWhMJkQbtAyP2nINStA2vqiJArIJG0M8MCZMjlGYFTKwRqogwASxBRrTt+yYGBy5UN+pC1clg2dqmnuq10hA/Gs+x35vjYnQjwrCoSXGVuQch6bod9gzUTHbJim05LpdEjPl9TtqsRciMtIiqRQysfn9sNaNNHdYl6yPSklC2+5sWyNjLn6JxdDnH9gZMuthYGWLMAlbTkKDvFg9bDJpeereObpEaHXigNqlIFQW81mWtpjoU2kjl2y6Idh2ULDB0rI7E0s6QCYcuzCU8caX67LsT7rebyWKq2vO3HIE3btay22Xlbl34SBqSU/8sqvncGtHSZeKlbYEpZN9h3X9TrpTg== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 31:9vJn2LDGs4N/FJVpslhDbrF19T5h+f13jzVfYpB1JV2Jovr4GhwkjMV8wDpO/TyogPDN2dw+lpuAfeFrtzl4j3VjgkNxoAToEOrg5P9EVVGSS0JRWCK/7SETKv0CU4oG6xDFG3iwQcmTcPO1sEWsY+F3noAVh50+9NbHbj78hDV1wacn8u4nQ6KBrTkq3CslzfRxT2vWVfIwbnFmvjKFVSBi1rILuJ3+zJcw3RAETTREunJV3cpU8GiqiulxcMAc; 20:I7yV9A5IYT9aF68vMFEcNe8BEesKU2Q6QMZ8pDG/aMcNy0ljudIRdJnB5g6bV3DMABWk/9XNwdCX0RvBk7mM5CRBJNUvV95zDaSHnUDJQTOrow4zZTUonL4PlWQafCQgC4aGeuJWefyFkisJ71tH0I9o1w/hJo5c4e6QhpzaShia9qSwifcNaugbAkCCwR3NqcdnqkyNeuh7yEME4purvbhkhnqwTFJ1AIDtCV/yobko3QRzMGuLe6TAFDwbUtJpzWTu+V2/7igHcxLb82V0DRReidqaKrK7rGBw18u1lrU9Nj0H9uN1bX+HUVKEHU4w+DOVpgz4vqjq8mZh4lIdU448vuzuhfVmhdL6HqkWWcRqx6vn/4KKW3XJxqpPRChAixoM+U1/Yk+qaKRWORXB6CVPFHPLsfSDrRA2qztchEJnOuKgu47MgPdc+VZgPhLk4WHT8kmMQxUK0tdgUHSfKF4eESRQszqCl0sS9OncerfzR2y+f+yMOUEOSwrexI3R4El4/knKgzQtAUmv2u1gFJ3Jcs334lipB+XaaAMvqEBYA2yNsPruFYCg/LtyfbFDcBsjNu6IkjAyHhXevuHoFXSK/70PCi9GbRMisHujY20= 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)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BY1PR0701MB1724; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 4:BY4LSSscJZqrOkStIgaKo+C7aSQQkXeOaYY0Vbo4zs1WCZ0OXc2XJoPvco69IEQCyFiTnCevDU/POJ3oRICdgMK+ewQnaH+8TKrmmeOlbdoRQOBQfgc4/LH1WOVcPvAOU4V+G33HZ2zeD0ruqhfnuE4dOezZXlKzChHopDLQ1nu5dlzUL0Uy6seNOwzxxPTQ2pMbX4KzTCWoLnmeqhWB5aNU4GZHDXnZylNc9LFKloFb8Yk6TfQEggPrFJLu8iAbXH7jgcg2PQ2/wQwbZp9nXhie1XsF75zVNpybXjM2wukb/eLEzgdq6wjx/hz4so+zsEaPd1DQFgLXWuFRmyL+yamhKbICL7sVxy/sGaj7bXErneDGxhWlxeqgVwGGRj+O1H3mzCATlxeZxzNu/FmbfMhegXAHlxIvC1j1M0iSw+9iAwHljTFYHFumyWBsy4v4+FEHbOnmZB4vPMsOH60UFNV2jT+rrZp5a/1rUqCP9wjBVuIP9XtCaBqNk8tKTBdjRQ2Ef1QjCZ7uQ/xSXw9KdLyJlCyEl71jRQ6e2Xp4Vs4MJ2BUdJXZW1o9IeTrcT8JJG0n2GNIf4llTvZeZ/lgwQ== X-Forefront-PRVS: 01901B3451 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(199003)(189002)(2906002)(4326007)(76506005)(107886002)(53416004)(189998001)(92566002)(106356001)(38730400001)(47776003)(25786008)(6486002)(54906002)(66066001)(6506006)(305945005)(7736002)(6512007)(5009440100003)(81156014)(3846002)(50226002)(5003940100001)(68736007)(4001430100002)(6116002)(76176999)(50986999)(2351001)(97736004)(81166006)(5660300001)(8676002)(105586002)(69596002)(42186005)(48376002)(6666003)(36756003)(33646002)(101416001)(2950100002)(6916009)(110136003)(50466002)(42882006)(30001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1724; H:localhost.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; BY1PR0701MB1724; 23:au8BgYCJXN17B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di79dPqqmzL9NrT7q0OpfdQ+bM9QQbf2AvsQi3rD+aos4uiZ6savUzi8rNbRw==; 24:YnVjEKemQPli660xAQ1n0MquJA8ufyG5lhKyeJH5+uKRIDLrl88F+Z2INEPdFt4Mzj3EdgVlzuNxrZ+o8ywRtaVkTZ9OlZpmT/laU/oxp9s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 7:z1Br1kCsLRm2YaK/E6/y/99mFz3aDXYE/zFq5Zy0zRzazaKcZTil98z2vUB/+Zdh+Rf2kK42Q0iwikalmC6FOBPOjon0cwp0rpbZFE89/qEujgFwD+nIiHAw6ceB/AEdrgePursl4g+iJh4plPVGHNuq9gc5RVknEUigLX4u9z73zuZSqEgLlhVXsMNg/cLxIY9h9NjrdLQyHpQxUAwRZxBbyVG/ps9VcfIcyjnKeKsQ91sEUCwe/I4L/OPu4SKe1CPkkJoiYHtnQmmcBPXbvYDkbTFuJ4iUSvx9hg7QOKDjd5f098n7Y+HMv4rBc7vNSP9w84J3d4JSvyUv2QTWbcQq0fBhZW6hgNuHKqysBxS9CG00MGXYYy2qsS9aRYexqYSV+fibxi5f46qwUWViK71PrWim+CzMU9i+O1bEm0v2e9drsj2sPkb0UhxMZEWBlFAhS8YaPNXuqteM18vL2w== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2017 07:14:57.3454 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1724 Subject: [dpdk-dev] [PATCH v4 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, 17 Jan 2017 07:15:04 -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