Re: [PATCH 3/3] ARM: Work around faulty ISAR0 register in some Krait CPUs

2013-03-18 Thread Stephen Boyd
On 03/17/13 07:28, Will Deacon wrote: > On Wed, Mar 13, 2013 at 01:32:01AM +0000, Stephen Boyd wrote: >> Some early versions of the Krait CPU design incorrectly indicate >> that they only support the UDIV and SDIV instructions in Thumb >> mode when they actually support them

Re: [PATCH 2/3] ARM: Detect support for SDIV/UDIV from ISAR0 register

2013-03-18 Thread Stephen Boyd
On 03/17/13 07:36, Will Deacon wrote: > On Wed, Mar 13, 2013 at 01:32:00AM +0000, Stephen Boyd wrote: >> The ISAR0 register indicates support for the SDIV and UDIV >> instructions in both the Thumb and ARM instruction set. Read the >> register to detect the supported instru

[PATCHv2 0/3] Detect UDIV/SDIV support from ISAR0

2013-03-18 Thread Stephen Boyd
henko (1): ARM: Work around faulty ISAR0 register in some Krait CPUs Stephen Boyd (2): ARM: Clear IDIVT hwcap if CONFIG_ARM_THUMB=n ARM: Detect support for SDIV/UDIV from ISAR0 register arch/arm/kernel/setup.c | 22 +- arch/arm/mm/proc-v7.S | 19 +-- 2

[PATCHv2 1/3] ARM: Clear IDIVT hwcap if CONFIG_ARM_THUMB=n

2013-03-18 Thread Stephen Boyd
Don't advertise support for the SDIV/UDIV thumb instructions if the kernel is not compiled with support for thumb userspace. This is in line with how we remove the THUMB hwcap in these configurations. Acked-by: Will Deacon Cc: Stepan Moskovchenko Signed-off-by: Stephen Boyd --- arc

[PATCHv2 2/3] ARM: Detect support for SDIV/UDIV from ISAR0 register

2013-03-18 Thread Stephen Boyd
cpu variant that supports these instructions. Acked-by: Will Deacon Cc: Stepan Moskovchenko Signed-off-by: Stephen Boyd --- arch/arm/kernel/setup.c | 20 arch/arm/mm/proc-v7.S | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/setup.c

[PATCHv2 3/3] ARM: Work around faulty ISAR0 register in some Krait CPUs

2013-03-18 Thread Stephen Boyd
Moskovchenko [sboyd: Rewrote commit text to reflect real reasoning now that we autodetect udiv/sdiv] Signed-off-by: Stephen Boyd --- arch/arm/mm/proc-v7.S | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index bcd3d48..f584d3f

Re: [PATCHv2 3/3] ARM: Work around faulty ISAR0 register in some Krait CPUs

2013-03-18 Thread Stephen Boyd
On 03/18/13 11:34, Will Deacon wrote: > On Mon, Mar 18, 2013 at 06:28:57PM +0000, Stephen Boyd wrote: >> From: Stepan Moskovchenko >> >> Some early versions of the Krait CPU design incorrectly indicate >> that they only support the UDIV and SDIV instructions in Thumb

[PATCH] irqchip: gic: fix irq_trigger return

2013-03-19 Thread Stephen Boyd
From: Abhijeet Dharmapurikar The genirq layer expects a 0 in case of failure but the code is returning -ENXIO. Fix it. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Stephen Boyd --- drivers/irqchip/irq-gic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

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

2013-03-20 Thread Stephen Boyd
On 03/20/13 10:09, Gregory CLEMENT wrote: > On 03/13/2013 07:17 PM, Stephen Boyd wrote: >> 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

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

2013-03-20 Thread Stephen Boyd
On 03/20/13 10:44, Gregory CLEMENT wrote: > On 03/20/2013 06:26 PM, Gregory CLEMENT wrote: >> On 03/20/2013 06:20 PM, Stephen Boyd wrote: >>> On 03/20/13 10:09, Gregory CLEMENT wrote: >>>> On 03/13/2013 07:17 PM, Stephen Boyd wrote: >>>>> Separate the a

[PATCH] ARM: arch_timer: Silence debug preempt warnings

