From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0080.outbound.protection.outlook.com [104.47.33.80]) by dpdk.org (Postfix) with ESMTP id F0175F93B; Thu, 12 Jan 2017 10:18:42 +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=K9CmXC3xZZksgvqsJ07RlCPnxnFZXs1I58Log1bRu0I=; b=SeGU1bErRvETvgr8RCcVs4JVH09ijieAty+r/sM4sYnRZ90d6B9dTnPql7eQIdEus6gBiJB5M6sd0DTHEAFOW/n8qsmI0WxUHZDqa1qD4m6uFe3+HJSHDbKOrdNw2IWa+ynuG5tBNYusGrymCwZYf7q6Covg9xazNCmgFp8LbGk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Thu, 12 Jan 2017 09:18:36 +0000 From: Jerin Jacob To: CC: , , , , , , Jerin Jacob , Date: Thu, 12 Jan 2017 14:47:04 +0530 Message-ID: <1484212646-10338-8-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1484212646-10338-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1482832175-27199-1-git-send-email-jerin.jacob@caviumnetworks.com> <1484212646-10338-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: BY2PR06CA0007.namprd06.prod.outlook.com (10.166.106.145) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-Office365-Filtering-Correlation-Id: af747d23-e81b-4897-43a1-08d43acc000f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:o0L5Wd5hiMznKoSJU/k7HcAHMxdx6W6JVhYNOS7qwNUYlK5Mc1GMU20Io04IDPMD0g6JwM0k4QYpznoZQaI2fgbu5LyhB7QxXW42PQIwshETANmo2P2Pm95aufup4zdFkVG9Nj0nQGCfp7PSlg2NHZt5LeVduXdvwuU4ncFccr/GPPdAiun6PsMaFyI3bmAZ9+ewVHO68SasQj4Of8nvpQPPP0HNG0hym4T9KGFqAlV2DsBjzLB6Kzy+R2gSQDaGKw+ZmFSdTAD2IG4ezH9tkw==; 25:BMmuUeiJ/nJctLZ+X3t/Okhl7Hbil4PG8avOFLK3qrewIIua4o8R+MgELr9bkoSR2IWLp33OtzrGbe4s8QpgIRXLAiN6FBekH38m5kd0PcUnzkcfDs5nHA7ITCAnRi7v8Uhrictwpwq3r3LtQaD3p0mAZ949mg6Hu3o0HU/sj9kZhsd+ii6Tixie+5T1K54/g246IaNG7MDLWz6xSSE0GZII8IzcdPJQTO189dSOrwkn1lcynWYMjMh7vmE1e2UIKqbVYd3UfXty34rCkXJ/n6EOtxZENow919jbucaiqyofq3fMoTQ3ra/jdYvmvtG+Dc2RwsmQtp0p1PXaavhJQcq/vBROh/HPW/Pmn7tvKmwHsQtdT093Rc8e1A7MjA1otRGESa5Mnocc1MceiVpKcKq2vAQFUU3V9+t0KGoSq6DqUV6XYmiP0yQaez+NMwD4cIYCOXvdWCiyDgRhIWp0YQ== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:hxTUS6xEoZKCUL/HADiZJvYiaMYXyU06+kZ2KEJsQ9GCfx8RxCRrQ0nO3Gn0m3eHF6ibBoS0ET61QYVjqNYfhLb4STgaCWpGsFjiSePTI7sys2Bj99a7dTR4mm8Ux8zpvP+egv38M29abQjLlJ/avwg00X1VapusrWmkHhXhjEfn54x8Jirun6GV1i1yoYvfuSFfO3pDIY2n6S0K5Sdc1p2nhqbugmLajPMFNQ7oc5avkRQ50vQutM1KYXljD5/B; 20:L9jvwtpEB8EFKjT/Gj1Dk5Gkm0aQtQKVY6EY7fG6PqqX5qUuTmEcGzfWCXITi6IaQNuEFduErO7fooj0ife5Ekl0pX0H9Pdp15ozV9K0ygdCgqxIOOkgelkzr/44Vet+kOKUQr6nYjgkwsKAiiu2mbUYk8Gtj6aM9E01nKA/nNGHetAn1XbtC/8x0RPt0u2kkSBGxtgtuG8aaqCwaWhr9Lp7uwRGlb2bs1vsUgwzpPd0/glIeJ4Yrk8lr1Z1i/k9CNgl6AB0+zrkwLLUXQlp7Vay1sl/5JwSlMDVY2WbtY6voveygp9GidBFxWHDlGa28gKDdS1rxoBZtoYGJHcAIrXhmvjMrvuII+Oe7Gmuz0TFs/yvEjzJAQzk1pAK0nmzJcqs4vf9azo3q7G7eoK5SlTkUPodlUNCORUoU+RmJyQdzZgKaxGw93MhMZRTpyp94/Nn/TdR651r4+4LqsMBunVUwnxW9A6I2+bTGeW31K4l1Iza42VIuJPC6FcW3Sv7+Qzb2/HMqZqXitOzmMIqA3+5u7ZdY2rzNqwccr5fIJMWpJXiHYPVOWyOWwsnpwY+wXGwg1pbNuqDviUgEYzzsR/TEw96Yi8uZnAcIF0auho= 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)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:c3Cu7DYBzlc4vlMCoBJBiF/Os2R7xuNkztfsOe3718tVYOeWyo4xFLCOSYCRFytSeME08YNY8ds3VOLJYOMgNBO1mM4O+xXX0gGFaRYqWppEL4lyRenlNXrXn7eNX6FKC3Rb6oZCn2mFyGv9+w9fgQQFO1+R1KK5qCpZH/r58zhs4cZig1zdf0oGfGPHam+Esecy9u2Q93INO9r8DQrxUXc5yl9ai49MJTO4rpxFdCgypqY6nrc/1sz1UakEdH0xA1Amm7aOl2us+BT3x6P+uKkp0eLXVDpGFLtloFElLzl/gdgHq7sdcHBH7qIxUKBvMtVpuNDu2wfPLZVlkg1PPQ8VPo6ncy9srA3mQF7wXBKYXRvr+UQ3esEXRVhnRsT8n0g2UcDOuU0xpQ1ZlW5nGFdQ53h1XdgwPFipiw1PXpf4y5y8hF7OHK22BIhs8v21n7rif3I+9kj+VKr/y16hKIwrhVF2xleT+/jI5ZtiJWfHhFWMwwYGs8Qud0h6sPNW8VlEpWwu0RVlxE/j6HtrJlPW+fo2x1xehtGt040FyoSSeWepnB25wDTgp5TSzvQ3+trlnnIFjt+uy45NuovDjA== X-Forefront-PRVS: 018577E36E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(189002)(199003)(2950100002)(53416004)(76506005)(92566002)(105586002)(69596002)(2351001)(42186005)(68736007)(106356001)(42882006)(6916009)(305945005)(2906002)(7736002)(50466002)(48376002)(36756003)(5660300001)(110136003)(4326007)(97736004)(189998001)(50226002)(6666003)(6506006)(38730400001)(101416001)(54906002)(33646002)(5009440100003)(6486002)(66066001)(5003940100001)(6116002)(3846002)(47776003)(25786008)(81166006)(6512007)(81156014)(76176999)(50986999)(8676002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.caveonetworks.com; 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; BLUPR0701MB1714; 23:Sb4joTWFsFNjPfrndWxScRchiY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Q==; 24:NkM+qeNEOUdUGS1vDsCU83225KTQz06wZDPdtAtBHOyPj2cfnknhvZnv7ga6mEnwRyTgWAMxupp4Bv/XRRX8HxHY+A5DvHJNr2MOjWLzC1Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:dTcbu4Z19XleuxUI6iWWqM7qSQojLn1H5WvTGT2sD5kBVHoOWFFE2rkMlJTqGzEFlQ2p2eZHRsAn8Z7oH1a/ddDwEActNb3ljIZtWFiVSy2yaifhxfQ3hXwjN+qAKJlj5lLh70kP8wYP4GCaPIzJzSswAZY1ghVsLSaAnl9UCAKpkMihmubILxUO8DRAlMECmspFv9a1Wa0Met5xl527U6xRhmFraiRryQU2mduz6ioYSoiv0gUTopLQ4+YSLmHUk1SuZE5vW+C51o1618CtbZbV0vfSn2Jln1dszppRIcOl0YbVp3JwApdOYof6FmO2CjrSvo57D07qG5WWhP8c7UE/OE7CpeZ+AWtIWHQZ+Kezlt6LnpYXbTg+uESYKPCOtAIXO3Pg2WUzNxpgNS51PxzuV3wFJOms61Oxx12wkQYCeBboWxaV6QBP8uzWpBP/rBWfxdwZeAL3ZITmMZa4tQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2017 09:18:36.8677 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 07/29] eal/arm64: fix memory barrier definition for arm64 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: Thu, 12 Jan 2017 09:18:43 -0000 dsb instruction based barrier is used for non smp version of memory barrier. Fixes: d708f01b7102 ("eal/arm: add atomic operations for ARMv8") CC: Jianbo Liu CC: stable@dpdk.org Signed-off-by: Jerin Jacob Acked-by: Jianbo Liu --- lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 d854aac..bc7de64 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 @@ -43,7 +43,8 @@ extern "C" { #include "generic/rte_atomic.h" -#define dmb(opt) do { asm volatile("dmb " #opt : : : "memory"); } while (0) +#define dsb(opt) { asm volatile("dsb " #opt : : : "memory"); } +#define dmb(opt) { asm volatile("dmb " #opt : : : "memory"); } /** * General memory barrier. @@ -54,7 +55,7 @@ extern "C" { */ static inline void rte_mb(void) { - dmb(ish); + dsb(sy); } /** @@ -66,7 +67,7 @@ static inline void rte_mb(void) */ static inline void rte_wmb(void) { - dmb(ishst); + dsb(st); } /** @@ -78,7 +79,7 @@ static inline void rte_wmb(void) */ static inline void rte_rmb(void) { - dmb(ishld); + dsb(ld); } #define rte_smp_mb() rte_mb() -- 2.5.5