From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0069.outbound.protection.outlook.com [104.47.40.69]) by dpdk.org (Postfix) with ESMTP id BF7A620F; Tue, 17 Jan 2017 08:15:10 +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=UQ1O9GCbei2hre29t7H19vTQctOwojD8q9/QSAdEB2rLyxm53Mj5BZXmQStOOdomDOwnVhrTtgyYXxbYR4sEsnrzJAxDzQQV2nc6KcxjDQAiRWhewKoYSaIccxyP5TwQSNyFk1s+wxiCWYHtCljpVXOqWS10hPSOTGO96geHiKI= 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:15:04 +0000 From: Jerin Jacob To: CC: , , , , , , Jerin Jacob , Date: Tue, 17 Jan 2017 12:43:42 +0530 Message-ID: <1484637244-7548-8-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: 37876840-4870-4ffa-ebcd-08d43ea89147 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 3:a+WxOj08N94NS5HpotRYgtoOSaGYwNkoUK0fDOdVxbPp+zKfjtbnuPD13YCDY7BhsqyvubhB3zwoNseA6c2NdI6GuJCpOvD8CDz+37YEhCnkBmZ5uVBkv/FUXpvarZsWapjuCQ2aJakpXKmktFGPrBgPxXgn7EQ8Ux+2Q+9Q8svIGxb80M16/Hqi5RaNi41t60h9BEFTztNTnKs4J1zV71ZfEz0QGKwEHWa+WyaMRJ2XEPqgkgCDqUqW/GUxq6f87X/nba+uxZ6wTIBOce/oDw== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 25:ExGw3NRjbIqJx165QzRZW0mgmcFS2AJdVSdy15zNxY6UsgKGSrcpzq8N2pazSmrhH1LUbo2JI+HMsUh9YoFZGS/2c0ey1RkHlqbr09XPsYYC2o4xUZIEkBsVVZkCr49T0SJOPoFq0NiBjetR6dtdfhwrQqyUjnS/znJ0PHzlBXHFusT/DiJ50TxFhcopK98RWBLZD89RbHobICR7dBQSpa71yVVbjTe0J6HRJHwOkAcXTTZocEEr79WgeMnoyiartS3vhkQNrHNwkn8bfWTWizeOSfjXYC7n1P1N9rDZBAggrnDS1URZUycsDdzT5t/1WGUbbhJn3lZy6a4q9G07Os7hLqot7bp+/RKZA9V6cg5m9TQ++UNyO5KCtb5jm6NJKOU0Acm8s7zo1wOQrgb/Pm5OibEGdWt5IRsKpLoAYTDAsMqCg1BJ9AAoww3CwW+Z+dt99BTrumx+m2Txs6D6i+sd05vfwsxRLo9nYQ+RG6CjRAg2mJTn3bIgQY2B1ylgEenIjf98mOCxYaKr71YnivWL3es5YHzgpMZbm2w0gnth7xgUS/3XsWlwC6/+G2rf8+vU3pNYEUfhjdxeJ5miJ1YD7cUIzVUGR1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7bgXpDnvpte7g8FebzQvqB8r9LZiy2E3W8r+adMWjboX+oVmnBLKZSgYFiBaw6MX/Y= 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:+VFTQf5kgSCsDZQR3H8kqe6q6AoNK+QoOq+9h86GXxvwycyCVwMwFz9VSJsFJmnXNJ5E3vKr3obC8ZwAbQZ2U5uV0pxGO3RPWrCAILBk0ZScqZfIifslEjf1+JjuyCioSexwh8CzdHdWIv13jPuiObagCzfia/R7tD2NmqXJ/dd4yeFyut4IUGvuQMOLeJCRXHBGYdFmlxRcmIxhCPIPw0ensKrxwqX6k+DYvd+J9pRfcdbl25DJSjni9OTcxWFe/WBpvYVaQPN6LlSxMM568K8Asy9wnOF8s/0wHURLOJzYsz4LFOLoPVJWByuX1vJ+JvF/rMv2JOtUOQcFSPisGGIEqTxDtjjrzJA4p6hcCjsIViN1WmYVsQRtHbR5kPoFs05yJBHV/e93NJcQFNt1XyO4jVMJnHwrnTY4TvaYeWsF6xVyeISGYfDq/fYhYZg8786ccNyg/YTz1ORlew8AtAqawBfht/iGQPH8/eo6RCoJPgKW+ZCOqkF/uHXkLcgBVzn2uLvg+CGyPeB5Us0hNODI0FVqN6ewETGUNL5CibA+yR/r1BvyyqN32G4mk5A+GDFcJbB1WiuI5PRYUObjfw== X-Forefront-PRVS: 01901B3451 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(199003)(189002)(2906002)(4326007)(76506005)(53416004)(189998001)(92566002)(106356001)(38730400001)(47776003)(25786008)(6486002)(54906002)(66066001)(6506006)(305945005)(7736002)(6512007)(5009440100003)(81156014)(3846002)(50226002)(5003940100001)(68736007)(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:mEnsetEwVpOh9nmmuwruKdMewCRqWBbJwFMxnBT?= =?us-ascii?Q?rjiEdnc0E+EfmEt0IqJaLa7hjTwDdIVlR68R7yarrbrCDfK1705a0fPXzH1S?= =?us-ascii?Q?vWA+8OIRr6Se41Hbmu4bdYbmvFzDJgh6KWk3Pr5AWHjn2BG01/1R4znZSTz4?= =?us-ascii?Q?5diDLL9xFmkGfufgkt9SyFkqh4JYGGZgOnOlOImLBpZswGPLTgk3bmh5bhbQ?= =?us-ascii?Q?1RNsAlqRaqJYLdGwMENpn3xFnk3td021r2+GFIP/8qCnwQYAXeGIBp6OKZqj?= =?us-ascii?Q?WSnD6WWm+KdNDcliyjRADHzgX+Ru/T4ay+oUDgwONsMrI0zLYFo7Q7NuFW7d?= =?us-ascii?Q?QhA4YAkLIIF9DkcFy9vGPBB2c6vgM+GYUlHQqpHzVx4m3dMlQDzc/6Hn7eZu?= =?us-ascii?Q?S5av9svUZGQWG2WheKPCQqFb7fdKFdA6sHPEqBP1XRP86SbaDN6/323W6wn0?= =?us-ascii?Q?jJg/kZMtqAhS2RUWIlEMzjfX8D/SO92czdamU3QI6ruL4jqbdJXJNc5D6qh1?= =?us-ascii?Q?kPr/ysbcAv0Scf/XAculGxyEO0bVwiu08zWHaLgjMdnAooVXTjyI0ikDDw8V?= =?us-ascii?Q?/vdQc4XVzzmTuVZjpY6l525whb6qzdwjRGabS+m3OoOan3n0yJ974wGkUiYV?= =?us-ascii?Q?Tnzh+5x11FSmr2lfohMkX0Jvr1EUM0GIdezSAMzPE4x/3dh8aHZ9TqiCIt37?= =?us-ascii?Q?NpIKJMeWCKHGuHSZmP++YNqnywHz8YonW6O/0KPJCzcDAmvOekOMXEfnsz+M?= =?us-ascii?Q?CeVOCQ9nXyXIw32njSE9QSQntlCpDmT8K6oKIARdGdOJUpuOofOc/p4ibH2H?= =?us-ascii?Q?8MTPrn0VHIbuGOpAz+S+LRioB9TsqNJ3HbxoHcQUZFT7uaJ8v5ObUrioOOjH?= =?us-ascii?Q?hwNATgiqeihY0xilWuliCPU2taJk8zLyNdaQmsB8dVJIlvv//emNsUzt9/UT?= =?us-ascii?Q?cTzuvLg1d8o5V8NHqxUQVnwFMRKfl8d3I0dbXvOkIcPf9+nBHCCQkbaXOjTf?= =?us-ascii?Q?QX7vVFv6qgcSuoyEZevDcyYzT/tVvtrk2NVzuGOw/tKX6knp7WNd+jTak4ak?= =?us-ascii?Q?J7J7f3L9Ji5bSAZM71hWh3iWeK5jHhrZ2IhcnLKOVrdcboPsUIwdo5oo31+h?= =?us-ascii?Q?17vkoZVglz55wK2OgOWjwfV5bvdvazfjRy12ZrULK4t9xHWRVdef2CCBKIv/?= =?us-ascii?Q?hycgnTuEjeLlERLlefybey/p/lyVqfla/C8y9GqOHeclHBO1uVkj5Ltq3Vbl?= =?us-ascii?Q?ud/BI04A59fiNN23F7MwsRR43pUEP2fUWyRJKSGgb?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 6:3q5w+sSBDS1k/F/poQt33kqelUQuog32A75mDSmzv61VW+YYLNrOx/5lZI7vybfxn1RilhZyvYGDDTbXj3ppGWti7YFTu+trpLRevA8YWact+U24AI22n3VEb/P2f1eFouk6yClqdpyt0hCMU6vhZGvo89UEBWVDxovyCNWCZwSR66Y/t/Aghg3Hna9HLuUvKrnOTbh0u2CVq2Y/zeGnMpUnRQRgyF/kF6LA9B1BVDn8pqYNoyEN1kQYkmcmPAYowH/QFWNnM8FXSgw6i+zgIXRI5B62G2c77+H142OthKNu/bE42BNmHqT8XiKz74IJBBDf6T+wrfP2CnTynDJPWYF+1cs5iEbGynsbJ0CTGUkrUQOwHV2q4mvTQGHO32UjlwT3fx6s1D09HVixVUu4nYs+s2wboPH7k71Ako+ygI0=; 5:fz5Bya42TpkGSOnYvI9sQrcSvRGuRQqHVrDcD5i2MWz1lpU65jpqOOeRGlNtjb2WDw2iQdFMQYwC1/bMbcwsejYZdm0sB2GIUo9hh1cGoq0bh5IgqwqjorWVXjdIjB9/djNtC0FYUUhCyI9sKOL3kQ==; 24:bVRJ76TCOhMZ4jTdunUFJMK4/yLO5h8CIT1U2GAXukmxH73O+bC2wnjybr8SSaVTl9MY2kLY/Qm1F9JRPQHLDVah+qZIiJiMJMFqXcZK9ns= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 7:MDBzvJ31s/TApsEy+ACHVwwzrGugr377eCPmlAuY5BINmw/uXf30oXmh00Ctl6lh9FIaULFOQ6gk8lAm9r4MNiLeOD1rOTWBddPKP+2zw4ujsyu70xjcE8J164xVYr0pB1LECisdc67+rC60fs0jAqCLqTOn71+TW6yWYccxTtQM8/vA+i+WwPPMrxvy0H+acdDhC68RXgF3KZ3E6Do/L+Fum8j520i+5aLsU49+jCdLWEeJSkT0/zO2BWWyJDgTQzbhm3s6C3RIIgO7dzc0JtgsBLt2LIt0m5QrAxt+BL0p3I1df30P9Sr2ChfXvmRVemmc1hHn4+YowayktmkXFtZme/CbMsCIqIyRkpktRFEr4RU4asZXfb9KHOorZKe6KO8e8R5TjV25kee6aG3kkNTBlcv5y6Zu6ZqIaSZ1a5mx9jhIJ+UXm1GOgb7spFOErd1DzooR+WdceFEoqGseCg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2017 07:15:04.6293 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1724 Subject: [dpdk-dev] [PATCH v4 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, 17 Jan 2017 07:15:11 -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