Re: [PATCH v4 3/6] clk: introduce the common clock framework

2011-12-13 Thread Richard Zhao
Hi Mike, > + * > + * @recalc_rate Recalculate the rate of this clock, by quering hardware > + * and/or the clock's parent. It is up to the caller to insure > + * that the prepare_mutex is held across this call. Returns the > + * calculated rate. Optional, but re

Re: [PATCH 3/7] HACK: omap: convert 44xx data to common struct clk

2011-12-13 Thread Turquette, Mike
On Tue, Dec 13, 2011 at 8:27 PM, Paul Walmsley wrote: > Hi > > On Tue, 13 Dec 2011, Mike Turquette wrote: > >> omap_clk_get_by_name must die. > > You do realize that it exists for a reason?  That hardware clock names > don't have anything to do with the Linux device model? We have a tree structur

[PATCH 6/6] HACK: arm: reprogram twd based on clk notifier

2011-12-13 Thread Mike Turquette
From: Mike Turquette As a proof-of-concept, convert the existing smp_twd code to use clk notifiers in place of CPUfreq notifiers. This works out nicely for Cortex-A9 MPcore designs that scale all CPUs at the same frequency. For chips which can scale frequency independently this change makes les

[PATCH 5/6] smp_twd: Reconfigure clockevents after cpufreq change

2011-12-13 Thread Mike Turquette
From: Linus Walleij <(address hidden)> The localtimer's clock changes with the cpu clock. After a cpufreq transition, update the clockevent's frequency and reprogram the next clock event. Adds a clock called "smp_twd" that is used to determine the twd frequency, which can also be used at init tim

[PATCH 3/6] HACK: omap: clk: add mpu_periphclk clk node

2011-12-13 Thread Mike Turquette
From: Mike Turquette The ARM periphclk drives various peripherals for the MPU including the TWD and local timers. This patch creates the missing clk tree data to represent this relationship: dpll_mpu_ck | dpll_mpu_m2_ck (divide by 1) | mpu_clk (divide by 1) | mpu_periphcl

[PATCH 1/6] HACK: omap: opp: add fake 400MHz OPP to bypass MPU