2013-04-02 Thread Stephen Boyd
ible checks and silence the warning. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index d7ad425.

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

2013-04-02 Thread Stephen Boyd
On 03/22/13 08:43, 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: [PATCHv3 01/10] clocksource: add generic dummy timer driver

2013-04-04 Thread Stephen Boyd
On 03/26/13 04:28, Mark Rutland wrote: > On Tue, Mar 26, 2013 at 02:14:53AM +0000, Stephen Boyd wrote: >> Ok. Thanks for clearing up my confusion. >> >> Like you say, increasing the dummy timer rating seems like a hack. But >> it also sounds like you want to keep the du

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

2013-04-04 Thread Stephen Boyd
On 4/2/2013 1:31 PM, 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: [PATCH] ARM: arch_timer: Silence debug preempt warnings

2013-04-05 Thread Stephen Boyd
On 04/05/13 03:04, Marc Zyngier wrote: > >>> drivers/clocksource/arm_arch_timer.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/clocksource/arm_arch_timer.c >>> b/drivers/clocksource/arm_arch_timer.c >>> index d7ad425..5928c29 100644 >>> --- a/drivers/cloc

[PATCHv2] ARM: arch_timer: Silence debug preempt warnings

2013-04-05 Thread Stephen Boyd
pu_ptr() access down into the cases to force the checks to occur only in non-preemptible contexts. Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- Changes since v1: * Pushed down this_cpu_ptr and added a comment drivers/clocksource/arm_arch_timer.c | 10 ++ 1

Re: [PATCH 2/2] regmap: spi: Support asynchronous I/O for SPI

