All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
To: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>,
	Will Deacon <Will.Deacon@arm.com>,
	Catalin Marinas <Catalin.Marinas@arm.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: Re: [PATCH v6 0/5] ARM/ARM64 architected timer updates
Date: Fri, 30 Aug 2013 11:07:28 +0100	[thread overview]
Message-ID: <52206EE0.5020907@arm.com> (raw)
In-Reply-To: <1377788142-21388-1-git-send-email-Sudeep.KarkadaNagesha@arm.com>

On 29/08/13 15:55, Sudeep KarkadaNagesha wrote:
> 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 save and restore the value.
> 
Hi Russell,

Can you have a look at this series ?
If you are OK, can I have your ACK on arm specific changes(PATCH 2/5) ?

Regards,
Sudeep

> Changes v5->v6:
> 1. Disabling event stream by default on boot and enable it
>    only if CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
>    This removes runtime configuration of timer event stream.
> 2. Moved COMPAT_ELF_HWCAP_DEFAULT to arch/arm64/kernel/setup.c
> 
> Changes v4->v5:
> 1. Removed compat_dyn_elf_hwcap and used just compat_elf_hwcap as per
>    Catalin's suggestion
> 2. Instead of resetting event stream in CPU PM callbacks, saving and
>    restoring counter control register now.
> 
> 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 (4):
>   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 CPU PM notifier for ARM architected timer
> 
> Will Deacon (1):
>   drivers: clocksource: add support for ARM architected timer event
>     stream
> 
>  arch/arm/include/asm/arch_timer.h    | 36 ++++++++++++++++++++++----
>  arch/arm/include/uapi/asm/hwcap.h    |  1 +
>  arch/arm/kernel/setup.c              |  1 +
>  arch/arm64/include/asm/arch_timer.h  | 42 ++++++++++++++++++++++++++-----
>  arch/arm64/include/asm/hwcap.h       | 11 ++++----
>  arch/arm64/include/uapi/asm/hwcap.h  |  1 +
>  arch/arm64/kernel/setup.c            | 11 ++++++++
>  drivers/clocksource/Kconfig          | 14 +++++++++++
>  drivers/clocksource/arm_arch_timer.c | 49 ++++++++++++++++++++++++++++++++++++
>  include/clocksource/arm_arch_timer.h | 10 ++++++++
>  10 files changed, 160 insertions(+), 16 deletions(-)
> 



WARNING: multiple messages have this Message-ID (diff)
From: Sudeep.KarkadaNagesha@arm.com (Sudeep KarkadaNagesha)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 0/5] ARM/ARM64 architected timer updates
Date: Fri, 30 Aug 2013 11:07:28 +0100	[thread overview]
Message-ID: <52206EE0.5020907@arm.com> (raw)
In-Reply-To: <1377788142-21388-1-git-send-email-Sudeep.KarkadaNagesha@arm.com>

On 29/08/13 15:55, Sudeep KarkadaNagesha wrote:
> 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 save and restore the value.
> 
Hi Russell,

Can you have a look at this series ?
If you are OK, can I have your ACK on arm specific changes(PATCH 2/5) ?

Regards,
Sudeep

> Changes v5->v6:
> 1. Disabling event stream by default on boot and enable it
>    only if CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
>    This removes runtime configuration of timer event stream.
> 2. Moved COMPAT_ELF_HWCAP_DEFAULT to arch/arm64/kernel/setup.c
> 
> Changes v4->v5:
> 1. Removed compat_dyn_elf_hwcap and used just compat_elf_hwcap as per
>    Catalin's suggestion
> 2. Instead of resetting event stream in CPU PM callbacks, saving and
>    restoring counter control register now.
> 
> 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 (4):
>   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 CPU PM notifier for ARM architected timer
> 
> Will Deacon (1):
>   drivers: clocksource: add support for ARM architected timer event
>     stream
> 
>  arch/arm/include/asm/arch_timer.h    | 36 ++++++++++++++++++++++----
>  arch/arm/include/uapi/asm/hwcap.h    |  1 +
>  arch/arm/kernel/setup.c              |  1 +
>  arch/arm64/include/asm/arch_timer.h  | 42 ++++++++++++++++++++++++++-----
>  arch/arm64/include/asm/hwcap.h       | 11 ++++----
>  arch/arm64/include/uapi/asm/hwcap.h  |  1 +
>  arch/arm64/kernel/setup.c            | 11 ++++++++
>  drivers/clocksource/Kconfig          | 14 +++++++++++
>  drivers/clocksource/arm_arch_timer.c | 49 ++++++++++++++++++++++++++++++++++++
>  include/clocksource/arm_arch_timer.h | 10 ++++++++
>  10 files changed, 160 insertions(+), 16 deletions(-)
> 

  parent reply	other threads:[~2013-08-30 10:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 14:55 [PATCH v6 0/5] ARM/ARM64 architected timer updates Sudeep KarkadaNagesha
2013-08-29 14:55 ` Sudeep KarkadaNagesha
2013-08-29 14:55 ` [PATCH v6 1/5] ARM/ARM64: arch_timer: add macros for bits in control register Sudeep KarkadaNagesha
2013-08-29 14:55   ` Sudeep KarkadaNagesha
2013-08-29 14:55 ` [PATCH v6 2/5] ARM: arch_timer: add support to configure and enable event stream Sudeep KarkadaNagesha
2013-08-29 14:55   ` Sudeep KarkadaNagesha
2013-08-29 14:55 ` [PATCH v6 3/5] ARM64: " Sudeep KarkadaNagesha
2013-08-29 14:55   ` Sudeep KarkadaNagesha
2013-08-29 14:55 ` [PATCH v6 4/5] drivers: clocksource: add support for ARM architected timer " Sudeep KarkadaNagesha
2013-08-29 14:55   ` Sudeep KarkadaNagesha
2013-08-29 15:39   ` Catalin Marinas
2013-08-29 15:39     ` Catalin Marinas
2013-08-29 15:42     ` Sudeep KarkadaNagesha
2013-08-29 15:42       ` Sudeep KarkadaNagesha
2013-08-29 14:55 ` [PATCH v6 5/5] drivers: clocksource: add CPU PM notifier for ARM architected timer Sudeep KarkadaNagesha
2013-08-29 14:55   ` Sudeep KarkadaNagesha
2013-08-30 10:07 ` Sudeep KarkadaNagesha [this message]
2013-08-30 10:07   ` [PATCH v6 0/5] ARM/ARM64 architected timer updates Sudeep KarkadaNagesha
2013-08-30 11:43   ` Russell King - ARM Linux
2013-08-30 11:43     ` Russell King - ARM Linux
2013-08-30 14:04     ` Will Deacon
2013-08-30 14:04       ` Will Deacon
2013-08-30 15:46       ` Sudeep KarkadaNagesha
2013-08-30 15:46         ` Sudeep KarkadaNagesha
2013-08-30 16:35         ` Catalin Marinas
2013-08-30 16:35           ` Catalin Marinas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52206EE0.5020907@arm.com \
    --to=sudeep.karkadanagesha@arm.com \
    --cc=Catalin.Marinas@arm.com \
    --cc=Lorenzo.Pieralisi@arm.com \
    --cc=Will.Deacon@arm.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+kernel@arm.linux.org.uk \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.