[PATCHv6 08/11] ARM: msm: Divorce msm_timer from local timer API

2013-05-13 Thread Stephen Boyd
Separate the msm_timer from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Acked-by: David Brown Cc: Daniel Walker Cc: Bryan Huntsman Signed-off-by: Stephen Boyd --- arch/arm/mach

[PATCHv6 07/11] ARM: PRIMA2: Divorce timer-marco from local timer API

2013-05-13 Thread Stephen Boyd
Separate the marco local timers from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Cc: Barry Song Signed-off-by: Stephen Boyd --- drivers/clocksource/timer-marco.c | 100

[PATCHv6 05/11] ARM: OMAP2+: Divorce from local timer API

2013-05-13 Thread Stephen Boyd
Now that the TWD doesn't rely on the local timer API, OMAP can stop selecting it in Kconfig and relying on the config option to decide if it should call smp_twd functions. Acked-by: Santosh Shilimkar Acked-by: Tony Lindgren Signed-off-by: Stephen Boyd --- arch/arm/mach-omap2/Kconfi

[PATCHv6 04/11] ARM: smp_twd: Divorce smp_twd from local timer API

2013-05-13 Thread Stephen Boyd
Separate the smp_twd timers from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Cc: Russell King Cc: Tony Lindgren Tested-by: Mark Rutland Signed-off-by: Stephen Boyd --- arch/arm

[PATCHv3 0/4] Memory mapped architected timers

2013-05-13 Thread Stephen Boyd
es since v1: * Assigned counter reading function and commented why for arm64 * Updated DT binding to replace frame-id with frame-number and use status property Stephen Boyd (4): Documentation: Add memory mapped ARM architected timer binding clocksource: arch_timer: Pass clock event to set_mo

[PATCHv3 3/4] clocksource: arch_timer: Push the read/write wrappers deeper

2013-05-13 Thread Stephen Boyd
We're going to introduce support to read and write the memory mapped timer registers in the next patch, so push the cp15 read/write functions one level deeper. This simplifies the next patch and makes it clearer what's going on. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: St

[PATCHv3 4/4] clocksource: arch_timer: Add support for memory mapped timers

2013-05-13 Thread Stephen Boyd
o much for hypervisor support, although it should be possible to support it by searching for at least two frames where one frame has the virtual capability and then updating KVM timers to support it. Cc: Mark Rutland Cc: Marc Zyngier Cc: Rob Herring Signed-off-by: Stephen Boyd --- drivers/c

[PATCHv3 2/4] clocksource: arch_timer: Pass clock event to set_mode callback

2013-05-13 Thread Stephen Boyd
There isn't any reason why we don't pass the event here and we'll need it in the near future for memory mapped arch timers anyway. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCHv3 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-05-13 Thread Stephen Boyd
etree-disc...@lists.ozlabs.org Cc: Marc Zyngier Cc: Mark Rutland Cc: Rob Herring Signed-off-by: Stephen Boyd --- .../devicetree/bindings/arm/arch_timer.txt | 59 -- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/arch_ti

Re: [PATCH] ARM: avoid mis-detecting some V7 cores in the decompressor

2013-05-15 Thread Stephen Boyd
On 05/08/13 14:47, Stephen Boyd wrote: > From: Brian Swetland > > Currently v7 CPUs with an MIDR that has no bits set in the range > [16:12] will be detected as old ARM CPUs with no caches and so > the cache will never be turned on during decompression. ARM's > Cortex c

Re: [patch 13/15] clockevents: Provide sysfs interface

2013-05-15 Thread Stephen Boyd
On 05/15/13 02:50, Thomas Gleixner wrote: > On Fri, 26 Apr 2013, Stephen Boyd wrote: > >> On 04/25, Thomas Gleixner wrote: >>> Provide a simple sysfs interface for the clockevent devices. Show the >>> current active clockevent device. >>> >> Neat.

Re: [PATCH RFC 0/2] clk: add metag specific gate/mux clocks

2013-05-15 Thread Stephen Boyd
On 05/10/13 08:02, James Hogan wrote: > This adds a metag architecture specific clk-gate and clk-mux which > extends the generic ones to use global lock2 to protect the register > fields. It is common with metag to have an RTOS running on a different > thread or core with access to different bits i

[PATCHv4 06/11] ARM: EXYNOS4: Divorce mct from local timer API

2013-04-08 Thread Stephen Boyd
Separate the mct local timers from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Cc: Kukjin Kim Signed-off-by: Stephen Boyd --- arch/arm/mach-exynos/mct.c | 60

[PATCHv4 09/11] clocksource: time-armada-370-xp: Fix sparse warning