2013-01-28 Thread Stephen Boyd
On 01/28/13 17:39, Mark Brown wrote: > On Mon, Jan 28, 2013 at 11:38:50AM -0800, Stephen Boyd wrote: >> On 01/27/13 06:12, Mark Brown wrote: >>> +static int regmap_spi_async_write(void *context, >>> + cons

Re: [PATCH 2/2] regmap: spi: Support asynchronous I/O for SPI

2013-01-28 Thread Stephen Boyd
On 01/27/13 06:12, Mark Brown wrote: > diff --git a/drivers/base/regmap/regmap-spi.c > b/drivers/base/regmap/regmap-spi.c > index ffa46a9..bb19592 100644 > --- a/drivers/base/regmap/regmap-spi.c > +++ b/drivers/base/regmap/regmap-spi.c > @@ -15,6 +15,21 @@ > #include > #include > > +#include

Re: [PATCH 8/8] ARM: smp: Remove local timer API

2013-02-23 Thread Stephen Boyd
thinking the same thing while writing this patchset. > > Otherwise, I have a few comments on the patch below. > > On Fri, Feb 22, 2013 at 07:27:19AM +, Stephen Boyd wrote: >> There are no more users of this API, remove it. > As we're leaving the dummy timers, i

Re: [PATCH] ARM: vfp: fix fpsid register subarchitecture field mask width

2013-02-25 Thread Stephen Boyd
On 02/25/13 03:18, Will Deacon wrote: > On Fri, Feb 22, 2013 at 11:46:18PM +0000, Stephen Boyd wrote: >> On 2/22/2013 10:27 AM, Will Deacon wrote: >>> What value do you have in fpsid? As far as I can tell, the >>> subarchitecture bits 6:0 should start at 0x40 for you,

Re: [PATCH] ARM: vfp: fix fpsid register subarchitecture field mask width

2013-02-26 Thread Stephen Boyd
On 02/25/13 12:02, Russell King - ARM Linux wrote: > > This can of worms is getting bigger. We have more problems with our > handling of the different VFP versions, specifically the handling of > the EX=0 DEX=0 case. > > VFP common subarch 3 defines the EX=0, DEX=0 encoding to mean one of > the fo

[PATCH] Consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2013-02-26 Thread Stephen Boyd
hitecture supporting this option can get the function for free. Cc: Arnd Bergmann Cc: Ingo Molnar Cc: H. Peter Anvin Cc: linux-par...@vger.kernel.org Cc: linux-s...@vger.kernel.org Cc: Arjan van de Ven Cc: Helge Deller Cc: Heiko Carstens Cc: Stephen Rothwell Cc: Chris Metcalf Signed-

Re: [PATCH] ARM: vfp: fix fpsid register subarchitecture field mask width

2013-02-27 Thread Stephen Boyd
On 02/26/13 09:54, Russell King - ARM Linux wrote: > What I actually need from you is: for the Qualcomm implementation, what > are the subarch bits defined as, and what do they correspond with - both > the VFP version, and whether they correspond with any ARM common VFP > subarchitecture version.

Re: [PATCH v3 1/2] timer_list: split timer_list_show_tickdevices()

2013-02-27 Thread Stephen Boyd
On 02/26/13 15:33, Nathan Zimmer wrote: > @@ -246,12 +244,8 @@ static void timer_list_show_tickdevices(struct seq_file > *m) > #endif > SEQ_printf(m, "\n"); > #endif > - for_each_online_cpu(cpu) > - print_tickdevice(m, tick_get_device(cpu), cpu); > SEQ_printf(m, "\n")

Re: [PATCH] Consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECK

2013-02-27 Thread Stephen Boyd
On 02/27/13 12:32, Arnd Bergmann wrote: > On Wednesday 27 February 2013, Stephen Boyd wrote: >> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug >> index 28be08c..ae80518 100644 >> --- a/lib/Kconfig.debug >> +++ b/lib/Kconfig.debug >> @@ -1292,6 +1292,24 @@ c

Re: [PATCH] Consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECK

2013-02-27 Thread Stephen Boyd
On 02/27/13 14:19, H. Peter Anvin wrote: > On 02/27/2013 12:42 PM, Stephen Boyd wrote: >>> It's fine to do your patch as a first step though, which would not >>> change the behavior. >> A lot of arches seem to not want to enable it because false positives >>

Re: [PATCH] Consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECK

2013-02-27 Thread Stephen Boyd
On 02/27/13 14:55, H. Peter Anvin wrote: > On 02/27/2013 02:52 PM, Stephen Boyd wrote: >> On 02/27/13 14:19, H. Peter Anvin wrote: >>> On 02/27/2013 12:42 PM, Stephen Boyd wrote: >>>>> It's fine to do your patch as a first step though, which would not &g

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

2013-02-27 Thread Stephen Boyd
Cc: Linus Walleij Acked-by: Pawel Moll Cc: Rob Herring Cc: Russell King Acked-by: Santosh Shilimkar Cc: Sascha Hauer Cc: Shiraz Hashim Acked-by: Simon Horman Cc: Srinidhi Kasagar Cc: Stephen Warren Cc: Tony Lindgren Acked-by: Viresh Kumar Signed-off-by: Stephen Boyd --- Resending to

Re: [RFC] arm: use built-in byte swap function

2013-02-19 Thread Stephen Boyd
On 2/19/2013 6:31 PM, Kim Phillips wrote: > diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile > index af72969..dbee639 100644 > --- a/arch/arm/lib/Makefile > +++ b/arch/arm/lib/Makefile > @@ -45,3 +45,5 @@ lib-$(CONFIG_ARCH_SHARK)+= io-shark.o > > $(obj)/csumpartialcopy.o:$(obj)

Re: mmotm 2013-02-19-17-20 uploaded

2013-02-21 Thread Stephen Boyd
On 2/19/2013 5:21 PM, a...@linux-foundation.org wrote: > * timer_list-split-timer_list_show_tickdevices.patch > * timer_list-convert-timer-list-to-be-a-proper-seq_file.patch > * timer_list-convert-timer-list-to-be-a-proper-seq_file-fix.patch > * timer_list-convert-timer-list-to-be-a-proper-seq_file

Re: mmotm 2013-02-19-17-20 uploaded

2013-02-21 Thread Stephen Boyd
On 2/21/2013 10:18 AM, Nathan Zimmer wrote: > On Thu, Feb 21, 2013 at 01:25:29AM -0800, Stephen Boyd wrote: >> On 2/19/2013 5:21 PM, a...@linux-foundation.org wrote: >>> * timer_list-split-timer_list_show_tickdevices.patch >>> * timer_list-convert-timer-list-to

Re: mmotm 2013-02-19-17-20 uploaded

2013-02-21 Thread Stephen Boyd
On 2/21/2013 10:35 AM, Nathan Zimmer wrote: > >> This comment is useful around the cpumask functions. >> >> Returns >= nr_cpu_ids if no further cpus set. >> > I had assumed it would be = nr_cpu_ids. > I will need to rethink the iterator. Yes it is actually equal to the nr_cpu_ids in my error

[PATCH 0/8] Remove ARM local timer API

2013-02-21 Thread Stephen Boyd
ested as I don't have access to the hardware. [1] http://article.gmane.org/gmane.linux.ports.arm.kernel/145705 Note: A hotplug notifier is used by both x86 for the apb_timer (see apbt_cpuhp_notify) and by metag (see arch_timer_cpu_notify in metag_generic.c) so this is not new. Stephen Boyd

[PATCH 1/8] ARM: smp: Lower rating of dummy broadcast device

2013-02-21 Thread Stephen Boyd
n, so lower the rating to something no good clockevent should choose. Cc: Russell King 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 fa86d1c..2d5197d 100644 --- a/arch/arm/k

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

2013-02-21 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 6/8] clocksource: time-armada-370-xp: Fix sparse warning

