From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0065.outbound.protection.outlook.com [104.47.0.65]) by dpdk.org (Postfix) with ESMTP id 8DC7E1B2BA for ; Wed, 27 Dec 2017 05:28:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=H4mnMwanW9bPcPCQG+f/1EN4LjismBBgUMIITH2MpsQ=; b=XwC/0OkkAMPQmpdz0oTUFBBgpsicE/fJW1o6kShbLLSwf+PMcDO2ZMlilCBqr6vgDxOtA6/d/7wq7Wpa0qHr5UhQI+NLYCcxlCz+ppx08rPKs1rAlm+d3G42jIU4rq6iB9mBI5dGquNZmW6DpX294AqDFN8utSXU+qCad2pFvcU= Received: from mellanox.com (209.116.155.178) by DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Wed, 27 Dec 2017 04:28:38 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, jerin.jacob@caviumnetworks.com, jianbo.liu@arm.com Cc: dev@dpdk.org, Yongseok Koh , Thomas Speier Date: Tue, 26 Dec 2017 20:28:23 -0800 Message-Id: <20171227042824.33373-1-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: DM5PR12CA0056.namprd12.prod.outlook.com (2603:10b6:3:103::18) To DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7f2c6fa1-6920-4e17-7c9c-08d54ce24dfc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(48565401081)(2017052603307)(7153060); SRVR:DB6PR0501MB2040; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 3:jMaodrM4BMrjsTcWiN80/l10L8oDjaVAFwS2oBnsbyRO5jzxHhhNM1vY61S4PxhPxM3IKeVNDncOScAZo2XlyuYJO4a8MI7S8gdzhWeI9X+b8nSjPNVXShUZla58N4c3qsdGGon99fP89870zyoDPQ1poczts92xqM0oKQ6JEBeTL5qjvOR3GzDhH/Xsyx29G6FQMZfUGw9bCb4TAzlfS0d03QnTfLOtCeFB38QvH0QThl6IR1K01KpiPAI1X3Tc; 25:fA7qCLeLnT6krUsOeNqDZRJfIYYIJ2wdSnYltQeFfVCNchRT9weL7Cqu6byjt4Hvr4B6RJyx8A8rP+cQthz2BjNNfuQfd+6UuMhvjT/dWykPw08+fjj4BxCP6zJMkcHoADN7KwjHqgzwq5OsFxnmMsL4n6J4M69YdQ+ZERscx6OF7WgXRubSpfdjHkGetGLoTVem6yPxTueMriZwlod0wD3HAI0LJO/PKmsDYnX8bn0Hmmjrsa73RfHeOlKjMeWuWc4IqW9iAZkK3QQOTb805F8lZh+0WvDFZgoDsYEGtQc4OaADJV5GY87V3ktvQTHI7+cno43Ks7z5j8kJxlNhZw==; 31:twoTj8rS0n+pak4EVAppugG3jUZJjoQ4w0ULBp3Cl+nHLlYCYtAN6Qri72zyVjFA9jvyKIc3Zv0QquxxkP0ope8kXzwuBOZuMfgVgdcqznQJ3jszoaJO5CyRTplF8smgGB01M0FWIpJ3NOBFUtI2XP4QR03k6RKmUBEWXQmGdTBFI12kL9ESeF5aNJmD/gChaXa9zk14vC92wS0PBuXHJa/DL36K0qQy5Q6seis9uEc= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2040: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 20:YVXu679tt3m8f/DB2FAabMDoB+ipiFx0oXCtV4xEJK4NyrCYNInY5f3sRkifgniLiT6AtnaxjEOGd/U9DgIfC1xXLAW7YkOENu1/52gRxyCi1vhj8HzfVQi1th+UVdGTA+h0+o9z23p3MpmhW81/2CJgZrplDAhdR1SnpFypkp5xqFnbRCtfrq9Knl3ZoilOGLYKr58YQ5lGxT/326+wfxNO2khN0faeQ5/wc09hZT9E/2VWJNKhgdQobCxn2KWgVZHCwhId7x81FILVXdyggrnPr4+OcDG8fzqVK6ABtr9NJ7BjQZdl0jjGaDm5wPZIsq1zl5BGm05HlRmgfiwH/Q82DRVsS66y9rwMOOIo+Gv8fcBWzQoYvIEVIA56R9WEW6x3Eq4NhKaCmx4or30t9M4qzgDs0lW3IBU6eY8U1jKBNuy7UQyGNz1nP2FS+knq8VlrHJTfRQr9iPKSMKGXHLcdIWRFWUu4DOmYbbOnkBjaFQu7FzSmxAc3JFazTBf0; 4:NXYwDC3SCJjMUOvhNjVgl0M7mwY9HDUlC1x27LI5EA5QjMlcK0erIr7wX/DVwCau6dEI0X1oKYnWmcmjwbAQB3hwlUaDlUB2FRAvGPQaOT85WBCPRPCPGsm3b3TWbbLNGR18VjnmQcaVnwNuFeEAbuuKTGimtM7MVBE/AHJGx0Rbihw7UcA872ZC6lfLjQ3I1qSKDuea0JI0e5oxV9QZ8NwD+SOnGZTekoAMtluHpkJ5RGdwE2XSPXpP8PM9S5i/av7gHh7Khz9yTTLa48jNeg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(944501075)(3002001)(10201501046)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:DB6PR0501MB2040; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB6PR0501MB2040; X-Forefront-PRVS: 0534947130 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(376002)(396003)(346002)(39860400002)(189003)(199004)(16586007)(86362001)(316002)(54906003)(25786009)(16526018)(52116002)(105586002)(7696005)(51416003)(106356001)(4326008)(1076002)(6116002)(386003)(2906002)(6666003)(3846002)(36756003)(5660300001)(55016002)(69596002)(50226002)(53936002)(305945005)(8936002)(81156014)(68736007)(50466002)(66066001)(8676002)(47776003)(81166006)(48376002)(7736002)(21086003)(478600001)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2040; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2040; 23:CuvetAkuf0zlNChhXvg/pA1gj9/amISY+hnLRov?= =?us-ascii?Q?Yi4LZPBCaHsrYgtZYUBabNef/7gcxzQlOdhjlJ3rBXexUDmOngz02WSCSda3?= =?us-ascii?Q?u3s76o9zoKDCKkBshGbBA9jXnnjGeUudfAR32GJ6hjIHq4Ip1xddBXuo8rKM?= =?us-ascii?Q?v2Eu9jzLLcAoBzi1prBje1KNrvTSOBTOjGZO/1OU/BKUABapW7mEer28Y7Go?= =?us-ascii?Q?JgY3S6xJt8KKF/g32BMKxBx8/x+XAA1xH5Mk6e96b+Ii9YbThk6HJedQAu+4?= =?us-ascii?Q?RNKOJo33dTWoyR1EwVFgyaKIyoK1IhV+rDQd24xXpOuu2uikY1BHMr01QH/9?= =?us-ascii?Q?RFaZszmgSSdZkFbA2bIonipSln8QLj6u1dKP9Sq4tc2f7F6B+CH4Tuyrdiqv?= =?us-ascii?Q?Rklw5CHZExxLj0ffq6LdB+V3smIqUBPM/Gm/l+oYr9dQ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Ht2gxRb/rv1gndf/31dNMum2LmzAXEKh/oVxsDode0U6UQEVt5Zy4rZ3Oop20q3IDI2Z/BQmUBf+n0U+R4qGGa789kmK33XA==; 5:Y2quSdK4KueWSWzTcSFsJtGh3oIexkxqmnJh0O2f7vzJaXeu6T7mIPRzyydEvtBcALzRWXDLxjAz5ZdEJ1ky9j+N3YWVq+3qoWrHlar3Axj6PttiaP21ultbLBr40eSaIt/PSQTXxJmGctqvzw1DZyYCyb8XbisGqnR+IfDOiDI=; 24:7oPIDQQkNGDjTX4dCs+OYeBrpqmd80f2Ujxc9yq5eZQ3G1ug+TPUkpNAa0QxSKI5RbEW4aSls3ebFOSuaUzA1qOg911Eh9MX1XuXaeDFBUc=; 7:A6VL1WsUrkHYoMn4MYoOd5qq+tT03+IcUdOW9UcVYeKJwL3qSljQSwdlxld3eqnRlRPQ+p3KVaZNv04a3PMpvd1XsswoF0WwOoPdhJAtx1GlaKTRq4TNkg6GcZ0dPMlKlvrQ/Ry46tou7QkVb7iGtbYv3/Pg0cNw0V6SK1dyaZPiPyjiw8A2FtqpJxRbRLWhyITWrQ4wihf+iNBtTNxBxEruG9rFfctggr8RGnnIwqxjGzZH4RrUrGPyVeCokEN5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2017 04:28:38.4067 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f2c6fa1-6920-4e17-7c9c-08d54ce24dfc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2040 Subject: [dpdk-dev] [PATCH 1/2] eal/arm64: modify I/O device memory barriers 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, 27 Dec 2017 04:28:42 -0000 Instead of using system-wide 'dsb' instruction for IO barriers, 'dmb' is sufficient and could bring better performance. Using 'dmb' with Outer Shareable Domain option is also consistent with linux kernel. Cc: Thomas Speier Signed-off-by: Yongseok Koh Acked-by: Thomas Speier Acked-by: Shahaf Shuler --- lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 6 +++--- 1 file changed, 3 insertions(+), 3 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 0b70d6209..8dcce6054 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 @@ -58,11 +58,11 @@ extern "C" { #define rte_smp_rmb() dmb(ishld) -#define rte_io_mb() rte_mb() +#define rte_io_mb() dmb(osh) -#define rte_io_wmb() rte_wmb() +#define rte_io_wmb() dmb(oshst) -#define rte_io_rmb() rte_rmb() +#define rte_io_rmb() dmb(oshld) #ifdef __cplusplus } -- 2.11.0