[PATCH] of: add missing documentation for of_platform_populate()

2012-11-23 Thread Javi Merino
15c3597d (dt/platform: allow device name to be overridden) added a lookup parameter to of_platform_populate() but did not update the documentation. This patch adds the missing documentation entry. Cc: Grant Likely grant.lik...@secretlab.ca Cc: Jiri Kosina triv...@kernel.org Signed-off-by: Javi

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

2013-07-12 Thread Javi Merino
On Sat, Jul 06, 2013 at 12:39:33AM +0100, Stephen Boyd wrote: In a uniprocessor implementation the interrupt processor targets registers are read-as-zero/write-ignored (RAZ/WI). Unfortunately gic_get_cpumask() will print a critical message saying GIC CPU mask not found - kernel will fail to

[PATCH RESEND] smp: harmonize prototypes of smp functions

2013-09-10 Thread Javi Merino
) Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Javi Merino javi.mer...@arm.com --- include/linux/smp.h |6 +++--- kernel/smp.c|6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/smp.h b/include/linux/smp.h index c181399..a894405 100644

Re: [PATCH] smp: harmonize prototypes of smp functions

2013-09-18 Thread Javi Merino
On Tue, Sep 17, 2013 at 10:22:28PM +0100, Andrew Morton wrote: On Mon, 2 Sep 2013 15:33:13 +0100 Javi Merino javi.mer...@arm.com wrote: Avoid unnecessary casts from int to bool in smp functions. Some functions in kernel/smp.c have a wait parameter that can be set to one if you want

[PATCH] smp: harmonize prototypes of smp functions

2013-09-02 Thread Javi Merino
) Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Javi Merino javi.mer...@arm.com --- include/linux/smp.h |6 +++--- kernel/smp.c|6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/smp.h b/include/linux/smp.h index c181399..a894405 100644

Re: [PATCH] tools/thermal: tmon: fix compilation errors when building statically

2014-06-10 Thread Javi Merino
Hi Rui, On Mon, Jun 02, 2014 at 12:54:57PM +0100, Jacob Pan wrote: On Mon, 2 Jun 2014 18:08:17 +0100 Javi Merino javi.mer...@arm.com wrote: tmon fails to build statically with the following error: $ make LDFLAGS=-static gcc -O1 -Wall -Wshadow -W -Wformat -Wimplicit-function

Re: [RFC PATCH v3 4/7] thermal: introduce the Power Actor API

2014-06-12 Thread Javi Merino
On Wed, Jun 11, 2014 at 12:32:54PM +0100, Eduardo Valentin wrote: Hello Javi, On Tue, Jun 03, 2014 at 11:18:32AM +0100, Javi Merino wrote: This patch introduces the Power Actor API in the thermal framework. With it, devices that can report their power consumption and control it can

Re: [RFC PATCH v3 5/7] thermal: add a basic cpu power actor

2014-06-12 Thread Javi Merino
On Wed, Jun 11, 2014 at 01:05:37PM +0100, Eduardo Valentin wrote: Hello Javi, On Tue, Jun 03, 2014 at 11:18:33AM +0100, Javi Merino wrote: Introduce a power actor for cpus. It has a basic power model to get the current power utilization and uses cpufreq cooling devices to set

Re: [RFC PATCH v3 5/7] thermal: add a basic cpu power actor

2014-06-13 Thread Javi Merino
On Thu, Jun 12, 2014 at 03:26:50PM +0100, Javi Merino wrote: On Wed, Jun 11, 2014 at 01:05:37PM +0100, Eduardo Valentin wrote: On Tue, Jun 03, 2014 at 11:18:33AM +0100, Javi Merino wrote: Introduce a power actor for cpus. It has a basic power model to get the current power utilization

[RFC PATCH v2 3/7] thermal: let governors have private data for each thermal zone

2014-05-20 Thread Javi Merino
some initialization and teardown when they are bound/unbound to a tz and possibly store that information in the governor_data field of the struct thermal_zone_device. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers

[RFC PATCH v2 1/7] tracing: Add __bitmask() macro to trace events to cpumasks and other bitmasks

2014-05-20 Thread Javi Merino
=,000f Link: http://lkml.kernel.org/r/1399377998-14870-6-git-send-email-javi.mer...@arm.com Link: http://lkml.kernel.org/r/20140506132238.22e13...@gandalf.local.home Suggested-by: Javi Merino javi.mer...@arm.com Tested-by: Javi Merino javi.mer...@arm.com Signed-off-by: Steven Rostedt

[RFC PATCH v2 5/7] thermal: add a basic cpu power actor

2014-05-20 Thread Javi Merino
their OPPs in the OPP library. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_actor.txt | 46 drivers/thermal/Kconfig

