Meaning of clk_round_rate()?

2010-07-14 Thread Stephen Boyd
What is the meaning of clk_round_rate() in the clk API (include/linux/clk.h)? The function documentation says adjust a rate to the exact rate a clock can provide. That seems pretty vague. I'm lead to believe that it rounds the rate to the closest rate supported. Is that correct? Is there some

[PATCH 1/3] [ARM] Translate delay.S into (mostly) C

2010-09-03 Thread Stephen Boyd
vmlinux.new add/remove: 0/0 grow/shrink: 2/0 up/down: 12/0 (12) function old new delta __udelay 48 56 +8 __const_udelay40 44 +4 Signed-off-by: Stephen Boyd sb

[PATCH 2/3] [ARM] Allow machines to override __delay()

2010-09-03 Thread Stephen Boyd
be pointed to a timer based delay once the timer has been properly mapped. Up until that point __delay() and udelay() will use delay_loop() which is always safe to call. This patch is inspired by x86's delay.c Signed-off-by: Stephen Boyd sb...@codeaurora.org Reviewed-by: Saravana Kannan skan

[PATCH 0/3] Fixing udelay() on SMP (and non-SMP too)

2010-09-03 Thread Stephen Boyd
of calibrate_delay_direct(). -- Reference -- [1] http://article.gmane.org/gmane.linux.kernel/977567 [2] http://article.gmane.org/gmane.linux.ports.arm.kernel/78496 Stephen Boyd (3): [ARM] Translate delay.S into (mostly) C [ARM] Allow machines to override __delay() [ARM] Implement a timer based __delay() loop

[PATCH 3/3] [ARM] Implement a timer based __delay() loop

2010-09-03 Thread Stephen Boyd
though since BogoMIPS are bogus anyway (hence the name). This loop is pretty much a copy of AVR's version made more generic. Signed-off-by: Stephen Boyd sb...@codeaurora.org Reviewed-by: Saravana Kannan skan...@codeaurora.org --- arch/arm/include/asm/delay.h |1 + arch/arm/lib/delay.c

[PATCH 0/3] Fixing udelay() on SMP (and non-SMP too)

2010-09-07 Thread Stephen Boyd
frequency through the use of calibrate_delay_direct(). -- Reference -- [1] http://article.gmane.org/gmane.linux.kernel/977567 [2] http://article.gmane.org/gmane.linux.ports.arm.kernel/78496 Stephen Boyd (3): [ARM] Translate delay.S into (mostly) C [ARM] Allow machines to override __delay

[PATCH 1/3] [ARM] Translate delay.S into (mostly) C

2010-09-07 Thread Stephen Boyd
vmlinux.new add/remove: 0/0 grow/shrink: 2/0 up/down: 12/0 (12) function old new delta __udelay 48 56 +8 __const_udelay40 44 +4 Signed-off-by: Stephen Boyd sb

[PATCH 2/3] [ARM] Allow machines to override __delay()

2010-09-07 Thread Stephen Boyd
be pointed to a timer based delay once the timer has been properly mapped. Up until that point __delay() and udelay() will use delay_loop() which is always safe to call. This patch is inspired by x86's delay.c Signed-off-by: Stephen Boyd sb...@codeaurora.org Reviewed-by: Saravana Kannan skan

[PATCH 3/3] [ARM] Implement a timer based __delay() loop

2010-09-07 Thread Stephen Boyd
though since BogoMIPS are bogus anyway (hence the name). This loop is pretty much a copy of AVR's version made more generic. Signed-off-by: Stephen Boyd sb...@codeaurora.org Reviewed-by: Saravana Kannan skan...@codeaurora.org --- arch/arm/include/asm/delay.h |1 + arch/arm/lib/delay.c

[PATCH 2/3] [ARM] Allow machines to override __delay()

2010-09-27 Thread Stephen Boyd
be pointed to a timer based delay once the timer has been properly mapped. Up until that point __delay() and udelay() will use delay_loop() which is always safe to call. This patch is inspired by x86's delay.c Signed-off-by: Stephen Boyd sb...@codeaurora.org Reviewed-by: Saravana Kannan skan

Re: [PATCH 1/3] [ARM] Translate delay.S into (mostly) C

2010-10-06 Thread Stephen Boyd
On 10/06/2010 07:26 AM, Nicolas Pitre wrote: Ok. $ size vmlinux.orig textdata bss dec hex filename 6533503 530232 1228296 8292031 7e86bf vmlinux.orig $ size vmlinux.new textdata bss dec hex filename 6533607 530232 1228296 8292135 7e8727

Re: [PATCH 1/3] [ARM] Translate delay.S into (mostly) C

2010-10-06 Thread Stephen Boyd
On 10/06/2010 12:35 PM, Daniel Walker wrote: Is it possible to do all this in assembly ? Can't you have the default implementation using this assembly with different function names, then just set the assembly function names in C code someplace? Sure we could do that. I went this route because

