From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0084.outbound.protection.outlook.com [104.47.32.84]) by dpdk.org (Postfix) with ESMTP id 8D5062BE1 for ; Thu, 4 Jan 2018 13:59:01 +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=lyGa+OgfiOKH0dD1WJvVAe3+OFQDRV01oHZ5Lj6k0gg=; b=CpkHVVfFEYpcQLinzE5oP6oKtlO443bfoo+M3zei5NhqI1tTm8NNvmrrnL0x8F1UbanSMKv7egpVkwV7LymG/d9iS94K+KXkGhbqrrxd1a1DkZbYvYKjY4CfZmFDMa5HeTV/QCq+jgeW7ZDJj4ApAo7HEJaOEHWiTS9/3CopGbw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by BN3PR07MB2515.namprd07.prod.outlook.com (10.167.4.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Thu, 4 Jan 2018 12:58:58 +0000 Date: Thu, 4 Jan 2018 18:28:27 +0530 From: Jerin Jacob To: Yongseok Koh Cc: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, jianbo.liu@arm.com, dev@dpdk.org, Thomas Speier Message-ID: <20180104125826.GA12695@jerin> References: <20171227042824.33373-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171227042824.33373-1-yskoh@mellanox.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BM1PR01CA0098.INDPRD01.PROD.OUTLOOK.COM (10.174.208.14) To BN3PR07MB2515.namprd07.prod.outlook.com (10.167.4.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 65a1a100-8de8-4e02-ad81-08d55372ec78 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:BN3PR07MB2515; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 3:GDDGlg9wCGQsVlbmpe1E3OXML4jtgqeItqlLZY/aurPVelGV1MYHVt+S/EFeeFL2/vYAEeLHblaVKJ6PU+ZVlGKDV4CiBzMT+tQw+gEt5CkH2kMVfy68esM4VCQs9CJHxoS1dRwaf8sp+6Sv7Wp0cYtCKEEdP1x2aUumB4MqAG4GLxjnsCD6hHbMVWkFLkVFWcPFTiqIMXeeOfTlGjyMr1IWtw3Z+C3eF5HN/+OxNifxBn2zcsez3Ju50x27VdGz; 25:xNzYFvFi6WtuhlSQlq2jfAEpavysfB8R7eBdm98UmzGQ8fy/CFkaIzt4Zpl9yEZOYxNKHVZZdB+Do+pRokRp5NxapYivKUNrCzsqXz4qlrb3+cH8C8bWDS668h6sTFD9LqY65/2O+7Vz9y9zvf7KQ8jc6HI/PtU33U1XcMuqQNwAM6irqLqSy6HoM4tWxZ1sEScyrrJ/Z9Q8mojxPeAZxCxZR2p8rszx/kWM/+ESRGESU6mehiMMfEVb9/p+GYMHCd2w4+iRLOA+rpWvP99vsBVBsrmqQkKSG4iNdeMCKBCvHVNtIRuvLOtekrAVZEzsa2MEiW5MR7v9yrO4e3Ocsg==; 31:WTCu/bLstJisvjB+3eRY/kGqyDQIVYHAa6d65GGrJ6pZ4ea/T+ytNvEXdxn+W5KoVPCi2aVP2fuXieFUMKsUcpvPnKA0AXrV05VzS9Cw1AQIODx1fFp2GIQsMkcx7csoJYxkm5apObol3qgrCRJnwsm0ANJWwcvOhmEcBcKAyMsgNrQetjHN97wtcQUvcPxrXbdwyB634TMEYzQKRHWwrka0rfZu5PVo0wrKDWyEqx4= X-MS-TrafficTypeDiagnostic: BN3PR07MB2515: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 20:7S5T/7WzmtW3v8Ye/X7cTlC9cSA7QOFggKFzxTdt+1+/e5YEWVUHs0IlqG6A0vGFsT0OBjQg9LPl3hAmOEraxof+RbOKRYravOk9I4vPnYGVtyY5mB2Hibp3Dg2Cs7hs9BZux+52GDNWUe3VfVIm5PFcwAVQpLuyeI/1y3Ms5g1nkmcVxemj3WIJBWvxPl/QQhckyMy7HkPBUtbp+JW57m+izb0/llPktVWWXoG71kZkLNhsxso5hpdwKTxJYa8VFozbhwkakVEa64E2kqdUumK6HkpAWNQb7ww6iFc7F0y1v0hwI1E32uB3oYBiNd7DAyn+SwdovLdA+KErLpxQ9GOpgYrroKZ81gZ3De67I78FmjwMNmUatPJ92JxRfxR1ci6K6WntRPVVq/thVHYguTPi2ssosvpWYX8Vmup76OmSlDmxF1aKg6jgEnWGzfflbqcC2c/9FWXgvVX3RrclyPcHUoMLavVRC6k4H4FzGQSIluJA7E+zM3M+i7xoGTwDTaZ2CctrKPX3Gk5CbfpHxoIfCRL3CzF7rjUE28U0Yru/SUx5XoeevtLtDYn5TYVrWuuGxoaPsW784KWsAwt1yfBENrVkWipqMd4knx9Xl9U=; 4:O2t+qpZ5r2K6LuUtXqv7rEJZRlonxC7nIX06MgkRrE2TmaJzFvNRX6y/vp1kB0P9ru+xk6p/zUvOPtoJkrYWnKeYcCsQ3QvtPvi4R2OJWfK60PeIeBmmX07cFZOn6J10spYERFRuJ17t/KmYGHpokE4uvNFZRVuLGPv2+74va3jzS3dRQx+vukx6/d5o0k7RWw0IqP4cwm07LN+2+V0ht8DRhU4jlQCxWEr/NYwqmo5WbMzBMShy5z4k/FyJoaLyTH+RWTuzYk6InWH5f/KupaO4sv0YDIuQkLwLHipcjQwTJDvWlOSxbCK+mKmvRXnV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231023)(944501075)(93006095)(6041268)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:BN3PR07MB2515; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN3PR07MB2515; X-Forefront-PRVS: 054231DC40 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(396003)(376002)(39850400004)(366004)(13464003)(189003)(199004)(386003)(1076002)(52116002)(25786009)(16586007)(83506002)(97736004)(4326008)(6246003)(6496006)(33896004)(58126008)(229853002)(6666003)(3846002)(72206003)(53936002)(23726003)(6116002)(55236004)(316002)(2950100002)(42882006)(68736007)(6916009)(2906002)(47776003)(50466002)(16526018)(7736002)(81156014)(478600001)(81166006)(305945005)(76176011)(5660300001)(66066001)(106356001)(8676002)(33716001)(9686003)(105586002)(8936002)(55016002)(33656002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2515; H:jerin; 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; BN3PR07MB2515; 23:bJ86gbdYB+f6HV3+5ylXym291fGMCwd/IrQDSWHNB?= =?us-ascii?Q?T7s88iyAUgon55EhztNdwKJS8QibY4o9fQKSM0EWx1QS5YUuW0I1fooKYlUW?= =?us-ascii?Q?yF+OZd2LGo2Zsr7sVuU8lBYS1p/cT8G7HTgBaY7DGB4YEV1On/ge/iwIMb6y?= =?us-ascii?Q?guFxCb6zD9wlrk1j7BP0l6C+PyBp0rmzd2hyIw6D1UTJlEjaZyM7HNU2cTYR?= =?us-ascii?Q?KwrT2+aAYsGHAi/QQYIljcOZftwJe06bhJoZaDgXjgMk7ZKIHUYu23HK7Y06?= =?us-ascii?Q?wE0iyjs4fNGbIw5UoER8ad7h4SRW3mRCwMIZJMjFCbYo5A66TbTux8xiB75y?= =?us-ascii?Q?4vcUt00nJnE9uifU7mNkSefmnuDDg8O0EeIMcjSWHArKNQCKd8oWGnyTfqvk?= =?us-ascii?Q?FJ59LHein++0SpVLf57hArCMZzHxQJHooL3C7R4yNXxi9s7g1OoFDwogzhFz?= =?us-ascii?Q?i+KoRZqHv99gyzj+CqESkeYzfAE9qMLRM+BS32ZPddZojW4dD1OqgeGcEno6?= =?us-ascii?Q?e1G0FmGKJRemayANBpYeK/G7SmiWMj2YoK/7wTuxd/uvktVjBZogazIdmq6x?= =?us-ascii?Q?Suhm4dsENpoqjY3elProrbBvAJ+YeEAGsFuVIxTiTo87ng2AwchwARQpT1Dr?= =?us-ascii?Q?6w4PK1SyG/7/UxTcmuAN4KRVVSav+UyOnHZyWLeFD9LW0T9KynpbYvAdJLIl?= =?us-ascii?Q?/VbSh6EnIXANbja8jsFGksS03Zl/B0F6jWeR7Uhmv77apnJz0XgiL6tca676?= =?us-ascii?Q?jT7ZWiXctEMVTp0BiU9tuirBaIuoWP6PI0jE2YBm6Rif8iGj8D8flC1APWMW?= =?us-ascii?Q?wbE/FhmWzAyZRVZl2JZaRLi/m0suCGdZK644Yi84sejGVi2xgtV4dlM7XwfU?= =?us-ascii?Q?oq7AhGJ6/vcHGpkSE6vVosUXQkSkF08IXRn1lHXxDjLy/ENcAlzcEgb3EV6w?= =?us-ascii?Q?O9isN3JY5K9xiObvX4tLZoFWr74PJI8rDBW05eS4k/GRryajQSBwNw7COkXP?= =?us-ascii?Q?5wut48eGWUr5Gz7kKIY67dRB0BZMJu5ouDnA0lWtS0EYTmy00EOS2/5q4ISX?= =?us-ascii?Q?EPiW7S3LBgrRpQwmBsb6pOe7/DARwhHPM9j5C2xlATQfjuPJxiqTQ+A9A+rW?= =?us-ascii?Q?kuDfaiJGBxvIkljer24X0BnzN5aKJEHk1KW+MZiR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 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2018 12:58:58.0408 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 65a1a100-8de8-4e02-ad81-08d55372ec78 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2515 Subject: Re: [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: Thu, 04 Jan 2018 12:59:02 -0000 -----Original Message----- > Date: Tue, 26 Dec 2017 20:28:23 -0800 > 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 > > Subject: [PATCH 1/2] eal/arm64: modify I/O device memory barriers > X-Mailer: git-send-email 2.11.0 > > 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 Acked-by: Jerin Jacob > --- > 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 >