2013-02-21 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 8/8] ARM: smp: Remove local timer API

2013-02-21 Thread Stephen Boyd
There are no more users of this API, remove it. Cc: Russell King Signed-off-by: Stephen Boyd --- arch/arm/Kconfig | 12 +-- arch/arm/include/asm/localtimer.h | 34 arch/arm/kernel/smp.c | 67 ++- arch/arm

[PATCH 2/8] ARM: smp_twd: Divorce smp_twd from local timer API

2013-02-21 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/kernel/smp_twd.c | 48

[PATCH 3/8] ARM: EXYNOS4: Divorce mct from local timer API

2013-02-21 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

[PATCH 5/8] ARM: MSM: Divorce msm_timer from local timer API

2013-02-21 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. Cc: David Brown Cc: Daniel Walker Cc: Bryan Huntsman Signed-off-by: Stephen Boyd --- arch/arm/mach-msm

[PATCH 4/8] ARM: PRIMA2: Divorce timer-marco from local timer API

2013-02-21 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] ARM: vfp: fix fpsid register subarchitecture field mask width

2013-02-22 Thread Stephen Boyd
subarchitectures as supporting only HWCAP_VFP and not HWCAP_VFPv3 as it should be for Qualcomm's processors. Use the proper width for the mask so that we report the correct elf_hwcap of non-ARM designed processors. Signed-off-by: Steve Muckle [sboyd: Expanded on commit text] Signed-off-by: St

Re: [PATCH] ARM: vfp: fix fpsid register subarchitecture field mask width

2013-02-22 Thread Stephen Boyd
On 2/22/2013 10:27 AM, Will Deacon wrote: > Hi guys, > > On Fri, Feb 22, 2013 at 08:08:05AM +, Stephen Boyd wrote: >> From: Steve Muckle >> >> The subarchitecture field in the fpsid register is 7 bits wide. >> The topmost bit is used to designate that the s

Re: [PATCH v2 07/11] ssbi: Use regular init level

2013-03-12 Thread Stephen Boyd
On 03/12/13 11:41, David Brown wrote: > With device tree, and deferred probe, it is no longer necessary to > make sure that the ssbi bus driver is initialized very early. Restore > to a regular module_init(). > > Signed-off-by: David Brown > --- > drivers/ssbi/ssbi.c | 2 +- > 1 file changed, 1

Re: [PATCH v2 05/11] SSBI: Convert SSBI to device tree