[RFC PATCH v2 2/7] thermal: document struct thermal_zone_device and thermal_governor

2014-05-20 Thread Javi Merino
Document struct thermal_zone_device and struct thermal_governor fields and their use by the thermal framework code. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Hi linux-pm, This was sent as a separate patch

[RFC PATCH v2 4/7] thermal: introduce the Power Actor API

2014-05-20 Thread Javi Merino
: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_actor.txt | 29 + drivers/thermal/Kconfig |3 ++ drivers/thermal/Makefile |2 + drivers/thermal/power_actor/Makefile

[RFC PATCH v2 0/7] The power allocator thermal governor

2014-05-20 Thread Javi Merino
. - Tune it to achieve the temperature stability we are aiming for Cheers, Javi Punit Javi Merino (6): thermal: document struct thermal_zone_device and thermal_governor thermal: let governors have private data for each thermal zone thermal: introduce the Power Actor API thermal: add

[RFC PATCH v2 6/7] thermal: introduce the Power Allocator governor

2014-05-20 Thread Javi Merino
-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_allocator.txt | 42 +++ drivers/thermal/Kconfig | 15 + drivers/thermal/Makefile |1 + drivers/thermal/power_allocator.c | 442

[RFC PATCH v2 7/7] thermal: add trace events to the power allocator governor

2014-05-20 Thread Javi Merino
Signed-off-by: Javi Merino javi.mer...@arm.com --- trace-cmd needs the patched attached in http://article.gmane.org/gmane.linux.kernel/1704423 for this to work. drivers/thermal/power_actor/cpu_actor.c |5 drivers/thermal/power_allocator.c | 12 +- include/trace/events

Re: [RFC PATCH v2 1/7] tracing: Add __bitmask() macro to trace events to cpumasks and other bitmasks

2014-05-21 Thread Javi Merino
this patch via your tree. I said that in the cover letter for the series, but I should've repeated it in this patch. I included it in the series for completeness and I'll remove it once it reaches mainline. Cheers, Javi On Tue, 2014-05-20 at 15:10 +0100, Javi Merino wrote: From: Steven Rostedt

Re: [RFC][PATCH v3] tracing: Add __bitmask() macro to trace events to cpumasks and other bitmasks

2014-05-15 Thread Javi Merino
On Thu, May 15, 2014 at 12:36:09PM +0100, Steven Rostedt wrote: On Thu, 15 May 2014 07:34:05 -0400 Steven Rostedt rost...@goodmis.org wrote: Should work now. Thanks for testing. If all goes well, can you please give me your Tested-by for both patches. I've already ran my updated

[PATCH] thermal: document struct thermal_zone_device and thermal_governor

2014-05-16 Thread Javi Merino
Document struct struct thermal_zone_device and struct thermal_governor fields and their use by the thermal framework code. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin eduardo.valen...@ti.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Hi linux-pm, I have some patches that add

Re: [RFC PATCH 2/5] thermal: cpu_cooling: Add notifications support for the clients

2014-05-16 Thread Javi Merino
Hi Amit, On Thu, May 08, 2014 at 03:37:57PM +0100, Amit Daniel Kachhap wrote: This patch adds notification support for those clients of cpu_cooling APIs which may want to do something interesting after receiving these cpu_cooling events. The notifier structure passed is of both Set/Get type.

Re: [PATCH v1 2/6] thermal: cpu_cooling: Support passing driver private data.

2014-05-29 Thread Javi Merino
Hi Amit, One minor comment. On Thu, May 29, 2014 at 09:15:30AM +0100, Amit Daniel Kachhap wrote: This patch allows the caller of cpufreq cooling APIs to register along with their driver data which will be useful while receiving any cooling states notifications. This patch is in preparation

Re: [PATCH v1 3/6] thermal: thermal-core: Add notifications support for the cooling states

2014-05-29 Thread Javi Merino
Hi Amit, On Thu, May 29, 2014 at 09:15:31AM +0100, Amit Daniel Kachhap wrote: This patch adds notification infrastructure for any requests related to cooling states. The notifier structure passed is of both Get/Set type. So the receiver of these can sense the new/cur/max cooling state as

Re: [PATCH v1 6/6] ACPI: thermal: processor: Use the generic cpufreq infrastructure

2014-05-29 Thread Javi Merino
Hi Amit, On Thu, May 29, 2014 at 09:15:34AM +0100, Amit Daniel Kachhap wrote: This patch upgrades the ACPI cpufreq cooling portions to use the generic cpufreq cooling infrastructure. There should not be any functionality related changes as the same behaviour is provided by the generic cpufreq

Re: [PATCH v1 3/6] thermal: thermal-core: Add notifications support for the cooling states

