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

2013-03-21 Thread Stephen Boyd
On 03/21/13 11:09, Mark Rutland wrote: > Hi Stephen, > > I've just been trying to test the dummy timer, and realised it's broken, as it > registers a cpu notifier from a device_initcall (after SMP's been brought up), > and doesn't ensure all active CPUs have been set up. Evidently no-one else has >

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

2013-03-25 Thread Stephen Boyd
On 03/22/13 11:03, Mark Rutland wrote: > On Thu, Mar 21, 2013 at 06:13:17PM +0000, Stephen Boyd wrote: >> On 03/21/13 11:09, Mark Rutland wrote: >>> Hi Stephen, >>> >>> I've just been trying to test the dummy timer, and realised it's broken,

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

2013-03-25 Thread Stephen Boyd
On 03/25/13 11:00, Mark Rutland wrote: > >>> I've spent the last few hours trying to get the dummy_timer driver working >>> on >>> tc2 with the sp804 as the broadcast source (with architected timer support >>> disabled). It turns out that having dummy timer's rating so low means that >>> it >>> w

Re: [PATCH] irqchip: gic: fix irq_trigger return

2013-03-26 Thread Stephen Boyd
On 03/19/13 16:05, Stephen Boyd wrote: > 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/

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

2013-03-26 Thread Stephen Boyd
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 enough it doesn't really need many, but for Tegra, >>>

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

2013-03-26 Thread Stephen Boyd
On 03/21/13 10:49, Stephen Boyd wrote: > On 03/14/13 17:08, Stephen Boyd wrote: >> cyc_to_sched_clock() is called by sched_clock() and cyc_to_ns() >> is called by cyc_to_sched_clock(). I suspect that some compilers >> inline both of these functions into sched_clock() and so

Re: [PATCH v3 3/3] usb: dwc3: Add Qualcomm DWC3 glue layer driver

2013-08-14 Thread Stephen Boyd
On 08/14/13 05:59, Ivan T. Ivanov wrote: > +} > + > +static const struct of_device_id of_dwc3_matach[] = { match? Maybe you can make it all one line too { .compatible = "qcom,dwc3" } > + { > + .compatible = "qcom,dwc3", > + }, > + { }, > +}; > +MODULE_DEVICE_TABLE(of, of_d

Re: [PATCH v3] hwspinlock/msm: Add support for Qualcomm MSM HW Mutex block

2013-08-14 Thread Stephen Boyd
On 08/14, Kumar Gala wrote: > Add driver for Qualcomm MSM Hardware Mutex block that exists on newer MSM > SoC (MSM8974, etc). > > CC: Jeffrey Hugo > CC: Eric Holmberg > Signed-off-by: Kumar Gala Looks good. Reviewed-by: Stephen Boyd > --- > v3: > * moved dt bindi

Re: [PATCH] ARM: LLVMLinux: Change "extern inline" to "gnu_inline" in ARM ftrace.h

2013-08-14 Thread Stephen Boyd
On 08/14/13 14:56, Joe Perches wrote: > On Wed, 2013-08-14 at 17:37 -0400, beh...@converseincode.com wrote: >> From: Mark Charlebois >> >> With compilers which follow the C99 standard (like modern versions of gcc and >> clang), "extern inline" does the wrong thing (emits code for an externally >>

Re: [PATCH v1 03/14] clk: Add of_clk_match() for device drivers

2013-08-15 Thread Stephen Boyd
On 08/14, Mike Turquette wrote: > Quoting Stephen Boyd (2013-08-12 22:48:39) > > On 08/12, Mike Turquette wrote: > > > Quoting Stephen Boyd (2013-07-24 17:43:31) > > > > In similar fashion as of_regulator_match() add an of_clk_match() > > > > function

Re: [PATCH v3 1/3] usb: dwc3: msm: Add device tree binding information

2013-08-19 Thread Stephen Boyd
On 08/19/13 05:27, Ivan T. Ivanov wrote: > Hi, > > On Fri, 2013-08-16 at 16:44 -0600, Stephen Warren wrote: >> On 08/14/2013 06:59 AM, Ivan T. Ivanov wrote: >>> From: "Ivan T. Ivanov" >>> >>> MSM USB3.0 core wrapper consist of USB3.0 IP from Synopsys >>> (SNPS) and HS, SS PHY's control and confi

[PATCH 2/4] devicetree: serial: Document msm_serial bindings

2013-08-19 Thread Stephen Boyd
of the hardware. Also, let's add the version information in case we need to differentiate between different versions of the hardware in the future. Cc: David Brown Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/serial/msm_serial.txt | 82 ++ 1 file ch

[PATCH 1/4] msm_serial: Switch clock consumer strings and simplify code

2013-08-19 Thread Stephen Boyd
_disable_unprepare() will properly check for NULL pointers (it will because MSM uses the common clock framework). Cc: David Brown Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/devices-msm7x00.c | 6 +++--- arch/arm/mach-msm/devices-msm7x30.c | 2 +- arch/arm/mach-msm/devices-qsd8x50.c

[PATCH 4/4] ARM: dts: msm: Update uartdm compatible strings

2013-08-19 Thread Stephen Boyd
Let's follow the ratified DT binding and use uartdm instead of hsuart. This does break backwards compatibility but this shouldn't be a problem because the uart driver isn't probing on these devices without adding clock support (which isn't merged so far). Cc: David Brown Si

[PATCH 3/4] msm_serial: Add support for non-GSBI UARTDM devices

2013-08-19 Thread Stephen Boyd
Not all UARTDM hardware is part of a GSBI complex. Add support for these devices and fix a bug where we assumed uartdm meant the hardware was part of a GSBI complex. Cc: David Brown Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 10 -- 1 file changed, 8 insertions

[PATCH 0/4] Document msm_serial bindings and support newer uartdms

2013-08-19 Thread Stephen Boyd
This patchset aligns the msm_serial driver more with downstream usage and also documents the msm_serial driver's DT binding. Along the way we update the clock names and add support for future UARTDM hardware that isn't part of a GSBI. Stephen Boyd (4): msm_serial: Switch clock consum

Re: Enable arm_global_timer for Zynq brakes boot

2013-08-19 Thread Stephen Boyd
On 08/16/13 10:28, Sören Brinkmann wrote: > On Mon, Aug 12, 2013 at 07:02:39PM +0200, Daniel Lezcano wrote: >> On 08/12/2013 06:53 PM, Sören Brinkmann wrote: >>> It's actually present. I have a clean 3.11-rc3 and the only changes are >>> my patch to enable the GT and Stephen's fix. >>> The cpuidle

Re: Enable arm_global_timer for Zynq brakes boot

2013-08-19 Thread Stephen Boyd
On 08/19, S??ren Brinkmann wrote: > Hi Stephen, > > On Mon, Aug 19, 2013 at 04:00:36PM -0700, Stephen Boyd wrote: > > On 08/16/13 10:28, S??ren Brinkmann wrote: > > > On Mon, Aug 12, 2013 at 07:02:39PM +0200, Daniel Lezcano wrote: > > >> On 08/12/2

Re: [GIT PULL] Remove ARM local timer API

2013-07-17 Thread Stephen Boyd
On 07/08/13 08:35, Stephen Boyd wrote: > On 06/27, Olof Johansson wrote: >> On Tue, Jun 25, 2013 at 01:02:12PM -0700, Stephen Boyd wrote: >>> Olof/Arnd, >>> >>> These patches remove the ARM local timer API. The ARM architected >>> timers have al

Re: [PATCH] irqchip: gic: Don't complain in gic_get_cpumask() if UP system

2013-07-17 Thread Stephen Boyd
On 07/12/13 05:10, Stephen Boyd wrote: > On 07/12, Javi Merino wrote: >> I agree, we should drop the check. It's annoying in uniprocessors and >> unlikely to be found in the real world unless your gic entry in the dt >> is wrong. >> > Ok. How about this? Any c

Re: [PATCH] irqchip: gic: Don't complain in gic_get_cpumask() if UP system

2013-07-17 Thread Stephen Boyd
On 07/17/13 15:34, Nicolas Pitre wrote: > On Wed, 17 Jul 2013, Stephen Boyd wrote: > >> On 07/12/13 05:10, Stephen Boyd wrote: >>> On 07/12, Javi Merino wrote: >>>> I agree, we should drop the check. It's annoying in uniprocessors and >>>> unli

Re: [PATCH] irqchip: gic: Don't complain in gic_get_cpumask() if UP system

2013-07-17 Thread Stephen Boyd
On 07/17/13 15:53, Nicolas Pitre wrote: > On Wed, 17 Jul 2013, Stephen Boyd wrote: > >> On 07/17/13 15:34, Nicolas Pitre wrote: >>> On Wed, 17 Jul 2013, Stephen Boyd wrote: >>> >>>> On 07/12/13 05:10, Stephen Boyd wrote: >>>>> On 07/12, Ja

[PATCH 1/3] clocksource: orion: Use linux/sched_clock.h

2013-07-17 Thread Stephen Boyd
The sched_clock.h include is under include/linux now. Cc: Sebastian Hesselbarth Signed-off-by: Stephen Boyd --- drivers/clocksource/time-orion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/time-orion.c b/drivers/clocksource/time-orion.c index ecbeb68

[PATCH 2/3] ARM: clps711x: Use linux/sched_clock.h

2013-07-17 Thread Stephen Boyd
The sched_clock.h include is under include/linux now. Cc: Alexander Shiyan Signed-off-by: Stephen Boyd --- arch/arm/mach-clps711x/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-clps711x/common.c b/arch/arm/mach-clps711x/common.c index 4ca2f3c

[PATCH 0/3] Cleanup sched_clock.h users

2013-07-17 Thread Stephen Boyd
This patchset cleans up the last few stragglers using the sched_clock.h header file in asm and removes the asm header. A new one appeared in drivers/clocksource so I'm not sure who wants to take that one. Stephen Boyd (3): clocksource: orion: Use linux/sched_clock.h ARM: clps711x: Use

[PATCH 3/3] ARM: Remove temporary sched_clock.h header

2013-07-17 Thread Stephen Boyd
This header file is no longer needed now that the ARM sched_clock framework is generic and all users have moved to linux/sched_clock.h instead of asm/sched_clock.h. Remove it. Signed-off-by: Stephen Boyd --- arch/arm/include/asm/sched_clock.h | 4 1 file changed, 4 deletions(-) delete

Re: [PATCH] time: sched_clock: fix integer overflow

2013-07-29 Thread Stephen Boyd
ched_clock_mask, and breaks >> sched_clock(). >> Set the type of 1 to 'unsigned long long' to get the value we need. > Ping? -rc3 is out, and this bug (which currently breaks xtensa) is not fixed > yet. Please consider applying. Looks good to me. Acked-by: Stephen Boyd

Re: [PATCH] hwspinlock/msm: Add support for Qualcomm MSM HW Mutex block

2013-07-29 Thread Stephen Boyd
On 07/29, Kumar Gala wrote: > > diff --git a/Documentation/devicetree/bindings/arm/msm/tcsr-mutex.txt > > b/Documentation/devicetree/bindings/arm/msm/tcsr-mutex.txt > > new file mode 100644 > > index 000..ddd6889 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/arm/msm/tcsr-mutex.

Re: [PATCH] drivers: power: reset: add msm restart support

2013-07-29 Thread Stephen Boyd
On 07/29, Abhimanyu Kapur wrote: > diff --git a/Documentation/devicetree/bindings/power_supply/msm-poweroff.txt > b/Documentation/devicetree/bindings/power_supply/msm-poweroff.txt > new file mode 100644 > index 000..de08480 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power_supply

Re: [PATCH] hwspinlock/msm: Add support for Qualcomm MSM HW Mutex block

2013-07-29 Thread Stephen Boyd
On 07/29, Kumar Gala wrote: > > On Jul 29, 2013, at 4:40 PM, Stephen Boyd wrote: > > > On 07/29, Kumar Gala wrote: > >>> +#include > >>> +#include > >>> + > >>> +#include > > > > please. > > will chan

Re: [PATCH v2 3/9] ARM: msm: Move debug-macro.S to include/debug

2013-07-30 Thread Stephen Boyd
On 07/30, Russell King - ARM Linux wrote: > On Wed, Jul 24, 2013 at 01:54:28PM -0700, Stephen Boyd wrote: > > One more step to allowing MSM to participate in the > > multi-platform defconfig. > > > > Signed-off-by: Stephen Boyd > > --- > > arch/arm/Kconfig

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

2013-07-30 Thread Stephen Boyd
On 07/24/13 13:36, 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] drivers: power: reset: add msm restart support

