linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] WFE for long delays
@ 2017-09-29 10:52 Julien Thierry
  2017-09-29 10:52 ` [PATCH v3 1/2] arm_arch_timer: Expose event stream status Julien Thierry
  2017-09-29 10:52 ` [PATCH v3 2/2] arm64: use WFE for long delays Julien Thierry
  0 siblings, 2 replies; 15+ messages in thread
From: Julien Thierry @ 2017-09-29 10:52 UTC (permalink / raw)
  To: linux-arm-kernel

It was pointed out that there are some windows where the event stream might not
be configured, meaning we cannot safely use WFE (e.g. when using PSCI
CPU_SUSPEND for idle, PSCI might reset CPU state).

The first patch provide a function to check whether the task is in state where
it can expect events from the event stream.

Second patch actually makes use of WFE in delays.

Changes since v1:
- Keep track of event stream state
- Do not use WFE when event stream might be misconfigured

Changes since v2:
- Use cpumask to track event stream state instead of percpu variable
- Tidy a bit code in arm64/lib/delay
- Do not factor asm-generic/delay code

Julien Thierry (2):
  arm_arch_timer: Expose event stream status
  arm64: use WFE for long delays

 arch/arm/include/asm/arch_timer.h    |  1 +
 arch/arm64/include/asm/arch_timer.h  |  1 +
 arch/arm64/lib/delay.c               | 23 +++++++++++++++++++----
 drivers/clocksource/arm_arch_timer.c | 20 ++++++++++++++++++--
 include/clocksource/arm_arch_timer.h | 10 +++++++++-
 5 files changed, 48 insertions(+), 7 deletions(-)

--
1.9.1

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

end of thread, other threads:[~2017-10-12 12:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-29 10:52 [PATCH v3 0/2] WFE for long delays Julien Thierry
2017-09-29 10:52 ` [PATCH v3 1/2] arm_arch_timer: Expose event stream status Julien Thierry
2017-10-11 15:14   ` Will Deacon
2017-10-12  8:38     ` Julien Thierry
2017-10-12  8:58     ` Julien Thierry
2017-10-12  9:27   ` Suzuki K Poulose
2017-10-12  9:30     ` Will Deacon
2017-10-12  9:40       ` Julien Thierry
2017-10-12 10:26         ` Will Deacon
2017-10-12 12:28           ` Julien Thierry
2017-09-29 10:52 ` [PATCH v3 2/2] arm64: use WFE for long delays Julien Thierry
2017-10-11 15:13   ` Will Deacon
2017-10-12  8:47     ` Julien Thierry
2017-10-12  8:52       ` Will Deacon
2017-10-12  8:54         ` Julien Thierry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).