2014-06-02 Thread Javi Merino
On Mon, Jun 02, 2014 at 10:31:19AM +0100, Amit Kachhap wrote: On 5/29/14, Javi Merino javi.mer...@arm.com wrote: Hi Amit, On Thu, May 29, 2014 at 09:15:31AM +0100, Amit Daniel Kachhap wrote: This patch adds notification infrastructure for any requests related to cooling states

Re: [PATCH v1 6/6] ACPI: thermal: processor: Use the generic cpufreq infrastructure

2014-06-02 Thread Javi Merino
On Mon, Jun 02, 2014 at 10:21:48AM +0100, Amit Kachhap wrote: Hi Javi, On 5/29/14, Javi Merino javi.mer...@arm.com wrote: Hi Amit, On Thu, May 29, 2014 at 09:15:34AM +0100, Amit Daniel Kachhap wrote: This patch upgrades the ACPI cpufreq cooling portions to use the generic cpufreq

Re: [PATCH] thermal: document struct thermal_zone_device and thermal_governor

2014-05-23 Thread Javi Merino
On Fri, May 23, 2014 at 02:44:51PM +0100, Eduardo Valentin wrote: Hello Javi, Hi Eduardo, Sorry for the wrong From: in my previous email, I hope that this one goes out with the correct one. On Fri, May 23, 2014 at 10:35:52AM +0100, Javi Merino wrote: On Thu, May 22, 2014 at 04:27:30PM +0100

Re: [PATCH v3 4/6] acerhdf: Use bang-bang thermal governor

2014-05-12 Thread Javi Merino
Hi Peter, On Mon, May 12, 2014 at 11:27:08AM +0100, Peter Feuerer wrote: Javi Merino writes: On Sat, May 03, 2014 at 06:59:24PM +0100, Peter Feuerer wrote: acerhdf has been doing an on-off fan control using hysteresis by post-manipulating the outcome of thermal subsystem trip point

Re: [RFC][PATCH v2] tracing: Add __bitmask() macro to trace events to cpumasks and other bitmasks

2014-05-14 Thread Javi Merino
=2 dest_cpu=3 cpumask=,000f Link: http://lkml.kernel.org/r/1399377998-14870-6-git-send-email-javi.mer...@arm.com Suggested-by: Javi Merino javi.mer...@arm.com Signed-off-by: Steven Rostedt rost...@goodmis.org --- Changes since v1: Use bitmask name instead of cpumask naming

Re: [RFC][PATCH v2] tracing: Add __bitmask() macro to trace events to cpumasks and other bitmasks

2014-05-14 Thread Javi Merino
On Wed, May 14, 2014 at 04:36:23PM +0100, Steven Rostedt wrote: On Wed, 14 May 2014 15:23:24 +0100 Javi Merino javi.mer...@arm.com wrote: diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 0a1a4f7..d9c44af 100644 --- a/include/trace/ftrace.h +++ b/include/trace

Re: [RFC][PATCH v3] tracing: Add __bitmask() macro to trace events to cpumasks and other bitmasks

2014-05-14 Thread Javi Merino
485.222062: sched_migrate_task: comm=ksmtuned pid=3615 prio=120 orig_cpu=2 dest_cpu=3 cpumask=,000f Link: http://lkml.kernel.org/r/1399377998-14870-6-git-send-email-javi.mer...@arm.com Suggested-by: Javi Merino javi.mer...@arm.com Signed-off-by: Steven Rostedt rost...@goodmis.org

[RFC PATCH v4 6/7] thermal: add trace events to the power allocator governor

2014-06-17 Thread Javi Merino
Signed-off-by: Javi Merino javi.mer...@arm.com --- trace-cmd needs the patched attached in http://article.gmane.org/gmane.linux.kernel/1704423 for this to work. drivers/thermal/cpu_actor.c | 5 +++ drivers/thermal/power_allocator.c| 12 ++- include/trace/events/thermal_power.h

[RFC PATCH v4 1/7] thermal: document struct thermal_zone_device and thermal_governor

2014-06-17 Thread Javi Merino
Document struct thermal_zone_device and struct thermal_governor fields and their use by the thermal framework code. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Hi linux-pm, This patch is independent of the whole

[RFC PATCH v4 2/7] thermal: let governors have private data for each thermal zone

2014-06-17 Thread Javi Merino
some initialization and teardown when they are bound/unbound to a tz and possibly store that information in the governor_data field of the struct thermal_zone_device. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers

[RFC PATCH v4 4/7] thermal: add a basic cpu power actor

2014-06-17 Thread Javi Merino
their OPPs in the OPP library. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_actor.txt | 125 + drivers/thermal/Kconfig

[RFC PATCH v4 0/7] The power allocator thermal governor

