Re: BUG: spinlock bad magic on CPU#0 on BeagleBone

2012-12-19 Thread Stephen Boyd
On 12/19/12 08:53, Paul Walmsley wrote: > On Wed, 19 Dec 2012, Bedia, Vaibhav wrote: > >> Current mainline on Beaglebone using the omap2plus_defconfig + 3 build fixes >> is triggering a BUG() > ... > >> [0.109688] Security Framework initialized >> [0.109889] Mount-cache hash table entries:

Re: [PATCH 4/4] clk: zynq: Use of_init_clk_data()

2012-12-19 Thread Stephen Boyd
On 12/19/12 11:22, Soren Brinkmann wrote: > Hi Stephen, > > I guess Josh is the better person to talk about this, since he created the > patches regarding common clock for mainline, but I tried running your series > and ran into this: > > Unable to handle kernel NULL pointer dereference at virtual

Re: [PATCH 4/4] clk: zynq: Use of_init_clk_data()

2012-12-19 Thread Stephen Boyd
On 12/19/12 12:30, Stephen Boyd wrote: > On 12/19/12 11:22, Soren Brinkmann wrote: >> Hi Stephen, >> >> I guess Josh is the better person to talk about this, since he created the >> patches regarding common clock for mainline, but I tried running your series >> a

Re: BUG: spinlock bad magic on CPU#0 on BeagleBone

2012-12-19 Thread Stephen Boyd
On 12/19/2012 8:48 PM, Bedia, Vaibhav wrote: > I tried out 3 variants of AM335x boards - 2 of these (BeagleBone and EVM) > have DDR2 > and 1 has DDR3 (EVM-SK). The BUG is triggered on all of these at the same > point. > > With Stephen's change I don't see this on any of the board variants :) > Ne

Re: BUG: spinlock bad magic on CPU#0 on BeagleBone

2012-12-19 Thread Stephen Boyd
On 12/19/2012 10:44 PM, Bedia, Vaibhav wrote: > On Thu, Dec 20, 2012 at 11:55:24, Stephen Boyd wrote: >> On 12/19/2012 8:48 PM, Bedia, Vaibhav wrote: >>> I tried out 3 variants of AM335x boards - 2 of these (BeagleBone and EVM) >>> have DDR2 >>> and 1 has DD

Re: [patch 00/16] sched: per-entity load-tracking

2012-12-19 Thread Stephen Boyd
On 11/26/2012 5:08 AM, Jassi Brar wrote: > The patchset introduces 64-bit atomic ops, which would need > init_atomic64_lock() already called, but that is an initcall made too > late. Should we consider calling init_atomic64_lock() sooner in > start_kernel()? > > As an example of breakage, I see the

[PATCH] lib: atomic64: Initialize locks statically to fix early users

2012-12-19 Thread Stephen Boyd
[<80008078>] (0x80008078) coming out early on during boot when spinlock debugging is enabled. Fix this problem by initializing the spinlocks statically at compile time. Reported-by: Vaibhav Bedia Tested-by: Vaibhav Bedia Cc: Eric W. Biederman Signed-off-by: Stephen Boyd --- Sorry Andrew, I

Re: [PATCH] nconf: add j, k and l keys for menu navigation

2012-12-21 Thread Stephen Boyd
ight/left? > > Signed-off-by: Dmitry Voytik Tested-by: Stephen Boyd -- 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 linux-kernel" in the body of a message to major

[PATCH] Makefile: Make checkstack work with O= builds

2012-12-21 Thread Stephen Boyd
The vmlinux doesn't always live in the same directory as the source files and so 'make O=obj checkstack' fails with a missing vmlinux file. Fix checkstack so that this is possible. Signed-off-by: Stephen Boyd --- It would also be nice if this depended on vmlinux and modules bein

[PATCH] clockevents: Switch into oneshot mode even if broadcast registered late

2013-04-17 Thread Stephen Boyd
sing us to be stuck in periodic mode forever. Avoid this scenario by calling tick_clock_notify() after we register the broadcast device so that we try to switch into oneshot mode on all CPUs one more time. Signed-off-by: Stephen Boyd --- Found this one when we were registering our broadcast t

Re: [PATCHv4 00/11] Remove ARM local timer API