2013-07-31 Thread Stephen Boyd
On 07/30, Abhimanyu Kapur wrote: > Add support for restart and poweroff functionality present on MSM > chipsets with the MPM2 ps-hold hardware. > > Signed-off-by: Abhimanyu Kapur > --- Thanks, this version looks good. Feel free to add my reviewed-by: Reviewed-by: Stephen Boyd

Re: [PATCH 2/2] Convert PowerPC macro spin_event_timeout() to architecture independent macro

2013-07-31 Thread Stephen Boyd
On 07/30, Arpit Goel wrote: > This patch ports PowerPC implementation of spin_event_timeout() for generic > use. Architecture specific implementation can be added to asm/delay.h, which > will override the generic linux implementation. > > Signed-off-by: Arpit Goel > --- We use something similar

[PATCH 03/18] ARM: davinci: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Sekhar Nori Cc: Kevin Hilman Signed-off-by: Stephen Boyd --- arch/arm/mach-davinci/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 04/18] ARM: imx: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Sascha Hauer Signed-off-by: Stephen Boyd --- arch/arm/mach-imx/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH 18/18] ARM: versatile: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Russell King Signed-off-by: Stephen Boyd --- arch/arm/plat-versatile/sched-clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 16/18] ARM: orion: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Jason Cooper Cc: Andrew Lunn Signed-off-by: Stephen Boyd --- arch/arm/plat-orion/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 02/18] ARM: clps711x: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Alexander Shiyan Signed-off-by: Stephen Boyd --- arch/arm/mach-clps711x/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 12/18] ARM: sa1100: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Russell King Signed-off-by: Stephen Boyd --- arch/arm/mach-sa1100/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 15/18] ARM: OMAP: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Tony Lindgren Signed-off-by: Stephen Boyd --- arch/arm/plat-omap/counter_32k.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 17/18] ARM: SAMSUNG: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Ben Dooks Cc: Kukjin Kim Signed-off-by: Stephen Boyd --- arch/arm/plat-samsung/samsung-time.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 13/18] ARM: u300: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Linus Walleij Signed-off-by: Stephen Boyd --- arch/arm/mach-u300/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 14/18] ARM: iop: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Signed-off-by: Stephen Boyd --- arch/arm/plat-iop/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-iop