2014-06-17 Thread Javi Merino
scripts to evaluate the proposal. - Tune it to achieve the temperature stability we are aiming for Cheers, Javi Punit Javi Merino (6): thermal: document struct thermal_zone_device and thermal_governor thermal: let governors have private data for each thermal zone thermal: introduce the Power

[RFC PATCH v4 5/7] thermal: introduce the Power Allocator governor

2014-06-17 Thread Javi Merino
not exceed the control temperature. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_allocator.txt | 41 +++ drivers/thermal/Kconfig

[RFC PATCH v4 3/7] thermal: introduce the Power Actor API

2014-06-17 Thread Javi Merino
: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_actor.txt | 56 + drivers/thermal/Kconfig | 3 ++ drivers/thermal/Makefile | 3 ++ drivers/thermal/power_actor.c | 68

[RFC PATCH v4 7/7] of: thermal: Introduce sustainable power for a thermal zone

2014-06-17 Thread Javi Merino
From: Punit Agrawal punit.agra...@arm.com Introduce an optional property called, sustainable-power, which represents the power (in mW) which the thermal zone can safely dissipate. If provided the property is parsed and associated with the thermal zone via the thermal zone parameters. Cc: Zhang

Re: [RFC PATCH v4 6/7] thermal: add trace events to the power allocator governor

2014-06-17 Thread Javi Merino
On Tue, Jun 17, 2014 at 12:18:38PM +0100, Steven Rostedt wrote: On Tue, 17 Jun 2014 10:14:52 +0100 Javi Merino javi.mer...@arm.com wrote: Add trace events for the power allocator governor and the power actor interface of the cpu cooling device. Cc: Zhang Rui rui.zh...@intel.com Cc

[PATCH] tools/thermal: tmon: fix compilation errors when building statically

2014-06-02 Thread Javi Merino
() and friends are in libtinfo (part of ncurses) so add it to the libraries that are linked in when compiling tmon to fix it. Cc: Jacob Pan jacob.jun@linux.intel.com Cc: Zhang Rui rui.zh...@intel.com Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/thermal/tmon/Makefile | 2 +- 1 file changed

[PATCH] thermal: document struct thermal_zone_device and thermal_governor

2014-06-02 Thread Javi Merino
Document struct thermal_zone_device and struct thermal_governor fields and their use by the thermal framework code. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Hi linux-pm, I have some patches that add new fields

[RFC PATCH v3 0/7] The power allocator thermal governor

2014-06-03 Thread Javi Merino
more tracing and provide scripts to evaluate the proposal. - Tune it to achieve the temperature stability we are aiming for Cheers, Javi Punit Javi Merino (6): thermal: document struct thermal_zone_device and thermal_governor thermal: let governors have private data for each thermal zone

[RFC PATCH v3 1/7] tracing: Add __bitmask() macro to trace events to cpumasks and other bitmasks

2014-06-03 Thread Javi Merino
=,000f Link: http://lkml.kernel.org/r/1399377998-14870-6-git-send-email-javi.mer...@arm.com Link: http://lkml.kernel.org/r/20140506132238.22e13...@gandalf.local.home Suggested-by: Javi Merino javi.mer...@arm.com Tested-by: Javi Merino javi.mer...@arm.com Signed-off-by: Steven Rostedt

[RFC PATCH v3 2/7] thermal: document struct thermal_zone_device and thermal_governor

2014-06-03 Thread Javi Merino
Document struct thermal_zone_device and struct thermal_governor fields and their use by the thermal framework code. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- include/linux/thermal.h | 45

[RFC PATCH v3 5/7] thermal: add a basic cpu power actor

2014-06-03 Thread Javi Merino
their OPPs in the OPP library. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_actor.txt | 126 +++ drivers/thermal/Kconfig

[RFC PATCH v3 6/7] thermal: introduce the Power Allocator governor

2014-06-03 Thread Javi Merino
not exceed the control temperature. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_allocator.txt | 42 +++ drivers/thermal/Kconfig

[RFC PATCH v3 7/7] thermal: add trace events to the power allocator governor

2014-06-03 Thread Javi Merino
Signed-off-by: Javi Merino javi.mer...@arm.com --- trace-cmd needs the patched attached in http://article.gmane.org/gmane.linux.kernel/1704423 for this to work. drivers/thermal/power_actor/cpu_actor.c | 5 + drivers/thermal/power_allocator.c | 12 ++- include/trace/events

[RFC PATCH v3 3/7] thermal: let governors have private data for each thermal zone

2014-06-03 Thread Javi Merino
some initialization and teardown when they are bound/unbound to a tz and possibly store that information in the governor_data field of the struct thermal_zone_device. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers

[RFC PATCH v3 4/7] thermal: introduce the Power Actor API

2014-06-03 Thread Javi Merino
: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_actor.txt | 38 ++ drivers/thermal/Kconfig | 3 ++ drivers/thermal/Makefile | 2 + drivers/thermal/power_actor/Makefile

