Problem using gtags target

2013-07-08 Thread Punit Agrawal
Hi, I am trying to use GNU global for kernel source browsing but have run into a problem when using gtags target in Makefile. The index files(GTAGS, GSYMS, GPATH, GRTAGS) don't work and on further investigation turned out to be 16kb each in size. My command line is - make ARCH=arm

Re: Problem using gtags target

2013-07-23 Thread Punit Agrawal
Michal Marek mma...@suse.cz writes: On 8.7.2013 19:22, Punit Agrawal wrote: Hi, I am trying to use GNU global for kernel source browsing but have run into a problem when using gtags target in Makefile. The index files(GTAGS, GSYMS, GPATH, GRTAGS) don't work and on further investigation

[RFC PATCH 0/3] Add trace to thermal framework

2014-06-11 Thread Punit Agrawal
observing the behaviour of the different components in the framework. The events added trace temperature changes, trip points and cooling device state changes. The patches are based on v3.15-rc8. Cheers, Punit Punit Agrawal (3): thermal: trace: Trace temperature changes thermal: trace: Trace

[RFC PATCH 1/3] thermal: trace: Trace temperature changes

2014-06-11 Thread Punit Agrawal
fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com Signed-off-by: Punit Agrawal punit.agra...@arm.com --- drivers/thermal/thermal_core.c |4 include/trace/events/thermal.h | 38 ++ 2 files changed, 42 insertions(+) create mode 100644 include/trace

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

2014-06-11 Thread Punit Agrawal
...@gmail.com Cc: Ingo Molnar mi...@redhat.com Signed-off-by: Punit Agrawal punit.agra...@arm.com --- Hi Steven, I am facing an issue with partial trace being emitted when using __print_symbolic in this patch. When the trip_type is THERMAL_TRIP_ACTIVE (i.e., the first value in the symbol map), the emitted

[RFC PATCH 2/3] thermal: trace: Trace when a cooling device's state is updated

2014-06-11 Thread Punit Agrawal
fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com Signed-off-by: Punit Agrawal punit.agra...@arm.com --- drivers/thermal/thermal_core.c |1 + include/trace/events/thermal.h | 19 +++ 2 files changed, 20 insertions(+) diff --git a/drivers/thermal/thermal_core.c b/drivers

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

2014-06-11 Thread Punit Agrawal
Thanks for the quick response. Steven Rostedt rost...@goodmis.org writes: On Wed, 11 Jun 2014 12:31:44 +0100 Punit Agrawal punit.agra...@arm.com 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

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

2014-06-11 Thread Punit Agrawal
Steven Rostedt rost...@goodmis.org writes: On Wed, 11 Jun 2014 15:11:02 +0100 Punit Agrawal punit.agra...@arm.com wrote: I do indeed see the value of trip_type and it matches what's being traced. ~# trace-cmd report | grep thermal_zone_trip | tail -n 5 kworker/2:2-1014 [002

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

2014-06-12 Thread Punit Agrawal
Steven Rostedt rost...@goodmis.org writes: [...] # pwd /sys/kernel/debug/tracing/events/thermal/thermal_zone_trip # cat format name: thermal_zone_trip ID: 463 format: field:unsigned short common_type; offset:0; size:2; signed:0; field:unsigned char

Re: [PATCH] thermal: Bind cooling devices with the correct arguments

2014-06-17 Thread Punit Agrawal
Ping? Punit Agrawal punit.agra...@arm.com writes: When binding cooling devices to thermal zones created from the device tree the minimum and maximum cooling states are in the wrong order leading to failure to bind. Fix the order of cooling states in the call

[PATCH] thermal: Bind cooling devices with the correct arguments

2014-06-03 Thread Punit Agrawal
Signed-off-by: Punit Agrawal punit.agra...@arm.com --- Hi Eduardo, I am hoping this can be picked up for 3.16 as a bug fix. Thanks, Punit drivers/thermal/of-thermal.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c

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

2014-06-24 Thread Punit Agrawal
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-critical and critical trip pionts. Cc: Zhang Rui rui.zh

Re: [PATCH] thermal: Bind cooling devices with the correct arguments

2014-06-24 Thread Punit Agrawal
Stephen Boyd sb...@codeaurora.org writes: On 06/17/14 03:20, Punit Agrawal wrote: Ping? Punit Agrawal punit.agra...@arm.com writes: When binding cooling devices to thermal zones created from the device tree the minimum and maximum cooling states are in the wrong order leading to failure

Re: [PATCH 1/2] PM / devfreq: Export helper functions for drivers