2013-03-12 Thread Stephen Boyd
On 03/12/13 11:41, David Brown wrote: > @@ -261,56 +263,13 @@ int msm_ssbi_write(struct device *dev, u16 addr, u8 > *buf, int len) > } > EXPORT_SYMBOL_GPL(msm_ssbi_write); > > -static int msm_ssbi_add_slave(struct msm_ssbi *ssbi, > - const struct msm_ssbi_slave_info

Re: [PATCH] ARM: proc: Add Krait proc info

2013-03-12 Thread Stephen Boyd
On 03/07/13 22:41, Will Deacon wrote: > On Wed, Mar 06, 2013 at 05:20:32AM +0000, Stephen Boyd wrote: >> On 03/05/13 14:03, Stephen Boyd wrote: >>> On 03/05/13 00:34, Will Deacon wrote: >>>> I was looking at this the other day and wondered whether we could set

[PATCH 3/3] ARM: Work around faulty ISAR0 register in some Krait CPUs

2013-03-12 Thread Stephen Boyd
: Stephen Boyd --- arch/arm/kernel/setup.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index bd27a70..34ec24e 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -362,6 +362,14 @@ static void __init idiv_setup(void

[PATCH 0/3] Detect UDIV/SDIV support from ISAR0

2013-03-12 Thread Stephen Boyd
While attempting to upstream a patch to add the IDIV hwcap for Krait processors, Will suggested we move the code to read the ISAR0 register. This patchset does that and also works around the early Krait CPU designs that don't follow the latest ARM ARM for the ISAR0 register. Stephen Bo

[PATCH 1/3] ARM: Clear IDIVT hwcap if CONFIG_ARM_THUMB=n

2013-03-12 Thread Stephen Boyd
Don't advertise support for the SDIV/UDIV thumb instructions if the kernel is not compiled with support for thumb userspace. This is in line with how we remove the THUMB hwcap in these configurations. Cc: Will Deacon Cc: Stepan Moskovchenko Signed-off-by: Stephen Boyd --- arch/arm/k

[PATCH 2/3] ARM: Detect support for SDIV/UDIV from ISAR0 register

2013-03-12 Thread Stephen Boyd
cpu variant that supports these instructions. Cc: Will Deacon Cc: Stepan Moskovchenko Signed-off-by: Stephen Boyd --- arch/arm/kernel/setup.c | 20 arch/arm/mm/proc-v7.S | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/setup.c b

[PATCHv3 00/10] Remove ARM local timer API

2013-03-13 Thread Stephen Boyd
ixes in smp_twd from Tony Lindgren's testing * Move smp_twd to use late_time_init hook * Collected Acks 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 Boy

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

2013-03-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

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

2013-03-13 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

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

2013-03-13 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

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

2013-03-13 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

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

2013-03-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

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

2013-03-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 --- arch/arm/mach-prima2/timer-marco.c | 98

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

2013-03-13 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

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

2013-03-13 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

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

2013-03-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 Signed-off-by: Stephen Boyd --- Changes since v2: * Fix booting on

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

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

[PATCH] checkpatch: Complain about more executable files

2013-03-13 Thread Stephen Boyd
We don't want executable permissions set on files such as devicetree syntax files, text files, defconfig files, or binary hex files. Cc: Andy Whitcroft Cc: Joe Perches Signed-off-by: Stephen Boyd --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: mmotm 2013-03-01-15-50 uploaded (strict user copy)

2013-03-14 Thread Stephen Boyd
On 03/01/13 19:42, Stephen Boyd wrote: > On 03/01/13 19:00, Randy Dunlap wrote: >> on i386: >> >> ERROR: "copy_from_user_overflow" [fs/binfmt_misc.ko] undefined! >> >> which I don't understand. >> lib/usercopy.o is built and building binfmt_mi

[PATCH] ARM: sched_clock: Add more notrace to prevent recursion

2013-03-14 Thread Stephen Boyd
that if we ever remove inline from that function it doesn't blow up. Signed-off-by: Stephen Boyd --- arch/arm/kernel/sched_clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/sched_clock.c b/arch/arm/kernel/sched_clock.c index bd6f56b..5

Re: [PATCH] ARM: Scorpion is a v7 architecture, not v6

2013-03-14 Thread Stephen Boyd
On 03/05/13 00:31, Arnd Bergmann wrote: > On Monday 04 March 2013, Stephen Boyd wrote: >> Scorpion processors have always been v7 CPUs. Fix the Kconfig >> text to reflect this. >> >> Reported-by: Stepan Moskovchenko >> Signed-off-by: Stephen Boyd >> ---

[PATCH 3/3] ARM: msm: Wait for timer clear to complete

2013-03-14 Thread Stephen Boyd
it's duplicate work that is eventually done in the set_next_event() callback. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/timer.c | 41 +++-- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mac

[PATCH 0/3] Fix msm timer clearing bugs

2013-03-14 Thread Stephen Boyd
timer to be clear before programming it leading to no more ticks. Stephen Boyd (3): ARM: msm: Stop counting before reprogramming clockevent ARM: msm: Rework timer binding to be more general ARM: msm: Wait for timer clear to complete .../devicetree/bindings/arm/msm/timer.txt | 41

[PATCH 1/3] ARM: msm: Stop counting before reprogramming clockevent

2013-03-14 Thread Stephen Boyd
that we're sure the proper amount of ticks are counted. Failure to do so can lead to missed ticks and system hangs. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/timer.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-m

[PATCH 2/3] ARM: msm: Rework timer binding to be more general

2013-03-14 Thread Stephen Boyd
nd if we should read the status registers, etc. Signed-off-by: Stephen Boyd --- .../devicetree/bindings/arm/msm/timer.txt | 41 ++- arch/arm/boot/dts/msm8660-surf.dts | 20 ++ arch/arm/boot/dts/msm8960-cdp.dts | 22 +++--- arch/

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

2013-03-16 Thread Stephen Boyd
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 enough it doesn't really need many, but for Tegra, >>> Acked-by: Stephen Warren >>> >>> Which k

[PATCH] ARM: MSM: Fix early debug uart mapping on some memory configs

2012-08-27 Thread Stephen Boyd
much lowmem actually exists. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/include/mach/msm_iomap-8960.h | 2 +- arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-msm/include/mach/msm_iomap-8960.h b/arch/arm

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

2012-08-29 Thread Stephen Boyd
On 8/21/2012 9:03 PM, Stephen Boyd wrote: > Nothing stops a process from hotplugging in a CPU concurrently > with a sys_reboot() call. In such a situation we could have > ipi_cpu_stop() mark a cpu as 'offline' and _cpu_up() ignore the > fact that the CPU is not reall

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

2012-08-30 Thread Stephen Boyd
On 8/29/2012 4:53 PM, Russell King - ARM Linux wrote: > On Tue, Aug 21, 2012 at 09:03:49PM -0700, Stephen Boyd wrote: >> Nothing stops a process from hotplugging in a CPU concurrently >> with a sys_reboot() call. In such a situation we could have >> ipi_cpu_stop() mark a

Re: [PATCH v2] hvc_dcc : add support to armv4 and armv5 core

2012-08-31 Thread Stephen Boyd
On 8/31/2012 4:47 AM, Matthieu CASTET wrote: > Signed-off-by: Matthieu Castet Please consider adding some sort of commit text. Does this add some new feature I may want on some downstream distro kernel? > @@ -51,7 +51,7 @@ static inline char __dcc_getchar(void) > return __c; > } > > -st

[PATCH] ARM: msm: Fix sparse warnings due to incorrect type

2012-09-04 Thread Stephen Boyd
] *percpu_dev_id arch/arm/mach-msm/timer.c:198:24:got struct clock_event_device [noderef] **static [toplevel] percpu_evt Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c

