Skip to content

clocksource/drivers/timer-goldfish: Fix bugs and add DT support

Kuan-Wei Chiu linux-m68k linux-riscv lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8clocksource/drivers/timer-goldfish: Fix latch corruption with spinlockdrivers/clocksource/timer-goldfish.c+6 -00 replies
2/8clocksource/drivers/timer-goldfish: Fix oneshot mode spurious interruptdrivers/clocksource/timer-goldfish.c+2 -20 replies
3/8clocksource/drivers/timer-goldfish: Fix resource leaks in initdrivers/clocksource/timer-goldfish.c+15 -30 replies
4/8clocksource/drivers/timer-goldfish: Set CLOCK_SOURCE_IS_CONTINUOUS flagdrivers/clocksource/timer-goldfish.c+1 -10 replies
5/8clocksource/drivers/timer-goldfish: Drop redundant max_idle_ns settingdrivers/clocksource/timer-goldfish.c+0 -10 replies
6/8clocksource/drivers/timer-goldfish: Set clock_event_device cpumaskdrivers/clocksource/timer-goldfish.c+1 -00 replies
7/8clocksource/drivers/timer-goldfish: Add device tree probing supportdrivers/clocksource/Kconfig drivers/clocksource/timer-goldfish.c+74 -240 replies
8/8MAINTAINERS: Add entry for goldfish timer driverMAINTAINERS+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] clocksource/drivers/timer-goldfish: Fix bugs and add DT support

The goldfish timer driver was previously only used and tested on single core m68k virt, but the same device is also present on other qemu virt machines such as riscv and or1k, where running on SMP exposes several issues.

Fix the concurrency, oneshot, and registration bugs in the driver, add device tree probing support so it can be used across these platforms, and add a MAINTAINERS entry.

Tested on qemu m68k virt and on qemu riscv64 virt with 4 SMP cores. On riscv64, testing was done by passing clocksource=goldfish_timer on the kernel command line and locally bumping the clock_event_device rating above the architected timer to verify both clocksource and oneshot clockevent operation.

Kuan-Wei Chiu (8):
clocksource/drivers/timer-goldfish: Fix latch corruption with spinlock clocksource/drivers/timer-goldfish: Fix oneshot mode spurious
interrupt
clocksource/drivers/timer-goldfish: Fix resource leaks in init clocksource/drivers/timer-goldfish: Set CLOCK_SOURCE_IS_CONTINUOUS
flag
clocksource/drivers/timer-goldfish: Drop redundant max_idle_ns setting clocksource/drivers/timer-goldfish: Set clock_event_device cpumask clocksource/drivers/timer-goldfish: Add device tree probing support
MAINTAINERS: Add entry for goldfish timer driver

 MAINTAINERS                          |   6 ++
 drivers/clocksource/Kconfig          |   5 +-
 drivers/clocksource/timer-goldfish.c | 113 +++++++++++++++++++++------
 3 files changed, 99 insertions(+), 25 deletions(-)
Signature · 1 line
2.56.0.398.g882cbad275-goog