2013-04-17 Thread Stephen Boyd
branch on 3.9-rc5 and a merge resolution with for-next in arm-soc that you can pull to look at. If not I will have to resend the series. Thanks, Stephen On 04/08/13 14:27, Stephen Boyd wrote: > In light of Mark Rutland's recent work on divorcing the ARM architected > timers from the ARM

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

2013-04-17 Thread Stephen Boyd
pu_ptr() access down into the cases to force the checks to occur only in non-preemptible contexts. Cc: John Stultz Cc: Thomas Gleixner Cc: Mark Rutland Acked-by: Marc Zyngier Signed-off-by: Stephen Boyd --- Resending to arm-soc maintainers instead of timekeeping maintainers. Who mainta

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

2013-04-17 Thread Stephen Boyd
On 03/26/13 10:35, Stephen Boyd wrote: > 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 >>>

Re: [PATCH 1/2] clocksource: arm_arch_timer: unify sched_clock init

2013-04-18 Thread Stephen Boyd
On 04/18/13 12:30, Rob Herring wrote: > diff --git a/drivers/clocksource/arm_arch_timer.c > b/drivers/clocksource/arm_arch_timer.c > index 122ff05..17ed8e4 100644 > --- a/drivers/clocksource/arm_arch_timer.c > +++ b/drivers/clocksource/arm_arch_timer.c > @@ -266,6 +266,15 @@ static struct notifier

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