[PATCH 01/18] ARM: timer-sp: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Also mark the read function notrace since we're here and failure to do so would cause ftrace to break. Cc: Russell King Signed-off-by: Stephen

[PATCH 11/18] ARM: pxa: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Eric Miao Cc: Russell King Cc: Haojian Zhuang Signed-off-by: Stephen Boyd --- arch/arm/mach-pxa/time.c | 4 ++-- 1 file changed, 2 insertions

[PATCH 10/18] ARM: OMAP2+: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Tony Lindgren Signed-off-by: Stephen Boyd --- arch/arm/mach-omap2/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 05/18] ARM: integrator: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Linus Walleij Signed-off-by: Stephen Boyd --- arch/arm/mach-integrator/integrator_ap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 09/18] ARM: OMAP1: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Tony Lindgren Signed-off-by: Stephen Boyd --- arch/arm/mach-omap1/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 08/18] ARM: msm: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: David Brown Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH 00/18] Convert arm sched_clock users to sched_clock_register()

2013-07-31 Thread Stephen Boyd
: Jason Cooper Cc: Kevin Hilman Cc: Krzysztof Halasa Cc: Kukjin Kim Cc: Linus Walleij Cc: Russell King Cc: Sascha Hauer Cc: Sekhar Nori Cc: Tony Lindgren Stephen Boyd (18): ARM: timer-sp: Switch to sched_clock_register() ARM: clps711x: Switch to sched_clock_register() ARM: davinci: Switch

