linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] clocksource/arm_arch_timer: Removing the static branch on errata handling
@ 2019-04-08 15:49 Marc Zyngier
  2019-04-08 15:49 ` [PATCH 1/7] ARM: vdso: Remove dependency with the arch_timer driver internals Marc Zyngier
                   ` (6 more replies)
  0 siblings, 7 replies; 28+ messages in thread
From: Marc Zyngier @ 2019-04-08 15:49 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel
  Cc: Mark Rutland, Russell King, Catalin Marinas, Daniel Lezcano,
	Will Deacon, Wim Van Sebroeck, Valentin Schneider, Guenter Roeck

The static key used to deal with the errata workaround that plague a
significant number of arm64 systems (who thought that building a timer
was that hard?) has proved to be a disaster when dealing with
lockdep. We try to activate it in contexts that were never expected,
and things break pretty loudly.

This series takes the easy way out and removes the static key
altogether. It always looked like premature optimisation anyway, and
some of the hooks can be implemented in saner ways. To get there, some
unrelated bits have to be fixed first: the 32bit vdso as well as some
of the arm64 stuff.

Marc Zyngier (7):
  ARM: vdso: Remove dependency with the arch_timer driver internals
  watchdog/sbsa: Use arch_timer_read_counter instead of
    arch_counter_get_cntvct
  arm64: Use arch_timer_read_counter instead of arch_counter_get_cntvct
  clocksource/arm_arch_timer: Direcly assign set_next_event workaround
  clocksource/arm_arch_timer: Drop use of static key in
    arch_timer_reg_read_stable
  clocksource/arm_arch_timer: Remove use of workaround static key
  clocksource/arm_arch_timer: Use arch_timer_read_counter to access
    stable counters

 arch/arm/include/asm/arch_timer.h    |  18 ++++-
 arch/arm/include/asm/cp15.h          |   2 +
 arch/arm/vdso/vgettimeofday.c        |   5 +-
 arch/arm64/include/asm/arch_timer.h  |  78 +++++++++++++-----
 arch/arm64/kernel/traps.c            |   4 +-
 drivers/clocksource/arm_arch_timer.c | 115 +++++++++++++--------------
 drivers/watchdog/sbsa_gwdt.c         |   2 +-
 7 files changed, 139 insertions(+), 85 deletions(-)

-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2019-05-03 20:32 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08 15:49 [PATCH 0/7] clocksource/arm_arch_timer: Removing the static branch on errata handling Marc Zyngier
2019-04-08 15:49 ` [PATCH 1/7] ARM: vdso: Remove dependency with the arch_timer driver internals Marc Zyngier
2019-04-08 15:58   ` Mark Rutland
2019-04-15 10:46   ` Marc Zyngier
2019-04-30 14:23   ` Will Deacon
2019-04-08 15:49 ` [PATCH 2/7] watchdog/sbsa: Use arch_timer_read_counter instead of arch_counter_get_cntvct Marc Zyngier
2019-04-08 15:59   ` Mark Rutland
2019-04-08 18:07   ` Guenter Roeck
2019-04-09  7:43     ` Marc Zyngier
2019-04-08 15:49 ` [PATCH 3/7] arm64: " Marc Zyngier
2019-04-08 15:59   ` Mark Rutland
2019-04-08 15:49 ` [PATCH 4/7] clocksource/arm_arch_timer: Direcly assign set_next_event workaround Marc Zyngier
2019-04-08 16:02   ` Mark Rutland
2019-04-11 17:17   ` Daniel Lezcano
2019-04-15 10:18     ` Marc Zyngier
2019-04-08 15:49 ` [PATCH 5/7] clocksource/arm_arch_timer: Drop use of static key in arch_timer_reg_read_stable Marc Zyngier
2019-04-08 16:04   ` Mark Rutland
2019-04-15 11:04   ` Daniel Lezcano
2019-04-08 15:49 ` [PATCH 6/7] clocksource/arm_arch_timer: Remove use of workaround static key Marc Zyngier
2019-04-08 16:05   ` Mark Rutland
2019-04-15 11:07   ` Daniel Lezcano
2019-04-08 15:49 ` [PATCH 7/7] clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters Marc Zyngier
2019-04-08 16:08   ` Mark Rutland
2019-04-15 12:16   ` Daniel Lezcano
2019-04-30 15:27     ` Marc Zyngier
2019-04-30 15:39       ` Valentin Schneider
2019-05-03 20:32         ` Daniel Lezcano
2019-05-03 20:31       ` Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).