2013-04-19 Thread Stephen Boyd
imer using this facility. Signed-off-by: Mark Rutland Cc: John Stultz [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 Boyd --- drivers/clocksource/Mak

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

2013-04-19 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

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

2013-04-19 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. Acked-by: Gregory CLEMENT Signed-off-by: Stephen Boy

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

2013-04-19 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

[PATCHv5 00/11] Remove ARM local timer API

2013-04-19 Thread Stephen Boyd
* Bug fixes 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

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

2013-04-19 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

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

2013-04-19 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

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

2013-04-19 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 Cc: Thomas Abraham Signed-off-by: Stephen Boyd --- drivers/clocksource/exynos_mct.c

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

2013-04-19 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

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

2013-04-19 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

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

2013-04-19 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

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

2013-04-19 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 Tested-by: Mark Rutland Cc: John Stultz Signed-off-by: Stephen Boyd --- kernel/time/tick-common.c | 5 +++-- 1 fi

Re: [PATCH 1/2] clocksource: arm_arch_timer: unify sched_clock init

2013-04-19 Thread Stephen Boyd
On 04/18/13 18:37, Rob Herring wrote: > On 04/18/2013 07:00 PM, Stephen Boyd wrote: >> On 04/18/13 12:30, Rob Herring wrote: >>> diff --git a/drivers/clocksource/arm_arch_timer.c >>> b/drivers/clocksource/arm_arch_timer.c >>> index 122ff05..17ed8e4

[PATCH 1/4] ARM: sched_clock: Remove unused needs_suspend member

2013-04-19 Thread Stephen Boyd
The needs_suspend member is unused now that we always do the suspend/resume handling (see 6a4dae5 (ARM: 7565/1: sched: stop sched_clock() during suspend, 2012-10-23)). Signed-off-by: Stephen Boyd --- arch/arm/kernel/sched_clock.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm

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

2013-04-19 Thread Stephen Boyd
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 will follow once I find an arm64 compiler. First two patches should probably go in even if the 64 bit stuff doesn't go in at the same time. Stephen

[PATCH 2/4] ARM: sched_clock: Return suspended count earlier

2013-04-19 Thread Stephen Boyd
uspended as early as possible. Signed-off-by: Stephen Boyd --- arch/arm/kernel/sched_clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/sched_clock.c b/arch/arm/kernel/sched_clock.c index 48ab64a..29ac613 100644 --- a/arch/arm/kernel/sched_clock.c +

[PATCH 3/4] ARM: sched_clock: Add support for >32 bit sched_clock

2013-04-19 Thread Stephen Boyd
esume handling that the ARM sched_clock code already has. Signed-off-by: Stephen Boyd --- Maybe we need a union for the epoch_ns usage? arch/arm/include/asm/sched_clock.h | 2 + arch/arm/kernel/sched_clock.c | 101 +++-- 2 files changed, 77 insertions(+

[PATCH 4/4] ARM: arch_timer: Move to setup_sched_clock_64()

2013-04-19 Thread Stephen Boyd
with sched_clock returning gigantic numbers. Second, there is no support for suspend/resume handling so problems such as discussed in 6a4dae5 (ARM: 7565/1: sched: stop sched_clock() during suspend, 2012-10-23) can happen. Signed-off-by: Stephen Boyd --- arch/arm/include/asm/sched_clock.h | 3 ---

Re: [PATCH 3/4] ARM: sched_clock: Add support for >32 bit sched_clock

2013-04-22 Thread Stephen Boyd
On 04/22/13 03:48, Will Deacon wrote: > Hi Stephen, > > On Sat, Apr 20, 2013 at 01:29:05AM +0100, Stephen Boyd wrote: >> The arm architected system counter has at least 56 bits of >> useable bits. Add support to ARM's sched_clock implementation for >> counters

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

2013-04-22 Thread Stephen Boyd
On 04/22/13 08:34, Mark Rutland wrote: > Hi Stephen, > > On Sat, Apr 20, 2013 at 01:29:02AM +0100, 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 will follow o

Re: [PATCH 12/12] ARM: msm: Migrate to common clock framework

2013-06-12 Thread Stephen Boyd
On 06/11/13 15:28, Mike Turquette wrote: > Quoting Stephen Boyd (2013-06-04 12:25:38) >> Move the existing clock code in mach-msm to the common clock >> framework. We lose our capability to set the rate of and enable a >> clock through debugfs. This is ok though because the de

Re: [PATCH] ARM: mmu: Add debug_ll_io_init() mappings to early mappings

2013-06-12 Thread Stephen Boyd
On 06/11, Rob Herring wrote: > On Tue, Jun 11, 2013 at 8:30 PM, Stephen Boyd wrote: > > > diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c > > index e0d8565..04fe160 100644 > > --- a/arch/arm/mm/mmu.c > > +++ b/arch/arm/mm/mmu.c > > @@ -938,8 +938,12 @@ st

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

2013-06-12 Thread Stephen Boyd
On 06/11, Stephen Boyd wrote: > diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c > index efa113e..284cc56 100644 > --- a/arch/arm/mach-msm/io.c > +++ b/arch/arm/mach-msm/io.c > @@ -52,10 +52,6 @@ static struct map_desc msm_io_desc[] __initdata = { > MSM_CHIP

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

2013-06-12 Thread Stephen Boyd
On 06/06, Stephen Boyd wrote: > On 06/07, Daniel Lezcano wrote: > > On 06/06/2013 08:04 PM, Stephen Boyd wrote: > > > On 06/06, Daniel Lezcano wrote: > > >> On 06/03/2013 10:33 PM, Stephen Boyd wrote: > > >>> On an SMP system with only one global cloc

[PATCHv2 2/3] ARM: msm: Remove TMR and TMR0 static mappings

2013-06-12 Thread Stephen Boyd
Nobody is using these mappings so just drop them. of_iomap() in the timer driver will take care of it for us. Doing this allows us to remove the 8x60 and 8960 iomap files completely. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-dt-8660.c | 3 +- arch/arm/mach-msm/board

[PATCHv2 0/3] Remove msm_iomap for 8x60 and 8960

2013-06-12 Thread Stephen Boyd
merge window or after to remove those two. Patches are based on David Brown's MSM for-next tree. git://git.kernel.org/pub/scm/linux/kernel/git/davidb/linux-msm.git for-next Changes since v1: * Fixed mapping on 7x00 * Fixed compile on 7k where uart mappings are used by devices files Steph

[PATCHv2 1/3] ARM: msm: Move debug-macro.S to include/debug

2013-06-12 Thread Stephen Boyd
One more step to allowing MSM to participate in the multi-platform defconfig. Signed-off-by: Stephen Boyd --- arch/arm/Kconfig.debug | 9 +++- .../mach/debug-macro.S => include/debug/msm.S} | 32 ++- arch/arm/mach-msm/include/mach/msm_iomap-896

[PATCHv2 3/3] ARM: msm: Don't compile __msm_ioremap_caller() unless used

2013-06-12 Thread Stephen Boyd
This function is only used on MSM7x00A so only compile the function if the build includes support for that platform. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c index b99c3bc

[PATCH] ARM: msm: Move msm_timer to CLOCKSOURCE_OF_DECLARE

2013-06-12 Thread Stephen Boyd
This allows us to remove the init_time callback in the DT machine descriptors, shrinking the code. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-dt-8660.c | 1 - arch/arm/mach-msm/board-dt-8960.c | 1 - arch/arm/mach-msm/common.h| 1 - arch/arm/mach-msm/timer.c | 17

[PATCH] ARM: sched_clock: Load cycle count after epoch stabilizes

2013-06-12 Thread Stephen Boyd
. Signed-off-by: Stephen Boyd --- Found this while reading through the code. I haven't actually seen it in practice but I think it's real. arch/arm/kernel/sched_clock.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/arch/arm/kernel/sched_clock.c

Re: [PATCH v4 0/5] clk: implement remuxing during set_rate

2013-06-12 Thread Stephen Boyd
set_parent operation. I'd like to see this go into 3.11. We can tackle the larger problem that Saravana brought up later on since we're no worse off than we already are without these patches. Feel free to add my reviewed-by to all patches. Reviewed-by: Stephen Boyd -- Qualcomm Innova

[RFC/PATCH 10/13] clk: msm: Add support for MSM8960's multimedia clock controller (MMCC)

2013-06-12 Thread Stephen Boyd
Fill in the data and wire up the multimedia clock controller to the MSM clock driver. This should allow multimedia device drivers to control their clocks on 8960 based platforms. Cc: devicetree-disc...@lists.ozlabs.org Signed-off-by: Stephen Boyd --- .../devicetree/bindings/clock/qcom,mmcc.txt

[RFC/PATCH 09/13] clk: msm: Add support for MSM8960's global clock controller (GCC)

2013-06-12 Thread Stephen Boyd
Fill in the data and wire up the global clock controller to the MSM clock driver. This should allow most non-multimedia device drivers to control their clocks on 8960 based platforms. Cc: devicetree-disc...@lists.ozlabs.org Signed-off-by: Stephen Boyd --- .../devicetree/bindings/clock/qcom

[RFC/PATCH 07/13] clk: msm: Add support for branches/gate clocks

2013-06-12 Thread Stephen Boyd
Cc: devicetree-disc...@lists.ozlabs.org Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/clock/msm.txt | 28 drivers/clk/msm/Makefile| 1 + drivers/clk/msm/clk-branch.c| 190 drivers/clk/msm/clk

[RFC/PATCH 13/13] ARM: dts: msm: Add clock entries for MSM8960 uart device

2013-06-12 Thread Stephen Boyd
Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/msm8960-cdp.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/msm8960-cdp.dts b/arch/arm/boot/dts/msm8960-cdp.dts index 1c0691c..caf13ae 100644 --- a/arch/arm/boot/dts/msm8960-cdp.dts +++ b/arch/arm/boot/dts/msm8960

[RFC/PATCH 06/13] clk: msm: Add support for root clock generators (RCGs)

2013-06-12 Thread Stephen Boyd
Cc: devicetree-disc...@lists.ozlabs.org Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/clock/msm.txt | 31 + drivers/clk/msm/Makefile| 2 + drivers/clk/msm/clk-rcg.c | 754 drivers/clk/msm/clk-rcg.h

[RFC/PATCH 03/13] clk: Add of_clk_match() for device drivers

2013-06-12 Thread Stephen Boyd
parsed. Signed-off-by: Stephen Boyd --- drivers/clk/clk.c| 64 include/linux/clk-provider.h | 10 +++ 2 files changed, 74 insertions(+) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 282b10e..f40ce9b 100644 --- a/drivers/clk

[RFC/PATCH 12/13] ARM: dts: msm: Add MSM8960 MMCC DT nodes

2013-06-12 Thread Stephen Boyd
Add the necessary DT data to probe the multimedia clock controller on MSM8960 devices. Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/msm8960-cdp.dts | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/msm8960-cdp.dts b/arch/arm/boot

[RFC/PATCH 05/13] clk: msm: Add support for phase locked loops (PLLs)

2013-06-12 Thread Stephen Boyd
Add support for MSM's PLLs (phase locked loops). This is sufficient enough to be able to determine the rate the PLL is running at. Cc: devicetree-disc...@lists.ozlabs.org Signed-off-by: Stephen Boyd --- Documentation/devicetree/bindings/clock/msm.txt | 40 drivers/clk/Kc

[RFC/PATCH 00/13] Add support for MSM's mmio clocks

2013-06-12 Thread Stephen Boyd
uld be great if more experienced DT persons could weigh in here. Please note this patchset relies on my previous patch series that moves existing MSM clock code to the common clock framework [2]. Stephen Boyd (13): clk: fixed-rate: Export clk_fixed_rate_register() clk: Add of_init_clk_data()

[RFC/PATCH 08/13] clk: msm: Add MSM clock driver

2013-06-12 Thread Stephen Boyd
Signed-off-by: Stephen Boyd --- drivers/clk/msm/Makefile | 2 + drivers/clk/msm/core.c | 265 + drivers/clk/msm/internal.h | 24 3 files changed, 291 insertions(+) create mode 100644 drivers/clk/msm/core.c create mode 100644 drivers/clk

[RFC/PATCH 11/13] ARM: dts: msm: Add MSM8960 GCC DT nodes

2013-06-12 Thread Stephen Boyd
Add the necessary DT data to probe the global clock controller on MSM8960 devices. Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/msm8960-cdp.dts | 72 +++ 1 file changed, 72 insertions(+) diff --git a/arch/arm/boot/dts/msm8960-cdp.dts b/arch/arm/boot

[RFC/PATCH 01/13] clk: fixed-rate: Export clk_fixed_rate_register()

2013-06-12 Thread Stephen Boyd
Export this symbol so that modules can register fixed rate clocks. Signed-off-by: Stephen Boyd --- drivers/clk/clk-fixed-rate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index dc58fbd..1ed591a 100644 --- a/drivers/clk/clk

[RFC/PATCH 02/13] clk: Add of_init_clk_data() to parse common clock bindings

2013-06-12 Thread Stephen Boyd
ve to free the strings allocated here which could be cumbersome. Cc: Rob Herring Signed-off-by: Stephen Boyd --- drivers/clk/clk.c| 59 +++- include/linux/clk-provider.h | 3 +++ 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/dr

[RFC/PATCH 04/13] clk: Add set_rate_and_parent() op

2013-06-12 Thread Stephen Boyd
hange during clk_set_rate() it will call the .set_rate_and_parent() op if available and fall back to calling .set_parent() followed by .set_rate() otherwise. Cc: James Hogan Signed-off-by: Stephen Boyd --- Documentation/clk.txt| 3 ++ drivers/clk/clk.c

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

2013-06-13 Thread Stephen Boyd
. This way, if the clockevent is a dummy it will take the tick device duty as 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 Glei

Re: [PATCH] ARM: mmu: Add debug_ll_io_init() mappings to early mappings

2013-06-14 Thread Stephen Boyd
On 06/14, Rob Herring wrote: > On 06/12/2013 12:21 PM, Stephen Boyd wrote: > > On 06/11, Rob Herring wrote: > >> On Tue, Jun 11, 2013 at 8:30 PM, Stephen Boyd wrote: > >> > >>> diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c > >>> index e0

Re: [PATCH] ARM: mmu: Add debug_ll_io_init() mappings to early mappings

2013-06-14 Thread Stephen Boyd
On 06/14, Stephen Boyd wrote: > On 06/14, Rob Herring wrote: > > On 06/12/2013 12:21 PM, Stephen Boyd wrote: > > > On 06/11, Rob Herring wrote: > > >> Can you use vm_reserve_area_early here or perhaps just call > > >> iotable_init instead of create_mappin

[PATCH v2 2/2] ARM: mmu: Introduce iotable_init_caller()

2013-06-14 Thread Stephen Boyd
ar in vmallocinfo. This allows us to differentiate the debug_ll mapping from the other iotable_init() mappings. Cc: Rob Herring Signed-off-by: Stephen Boyd --- I'm ok without this patch. Using __builtin_return_address(0) seems to do alright on framepointer builds but fails on unwind table builds so I

[PATCH v2 1/2] ARM: mmu: Add debug_ll_io_init() mappings to early mappings

2013-06-14 Thread Stephen Boyd
) Fix it by telling generic layers about the static mapping via iotable_init(). This also has the nice side effect of letting you see the mapping in procfs' vmallocinfo file. Cc: Rob Herring Cc: Stephen Warren Signed-off-by: Stephen Boyd --- Changes since v1: * Use iotable_init() inste

Re: [PATCH] gpio: msm-v1: Remove errant __devinit to fix compile

2013-06-17 Thread Stephen Boyd
On 06/16/13 22:54, Linus Walleij wrote: > On Tue, Jun 4, 2013 at 9:20 PM, Stephen Boyd wrote: > >> Commit 7bce696 (gpio: Make gpio-msm-v1 into a platform driver, >> 2013-03-04) was based on an older kernel where __devinit still >> existed. Remove the erroneous __devinit

Re: [GIT PULL 3/3] msm clock for 3.11

2013-06-17 Thread Stephen Boyd
provides and finally moves the proc_comm clock code to the common >> struct clk. >> >> This patch series will be used as the foundation of the MSM 8660/8960 >> clock code that I plan to send out after this series. >> >> ---

[PATCH v2] ARM: msm: Move msm_timer to CLOCKSOURCE_OF_DECLARE

2013-06-17 Thread Stephen Boyd
This allows us to remove the init_time callback in the DT machine descriptors, shrinking the code. Signed-off-by: Stephen Boyd --- Changes since v1: * Added CLKSRC_OF selection arch/arm/Kconfig | 1 + arch/arm/mach-msm/board-dt-8660.c | 1 - arch/arm/mach-msm/board-dt-8960

[PATCH/RESEND 11/12] ARM: msm: Make proc_comm clock control into a platform driver

2013-06-17 Thread Stephen Boyd
Acked-by: Mike Turquette Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-halibut.c | 2 +- arch/arm/mach-msm/board-msm7x30.c | 2 +- arch/arm/mach-msm/board-qsd8x50.c | 2 +- arch/arm/mach-msm/board-trout.c| 3 +-- arch/arm/mach-msm/clock-pcom.c | 23

[PATCH/RESEND 12/12] ARM: msm: Migrate to common clock framework

2013-06-17 Thread Stephen Boyd
original MSM clock code we make a wrapper for clk_reset() that calls the struct msm_clk specific reset function. This is necessary for the usb and sdcc devices on MSM until a better suited API is made available. Cc: Saravana Kannan Acked-by: Mike Turquette Signed-off-by: Stephen Boyd --- arch/arm

[PATCH/RESEND 04/12] msm_sdcc: Convert to clk_prepare/unprepare

2013-06-17 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Cc: Chris Ball Signed-off-by: Stephen Boyd --- drivers/mmc/host/msm_sdcc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc

[PATCH/RESEND 06/12] msm: iommu: Use clk_set_rate() instead of clk_set_min_rate()

2013-06-17 Thread Stephen Boyd
Calling clk_set_min_rate() is no better than just calling clk_set_rate() because MSM clock code already takes care of calling the min_rate ops if the clock really needs clk_set_min_rate() called on it. Cc: Joerg Roedel Signed-off-by: Stephen Boyd --- drivers/iommu/msm_iommu_dev.c | 3 +-- 1

[PATCH/RESEND 03/12] usb: otg: msm: Convert to clk_prepare/unprepare

2013-06-17 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Acked-by: Felipe Balbi Signed-off-by: Stephen Boyd --- drivers/usb/phy/phy-msm-usb.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a

[PATCH/RESEND 10/12] ARM: msm: Prepare clk_get() users in mach-msm for clock-pcom driver

2013-06-17 Thread Stephen Boyd
eorder the initcall order of dma.c so that it initializes after the clock driver probes but before any drivers use dma APIs. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Makefile| 9 ++--- arch/arm/mach-msm/board-trout-panel.c | 19 +++ arch/arm/mach

[PATCH/RESEND 09/12] ARM: msm: Remove clock-7x30.h include file

2013-06-17 Thread Stephen Boyd
clock-7x30.h include file along with it. Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-7x30.h | 155 arch/arm/mach-msm/devices-msm7x30.c | 3 - 2 files changed, 158 deletions(-) delete mode 100644 arch/arm/mach-msm/clock-

[PATCH/RESEND 07/12] ARM: msm: Remove custom clk_set_flags() API

2013-06-17 Thread Stephen Boyd
Nobody is using this API upstream and it's just contributing cruft. Remove it so the MSM clock API is closer to the generic struct clock API. Acked-by: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-pcom.c | 10 -- arch/arm/mach-msm/cl

[PATCH/RESEND 00/12] Convert MSM to common clock framework

2013-06-17 Thread Stephen Boyd
s the foundation of the MSM 8660/8960 clock code that I plan to send out after this series. Stephen Boyd (12): msm_serial: Convert to clk_prepare/unprepare msm_serial: Use devm_clk_get() and properly return errors usb: otg: msm: Convert to clk_prepare/unprepare msm_sdcc: Convert to clk_pr

[PATCH/RESEND 02/12] msm_serial: Use devm_clk_get() and properly return errors

2013-06-17 Thread Stephen Boyd
call uart_remove_one_port() to do the proper cleanup. Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c

[PATCH/RESEND 08/12] ARM: msm: Remove custom clk_set_{max,min}_rate() API

2013-06-17 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. Acked-by: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-debug.c | 9 + arch/arm/mach-msm/cl

[PATCH/RESEND 01/12] msm_serial: Convert to clk_prepare/unprepare

2013-06-17 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial

[PATCH/RESEND 05/12] msm: iommu: Convert to clk_prepare/unprepare

2013-06-17 Thread Stephen Boyd
techniques. Cc: Joerg Roedel Signed-off-by: Stephen Boyd --- drivers/iommu/msm_iommu_dev.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/iommu/msm_iommu_dev.c b/drivers/iommu/msm_iommu_dev.c index 8e8fb07..d344f6a 100644 --- a/drivers/iommu

Re: [PATCH RFC 3/3] clk: dt: binding for basic divider clock

2013-06-04 Thread Stephen Boyd
On 06/03/13 10:53, Mike Turquette wrote: > +Required properties: > +- compatible : shall be "divider-clock". > +- #clock-cells : from common clock binding; shall be set to 0. > +- clocks : link to phandle of parent clock > +- reg : base address for register controlling adjustable divider > +- mask

[PATCH] gpio: msm-v1: Remove errant __devinit to fix compile

2013-06-04 Thread Stephen Boyd
Commit 7bce696 (gpio: Make gpio-msm-v1 into a platform driver, 2013-03-04) was based on an older kernel where __devinit still existed. Remove the erroneous __devinit marking. Cc: David Brown Signed-off-by: Stephen Boyd --- drivers/gpio/gpio-msm-v1.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 00/12] Convert MSM to common clock framework