2014-07-21 Thread Punit Agrawal
함명주 myungjoo@samsung.com writes: Sender : Punit Agrawalpunit.agra...@arm.com From: Ørjan Eide These functions are indended for use by drivers and should be available also when the driver is built as a module. Cc: MyungJoo Ham Cc: Kyungmin Park Signed-off-by: Ørjan Eide Dear

Re: [PATCH] thermal: Add braces around suspect code

2014-06-30 Thread Punit Agrawal
; + } finish: of_node_put(child); Looks good to me. Reviewed-by: Punit Agrawal punit.agra...@arm.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

[PATCH 0/3] Add trace to thermal framework

2014-07-29 Thread Punit Agrawal
point was traced when using fair share * Trace the numeric value of trip_type instead of using __print_symbolic Punit Agrawal (3): thermal: trace: Trace temperature changes thermal: trace: Trace when a cooling device's state is updated thermal: trace: Trace when temperature is above a trip

[PATCH 1/3] thermal: trace: Trace temperature changes

2014-07-29 Thread Punit Agrawal
fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com Signed-off-by: Punit Agrawal punit.agra...@arm.com --- drivers/thermal/thermal_core.c |4 include/trace/events/thermal.h | 38 ++ 2 files changed, 42 insertions(+) create mode 100644 include/trace

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

2014-07-29 Thread Punit Agrawal
...@gmail.com Cc: Ingo Molnar mi...@redhat.com Signed-off-by: Punit Agrawal punit.agra...@arm.com --- drivers/thermal/fair_share.c | 12 drivers/thermal/step_wise.c|5 - drivers/thermal/thermal_core.c |2 ++ include/trace/events/thermal.h | 26 ++ 4

[PATCH 2/3] thermal: trace: Trace when a cooling device's state is updated

2014-07-29 Thread Punit Agrawal
fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com Signed-off-by: Punit Agrawal punit.agra...@arm.com --- drivers/thermal/thermal_core.c |1 + include/trace/events/thermal.h | 19 +++ 2 files changed, 20 insertions(+) diff --git a/drivers/thermal/thermal_core.c b/drivers

Re: [PATCH] drivers: CCI: Correct use of ! and

2014-07-29 Thread Punit Agrawal
Hi Arnd, Will Deacon will.dea...@arm.com writes: On Wed, Jul 23, 2014 at 04:01:56PM +0100, Punit Agrawal wrote: diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index 5a86da9..7af78df 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -397,7 +397,8 @@ static

Re: [PATCH] drivers: CCI: Correct use of ! and

2014-07-30 Thread Punit Agrawal
Olof Johansson o...@lixom.net writes: On Tue, Jul 29, 2014 at 4:34 AM, Punit Agrawal punit.agra...@arm.com wrote: Hi Arnd, Will Deacon will.dea...@arm.com writes: On Wed, Jul 23, 2014 at 04:01:56PM +0100, Punit Agrawal wrote: diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c

Re: [PATCH 0/3] Add trace to thermal framework

2014-07-30 Thread Punit Agrawal
Eduardo Valentin edubez...@gmail.com writes: On Tue, Jul 29, 2014 at 11:50:47AM +0100, Punit Agrawal wrote: Hi linux-pm, This is the second posting of the patches to add trace to the thermal framework. The linux thermal framework doesn't have any support for tracing. This makes it hard

[PATCH 0/2] Convert exynos PPMU driver to be built as module

2014-07-18 Thread Punit Agrawal
. Thanks Punit Agrawal (1): PM / devfreq: exynos: Enable building exynos PPMU as module Ørjan Eide (1): PM / devfreq: Export helper functions for drivers drivers/devfreq/Kconfig |2 +- drivers/devfreq/devfreq.c|3 +++ drivers/devfreq/exynos/exynos_ppmu.c |3

[PATCH 1/2] PM / devfreq: Export helper functions for drivers

2014-07-18 Thread Punit Agrawal
From: Ørjan Eide orjan.e...@arm.com These functions are indended for use by drivers and should be available also when the driver is built as a module. Cc: MyungJoo Ham myungjoo@samsung.com Cc: Kyungmin Park kyungmin.p...@samsung.com Signed-off-by: Ørjan Eide orjan.e...@arm.com ---

[PATCH 2/2] PM / devfreq: exynos: Enable building exynos PPMU as module

2014-07-18 Thread Punit Agrawal
Export symbols from the PPMU driver needed to build the exynos bus driver as a module. Cc: MyungJoo Ham myungjoo@samsung.com Cc: Kyungmin Park kyungmin.p...@samsung.com Cc: Kukjin Kim kgene@samsung.com Cc: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Punit Agrawal

Re: [PATCH] drivers: CCI: Correct use of ! and

