All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix arch timer trigger
@ 2016-08-01  9:54 ` Marc Zyngier
  0 siblings, 0 replies; 26+ messages in thread
From: Marc Zyngier @ 2016-08-01  9:54 UTC (permalink / raw)
  To: Thomas Gleixner, Daniel Lezcano, arm
  Cc: Mark Rutland, Jon Hunter, Dinh Nguyen, Carlo Caione,
	Kevin Hilman, Duc Dang, Florian Fainelli, Ray Jui, Scott Branden,
	Kukjin Kim, Jason Cooper, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Masahiro Yamada, Michal Simek,
	soren.brinkmann, Tirumalesh Chalamarla, Jan Glauber,
	Hou Zhiqiang, Wenbin Song, Yuan Yao, Liu Gang, Mingkai Hu,
	Rajesh Bhagat, linux-arm-kernel, linux-kernel, linux-amlogic,
	bcm-kernel-feedback-list, linux-samsung-soc

Recent fixes in the IRQ layer (properly propagating the trigger
settings in the interrupt controler instead of silently failing)
uncovered a number of cases where DTs are describing the timer trigger
wrong (edge, while the interrupt is definitely level).

The result is a kernel that doesn't boot anymore (forever waiting for
an interrupt that can't trigger) or behave erratically (missing
interrupts).

This very small series addresses the issue in two ways:
(1) enforcing level triggered in the driver and spitting out a nastygram
so that the user can find out about the issue
(2) fix the existing issue by repainting the broken device trees.

(1) makes sure that a new kernel can run with an old DT, and (2)
addresses the issue properly.

Note that the two patches can be applied independently.

Tested on APM Mustang, which is one of the broken platforms.

Thanks,

	M.

* From v1:
  - Make GICv3-based platforms use the level triggered setting even if
  the HW actually precisly describes high or low settings.
  - Rebased on top of linux/master as of today.

Marc Zyngier (2):
  clocksource/arm_arch_timer: Force per-CPU interrupt to be
    level-triggered
  arm64: dts: Fix broken architected timer interrupt trigger

 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi  |  8 +++----
 arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi        |  8 +++----
 arch/arm64/boot/dts/apm/apm-storm.dtsi             |  8 +++----
 arch/arm64/boot/dts/broadcom/ns2.dtsi              |  8 +++----
 arch/arm64/boot/dts/cavium/thunder-88xx.dtsi       |  8 +++----
 arch/arm64/boot/dts/exynos/exynos7.dtsi            |  8 +++----
 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi     |  8 +++----
 arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi     |  8 +++----
 arch/arm64/boot/dts/marvell/armada-ap806.dtsi      |  8 +++----
 .../boot/dts/socionext/uniphier-ph1-ld20.dtsi      |  8 +++----
 arch/arm64/boot/dts/xilinx/zynqmp.dtsi             |  8 +++----
 drivers/clocksource/arm_arch_timer.c               | 26 +++++++++++++++++++---
 12 files changed, 67 insertions(+), 47 deletions(-)

-- 
2.1.4

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

end of thread, other threads:[~2016-09-02 16:21 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-01  9:54 [PATCH v2 0/2] Fix arch timer trigger Marc Zyngier
2016-08-01  9:54 ` Marc Zyngier
2016-08-01  9:54 ` Marc Zyngier
2016-08-01  9:54 ` Marc Zyngier
2016-08-01  9:54 ` [PATCH v2 1/2] clocksource/arm_arch_timer: Force per-CPU interrupt to be level-triggered Marc Zyngier
2016-08-01  9:54   ` Marc Zyngier
2016-08-01  9:54   ` Marc Zyngier
2016-08-01  9:54   ` Marc Zyngier
2016-08-01 13:25   ` [tip:timers/urgent] " tip-bot for Marc Zyngier
2016-08-01 14:22   ` tip-bot for Marc Zyngier
2016-08-01  9:54 ` [PATCH v2 2/2] arm64: dts: Fix broken architected timer interrupt trigger Marc Zyngier
2016-08-01  9:54   ` Marc Zyngier
2016-08-01  9:54   ` Marc Zyngier
2016-08-01  9:54   ` Marc Zyngier
2016-08-01 10:00   ` Masahiro Yamada
2016-08-01 10:00     ` Masahiro Yamada
2016-08-01 10:00     ` Masahiro Yamada
2016-08-01 10:00     ` Masahiro Yamada
2016-09-02 16:20     ` Arnd Bergmann
2016-09-02 16:20       ` Arnd Bergmann
2016-09-02 16:20       ` Arnd Bergmann
2016-09-02 16:20       ` Arnd Bergmann
2016-08-22 10:26   ` Marc Zyngier
2016-08-22 10:26     ` Marc Zyngier
2016-08-22 10:26     ` Marc Zyngier
2016-08-22 10:26     ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.