From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0042.outbound.protection.outlook.com [104.47.33.42]) by dpdk.org (Postfix) with ESMTP id D193469C5; Tue, 27 Dec 2016 10:51:07 +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=GcpPRFIHVJbsSzqiNB34mk0inGGLBVgURfxj+bBoN8Y=; b=kSXCfSIsJVqa0PmMtKNkKhcCnranxooX+qDxdkfDAa6S3fpvPSKi73JCGm9C7IdN5bf4gw8OJ/738SVBrAVXH6dmgcNPy1wBPIwRnPU5tcih/xJJH2CBhXLo7vQs4W2ghabEvtpXvUBwvY/Jk7/NQ3i4MpTaAqlDZ2caRj1n3Ms= 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:51:03 +0000 From: Jerin Jacob To: CC: , , , , , , Jerin Jacob , Date: Tue, 27 Dec 2016 15:19:13 +0530 Message-ID: <1482832175-27199-8-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: af9cd91d-7691-4ace-20ef-08d42e3de103 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 3:fvoXlMlDmiLWnQhmBZ/6cqcaAxig6Dk5BovHSXdEf8OFlfNPndElom5mG3/1tAoZuBCbASTJI72Ae5WAF7mCDqb30uIM7GU4Wq1AKCqPOlNw7OMBB15aGm1F3YokOlCvK1MxmkiKNvGHOCw24ZSfrYMjEAI9CMO5p1J4N8SZbb5HzwwL+m6H8KFQyKHF+AjK7CRKzA2ZY+1uH5ka44A0WvaONhGokmYkZ11nPMcf+3tHMroQ36jlY+V5yADdhsX11byqgRiUaw19goWgnmsTwQ== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 25:uNqrnaXz6hPudcwu8rJHk3/iDPisPRYAiMLvQFkEFQ/PKMbVvPEnbl/o89SgN5sbRjxYnR95bwgp0Hc7yWEYozV1GJhu+2cVrlLiyMvrQi00fL8GiZQ25EmEqdaWn3bZ4VnIoUcrqY+g/Dyy9/PzQ1JbBBAtJVR11i+CmoqLgFR15mD0BgzjIXHzx86PIjw41MDqcL8SzKPQVO/rmcyeQbPMXm5Z+cwB73dGarVsLPhkVIpwLyeK36po9XJ0r3uyKROYLCeQDpFVRlHPLiIBWg4kxzQR9PYVFsflQzXc9pntvG4MJcxVhIzVNUpugAkmg3Wp4EKMHkblUybCwCxF/aMzpa+8s1+5nVYMLlcSv/tnQEm2x2J31xNqP1WXKB1qWzr+0eI/QfyVyr//PblbOtZ4WZUGnMg1D1a4YF4YCSX/xtidYnT5b8AT3jK82160JVpgVvwYRvFI2qTK6XXlTlQ5/hA5JEBIKVo816ZKJJkAHOw4sGCNOOFJh3wPEwHYIuFq/DIaAQceq++4lGQD+mUgbHqAhwBii51txEJEcjwEiQUD58baigPSwggNSLxZ8UmtSdtaz5zzdxxVOL5G33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HVGBRvOQ4p0oGfG09R+3qK7RuO7sb+wzRh8AB/fDnnrQPd1DM6CV9IsCmhYBdwfiAYV72sqMhg9gw= 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:46dtNxFEbKxHQuOm4xEMU4PJFzVsAXPlw/hk3yYYi/LJmsGC69cI8lG1b2b7OgWZJPx/y/y2NQ+yh0L5xznWTgQ4lsmISByBGT1626gEhI2nAVxKUT9MlNGpSiPo0Y6s0nO5bNoRPzU75K6IXytHCs9CdNi+rkkSh5QKlN2oa0tjZe0QY4D0ebb79GfXDhT+CbIBrimVtt73O/XqRV1KIkt8aZWZ34/vffZCLfvHM2B5i5AXo+Ii79NX1w8BGze8DAsadiFj8AruoCkCMKUs2DBPetAaz6SxBevOph4irIRSkpG0m2+GOlg3Ka3J817VHnu1TD9rMpcRb5Fd3WOwA5u+GsneLwgDDrGXkmEkvdtAxmKTvaAh17T96onNscMygp1t6t4aJqyz5sMVmTfGXuKkmj3k/HbaTzE6Fw4+Y5KcIacYUBCgS9eJ+DT5+BDdCSPhmBSvv4AzNgVx3QUNDmNUkFP9nxpP2VlRX3mUFlXpgKL08ub1WMPp79UPBF8Fy56foi+VTsHPEbn70crE+RWNawk8x9jA+1oUFmosWf+Oi5BS8wJb4lonCpDzyptNFq5dvrimnIRxHFbY0Ikid84DPc8jUrApOCSOegLi/So= X-Forefront-PRVS: 0169092318 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(199003)(189002)(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)(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:LCMjYunbZlHAN3F7KwVQH3ivgGh4+3Osh28x2c8?= =?us-ascii?Q?uxd/lNkC5cK3wxnlMG8+tSJvtSHN2FLun1Ni2FihGaQthB6+Br1xiyA7dOAO?= =?us-ascii?Q?rWzOXOBs35/V3gYB4VPl1foC/CzCphtOt2BvrDaM49IfCrKSGP+qX+zNVHo0?= =?us-ascii?Q?yxjOTq1Zd/Wm9j18LYySDE+DyUzSqL8Qch3Pgdnv9jGHTeXrhZfD7urm4ZT/?= =?us-ascii?Q?s7AO/mzEqoDBw/ZVMqjxmhYkwR3ctusiD/nyoHnwv5CSs1V42BIuNA9ckzPi?= =?us-ascii?Q?AXOtGE77XGFiOEzXoqtvTCORYkNPUCLCBaSIV3436bfAmi2gJdd62WMeKgm/?= =?us-ascii?Q?Z96dJC3D/uBaXdFTBS1VET6eWFGHmoZiCfUqFPRGnjCqju+VCB2J6vElyjTc?= =?us-ascii?Q?t73CMRNUph5aMkfl0AF/woD/sKJDLUxeZCbLwIHSlHaZaZ7XzNOiupggKZeM?= =?us-ascii?Q?g10BjEZ9YUdFPBhLjZ6HgH7VqwKZPrPyzqbgeQ1T/LdTVo0BJ7+B6zeOl0mY?= =?us-ascii?Q?dLBw6nLG3M1QixZ1/M3e78uoCcXfPBdus6Z3iCetKWWhDfHA7wHEb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Y2xsQ0iA0qy6l5cc+MvLnpKAXiuux0hHmi3l6o+0eMsi+eWPFbN4KVbG6IJbmq0ahgqSfqv3ow+aal5Cn4sEquAy0=; 5:FIiOX+Hkyai7i8+ctiMuYQb4kfj5nVkdZ98QFh89aho0zOlAFFzv8fwtotah0LP71nOA7R3DRmolb2a5QBHmqsdGZNl0dn1RIRQJPUetg3ihUdhnpLfxb04VlvDNOLi/di1Foi9t9g2kjK+FeIXqWA==; 24:mSOD9EvKb1CMCamTraStICul07P4hOitBG/Yc6yHtJuvCoL4bPL5psZQx2Lzxi+tDb4Z1ZnwJHzDUks7wiN3gN6LO/wOA2qBp4oKr/xbXYg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 7:ww35tat4dgui10qZZFu+uQc40x1RLhTenO+ftD5ia2S6vAVqbWEkoz3UbU7R51Fw6tuUBZeGsIAz0jwcPXeNaqtXNVBm6UoZ+B0ztqTU+XTUEWgMeqDsvOENw3HTrFpfhWFt+zZsx0A3sWtS70fySmK+eIizvs6CPbJ0G2OQ8Ad8Rp4wsXUegf/YuYIt/ZIcBVoJ01wUYepyGJe88kCWNplBppFoYYGrUpH/k2lIfcXVbyisRNWjLE3rBdxexFfUrBMa1phBaLuLWo0etJJH8tvtE4f5vw/4PAdtDHHk95xTp4YGimD+fm8RRGqvOsOV4kJ/AJiUVV/3C8ls1kwoVn7uHEb9SixPd3Gn4f4+diz3VAdbiy6taqP4wTHE7ds6R1cL0pw6wnOu/GeQIP44zNDwVPseeOuSbngECv6lapffJ0sOSuuSilyzpGjJqVTfGw915ivNMh6crWIb08I2tg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2016 09:51:03.9306 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1713 Subject: [dpdk-dev] [PATCH v2 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: Tue, 27 Dec 2016 09:51:08 -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 --- 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