Re: [PATCH 1/3] [ARM] Translate delay.S into (mostly) C

2010-10-07 Thread Stephen Boyd
On 10/06/2010 01:05 PM, Nicolas Pitre wrote: You could use the noinline qualifier from linux/compiler.h with those functions you don't want inlined. That won't help me for the interleaving behavior though. Is it possible to do all this in assembly ? Can't you have the default

[PATCHv2 0/3] ARM: Fixing udelay() for SMP and non-SMP systems

2010-10-28 Thread Stephen Boyd
://article.gmane.org/gmane.linux.kernel/977567 [2] http://article.gmane.org/gmane.linux.ports.arm.kernel/78496 Stephen Boyd (3): ARM: Translate delay.S into (mostly) C ARM: Allow machines to override __delay() ARM: Implement a timer based __delay() loop arch/arm/include/asm/delay.h |5 ++- arch/arm

[PATCHv2 3/3] ARM: Implement a timer based __delay() loop

2010-10-28 Thread Stephen Boyd
is pretty much a copy of AVR's version. Reported-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org Reviewed-by: Saravana Kannan skan...@codeaurora.org --- arch/arm/include/asm/delay.h |1 + arch/arm/lib/delay.c | 18 ++ 2 files

[PATCHv2 2/3] ARM: Allow machines to override __delay()

2010-10-28 Thread Stephen Boyd
_should_ only be pointed to a timer based delay once the timer has been properly mapped. Up until that point __delay() and udelay() will use delay_loop() which is always safe to call. This patch is inspired by x86's delay.c Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/include/asm

Re: [PATCHv2 2/3] ARM: Allow machines to override __delay()

2010-11-04 Thread Stephen Boyd
On 11/04/2010 12:30 PM, Daniel Walker wrote: On Thu, 2010-10-28 at 14:19 -0700, Stephen Boyd wrote: + +static void (*delay_fn)(unsigned long) = delay_loop; + +void set_delay_fn(void (*fn)(unsigned long)) +{ + delay_fn = fn; +} This needs to be a static inline in the header file

Re: [PATCHv2 2/3] ARM: Allow machines to override __delay()

2010-11-05 Thread Stephen Boyd
On 11/05/2010 04:43 PM, Daniel Walker wrote: On Fri, 2010-11-05 at 14:51 -0700, Stephen Boyd wrote: Ok. Doing that increases the size of my vmlinux. $ size vmlinux.orig vmlinux.new textdata bss dec hex filename 7091426 594512 1244648 8930586 88451a vmlinux.orig 7091514

Re: [PATCH] drivers: char: hvc: add arm JTAG DCC console support

2010-12-01 Thread Stephen Boyd
On 12/01/2010 10:54 AM, Daniel Walker wrote: Are you talking about __dcc_getstatus only? I don't think adding volatile is going to hurt anything, if not having it causes problems. Just marking __dcc_getstatus volatile gives me 0038 hvc_dcc_get_chars: 38: ee10fe11mrc 14, 0,

Re: [PATCH] drivers: char: hvc: add arm JTAG DCC console support

2010-12-07 Thread Stephen Boyd
On 12/01/2010 12:20 PM, Stephen Boyd wrote: Definitely for TX since it seems like a redundant loop, but I agree RX code has changed. Instead of If RX buffer full Poll for RX buffer full Read character from RX buffer we would have If RX buffer full Read character from RX buffer which

[PATCHv3 4/4] msm: timer: Migrate to timer based __delay()

2010-12-07 Thread Stephen Boyd
We have to provide a dummy set_mode for the DGT since we don't want it to ever turn off. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/include/mach/timex.h |1 + arch/arm/mach-msm/timer.c | 16 +++- 2 files changed, 16 insertions(+), 1

[PATCHv3 3/4] ARM: Implement a timer based __delay() loop

2010-12-07 Thread Stephen Boyd
is pretty much a copy of AVR's version. Reported-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org Reviewed-by: Saravana Kannan skan...@codeaurora.org --- arch/arm/include/asm/delay.h |1 + arch/arm/lib/delay.c | 17 + 2 files

[PATCHv3 2/4] ARM: Allow machines to override __delay()

2010-12-07 Thread Stephen Boyd
_should_ only be pointed to a timer based delay once the timer has been properly mapped. Up until that point __delay() and udelay() will use delay_loop() which is always safe to call. This patch is inspired by x86's delay.c Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/include/asm

[PATCHv3 0/4] ARM: Fixing udelay() for SMP and non-SMP systems

2010-12-07 Thread Stephen Boyd
, I'm planning on submitting these to the patch queue unless I hear objections. Changes since v2: * Additional patch using the timer based delay Changes since v1: * likely() in delay.c * comment fixup for read_current_timer_delay_loop() * cosmetic improvements to commit text Stephen Boyd (4

