linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/5] ARM/ARM64 architected timer updates
@ 2013-08-23 16:19 Sudeep KarkadaNagesha
  2013-08-23 16:19 ` [PATCH v4 1/5] ARM/ARM64: arch_timer: add macros for bits in control register Sudeep KarkadaNagesha
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Sudeep KarkadaNagesha @ 2013-08-23 16:19 UTC (permalink / raw)
  To: linux-arm-kernel

From: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>

This patch series adds support to configure the rate and enable the
event stream for architected timer. The event streams can be used to
impose a timeout on a wfe, to safeguard against any programming error
in case an expected event is not generated or even to implement
wfe-based timeouts for userspace locking implementations. This feature
can be disabled(enabled by default).

Since the timer control register is reset to zero on warm boot, CPU
PM notifier is added to re-initialize it.

Changes v3->v4:
1. Added a config option to en/disable the timer event stream feature.
   Due to this the ordering of the patches as well as some cosmetic
   code changes are done.( So dropped previous reviewed-by tags)
2. Removed exporting compat_dyn_elf_hwcap as there are no modules
   requiring it for now.

Changes v2->v3:
1. Moved ARM and ARM64 changes into separate patches
2. Added native hwcaps definations(ARM/ARM64) and compat-specific
   definitions(ARM64) to the users for the event stream feature. 

Changes v1->v2:
1. Saved event stream divider value on cold reset path and re-used it
   in CPU PM notifier instead of calculating every time.
2. Rebased on v3.11-rc2(to avoid conflicts with __cpuinit* deletion)
3. Dropped "ARM/ARM64: arch_timer: remove __cpuinit attribute for
   arch_counter_set_user_access"(already done as part of __cpuinit*
   deletion)

Regards,
Sudeep

Sudeep KarkadaNagesha (5):
  ARM/ARM64: arch_timer: add macros for bits in control register
  ARM: arch_timer: add support to configure and enable event stream
  ARM64: arch_timer: add support to configure and enable event stream
  drivers: clocksource: add support for ARM architected timer event
    stream
  drivers: clocksource: add CPU PM notifier for ARM architected timer

 arch/arm/include/asm/arch_timer.h    | 41 ++++++++++++++++++++---
 arch/arm/include/uapi/asm/hwcap.h    |  1 +
 arch/arm/kernel/setup.c              |  1 +
 arch/arm64/include/asm/arch_timer.h  | 48 +++++++++++++++++++++++----
 arch/arm64/include/asm/hwcap.h       |  7 +++-
 arch/arm64/include/uapi/asm/hwcap.h  |  1 +
 arch/arm64/kernel/setup.c            |  5 +++
 drivers/clocksource/Kconfig          | 14 ++++++++
 drivers/clocksource/arm_arch_timer.c | 64 ++++++++++++++++++++++++++++++++++++
 include/clocksource/arm_arch_timer.h | 10 ++++++
 10 files changed, 180 insertions(+), 12 deletions(-)

-- 
1.8.1.2

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

end of thread, other threads:[~2013-08-27 17:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23 16:19 [PATCH v4 0/5] ARM/ARM64 architected timer updates Sudeep KarkadaNagesha
2013-08-23 16:19 ` [PATCH v4 1/5] ARM/ARM64: arch_timer: add macros for bits in control register Sudeep KarkadaNagesha
2013-08-27 11:21   ` Catalin Marinas
2013-08-27 11:37     ` Sudeep KarkadaNagesha
2013-08-27 14:52       ` Catalin Marinas
2013-08-27 15:19         ` Sudeep KarkadaNagesha
2013-08-27 16:53           ` Catalin Marinas
2013-08-27 17:16             ` Sudeep KarkadaNagesha
2013-08-23 16:19 ` [PATCH v4 2/5] ARM: arch_timer: add support to configure and enable event stream Sudeep KarkadaNagesha
2013-08-23 16:19 ` [PATCH v4 3/5] ARM64: " Sudeep KarkadaNagesha
2013-08-27 11:19   ` Catalin Marinas
2013-08-27 11:31     ` Sudeep KarkadaNagesha
2013-08-23 16:19 ` [PATCH v4 4/5] drivers: clocksource: add support for ARM architected timer " Sudeep KarkadaNagesha
2013-08-23 16:19 ` [PATCH v4 5/5] drivers: clocksource: add CPU PM notifier for ARM architected timer Sudeep KarkadaNagesha
2013-08-27 11:22 ` [PATCH v4 0/5] ARM/ARM64 architected timer updates Catalin Marinas

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).