Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1510025

Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106

From Dmitry Torokhov <dmitry.torokhov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106
Date 2016-10-27 04:30 +0200
Message-ID <swIC5-44L-1@gated-at.bofh.it> (permalink)
References <sttgd-4Dr-3@gated-at.bofh.it> <sttgd-4Dr-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Deepa,

On Mon, Oct 17, 2016 at 08:27:32PM -0700, Deepa Dinamani wrote:
> struct timeval is not y2038 safe.
> All usage of timeval in the kernel will be replaced by
> y2038 safe structures.
> 
> struct input_event maintains time for each input event.
> Real time timestamps are not ideal for input as this
> time can go backwards as noted in the patch a80b83b7b8
> by John Stultz. Hence, having the input_event.time fields
> only big enough for monotonic and boot times are
> sufficient.
> 
> Leave the original input_event as is. This is to maintain
> backward compatibility with existing userspace interfaces
> that use input_event.
> Introduce a new replacement struct raw_input_event.
> This replaces timeval with struct input_timeval. This structure
> maintains time in __kernel_ulong_t or compat_ulong_t to allow
> for architectures to override types as in the case of x32.
> 
> The change requires any userspace utilities reading or writing
> from event nodes to update their reading format to match
> raw_input_event. The changes to the popular libraries will be
> posted along with the kernel changes.
> The driver version is also updated to reflect the change in
> event format.

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?

Thanks.

-- 
Dmitry

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Deepa Dinamani <deepa.kernel@gmail.com> - 2016-10-18 05:30 +0200
  Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-10-27 04:30 +0200
    Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Deepa Dinamani <deepa.kernel@gmail.com> - 2016-10-28 00:30 +0200
      Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-10-28 01:20 +0200
        Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Arnd Bergmann <arnd@arndb.de> - 2016-10-28 14:30 +0200
          Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Deepa Dinamani <deepa.kernel@gmail.com> - 2016-10-30 05:40 +0100
  Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Peter Hutterer <peter.hutterer@who-t.net> - 2016-10-27 05:00 +0200
    Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Deepa Dinamani <deepa.kernel@gmail.com> - 2016-10-28 00:30 +0200
      Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Peter Hutterer <peter.hutterer@who-t.net> - 2016-10-28 06:50 +0200
        Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Arnd Bergmann <arnd@arndb.de> - 2016-10-28 14:50 +0200
        Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Deepa Dinamani <deepa.kernel@gmail.com> - 2016-10-30 05:30 +0100
          Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Peter Hutterer <peter.hutterer@who-t.net> - 2016-10-31 11:40 +0100
  Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Arnd Bergmann <arnd@arndb.de> - 2016-10-28 14:50 +0200
    Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Deepa Dinamani <deepa.kernel@gmail.com> - 2016-10-28 17:20 +0200
      Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Arnd Bergmann <arnd@arndb.de> - 2016-10-28 17:50 +0200
        Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Deepa Dinamani <deepa.kernel@gmail.com> - 2016-10-28 23:40 +0200
          Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Arnd Bergmann <arnd@arndb.de> - 2016-10-28 23:50 +0200
            Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-10-29 00:00 +0200
              Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106 Arnd Bergmann <arnd@arndb.de> - 2016-10-29 00:10 +0200

csiph-web