[PATCH 07/18] ARM: mmp: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Eric Miao Cc: Haojian Zhuang Signed-off-by: Stephen Boyd --- arch/arm/mach-mmp/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 06/18] ARM: IXP4xx: Switch to sched_clock_register()

2013-07-31 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Imre Kaloz Cc: Krzysztof Halasa Signed-off-by: Stephen Boyd --- arch/arm/mach-ixp4xx/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH v4 0/5] Memory mapped architected timers

2013-07-31 Thread Stephen Boyd
On 07/24, Stephen Boyd wrote: > On 07/22, Mark Rutland wrote: > > Hi Stephen, > > > > On Fri, Jul 19, 2013 at 12:59:27AM +0100, Stephen Boyd wrote: > > > This patchset adds support for memory mapped architected timers. We > > > don't have any other glo

Re: [PATCH 2/2] Convert PowerPC macro spin_event_timeout() to architecture independent macro

2013-07-31 Thread Stephen Boyd
On 07/31/13 16:44, Timur Tabi wrote: > On Wed, Jul 31, 2013 at 2:16 AM, Stephen Boyd wrote: >> What do you do here if jiffies aren't incrementing (i.e >> interrupts are disabled). The time_before() check won't work >> there and it would be nice if we were able to us

Re: [PATCH 2/2] Convert PowerPC macro spin_event_timeout() to architecture independent macro