Re: [PATCHv3 2/4] ARM: Allow machines to override __delay()

2010-12-08 Thread Stephen Boyd
On 12/08/2010 11:22 AM, Daniel Walker wrote: On Tue, 2010-12-07 at 20:38 -0800, Stephen Boyd wrote: + +static void (*delay_fn)(unsigned long) = delay_loop; + +void set_delay_fn(void (*fn)(unsigned long)) +{ + delay_fn = fn; +} + +/* + * loops = usecs * HZ * loops_per_jiffy

Re: [PATCHv3 2/4] ARM: Allow machines to override __delay()

2010-12-08 Thread Stephen Boyd
On 12/08/2010 12:26 PM, Daniel Walker wrote: The last time I thought you said there was no size change ? My tests showed a decrease .. Oh, right. There was no size change when I moved __delay() into the header in addition to the others. What compiler optimizations are you talking about

[PATCH 00/22] MSM clock driver updates

2010-12-16 Thread Stephen Boyd
nodes for locally-controlled clocks Saravana Kannan (1): msm: clock-7x30: Add 7x30 local clock driver Stepan Moskovchenko (3): msm: iommu: Add bus clocks to platform data msm: iommu: Clock control for the IOMMU driver msm: iommu: Rework clock logic and add IOMMU bus clock control Stephen

[PATCH 22/22] msm: clock-8x60: Don't keep IOMMU clocks on at boot

2010-12-16 Thread Stephen Boyd
Now that the IOMMU driver properly handles its clocks we can stop keeping the clocks it requires to be on during early boot. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-8x60.c |9 - 1 files changed

[PATCH 21/22] msm: iommu: Rework clock logic and add IOMMU bus clock control

2010-12-16 Thread Stephen Boyd
it does not have to deal with the placeholder driver anymore. Signed-off-by: Stepan Moskovchenko step...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/devices-msm8x60-iommu.c |5 - arch/arm/mach-msm/include/mach/iommu.h|5 - arch/arm/mach-msm

[PATCH 19/22] msm: iommu: Add bus clocks to platform data

2010-12-16 Thread Stephen Boyd
From: Stepan Moskovchenko step...@codeaurora.org Add the IOMMU bus clock and the IOMMU bus interconnect clocks to the platform data for an IOMMU device. These clocks are needed to access the IOMMU registers. Signed-off-by: Stepan Moskovchenko step...@codeaurora.org Signed-off-by: Stephen Boyd sb

[PATCH 18/22] msm: clock: Migrate to clkdev

2010-12-16 Thread Stephen Boyd
tables. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/Kconfig|1 + arch/arm/mach-msm/clock-7x30.h | 43 +- arch/arm/mach-msm/clock-8x60.h | 16

[PATCH 17/22] msm: Migrate to clock rate voting

2010-12-16 Thread Stephen Boyd
Add the appropriate clock voters and integrate clock.c with the voting driver so that voting works appropriately. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock.c | 23 +-- arch/arm

[PATCH 14/22] msm: clock: Support clk_set_parent() clk_ops

2010-12-16 Thread Stephen Boyd
Voting clocks are linked to the clock they vote on with a parent pointer. Implement this API for sub drivers which wish to use it. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock.c |2 ++ arch/arm/mach-msm

[PATCH 15/22] msm: clock-pcom: Add pbus specific clock ops

2010-12-16 Thread Stephen Boyd
power status use the pbus. To keep this change transparent across drivers and SoCs, add new ops that divides the rate by 2 before sending the request to the modem. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-pcom.c

[PATCH 13/22] msm: clock: Push down clock count and locking into sub drivers

2010-12-16 Thread Stephen Boyd
The clock voting code will need to call clk_set_rate() from within a spinlock so we must push down the refcount and lock into each sub driver to avoid recursive locking. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm

[PATCH 01/22] msm: clock: Remove unused code and definitions

2010-12-16 Thread Stephen Boyd
Remove dead code and push out clock-7x30.h and clock-pcom.h to where they are actually used. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/board-msm8x60.c |5 arch/arm/mach-msm/clock-pcom.c |1

[PATCH 02/22] msm: clock: Move debugfs code from clock.c to clock-debug.c

2010-12-16 Thread Stephen Boyd
...@codeaurora.org Signed-off-by: Matt Wagantall ma...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/Makefile |3 + arch/arm/mach-msm/clock-debug.c | 133 +++ arch/arm/mach-msm/clock.c | 127

[PATCH 11/22] msm: clock Add debugfs interface to measure clock rates

2010-12-16 Thread Stephen Boyd
Kannan skan...@codeaurora.org Signed-off-by: Matt Wagantall ma...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-7x30.c | 90 ++ arch/arm/mach-msm/clock-8x60.c | 101 +++ arch/arm/mach

[PATCH 10/22] msm: Move 8x60 to the real clock driver

2010-12-16 Thread Stephen Boyd
The dummy clock driver was added to make 8x60 compile due to proc_comm references in clock.c. Now that those references are gone we can compile the original clock.c with no errors and support clocks on 8x60. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb

[PATCH 09/22] msm: clock: Remove references to clk_ops_pcom

2010-12-16 Thread Stephen Boyd
clock.c with CONFIG_MSM_PROC_COMM=n. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-7x30.c |1 + arch/arm/mach-msm/clock-8x60.c |1 + arch/arm/mach-msm/clock-debug.c |3 +-- arch/arm/mach-msm/clock-local.c

[PATCH 06/22] msm: clock-7x30: Update clock table

2010-12-16 Thread Stephen Boyd
-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/devices-msm7x30.c | 147 --- 1 files changed, 85 insertions(+), 62 deletions(-) diff --git a/arch/arm/mach-msm/devices-msm7x30.c b/arch/arm/mach-msm/devices

[PATCH 05/22] msm: clock-7x30: Add 7x30 local clock driver

2010-12-16 Thread Stephen Boyd
From: Saravana Kannan skan...@codeaurora.org Support locally controllable clocks on the 7x30 target. Signed-off-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/Makefile |1 + arch/arm/mach-msm/clock-7x30.c | 1550

[PATCH 04/22] msm: clock: Add support for more proc_comm clocks

2010-12-16 Thread Stephen Boyd
Support the CE_CLK and CODEC_SSBI_CLK. Also add support for sdc, uart, and i2c clocks on targets which support proc_comm clocks. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-pcom.h |4 +++- arch/arm/mach

[PATCH] hvc_dcc: Simplify assembly for v6 and v7 ARM

2010-12-17 Thread Stephen Boyd
. Not marking it volatile causes GCC to cache the results of the status and RX buffer registers causing lockups. Cc: Tony Lindgren t...@atomide.com Cc: Arnd Bergmann a...@arndb.de Cc: Nicolas Pitre nicolas.pi...@linaro.org Cc: Daniel Walker dwal...@codeaurora.org Signed-off-by: Stephen Boyd sb

Re: [PATCH] hvc_dcc: Simplify assembly for v6 and v7 ARM

2010-12-20 Thread Stephen Boyd
On 12/20/2010 09:51 AM, Daniel Walker wrote: I would expect to see three patches. One that adds volatile, which appears to be a good fix. Another patch that changes the assembly lines, and another that does the clean up. The last two are more controversial ones Ok. I'll send a series later

[PATCH 0/3] hvc_dcc cleanups and fixes

2010-12-20 Thread Stephen Boyd
Here are the split patches. The first two patches cleanup and fix the hvc_dcc driver for my compiler. The final patch is more controversial, it removes the v6 and v7 differences in this driver. Stephen Boyd (3): hvc_dcc: Fix bad code generation by marking assembly volatile hvc_dcc: Simplify

[PATCH 1/3] hvc_dcc: Fix bad code generation by marking assembly volatile

2010-12-20 Thread Stephen Boyd
in this file as volatile since we don't want the compiler to optimize away these statements or move them around in any way. Cc: Tony Lindgren t...@atomide.com Cc: Arnd Bergmann a...@arndb.de Cc: Nicolas Pitre nicolas.pi...@linaro.org Cc: Daniel Walker dwal...@codeaurora.org Signed-off-by: Stephen Boyd sb

[PATCH 2/3] hvc_dcc: Simplify put_chars()/get_chars() loops

2010-12-20 Thread Stephen Boyd
Signed-off-by: Stephen Boyd sb...@codeaurora.org --- drivers/char/hvc_dcc.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/char/hvc_dcc.c b/drivers/char/hvc_dcc.c index 155ec10..ad23cc8 100644 --- a/drivers/char/hvc_dcc.c +++ b/drivers/char/hvc_dcc.c

Re: [PATCH 1/3] hvc_dcc: Fix bad code generation by marking assembly volatile

2010-12-20 Thread Stephen Boyd
On 12/20/2010 01:49 PM, Arnaud Lacombe wrote: Hi, On Mon, Dec 20, 2010 at 3:08 PM, Stephen Boyd sb...@codeaurora.org wrote: Without marking the asm __dcc_getstatus() volatile my compiler decides [...] What compiler ? That might be a usefull information to know, espectially 5 years from now

[PATCHv4 0/4] ARM: Fixing udelay() for SMP and non-SMP systems

2010-12-20 Thread Stephen Boyd
for read_current_timer_delay_loop() * cosmetic improvements to commit text Stephen Boyd (4): ARM: Translate delay.S into (mostly) C ARM: Allow machines to override __delay() ARM: Implement a timer based __delay() loop msm: timer: Migrate to timer based __delay() arch/arm/include/asm/delay.h

[PATCHv4 1/4] ARM: Translate delay.S into (mostly) C

2010-12-20 Thread Stephen Boyd
. Reviewed-by: Saravana Kannan skan...@codeaurora.org Acked-by: Nicolas Pitre nicolas.pi...@linaro.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- This will break builds when you switch back and forth without this patch. You need to rm arch/arm/lib/.delay.o.cmd if you ever build a kernel

[PATCHv4 3/4] ARM: Implement a timer based __delay() loop

2010-12-20 Thread Stephen Boyd
is pretty much a copy of AVR's version. Reported-and-reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/include/asm/delay.h |2 ++ arch/arm/lib/delay.c | 17 + 2 files changed, 19 insertions(+), 0 deletions

[PATCHv4 4/4] msm: timer: Migrate to timer based __delay()

2010-12-20 Thread Stephen Boyd
We have to provide a dummy set_mode for the DGT since we don't want it to ever turn off. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- This is more of an illustration patch. This code needs to be fixed to always leave clocksources running. arch/arm/mach-msm/include/mach/timex.h |1

[PATCHv4 2/4] ARM: Allow machines to override __delay()

2010-12-20 Thread Stephen Boyd
_should_ only be pointed to a timer based delay once the timer has been properly mapped. Up until that point __delay() and udelay() will use delay_loop() which is always safe to call. This patch is inspired by x86's delay.c Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd

[PATCH] arm: mm: Poison freed init memory

2011-01-05 Thread Stephen Boyd
what other architectures are doing already. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- This is a minimal patch to get the idea across. I'm tempted to duplicate free_area() and rename it to free_init_area() and then have it take virtual addresses instead of pfns. Then the call sites

Re: [PATCH 0/3] hvc_dcc cleanups and fixes

2011-01-05 Thread Stephen Boyd
Greg, On 12/20/2010 12:08 PM, Stephen Boyd wrote: Here are the split patches. Should I resend these with the proper acks or can/have you picked these patches up? -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora

Re: [PATCH] arm: mm: Poison freed init memory

2011-01-10 Thread Stephen Boyd
On 01/06/2011 01:07 AM, Russell King - ARM Linux wrote: On Wed, Jan 05, 2011 at 09:25:55PM -0800, Stephen Boyd wrote: On 01/05/2011 12:26 PM, Russell King - ARM Linux wrote: On Wed, Jan 05, 2011 at 11:47:25AM -0800, Stephen Boyd wrote: Poisoning __init marked memory can be useful when tracking

Re: interrupt latency while resuming.

2011-01-10 Thread Stephen Boyd
On 01/08/2011 09:13 AM, Russell King - ARM Linux wrote: We know it takes something like 200ms to run the lpg calibration, and this is responsible for the majority of the time when bringing a CPU online. One solution is to sort out whether we need to re-run the lpj calibration each time we

Re: [PATCH] TWD: enable one-shot mode

2011-01-10 Thread Stephen Boyd
On 12/24/2010 11:18 AM, Russell King - ARM Linux wrote: Allow one shot timer mode to be used with the TWD. This allows NOHZ mode to be used on SMP systems using the TWD localtimer. Tested on Versatile Express. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- Acks/Tested-by's

Re: [PATCH] drivers: char: hvc: add arm JTAG DCC console support

2011-01-14 Thread Stephen Boyd
On 01/14/2011 11:19 AM, Tony Lindgren wrote: * Stephen Boyd sb...@codeaurora.org [101207 11:00]: On 12/01/2010 12:20 PM, Stephen Boyd wrote: Definitely for TX since it seems like a redundant loop, but I agree RX code has changed. Instead of If RX buffer full Poll for RX buffer full Read

[PATCH 0/4] MSM: clock debugfs and cleanups

2011-01-24 Thread Stephen Boyd
Stephen Boyd (3): msm: clock: Remove unused code and definitions msm: clock: Invert debugfs directory layout msm: clock: Add support for more proc_comm clocks arch/arm/mach-msm/Makefile |3 + arch/arm/mach-msm/board-msm8x60.c |5 +- arch/arm/mach-msm/clock-debug.c | 131

[PATCH 2/4] msm: clock: Move debugfs code from clock.c to clock-debug.c

2011-01-24 Thread Stephen Boyd
...@codeaurora.org Signed-off-by: Matt Wagantall ma...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/Makefile |3 + arch/arm/mach-msm/clock-debug.c | 133 +++ arch/arm/mach-msm/clock.c | 127

[PATCH 4/4] msm: clock: Add support for more proc_comm clocks

2011-01-24 Thread Stephen Boyd
Support the CE_CLK and CODEC_SSBI_CLK. Also add support for uart, and i2c clocks on targets which support proc_comm clocks. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-pcom.h |4 +++- arch/arm/mach-msm

[PATCH 3/4] msm: clock: Invert debugfs directory layout

2011-01-24 Thread Stephen Boyd
that exist today. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-debug.c | 48 ++ 1 files changed, 23 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-msm/clock-debug.c b/arch

Re: [PATCH 1/4] msm: clock: Remove unused code and definitions

2011-01-26 Thread Stephen Boyd
On 01/26/2011 02:03 PM, Daniel Walker wrote: He's adding stuff too .. So it's not _just_ removal which is what I was getting at. I'll split this, no worries. -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora

[PATCH] ARM: Fix SMP_ON_UP for non ARM ltd. implementations

2011-01-26 Thread Stephen Boyd
The SMP_ON_UP checks restrict the feature to ARM limited designs, when other implementers support SMP designs. Instead of checking for an ARM CPU and ARMv6/v7 just check for a v6 or v7 and then rely on the MPIDR for non ARM 11MPCore designs. Signed-off-by: Stephen Boyd sb...@codeaurora.org

[PATCHv2 1/5] msm: clock: Remove unused code and definitions

2011-01-26 Thread Stephen Boyd
This code is dead or otherwise useless so just remove it. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/board-msm8x60.c |4 --- arch/arm/mach-msm/clock.c | 20 +--- arch/arm/mach-msm/clock.h

[PATCHv2 5/5] msm: clock: Add support for more proc_comm clocks

2011-01-26 Thread Stephen Boyd
Add support for the ce, codec_ssbi, uart clocks, and i2c clocks. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-pcom.h |4 +++- arch/arm/mach-msm/devices-msm7x30.c |2 ++ arch/arm/mach-msm/devices

[PATCHv2 3/5] msm: clock: Move debugfs code from clock.c to clock-debug.c

2011-01-26 Thread Stephen Boyd
...@codeaurora.org Signed-off-by: Matt Wagantall ma...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/Makefile |3 + arch/arm/mach-msm/clock-debug.c | 133 +++ arch/arm/mach-msm/clock.c | 127

[PATCHv2 4/5] msm: clock: Invert debugfs directory layout

2011-01-26 Thread Stephen Boyd
that exist today. Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/clock-debug.c | 48 ++ 1 files changed, 23 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-msm/clock-debug.c b/arch

Re: [PATCH] ARM: Fix SMP_ON_UP for non ARM ltd. implementations

2011-01-31 Thread Stephen Boyd
in. Reported-and-Tested-by: Stephen Boyd sb...@codeaurora.org -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum. -- To unsubscribe from this list: send the line unsubscribe linux-arm-msm in the body of a message to majord

Re: [PATCH 0/3] hvc_dcc cleanups and fixes

2011-02-03 Thread Stephen Boyd
On Mon, Dec 20, 2010 at 12:08:35PM -0800, Stephen Boyd wrote: Here are the split patches. The first two patches cleanup and fix the hvc_dcc driver for my compiler. The final patch is more controversial, it removes the v6 and v7 differences in this driver. Stephen Boyd (3): hvc_dcc: Fix

[PATCHv2 0/3] hvc_dcc cleanups and fixes

2011-02-03 Thread Stephen Boyd
Redone against tty-next and collected acks from Nicolas and Tony. Stephen Boyd (3): hvc_dcc: Fix bad code generation by marking assembly volatile hvc_dcc: Simplify put_chars()/get_chars() loops hvc_dcc: Simplify assembly for v6 and v7 ARM drivers/tty/hvc/hvc_dcc.c | 43

[PATCHv2 3/3] hvc_dcc: Simplify assembly for v6 and v7 ARM

2011-02-03 Thread Stephen Boyd
Pitre nicolas.pi...@linaro.org Cc: Daniel Walker dwal...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- drivers/tty/hvc/hvc_dcc.c | 24 1 files changed, 0 insertions(+), 24 deletions(-) diff --git a/drivers/tty/hvc/hvc_dcc.c b/drivers/tty/hvc/hvc_dcc.c

[PATCHv2 2/3] hvc_dcc: Simplify put_chars()/get_chars() loops

2011-02-03 Thread Stephen Boyd
Signed-off-by: Stephen Boyd sb...@codeaurora.org --- drivers/tty/hvc/hvc_dcc.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/tty/hvc/hvc_dcc.c b/drivers/tty/hvc/hvc_dcc.c index 155ec10..ad23cc8 100644 --- a/drivers/tty/hvc/hvc_dcc.c +++ b/drivers/tty/hvc

[PATCHv2 1/3] hvc_dcc: Fix bad code generation by marking assembly volatile

2011-02-03 Thread Stephen Boyd
-by: Stephen Boyd sb...@codeaurora.org --- drivers/tty/hvc/hvc_dcc.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/tty/hvc/hvc_dcc.c b/drivers/tty/hvc/hvc_dcc.c index 6470f63..155ec10 100644 --- a/drivers/tty/hvc/hvc_dcc.c +++ b/drivers/tty/hvc/hvc_dcc.c

[PATCH 2/2] msm: clock: Migrate to clkdev

2011-02-23 Thread Stephen Boyd
tables. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/Kconfig|1 + arch/arm/mach-msm/board-msm7x30.c |1 + arch/arm/mach-msm/board-msm8960.c |1 + arch/arm/mach-msm/board-qsd8x50.c |1 + arch/arm/mach-msm/board-trout.c

[PATCH 1/2] msm: clock: Remove references to clk_ops_pcom

2011-02-23 Thread Stephen Boyd
clock.c and compile it for targets with CONFIG_MSM_PROC_COMM=n. We don't need to set the clk_ops at runtime until 7x30 local clock detection comes in. Right now it's just complicating things so just set the ops pointer statically. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach

[PATCH 0/4] SCM fixes and updates

2011-02-24 Thread Stephen Boyd
These are a few updates to SCM. The first two patches fix some bad code generation. The next patch saves a couple instructions on the slow path and the final patch determines the cacheline size dynamically instead of statically. Stephen Boyd (4): msm: scm: Mark inline asm as volatile msm: scm

[PATCH 1/4] msm: scm: Mark inline asm as volatile

2011-02-24 Thread Stephen Boyd
We don't want the compiler to remove these asm statements or reorder them in any way. Mark them as volatile to be sure. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/scm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-msm/scm.c

[PATCH 4/4] msm: scm: Get cacheline size from CTR

2011-02-24 Thread Stephen Boyd
Instead of hardcoding the cacheline size as 32, get the cacheline size from the CTR register. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/scm.c | 17 - 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-msm/scm.c b/arch/arm

[PATCH 3/4] msm: scm: Check for interruption immediately

2011-02-24 Thread Stephen Boyd
When we're interrupted on the secure side, we should just issue another smc instruction again instead of replaying the arguments to smc. Fix it. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/scm.c | 51 -- 1 files changed, 27

Re: [PATCH 4/4] msm: scm: Get cacheline size from CTR

2011-02-24 Thread Stephen Boyd
On 02/24/2011 11:32 AM, Sergei Shtylyov wrote: Stephen Boyd wrote: @@ -207,6 +204,14 @@ static int __scm_call(const struct scm_command *cmd) return ret; } +static inline u32 dcache_line_size(void) +{ +u32 ctr; + +asm volatile(mrc p15, 0, %0, c0, c0, 1 : =r (ctr

Re: [PATCH 1/4] msm: scm: Mark inline asm as volatile

2011-02-25 Thread Stephen Boyd
On 02/25/2011 03:56 AM, Will Deacon wrote: Hi Stephen, On Thu, 2011-02-24 at 18:44 +, Stephen Boyd wrote: We don't want the compiler to remove these asm statements or reorder them in any way. Mark them as volatile to be sure. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch

Re: [PATCH 2/4] msm: scm: Fix improper register assignment

2011-02-25 Thread Stephen Boyd
On 02/25/2011 05:23 AM, Will Deacon wrote: On Thu, 2011-02-24 at 18:44 +, Stephen Boyd wrote: Assign the registers used in the inline assembly immediately before the inline assembly block. This ensures the compiler doesn't optimize away dead register assignments when it shouldn't

Re: [PATCH 4/4] msm: scm: Get cacheline size from CTR

2011-02-28 Thread Stephen Boyd
On 02/24/2011 11:56 AM, Thomas Gleixner wrote: On Thu, 24 Feb 2011, Stephen Boyd wrote: I definitely don't want to do it for every loop. I'm fine with getting it every scm_call() invocation though. For now, I'll pull the end and cacheline_size variables out of the do-while loop. Why

Re: [PATCH 0/4] SCM fixes and updates

2011-03-09 Thread Stephen Boyd
On 02/24/2011 10:44 AM, Stephen Boyd wrote: These are a few updates to SCM. The first two patches fix some bad code generation. The next patch saves a couple instructions on the slow path and the final patch determines the cacheline size dynamically instead of statically. Stephen Boyd (4

[PATCH 3/3] msm: documentation: Add pil documentation

2011-03-09 Thread Stephen Boyd
From: Saravana Kannan skan...@codeaurora.org Change-Id: I471a4b581e0f5f6f4aaf1f585fb3c5805efe0de8 Signed-off-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- Documentation/arm/msm/pil.txt | 264 + 1 files

[PATCH 0/3] Peripheral image loader (PIL)

2011-03-09 Thread Stephen Boyd
These patches add support for PIL, a peripheral image loader. More details can be found in the third patch or the second patch's commit text. Saravana Kannan (1): msm: documentation: Add pil documentation Stephen Boyd (2): msm: 8660: Add clock control regions to iomap msm: Peripheral Image

[PATCH 1/3] msm: 8660: Add clock control regions to iomap

2011-03-09 Thread Stephen Boyd
Change-Id: I9e72f10d0da1d6f7df85d33b998edf424f6f Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/include/mach/msm_iomap-8x60.h |8 arch/arm/mach-msm/io.c |2 ++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git

[PATCH 2/3] msm: Peripheral Image Loader (PIL) driver

2011-03-09 Thread Stephen Boyd
the file will return the reference count for the device. The layout looks like this: - pil |- dsps |- q6 |- modem Change-Id: I041139464bbd3b646b82370ab540f40b0ac9af6b Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb

Re: [PATCH 1/3] msm: 8660: Add clock control regions to iomap

2011-03-10 Thread Stephen Boyd
On 03/10/2011 07:40 AM, Sergei Shtylyov wrote: diff --git a/arch/arm/mach-msm/include/mach/msm_iomap-8x60.h b/arch/arm/mach-msm/include/mach/msm_iomap-8x60.h index 3b19b8f..ddfc85b 100644 --- a/arch/arm/mach-msm/include/mach/msm_iomap-8x60.h +++

[PATCH] msm: uncompress.h: Fix putc unused warning

2011-03-18 Thread Stephen Boyd
-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/mach-msm/include/mach/uncompress.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-msm/include/mach/uncompress.h b/arch/arm/mach-msm/include/mach/uncompress.h index d94292c..47a5579 100644 --- a/arch/arm/mach-msm

[PATCHv2 4/4] msm: scm: Get cacheline size from CTR

2011-03-21 Thread Stephen Boyd
Instead of hardcoding the cacheline size as 32, get the cacheline size from the CTR register. Use an early_initcall because scm_call() is used to boot the secondary CPUs. Signed-off-by: Stephen Boyd sb...@codeaurora.org --- Changes since v1: * Use an early_initcall to get cacheline size (tglx

Re: [PATCH 16/20] video: msm: Set the EBI1 clock to 128MHz when performing blits

2011-03-21 Thread Stephen Boyd
On 03/18/2011 02:59 PM, Carl Vanderlip wrote: diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c index b03204d..0bb19fa 100644 --- a/drivers/video/msm/mdp.c +++ b/drivers/video/msm/mdp.c @@ -656,6 +657,13 @@ int mdp_probe(struct platform_device *pdev) goto

[PATCH 0/2] msm: dummy no-op clock support

2011-03-24 Thread Stephen Boyd
. This simplifies drivers because they can always assume a clock is present and error out if it isn't. On top of this, add dummy clocks for 8960 to ease driver development. Stephen Boyd (2): msm: clock: Support dummy clocks msm: 8960: Add dummy clocks for 8960 arch/arm/mach-msm/Makefile |1

Re: [PATCH 2/3] input: pmic8xxx_pwrkey: Add support for power key

2011-03-28 Thread Stephen Boyd
On 3/26/2011 9:52 AM, Anirudh Ghayal wrote: +static void pmic8xxx_pwrkey_timer(unsigned long handle) +{ + unsigned long flags; + struct pmic8xxx_pwrkey *pwrkey = (struct pmic8xxx_pwrkey *)handle; + + spin_lock_irqsave(pwrkey-lock, flags); + pwrkey-key_pressed = true; + +

[PATCHv5 0/3] Constant udelay() for SMP and non-SMP systems

2011-04-05 Thread Stephen Boyd
set_delay_fn() Changes since v2: * Additional patch using the timer based delay Changes since v1: * likely() in delay.c * comment fixup for read_current_timer_delay_loop() * cosmetic improvements to commit text Stephen Boyd (3): ARM: Translate delay.S into (mostly) C ARM: Allow machines

[PATCHv5 2/3] ARM: Allow machines to override __delay()

2011-04-05 Thread Stephen Boyd
_should_ only be pointed to a timer based delay once the timer has been properly mapped. Up until that point __delay() and udelay() will use delay_loop() which is always safe to call. This patch is inspired by x86's delay.c Reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd

[PATCHv5 3/3] ARM: Implement a timer based __delay() loop

2011-04-05 Thread Stephen Boyd
is pretty much a copy of AVR's version. Reported-and-reviewed-by: Saravana Kannan skan...@codeaurora.org Signed-off-by: Stephen Boyd sb...@codeaurora.org --- arch/arm/include/asm/delay.h |2 ++ arch/arm/lib/delay.c | 17 + 2 files changed, 19 insertions(+), 0 deletions

  1   2   3   4   5   6   7   8   9   10   >