2013-04-08 Thread Stephen Boyd
drivers/clocksource/time-armada-370-xp.c:217:13: warning: symbol 'armada_370_xp_timer_init' was not declared. Should it be static? Also remove the __init marking in the prototype as it's unnecessary along with the init.h include. Acked-by: Gregory CLEMENT Signed-off-b

[PATCHv4 01/11] clockevents: Prefer CPU local devices over global devices

2013-04-08 Thread Stephen Boyd
long as there isn't a higher rated tick device and any global clockevent will be bumped out into broadcast mode, fixing the problem described above. Reported-by: Mark Rutland Cc: John Stultz Cc: Thomas Gleixner Signed-off-by: Stephen Boyd --- kernel/time/tick-common.c | 5 +++-- 1 file

[PATCHv4 00/11] Remove ARM local timer API

2013-04-08 Thread Stephen Boyd
ks Changes since v1: * Picked up Mark's generic dummy timer driver * Split out omap changes into new patch Mark Rutland (1): clocksource: add generic dummy timer driver Stephen Boyd (10): clockevents: Prefer CPU local devices over global devices ARM: smp: Remove duplicate dummy t

[PATCHv4 10/11] clocksource: time-armada-370-xp: Divorce from local timer API

2013-04-08 Thread Stephen Boyd
Separate the armada 370xp local timers from the local timer API. This will allow us to remove ARM local timer support in the near future and makes this driver multi-architecture friendly. Acked-by: Gregory CLEMENT Tested-by: Gregory CLEMENT Signed-off-by: Stephen Boyd --- drivers/clocksource

[PATCHv4 07/11] ARM: PRIMA2: Divorce timer-marco from local timer API

2013-04-08 Thread Stephen Boyd
Separate the marco local timers from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Cc: Barry Song Signed-off-by: Stephen Boyd --- arch/arm/mach-prima2/timer-marco.c | 100

[PATCHv4 05/11] ARM: OMAP2+: Divorce from local timer API

2013-04-08 Thread Stephen Boyd
Now that the TWD doesn't rely on the local timer API, OMAP can stop selecting it in Kconfig and relying on the config option to decide if it should call smp_twd functions. Acked-by: Santosh Shilimkar Acked-by: Tony Lindgren Signed-off-by: Stephen Boyd --- arch/arm/mach-omap2/Kconfi

[PATCHv4 11/11] ARM: smp: Remove local timer API

2013-04-08 Thread Stephen Boyd
There are no more users of this API, remove it. Cc: Russell King Acked-by: Tony Lindgren Signed-off-by: Stephen Boyd --- arch/arm/Kconfig | 10 -- arch/arm/include/asm/localtimer.h | 34 --- arch/arm/kernel/smp.c | 69

[PATCHv4 08/11] ARM: msm: Divorce msm_timer from local timer API

2013-04-08 Thread Stephen Boyd
Separate the msm_timer from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Acked-by: David Brown Cc: Daniel Walker Cc: Bryan Huntsman Signed-off-by: Stephen Boyd --- arch/arm/mach

[PATCHv4 02/11] clocksource: add generic dummy timer driver

2013-04-08 Thread Stephen Boyd
imer using this facility. Signed-off-by: Mark Rutland Cc: John Stultz Cc: Thomas Gleixner [sboyd: Make percpu data static, use __this_cpu_ptr(), move to early_initcall to properly register on each CPU, only register if more than one CPU possible] Signed-off-by: Stephen Boy

[PATCHv4 04/11] ARM: smp_twd: Divorce smp_twd from local timer API

2013-04-08 Thread Stephen Boyd
Separate the smp_twd timers from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Cc: Russell King Cc: Tony Lindgren Tested-by: Mark Rutland Signed-off-by: Stephen Boyd --- arch/arm

[PATCHv4 03/11] ARM: smp: Remove duplicate dummy timer implementation

2013-04-08 Thread Stephen Boyd
Drop ARM's version of the dummy timer now that we have a generic implementation in drivers/clocksource. Cc: Russell King Signed-off-by: Stephen Boyd --- arch/arm/kernel/smp.c | 22 ++ 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/arch/arm/kernel/sm

[PATCH 0/4] Memory mapped architected timers

2013-04-08 Thread Stephen Boyd
final patch adds support for mmio timers. Patches are based on a recent patch from Mark that removes the physical count reading (clocksource: arch_timer: use virtual counter, message id <1364404312-4427-4-git-send-email-mark.rutl...@arm.com>). Stephen Boyd (4): Documentation: Add memory