2013-07-31 Thread Stephen Boyd
On 07/31/13 17:13, Timur Tabi wrote: > On 07/31/2013 07:04 PM, Stephen Boyd wrote: >> If it yields why are we using udelay? Why not usleep_range()? It would >> be useful to have a variant that worked in interrupt context and it >> looked like that was almost possible.

Re: [PATCH 2/2] Convert PowerPC macro spin_event_timeout() to architecture independent macro

2013-07-31 Thread Stephen Boyd
On 07/31/13 17:20, Timur Tabi wrote: > On 07/31/2013 07:16 PM, Stephen Boyd wrote: >> cpu_relax() is usually just a compiler barrier or an instruction hint to >> the cpu that it should cool down because we're spinning in a tight loop. >> It certainly shouldn't be ca

Re: [PATCH 2/4] devicetree: serial: Document msm_serial bindings

2013-08-20 Thread Stephen Boyd
On 08/20/13 07:41, Kumar Gala wrote: > On Aug 19, 2013, at 4:39 PM, Stephen Boyd wrote: > >> diff --git a/Documentation/devicetree/bindings/serial/msm_serial.txt >> b/Documentation/devicetree/bindings/serial/msm_serial.txt >> new file mode 100644 >> index 000

[PATCH v2 4/5] ARM: dts: msm: Update uartdm compatible strings

2013-08-20 Thread Stephen Boyd
Let's follow the ratified DT binding and use uartdm instead of hsuart. This does break backwards compatibility but this shouldn't be a problem because the uart driver isn't probing on these devices without adding clock support (which isn't merged so far). Cc: David Brown Si

[PATCH v2 0/5] Document msm_serial bindings and support newer uartdms

2013-08-20 Thread Stephen Boyd
in UARTDM. Changes since v1: * Dropped _clk postfix from {core,iface}_clk * Split DT binding into two files * Renamed DT binding files to match compatible strings * Fixed up DT review comments * Added new patch 5/5 (more than 1 char for UARTDM) Stephen Boyd (5): msm_serial: Switch clock consum

[PATCH v2 5/5] msm_serial: Send more than 1 character on the console w/ UARTDM

2013-08-20 Thread Stephen Boyd
We recently added support to send more than one character at a time for UARTDM hardware but we didn't add the same support in the console code path. Add support here to speed up console messages on UARTDM hardware. Cc: David Brown Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_ser

[PATCH v2 3/5] msm_serial: Add support for non-GSBI UARTDM devices

2013-08-20 Thread Stephen Boyd
Not all UARTDM hardware is part of a GSBI complex. Add support for these devices and fix a bug where we assumed uartdm meant the hardware was part of a GSBI complex. Cc: David Brown Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 10 -- 1 file changed, 8 insertions

[PATCH v2 2/5] devicetree: serial: Document msm_serial bindings

2013-08-20 Thread Stephen Boyd
of the hardware. Also, let's add the version information in case we need to differentiate between different versions of the hardware in the future. Cc: David Brown Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/serial/qcom,msm-uart.txt | 25 +++ .../devicetree/bind

[PATCH v2 1/5] msm_serial: Switch clock consumer strings and simplify code