2014-07-23 Thread Punit Agrawal
? */ - if (!pmu_read_register(idx, CCI_PMU_OVRFLW) CCI_PMU_OVRFLW_FLAG) + if (!(pmu_read_register(idx, CCI_PMU_OVRFLW) + CCI_PMU_OVRFLW_FLAG)) continue; Going back to the manual, this fix looks correct. Acked-by: Punit Agrawal punit.agra...@arm.com Will, would

Re: [PATCH 0/2] Convert exynos PPMU driver to be built as module

2014-08-06 Thread Punit Agrawal
Punit Agrawal punit.agra...@arm.com writes: Hi, There's no reason why the exynos PPMU can't be built as a module except you need - - The first patch exports the functions that are needed to build devfreq drivers as modules. - The second patch then converts the exynos PPMU devfreq driver

Re: [PATCH 1/2] PM / devfreq: Export helper functions for drivers

2014-08-18 Thread Punit Agrawal
-kernel-ow...@vger.kernel.org [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Punit Agrawal Sent: Friday, July 18, 2014 10:10 AM To: linux...@vger.kernel.org; linux-samsung-...@vger.kernel.org Cc: orjan.e...@arm.com; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org

Re: [GIT PULL] thermal soc changes

2014-10-22 Thread Punit Agrawal
branch. And I've pulled those changes in your next branch. Yes Rui. I made a mistake. Thanks for pulling. thanks, Cheers, [...] Punit Agrawal (3): thermal: trace: Trace temperature changes thermal: trace: Trace when a cooling device's state is updated

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

2015-01-29 Thread Punit Agrawal
for the power calculations. The cpus must have registered their OPPs using 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 big cut

Re: [PATCHv3 0/5] arm-cci400: PMU monitoring support on ARM64

2015-03-11 Thread Punit Agrawal
, if there is any. Tested on (non-secure)TC2 and A53x2. For the series, Acked-by: Punit Agrawal punit.agra...@arm.com Cheers, Punit [...] -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 01/13] thermal: Make temperatures consistently unsigned long

2015-03-27 Thread Punit Agrawal
Hi Sascha, Sascha Hauer s.ha...@pengutronix.de writes: The thermal framework uses int, long and unsigned long for temperatures in millicelsius. The majority of functions uses unsigned long, so change the remaining functions to use this type aswell. Signed-off-by: Sascha Hauer

Re: [PATCH] thermal: fix the casting issue for long type

2015-02-26 Thread Punit Agrawal
Hi Leo, Leo Yan leo@linaro.org writes: When enable the thermal on arm64 platform, it will report failure when call function *thermal_zone_bind_cooling_device()*. The failure is caused by casting. If dtb specify the minimum cooling state and maximum cooling state as THERMAL_NO_LIMIT,

Re: [PATCH 2/3] arm64: Consolidate hotplug notifier for instruction emulation

2015-01-23 Thread Punit Agrawal
Rutland mark.rutl...@arm.com Signed-off-by: Suzuki K. Poulose suzuki.poul...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: Catalin Marinas catalin.mari...@arm.com Cc: Punit Agrawal punit.agra...@arm.com --- arch/arm64/include/asm/cputype.h |2 + arch/arm64/kernel/armv8_deprecated.c

Re: [PATCH 7/7] arm-cci: Add aliases for PMU events

2015-05-18 Thread Punit Agrawal
source code = 0xf) Each CCI model provides two sets of attributes(format and event), which are dynamically populated before registering the PMU, to allow for the appropriate information. Cc: Punit Agrawal punit.agra...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: Pawel Moll pawel.m...@arm.com

Re: [PATCH 4/7] arm-cci: Abstract handling for CCI events

2015-05-18 Thread Punit Agrawal
need to program the counter for an event. Cc: Punit Agrawal punit.agra...@arm.com Cc: Mark Rutland mark.rutl...@arm.com Cc: Will Deacon will.dea...@arm.com Signed-off-by: Suzuki K. Poulose suzuki.poul...@arm.com Acked-by: Punit Agrawal punit.agra...@arm.com --- drivers/bus/arm-cci.c | 78

Re: [PATCH 6/7] arm-cci: Add CCI-500 PMU support

2015-05-18 Thread Punit Agrawal
. However there are some differences in the PMU event counters. - No cycle counter - Upto 8 counters(4 in CCI-400) - Each counter area is 64K(4K in CCI400) - The counter0 starts at offset 0x1 from the base of CCI Cc: Punit Agrawal punit.agra...@arm.com Cc: Mark Rutland mark.rutl

Re: [PATCH 5/7] arm-cci: Sanitise CCI400 PMU driver specific code

2015-05-18 Thread Punit Agrawal
will.dea...@arm.com Cc: Punit Agrawal punit.agra...@arm.com Signed-off-by: Suzuki K. Poulose suzuki.poul...@arm.com Acked-by: Punit Agrawal punit.agra...@arm.com --- drivers/bus/Kconfig |5 ++ drivers/bus/arm-cci.c | 157 + 2 files

