From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0066.outbound.protection.outlook.com [104.47.34.66]) by dpdk.org (Postfix) with ESMTP id B6BD637B0; Wed, 18 Jan 2017 02:22:41 +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=jZOl1Uz+Bd0x+lnNuYnYlIpsKLeSxVff+cB3K4G7nFKiH3JZx6P/p9RX/Cg7WH4ULVV0sGvE3NMymVwie1nXnvMGgrKkzU3W0INC6XK6Xjo46gstRcFqzxmt5z2e+KM5RqSWRN5YRSL2mxrYu73s9aVk6GnZohovoih4IKQDR+4= 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:36 +0000 From: Jerin Jacob To: CC: , , , , , , Jerin Jacob , Date: Wed, 18 Jan 2017 06:51:20 +0530 Message-ID: <1484702502-25451-8-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: aa60ea92-41c0-45a2-5fec-08d43f407e45 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 3:onqERmGMmq5xlfq+6LiDMqEAlCtNnWF5pHmIkRFA/Rwy6IzojcRnnIOj71UePzhM7FD7/+shPNYQOIDoL3XKUb/Fjw9ZylzzZgRB2r3ELr1R8veT3e9ynDo4dYVxhzZXWbAkIJAex2iO8LRTnFU78dViWAJSy5yHaFIWJu3fWfT84puArIF2ZDKE2FmhGlsbcQVoYfbQFzSBHvSoeaUL7XRKz/1cDXO8Eav/8njzB8a2QVAWkYez/o4M1Iqel05nSnnF7cfmXEiNhJeku48msg== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 25:vt0WDEGtbaHdsHzlIvgubBh6cxn7p/WLhr84nAiDx1btCo8OEV6NIqHaX/HFxn2gLwL0d1JuplUgIoZfpZ8cf89YUSkIgMQfuE/gzglwJTyHcfSP7+nzpw+yb9SHUOQOEG7RgrHf+DgH0PiNyhfOCP534GY6bZZT2EaqimGlwRy78T9/uUQ/CmQtW56ioz0D9FuRVXmpqtcmrc0KMOP4hRrGoZkWinQa+IVhHgEZ8U7ptsiIvqdIcQdCfAtCAqUTJsN+wtkIK9jl8oKfLlZTj4112C8fGinYDMc/Sr1+IrQ3QQADKsrunXpILZghLdftuJbW0IbyguqgYUbExCIT8ZYeZfjFcZxKWhiPwoBBw2HSK83nkMZOB/oHcmKCZuPv315VDF2BSjrzfo8dlsC0NLT2tBh/rZMB5z9GVWl6sgANM526AA9ZGrY5louSbNuChih2eJzHSX3mkwF6wisk534EOSCs0ofEfsPndWTFI5Q0gOiEgZAb5b/XTZk22i9FHBHAhj9dZMj+WKgJxuRI23YRBizQyS8ryjoP/RpvVSkT4jYaEyc9rGpLAWAcvZtqrpos4cgtsoejpw+LvJb898QckYV054Or3jatGxak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KG2z/5L6x3Ju/K36V3XJJmlroxbARSoHOGi8bPtS5gpWOOLLLl9Tg7E= 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:AaTsggPLd8DxoE/0btaSqzprtSkkP0cJQwg+J1gPZRXOxTNMj6B2A60NCaSoxRT7b0ti0XedKiXyiaeIrk4dgCme3MvQ0rKL6cxHsnGQSNfAmIsxA+Dm558y9MxXQkooCzPxHLdC8D36XEYLt6LhKMSuEQNhPVmqRRr550T/vWjgT8F+e/4606AgW/9vf5UMDKi5IZ5eaXqrH5dnibiBoI0nYVFqOvrLTrAbV4XXoHVcNxwOWDzGoVPcwzzppAdQ0AMUZsub+UU8Oqz/ef44xjwhiMSaf0c/VZ+y6lFse8ngpDGDATlMYqmCq3QYpdxtNjIYg/6Jgtp3oeTo/DflaINCP0fqQyrsRa8hqm3XMyntC0TS9w3q8B4UzHCcRAqQdMTtwqB9xzhADCyDzHPBefzLuBYwsjQZmmc+XohojHJtlIBNlqAsuLewvc+8aRjC4L7eIFLWJbz7lsTr7ODVx+Znc7Xz6vl7/88AUdWODQThJ89lQPtgguOKUkFadWOeWcoY+z1NsmGWJJGbITllk0DIwJS3lDOEIB35eLSrMzlfPRLjGpL8pnrj44KamtOxl3DUnr+cXZRJVNzMKMdvyQ== X-Forefront-PRVS: 01917B1794 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(199003)(189002)(4326007)(6506006)(50986999)(97736004)(47776003)(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)(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; BY1PR0701MB1721; 23:7vPTQ7snMMd89w77w4zh+9/RPeYGKMjS+/Q4c0U?= =?us-ascii?Q?FFQ1SOhSOQKvnTqzJDFuEZZwcNWRdJDWM3MgNbIplNbLyjmLfRATv+1XreJe?= =?us-ascii?Q?GhPYeNE454tk4JBOTvahNcvkax48Ng4RjeU8Obefz3azLoqCUhqKNyEbPce8?= =?us-ascii?Q?SWY0ipQQKG5Z+1oUA5vgvIjJ61RGOc0PgKek33IiOYd0fp+T/vjdtrBHe8zg?= =?us-ascii?Q?akY1IYY4seO6PpKG9KhmJa42Eayd0/qvS+wyJ4ylIFcJ82ceI8Nc8Q579Vn4?= =?us-ascii?Q?p6JDn3pbuawncxizMSUEjivS0g0FrCuyjj7vUkHaAAwOBO2xKcV2+zSOjUZ0?= =?us-ascii?Q?CK6/rvOsv0KLMuhzprBHxejD+JM5VQFISM5OI9Sivtmot8ygrgVnPogEZrT/?= =?us-ascii?Q?KBOkSdFI6q2vhagHpgx5Y6NpZC/OWpAj+OT9p4ltsZJlAdy+LCL4SV7gndWl?= =?us-ascii?Q?AyafAFTJOsfXRUKC4bZG94PlMHQ+W0blUFA/qMHMGrkC+lbBhuWbDw/hKlca?= =?us-ascii?Q?t1pkqYgIJdX755lR81mJGWbdoLbuy9fjDyrGYF362AKqZY27e7XDXA+56Va5?= =?us-ascii?Q?HfHIqLqMgT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networks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 01:22:36.5020 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1721 Subject: [dpdk-dev] [PATCH v5 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: Wed, 18 Jan 2017 01:22:42 -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