Re: [PATCH v1 5/7] thermal: add trace events to the power allocator governor

2015-02-02 Thread Javi Merino
On Wed, Jan 28, 2015 at 05:31:06PM +, Steven Rostedt wrote: On Wed, 28 Jan 2015 17:00:36 + Javi Merino javi.mer...@arm.com wrote: + if (trace_thermal_power_cpu_limit_enabled() load_cpu) { + trace_thermal_power_cpu_get_power( + cpufreq_device

Re: [PATCH v1 4/7] thermal: introduce the Power Allocator governor

2015-02-03 Thread Javi Merino
On Mon, Feb 02, 2015 at 11:51:20PM +, Lina Iyer wrote: On Wed, Jan 28 2015 at 14:42 -0700, Javi Merino wrote: The power allocator governor is a thermal governor that controls system and device power allocation to control temperature. Conceptually, the implementation divides

Re: [PATCH v1 0/7] The power allocator thermal governor

2015-02-05 Thread Javi Merino
Hi linux-pm, On Wed, Jan 28, 2015 at 05:00:31PM +, Javi Merino wrote: The power allocator governor allocates device power to control temperature. This requires transforming performance requests into requested power, which we do with an extended cooling device API introduced in patch 2

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

2015-01-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

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

2015-01-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

[PATCH] sysfs: fix warning when creating a sysfs group without attributes

2015-01-15 Thread Javi Merino
...@linux-vserver.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Signed-off-by: Javi Merino javi.mer...@arm.com --- fs/sysfs/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/sysfs/group.c b/fs/sysfs/group.c index 7d2a860ba788..2554d8835b48 100644 --- a/fs/sysfs

[PATCH v3 3/3] tools lib traceevent: Add support for __print_array()

2015-01-19 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

[PATCH v3 2/3] tools lib traceevent: factor out allocating and processing args

2015-01-19 Thread Javi Merino
...@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 --- This patch wasn't part of v2. It avoids repeating code in patch 3. tools/lib/traceevent/event-parse.c | 77

[PATCH v3 1/3] tracing: Add array printing helpers

2015-01-19 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

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

2015-01-16 Thread Javi Merino
On Fri, Jan 16, 2015 at 02:22:02AM +, Steven Rostedt wrote: On Thu, 15 Jan 2015 16:50:58 + Javi Merino javi.mer...@arm.com wrote: +const char * +ftrace_print_array_seq(struct trace_seq *p, const void *buf, int buf_len, + size_t el_size) +{ + const char

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

2015-01-16 Thread Javi Merino
On Fri, Jan 16, 2015 at 02:35:19AM +, Steven Rostedt wrote: On Thu, 15 Jan 2015 12:05:52 -0500 Javi Merino javi.mer...@arm.com wrote: Trace can now generate traces with variable element size arrays. Add support to parse them. Cc: Namhyung Kim namhy...@kernel.org Cc: Arnaldo

Re: [PATCH RFC 01/12] Documentation: Introduce Linux Kernel Thermal Framework DocBook

2015-02-18 Thread Javi Merino
On Mon, Feb 09, 2015 at 09:34:02PM +, Eduardo Valentin wrote: This patch adds a book about the Linux Kernel Thermal Framework. In this change, only a brief introduction is added together with Makefile changes. Signed-off-by: Eduardo Valentin edubez...@gmail.com ---

Re: [PATCH RFC 12/12] Documentation: thermal docbook: introduce governor chapter

2015-02-18 Thread Javi Merino
Hi Eduardo, On Mon, Feb 09, 2015 at 09:34:13PM +, Eduardo Valentin wrote: In this patch we add a chapter in the thermal docbook to describe the existing governors. The chapter contains one section per governor. Each governor description includes the respective code documentation. Each

Re: [PATCH RFC 02/12] Documentation: thermal docbook: add glossary

2015-02-18 Thread Javi Merino
Hi Eduardo, On Mon, Feb 09, 2015 at 09:34:03PM +, Eduardo Valentin wrote: This change introduces a section in the Introduction Chapter to list concepts used by the Thermal Framework. Signed-off-by: Eduardo Valentin edubez...@gmail.com --- Documentation/DocBook/thermal.tmpl | 129

Re: [PATCH v4 1/3] tracing: Add array printing helpers

2015-01-28 Thread Javi Merino
On Wed, Jan 28, 2015 at 11:26:09AM +, Javi Merino wrote: On Wed, Jan 28, 2015 at 03:35:57AM +, Steven Rostedt wrote: On Mon, 26 Jan 2015 12:11:49 + Javi Merino javi.mer...@arm.com wrote: From: Dave Martin dave.mar...@arm.com If a trace event contains an array

[PATCH v1 0/7] The power allocator thermal governor

2015-01-28 Thread Javi Merino
with a separate power actor API - Addressed most of Eduardo's comments - Incorporated ftrace support for bitmask to trace cpumasks Cheers, Javi Punit Javi Merino (6): thermal: let governors have private data for each thermal zone thermal: extend the cooling device API to include power

[PATCH v1 2/7] thermal: extend the cooling device API to include power information

2015-01-28 Thread Javi Merino
-by: Javi Merino javi.mer...@arm.com --- drivers/thermal/thermal_core.c | 52 ++ include/linux/thermal.h| 18 +++ 2 files changed, 70 insertions(+) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index

Re: [PATCH v4 1/3] tracing: Add array printing helpers

2015-01-28 Thread Javi Merino
On Wed, Jan 28, 2015 at 03:35:57AM +, Steven Rostedt wrote: On Mon, 26 Jan 2015 12:11:49 + Javi Merino javi.mer...@arm.com wrote: 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

[PATCH v1 6/7] of: thermal: Introduce sustainable power for a thermal zone

2015-01-28 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

[PATCH v1 5/7] thermal: add trace events to the power allocator governor

2015-01-28 Thread Javi Merino
Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/thermal/cpu_cooling.c | 31 +- drivers/thermal/power_allocator.c | 22 ++- include/trace/events/thermal.h | 58 +++ include/trace/events/thermal_power_allocator.h

[PATCH v1 7/7] thermal: export thermal_zone_parameters to sysfs

2015-01-28 Thread Javi Merino
It's useful for tuning to be able to edit thermal_zone_parameters from userspace. Export them to the thermal_zone sysfs so that they can be easily changed. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation

[PATCH v1 4/7] thermal: introduce the Power Allocator governor

2015-01-28 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 | 241 +++ drivers/thermal/Kconfig

[PATCH v1 1/7] thermal: let governors have private data for each thermal zone

2015-01-28 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 --- Hi Rui

[PATCH v1 3/7] thermal: cpu_cooling: implement the power cooling device API

2015-01-28 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 | 156 +- drivers/thermal/cpu_cooling.c | 480 +- include/linux

[PATCH v5 2/3] tools lib traceevent: factor out allocating and processing args

2015-01-28 Thread Javi Merino
...@kernel.org Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Steven Rostedt rost...@goodmis.org Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 77 -- 1 file changed, 40 insertions(+), 37

[PATCH v5 0/3] Add array printing helper to ftrace

2015-01-28 Thread Javi Merino
] http://thread.gmane.org/gmane.linux.kernel/1874250 Dave Martin (1): tracing: Add array printing helper Javi Merino (2): tools lib traceevent: factor out allocating and processing args tools lib traceevent: Add support for __print_array() include/linux/ftrace_event.h | 4 + include

[PATCH v5 3/3] tools lib traceevent: Add support for __print_array()

2015-01-28 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 rost...@goodmis.org Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com

[PATCH v5 1/3] tracing: Add array printing helper

2015-01-28 Thread Javi Merino
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...@arm.com

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

2015-01-29 Thread Javi Merino
On Thu, Jan 29, 2015 at 12:15:07AM +, Eduardo Valentin wrote: Hi Eduardo, Eduardo Valentin edubez...@gmail.com writes: Hello Javi, On Fri, Dec 05, 2014 at 07:04:17PM +, Javi Merino wrote: Add a basic power model to the cpu cooling device to implement the power

Re: [PATCH v1 3/7] thermal: cpu_cooling: implement the power cooling device API

2015-01-29 Thread Javi Merino
On Wed, Jan 28, 2015 at 05:56:08PM +, Eduardo Valentin wrote: On Wed, Jan 28, 2015 at 05:00:34PM +, Javi Merino wrote: Add a basic power model to the cpu cooling device to implement the power cooling device API. The power model uses the current frequency, current load and OPPs

[PATCH v4 0/3] Add array printing helpers to ftrace

2015-01-26 Thread Javi Merino
helpers Javi Merino (2): tools lib traceevent: factor out allocating and processing args tools lib traceevent: Add support for __print_array() include/linux/ftrace_event.h | 4 + include/trace/ftrace.h | 9 +++ kernel/trace/trace_output.c| 44 ++ tools/lib

[PATCH v4 3/3] tools lib traceevent: Add support for __print_array()

2015-01-26 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

[PATCH v4 2/3] tools lib traceevent: factor out allocating and processing args

2015-01-26 Thread Javi Merino
...@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 --- tools/lib/traceevent/event-parse.c | 77 -- 1 file changed, 40 insertions(+), 37

[PATCH v4 1/3] tracing: Add array printing helpers

2015-01-26 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

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

2015-01-06 Thread Javi Merino
On Fri, Jan 02, 2015 at 03:53:00PM +, Eduardo Valentin wrote: On Fri, Dec 05, 2014 at 07:04:20PM +, Javi Merino wrote: 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

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

2015-01-06 Thread Javi Merino
Hi Eduardo, On Mon, Jan 05, 2015 at 09:04:09PM +, Eduardo Valentin wrote: On Mon, Jan 05, 2015 at 03:37:10PM +, Javi Merino wrote: On Tue, Dec 23, 2014 at 03:14:11PM +, Eduardo Valentin wrote: Hi Javi On Fri, Dec 05, 2014 at 07:04:16PM +, Javi Merino wrote: Add

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

2015-01-06 Thread Javi Merino
Hi Eduardo, On Mon, Jan 05, 2015 at 08:44:53PM +, Eduardo Valentin wrote: On Mon, Jan 05, 2015 at 04:53:40PM +, Javi Merino wrote: On Fri, Jan 02, 2015 at 02:37:23PM +, Eduardo Valentin wrote: On Tue, Dec 09, 2014 at 11:00:43AM +, Javi Merino wrote: On Tue, Dec 09, 2014

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

2015-01-05 Thread Javi Merino
of feedback here.. Yes, some SMTP servers here are known to do that and I was using the wrong one. Sorry for that, it should not happen again. On Tue, Dec 09, 2014 at 11:00:43AM +, Javi Merino wrote: On Tue, Dec 09, 2014 at 10:36:46AM +, Viresh Kumar wrote: On 9 December 2014 at 16:02, Javi

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

2015-01-06 Thread Javi Merino
On Tue, Jan 06, 2015 at 01:13:03PM +, Eduardo Valentin wrote: On Tue, Jan 06, 2015 at 09:42:15AM +, Javi Merino wrote: On Fri, Jan 02, 2015 at 03:53:00PM +, Eduardo Valentin wrote: On Fri, Dec 05, 2014 at 07:04:20PM +, Javi Merino wrote: From: Punit Agrawal punit.agra

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

2015-01-06 Thread Javi Merino
Hi Eduardo, On Fri, Jan 02, 2015 at 03:46:24PM +, Eduardo Valentin wrote: On Fri, Dec 05, 2014 at 07:04:18PM +, Javi Merino wrote: The power allocator governor is a thermal governor that controls system and device power allocation to control temperature. Conceptually

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

2015-01-06 Thread Javi Merino
Hi Eduardo, On Tue, Jan 06, 2015 at 02:18:36PM +, Eduardo Valentin wrote: On Tue, Jan 06, 2015 at 01:23:42PM +, Javi Merino wrote: On Fri, Jan 02, 2015 at 03:46:24PM +, Eduardo Valentin wrote: On Fri, Dec 05, 2014 at 07:04:18PM +, Javi Merino wrote: diff --git a/drivers

Re: [PATCH v1 4/7] thermal: introduce the Power Allocator governor

2015-02-09 Thread Javi Merino
Hi Lina, On Wed, Feb 04, 2015 at 11:47:16PM +, Lina Iyer wrote: On Tue, Feb 03 2015 at 12:20 -0700, Eduardo Valentin wrote: On Tue, Feb 03, 2015 at 10:32:11AM -0700, Lina Iyer wrote: big cut Well, I am not convinced drivers really need to be aware of these trip types. Which kind

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

2015-01-05 Thread Javi Merino
On Tue, Dec 23, 2014 at 03:14:11PM +, Eduardo Valentin wrote: Hi Javi On Fri, Dec 05, 2014 at 07:04:16PM +, Javi Merino wrote: Add three optional callbacks to the cooling device interface to allow them to express power. In addition to the callbacks, add helpers to identify

[PATCH 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-20 Thread Javi Merino
djw...@us.ibm.com Cc: Guenter Roeck li...@roeck-us.net Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/gpu/drm/i915/intel_drv.h | 4 +--- include/linux/kernel.h | 11 +++ 2 files changed, 12 insertions(+), 3 deletions

[PATCH 4/4] media: cxd2820r: use DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Antti Palosaari cr...@iki.fi Cc: Mauro Carvalho Chehab mche...@osg.samsung.com Signed-off-by: Javi Merino javi.mer...@arm.com --- I've only compile-tested it, I don't have

[PATCH 3/4] cpuidle: menu: use DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: Mel Gorman mgor...@suse.de Cc: Stephen Hemminger shemmin...@linux-foundation.org Signed-off-by: Javi Merino javi.mer...@arm.com

[PATCH 0/4] Consolidate DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
of the one in kernel.h Javi Merino (4): kernel.h: Implement DIV_ROUND_CLOSEST_ULL clk: bcm/kona: use DIV_ROUND_CLOSEST_ULL() cpuidle: menu: use DIV_ROUND_CLOSEST_ULL() media: cxd2820r: use DIV_ROUND_CLOSEST_ULL() drivers/clk/bcm/clk-kona.c | 28

[PATCH 2/4] clk: bcm/kona: use DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Mike Turquette mturque...@linaro.org Cc: Stephen Boyd sb...@codeaurora.org Cc: Alex Elder el...@linaro.org Signed-off-by: Javi Merino javi.mer...@arm.com --- I've only compile-tested

Re: [PATCH 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-20 Thread Javi Merino
On Fri, Mar 20, 2015 at 06:19:26PM +, Emil Velikov wrote: On 20 March 2015 at 11:14, Javi Merino javi.mer...@arm.com wrote: We have grown a number of different implementations of DIV_ROUND_CLOSEST_ULL throughout the kernel. Move the i915 one to kernel.h so that it can be reused. Cc

Re: [PATCH 4/4] media: cxd2820r: use DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
On Fri, Mar 20, 2015 at 01:51:36PM +, Alex Elder wrote: On 03/20/2015 06:14 AM, Javi Merino wrote: Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Antti Palosaari cr...@iki.fi Cc: Mauro Carvalho Chehab mche

[RESEND PATCH v8 1/2] tools lib traceevent: factor out allocating and processing args

2015-03-20 Thread Javi Merino
Melo a...@redhat.com Cc: Jiri Olsa jo...@redhat.com Acked-by: Steven Rostedt rost...@goodmis.org Acked-by: Namhyung Kim namhy...@kernel.org Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 77 -- 1 file changed, 40

[RESEND PATCH v8 0/2] Add array printing support to libtraceevent

2015-03-20 Thread Javi Merino
/gmane.linux.kernel/1896232 Javi Merino (2): tools lib traceevent: factor out allocating and processing args tools lib traceevent: Add support for __print_array() tools/lib/traceevent/event-parse.c | 158 + tools/lib/traceevent/event-parse.h | 8 ++ 2 files

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

2015-03-20 Thread Javi Merino
...@kernel.org Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 93 ++ tools/lib/traceevent/event-parse.h | 8 2 files changed, 101 insertions(+) diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event

[PATCH v8 1/2] tools lib traceevent: factor out allocating and processing args

2015-03-06 Thread Javi Merino
Melo a...@redhat.com Cc: Steven Rostedt rost...@goodmis.org Cc: Jiri Olsa jo...@redhat.com Acked-by: Namhyung Kim namhy...@kernel.org Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 77 -- 1 file changed, 40 insertions

[PATCH v8 0/2] Add array printing support to libtraceevent

2015-03-06 Thread Javi Merino
and el_size to match the definition of __print_array as Namhyung Kim suggests. Incorporate his Acked-bys. [0] http://thread.gmane.org/gmane.linux.kernel/1897935 Javi Merino (2): tools lib traceevent: factor out allocating and processing args tools lib traceevent: Add support for __print_array

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

2015-03-06 Thread Javi Merino
Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 93 ++ tools/lib/traceevent/event-parse.h | 8 2 files changed, 101 insertions(+) diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c

[PATCH v2 2/4] clk: bcm/kona: use DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Mike Turquette mturque...@linaro.org Cc: Stephen Boyd sb...@codeaurora.org Cc: Alex Elder el...@linaro.org Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/clk/bcm/clk

[PATCH v2 4/4] media: cxd2820r: use DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Mauro Carvalho Chehab mche...@osg.samsung.com Acked-by: Antti Palosaari cr...@iki.fi Reviewed-by: Antti Palosaari cr...@iki.fi Signed-off-by: Javi Merino javi.mer...@arm.com

[PATCH v2 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-24 Thread Javi Merino
a...@linux-foundation.org Acked-by: Daniel Vetter daniel.vet...@ffwll.ch Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/gpu/drm/i915/intel_drv.h | 3 --- drivers/gpu/drm/i915/intel_panel.c | 1 + include/linux/kernel.h | 12 3 files changed, 13 insertions(+), 3

[PATCH v2 0/4] Consolidate DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
of the one in kernel.h Changes since v1: - inlcude linux/kernel.h in drivers/gpu/drm/i915/intel_panel.c instead of drivers/gpu/drm/i915/intel_drv.h as Emil Velikov suggests - Avoid evaluating 'divisor' twice Javi Merino (4): kernel.h: Implement DIV_ROUND_CLOSEST_ULL clk: bcm/kona: use

[PATCH v2 3/4] cpuidle: menu: use DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: Mel Gorman mgor...@suse.de Cc: Stephen Hemminger shemmin...@linux-foundation.org Signed-off-by: Javi Merino javi.mer...@arm.com

[PATCH v9] tools lib traceevent: Add support for __print_array()

2015-03-24 Thread Javi Merino
...@kernel.org Signed-off-by: Javi Merino javi.mer...@arm.com --- Changes since v8: - Add PRINT_INT_ARRAY to define_event_symbols() in perf's scripting engines as Arnaldo suggested. - Use %lu instead of %llu for uint64_t Note, I'm not familiar with perf, so I've only compile-tested

Re: [PATCH 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-24 Thread Javi Merino
On Mon, Mar 23, 2015 at 05:04:16PM +, Javi Merino wrote: On Mon, Mar 23, 2015 at 12:34:04PM +, Jeff Epler wrote: On Fri, Mar 20, 2015 at 11:14:40AM +, Javi Merino wrote: +/* + * Same as above but for u64 dividends. divisor must be a 32-bit + * number. + */ +#define

[PATCH] thermal: x86_pkg_temp: drop const for thermal_zone_parameters

2015-03-03 Thread Javi Merino
struct thermal_zone_params *' struct thermal_zone_device *thermal_zone_device_register(const char *, int, int, ^ Cc: Jean Delvare jdelv...@suse.de Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer

Re: [PATCH v2 7/7] thermal: export thermal_zone_parameters to sysfs

2015-03-02 Thread Javi Merino
On Thu, Feb 26, 2015 at 10:10:07PM +, Eduardo Valentin wrote: On Fri, Feb 27, 2015 at 05:19:05PM +, Javi Merino wrote: On Thu, Feb 26, 2015 at 10:04:24PM +, Eduardo Valentin wrote: On Thu, Feb 26, 2015 at 05:30:00PM -0400, Eduardo Valentin wrote: On Thu, Feb 26, 2015 at 07:00

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

2015-03-02 Thread Javi Merino
On Thu, Feb 26, 2015 at 10:16:09PM +, Eduardo Valentin wrote: On Thu, Feb 26, 2015 at 07:00:26PM +, Javi Merino wrote: Hi linux-pm, The power allocator governor allocates device power to control temperature. This requires transforming performance requests into requested power

[PATCH v3 0/5] Subject: The power allocator thermal governor

2015-03-02 Thread Javi Merino
the cooling device interface with a separate power actor API - Addressed most of Eduardo's comments - Incorporated ftrace support for bitmask to trace cpumasks Cheers, Javi Punit Javi Merino (4): thermal: introduce the Power Allocator governor thermal: add trace events to the power

[PATCH v3 3/5] thermal: export thermal_zone_parameters to sysfs

2015-03-02 Thread Javi Merino
It's useful for tuning to be able to edit thermal_zone_parameters from userspace. Export them to the thermal_zone sysfs so that they can be easily changed. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation

[PATCH v3 4/5] Revert cpufreq: remove CPUFREQ_UPDATE_POLICY_CPU notifications

2015-03-02 Thread Javi Merino
notifier so that we can react to it. Cc: Viresh Kumar viresh.ku...@linaro.org Cc: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Javi Merino javi.mer...@arm.com --- Hi Viresh, We just noticed that you removed this from v4.0-rc1 when we were planning on using it, that's why are reverting

[PATCH v3 1/5] thermal: introduce the Power Allocator governor

2015-03-02 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 | 247 ++ drivers/thermal/Kconfig

[PATCH v3 2/5] thermal: add trace events to the power allocator governor

2015-03-02 Thread Javi Merino
...@goodmis.org Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/thermal/cpu_cooling.c | 31 - drivers/thermal/power_allocator.c | 22 ++- include/trace/events/thermal.h | 58 + include/trace/events/thermal_power_allocator.h

[PATCH v3 5/5] thermal: cpu_cooling: update the cpu device when cpufreq updates the policy cpu

2015-03-02 Thread Javi Merino
From: Kapileshwar Singh kapileshwar.si...@arm.com When cpufreq changes the policy cpu, we need to update our cached cpu device accordingly. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Kapileshwar Singh kapileshwar.si...@arm.com ---

Re: [PATCH v6 1/2] tools lib traceevent: factor out allocating and processing args

2015-03-02 Thread Javi Merino
On Fri, Feb 27, 2015 at 03:38:41PM +, Steven Rostedt wrote: On Fri, 27 Feb 2015 14:48:14 + Javi Merino javi.mer...@arm.com wrote: +static int alloc_and_process_arg(struct event_format *event, char *next_token, +struct print_arg **print_arg

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

2015-03-02 Thread Javi Merino
-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 93 ++ tools/lib/traceevent/event-parse.h | 8 2 files changed, 101 insertions(+) diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index

Re: [PATCH v3 0/5] Subject: The power allocator thermal governor

2015-03-02 Thread Javi Merino
On Mon, Mar 02, 2015 at 05:28:50PM +, Eduardo Valentin wrote: On Mon, Mar 02, 2015 at 05:17:18PM +, Javi Merino wrote: *** BLURB HERE *** Hi linux-pm, Introduce the power allocator governor, a thermal governor that allocates device power to control temperature. This series

[PATCH v7 1/2] tools lib traceevent: factor out allocating and processing args

2015-03-02 Thread Javi Merino
...@kernel.org Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Steven Rostedt rost...@goodmis.org Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 77 -- 1 file changed, 40 insertions(+), 37

[PATCH v7 0/2] Add array printing support to libtraceevent

2015-03-02 Thread Javi Merino
suggests [0] http://thread.gmane.org/gmane.linux.kernel/1896232 Javi Merino (2): tools lib traceevent: factor out allocating and processing args tools lib traceevent: Add support for __print_array() tools/lib/traceevent/event-parse.c | 158 + tools/lib

Re: [PATCH v5 3/3] tools lib traceevent: Add support for __print_array()

2015-02-27 Thread Javi Merino
Hi Steve, On Wed, Jan 28, 2015 at 12:48:55PM +, Javi Merino wrote: 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 rost...@goodmis.org Cc

Re: [PATCH v2 7/7] thermal: export thermal_zone_parameters to sysfs

2015-02-27 Thread Javi Merino
On Thu, Feb 26, 2015 at 10:04:24PM +, Eduardo Valentin wrote: On Thu, Feb 26, 2015 at 05:30:00PM -0400, Eduardo Valentin wrote: On Thu, Feb 26, 2015 at 07:00:33PM +, Javi Merino wrote: It's useful for tuning to be able to edit thermal_zone_parameters from userspace. Export them

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

2015-02-27 Thread Javi Merino
-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 93 ++ tools/lib/traceevent/event-parse.h | 8 2 files changed, 101 insertions(+) diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index

[PATCH v6 1/2] tools lib traceevent: factor out allocating and processing args

2015-02-27 Thread Javi Merino
...@kernel.org Cc: Arnaldo Carvalho de Melo a...@redhat.com Cc: Steven Rostedt rost...@goodmis.org Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Javi Merino javi.mer...@arm.com --- tools/lib/traceevent/event-parse.c | 77 -- 1 file changed, 40 insertions(+), 37

[PATCH v6 0/2] Add array printing support to libtraceevent

2015-02-27 Thread Javi Merino
This series add support to libtraceevent for dynamic arrays in traces. The kernel learned to create this traces in 6ea22486ba46 (tracing: Add array printing helper), which was merged for v4.0-rc1. No changes since v5: http://thread.gmane.org/gmane.linux.kernel/1877410/focus=1877409 Javi Merino

Re: [PATCH v5 3/3] tools lib traceevent: Add support for __print_array()

2015-02-27 Thread Javi Merino
On Fri, Feb 27, 2015 at 02:15:05PM +, Steven Rostedt wrote: On Fri, 27 Feb 2015 12:32:32 + Javi Merino javi.mer...@arm.com wrote: Hi Steve, On Wed, Jan 28, 2015 at 12:48:55PM +, Javi Merino wrote: Trace can now generate traces with variable element size arrays. Add

Re: [PATCH v2 4/7] thermal: introduce the Power Allocator governor

2015-02-27 Thread Javi Merino
On Thu, Feb 26, 2015 at 08:36:16PM +, Eduardo Valentin wrote: Javi, Replying in v2. On Thu, Feb 26, 2015 at 07:00:30PM +, Javi Merino wrote: big cut + +/** + * divvy_up_power() - divvy the allocated power between the actors + * @req_power: each actor's requested

Re: [PATCH] thermal: Fix build for !CONFIG_THERMAL

2015-03-04 Thread Javi Merino
Hi Mark, On Wed, Mar 04, 2015 at 12:05:39PM +, Mark Brown wrote: Commit ddd4dd8ddf784 (thermal: extend the cooling device API to include power information) added stubs for newly introduced functions when !CONFIG_THERMAL but did not provide names for the parameters which is a syntax error

Re: select on undefined THERMAL_POWER_ACTOR

2015-03-04 Thread Javi Merino
Hi Valentin, On Wed, Mar 04, 2015 at 01:19:25PM +, Valentin Rothberg wrote: your commit 8754d5115693 (thermal: introduce the Power Allocator governor) is included in today's linux-next tree (i.e., next-20150304). This patch adds a select on the Kconfig symbol THERMAL_POWER_ACTOR.

[PATCH] thermal: remove stale THERMAL_POWER_ACTOR select

2015-03-04 Thread Javi Merino
A previous version of this patch had a config for THERMAL_POWER_ACTOR but it was dropped. Remove the select as it is not doing anything. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Reported-by: Valentin Rothberg valentinrothb...@gmail.com Signed-off-by: Javi Merino

Re: [PATCH] thermal: cpu_cooling: fix ptr_ret.cocci warnings

2015-03-05 Thread Javi Merino
by: scripts/coccinelle/api/ptr_ret.cocci CC: Javi Merino javi.mer...@arm.com Signed-off-by: Fengguang Wu fengguang...@intel.com --- cpu_cooling.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c

Re: [PATCH v1 4/7] thermal: introduce the Power Allocator governor

2015-02-25 Thread Javi Merino
Hi Eduardo, On Tue, Feb 24, 2015 at 06:21:26PM +, Eduardo Valentin wrote: On Wed, Jan 28, 2015 at 05:00:35PM +, Javi Merino wrote: + +k_d +--- + +`k_d` configures the PID loop's derivative term constant. It's +recommended to leave it as the default: 0. + I know we

Re: [PATCH v1 4/7] thermal: introduce the Power Allocator governor

2015-02-26 Thread Javi Merino
On Wed, Feb 25, 2015 at 07:00:38PM +, Eduardo Valentin wrote: On Wed, Feb 25, 2015 at 02:48:49PM +, Javi Merino wrote: Hi Eduardo, On Tue, Feb 24, 2015 at 06:21:26PM +, Eduardo Valentin wrote: On Wed, Jan 28, 2015 at 05:00:35PM +, Javi Merino wrote: + +k_d

[PATCH v2 3/7] thermal: cpu_cooling: implement the power cooling device API

2015-02-26 Thread Javi Merino
: Eduardo Valentin edubez...@gmail.com Signed-off-by: Kapileshwar Singh kapileshwar.si...@arm.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 | 156 +++- drivers/thermal/cpu_cooling.c | 583

[PATCH v2 7/7] thermal: export thermal_zone_parameters to sysfs

2015-02-26 Thread Javi Merino
It's useful for tuning to be able to edit thermal_zone_parameters from userspace. Export them to the thermal_zone sysfs so that they can be easily changed. Cc: Zhang Rui rui.zh...@intel.com Cc: Eduardo Valentin edubez...@gmail.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Documentation

[PATCH v2 2/7] thermal: extend the cooling device API to include power information

2015-02-26 Thread Javi Merino
-by: Javi Merino javi.mer...@arm.com --- drivers/thermal/thermal_core.c | 52 ++ include/linux/thermal.h| 18 +++ 2 files changed, 70 insertions(+) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index

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

2015-02-26 Thread Javi Merino
Signed-off-by: Javi Merino javi.mer...@arm.com --- drivers/thermal/cpu_cooling.c | 31 - drivers/thermal/power_allocator.c | 22 ++- include/trace/events/thermal.h | 58 + include/trace/events/thermal_power_allocator.h | 87

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

2015-02-26 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

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

2015-02-26 Thread Javi Merino
of Eduardo's comments - Incorporated ftrace support for bitmask to trace cpumasks Cheers, Javi Punit Javi Merino (6): thermal: let governors have private data for each thermal zone thermal: extend the cooling device API to include power information thermal: cpu_cooling: implement the power

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

2015-02-26 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 | 247 ++ drivers/thermal/Kconfig

[PATCH v2 6/7] of: thermal: Introduce sustainable power for a thermal zone

2015-02-26 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

[PATCH] ASoC: pcm512x: use DIV_ROUND_CLOSEST_ULL() from kernel.h

2015-03-25 Thread Javi Merino
-by: kbuild test robot fengguang...@intel.com Signed-off-by: Javi Merino javi.mer...@arm.com --- Patches in the -mm tree now provide a DIV_ROUND_CLOSEST_ULL() implementation in kernel.h[0]. If I understand it correctly, this patch should go via the -mm tree as well with appropriate Acks from

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

2015-01-23 Thread Javi Merino
Hi Rui, On Mon, Dec 08, 2014 at 04:11:32AM +, Zhang Rui wrote: On Fri, 2014-12-05 at 19:04 +, Javi Merino wrote: A governor may need to store its current state between calls to throttle(). That state depends on the thermal zone, so store it as private data in struct

  1   2   3   4   5   6   7   8   9   >