1. 17 May, 2019 1 commit
    • Thomas Gleixner's avatar
      Merge tag 'timers-v5.2' of http://git.linaro.org/people/daniel.lezcano/linux into timers/core · ea7a5f90
      Thomas Gleixner authored
      Pull clockevent updates from Daniel Lezcano:
      
       - Add compatible string for suniv for sun4i (Mesih Kilinc)
      
       - Add COMPILE_TEST option for sp804 (David Abdurachmanov)
      
       - Replace the compensation time when suspend happens on tegra with the one
         provided by the generic framework (Joseph Lo)
      
       - Cleanup, shutdown and oneshot mode fix on milbeaut timer (Sugaya Taichi)
      
       - Atmel TCB rework to fix boot failure on boards without PIT or misfunction
         on system using a preempt-rt kernel (Alexandre Belloni)
      ea7a5f90
  2. 02 May, 2019 16 commits
  3. 19 Apr, 2019 1 commit
  4. 29 Mar, 2019 1 commit
  5. 28 Mar, 2019 1 commit
    • Thomas Gleixner's avatar
      timekeeping: Force upper bound for setting CLOCK_REALTIME · 7a8e61f8
      Thomas Gleixner authored
      Several people reported testing failures after setting CLOCK_REALTIME close
      to the limits of the kernel internal representation in nanoseconds,
      i.e. year 2262.
      
      The failures are exposed in subsequent operations, i.e. when arming timers
      or when the advancing CLOCK_MONOTONIC makes the calculation of
      CLOCK_REALTIME overflow into negative space.
      
      Now people start to paper over the underlying problem by clamping
      calculations to the valid range, but that's just wrong because such
      workarounds will prevent detection of real issues as well.
      
      It is reasonable to force an upper bound for the various methods of setting
      CLOCK_REALTIME. Year 2262 is the absolute upper bound. Assume a maximum
      uptime of 30 years which is plenty enough even for esoteric embedded
      systems. That results in an upper bound of year 2232 for setting the time.
      
      Once that limit is reached in reality this limit is only a small part of
      the problem space. But until then this stops people from trying to paper
      over the problem at the wrong places.
      Reported-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
      Reported-by: default avatarHongbo Yao <yaohongbo@huawei.com>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Stephen Boyd <sboyd@kernel.org>
      Cc: Miroslav Lichvar <mlichvar@redhat.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lkml.kernel.org/r/alpine.DEB.2.21.1903231125480.2157@nanos.tec.linutronix.de
      7a8e61f8
  6. 24 Mar, 2019 4 commits
  7. 23 Mar, 2019 2 commits
  8. 22 Mar, 2019 3 commits
  9. 17 Mar, 2019 11 commits