2013-08-20 Thread Stephen Boyd
unprepare() will properly check for NULL pointers (it will because MSM uses the common clock framework). Cc: David Brown Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/devices-msm7x00.c | 6 +++--- arch/arm/mach-msm/devices-msm7x30.c | 2 +- arch/arm/mach-msm/devices-qsd8x50.c | 6 +

Re: [PATCH v2 2/5] devicetree: serial: Document msm_serial bindings

2013-08-21 Thread Stephen Boyd
On 08/21, Kumar Gala wrote: > > On Aug 21, 2013, at 1:48 AM, Stephen Boyd wrote: > > > The msm serial device bindings were added to the DTS files but > > never documented. Let's document them now and also fix things up > > so that it's clearer what ha

[PATCH 1/2] tick: broadcast: Deny per-cpu clockevents from being broadcast sources

2013-08-22 Thread Stephen Boyd
broadcast source but so far we haven't needed this and supporting it is rather complicated. Let's just deny the possibility for now until this becomes a reality (let's hope it never does!). Reported-by: Sören Brinkmann Signed-off-by: Stephen Boyd --- kernel/time/tick-broadcast.c |

[PATCH 2/2] clockevents: Prefer clockevents that don't suffer from FEAT_C3_STOP

2013-08-22 Thread Stephen Boyd
than tick devices that do suffer from FEAT_C3_STOP. This will remove the need to do any broadcasting on such ARM systems. Signed-off-by: Stephen Boyd --- kernel/time/tick-common.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/kernel/time/tick-common.c b/kernel

Re: [PATCH 2/2] clockevents: Prefer clockevents that don't suffer from FEAT_C3_STOP

2013-08-22 Thread Stephen Boyd
On 08/22/13 10:33, Santosh Shilimkar wrote: > On Thursday 22 August 2013 01:06 PM, Stephen Boyd wrote: >> On some ARM systems there are two sets of per-cpu timers: the TWD >> timers and the global timers. The TWD timers are rated at 350 and >> the global timers are rated at 3

Re: [PATCH 2/2] clockevents: Prefer clockevents that don't suffer from FEAT_C3_STOP

2013-08-22 Thread Stephen Boyd
On 08/22, Santosh Shilimkar wrote: > On Thursday 22 August 2013 01:40 PM, Stephen Boyd wrote: > > On 08/22/13 10:33, Santosh Shilimkar wrote: > >> On Thursday 22 August 2013 01:06 PM, Stephen Boyd wrote: > >>> On some ARM systems there are two sets of per-cpu timers

Re: [PATCH] irqchip: gic: Don't complain in gic_get_cpumask() if UP system

2013-08-22 Thread Stephen Boyd
On 07/17, Stephen Boyd wrote: > On 07/17/13 15:53, Nicolas Pitre wrote: > > On Wed, 17 Jul 2013, Stephen Boyd wrote: > > > >> On 07/17/13 15:34, Nicolas Pitre wrote: > >>> On Wed, 17 Jul 2013, Stephen Boyd wrote: > >>> > >>>> On 07

Re: [PATCH v3 0/5] clk: dt: bindings for mux, divider & gate clocks

2013-08-22 Thread Stephen Boyd
On 08/21, Mike Turquette wrote: > > I just happened across a to-do list note telling me to respond to this > email. Better late than never. > [snip] > > This is a way to establish initial configuration from the consumer's > perspective. Similarly something can be done for the clock rate with > as

Re: [PATCH] irqchip: gic: Don't complain in gic_get_cpumask() if UP system

2013-08-22 Thread Stephen Boyd
On 08/22, Nicolas Pitre wrote: > On Thu, 22 Aug 2013, Stephen Boyd wrote: > > > On 07/17, Stephen Boyd wrote: > > > On 07/17/13 15:53, Nicolas Pitre wrote: > > > > On Wed, 17 Jul 2013, Stephen Boyd wrote: > > > > > > > >> On 07/17/

Re: [PATCH] [TRIVIAL] ARM: msm: fix compilation error in gpiomux

2013-08-07 Thread Stephen Boyd
On 08/07, David Brown wrote: > On Wed, Aug 07, 2013 at 08:34:39AM +0200, Krzysztof Kozlowski wrote: > >Fix compilation error in gpiomux (CONFIG_MSM_GPIOMUX=y): > >arch/arm/mach-msm/gpiomux.c:24:13: error: static declaration of > > ???__msm_gpiomux_write??? follows non-static declaration > >arch

Re: perf,arm -- another (different) fuzzer oops

2013-08-07 Thread Stephen Boyd
On 08/07/13 15:31, Will Deacon wrote: > On Wed, Aug 07, 2013 at 09:14:55PM +0100, Vince Weaver wrote: > >> [ 388.509063] Unable to handle kernel paging request at virtual address >> 73fd14cc >> [ 388.509063] pgd = eca6c000 >> [ 388.519805] [73fd14cc] *pgd= >> [ 388.523651] Internal err

Re: Enable arm_global_timer for Zynq brakes boot

2013-08-08 Thread Stephen Boyd
On 08/08/13 10:16, Mark Rutland wrote: > On Thu, Aug 08, 2013 at 06:11:26PM +0100, Sören Brinkmann wrote: >> Hi Daniel, >> >> On Thu, Aug 01, 2013 at 07:48:04PM +0200, Daniel Lezcano wrote: >>> On 08/01/2013 07:43 PM, Sören Brinkmann wrote: On Thu, Aug 01, 2013 at 07:29:12PM +0200, Daniel Lezc

Re: perf,arm -- another (different) fuzzer oops

2013-08-08 Thread Stephen Boyd
On 08/08/13 05:09, Will Deacon wrote: > Well spotted, thanks. If you make that return -EINVAL instead of -ENOENT (to > match what we do for cache events) then: > > Acked-by: Will Deacon > > Could you stick it in the patch system please? Submitted as 7810/1 -- Qualcomm Innovation Center, Inc.

[PATCH] PM / QoS: Fix workqueue deadlock when using pm_qos_update_request_timeout()

2013-08-08 Thread Stephen Boyd
m_qos_update_request() here so that we don't deadlock. Cc: Tejun Heo Signed-off-by: Stephen Boyd --- kernel/power/qos.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 06fe285..d52d314 100644 --- a/kernel/power/qos.c

Re: [PATCH v3 0/5] clk: dt: bindings for mux, divider & gate clocks

2013-07-18 Thread Stephen Boyd
On 06/20/13 23:14, Mike Turquette wrote: > This series introduces binding definitions for common register-mapped > clock multiplexer, divider and gate IP blocks along with the > corresponding setup functions for matching DT data. The bindings are > similar to the struct definitions but please don'

[PATCH v4 08/17] ocksource: dbx500-prcmu: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Srinidhi Kasagar Cc: Linus Walleij Signed-off-by: Stephen Boyd --- drivers/clocksource/clksrc-dbx500-prcmu.c | 5 ++--- 1 file changed, 2

[PATCH v4 14/17] clocksource: time-armada-370-xp: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Gregory CLEMENT Signed-off-by: Stephen Boyd --- drivers/clocksource/time-armada-370-xp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v4 10/17] clocksource: mxs_timer: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Shawn Guo Signed-off-by: Stephen Boyd --- drivers/clocksource/mxs_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH v4 06/17] sched_clock: Remove sched_clock_func() hook