Re: [PATCH 2/7] arm-cci: Cleanup PMU driver code

2015-05-18 Thread Punit Agrawal
Suzuki K. Poulose suzuki.poul...@arm.com writes: From: Suzuki K. Poulose suzuki.poul...@arm.com This patch gets rid of the global struct cci_pmu variable and makes the code use the cci_pmu explicitly. Makes code a bit more robust and reader friendly. Cc: Punit Agrawal punit.agra...@arm.com

Re: [PATCH 3/7] arm-cci: Abstract out the PMU counter details

2015-05-18 Thread Punit Agrawal
for the model. All such data should be accessed via the model abstraction. Limits the number of counters to the maximum supported by the 'model'. Cc: Punit Agrawal punit.agra...@arm.com Cc: Mark Rutland mark.rutl...@arm.com Cc: Will Deacon will.dea...@arm.com Signed-off-by: Suzuki K. Poulose

[PATCH v2 10/10] arm64: dts: Create SoC thermal zone for Juno

2015-08-03 Thread Punit Agrawal
Setup a thermal zone driven by the SoC temperature sensor on Juno r0. Create passive trip points and bind them to cpufreq cooling devices that support the power extensions. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com

[PATCH v2 07/10] hwmon: Support sensors exported via ARM SCP interface

2015-08-03 Thread Punit Agrawal
the hwmon sysfs interface. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Jean Delvare jdelv...@suse.de Cc: Guenter Roeck li...@roeck-us.net Cc: Sudeep Holla sudeep.ho...@arm.com --- Documentation/hwmon/scpi-hwmon | 33 drivers/hwmon/Kconfig | 8 ++ drivers/hwmon/Makefile

[PATCH v2 09/10] arm64: dts: Add sensor node to Juno dt

2015-08-03 Thread Punit Agrawal
The SCP firmware on Juno provides access to SoC sensors via the SCPI. Add the sensor nodes to the device tree to enable this support. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com Cc: Liviu Dudau liviu.du...@arm.com Cc

[PATCH v2 06/10] firmware: arm_scpi: Extend to support sensors

2015-08-03 Thread Punit Agrawal
ARM System Control Processor (SCP) provides an API to query and use the sensors available in the system. Extend the SCPI driver to support sensor messages. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Sudeep Holla sudeep.ho...@arm.com --- drivers/firmware/arm_scpi.c | 60

[PATCH v2 05/10] Documentation: add DT bindings for ARM SCPI sensors

2015-08-03 Thread Punit Agrawal
-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com Cc: Sudeep Holla sudeep.ho...@arm.com --- Documentation/devicetree/bindings/arm/arm,scpi.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree

[PATCH v2 02/10] cpufreq-dt: Supply power coefficient when registering cooling devices

2015-08-03 Thread Punit Agrawal
Support registering cooling devices with dynamic power coefficient where provided by the device tree. This allows OF registered cooling devices driver to be used with the power_allocator thermal governor. Signed-off-by: Punit Agrawal punit.agra...@arm.com Acked-by: Viresh Kumar viresh.ku

[PATCH v2 01/10] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-08-03 Thread Punit Agrawal
in fundamental units of mw/MHz/uVolt^2 and can be used in the above formula to calculate the dynamic power in mW. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com --- Documentation/devicetree/bindings/arm/cpus.txt | 15

[PATCH v2 03/10] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-08-03 Thread Punit Agrawal
allocator governor. A cooling device will be created per individual frequency domain and can be bound to thermal zones via the thermal DT bindings. Signed-off-by: Punit Agrawal punit.agra...@arm.com Acked-by: Viresh Kumar viresh.ku...@linaro.org Cc: Sudeep Holla sudeep.ho...@arm.com Cc: Eduardo

[PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-03 Thread Punit Agrawal
thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when THERMAL_OF is configured off. Fix this. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc

[PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature sensors

2015-08-03 Thread Punit Agrawal
Add support to create thermal zones based on the temperature sensors provided by the SCP. The thermal zones can be defined using the thermal DT bindings and should refer to the SCP sensor id to select the sensor. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Jean Delvare jdelv...@suse.de

[PATCH v2 00/10] Platform support for thermal management on Juno

2015-08-03 Thread Punit Agrawal
] http://community.arm.com/servlet/JiveServlet/download/8401-45-18326/DUI0922B_scp_message_interface.pdf [2] https://wiki.linaro.org/ARM/Juno?action=AttachFiledo=gettarget=DUI0922B_scp_message_interface.pdf v1: http://thread.gmane.org/gmane.linux.kernel/2002152 Punit Agrawal (10): devicetree

Re: [PATCH v2 10/10] arm64: dts: Create SoC thermal zone for Juno

2015-08-13 Thread Punit Agrawal
Hi Liviu, Thanks for having a look. Liviu Dudau liviu.du...@arm.com writes: On Mon, Aug 03, 2015 at 04:22:58PM +0100, Punit Agrawal wrote: Setup a thermal zone driven by the SoC temperature sensor on Juno r0. Create passive trip points and bind them to cpufreq cooling devices that support

Re: [PATCH] thermal/cpu_cooling: remove local cooling state variable

2015-07-29 Thread Punit Agrawal
[ adding Viresh ] Radivoje Jovanovic radivoje.jovano...@linux.intel.com writes: Hi Agarwal, On Fri, 24 Jul 2015 16:26:12 +0100 Punit Agrawal punit.agra...@arm.com wrote: Radivoje Jovanovic radivoje.jovano...@linux.intel.com writes: From: Radivoje Jovanovic radivoje.jovano...@intel.com

Re: [PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-04 Thread Punit Agrawal
Guenter Roeck li...@roeck-us.net writes: On 08/03/2015 08:22 AM, Punit Agrawal wrote: thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when

[PATCH v3] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-05 Thread Punit Agrawal
thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when THERMAL_OF is configured off. Fix this. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc

Re: [PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature sensors

2015-08-05 Thread Punit Agrawal
Guenter Roeck li...@roeck-us.net writes: On 08/03/2015 08:22 AM, Punit Agrawal wrote: Add support to create thermal zones based on the temperature sensors provided by the SCP. The thermal zones can be defined using the thermal DT bindings and should refer to the SCP sensor id to select

Re: [PATCH v2 07/10] hwmon: Support sensors exported via ARM SCP interface

2015-08-05 Thread Punit Agrawal
Guenter Roeck li...@roeck-us.net writes: On 08/03/2015 08:22 AM, Punit Agrawal wrote: Create a driver to add support for SoC sensors exported by the System Control Processor (SCP) via the System Control and Power Interface (SCPI). The supported sensor types is one of voltage, temperature

Re: [PATCH v2 1/4] thermal: power_allocator: relax the requirement of a sustainable_power in tzp

2015-08-11 Thread Punit Agrawal
Hi Javi, A few nitpicks and a comment below. Javi Merino javi.mer...@arm.com writes: The power allocator governor currently requires that a sustainable power is passed as part of the thermal zone's thermal zone parameters. If that parameter is not provided, it doesn't register with the

Re: [PATCH v2 10/10] arm64: dts: Create SoC thermal zone for Juno

2015-08-14 Thread Punit Agrawal
[ adding Eduardo, Rui for their take on OF-thermal bindings ] Punit Agrawal punit.agra...@arm.com writes: Hi Liviu, Thanks for having a look. Liviu Dudau liviu.du...@arm.com writes: On Mon, Aug 03, 2015 at 04:22:58PM +0100, Punit Agrawal wrote: Setup a thermal zone driven by the SoC

Re: [PATCH v2 10/10] arm64: dts: Create SoC thermal zone for Juno

2015-08-14 Thread Punit Agrawal
Apologies for the duplicate, I accidentally Hit send before I finished the reply. Punit Agrawal punit.agra...@arm.com writes: [ adding Eduardo, Rui for their take on OF-thermal bindings ] Punit Agrawal punit.agra...@arm.com writes: Hi Liviu, Thanks for having a look. Liviu Dudau

Re: [PATCH 0/9] Platform support for thermal management on Junoe

2015-07-24 Thread Punit Agrawal
Hi Viresh, Viresh Kumar viresh.ku...@linaro.org writes: On 22-07-15, 15:02, Punit Agrawal wrote: cpufreq-dt: Supply power coefficient when registering cooling devices cpufreq: arm_big_little: Add support to register a cpufreq cooling device Acked-by: Viresh Kumar viresh.ku

Re: [PATCH] thermal/cpu_cooling: remove local cooling state variable

2015-07-24 Thread Punit Agrawal
Radivoje Jovanovic radivoje.jovano...@linux.intel.com writes: From: Radivoje Jovanovic radivoje.jovano...@intel.com there is no need to keep local state variable. if another driver changes the policy under our feet the cpu_cooling driver will have the wrong state. Get current state from the

Re: [PATCH 6/9] hwmon: Support sensors exported via ARM SCP interface

2015-07-24 Thread Punit Agrawal
Hi Guenter, Guenter Roeck li...@roeck-us.net writes: On 07/22/2015 07:02 AM, Punit Agrawal wrote: Create a driver to add support for SoC sensors exported by the System Control Processor (SCP) via the System Control and Power Interface (SCPI). The supported sensor types is one of voltage

Re: [PATCH 7/9] hwmon: Support registration of thermal zones for SCP temperature sensors

2015-07-24 Thread Punit Agrawal
Hi Guenter, Guenter Roeck li...@roeck-us.net writes: On 07/22/2015 07:02 AM, Punit Agrawal wrote: Add support to create thermal zones based on the temperature sensors provided by the SCP. The thermal zones can be defined using the thermal DT bindings and should refer to the SCP sensor id

[PATCH 4/9] Documentation: add DT bindings for ARM SCPI sensors

2015-07-22 Thread Punit Agrawal
-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com Cc: Sudeep Holla sudeep.ho...@arm.com --- Documentation/devicetree/bindings/arm/arm,scpi.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree

[PATCH 1/9] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-07-22 Thread Punit Agrawal
in fundamental units of mw/MHz/uVolt^2 and can be used in the above formula to calculate the dynamic power in mW. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com --- Documentation/devicetree/bindings/arm/cpus.txt | 15

[PATCH 6/9] hwmon: Support sensors exported via ARM SCP interface

2015-07-22 Thread Punit Agrawal
the hwmon sysfs interface. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Jean Delvare jdelv...@suse.de Cc: Guenter Roeck li...@roeck-us.net Cc: Sudeep Holla sudeep.ho...@arm.com --- drivers/hwmon/Kconfig | 8 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/scpi-hwmon.c | 212

[PATCH 5/9] firmware: arm_scpi: Extend to support sensors

2015-07-22 Thread Punit Agrawal
ARM System Control Processor (SCP) provides an API to query and use the sensors available in the system. Extend the SCPI driver to support sensor messages. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Sudeep Holla sudeep.ho...@arm.com --- drivers/firmware/arm_scpi.c | 60

[PATCH 2/9] cpufreq-dt: Supply power coefficient when registering cooling devices

2015-07-22 Thread Punit Agrawal
Support registering cooling devices with dynamic power coefficient where provided by the device tree. This allows OF registered cooling devices driver to be used with the power_allocator thermal governor. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Viresh Kumar viresh.ku...@linaro.org

[PATCH 0/9] Platform support for thermal management on Junoe

2015-07-22 Thread Punit Agrawal
bindings. The last two patches add support for the sensors and the thermal zones in the Juno device tree. The Juno specific patches depend on SCPI and cpufreq patches[0] from Sudeep. Thanks, Punit [0] http://thread.gmane.org/gmane.linux.power-management.general/61073 Punit Agrawal (9): devicetree

[PATCH 8/9] arm64: dts: Add sensor node to Juno dt

2015-07-22 Thread Punit Agrawal
The SCP firmware on Juno provides access to SoC sensors via the SCPI. Add the sensor nodes to the device tree to enable this support. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com Cc: Liviu Dudau liviu.du...@arm.com Cc

[PATCH 9/9] arm64: dts: Create SoC thermal zone for Juno

2015-07-22 Thread Punit Agrawal
Setup a thermal zone driven by the SoC temperature sensor on Juno r0. Create passive trip points and bind them to cpufreq cooling devices that support the power extensions. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com

[PATCH 7/9] hwmon: Support registration of thermal zones for SCP temperature sensors

2015-07-22 Thread Punit Agrawal
Add support to create thermal zones based on the temperature sensors provided by the SCP. The thermal zones can be defined using the thermal DT bindings and should refer to the SCP sensor id to select the sensor. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Jean Delvare jdelv...@suse.de

[PATCH 3/9] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-07-22 Thread Punit Agrawal
allocator governor. A cooling device will be created per individual frequency domain and can be bound to thermal zones via the thermal DT bindings. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Viresh Kumar viresh.ku...@linaro.org Cc: Sudeep Holla sudeep.ho...@arm.com Cc: Eduardo Valentin

Re: [RFC PATCH 0/2] thermal: Add generic devfreq cooling device

2015-07-17 Thread Punit Agrawal
Hi Chanwoo, Chanwoo Choi cw00.c...@samsung.com writes: This patchset introduce the generic devfreq cooling device for generic thermal framework. The devfreq devices are used ad cooling device to reduce the overheating temperature. This patch is based on drivers/thermal/cpu_cooling.c. The

Re: [PATCH] thermal: consistently use int for temperatures

2015-07-17 Thread Punit Agrawal
Hi Sascha, Sascha Hauer s.ha...@pengutronix.de writes: The thermal code uses int, long and unsigned long for temperatures in different places. Using an unsigned type limits the thermal framework to positive temperatures without need. Also several drivers currently will report temperatures

Re: [RFC PATCH 0/2] thermal: Add generic devfreq cooling device

2015-07-20 Thread Punit Agrawal
Hi Chanwoo, Chanwoo Choi cw00.c...@samsung.com writes: Hi Punit, On 07/17/2015 07:53 PM, Punit Agrawal wrote: Hi Chanwoo, Chanwoo Choi cw00.c...@samsung.com writes: This patchset introduce the generic devfreq cooling device for generic thermal framework. The devfreq devices are used

Re: [PATCH v2] thermal: consistently use int for temperatures

2015-07-21 Thread Punit Agrawal
-by: Geert Uytterhoeven geert+rene...@glider.be Reviewed-by: Jean Delvare jdelv...@suse.de Reviewed-by: Lukasz Majewski l.majew...@samsung.com Reviewed-by: Darren Hart dvh...@linux.intel.com Reviewed-by: Heiko Stuebner he...@sntech.de Reviewed-by: Peter Feuerer pe...@piie.net Cc: Punit Agrawal

Re: [PATCH] ARM64: Enable multi-core scheduler support by default

2015-10-28 Thread Punit Agrawal
Hi Catalin, Will, Dietmar Eggemann <dietmar.eggem...@arm.com> writes: > Make sure that the task scheduler domain hierarchy is set-up correctly > on systems with single or multi-cluster topology. > > Signed-off-by: Dietmar Eggemann <dietmar.eggem...@arm.com> FWIW,

Re: [PATCH] hwmon: (scpi) skip unsupported sensors properly

2015-10-28 Thread Punit Agrawal
s for spotting the issue and the fix below. Some comments below. > This patch fixes the above issue by skipping through the unsupported > class of SCPI sensors. > > Fixes: 68acc77a2d51 ("hwmon: Support thermal zones registration for SCP > temperature sensors") > Fixes:

[PATCH v3 1/3] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-11-09 Thread Punit Agrawal
in the above formula to calculate the dynamic power in mW. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Cc: Rob Herring <robh...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> --- Documentation/devicetree/bindings/arm/cpus.txt | 17 + 1 file chan

[PATCH v3 2/3] cpufreq-dt: Supply power coefficient when registering cooling devices

2015-11-09 Thread Punit Agrawal
Support registering cooling devices with dynamic power coefficient where provided by the device tree. This allows OF registered cooling devices driver to be used with the power_allocator thermal governor. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Acked-by: Viresh Kumar <

[PATCH v3 3/3] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-11-09 Thread Punit Agrawal
allocator governor. A cooling device will be created per individual frequency domain and can be bound to thermal zones via the thermal DT bindings. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Acked-by: Viresh Kumar <viresh.ku...@linaro.org> Cc: Sudeep Holla <sudeep.ho...@arm.c

[PATCH v3 0/3] Dynamic power model from device tree

2015-11-09 Thread Punit Agrawal
[0] http://thread.gmane.org/gmane.linux.kernel/2002152 [1] http://thread.gmane.org/gmane.linux.kernel/2011466 Punit Agrawal (3): devicetree: bindings: Add optional dynamic-power-coefficient property cpufreq-dt: Supply power coefficient when registering cooling devices cpufreq: arm_big_little

Re: [PATCH v3 1/3] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-11-09 Thread Punit Agrawal
Rob Herring <r...@kernel.org> writes: > On Mon, Nov 09, 2015 at 05:29:21PM +0000, Punit Agrawal wrote: >> The dynamic power consumption of a device is proportional to the >> square of voltage (V) and the clock frequency (f). It can be expressed as >> >> Pdyn = dy

Re: [PATCH v3 3/3] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-11-16 Thread Punit Agrawal
Viresh Kumar <viresh.ku...@linaro.org> writes: > On 09-11-15, 17:29, Punit Agrawal wrote: >> Register passive cooling devices when initialising cpufreq on >> big.LITTLE systems. If the device tree provides a dynamic power >> coefficient for the CPUs then the bound

Re: [PATCH v2] hwmon: (scpi) skip unsupported sensors properly

2015-11-16 Thread Punit Agrawal
mon: Support thermal zones registration for SCP >> temperature sensors") >> Fixes: ea98b29a05e9 ("hwmon: Support sensors exported via ARM SCP interface") >> Cc: Guenter Roeck <li...@roeck-us.net> >> Reviewed-by: Punit Agrawal <punit.agra...@arm.com>

[PATCH v4 1/3] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-11-16 Thread Punit Agrawal
in the above formula to calculate the dynamic power in mW. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Cc: Rob Herring <robh...@kernel.org> Cc: Mark Rutland <mark.rutl...@arm.com> --- Documentation/devicetree/bindings/arm/cpus.txt | 17 + 1 file chan

Re: [v2] hwmon: (scpi) skip unsupported sensors properly

2015-11-16 Thread Punit Agrawal
mal zones registration for SCP >> temperature sensors") >> Fixes: ea98b29a05e9 ("hwmon: Support sensors exported via ARM SCP interface") >> Cc: Guenter Roeck <li...@roeck-us.net> >> Reviewed-by: Punit Agrawal <punit.agra...@arm.com> >> Signe

[PATCH v4 3/3] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-11-16 Thread Punit Agrawal
allocator governor. A cooling device will be created per individual frequency domain and can be bound to thermal zones via the thermal DT bindings. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Acked-by: Viresh Kumar <viresh.ku...@linaro.org> Cc: Sudeep Holla <sudeep.ho...@arm.c

[PATCH v4 2/3] cpufreq-dt: Supply power coefficient when registering cooling devices

2015-11-16 Thread Punit Agrawal
Support registering cooling devices with dynamic power coefficient where provided by the device tree. This allows OF registered cooling devices driver to be used with the power_allocator thermal governor. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Acked-by: Viresh Kumar <

[PATCH v4 0/3] Dynamic power model from device tree

2015-11-16 Thread Punit Agrawal
nel=144709020014884=2 Punit Agrawal (3): devicetree: bindings: Add optional dynamic-power-coefficient property cpufreq-dt: Supply power coefficient when registering cooling devices cpufreq: arm_big_little: Add support to register a cpufreq cooling device Documentation/devicetree/bindings/

Re: [PATCH v4 3/3] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-11-17 Thread Punit Agrawal
Viresh Kumar <viresh.ku...@linaro.org> writes: > On Tue, Nov 17, 2015 at 1:00 AM, Punit Agrawal <punit.agra...@arm.com> wrote: >> Register passive cooling devices when initialising cpufreq on >> big.LITTLE systems. If the device tree provides a dynamic power

[PATCH v5 1/3] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-11-17 Thread Punit Agrawal
in the above formula to calculate the dynamic power in mW. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Acked-by: Rob Herring <r...@kernel.org> Reviewed-by: Viresh Kumar <viresh.ku...@linaro.org> Cc: Mark Rutland <mark.rutl...@arm.com> --- Documentation/devicetr

Re: [PATCH] scpi: hide get_scpi_ops in module from built-in code

2015-11-17 Thread Punit Agrawal
; Signed-off-by: Arnd Bergmann <a...@arndb.de> Makes sense. Thanks, Arnd! Acked-by: Punit Agrawal <punit.agra...@arm.com> > > diff --git a/include/linux/scpi_protocol.h b/include/linux/scpi_protocol.h > index 80af3cd35ae4..72ce932c69b2 100644 > --- a/include/linux/s

[PATCH v5 2/3] cpufreq-dt: Supply power coefficient when registering cooling devices

2015-11-17 Thread Punit Agrawal
Support registering cooling devices with dynamic power coefficient where provided by the device tree. This allows OF registered cooling devices driver to be used with the power_allocator thermal governor. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Acked-by: Viresh Kumar <

[PATCH v5 0/3] Dynamic power model from device tree

2015-11-17 Thread Punit Agrawal
nfo/?l=linux-kernel=144709020014884=2 [3] http://marc.info/?l=linux-pm=144770224915315=2 Punit Agrawal (3): devicetree: bindings: Add optional dynamic-power-coefficient property cpufreq-dt: Supply power coefficient when registering cooling devices cpufreq: arm_big_little: Add support to re

[PATCH v5 3/3] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-11-17 Thread Punit Agrawal
allocator governor. A cooling device will be created per individual frequency domain and can be bound to thermal zones via the thermal DT bindings. Signed-off-by: Punit Agrawal <punit.agra...@arm.com> Cc: Viresh Kumar <viresh.ku...@linaro.org> Cc: Sudeep Holla <sudeep.ho...@arm.c

Re: [RFC PATCH 0/3] CFS idle injection

2015-11-09 Thread Punit Agrawal
Jacob Pan <jacob.jun@linux.intel.com> writes: > On Fri, 06 Nov 2015 16:50:15 +0000 > Punit Agrawal <punit.agra...@arm.com> wrote: > >> * idle injection once frequencies have been capped to the lowest >> feasible values (as suggested in the cover letter)

Re: [PATCH v3 0/2] thermal: mediatek: Add cpu power cooling model

2015-11-02 Thread Punit Agrawal
Viresh Kumar writes: > On 22-10-15, 20:02, Dawei Chien wrote: >> Use Intelligent Power Allocation (IPA) technical to add static/dynamic power >> model for binding CPU thermal zone. >> The power allocator governor allocates power budget to control CPU >> temperature. >>

  1   2   3   4   5   6   7   8   9   10   >