Re: [PATCH] kernel/sys.c: call disable_nonboot_cpus in kernel_restart

2012-09-04 Thread Stephen Boyd
On 09/04/12 15:36, Andrew Morton wrote: > On Mon, 3 Sep 2012 22:24:58 +0800 > Shawn Guo wrote: > >> Like kernel_power_off calls disable_nonboot_cpus, we may want to have >> kernel_restart call disable_nonboot_cpus as well. Doing so can help >> the machines that require boot cpu be the last alive

Re: [PATCH] ARM: Fix deadlock scenario with smp_send_stop()

2012-09-11 Thread Stephen Boyd
On 09/05/12 14:01, Stephen Boyd wrote: > If one process calls sys_reboot and that process then stops other > CPUs while those CPUs are within a spin_lock() region we can > potentially encounter a deadlock scenario like below. > > CPU 0

Re: [PATCH v9 06/13] ARM: SoC: convert MSM SMP to SoC descriptor

2012-09-12 Thread Stephen Boyd
d Brown >> Signed-off-by: Marc Zyngier >> Signed-off-by: Arnd Bergmann >> --- >> arch/arm/mach-msm/board-msm8960.c | 3 +++ >> arch/arm/mach-msm/board-msm8x60.c |7 +++ > Stephen Boyd recently sent out a patch series that remove the non-DT > support for t