Re: [PATCH] linux/thermal.h: Rename KELVIN_TO_CELSIUS to DECI_KELVIN_TO_CELSIUS

2014-03-24 Thread Javi Merino
On Mon, Mar 24, 2014 at 05:29:09PM +, Rasmus Villemoes wrote: The macros KELVIN_TO_CELSIUS and CELSIUS_TO_KELVIN actually work on decikelvins, so rename them to reflect their actual semantics. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk --- drivers/acpi/thermal.c

checkpatch: false positives when parsing trace includes

2014-04-29 Thread Javi Merino
Hi, checkpatch complains about the spaces before the close parenthesis in trace events: ERROR: space prohibited before that close parenthesis ')' #94: FILE: include/trace/events/thermal.h:14: + __field(unsigned int, freq ) However, in that directory, that's actually the

Re: [PATCH v2 3/4] thermal: Added Bang-bang thermal governor

2014-04-29 Thread Javi Merino
On Tue, Apr 29, 2014 at 10:17:56AM +0100, Peter Feuerer wrote: The bang-bang thermal governor uses a hysteresis to switch abruptly on or off a cooling device. It is intended to control fans, which can not be throttled but just switched on or off. Bang-bang cannot be set as default governor as

Re: [PATCH v2 4/4] acerhdf: Use bang-bang thermal governor

2014-04-29 Thread Javi Merino
On Tue, Apr 29, 2014 at 10:17:57AM +0100, Peter Feuerer wrote: acerhdf has been doing an on-off fan control using hysteresis by post-manipulating the outcome of thermal subsystem trip point handling. This patch enables acerhdf to use the bang-bang governor, which is intended for on-off

Re: [PATCH v2 3/4] thermal: Added Bang-bang thermal governor

2014-04-30 Thread Javi Merino
Hi Peter, On Tue, Apr 29, 2014 at 10:31:42PM +0100, Peter Feuerer wrote: Peter Feuerer writes: Javi Merino writes: [...] diff --git a/drivers/thermal/gov_bang_bang.c b/drivers/thermal/gov_bang_bang.c new file mode 100644 index 000..328dde0 --- /dev/null +++ b/drivers

Re: [PATCH v3 4/6] acerhdf: Use bang-bang thermal governor

2014-05-06 Thread Javi Merino
for on-off controlled fans. Cc: Andrew Morton a...@linux-foundation.org CC: Zhang Rui rui.zh...@intel.com Cc: Andreas Mohr a...@lisas.de Cc: Borislav Petkov b...@suse.de Cc: Javi Merino javi.mer...@arm.com Signed-off-by: Peter Feuerer pe...@piie.net --- drivers/platform/x86/Kconfig | 2

Re: [PATCH v11 0/4] thermal: samsung: Clean up and add support for Exynos5420

2014-04-08 Thread Javi Merino
On Thu, Mar 20, 2014 at 02:45:54AM +, Naveen Krishna Ch wrote: Hello Tomasz, On 20 March 2014 00:58, Tomasz Figa t.f...@samsung.com wrote: Hi Leela, On 19.03.2014 12:19, Leela Krishna Amudala wrote: Hi All, I didn't see this series in mainline, Any comments for this ?

[RFC PATCH v5 01/10] tracing: Add array printing helpers

2014-07-10 Thread Javi Merino
From: Dave Martin dave.mar...@arm.com If a trace event contains an array, there is currently no standard way to format this for text output. Drivers are currently hacking around this by a) local hacks that use the trace_seq functionailty directly, or b) just not printing that information. For

[RFC PATCH v5 03/10] tools lib traceevent: Add support for __print_u{8,16,32,64}_array()

2014-07-10 Thread Javi Merino
Trace can now generate traces with u8, u16, u32 and u64 dynamic arrays. Add support to parse them. Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Steven Rostedt srost...@redhat.com Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event

[RFC PATCH v5 05/10] thermal: let governors have private data for each thermal zone

2014-07-10 Thread Javi Merino
some initialization and teardown when they are bound/unbound to a tz and possibly store that information in the governor_data field of the struct thermal_zone_device. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers

[RFC PATCH v5 04/10] thermal: document struct thermal_zone_device and thermal_governor

2014-07-10 Thread Javi Merino
Document struct thermal_zone_device and struct thermal_governor fields and their use by the thermal framework code. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- include/linux/thermal.h | 46

[RFC PATCH v5 00/10] The power allocator thermal governor

2014-07-10 Thread Javi Merino
on cooling devices as well Cheers, Javi Punit Dave Martin (1): tracing: Add array printing helpers Javi Merino (8): tools lib traceevent: Generalize numeric argument tools lib traceevent: Add support for __print_u{8,16,32,64}_array() thermal: document struct thermal_zone_device

