From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0056.outbound.protection.outlook.com [104.47.41.56]) by dpdk.org (Postfix) with ESMTP id 4886C1E3D2 for ; Mon, 11 Jun 2018 09:45:50 +0200 (CEST) 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:X-MS-Exchange-SenderADCheck; bh=wEAwPd+yAyMjBx4nP2L8Wes8ITTogFvVYdBUKRfEKmI=; b=dm59Zh3vNvvXNuZaaPk5p/ITt1zK2NNd4erjhpDLGdSJQaL7HMS0kG7VnSHawe3yuA6bgC5Ap5RaeKuGJnf/jE7moPadZBP8KnbgS6WmgjIfMDHo6mSEo5WrMY0vZTBRhc/BZ2hZ7ZEnod6EQ+DygXLBD/3s1iR0BqV9rPKnjNg= 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 (2a01:111:e400:7bbf::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.14; Mon, 11 Jun 2018 07:45:45 +0000 Date: Mon, 11 Jun 2018 13:15:29 +0530 From: Jerin Jacob To: Sachin Saxena Cc: Hemant Agrawal , "dev@dpdk.org" , nitin.saxena@cavium.com, narayanaprasad.athreya@cavium.com Message-ID: <20180611074527.GA18217@jerin> References: <1528180425-27937-1-git-send-email-hemant.agrawal@nxp.com> <20180610110700.GA6990@jerin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BMXPR01CA0011.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::21) To BN3PR07MB2515.namprd07.prod.outlook.com (2a01:111:e400:7bbf::12) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN3PR07MB2515; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 3:Y3CJrrj/jrko0liVQqleR52NVpL3o4qBMLbYTuKiNeJFt/gT988gNLhi2eABk5JEHSxR17pQaTo+xfAyNQX+xeq0ZqeQH4g7h38aCTwvDMDDeL5I2AJIXK/I2ehBq9FatMSQdl+j0uTJ1AAmW9TWLMLZfuWImP7wNE7MOFKXm/KskO5wPHBxyjS2DsIaIDby1X4Y6q6A5gMOBcMrKmgtYGhI5QFA9Yx6lhqFrqtpMAASxYCUZvvEYJ4URZ/9GljR; 25:kInKAAc7RB2gW0VcjoMOZr0LmV26WzNpTlXAZiFnPr/GjVBnD9JAksv1u6QvYTD9QXsbTXwFvsftF8Kse0nbdIxUazwNMnI0b2CoATS31QwBsqlfoIexObgUyWV+39F15NdWSft1YkaW2L35/n3XZl2KsrO2fB4TqOjZxYPsWiqQ8/vwxbxtfCFfYPIDwx3I/ehdVzi9NMAl18rB+UqSngAEmhA35/+A/zziSzx/MuqcELKbvmtOfVXQWMKgs49aQhYKAIH2AOfPpw0xtKbNix+KORhcIo05KH6Df2eT+qgVLBChq1Vpu4mTuUZ4whAEzE4+w3kXistwGOn658goAA==; 31:/pZJbBVlNy6GdR9NpHalk9CpPV/wmwbIhvKMpJCwcfntVOsFBc0HDUJS/u6sX22vkrD8L0V+Zx/T2nSXAvZSac5WtNwlhUvh5KfFESQ8gbPLm3VjlFuqzW8FkxOTCtDgdw7QqlG9e3NakwORqwlNoTu7C7o3qz2HfSJynjwPEh4fmoTRJg0sfsQSYMAMlDKF/qZnGF3hDQwro0jRHtaXd59DCesXoITeK2VjUT23BKs= X-MS-TrafficTypeDiagnostic: BN3PR07MB2515: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 20:n9awND1b1k4ezFMi+NPeT9hmsiXcLhc1dKiayJxj63ZM4shBhNbUpHGCB+aUYfBJUaBfmYMnFM4YstOlPAY1zWhYktBAfc28J09M1xXJj1kyOxcQ8G3nvTPgFpoqb6jj6vfT09rFHsfE5Y+Cal1vxA5dQ1jFb1BK/U1Zf5N2fUzauhdf0O0vI+vQgfmxLCipkUXpkGFcg78uEYtxlmOHXCg18JV90XuJVwRupGDybp/ynahrqN6iy3Ds55WJfiJCQNxTrGZMkXtic3AQC16kMvqAaG3Nxd/QeAW5soz2zU57+ZQvSLBmft2NN/QJP9IhpZ2QHcz1HnkQWuxIGkppveIdkTrFPeu/+1d4BArVJE/n3FvuDpCE8n2ROzjcPt2avaabQB4CsQrDUMK8QIjG1LRrddH8YzOk7c2nAMNu4YKTsQsRfJWgPLHz+A6s60N3tKzJQOvXxdEZt4uwSDHEqFC8CEjne/YGrDqCvnEikaE6dm+neoTDNCg5G5YXlJao0H9huS+NVDrDni6/VHIwBiZWYTvPoFzaCI5AiSR7g64CixzuvLv2AeZf+R836/l6SV63VIYS2TtXwFHcnYKiugq9Hsw04WDk/fP0NxAOrUk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BN3PR07MB2515; BCL:0; PCL:0; RULEID:; SRVR:BN3PR07MB2515; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 4:y+xL6fnHSDVqC5OPKELlO0Ygl4ESNc5aD2fjKnZiHPiFNDnZCKwLrmdF71yw/kUxwhN0czQ0S/Mg7FcclpOM9twtdrx2qhZ8BYJ+6xztLA8bUDT5+vztmyhsu87tV4bG04U9aESsSXKEzSsnlFLUfaZrFevRkUjKIBzwOwqjL0DDO1jpzWBwr2B+hcLS9KmXM59K1+GoKYmserLE1LCEZZgrdiFHGR72DSHM7A/M0o2fYhHLbXvkW8K/SfP3kMfT0o7gY9CR1DZpPtHHgxIeXsrD4r8xl2bMoXH94fzZNaYLr8JF+u23vEF/fq7nTkkVfvqMmb7np3NN1tYzs0EATEi9BR7jxNBOZwyFz3ZzSJw= X-Forefront-PRVS: 070092A9D3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(346002)(396003)(366004)(39850400004)(376002)(57704003)(189003)(13464003)(199004)(316002)(186003)(6496006)(7736002)(33896004)(16586007)(58126008)(33716001)(42882007)(6916009)(52116002)(55016002)(76176011)(33656002)(107886003)(53936002)(9686003)(6246003)(25786009)(68736007)(4326008)(97736004)(305945005)(229853002)(105586002)(54906003)(5660300001)(106356001)(6666003)(50466002)(44832011)(8936002)(66066001)(476003)(8656006)(386003)(55236004)(81166006)(53546011)(486006)(81156014)(3846002)(72206003)(1076002)(6116002)(23726003)(446003)(47776003)(16526019)(59450400001)(26005)(2906002)(478600001)(11346002)(956004)(8676002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2515; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2515; 23:XanbXXnVO1TbsCIhv9h31+HZNgCAiFrpFtlr07HWr?= =?us-ascii?Q?Tc9VE6b1U7cGxyX+PJIS9AQJNrSe2lFJtgml3BaZB012Dng2Z6S21SZP/HM4?= =?us-ascii?Q?wNKeQfwhyb1hZpcT9ytj1kU1p9wbjdgAHBl1vZAwNj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2VhNTw1uTC0MeO/R20UX7vFnkYANwuWLdGKydUhA?= =?us-ascii?Q?7h0MWRQVFzqp7hFYMXUiD0CSBD3WzvYZcxRbPZqUuMu/yk5Xjp8/yYXs2GZY?= =?us-ascii?Q?92kXtUdwytZmro1p5pZg4DK/lJxeJJZqTaW3EywOncaB5mUmUOOmgqmYdn7M?= =?us-ascii?Q?SZbxOPCIavERXsmMZ1jtW5oMjc1zR3SgxlMFiwzg433ppjt0BqZze1MGM5fT?= =?us-ascii?Q?YWhZVKR+C+vh7IUPbVxg0LaGIyMZC16fi1Fxez3teffsilPaMcF+Xc/5swTQ?= =?us-ascii?Q?RFngwwS99c5n28C/G2yK6BZttLCX0+9UMkQV4stSJzYSlEOM5+6vUMIwlFbz?= =?us-ascii?Q?tQQOnaSvyg5unAvUOIm57T1tNiNCof184+1fa7J2eFlSJOnZXaSHAQ+34i5I?= =?us-ascii?Q?L6cnV9SqLiydLfm8+vf8tHCIQE0hbaoM/1CrZW9ya7PgBVNS+dM/ekpi0f+O?= =?us-ascii?Q?9woAXwr5jLCbg=3D=3D?= X-Microsoft-Antispam-Message-Info: r0xH01oKEa1T7MA/dL++q9ZMXlXZ+UNy8Xt819Pm41brYfsA3gEWjNa2ma7dCA02ajGyOxRfTNSdOwbFdQADlHuiz6Dv2Vmec39+R0FPjPs4RXqfsZhoxjXji17ntZ0BIhrvm37x72W7FTTWUCGSevpc3jha3yAJXzAaSE8Byt+g7ejd+BtEHziUVBWZBRIr X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 6:eyAQO12AM9HEfwlKNRjkflN2UTB4Yl3wj8e0mSDgc3jN8mY7RbMZy/GhB4oPGHkyV87u/H+QK4udsitD92pKh9G0yjJN1jEhudI4aIOTSQhC+xDVDIkYg4VQXd8olrdGd663NCutcY0uUVZHSNBe8r9pWFLRYk9Uvc9ehrlqzuIDSOdtnKOv+EFz6NQB3oUNrG+A0WNavJh5Z+cqhMn0fkuul4cWBMKQUdD0lz/rNSwQFSHyjBerhujVQ9WbMqFVJTCqCzo//N+QVBgID2RRJV2L4hEnfV+mrb/Snr4XIr6qrPcC+VHCngGjJNw2XRNgLQ8I2drwIWDcRVALOkkQkFJNSZprwjmS1wvOqK29NCCvYhUu3ZnjBRtzP0HhUbsW/3RPBLpxf42zQjLsMQuOIVW1hGsOIN0wsI9e3mUOZj32WQ7O53z/8/S/uyrMjICQAyNhLS0C5OVxJVkWjyzMxg==; 5:C7NiQQ6PsIX9+iodWYgV7pv9QYpBocGtqYiSriUsabVHw2XwJxSWs5jKaTyX8Qd9ctyL21GhYVKQf7mKgJwIVIPYd+vTdC3kfNjvglzf6owNTPfV6poZgNmN7JD185/Qn0vScAoL3EMZnbii5mOjDdPmUkveSIFoehhJ0ErFthI=; 24:3z2w9KUTXB7oEWAznRZYY2E8fG3uXoDw7OTzK5lKSsDsWn3N5ElZyJWQziMTThUZhbgyu3rc3dmt6/EAcZ/NpFVODZzrJYcfDnncnSImEqw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 7:F3BkWcQfCwOgrZLNfV1WOGTBrvr7BwGEdpfS7NoJE36JD1Ph5HCR6q+Avm609eOIww/PP5a/rzKO8tF1RBHBctWWKwSwpJEcEwN1XJp1gUuJ1fQp75eCRf6EoP/vk1/qaf6N/0jfbVI2O5YNXjlT7SeQWiTx7f3Ijioagaxm3cBv8S7bwdgA+oIZukVrxOPPoy7riKuEfJ62dRu9QsX/1/JYieGMvGslUTitfqzE4Ophcph1jn6B2bp2tMheRINQ X-MS-Office365-Filtering-Correlation-Id: fd48ba81-3add-46d0-f921-08d5cf6f58c4 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2018 07:45:45.9489 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fd48ba81-3add-46d0-f921-08d5cf6f58c4 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] mk: change TLS model for ARMv8 and DPAA machine 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: Mon, 11 Jun 2018 07:45:50 -0000 -----Original Message----- > Date: Mon, 11 Jun 2018 04:05:26 +0000 > From: Sachin Saxena > To: Jerin Jacob , Hemant Agrawal > > CC: "dev@dpdk.org" > Subject: RE: [dpdk-dev] [PATCH] mk: change TLS model for ARMv8 and DPAA > machine > > > > -----Original Message----- > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Sunday, June 10, 2018 4:37 PM > > To: Hemant Agrawal > > Cc: dev@dpdk.org; Sachin Saxena > > Subject: Re: [dpdk-dev] [PATCH] mk: change TLS model for ARMv8 and DPAA > > machine > > > > -----Original Message----- > > > Date: Tue, 5 Jun 2018 12:03:45 +0530 > > > From: Hemant Agrawal > > > To: dev@dpdk.org > > > CC: Sachin Saxena > > > Subject: [dpdk-dev] [PATCH] mk: change TLS model for ARMv8 and DPAA > > > machine > > > X-Mailer: git-send-email 2.7.4 > > > > > > From: Sachin Saxena > > > > > > Random corruptions observed on ARM platfoms with using the dpdk > > > library in shared mode with VPP software (plugin). > > > > > > sing traditional TLS scheme resolved the issue. > > > > > > Tested with VPP with DPDK as a plugin. > > > > > > Signed-off-by: Sachin Saxena > > > --- > > > mk/machine/armv8a/rte.vars.mk | 3 +++ > > > mk/machine/dpaa/rte.vars.mk | 3 +++ > > > mk/machine/dpaa2/rte.vars.mk | 3 +++ > > > 3 files changed, 9 insertions(+) > > > > > > diff --git a/mk/machine/armv8a/rte.vars.mk > > > b/mk/machine/armv8a/rte.vars.mk index 8252efb..6897cd6 100644 > > > --- a/mk/machine/armv8a/rte.vars.mk > > > +++ b/mk/machine/armv8a/rte.vars.mk > > > @@ -29,3 +29,6 @@ > > > # CPU_ASFLAGS = > > > > > > MACHINE_CFLAGS += -march=armv8-a+crc+crypto > > > + > > > +# To avoid TLS corruption issue. > > > +MACHINE_CFLAGS += -mtls-dialect=trad > > > > This issue is not reproducible on Cavium ARMv8 platforms. Just wondering, > > Do we need to change default ARMv8 config? > [Sachin Saxena] The issue is currently visible On NXP platforms with VPP-dpdk solution only. Similar behavior like random crashes or initialization failures have been seen by Cavium guys on VPP but they are still investigating whether the issues are related to TLS corruption. I checked with Cavium-VPP team. According to them, they are not facing any issue related to TLS > Also, issue will not be there with statically linked dpdk applications > > > > > The GNU (descriptor) dialect for TLS is the default has been since for a while > > on aarch64. > [Sachin Saxena] I agree but this model only applies to Shared mode compilation. As per my knowledge, the "initial-exec" model is default for static compilation or when -fPIC is not used. For shared dpdk or when -fPIC is used, the default is "global-dynamics" and tls-dialect=desc. But shared mode compilation is important too. Right? We are concerned about performance and stability aspects of "changing default" with out any proper root cause. > > > > > I think, it will be mostly a glibc issue with your SDK based toolchain. > > Are you able to reproduce this issue with Linaro toolchain + standard OS > > distribution environments? if so, could you please share more details. > [Sachin Saxena] Yes, issue is happening with both SDK & Linaro 7.2 toolchain. We tested and it works with gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9). If it is bug from Linaro on the latest toolchain, lets report and try to have this fix based on runtime attributes. > > > > I am only concerned about, any performance issue with traditional tls dialect > > model vs descriptor dialect. > [Sachin Saxena] No performance impact is expected for statically build dpdk. For shared mode, minor impact is expected but performance analysis is yet to be done. The Fix is suggested because right now it is functionally broken with VPP. Is it possible to check with "gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)"? so that we can identity it is an toolchain issue or not? > > > > I think, we have two options, > > 1) If you can identify if it is due a specific glibc version then we could detect > > at runtime > > 2) In a worst case, it can be a conditional compilation option. > > > > /Jerin >