Re: [PATCH] ARM: hw_breakpoint: Clear breakpoints before enabling monitor mode

2012-10-01 Thread Stephen Boyd
On 09/24/12 10:19, Will Deacon wrote: > Ok, I've pushed a bunch of patches to my hw-breakpoint branch (head commit > 55cb726797c7). I'll post them to the list after the merge window, but please > do take them for a spin if you get a chance. > Forgot to reply here. Took them for a spin last week wi

Re: [PATCH] ARM: hw_breakpoint: Clear breakpoints before enabling monitor mode

2012-10-02 Thread Stephen Boyd
On 10/02/12 02:13, Will Deacon wrote: > > Thanks Stephen. I've also got some patches for OS save/restore of the debug > registers using the various hardware locking and readout mechanisms, so that > debug state can be persisted across low-power states. > > Do any of the Qualcomm chips (v7 as oppose

[PATCH 3/3] clk: Don't return negative numbers for unsigned values with !clk

2012-10-03 Thread Stephen Boyd
locks as having valid and interesting values. Signed-off-by: Stephen Boyd --- drivers/clk/clk.c| 20 ++-- include/linux/clk-provider.h | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 6852809..28

[PATCH 2/3] clk: Fix documentation typos

2012-10-03 Thread Stephen Boyd
Fix some minor typos in the documentation for the ops structure. Signed-off-by: Stephen Boyd --- include/linux/clk-provider.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 5a548e3..0571261 100644 --- a

[PATCH 1/3] clk: Document .is_enabled op

2012-10-03 Thread Stephen Boyd
Add the missing kernel-doc for this op. Signed-off-by: Stephen Boyd --- include/linux/clk-provider.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 710c6cb..5a548e3 100644 --- a/include/linux/clk-provider.h +++ b/include

[PATCH 0/3] Minor fixes for generic clock framework

2012-10-03 Thread Stephen Boyd
This is a small set of patches that fixes some documentation and fixes return values of functions that aren't used that much yet. Noticed while going through this code. Stephen Boyd (3): clk: Document .is_enabled op clk: Fix documentation typos clk: Don't return negative n

arm-soc maintainer entry

2012-10-04 Thread Stephen Boyd
Is the a...@kernel.org alias going to be added into the MAINTAINERS file? Should anybody be sending mails to this address? It seems I asked this over a year ago and the response was positive but nothing ever happened[1]. Maybe something like below? I only ask because get_maintainer.pl isn't pickin

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

2012-10-04 Thread Stephen Boyd
machines are combined with other SMP capable machines the TWD and SCU are no longer selected. Push the select out to the machine entries so that we can compile these machines together and still select the appropriate configs. Signed-off-by: Stephen Boyd Cc: David Brown Cc: Kukjin Kim Cc: Linus

Re: arm-soc maintainer entry

2012-10-04 Thread Stephen Boyd
On 10/04/12 09:55, Olof Johansson wrote: > Hi, > > On Thu, Oct 4, 2012 at 1:41 AM, Stephen Boyd wrote: >> Is the a...@kernel.org alias going to be added into the MAINTAINERS file? >> Should anybody be sending mails to this address? >> >> It seems I asked this ove

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

2012-10-04 Thread Stephen Boyd
On 10/04/12 02:11, Santosh Shilimkar wrote: >> @@ -75,6 +77,8 @@ config SOC_OMAP5 >> select CPU_V7 >> select ARM_GIC >> select HAVE_SMP >> +select HAVE_ARM_SCU if SMP >> +select HAVE_ARM_TWD if LOCAL_TIMERS >> select ARM_CPU_SUSPEND if PM >> select SOC_HAS_REAL

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

2012-10-04 Thread Stephen Boyd
On 10/04/12 06:05, Rob Herring wrote: > On 10/04/2012 03:50 AM, Stephen Boyd wrote: >> The TWD and SCU configs are selected by default as long as >> SCORPIONMP is false and/or MCT is false. Implementing the logic >> this way certainly saves lines in the Kconfig but it preclu

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

2012-10-24 Thread Stephen Boyd
when those machines are combined with other SMP capable machines the TWD and SCU are no longer selected by default. Push the select out to the machine entries so that we can compile these machines together and still select the appropriate configs. Signed-off-by: Stephen Boyd Cc: David Brown Cc