[RFC PATCH v5 06/10] thermal: introduce the Power Actor API

2014-07-10 Thread Javi Merino
: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_actor.txt | 56 drivers/thermal/Kconfig | 3 ++ drivers/thermal/Makefile | 3 ++ drivers/thermal/power_actor.c | 70

[RFC PATCH v5 10/10] of: thermal: Introduce sustainable power for a thermal zone

2014-07-10 Thread Javi Merino
From: Punit Agrawal punit.agra...@arm.com Introduce an optional property called, sustainable-power, which represents the power (in mW) which the thermal zone can safely dissipate. If provided the property is parsed and associated with the thermal zone via the thermal zone parameters. Cc: Zhang

[RFC PATCH v5 07/10] thermal: add a basic cpu power actor

2014-07-10 Thread Javi Merino
their OPPs in the OPP library. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_actor.txt | 125 + drivers/thermal/Kconfig

[RFC PATCH v5 08/10] thermal: introduce the Power Allocator governor

2014-07-10 Thread Javi Merino
not exceed the control temperature. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_allocator.txt | 61 drivers/thermal/Kconfig

[RFC PATCH v5 02/10] tools lib traceevent: Generalize numeric argument

2014-07-10 Thread Javi Merino
Numeric arguments can be in different bases, so rename it to num so that they can be used for formats other than PRINT_HEX Cc: Steven Rostedt srost...@redhat.com Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com --- tools

[RFC PATCH v5 09/10] thermal: add trace events to the power allocator governor

2014-07-10 Thread Javi Merino
Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/thermal/cpu_actor.c| 17 ++- drivers/thermal/power_allocator.c | 22 +++- include/trace/events/thermal_power_allocator.h | 138 + 3 files changed, 173 insertions(+), 4 deletions

Re: [RFC PATCH v5 09/10] thermal: add trace events to the power allocator governor

2014-07-10 Thread Javi Merino
On Thu, Jul 10, 2014 at 04:44:51PM +0100, Steven Rostedt wrote: On Thu, 10 Jul 2014 15:18:47 +0100 Javi Merino javi.mer...@arm.com wrote: Add trace events for the power allocator governor and the power actor interface of the cpu cooling device. Cc: Zhang Rui rui.zh...@intel.com Cc

Re: [RFC PATCH v5 09/10] thermal: add trace events to the power allocator governor

2014-07-11 Thread Javi Merino
On Thu, Jul 10, 2014 at 07:03:50PM +0100, Steven Rostedt wrote: On Thu, 10 Jul 2014 17:20:14 +0100 Javi Merino javi.mer...@arm.com wrote: How many CPUs are you saving load_cpu on? A trace event can't be bigger than a page. And the data is actually a little less than

[PATCH RESEND] thermal: document struct thermal_zone_device and thermal_governor

2014-06-25 Thread Javi Merino
Document struct thermal_zone_device and struct thermal_governor fields and their use by the thermal framework code. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Hi linux-pm, I have some patches that add new fields

Re: [RFC PATCH 3/3] thermal: trace: Trace when temperature is above a trip point

2014-06-25 Thread Javi Merino
On Tue, Jun 24, 2014 at 11:41:38AM +0100, Punit Agrawal wrote: Javi Merino javi.mer...@arm.com writes: Hi Punit, On Wed, Jun 11, 2014 at 12:31:44PM +0100, Punit Agrawal wrote: Create a new event to trace when the temperature is above a trip point. Use the trace-point when handling non

[PATCH TRIVIAL] thermal: cpu_cooling: fix typo highjack - hijack

2014-06-25 Thread Javi Merino
Cc: Eduardo Valentin eduardo.valen...@ti.com Cc: Zhang Rui rui.zh...@intel.com Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index

Re: [PATCH] MAINTAINERS: Update Eduardo Valentin's email address

2014-06-26 Thread Javi Merino
On Mon, Jun 02, 2014 at 06:28:00PM +0100, Eduardo Valentin wrote: Hello Lee Jones, On Fri, May 30, 2014 at 11:03:28AM +0100, Lee Jones wrote: Eduardo TI address is bouncing, but it looks like he's still contributing via his Gmail address. Thanks for being proactive! I actually sent

Re: [RFC PATCH 3/3] thermal: trace: Trace when temperature is above a trip point

2014-06-20 Thread Javi Merino
Hi Punit, On Wed, Jun 11, 2014 at 12:31:44PM +0100, Punit Agrawal wrote: Create a new event to trace when the temperature is above a trip point. Use the trace-point when handling non-critical and critical trip pionts. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin

Re: [PATCH RESEND] thermal: document struct thermal_zone_device and thermal_governor