2013-06-04 Thread Stephen Boyd
also removes some custom clock APIs that MSM provides and finally moves the proc_comm clock code to the common struct clk. This patch series will be used as the foundation of the MSM 8660/8960 clock code that I plan to send out after this series. Stephen Boyd (12): msm_serial: Convert to

[PATCH 01/12] msm_serial: Convert to clk_prepare/unprepare

2013-06-04 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial

[PATCH 02/12] msm_serial: Use devm_clk_get() and properly return errors

2013-06-04 Thread Stephen Boyd
call uart_remove_one_port() to do the proper cleanup. Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index 0149603..2c6cfb3 1

[PATCH 06/12] msm: iommu: Use clk_set_rate() instead of clk_set_min_rate()

2013-06-04 Thread Stephen Boyd
Calling clk_set_min_rate() is no better than just calling clk_set_rate() because MSM clock code already takes care of calling the min_rate ops if the clock really needs clk_set_min_rate() called on it. Signed-off-by: Stephen Boyd --- drivers/iommu/msm_iommu_dev.c | 3 +-- 1 file changed, 1

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

2013-06-04 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. Acked-by: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-debug.c | 9 + arch/arm/mach-msm/cl

[PATCH 11/12] ARM: msm: Make proc_comm clock control into a platform driver

