mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Support SSTC while PM operations
@ 2024-10-28  3:39 Nick Hu
  2024-10-28  3:39 ` [PATCH v3 1/2] riscv: Add stimecmp save and restore Nick Hu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nick Hu @ 2024-10-28  3:39 UTC (permalink / raw)
  To: greentime.hu, zong.li, Rafael J. Wysocki, Pavel Machek,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, Daniel Lezcano,
	Thomas Gleixner, Andrew Jones, Conor Dooley, Samuel Holland,
	Sunil V L, Nick Hu, linux-pm, linux-riscv, linux-kernel

When the cpu is going to be hotplug, stop the stimecmp to prevent pending
interrupt.
When the cpu is going to be suspended, save the stimecmp before entering
the suspend state and restore it in the resume path.

changes in v3:
1. Update the commit description
2. Remove csr_read/write_hi_lo from the previous patch
Link: https://lore.kernel.org/lkml/20240926065422.226518-1-nick.hu@sifive.com/T/

changes in v2:
1. Add csr_read/write_hi_lo operations
2. Apply the suggestion from Anup.
Link: https://lore.kernel.org/lkml/20240829033904.477200-3-nick.hu@sifive.com/T/#u

Nick Hu (2):
  riscv: Add stimecmp save and restore
  clocksource/drivers/timer-riscv: Stop stimecmp when cpu hotplug

 arch/riscv/include/asm/suspend.h  |  4 ++++
 arch/riscv/kernel/suspend.c       | 14 ++++++++++++++
 drivers/clocksource/timer-riscv.c |  6 ++++++
 3 files changed, 24 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2025-03-27  3:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-28  3:39 [PATCH v3 0/2] Support SSTC while PM operations Nick Hu
2024-10-28  3:39 ` [PATCH v3 1/2] riscv: Add stimecmp save and restore Nick Hu
2024-10-28  4:01   ` Anup Patel
2024-10-28  3:39 ` [PATCH v3 2/2] clocksource/drivers/timer-riscv: Stop stimecmp when cpu hotplug Nick Hu
2024-10-28  9:44   ` Daniel Lezcano
2024-10-29  7:52     ` Nick Hu
2025-03-27  3:25 ` [PATCH v3 0/2] Support SSTC while PM operations patchwork-bot+linux-riscv

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

all inboxes | Powered by JetHome®