2014-07-08 Thread Javi Merino
On Wed, Jun 25, 2014 at 11:00:12AM +0100, Javi Merino wrote: Document struct thermal_zone_device and struct thermal_governor fields and their use by the thermal framework code. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer

Re: [PATCH] thermal: tell cooling devices when a trip_point changes

2014-07-31 Thread Javi Merino
On Thu, Jul 31, 2014 at 12:10:40AM +0100, Matt Longnecker wrote: Some hardware can react autonomously at a programmed temperature. For example, an SoC might implement a last ditch throttle or a hardware thermal shutdown. The driver for such a device can register itself as a cooling_device with

Re: [PATCH] thermal: of: look for sensor driver parent node if device node missing

2014-07-25 Thread Javi Merino
On Fri, Jul 25, 2014 at 09:22:00AM +0100, Laxman Dewangan wrote: Thanks Rui. It seems I have put the wrong email-id for Eduardo (which I got from get_maintainer) and the original patch not reached to Eduardo. Do I need to re-post patch? Thanks, Laxman On Thursday 24 July 2014 08:45

Re: [PATCH-REPOST] thermal: of: look for sensor driver parent node if device node missing

2014-07-25 Thread Javi Merino
[Fixed Eduardo's email *again*] On Fri, Jul 25, 2014 at 10:19:31AM +0100, Laxman Dewangan wrote: There are some mfd devices which supports junction thermal interrupt like ams,AS3722. The DT binding of these devices are defined as the flat and drivers for sub module of such devices are

[PATCH] trace-cmd: link trace-record in ctracecmd.so

2014-08-15 Thread Javi Merino
import * ImportError: ctracecmd.so: undefined symbol: tracecmd_stat_cpu Link trace-record in ctracecmd.so to add back the required symbol. Signed-off-by: Javi Merino javi.mer...@arm.com --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index

Re: [RFC PATCH v5 05/10] thermal: let governors have private data for each thermal zone

2014-08-19 Thread Javi Merino
On Tue, Aug 19, 2014 at 01:49:32PM +0100, edubez...@gmail.com wrote: Javi, Hi Eduardo, On Thu, Jul 10, 2014 at 10:18 AM, Javi Merino javi.mer...@arm.com wrote: A governor may need to store its current state between calls to throttle(). That state depends on the thermal zone, so store

Re: [RFC PATCH v5 08/10] thermal: introduce the Power Allocator governor

2014-08-19 Thread Javi Merino
On Tue, Aug 19, 2014 at 02:45:52PM +0100, Eduardo Valentin wrote: Javi, Hi Eduardo, On Thu, Jul 10, 2014 at 03:18:46PM +0100, Javi Merino wrote: The power allocator governor is a thermal governor that controls system and device power allocation to control temperature. Conceptually

Re: [PATCH v5 3/6] thermal: Added Bang-bang thermal governor

2014-10-29 Thread Javi Merino
On Tue, Oct 28, 2014 at 07:33:39PM +, Peter Feuerer wrote: Hi Rui, I wonder whether you've had time to apply my set of patches already? Would you please be so kind to just send me a short reply? The bang-bang governor was merged and is part of v3.18-rc2:

[PATCH v2 1/2] tracing: Add array printing helpers

2014-12-15 Thread Javi Merino
as well as dynamic arrays, they take a pointer and element count: they can be used with __get_dynamic_array() for use with dynamic arrays. Cc: Steven Rostedt rost...@goodmis.org Cc: Ingo Molnar mi...@redhat.com Signed-off-by: Dave Martin dave.mar...@arm.com Signed-off-by: Javi Merino javi.mer

[PATCH v2 2/2] tools lib traceevent: Add support for __print_array()

2014-12-15 Thread Javi Merino
Trace can now generate traces with variable element size arrays. Add support to parse them. Cc: Namhyung Kim namhy...@kernel.org Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Steven Rostedt srost...@redhat.com Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com

[RFC PATCH v6 0/9] The power allocator thermal governor

2014-12-05 Thread Javi Merino
array printing helpers Javi Merino (7): tools lib traceevent: Generalize numeric argument tools lib traceevent: Add support for __print_u{8,16,32,64}_array() thermal: let governors have private data for each thermal zone thermal: extend the cooling device API to include power information

[RFC PATCH v6 1/9] tracing: Add array printing helpers

2014-12-05 Thread Javi Merino
From: Dave Martin dave.mar...@arm.com If a trace event contains an array, there is currently no standard way to format this for text output. Drivers are currently hacking around this by a) local hacks that use the trace_seq functionailty directly, or b) just not printing that information. For

[RFC PATCH v6 4/9] thermal: let governors have private data for each thermal zone

2014-12-05 Thread Javi Merino
some initialization and teardown when they are bound/unbound to a tz and possibly store that information in the governor_data field of the struct thermal_zone_device. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers

[RFC PATCH v6 5/9] thermal: extend the cooling device API to include power information

2014-12-05 Thread Javi Merino
-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_allocator.txt | 27 ++ drivers/thermal/thermal_core.c| 38 +++ include/linux/thermal.h | 12 ++ 3 files changed, 77 insertions(+) create mode

[RFC PATCH v6 8/9] thermal: add trace events to the power allocator governor

2014-12-05 Thread Javi Merino
Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/thermal/cpu_cooling.c | 26 - drivers/thermal/power_allocator.c | 21 +++- include/trace/events/thermal_power_allocator.h | 138 + 3 files changed, 182 insertions(+), 3 deletions

[RFC PATCH v6 7/9] thermal: introduce the Power Allocator governor

2014-12-05 Thread Javi Merino
not exceed the control temperature. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/power_allocator.txt | 196 drivers/thermal/Kconfig

[RFC PATCH v6 9/9] of: thermal: Introduce sustainable power for a thermal zone

2014-12-05 Thread Javi Merino
From: Punit Agrawal punit.agra...@arm.com Introduce an optional property called, sustainable-power, which represents the power (in mW) which the thermal zone can safely dissipate. If provided the property is parsed and associated with the thermal zone via the thermal zone parameters. Cc: Zhang

[RFC PATCH v6 6/9] thermal: cpu_cooling: implement the power cooling device API

2014-12-05 Thread Javi Merino
: Eduardo Valentin edubez...@gmail.com Signed-off-by: Punit Agrawal punit.agra...@arm.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation/thermal/cpu-cooling-api.txt | 144 +- drivers/thermal/cpu_cooling.c | 431 +- include/linux

[RFC PATCH v6 3/9] tools lib traceevent: Add support for __print_u{8,16,32,64}_array()

2014-12-05 Thread Javi Merino
Trace can now generate traces with u8, u16, u32 and u64 dynamic arrays. Add support to parse them. Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Steven Rostedt srost...@redhat.com Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event

[RFC PATCH v6 2/9] tools lib traceevent: Generalize numeric argument

2014-12-05 Thread Javi Merino
Numeric arguments can be in different bases, so rename it to num so that they can be used for formats other than PRINT_HEX Cc: Steven Rostedt srost...@redhat.com Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com --- tools

Re: [RFC PATCH v6 6/9] thermal: cpu_cooling: implement the power cooling device API

2014-12-08 Thread Javi Merino
-dyn_power_table_entries =3D i; + I have seen this a lot, while I was in ARM. Had to adopt some work-arounds to get over it. :) Sigh. Care to share them (privately I guess)? On Sat, Dec 6, 2014 at 12:34 AM, Javi Merino javi.mer...@arm.com wrote: diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal

Re: [RFC PATCH v6 6/9] thermal: cpu_cooling: implement the power cooling device API

2014-12-08 Thread Javi Merino
On Mon, Dec 08, 2014 at 01:31:35PM +, Viresh Kumar wrote: On 8 December 2014 at 18:20, Javi Merino javi.mer...@arm.com wrote: Is this loop pointless? I seem to recall that it was needed but I forgot the details. If you think it is, I can remove it. Yes it is pointless. The CPUs you

Re: [RFC PATCH v6 6/9] thermal: cpu_cooling: implement the power cooling device API

2014-12-09 Thread Javi Merino
Hi Viresh, On Tue, Dec 09, 2014 at 01:59:39AM +, Viresh Kumar wrote: On 8 December 2014 at 19:52, Javi Merino javi.mer...@arm.com wrote: Ok, changed it into: cpu = cpumask_any(cpufreq_device-allowed_cpus); dev = get_cpu_device(cpu); if (!dev

Re: [RFC PATCH v6 6/9] thermal: cpu_cooling: implement the power cooling device API

2014-12-09 Thread Javi Merino
On Tue, Dec 09, 2014 at 10:36:46AM +, Viresh Kumar wrote: On 9 December 2014 at 16:02, Javi Merino javi.mer...@arm.com wrote: Sorry but I don't follow. __cpufreq_cooling_register() is passed a clip_cpus mask, not a single cpu. How do I get the cpu for which __cpufreq_cooling_register

Re: [RFC PATCH v6 6/9] thermal: cpu_cooling: implement the power cooling device API

2014-12-09 Thread Javi Merino
On Tue, Dec 09, 2014 at 11:06:46AM +, Viresh Kumar wrote: On 9 December 2014 at 16:30, Javi Merino javi.mer...@arm.com wrote: Ok, how about this then? I've pasted the whole commit so as to avoid confusion. Yeah, the cpu_dev part looks fine now. Great, thanks! -- To unsubscribe from

  1   2   3   4   5   6   7   8   9   >