2013-06-04 Thread Stephen Boyd
Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/board-halibut.c | 2 +- arch/arm/mach-msm/board-msm7x30.c | 2 +- arch/arm/mach-msm/board-qsd8x50.c | 2 +- arch/arm/mach-msm/board-trout.c| 3 +-- arch/arm/mach-msm/clock-pcom.c | 23 +-- arch

[PATCH 10/12] ARM: msm: Prepare clk_get() users in mach-msm for clock-pcom driver

2013-06-04 Thread Stephen Boyd
eorder the initcall order of dma.c so that it initializes after the clock driver probes but before any drivers use dma APIs. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/Makefile| 9 ++--- arch/arm/mach-msm/board-trout-panel.c | 19 +++ arch/arm/mach

[PATCH 12/12] ARM: msm: Migrate to common clock framework

2013-06-04 Thread Stephen Boyd
original MSM clock code we make a wrapper for clk_reset() that calls the struct msm_clk specific reset function. This is necessary for the usb and sdcc devices on MSM until a better suited API is made available. Cc: Saravana Kannan Cc: Mike Turquette Signed-off-by: Stephen Boyd --- arch/arm

[PATCH 07/12] ARM: msm: Remove custom clk_set_flags() API

2013-06-04 Thread Stephen Boyd
Nobody is using this API upstream and it's just contributing cruft. Remove it so the MSM clock API is closer to the generic struct clock API. Acked-by: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-pcom.c | 10 -- arch/arm/mach-msm/cl