2013-07-18 Thread Stephen Boyd
Nobody is using sched_clock_func() anymore now that sched_clock supports up to 64 bits. Remove the hook so that new code only uses sched_clock_register(). Signed-off-by: Stephen Boyd --- include/linux/sched_clock.h | 2 -- kernel/time/sched_clock.c | 9 + 2 files changed, 1 insertion

[PATCH v4 03/17] sched_clock: Use an hrtimer instead of timer

2013-07-18 Thread Stephen Boyd
ially calculated in nanoseconds which we can easily use with hrtimers, so switch to using an hrtimer. Cc: Russell King Signed-off-by: Stephen Boyd --- kernel/time/sched_clock.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/kernel/time/sched_cloc

[PATCH v4 17/17] sched_clock: Deprecate setup_sched_clock()

2013-07-18 Thread Stephen Boyd
Users of the generic sched_clock framework should use sched_clock_register() instead of setup_sched_clock(). Mark the function as deprecated. Signed-off-by: Stephen Boyd --- include/linux/sched_clock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux

[PATCH v4 09/17] clocksource: dw_apb_timer_of: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Signed-off-by: Stephen Boyd --- drivers/clocksource/dw_apb_timer_of.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v4 12/17] clocksource: samsung_pwm_timer: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Tomasz Figa Cc: Kyungmin Park Cc: Kukjin Kim Signed-off-by: Stephen Boyd --- drivers/clocksource/samsung_pwm_timer.c | 4 ++-- 1 file changed, 2