[PATCH] MAINTAINERS: Add arm-soc tree entry

2012-10-24 Thread Stephen Boyd
Document the arm-soc tree in the maintainers file so that developers know how arm SoC development is structured. Signed-off-by: Stephen Boyd --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 014272b..f70afea 100644 --- a/MAINTAINERS +++ b

[PATCHv3] ARM: Sort exception table at compile time

2012-10-24 Thread Stephen Boyd
ption table its own section so that sortextable can find it. This allows us to skip the sorting step during boot. Cc: David Daney Signed-off-by: Stephen Boyd --- Changes since v2: * Refreshed against linux-next arch/arm/Kconfig | 1 + arch/arm/kernel/vmlinux.lds.S

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

2012-10-25 Thread Stephen Boyd
On 10/24/12 10:54, Stephen Warren wrote: > Where will this patch be merged? > > It probably won't happen for 3.8, but that config fragment will move to > arch/arm/mach-tegra/Kconfig when Tegra enables single zImage support, I > believe. So, it'd be good to make sure this patch gets merged somewhere

Re: [PATCH] rtc: tps65910: Add RTC driver for TPS65910 PMIC RTC

2012-07-30 Thread Stephen Boyd
On 7/25/2012 11:35 PM, Venu Byravarasu wrote: > + > +static struct rtc_class_ops tps65910_rtc_ops = { const? > + .read_time = tps65910_rtc_read_time, > + .set_time = tps65910_rtc_set_time, > + .read_alarm = tps65910_rtc_read_alarm, > + .set_alarm = tps65910_rtc

Re: [PATCH] rtc: tps65910: Add RTC driver for TPS65910 PMIC RTC

2012-07-30 Thread Stephen Boyd
On 07/30/12 03:07, Venu Byravarasu wrote: > > + > +static int __devinit tps65910_rtc_probe(struct platform_device *pdev) > +{ > + struct tps65910 *tps65910 = NULL; > + struct tps65910_rtc *tps_rtc = NULL; > + struct tps65910_board *pmic_plat_data; > + int ret = -EINVAL; > + int

[PATCH] ARM: Sort exception table at compile time

2012-07-30 Thread Stephen Boyd
ption table its own section so that sortextable can find it. This allows us to skip the runtime sorting step during boot. Signed-off-by: Stephen Boyd Cc: David Daney --- I can't find any information on why the exception table lives in the data section. If there's a good reason for that,

Re: [PATCH] ARM: Sort exception table at compile time

2012-07-30 Thread Stephen Boyd
On 07/30/12 14:56, Russell King - ARM Linux wrote: > On Mon, Jul 30, 2012 at 02:30:03PM -0700, Stephen Boyd wrote: >> Add the ARM machine identifier to sortextable and select the >> config option so that we can sort the exception table at compile >> time. sortextable reli

Re: [PATCH] ARM: Sort exception table at compile time

2012-07-30 Thread Stephen Boyd
On 07/30/12 15:19, Russell King - ARM Linux wrote: > On Mon, Jul 30, 2012 at 11:51:18PM +0200, Sam Ravnborg wrote: >> Here you should be able to use the macro EXCEPTION_TABLE from >> vmlinux.lds.h. >> I cannot see why the ifdef for not NON-MMU case is needed, >> but if it is needed the macro is not

Re: [PATCH] ARM: Sort exception table at compile time

2012-07-31 Thread Stephen Boyd
On 07/30/12 15:38, Stephen Boyd wrote: > On 07/30/12 14:56, Russell King - ARM Linux wrote: >> On Mon, Jul 30, 2012 at 02:30:03PM -0700, Stephen Boyd wrote: >>> Add the ARM machine identifier to sortextable and select the >>> config option so that we can sort the

[PATCH 06/10] ARM: msm: Remove custom clk_set_{max,min}_rate() API

2012-09-20 Thread Stephen Boyd
There are no users of this API anymore so let's just remove it. If a need arises in the future we can extend the common clock API to handle it. Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-debug.c | 9 + arch/arm/mach-msm/clock.c

  1   2   3   4   5   6   7   8   9   10   >