Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752015AbdHAJai (ORCPT ); Tue, 1 Aug 2017 05:30:38 -0400 Received: from mail-co1nam03on0079.outbound.protection.outlook.com ([104.47.40.79]:34240 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751680AbdHAJac (ORCPT ); Tue, 1 Aug 2017 05:30:32 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; Date: Tue, 1 Aug 2017 11:30:11 +0200 From: Robert Richter To: Will Deacon Cc: Andrew Pinski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ynorov@caviumnetworks.com, catalin.marinas@arm.com, nathan_lynch@mentor.com, kevin.brodsky@arm.com, dave.martin@arm.com, john.stultz@linaro.org, arnd@arndb.de Subject: Re: [PATCHv2 1/2] arm64:vdso: Rewrite gettimeofday into C. Message-ID: <20170801093011.GC18024@rric.localdomain> References: <1496190860-5116-1-git-send-email-apinski@cavium.com> <20170531124430.GG9723@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170531124430.GG9723@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [85.180.205.230] X-ClientProxiedBy: HE1PR09CA0081.eurprd09.prod.outlook.com (10.174.50.153) To BY2PR07MB2343.namprd07.prod.outlook.com (10.166.114.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3787e682-b118-4de2-2978-08d4d8bff2ea X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BY2PR07MB2343; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2343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WjipXG8E/ejgQ8xv+67QQ/E6mqnPTojO54gWhSNbN95ZhytgAe0awT+kqv7NOmm8hsvJNCnanYiCDknJ+Q5wpSN4fiUDyCU6767FW7Y92vQFvKEEBvd9+7KQkuK4gcBSeEN/IbIJkt/TuUUZG78zdygY8K3pozBgNaVt7LxC7ULJEYE3oDEQZL6zWIWselbVazSHBINh7sHmwFRpAUoe1Vvl52jTOJVVa95I5SEMjHCNdfZjPiEaGAxebo2zU1x4FsURZc4/r03Bn2zNchaSk4Xehh5hZrcTzfiAf6T1w7IHLGc3wsoYdDzxW50RvL1NgB+7gF1zwPSpCfqcM0IkvCxeG3DAI3+QWoOy1rWDZnC1MBowlF1qVdpQunnHUWjw= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2343;20:CeIQDVVNESXwQDiDZqZIq62E7dUfUQbkRlpQtZcEEX/VSZdr/JsBKMJSPqxXwpkyk/jO1ZW/2TufUtOU4WTcmdSM1TziQ00eQaRIy8UjM5C+mIqnRxlk5BXRwSA454jTgOSe84dFyGiYaTYnFJGV1FmFbeQgVVgOnqL7jx/ZKeStjGCpXjOu36fuyc2xb3mhafEXxxJHId3yNXkmrBvjlWftQdC+nsCQNVOrnWowSsVW9rpT2YcmPkPLn3820pOIOlbwVLkdw1lVP5ylA9DpGvupcoNvoDQyC7Z4uTiV176U9nJnJu9gdsuJWDvWrRDHQfV6ETD2ja7opTFN/swA+i5i+EddVwhDzZ8q5uQJ1jPX50v76Nkcll9nzzd17/8SoAa392tayVR1ZDW0Itw9NlAVTXf7BTBaCzXwQdcTXW9C9GBZCTjlv18OskqkBewoMDHROwFuJC4sRXNZ1o9sbql454JVEix84IB00/+AHWnplkFR/YVaTgUIDoKnZwUG X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(42068640409301); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6041248)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY2PR07MB2343;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2PR07MB2343; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR07MB2343;4:F9ZCBQ9KnStFJ2/T7gQoqEmHOdpgC2Zo+yCETtRhUC?= =?us-ascii?Q?Po6oSP7xhBwpPIZ8AhtIh0oXIRh1J9ZCZeM3ebRGBwhVYXIhBmfexehgNeM/?= =?us-ascii?Q?7C3dt8sgrjq2QnnrlY1wf8M7TUi5IeADRjW0ZV+OhL8VMDQxLRROJNiugJqW?= =?us-ascii?Q?l7ubKfkjVn1d2ZR2+0+Ik1hYVHlM/vHsZaTiHu/jsXyfLhjhPMXxpwMYsyDQ?= =?us-ascii?Q?0shZJ7/7UrRGZDyc1k15WbCAQe85fbc1MFNonvzpmvLOjCw5VF1eXroZpb4Y?= =?us-ascii?Q?Sc7DwPjggdErlBXKt5/zlbyy8oe6iKThs+uygrxKpZKB19I+/pw24negrVQ6?= =?us-ascii?Q?hpr7bssAd4dAisSN+D7fpcSDFX5Bn/mfq8O/QsFoc7MI5pCXK6sJXZAEetfZ?= =?us-ascii?Q?MEWvSOgjMvbCntKtoIFF8PwbnN8KC/SIldw6ltrV3BYsY5WUGFJPRQJaz+qL?= =?us-ascii?Q?NJzbWr5rtfrmO0vAPy43tW72XyI5GxBi+KNxa3QeDuwNPEHSnoXR53jZp5S2?= =?us-ascii?Q?XIdrkmJVocWPD3lB9sg6UsJCj2ekHztZrgWkilu9BvQ7pEwpmEYbwUXhKs8O?= =?us-ascii?Q?Awj/QZPXyTqHy311SEbe+sPfZUkzfQt0uP/7oQ+Xz/D15vtc7HJPRSgP6nXZ?= =?us-ascii?Q?xmdCSdHWNr8EjKgY2bCkDawRhf46eWadOWlXG3MFjXbkO4C9XtZoVJIkVHiT?= =?us-ascii?Q?3+bzwQvylhSPK1dZznV6B2Vwc2EzOp5jQeznCQ+sLTVd7Jqgjxb89uDRvUfK?= =?us-ascii?Q?P0s8GAJJgbF+4oNK+3aIbgsvJk/q7lHpcWTITewu0Skom7hTNYvVNtqXxRDi?= =?us-ascii?Q?pVajPUc048FRuWulPannOR9HAAvaqoRutpxcjY0qDWxmoTDF7gjaztK84tvv?= =?us-ascii?Q?6XuxuL4fLRLEqwYwexw9YIztOR3RVPwWYcXe8WRV/WdwGDd8k/GAMHUXueqk?= =?us-ascii?Q?Ssf1tPepp0/EDOq2B54XWdXeiz/F3/Fd5/gHjt4qjbWmxOeglN09FieRv6xZ?= =?us-ascii?Q?aj1yRzg/MXkGIEIpwxvIo1hccKTNdVgZ76QdRF11TzYuUL1pt3i9Z+c+Imls?= =?us-ascii?Q?Buj2uhyIqm7UeofI9h9YzjPLt4OCcaaamGqfrDz9EJTWEJCQ4B4f0CHos2g+?= =?us-ascii?Q?JX7mX5Ib1tRvIGgoBFEVRjuKv1U2mVLwt7D9LJlx89QmVSqPBRD2WbZ/+D5Y?= =?us-ascii?Q?KdNcwgdHzs2ZmYdm2jhYDlBbLilneDCqFQqjut9Z54Ysp0nHWGbi297Q=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 0386B406AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6009001)(39450400003)(39410400002)(39850400002)(39400400002)(39840400002)(199003)(24454002)(189002)(23726003)(229853002)(53936002)(5660300001)(47776003)(55016002)(66066001)(9686003)(6306002)(2906002)(42186005)(6916009)(6666003)(83506001)(54356999)(50986999)(105586002)(76176999)(68736007)(2950100002)(6506006)(110136004)(38730400002)(8676002)(81156014)(81166006)(50466002)(25786009)(106356001)(6246003)(4001350100001)(3846002)(7350300001)(305945005)(7736002)(101416001)(6116002)(97736004)(53546010)(966005)(33656002)(1076002)(72206003)(189998001)(478600001)(86362001)(4326008)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR07MB2343;H:rric.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR07MB2343;23:CerWVJ72BrnMNYBby6ngfLgckwY2sYfymUf9yyJ5z?= =?us-ascii?Q?5QbKNKZPLse+SBQj4kRXL4GGegp+ndpsts1YFoQokXPVR7+uaNps/ba8Quq9?= =?us-ascii?Q?g+VS7xmV0Nvh6a0+rx/z45u0y6B9CIYz/9JG8p1VYbfLM/JVBJggIo2uyW5X?= =?us-ascii?Q?u+ApvUjHOA/sBai8t7wcLdGAgB8v/v7ohmBsGig1XYUhityjvOplH/HJCHt+?= =?us-ascii?Q?Gr0VVa6Bd0aVBU8tk6fsxMNKJqaWRpdtrElFvKvsnZ++5IfLFtAbDA5Ao/Gu?= =?us-ascii?Q?ur3N8p48hiSjGu/FUXR37wZryq9NC9WxOZj0prX/eWSKdo5gNp19dFVSBSCH?= =?us-ascii?Q?63cew1gQ7AKfJh55/V7vmuLj597XDSQ+sWMLdtZT/gsVWIwfsA6N7a2Pj0jR?= =?us-ascii?Q?QPWaRZ7iARUP713KSUswCPsJ4W7oXktItpkS8vM3eMCIXQqHJVYF1zfoscUW?= =?us-ascii?Q?qI2jVpF0zD6tUBXdyXbBvRde6OLvZy5dIZYpqelWamZ69JIMYJzu4hsjU+2o?= =?us-ascii?Q?Lab6pwD/D+hMF8ZS+slDxeWfpdZ4RTxsl69qRG379p89T1LXLQmB9njSMfWz?= =?us-ascii?Q?0R0FijTxtsXOhM+JhhIpPeD8UMZmS0xm1GCKrisE4e+1+IXT/g3qzInUdtLZ?= =?us-ascii?Q?OaMWCio+m0AjHYrT0riBYHRm7X8L5C06y03yOE75okPupTQ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xo77Q24e0gHQwlOA/SlnryCtEi19p0h3sBpWSkkK1YkfXvIXlKEw32eqB?= =?us-ascii?Q?8=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2343;5:0zI9BRQdxL1fhze963V0tlJemG5bBoTPjp5W6O15L40pdN1wyYlFnOP0Nu13w9+S0V2p0WibyyMH9Bzu145KExMBHJDpD0Ci5o2qmbhb9F6DibwOL8U+YKeKUtYoKnSYJL5EH/MykVZMAQp0dqs20R+Uq5v2mCU+tPql3s63aw5MCx1QkLyInTNF5ZgOEGvA8BaUjaA2I1ASpM/SrRDp9XwLjf80V6qMm2t02FH5AI7goEyMBEJu4+otHwGwOWVKmWqSiKNF1+NhLirn0GMUO8wthH1++dUPAq+ayJinYbXDn/rN6ix9pSh8XzrG5QVhTb2yK7cdgd7d955fXZqtgzujpYrb9igS4jeYlC6pCOXv0MYdhQzSISvHZQC4dfZ9NTltdYoQW2cyHJRZWj1aFCgc6UxHxXdgTOPssskeSdUVxoCU3eaZhvBIS2//3qNHji1L6kjxe3RBdaHSW+OuXOhmOva39WqS+g3nXHJ8EkzXO4OOA+2W/KhRKxsBqqdq;24:hclby1ed5R/7w3lpm572bFDViVIfQU+thFdwlYmwME47EitstECGpXOwxFU73GitulJaJBiI+eC97F/001FsdRy0XQXOu0Dr4xd82uNFh/w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2343;7:6QyMjN+TFD/Js13JCBfoFMAruuMRpastyMaxPYOS77q4UAuPQzcOUvQhZLUSoIeHiMuUm/b09gk1myR3NJZxHe5bnxPhfUrVPd4VgCwsdFgBVPpTt6aOY5vAzLnPvx89XS6lE25Uhfx+bo/93sx/42bNbtNZrAUmp4HlWF+Dc7uWAl0s3J2Oqni9LNWJPfzAeU+qAcjcoqFlOkCaTrcusGmDuD1QoAAXK31dpILhgaHZb0vtd2NhqoLAiZnzMKMcNBoNFbmnBeZAa64r2ado3DDS4v1inSPNrw+xmS0DQOmYWSsy+9jjRsOE/D8G+WvcoHcUN54BnLgdjxfmdxp0XOhyNvLP9SUD+zWp0DEGbRoNpEktYnBTccX7KoMm1ziLDUzeoQfTEbSo6wbqH39aAr5hGRcGnBjF7QIEhXPQnyHB01x2eZywb+8vf6gKrNjImFUYjNNHHhPGhwooyH5V0bIWH2NW60/Prl13potY7IjMobhPuclXzvNztKNPt3qfR8H0fGB4oMERGQMQjj2PzTKPWPl8noWHM8qVw+jLylcUtxdzMSNpZ1vKK1ZWqRqlKTsNmE0tDPJxS1Pw3klZxcw8+crBhwwVByZs0g1IVDlZI2OLqx4N/9rINetpQBtoV5alUZmSj+aL6rGiLTI0B9Lai6YBuTK2SajFTjS+fCf+hzLVjtDqCQlS8bdnPwkrd6tvxCQTdVDUiVpFHx1u+gGSE470OuklE3ycFZmaFNAZFL3yQ+sRlCHpnOZ53he6qykOWpmrQvEIh7Ho82nv1n9lG0O1o8q2BTCO8H65GK4= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2017 09:30:25.9210 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2343 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2798 Lines: 71 Will, On 31.05.17 13:44:30, Will Deacon wrote: > Thanks for posting this, but please try to cc the maintainers in future -- I > almost missed it! > > On Tue, May 30, 2017 at 05:34:19PM -0700, Andrew Pinski wrote: > > This allows the compiler to optimize the divide by 1000. > > And remove the other divide. > > > > On ThunderX, gettimeofday improves by 32%. On ThunderX 2, > > gettimeofday improves by 18%. > > > > Note I noticed a bug in the old implementation of __kernel_clock_getres; > > it was checking only the lower 32bits of the pointer; this would work > > for most cases but could fail in a few. > > > > Changes from v1: > > * Fixed bug in __kernel_clock_getres for checking the pointer argument. > > * Fix comments to refer to functions in arm64. > > I tested this patch on a few platforms I have access to and didn't see the > perf regressions I saw when I looked at this in the past with an older > toolchain (it was mostly about the same, with a couple of improvements). > > So, in principle, I'm not opposed to moving this into C. However, we're > currently close to a "vDSO-explosion" on arm64 with people wanting a compat > variant and also an ILP32 variant. When Kevin posted his compat variant > (also in C): > > http://lkml.kernel.org/r/20161206160353.14581-1-kevin.brodsky@arm.com from a technical pov there are no issues in a convertion to C. Since this fixes bad syscall performance and an alternative solution as pointed out here is not in sight very soon, would you be willing to get this series upstream. Should we update to latest kernel and resend the patches for v4.14? Thanks, -Robert > > Nathan (who apparently needs to set his mail host address ;) was concerned > about duplication between arm and arm64: > > http://lkml.kernel.org/r/87r35jmv3e.fsf@wedge.i-did-not-set--mail-host-address--so-tickle-me > > I'm firmly of the opinion that we should try to write an arch-agnostic vDSO > implementation in core code (lib/vdso or something) where the arch header > provides things like: > > * The mechanism to read the counter > * The mechanism to issue a syscall > * A function to determine whether or not the current clocksource is > suitable > > I think the datapage format could be defined in core code and it would be > worth looking to see how much the virtual mapping code can be consolidated > too. > > If we can get something that works for arm native, arm64 native, arm64 > compat and arm64 ilp32 then it's probably going to be useful for other > architectures too, even if we need to add more customisation points in > future. > > I've spoken to Kevin about this, but I'm not sure whether he's had a chance > to look at knocking up a prototype. A first stab could just unconditionally > fallback to the system call. > > Will