[PATCH 09/12] ARM: msm: Remove clock-7x30.h include file

2013-06-04 Thread Stephen Boyd
clock-7x30.h include file along with it. Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-7x30.h | 155 arch/arm/mach-msm/devices-msm7x30.c | 3 - 2 files changed, 158 deletions(-) delete mode 100644 arch/arm/mach-msm/clock-

[PATCH 04/12] msm_sdcc: Convert to clk_prepare/unprepare

2013-06-04 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Signed-off-by: Stephen Boyd --- drivers/mmc/host/msm_sdcc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c

[PATCH 05/12] msm: iommu: Convert to clk_prepare/unprepare

2013-06-04 Thread Stephen Boyd
techniques. Signed-off-by: Stephen Boyd --- drivers/iommu/msm_iommu_dev.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/iommu/msm_iommu_dev.c b/drivers/iommu/msm_iommu_dev.c index 8e8fb07..d344f6a 100644 --- a/drivers/iommu/msm_iommu_dev.c +++ b/drivers

[PATCH 03/12] usb: otg: msm: Convert to clk_prepare/unprepare

2013-06-04 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Cc: Felipe Balbi Signed-off-by: Stephen Boyd --- drivers/usb/phy/phy-msm-usb.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/usb

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

2013-06-04 Thread Stephen Boyd
On 06/04, Nicolas Pitre wrote: > On Mon, 3 Jun 2013, Stephen Boyd wrote: > > > On 06/03/13 15:45, Russell King - ARM Linux wrote: > > > On Mon, Jun 03, 2013 at 03:37:39PM -0700, Stephen Boyd wrote: > > >> In my case I'm booting a kernel with textoffset =

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