[PATCH v4 16/17] clocksource: vf_pit_timer: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Jingchang Lu Cc: Fabio Estevam Signed-off-by: Stephen Boyd --- drivers/clocksource/vf_pit_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v4 02/17] sched_clock: Use seqcount instead of rolling our own

2013-07-18 Thread Stephen Boyd
ng Signed-off-by: Stephen Boyd --- kernel/time/sched_clock.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index a326f27..396f7b9 100644 --- a/kernel/time/sched_clock.c +++ b/kernel/time/sch

[PATCH v4 13/17] clocksource: tegra: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Stephen Warren Signed-off-by: Stephen Boyd --- drivers/clocksource/tegra20_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v4 15/17] clocksource: sirf: Switch to sched_clock_register() and use 64 bits

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface and use all 64 bits of this timer. Cc: Barry Song Signed-off-by: Stephen Boyd --- drivers/clocksource/timer-prima2.c | 6 +++--- 1 file changed, 3

[PATCH v4 01/17] clocksource: Extract max nsec calculation into separate function

2013-07-18 Thread Stephen Boyd
We need to calculate the same number in the clocksource code and the sched_clock code, so extract this code into its own function. We also drop the min_t and just use min() because the two types are the same. Signed-off-by: Stephen Boyd --- include/linux/clocksource.h | 2 ++ kernel/time

[PATCH v4 11/17] clocksource: nomadik: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Linus Walleij Signed-off-by: Stephen Boyd --- drivers/clocksource/nomadik-mtu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v4 00/17] 64-bit friendly generic sched_clock()

2013-07-18 Thread Stephen Boyd
* Use of 1 hour in clocks_calc_mult_shift * Converted over drivers in drivers/clocksource Stephen Boyd (17): clocksource: Extract max nsec calculation into separate function sched_clock: Use seqcount instead of rolling our own sched_clock: Use an hrtimer instead of timer sched_clock: Add

[PATCH v4 05/17] arch_timer: Move to generic sched_clock framework

2013-07-18 Thread Stephen Boyd
ivers clocksource out of the arch ports. Cc: Christopher Covington Cc: Catalin Marinas Signed-off-by: Stephen Boyd --- arch/arm/kernel/arch_timer.c | 14 -- arch/arm64/Kconfig | 1 + arch/arm64/kernel/time.c | 10 -- drivers/clocks

[PATCH v4 04/17] sched_clock: Add support for >32 bit sched_clock

2013-07-18 Thread Stephen Boyd
() in favor of sched_clock_register(). Cc: Russell King Signed-off-by: Stephen Boyd --- include/linux/sched_clock.h | 2 ++ kernel/time/sched_clock.c | 46 +++-- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/include/linux

[PATCH v4 07/17] clocksource: bcm2835: Switch to sched_clock_register()

2013-07-18 Thread Stephen Boyd
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Stephen Warren Signed-off-by: Stephen Boyd --- drivers/clocksource/bcm2835_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v4 1/5] clocksource: arch_timer: Make register accessors less error-prone

2013-07-18 Thread Stephen Boyd
Gleixner Cc: Thomas Gleixner Cc: Mark Rutland Cc: Marc Zyngier Signed-off-by: Stephen Boyd --- arch/arm/include/asm/arch_timer.h| 14 ++ arch/arm64/include/asm/arch_timer.h | 23 +-- drivers/clocksource/arm_arch_timer.c | 6 +++--- include/clocksource/a

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

2013-07-18 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

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

2013-07-18 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

[PATCH v4 0/5] Memory mapped architected timers

2013-07-18 Thread Stephen Boyd
v3.10-rc1 Updates 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 (5): clocksource: arch_timer: Make register accessors less error-prone Documentation: Add memory

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