Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Question] About handling PMU context loss in the deepest idle state where the core is powered down
@ 2020-01-09  2:43 Xiongfeng Wang
  2020-01-09 15:03 ` Will Deacon
  0 siblings, 1 reply; 5+ messages in thread
From: Xiongfeng Wang @ 2020-01-09  2:43 UTC (permalink / raw)
  To: will, mark.rutland
  Cc: wangzhe59, Catalin Marinas, huawei.libin, guohanjun,
	wangxiongfeng2, linux-arm-kernel

Hi Will, Mark,

Sorry to bother you. It's just that we have come across some problems about PMU recently.

We are working on deep power state on CPU cores. In the deepest idle state, the core will be
powered down. In our implementation, the PMU and the core are in the same power domain,
so the PMU will also be powered down. But I didn't find where we saved the PMU context
in kernel before entering the deepest idle state.

Before we enter the system sleep state, we update the kernel PMU counter and stop the PMU
in 'cpu_pm_pmu_notify()'. But we didn't do that before we enter idle state.
I only find some system registers saving in 'psci_cpu_suspend_enter()->cpu_susend()->cpu_do_suspend()'

Do you have some suggestion about how we can handle this problem ?
Should we save and restore the PMU context before and after the deepest idle state . I don't know
if we can take care of the PMU  counters and interrupts properly by saving and restoring
the PMU registers.
Or we should update the kernel counter and stop the PMU, like what we did in system sleep situation.
Or we should let the firmware to handle the saving and restoring problem.

Thanks,
Xiongfeng


_______________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2020-01-10  3:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-09  2:43 [Question] About handling PMU context loss in the deepest idle state where the core is powered down Xiongfeng Wang
2020-01-09 15:03 ` Will Deacon
2020-01-09 16:46   ` Lorenzo Pieralisi
2020-01-10  3:28     ` Xiongfeng Wang
2020-01-10  3:45   ` Xiongfeng Wang

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