Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760614AbcJ1MUJ (ORCPT ); Fri, 28 Oct 2016 08:20:09 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:54645 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755605AbcJ1MUG (ORCPT ); Fri, 28 Oct 2016 08:20:06 -0400 From: Arnd Bergmann To: Dmitry Torokhov Cc: Deepa Dinamani , linux-input@vger.kernel.org, Linux Kernel Mailing List , y2038 Mailman List , Peter Hutterer , Benjamin Tissoires , Jiri Kosina , Hans de Goede Subject: Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Date: Fri, 28 Oct 2016 14:19:42 +0200 Message-ID: <3030448.PcHXLsYrel@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20161027231254.GA12312@dtor-ws> References: <1476761253-13450-1-git-send-email-deepa.kernel@gmail.com> <20161027231254.GA12312@dtor-ws> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:R4MbJo1caJHGwSRL/r1BMutp67fhh732TeP/fNaMBTbP+alkCFY hpLGfdj9fJ+y1oz9p+GZ2J4Ab2D8ryL3Ayuc3egzP+k/SGXJMPT3FAlEKkZR7Tu15HZ+LAT e492mGs/glF+3EZlJ2oTPvDxN4vfofsYs/ct5rsea65JdMMBUDROXKRKHE/F8ROrOGOL4N7 ptiAT9SF0d090Z8qamG/Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:A3nGxG+fods=:hkOSnVc6ZzEkdFaOJYdyC5 QL31d1X2Aywu5VIZtb54/bKYhuSV8cY9Hq6Kahj7WrradDwbVQoNjUS8Fkgk9sB1D177vAEOg w5mK4zTEdek34Jwdj7yiMDv27Ca7YgEZaxrVlg32KEcuLv3XTkGmDIWS+CSI0QrPoqcgG5gse udpd5HsoMukVC151tfnyIoFzSn+7bn72DEQuBBdc+R+RPWYXHPxqfCstypWlPs6s0R+YH/SoA iKId9fCPBbwe6P38RIpQrEmj1eShLiNAjgaOIS2z4sOgKe33Rcf4TqK5C4b5dWjVdJWopY/Y+ VRqunOrL/o465rVOfXo0xXrWYRWnI1Wd7pZoQU7KUFpwr7B5YaU8LJKztykTRE1MtlY+dUUzo ffQct3nz8ziDCOyE0p3K1SCWtFHqwFHPCZLICyWuiAhEOSs26OtrhVDNN8AD6No8oBdseO/DF Cvnu5aa3LbF0/WmjxJ6REnMTioTjDGE4ASNWobAbRkUY5cp1pgnJkElBwrS1UbjJh58k5fyOK m75Ycp4K5V5MwoZut+TAOSpjAs5VWr3NgJ9KLBqSQ6O0cecP6NnM1hUw+IABdOXdSPAPb8qsX 3E/S2nLB6zQB56Ndp2J8/aBaWKT0A+3MiHjfdNucJbtC4W+NiW4g3sMz0puUc0fY23ygAA8wv t5axKNTjGksVxMlByf+T4yEXfPt5ST19U2Qri2lXAP3nbea77YUci+I8aEWrIAYcvKADqpYVF SEgM/Ya2/IJOBNk4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2224 Lines: 49 On Thursday, October 27, 2016 4:12:54 PM CEST Dmitry Torokhov wrote: > On Thu, Oct 27, 2016 at 03:25:43PM -0700, Deepa Dinamani wrote: > > > If users are forced to update to adapt to the new event format, should > > > we consider more radical changes? For example, does it make sense to > > > send timestamp on every event? Maybe we should only send it once per > > > event packet (between EV_SYN/SYN_REPORT)? What granularity do we need? > > > Is there anything else in current protocol that we'd like to change? > > > > I did see the thread with Pingbo's patches where you had a similar comment. > > > > I see my series as decoupling the kernel input event format from the > > userspace format. > > The formats also are really the same still. > > Could this be considered the first step towards changing the protocol? > > I really do not see the point. I think we agree that the current > protocol is not working past 2038 and it does not seem we can fix it > transparently for the user. So we need to define new protocol and let > kernel and clients negotiate which one is used. This work is not primarily about fixing the protocol to work beyond 2038 (although as a side-effect it will work until 2106). The main intention here is to not break existing applications when they get recompiled against a C library that defines time_t as 64-bit. > I am not concerned about in-kernel representation much as it does not > get stored anywhere so we can adjust it as needed without too much > effort. > > > The protocol changes might need new interfaces to be defined between libraries. > > And, could end up being a substantial change. > > Would a step by step approach make sense? > > It would depend largely on the scope. I think we should do those two things completely independently. We need to do something now to preserve the current interfaces for the glibc changes that are coming soon [1], and Deepa's patches do that (though I now realize the changelog doesn't mention the requirement). An overhaul of the input_event handling with a new modern but incompatible format may or may not be a good idea, but this should be decided independently. Arnd [1] https://sourceware.org/glibc/wiki/Y2038ProofnessDesign