Skip to content

RFC Increased clocksource validation and cleanups

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10clocksource: Simplify clocks_calc_max_nsecs logickernel/time/clocksource.c+3 -120 replies
2/10clocksource: Simplify logic around clocksource wrapping saftey marginskernel/time/clocksource.c kernel/time/sched_clock.c+14 -161 reply
3/10clocksource: Remove clocksource_max_deferment()kernel/time/clocksource.c+4 -163 replies
4/10clocksource: Add max_cycles to clocksource structureinclude/linux/clocksource.h kernel/time/clocksource.c kernel/time/sched_clock.c+16 -61 reply
5/10time: Add debugging checks to warn if we see delayskernel/time/jiffies.c kernel/time/timekeeping.c+19 -00 replies
6/10time: Cap clocksource reads to the clocksource max_cycles valuekernel/time/timekeeping.c+9 -011 replies
7/10time: Try to catch clocksource delta underflowskernel/time/timekeeping.c+7 -00 replies
8/10clocksource: Mostly kill clocksource_register()arch/s390/kernel/time.c arch/sparc/kernel/time_32.c include/linux/clocksource.h +2 more+47 -540 replies
9/10sparc: Convert to using clocksource_register_hz()arch/sparc/kernel/time_32.c+1 -50 replies
10/10clocksource: Add some debug info about clocksources being registeredkernel/time/clocksource.c+4 -03 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchStephen Boyd
1/10
2/10A-b
3/10
4/10A-b
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10][RFC] Increased clocksource validation and cleanups

So this series is the result of earlier discussions with Linus and his suggestions around improvements to clocksource validation in the hope we can more easily catch bad hardware.

There's also a few cleanups Linus suggested as well as a few I've been meaning to get to for awhile.

I'm still feeling cautious about capping the clocksource reads to the max_cycles values, and even more so with the underflow detection. So this isn't yet ready for merging, but I wanted to get some initial review and feedback since its not blowing up in my initial testing.

So let me know what you think, and hopefully we can get this into shape so it can get more testing and we can evaluate it for 3.20.

thanks
-john

Cc Dave Jones <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Richard Cochran <[email protected]>
Cc Prarit Bhargava <[email protected]>
Cc Stephen Boyd <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Martin Schwidefsky <[email protected]>

John Stultz (10):
clocksource: Simplify clocks_calc_max_nsecs logic
clocksource: Simplify logic around clocksource wrapping saftey margins
clocksource: Remove clocksource_max_deferment()
clocksource: Add max_cycles to clocksource structure
time: Add debugging checks to warn if we see delays
time: Cap clocksource reads to the clocksource max_cycles value
time: Try to catch clocksource delta underflows
clocksource: Mostly kill clocksource_register()
sparc: Convert to using clocksource_register_hz()
clocksource: Add some debug info about clocksources being registered

 arch/s390/kernel/time.c     |   2 +-
 arch/sparc/kernel/time_32.c |   6 +-
 include/linux/clocksource.h |  15 ++++-
 kernel/time/clocksource.c   | 143 ++++++++++++++++++--------------------------
 kernel/time/jiffies.c       |   5 +-
 kernel/time/sched_clock.c   |   6 +-
 kernel/time/timekeeping.c   |  34 +++++++++++
 7 files changed, 113 insertions(+), 98 deletions(-)
Signature · 1 line
1.9.1