2011-12-13 Thread Mike Turquette
The following patch is only for testing __clk_reparent as part of the new common struct clk stuff. It may make your board burst into flames or otherwise void various warrantees. This patch introduces a 400MHz OPP for the MPU, which happens to correspond to the bypass clk rate on the 4430 Panda (w

[PATCH 0/6] HACK: OMAP: testing common clk features

2011-12-13 Thread Mike Turquette
This series is just informational and illustrates how to use some of the common struct clk features. I wrote this code when testing the common struct patches. These are hacks and put some of code to use practically. Firstly this series models the clocks between the MPU PLL and the ARM IP a bit m

[PATCH 4/6] HACK: cpufreq: omap: change mpu_clk's rate

2011-12-13 Thread Mike Turquette
As a proof of concept, change OMAP's cpufreq driver to use mpu_clk in place of directly using the DPLL. This better reflects reality as there are some functional clks between the ARM IP and the PLL. To make this work mpu_clk uses the new .round_rate function omap2_passthrough_round_rate, which si

[PATCH 2/6] omap: clk: .round_rate for propagating to parents

2011-12-13 Thread Mike Turquette
This patch introduces omap2_passthrough_round_rate which is a new .round_rate that works with the generic struct clk_ops defined in include/linux/clk.h. The purpose of this .round_rate is to allow an OMAP clk to make no changes to its own dividers (if applicable) and instead defer the rate change

[PATCH 4/7] omap: hwmod: convert to use common struct clk

2011-12-13 Thread Mike Turquette
hwmod functions implicitly deal with hardware clks and must be updated to support the new common struct clk and accompanying functions. Changes in this patch include adding clk_prepare/clk_unprepare to hwmod as well as using struct clk_hw_omap instead of the old OMAP-specific struct clk. Signed-o

[PATCH 7/7] HACK: comment WARN_ON in _clkdm_clk_hwmod_disable

2011-12-13 Thread Mike Turquette
Not-signed-off-by: Mike Turquette --- arch/arm/mach-omap2/clockdomain.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index ad07689..825248b 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch

[PATCH 0/7] RFC: convert OMAP to common struct clk

2011-12-13 Thread Mike Turquette
This patch series is an RFC for converting OMAP to the common struct clk. These patches are based on v4 of the common struct clk series: https://lkml.org/lkml/2011/12/13/451 OMAP's old struct clk has been renamed to struct clk_hw_omap, but left essentially the same. This series only targets OMAP

[PATCH 6/7] omap: dss: use clk_prepare in dss reset

2011-12-13 Thread Mike Turquette
Signed-off-by: Mike Turquette --- arch/arm/mach-omap2/display.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index dce9905..21f8fcc 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/dis

[PATCH 1/7] OMAP: Kconfig: select GENERIC_CLK

2011-12-13 Thread Mike Turquette
From: Mike Turquette Signed-off-by: Mike Turquette --- arch/arm/mach-omap2/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index e1293aa..921451c 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/ma

[PATCH 5/7] omap: panda: use clk_prepare in ehci init

2011-12-13 Thread Mike Turquette
Signed-off-by: Mike Turquette --- arch/arm/mach-omap2/board-omap4panda.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index a8c2c42..3864d31 100644 --- a/arch/arm/mach-omap2/board-omap4pan

Re: [PATCH v4 0/6] common clk framework

2011-12-13 Thread Turquette, Mike
On Tue, Dec 13, 2011 at 7:53 PM, Mike Turquette wrote: > From: Mike Turquette > > The common clk framework is an attempt to define a generic struct clk > which most platforms can use to build a clk tree and perform a set of > well-defined operations. Forgot to mention: these patches are based on

[PATCH v4 3/6] clk: introduce the common clock framework

2011-12-13 Thread Mike Turquette
The common clk framework is an attempt to define a common struct clk which can be used by most platforms, and an API that drivers can always use safely for managing clks. The net result is consolidation of many different struct clk definitions and platform-specific clk framework implementations.

[PATCH v4 6/6] clk: export the clk tree topology to debugfs

2011-12-13 Thread Mike Turquette
Represents the clk tree as a directory hieraching in debugfs. Each clk is a directory filled with the following read-only entries: clk_rate clk_flags clk_prepare_count clk_enable_count clk_notifier_count This commit borrows some code from Yong Shen's patch to export clkdev clk's to debugfs: http

[PATCH v4 2/6] Documentation: common clk API

2011-12-13 Thread Mike Turquette
Provide documentation for the common clk structures and APIs. This code can be found in drivers/clk/ and include/linux/clk.h. Signed-off-by: Mike Turquette Cc: Jeremy Kerr --- Documentation/clk.txt | 312 + 1 files changed, 312 insertions(+), 0

[PATCH v4 4/6] clk: introduce rate change notifiers

2011-12-13 Thread Mike Turquette
Many devices support dynamic clk frequency changes, but often need to handle these clk frequency changes with care. Examples of these devices range from processors such as CPUs and GPUs to IO controllers such as DDR controllers or MMC/SD card controllers and fixed-function hardware such as video d

[PATCH v4 0/6] common clk framework

2011-12-13 Thread Mike Turquette
From: Mike Turquette The common clk framework is an attempt to define a generic struct clk which most platforms can use to build a clk tree and perform a set of well-defined operations. The previous patchset, v3, can be found at, http://article.gmane.org/gmane.linux.kernel/1218622 New stuff in

[PATCH v4 5/6] clk: basic gateable and fixed-rate clks

2011-12-13 Thread Mike Turquette
Many platforms support simple gateable clks and fixed-rate clks that should not be re-implemented by every platform. This patch introduces a gateable clk with a common programming model of gate control via a write of 1 bit to a register. Both set-to-enable and clear-to-enable are supported. Also

[PATCH v4 1/6] clk: Kconfig: add entry for HAVE_CLK_PREPARE

2011-12-13 Thread Mike Turquette
The common clk framework provides clk_prepare and clk_unprepare implementations. Create an entry for HAVE_CLK_PREPARE so that GENERIC_CLK can select it. Signed-off-by: Mike Turquette Acked-by: Shawn Guo --- drivers/clk/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff

Re: linaro powertop doesn't work well on a single core ARM SoC

2011-12-13 Thread Barry Song
ok now. the reason is the powertop depends on CONFIG_EVENT_POWER_TRACING_DEPRECATED, after selecting it, powertop gets to work on SiRFprimaII. Thanks barry 2011/12/14 Barry Song <21cn...@gmail.com>: > Hi Amit, > > Thanks! > > 2011/12/12 Amit Kachhap : >> Hi Barry, >> >> You fix for invalid cpu id l

Re: linaro powertop doesn't work well on a single core ARM SoC

2011-12-13 Thread Barry Song
Hi Amit, Thanks! 2011/12/12 Amit Kachhap : > Hi Barry, > > You fix for invalid cpu id looks fine. so will you merge some fixes into linaro tree? > As for the P states this new > powertop combines with the cpuidle numbers. so if the system is highly > idle it means processor is idle and hence P

Re: [PATCH 01/06] MFD: DA9052/53 MFD core module v10

2011-12-13 Thread Samuel Ortiz
Hi Mark, On Tue, Dec 13, 2011 at 02:33:45PM +0800, Mark Brown wrote: > On Mon, Dec 12, 2011 at 08:06:56PM +0530, Ashish Jangam wrote: > > The DA9052/53 is a highly integrated PMIC subsystem with supply domain > > flexibility to support wide range of high performance application. > > > It provides

Re: latest linux-linaro-3.1 compile errors

2011-12-13 Thread Nicolas Pitre
On Tue, 13 Dec 2011, John Rigby wrote: > With the latest 3.1.5 merge linux-linaro-3.1 fails to build on Jenkins: > > https://ci.linaro.org/jenkins/view/All%20CI/job/linux-linaro-3.1_panda-omap2plus/303/ > > GEN .version > CHK include/generated/compile.h > UPD include/generated/

Re: Powering up snowball over USB

2011-12-13 Thread Lee Jones
On 13/12/11 16:09, Paul Larson wrote: > Possibly a kernel bug? Lee, anything on snowball that would cause it to > not go through with the reboot when on usb power? Last I saw, Dave was chatting with the guys at Igloo about it and a DSP issue was fingered. Check back with him to see if his investi

Re: [Samsung] Origen boards in Lava

2011-12-13 Thread Paul Larson
On Thu, Dec 8, 2011 at 10:40 PM, Sree kumar wrote: > Thanks a lot for the update. > > We are interested in the number of test cases and the quality of the test > cases. > > 1.Can LAVA detect critical bugs related to UMM? > The Multimedia Working Group is currently working on some tests for UMM o

Re: Powering up snowball over USB

2011-12-13 Thread anmar.ou...@linaro.org
On 13 December 2011 10:50, Dave Pigott wrote: > Hi all, > > Sorry for the wide distribution, but I've got a rather curious problem. > > I'm trying to get a Snowball V11 PDK working in the validation lab, and the > only way to get it to boot on power-on is to power it over USB and control > the pow

Re: Powering up snowball over USB

2011-12-13 Thread Paul Larson
Possibly a kernel bug? Lee, anything on snowball that would cause it to not go through with the reboot when on usb power? Thanks, Paul Larson On Tue, Dec 13, 2011 at 9:50 AM, Dave Pigott wrote: > Hi all, > > Sorry for the wide distribution, but I've got a rather curious problem. > > I'm trying

latest linux-linaro-3.1 compile errors

2011-12-13 Thread John Rigby
With the latest 3.1.5 merge linux-linaro-3.1 fails to build on Jenkins: https://ci.linaro.org/jenkins/view/All%20CI/job/linux-linaro-3.1_panda-omap2plus/303/ GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/buil

Ubuntu ODM

2011-12-13 Thread Joey STANFORD
Hi, In case you haven't seen this yes, Ubuntu has a new (updated) site for ODMs. Might be useful if you work on the Linaro Ubuntu LEB and components. http://odm.ubuntu.com/ Joey ___ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.lina

Powering up snowball over USB

2011-12-13 Thread Dave Pigott
Hi all, Sorry for the wide distribution, but I've got a rather curious problem. I'm trying to get a Snowball V11 PDK working in the validation lab, and the only way to get it to boot on power-on is to power it over USB and control the power through a USB power adaptor. While this works admirabl

[RFC PATCH 2/2] thermal: Add generic cpu cooling implementation

2011-12-13 Thread Amit Daniel Kachhap
This patch adds support for generic cpu thermal cooling low level implementations using frequency scaling and cpuhotplugg currently. Different cpu related cooling devices can be registered by the user and the binding of these cooling devices to the corresponding trip points can be easily done as th

[RFC PATCH 0/2] thermal: Add generic cpu cooling devices according to thermal framework

2011-12-13 Thread Amit Daniel Kachhap
PATCH 1) [thermal: Add a new trip type to use cooling device instance number] This patch adds a new trip type THERMAL_TRIP_STATE_ACTIVE which passes cooling device instance number and may be helpful for cpufreq cooling devices to take the correct cooling action. PATCH 2) [thermal: Add generic cp

[RFC PATCH 1/2] thermal: Add a new trip type to use cooling device instance number

2011-12-13 Thread Amit Daniel Kachhap
This patch adds a new trip type THERMAL_TRIP_STATE_ACTIVE. This trip behaves same as THERMAL_TRIP_ACTIVE but also passes the cooling device instance number. This helps the cooling device registered as different instances to perform appropriate cooling action decision in the set_cur_state call back

Re: linux-next not booting on snowball

2011-12-13 Thread Linus Walleij
On Wed, Dec 7, 2011 at 5:09 AM, Nicolas Pitre wrote: >> The kernel hangs at: >> >> u8500_map_io >>  -> ux500_map_io >>    -> ux500_read_asicid(addr=9001dbf4), base=9001d000 >>      ->  readl(__io_address(9001dbf4)=f901dbf4); This code isn't strictly necessary so I moved it out of the way. Then

Re: [Activity] Power Management WG Weekly Status report for week ending 2011-12-09

2011-12-13 Thread Richard Zhao
Hi Amit, On 12 December 2011 15:21, Amit Kucheria wrote: > On Sat, Dec 10, 2011 at 6:59 AM, Richard Zhao wrote: >> I saw a topic 'Multi-core decision co-ordination' at >> https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/CPUFreq . >> Is it still going on? > > Richard, > > This was relat

[PATCH v2 0/3] Device tree support for TWL regulators

2011-12-13 Thread Rajendra Nayak
This series adds DT support for TWL regulator driver and passes regulator data for two OMAP4 boards (OMAP4 panda and OMAP4 sdp) from device tree. Patches are based on for-next of the regulator tree[1] with omap i2c/twl DT adaptation patches[2] from Benoit pulled in and are available here: git://gi

[PATCH v2 1/3] regulator: twl: adapt twl-regulator driver to dt

2011-12-13 Thread Rajendra Nayak
Modify the twl regulator driver to extract the regulator_init_data from device tree when passed, instead of getting it through platform_data structures (on non-DT builds) Also add documentation for TWL regulator specific bindings. Signed-off-by: Rajendra Nayak --- .../bindings/regulator/twl-reg

[PATCH v2 3/3] omap4: panda: Pass regulator data from dt

2011-12-13 Thread Rajendra Nayak
Pass the adjustable voltage regulator information for omap4panda board from device tree. Signed-off-by: Rajendra Nayak --- arch/arm/boot/dts/omap4-panda.dts | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap4-panda.dts b/arch/

[PATCH v2 2/3] ARM: omap4-sdp: Pass regulator data from dt

2011-12-13 Thread Rajendra Nayak
Pass the adjustable voltage regulator information for omap4sdp board from device tree. Signed-off-by: Rajendra Nayak --- arch/arm/boot/dts/omap4-sdp.dts | 36 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/

Screen going black with power saving disabled

2011-12-13 Thread E V
Greetings, I have disabled power saving features in linaro ubuntu 11.10 on a PandaBoard, in order to prevent the screen going black, since there is no mouse nor keyboard attached to the board (It is simply displaying videos, in a closed loop). But when I reboot (Or power up after a time with the