[PATCH 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-08 Thread Stephen Boyd
etree-disc...@lists.ozlabs.org Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- .../devicetree/bindings/arm/arch_timer.txt | 62 -- 1 file changed, 59 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/arch_timer.txt b/Documentation/

[PATCH 2/4] ARM: arch_timers: Pass clock event to set_mode callback

2013-04-08 Thread Stephen Boyd
There isn't any reason why we don't pass the event here and we'll need it in the near future for memory mapped arch timers anyway. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 4/4] clocksource: arch_timer: Add support for memory mapped timers

2013-04-08 Thread Stephen Boyd
visor support, although it should be possible to support it by searching for the hyp frame instead of the kernel frame and updating KVM timers to support it. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- drivers/clocksource/arm_arch_timer.c

[PATCH 3/4] clocksource: arch_timer: Push the read/write wrappers deeper

2013-04-08 Thread Stephen Boyd
We're going to introduce support to read and write the memory mapped timer registers in the next patch, so push the cp15 read/write functions one level deeper. This simplifies the next patch and makes it clearer what's going on. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: St

Re: [PATCH 3/4] clocksource: arch_timer: Push the read/write wrappers deeper

2013-04-09 Thread Stephen Boyd
On 04/09/13 02:38, Mark Rutland wrote: > On Tue, Apr 09, 2013 at 03:30:22AM +0100, Stephen Boyd wrote: >> -static inline u32 arch_timer_reg_read(const int access, const int reg) >> +static inline u32 __arch_timer_reg_read(const int access, const int reg) > Rather than prefixing

Re: [PATCH 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-09 Thread Stephen Boyd
On 04/09/13 02:08, Mark Rutland wrote: > On Tue, Apr 09, 2013 at 03:30:20AM +0100, Stephen Boyd wrote: >> >> -** Timer node properties: >> +** CP15 Timer node properties: >> >> - compatible : Should at least contain one of >> "ar

Re: [PATCHv2] ARM: Push selects for TWD/SCU into machine entries

2013-04-09 Thread Stephen Boyd
On 03/26/13 10:34, Stephen Boyd wrote: > On 03/16/13 12:32, Stephen Boyd wrote: >> On 3/5/2013 2:34 PM, Arnd Bergmann wrote: >>> On Tuesday 05 March 2013, Stephen Boyd wrote: >>>> On 02/27/13 15:43, Stephen Warren wrote: >>>>> Seems simple enou

Re: [PATCHv4 01/11] clockevents: Prefer CPU local devices over global devices

2013-04-09 Thread Stephen Boyd
On 04/09/13 03:33, Mark Rutland wrote: > On Mon, Apr 08, 2013 at 10:27:23PM +0100, Stephen Boyd wrote: >> On an SMP system with only one global clockevent and a dummy >> clockevent per CPU we run into problems. We want the dummy >> clockevents to be registered as the per

Re: [patch 08/34] arm: Use generic idle loop

2013-04-30 Thread Stephen Boyd
On 04/25/13 14:01, Thomas Gleixner wrote: > On Thu, 25 Apr 2013, Stephen Boyd wrote: >> On 04/09/13 02:38, Russell King - ARM Linux wrote: >>> On Tue, Apr 09, 2013 at 11:20:31AM +0200, Thomas Gleixner wrote: >>>> On Mon, 8 Apr 2013, Russell King - ARM Linux wrote: &g

[PATCH 6/4] arm64: Move to generic sched_clock infrastructure

2013-04-30 Thread Stephen Boyd
the first read. Signed-off-by: Stephen Boyd --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/time.c | 11 ++- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 4f4c418..b941cca 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64

[PATCH 5/4] sched: Make ARM's sched_clock generic for all architectures

2013-04-30 Thread Stephen Boyd
Here's the patch to make sched_clock generic. I didn't know where to put it so I just made a new file in kernel/sched for now. Signed-off-by: Stephen Boyd --- arch/arm/Kconfig | 1 + arch/arm/common/timer-sp.c| 2 +-

[PATCH] ARM: avoid mis-detecting some V7 cores in the decompressor

2013-05-08 Thread Stephen Boyd
wetland [sboyd: Clarified and extended commit text] Signed-off-by: Stephen Boyd --- arch/arm/boot/compressed/head.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index fe4d9c3..a236190 100644 --- a/arch/arm/boot/compressed/he

Re: [PATCH] ARM: avoid mis-detecting some V7 cores in the decompressor

2013-05-08 Thread Stephen Boyd
On 05/08/13 14:47, Stephen Boyd wrote: > From: Brian Swetland > > Currently v7 CPUs with an MIDR that has no bits set in the range > [16:12] will be detected as old ARM CPUs with no caches and so I mean [15:12], sorry. -- Qualcomm Innovation Center, Inc. is a member of Code

Re: [PATCH v2 0/3] clk: implement remuxing during set_rate

2013-05-08 Thread Stephen Boyd
On 04/19/13 09:28, James Hogan wrote: > This patchset adds support for automatic selection of the best parent > for a clock mux, i.e. the one which can provide the closest clock rate > to that requested. It can be controlled by a new CLK_SET_RATE_REMUX flag > so that it doesn't happen unless explic

Re: [PATCH v2 0/3] clk: implement remuxing during set_rate

2013-05-09 Thread Stephen Boyd
On 05/09/13 02:02, James Hogan wrote: > On 09/05/13 00:36, Stephen Boyd wrote: >> On 04/19/13 09:28, James Hogan wrote: >>> This patchset adds support for automatic selection of the best parent >>> for a clock mux, i.e. the one which can provide the closest clock rate &g

Re: [PATCH v2 2/3] clk: add support for clock reparent on set_rate

2013-05-09 Thread Stephen Boyd
On 04/19/13 09:28, James Hogan wrote: > Add core support to allow clock implementations to select the best > parent clock when rounding a rate, e.g. the one which can provide the > closest clock rate to that requested. This is by way of adding a new > clock op, determine_rate(), which is like round

Re: [PATCH 0/4] ARM 64 bit sched_clock take #2

2013-04-23 Thread Stephen Boyd
On 04/22/13 13:46, Rob Herring wrote: > On 04/22/2013 12:00 PM, John Stultz wrote: >> On 04/19/2013 05:29 PM, Stephen Boyd wrote: >>> This is what I was thinking. I don't see why we can't move this to >>> generic code and have arm64 use it too. Those patches

Re: [PATCH 3.8-stable] ARM: 7699/1: sched_clock: Add more notrace to prevent

2013-04-24 Thread Stephen Boyd
On 04/24/13 17:16, Jonghwan Choi wrote: > This patch looks like it should be in the 3.8-stable tree, should we apply > it? Sure. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe from this list: send the line "unsubscribe linu

Re: [PATCH/RESEND] ARM: arch_timer: Silence debug preempt warnings

2013-04-25 Thread Stephen Boyd
On 04/17/13 16:26, Stephen Boyd wrote: > Hot-plugging with CONFIG_DEBUG_PREEMPT=y on a device with arm > architected timers causes a slew of "using smp_processor_id() in > preemptible" warnings: > > BUG: using smp_processor_id() in preemptible [] c

Re: [PATCHv2 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-25 Thread Stephen Boyd
Rob, Can I get your ack on this binding or do you think we need to change something? Thanks, Stephen On 04/15/13 14:33, Stephen Boyd wrote: > On 04/15/13 14:20, Rob Herring wrote: >> On Fri, Apr 12, 2013 at 7:27 PM, Stephen Boyd wrote: >>> @@ -26,3

Re: [patch 08/34] arm: Use generic idle loop

2013-04-25 Thread Stephen Boyd
#x27;m pretty sure that we need to apply this patch now that rcu_idle_enter()/exit() is called lower down in the idle loop. Kevin, did you test hotplug? 8<- From: Stephen Boyd Subject: [PATCH] ARM: smp: Drop RCU_NONIDLE usage in cpu_die() Before f7b861b (arm: Use generic idle loop,

Re: [PATCHv2 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-25 Thread Stephen Boyd
On 04/25/13 14:47, Rob Herring wrote: > On 04/15/2013 04:33 PM, Stephen Boyd wrote: >> On 04/15/13 14:20, Rob Herring wrote: >>> On Fri, Apr 12, 2013 at 7:27 PM, Stephen Boyd wrote: >>>> @@ -26,3 +30,52 @@ Example: >>>>

Re: [PATCHv2 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-25 Thread Stephen Boyd
On 04/25/13 16:06, Rob Herring wrote: > On 04/25/2013 05:48 PM, Stephen Boyd wrote: > >> We don't really care about CNTFRQ because it's duplicated into each >> view. We do care about CNTNSAR. Luckily the spec "just works" there in >> the sense that we

Re: [patch 13/15] clockevents: Provide sysfs interface

2013-04-26 Thread Stephen Boyd
On 04/25, Thomas Gleixner wrote: > Provide a simple sysfs interface for the clockevent devices. Show the > current active clockevent device. > Neat. Does this do anything about clockevents that aren't in use for the tick devices or broadcast device? > Index: tip/kernel/time/clockevents.c > =

[PATCH] ARM: msm: Fix uncompess.h tx underrun check

2013-04-10 Thread Stephen Boyd
ned-off-by: Stephen Boyd --- Nobody has noticed this so far so I'm ok waiting for 3.10 on this one. Also it doesn't improve stability (debug feature) so I don't see a reason to send it to stable. arch/arm/mach-msm/include/mach/uncompress.h | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-10 Thread Stephen Boyd
On 04/10/13 03:13, Mark Rutland wrote: + +- #size-cells : Must be 1. + +- ranges : Indicates parent and child bus address space are the same. + >>> Similarly, what if someone wants to write a more complex mapping for some >>> reason? >>> >>> We should be able to handle it i

Re: [PATCH 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-11 Thread Stephen Boyd
On 04/11/13 04:24, Mark Rutland wrote: > Could we say the reg for the second view is optional? > Yes, that's already covered in the binding. > Might we have a hardware / firmware configuration where the kernel can only > access > the secondary view? > I don't see how this is possible. The CNTAC

[PATCHv2 0/4] Memory mapped architected timers

2013-04-12 Thread Stephen Boyd
unction and commented why for arm64 * Updated DT binding to replace frame-id with frame-number and use status property Stephen Boyd (4): Documentation: Add memory mapped ARM architected timer binding ARM: arch_timers: Pass clock event to set_mode callback clocksource: arch_timer: Push the

[PATCHv2 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-12 Thread Stephen Boyd
etree-disc...@lists.ozlabs.org Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- .../devicetree/bindings/arm/arch_timer.txt | 59 -- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/arch_timer.txt b/Documentation/

[PATCHv2 4/4] clocksource: arch_timer: Add support for memory mapped timers

2013-04-12 Thread Stephen Boyd
o much for hypervisor support, although it should be possible to support it by searching for at least two frames where one frame has the virtual capability and then updating KVM timers to support it. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- drivers/clocksource/arm_arch_tim

[PATCHv2 3/4] clocksource: arch_timer: Push the read/write wrappers deeper

2013-04-12 Thread Stephen Boyd
We're going to introduce support to read and write the memory mapped timer registers in the next patch, so push the cp15 read/write functions one level deeper. This simplifies the next patch and makes it clearer what's going on. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: St

[PATCHv2 2/4] ARM: arch_timers: Pass clock event to set_mode callback

2013-04-12 Thread Stephen Boyd
There isn't any reason why we don't pass the event here and we'll need it in the near future for memory mapped arch timers anyway. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 de

Re: [PATCHv2] ARM: arch_timer: Silence debug preempt warnings

2013-04-12 Thread Stephen Boyd
On 04/06/13 03:41, Marc Zyngier wrote: > On Fri, 5 Apr 2013 13:57:29 -0700, Stephen Boyd > wrote: >> Hot-plugging with CONFIG_DEBUG_PREEMPT=y on a device with arm >> architected timers causes a slew of "using smp_processor_id() in >> preemptible" warnings: &

Re: [PATCHv2 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-15 Thread Stephen Boyd
On 04/15/13 14:20, Rob Herring wrote: > On Fri, Apr 12, 2013 at 7:27 PM, Stephen Boyd wrote: >> @@ -26,3 +30,52 @@ Example: >> <1 10 0xf08>; >> clock-frequency = <1>; >> }; >>

Re: [PATCH RFC 0/2] clk: add metag specific gate/mux clocks

2013-05-16 Thread Stephen Boyd
On 05/16/13 02:56, James Hogan wrote: > On 15/05/13 23:31, Stephen Boyd wrote: >> On 05/10/13 08:02, James Hogan wrote: >>> This adds a metag architecture specific clk-gate and clk-mux which >>> extends the generic ones to use global lock2 to protect the register &g

Re: [PATCH v4 2/5] clk: move some parent related functions upwards

2013-05-20 Thread Stephen Boyd
ion. This is separate from the following > patch primarily to ease readability of that patch. > > Signed-off-by: James Hogan > Cc: Mike Turquette > Cc: linux-arm-ker...@lists.infradead.org Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora

Re: [PATCH v4 3/5] clk: add support for clock reparent on set_rate

2013-05-20 Thread Stephen Boyd
On 05/20/13 06:28, James Hogan wrote: > diff --git a/Documentation/clk.txt b/Documentation/clk.txt > index b9911c2..3110ba4 100644 > --- a/Documentation/clk.txt > +++ b/Documentation/clk.txt > @@ -70,6 +70,10 @@ the operations defined in clk.h: > unsign

Re: [PATCHv6 03/11] ARM: smp: Remove duplicate dummy timer implementation

2013-05-20 Thread Stephen Boyd
On 05/13/13 12:26, Stephen Boyd wrote: > Drop ARM's version of the dummy timer now that we have a generic > implementation in drivers/clocksource. > > Cc: Russell King > Signed-off-by: Stephen Boyd Russell, can you please ack this patch and patch #11? > --- >

[PATCH] ARM: dts: msm: Fix bad register addresses

2013-05-20 Thread Stephen Boyd
Some bad copy/paste got in as well as too many zeroes. Fix everything up so that the registers after the @ sign are consistent with the first reg property. Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/msm8660-surf.dts | 4 ++-- arch/arm/boot/dts/msm8960-cdp.dts | 2 +- 2 files changed, 3

[PATCH] ARM: smp: Drop RCU_NONIDLE usage in cpu_die()

2013-05-20 Thread Stephen Boyd
RCU is not actually idle at this point. Cc: Russell King Acked-by: Paul E. McKenney Signed-off-by: Stephen Boyd --- arch/arm/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 4619177..78f1eb5 100644 --- a/arch/arm

Re: [PATCH 3/3] gpio: msm: Add device tree and irqdomain support for gpio-msm-v2

2013-05-21 Thread Stephen Boyd
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index 87d5670..f3c1978 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -165,7 +165,7 @@ config GPIO_MSM_V1 > > config GPIO_MSM_V2 > tristate "Qualcomm MSM GPIO v2" > - depends on GPIOLIB && ARCH_MSM > +

[RFC/PATCH 1/2] of: Assign of_device_id to matching device_node

2013-05-22 Thread Stephen Boyd
. Drivers can then get the entry pointer via dev->of_node->id_entry and access the .data field to differentiate which device they matched. Signed-off-by: Stephen Boyd --- drivers/of/device.c | 18 ++ include/linux/of.h| 1 + include/linux/of_device.h | 12 ++---

[RFC/PATCH 2/2] gpio/omap: Use of_node->id_entry directly

2013-05-22 Thread Stephen Boyd
Now that the driver core is assigning the of_device_id that matches to the of_node before calling probe we can skip this duplicate search and just use of_node->id_entry directly. Signed-off-by: Stephen Boyd --- drivers/gpio/gpio-omap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deleti

[RFC/PATCH 0/2] Remove most of_device_match() calls

2013-05-22 Thread Stephen Boyd
). Stephen Boyd (2): of: Assign of_device_id to matching device_node gpio/omap: Use of_node->id_entry directly drivers/gpio/gpio-omap.c | 4 +--- drivers/of/device.c | 18 ++ include/linux/of.h| 1 + include/linux/of_device.h | 12 ++-- 4 files chan

Re: [PATCH 1/3] ARM: msm: Remove gpiomux-v2 and re-organize MSM_GPIOMUX configs

2013-05-23 Thread Stephen Boyd
On 05/22/13 17:29, Rohit Vaswani wrote: > diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig > index fceb093..614e41e 100644 > --- a/arch/arm/mach-msm/Kconfig > +++ b/arch/arm/mach-msm/Kconfig > @@ -48,9 +48,7 @@ config ARCH_MSM8X60 > select CPU_V7 > select GPIO_MSM_V2 >

Re: [PATCH] ARM: avoid mis-detecting some V7 cores in the decompressor

2013-05-23 Thread Stephen Boyd
On 05/15/13 12:38, Stephen Boyd wrote: > On 05/08/13 14:47, Stephen Boyd wrote: >> From: Brian Swetland >> >> Currently v7 CPUs with an MIDR that has no bits set in the range >> [16:12] will be detected as old ARM CPUs with no caches and so >> the cac

Re: [PATCH] ARM: avoid mis-detecting some V7 cores in the decompressor

2013-05-24 Thread Stephen Boyd
On 05/24, Russell King - ARM Linux wrote: > On Thu, May 23, 2013 at 10:54:26AM -0700, Stephen Boyd wrote: > > On 05/15/13 12:38, Stephen Boyd wrote: > > > On 05/08/13 14:47, Stephen Boyd wrote: > > >> From: Brian Swetland > > >> > > >> Curr

Re: [PATCHv3 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-28 Thread Stephen Boyd
use the twd driver on a UP > system? Or would the overhead of handling frequency change make this > pointless? I don't see why not but I don't have any interest in pursuing it. > > On Wed, Mar 13, 2013 at 06:17:49PM +, Stephen Boyd wrote: >> diff --git a/arch/arm/K

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-29 Thread Stephen Boyd
On 03/29/13 02:24, ning.n.ji...@gmail.com wrote: > From: Ning Jiang > > Currently there are two problems when we try to stop local timer. > First, it calls set_mode function directly so mode state is not > updated for the clock event device. Second, it makes the device > unused instead of shutdown

Re: [PATCH v3] rtc: add devm_rtc_device_{register,unregister}()

2013-03-06 Thread Stephen Boyd
On 03/05/13 22:03, Venu Byravarasu wrote: > >> +/** >> + * devm_rtc_device_register - resource managed rtc_device_register() >> + * @name: the name of the device >> + * @dev: the device to register >> + * @ops: the rtc operations structure >> + * @owner: the module owner >> + * >> + * @return a str

[PATCH 01/10] clocksource: add generic dummy timer driver

2013-03-06 Thread Stephen Boyd
imer using this facility. Signed-off-by: Mark Rutland Cc: John Stultz Cc: Thomas Gleixner [sboyd: Make percpu data static, use __this_cpu_ptr(), s/dummy/dummy_timer/] Signed-off-by: Stephen Boyd --- drivers/clocksource/Makefile | 1 + drivers/clocksource/dum

[PATCH 06/10] ARM: PRIMA2: Divorce timer-marco from local timer API

2013-03-06 Thread Stephen Boyd
Separate the marco local timers from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Cc: Barry Song Signed-off-by: Stephen Boyd --- arch/arm/mach-prima2/timer-marco.c | 98

[PATCH 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-06 Thread Stephen Boyd
Separate the smp_twd timers from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Cc: Russell King Signed-off-by: Stephen Boyd --- arch/arm/Kconfig | 2 +- arch/arm/kernel

[PATCHv2 0/10] Remove ARM local timer API

2013-03-06 Thread Stephen Boyd
icked up Mark's generic dummy timer driver * Split out omap changes into new patch Mark Rutland (1): clocksource: add generic dummy timer driver Stephen Boyd (9): ARM: smp: Remove duplicate dummy timer implementation ARM: smp_twd: Divorce smp_twd from local timer API ARM: OMAP2+: Divorce

[PATCH 10/10] ARM: smp: Remove local timer API

2013-03-06 Thread Stephen Boyd
There are no more users of this API, remove it. Cc: Russell King Signed-off-by: Stephen Boyd --- arch/arm/Kconfig | 10 -- arch/arm/include/asm/localtimer.h | 34 --- arch/arm/kernel/smp.c | 69 --- 3 files

[PATCH 09/10] clocksource: time-armada-370-xp: Divorce from local timer API

2013-03-06 Thread Stephen Boyd
Separate the armada 370xp local timers from the local timer API. This will allow us to remove ARM local timer support in the near future and makes this driver multi-architecture friendly. Cc: Gregory CLEMENT Signed-off-by: Stephen Boyd --- drivers/clocksource/time-armada-370-xp.c | 85

[PATCH 07/10] ARM: msm: Divorce msm_timer from local timer API

2013-03-06 Thread Stephen Boyd
Separate the msm_timer from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Acked-by: David Brown Cc: Daniel Walker Cc: Bryan Huntsman Signed-off-by: Stephen Boyd --- arch/arm/mach

[PATCH 08/10] clocksource: time-armada-370-xp: Fix sparse warning

2013-03-06 Thread Stephen Boyd
drivers/clocksource/time-armada-370-xp.c:217:13: warning: symbol 'armada_370_xp_timer_init' was not declared. Should it be static? Also remove the __init marking in the prototype as it's unnecessary and drop the init.h file. Cc: Gregory CLEMENT Signed-off-by: Stephen Boy

[PATCH 04/10] ARM: OMAP2+: Divorce from local timer API

2013-03-06 Thread Stephen Boyd
Now that the TWD doesn't rely on the local timer API, OMAP can stop selecting it in Kconfig and relying on the config option to decide if it should call smp_twd functions. Cc: Santosh Shilimkar Cc: Tony Lindgren Signed-off-by: Stephen Boyd --- arch/arm/mach-omap2/Kconfig | 1 - arch/arm

[PATCH 02/10] ARM: smp: Remove duplicate dummy timer implementation

2013-03-06 Thread Stephen Boyd
Drop ARM's version of the dummy timer now that we have a generic implementation in drivers/clocksource. Cc: Russell King Signed-off-by: Stephen Boyd --- arch/arm/kernel/smp.c | 22 ++ 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/arch/arm/kernel/sm

[PATCH 05/10] ARM: EXYNOS4: Divorce mct from local timer API

2013-03-06 Thread Stephen Boyd
Separate the mct local timers from the local timer API. This will allow us to remove ARM local timer support in the near future and gets us closer to moving this driver to drivers/clocksource. Cc: Kukjin Kim Signed-off-by: Stephen Boyd --- arch/arm/mach-exynos/mct.c | 53

Re: [PATCH 01/10] clocksource: add generic dummy timer driver

2013-03-07 Thread Stephen Boyd
On 03/07/13 06:00, Thomas Gleixner wrote: > On Wed, 6 Mar 2013, Stephen Boyd wrote: > >> +static int __init dummy_timer_register(void) >> +{ >> +int err = register_cpu_notifier(&dummy_timer_cpu_nb); >> +if (err) >> +return err; >>

Re: [PATCH 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-07 Thread Stephen Boyd
On 03/07/13 16:40, Tony Lindgren wrote: > Hi, > > * Stephen Boyd [130306 17:53]: >> Separate the smp_twd timers from the local timer API. This will >> allow us to remove ARM local timer support in the near future and >> gets us closer to moving this driver to driver

Re: [PATCH 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-08 Thread Stephen Boyd
On 03/08/13 10:07, Tony Lindgren wrote: > > Adding that produces the following: > > ... > OMAP clockevent source: GPTIMER1 at 32768 Hz > sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms > OMAP clocksource: 32k_counter at 32768 Hz > Console: colour dummy device 80x30 > Lock

Re: [PATCH 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-08 Thread Stephen Boyd
On 03/08/13 11:48, Tony Lindgren wrote: > * Stephen Boyd [130308 10:21]: >> >> diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c >> index 081de6f..4ea3e9d 100644 >> --- a/arch/arm/kernel/smp_twd.c >> +++ b/arch/arm/kernel/smp_twd.c >> @@

Re: [PATCH 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-08 Thread Stephen Boyd
On 03/08/13 12:08, Tony Lindgren wrote: > * Stephen Boyd [130308 11:54]: >> On 03/08/13 11:48, Tony Lindgren wrote: >>> * Stephen Boyd [130308 10:21]: >>>> diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c >>>> index 081de6f..4ea3e9d 1

Re: [PATCH 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-08 Thread Stephen Boyd
On 03/08/13 12:29, Tony Lindgren wrote: > Applying that does not seem to help, but you might want to get vexpress > running anyways for some multiplatform sanity checks. > > I just built and installed qemu-linaro from their git, then ran the > command above. Looks like stock qemu does not work for

Re: [PATCH 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-11 Thread Stephen Boyd
On 03/11/13 10:28, Tony Lindgren wrote: > * Stephen Boyd [130308 17:10]: >> On 03/08/13 12:29, Tony Lindgren wrote: >>> Applying that does not seem to help, but you might want to get vexpress >>> running anyways for some multiplatform sanity checks. >>> >&g

Re: [PATCH 03/10] ARM: smp_twd: Divorce smp_twd from local timer API

2013-03-11 Thread Stephen Boyd
On 03/11/13 15:50, Tony Lindgren wrote: > * Stephen Boyd [130311 15:22]: >> Ok. qemu works for me before applying my patches. I've added this into >> the series before this patch to fix the boot issue. > OK thanks: > > Actually, it's worse. From reading the co

[PATCH] ARM: Fix XIP build due to PHYS_OFFSET definition moving

2012-08-02 Thread Stephen Boyd
__ section so we can define PHYS_OFFSET for all compilation units. Signed-off-by: Stephen Boyd --- I don't know if it's worth stable, seems that nobody has compiled XIP for a year (back to 2.6.39 days?). arch/arm/include/asm/memory.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[PATCH] ARM: Don't enable GENERIC_LOCKBREAK with ticket spinlocks

2012-08-03 Thread Stephen Boyd
ock member anymore. Signed-off-by: Stephen Boyd --- It seems we define the arch_spin_is_contended() macro but we don't use it on SMP && PREEMPT kernels? arch/arm/Kconfig | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e91c7cd..e4191c

[PATCH/TRIVIAL] ARM: Drop duplicate select for GENERIC_IRQ_PROBE

2012-08-03 Thread Stephen Boyd
Seems that Thomas' and my patches collided during the last merge window. Signed-off-by: Stephen Boyd --- arch/arm/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e91c7cd..b528d04 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@

[RFC/PATCH] ARM: smp: Fix cpu_up() racing with sys_reboot

2012-08-21 Thread Stephen Boyd
to begin with. Signed-off-by: Stephen Boyd --- Perhaps we can take the hotplug lock in the sys_reboot() case but I don't think that actually fixes everything. For example, in cases where machine_shutdown() is called from emergency_restart() we would have to take the hotplug lock which doesn&#x

Re: [PATCH 1/4] ARM: export read_current_timer

2012-08-22 Thread Stephen Boyd
uot; [drivers/video/udlfb.ko] undefined! > ERROR: "read_current_timer" [crypto/tcrypt.ko] undefined! > > Signed-off-by: Arnd Bergmann > Cc: Shinya Kuribayashi Acked-by: Stephen Boyd I ran into this last week but forgot to send the patch. Thanks. -- Sent by an employee of

Re: [PATCH 1/4] ARM: export read_current_timer

2012-08-22 Thread Stephen Boyd
On 08/22/12 10:49, Will Deacon wrote: > On the topic of the timer stuff: Shinya/Stephen, did you have a chance to > look at the registration stuff that was proposed? I'm happy to push it if > people will actually use it. Yes I have tested it on our internal trees and it looks good. I plan to send

<    2   3   4   5   6   7   8   9   10   11   >