2013-06-04 Thread Stephen Boyd
On 06/04, Nicolas Pitre wrote: > On Tue, 4 Jun 2013, Stephen Boyd wrote: > > > On 06/04, Nicolas Pitre wrote: > > > > > > I've looked at the code and I think that #1 in your initial options is > > > probably best here. I agree with Russell about #

[PATCHv3 1/3] sched_clock: Add support for >32 bit sched_clock

2013-06-05 Thread Stephen Boyd
handling that the generic sched_clock code already has. All users should switch over to the 64bit read function so we can deprecate setup_sched_clock() in favor of sched_clock_setup(). Signed-off-by: Stephen Boyd --- I've noticed that we probably need to update the mult/shift calculation simil

[PATCHv3 3/3] arm64: Move to generic sched_clock infrastructure

2013-06-05 Thread Stephen Boyd
the first read. Cc: Christopher Covington Cc: Catalin Marinas 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 56b3f6d..f9c6e92

[PATCHv3 0/3] 64bit friendly generic sched_clock

2013-06-05 Thread Stephen Boyd
just copy/paste the maxsec calculation code here or do something else? Stephen Boyd (3): sched_clock: Add support for >32 bit sched_clock ARM: arch_timer: Move to generic sched_clock framework arm64: Move to generic sched_clock infrastructure arch/arm/kernel/arch_timer.c | 14 ++---

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