Linux M68K Architecture development
 help / color / mirror / Atom feed
* [PATCH v2 0/9] clocksource/drivers/timer-goldfish: Fix bugs and add DT support
@ 2026-11-26 18:10 Kuan-Wei Chiu
  2026-11-26 18:10 ` [PATCH v2 1/9] clocksource/drivers/timer-goldfish: Fix latch corruption with spinlock Kuan-Wei Chiu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Kuan-Wei Chiu @ 2026-11-26 18:10 UTC (permalink / raw)
  To: daniel.lezcano, tglx
  Cc: pjw, palmer, aou, geert, laurent, marscheng, eleanor15x, jserv,
	linux-kernel, linux-riscv, linux-m68k, Kuan-Wei Chiu

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.
---
Changes in v2:
- Initialize timerdrv->ced.irq alongside cpumask so SMP tick
registration operates on the timer IRQ instead of IRQ 0.
- Set timerdrv->ced.rating to 100 as a base-level rating.
- Change the Kconfig dependency from !RTC_DRV_GOLDFISH to
RTC_DRV_GOLDFISH=n to also exclude the module case.
- Rebase onto latest master.

Link to v1: https://lore.kernel.org/r/20261105161702.3515900-1-visitorckw@gmail.com

Kuan-Wei Chiu (9):
  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 clockevent cpumask and irq
  clocksource/drivers/timer-goldfish: Set clock_event_device rating
  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 | 115 +++++++++++++++++++++------
 3 files changed, 101 insertions(+), 25 deletions(-)

-- 
2.56.1.839.g22a8290db9-goog


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

end of thread, other threads:[~2026-11-26 18:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 18:10 [PATCH v2 0/9] clocksource/drivers/timer-goldfish: Fix bugs and add DT support Kuan-Wei Chiu
2026-11-26 18:10 ` [PATCH v2 1/9] clocksource/drivers/timer-goldfish: Fix latch corruption with spinlock Kuan-Wei Chiu
2026-11-26 18:10 ` [PATCH v2 2/9] clocksource/drivers/timer-goldfish: Fix oneshot mode spurious interrupt Kuan-Wei Chiu
2026-11-26 18:10 ` [PATCH v2 3/9] clocksource/drivers/timer-goldfish: Fix resource leaks in init Kuan-Wei Chiu
2026-11-26 18:10 ` [PATCH v2 4/9] clocksource/drivers/timer-goldfish: Set CLOCK_SOURCE_IS_CONTINUOUS flag Kuan-Wei Chiu
2026-11-26 18:10 ` [PATCH v2 5/9] clocksource/drivers/timer-goldfish: Drop redundant max_idle_ns setting Kuan-Wei Chiu
2026-11-26 18:10 ` [PATCH v2 6/9] clocksource/drivers/timer-goldfish: Set clockevent cpumask and irq Kuan-Wei Chiu
2026-11-26 18:10 ` [PATCH v2 7/9] clocksource/drivers/timer-goldfish: Set clock_event_device rating Kuan-Wei Chiu
2026-11-26 18:11 ` [PATCH v2 8/9] clocksource/drivers/timer-goldfish: Add device tree probing support Kuan-Wei Chiu
2026-11-26 18:11 ` [PATCH v2 9/9] MAINTAINERS: Add entry for goldfish timer driver Kuan-Wei Chiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox