Re: [patch 2.6.21-rc5-git] make /proc/acpi/wakeup more useful

2007-04-06 Thread Zhang Rui
On Thu, 2007-04-05 at 03:58 -0700, David Brownell wrote: On Thursday 05 April 2007 12:59 am, Zhang Rui wrote: On Wed, 2007-04-04 at 08:41 +0800, David Brownell wrote: In that example, two devices don't actually exist (USB3, S139), one can't issue wakeup events (PCI0), and two seem

Re: [patch 2.6.21-rc5-git] make /proc/acpi/wakeup more useful

2007-04-08 Thread Zhang Rui
On Sat, 2007-04-07 at 13:08 -0700, David Brownell wrote: On Friday 06 April 2007 10:01 pm, Greg KH wrote: Are you _sure_ you have a 1-to-1 relationship here? No multiple devices pointing to the same acpi node? Or the other way around? If so, you are going to have to change the name to

Re: [GIT PATCH] ACPI patches for 2.6.21

2007-02-26 Thread Zhang Rui
On Thu, 2007-02-22 at 15:53 +, Pavel Machek wrote: Hi! the old /proc/acpi/ interfaces with cleaner interfaces in sysfs -- non-ACPI-specific generic ones whenever possible. This effort is not complete, but it has been in -mm for a long time and I believe that it is time to

Re: [patch 2.6.21-rc5-git] make /proc/acpi/wakeup more useful

2007-04-05 Thread Zhang Rui
On Wed, 2007-04-04 at 08:41 +0800, David Brownell wrote: This updates /proc/acpi/wakeup to be more informative, primarily by showing the sysfs node associated with each wakeup-enabled device. Example: Device S-state Status Sysfs node PCI0 S4 disabled

Re: [PATCH] ACPI: Add sysfs interface for acpi device wakeup

2008-01-11 Thread Zhang Rui
On Thu, 2008-01-10 at 09:43 +0200, Maxim Levitsky wrote: On Thursday, 10 January 2008 00:21:46 Yi Yang wrote: Subject: ACPI: convert procfs to sysfs for /proc/acpi/wakeup From: Yi Yang [EMAIL PROTECTED] /proc/acpi/wakeup is deprecated but it has to exist because we haven't a sysfs

Re: video breaks asus-laptop display switching

2007-12-21 Thread Zhang Rui
On Sat, 2007-12-22 at 06:36 +0800, Andrei Gaponenko wrote: Hi, With 2.6.23 or newer (including 2.6.24-rc6) kernels, writing to the /sys/devices/platform/asus-laptop/display file does not do anything: Cold boot to single user, then connect an external monitor # cat

RE: [PATCH] thermal: solve compilation errors in rcar_thermal

2012-10-31 Thread Zhang, Rui
Sorry, I can not see the original post of this patch. Can you resend it so that I can apply it? -Original Message- From: kuninori morimoto [mailto:kuninori.morimoto...@gmail.com] On Behalf Of Kuninori Morimoto Sent: Wednesday, October 31, 2012 11:21 AM To: Andrew Morton; Zhang, Rui

RE: [PATCH] thermal: solve compilation errors in rcar_thermal

2012-10-31 Thread Zhang, Rui
Hi, Andrew, Can you take this patch? It fixes a real build error, and IMO, we should merge it ASAP. Thanks. -Original Message- From: kuninori morimoto [mailto:kuninori.morimoto...@gmail.com] On Behalf Of Kuninori Morimoto Sent: Wednesday, October 31, 2012 4:46 PM To: Zhang, Rui Cc

RE: [PATCH] Thermal: Fix bug on generic thermal framework.

2012-09-24 Thread Zhang Rui
On 一, 2012-09-24 at 02:08 -0600, R, Durgadoss wrote: Hi, Patch is fine, but I think you have to re-base on top of Rui's -next branch here: git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git Also, adding Rui to this mail, not sure whether he is in LKML/pm. Thanks, Durga

Re: [PATCH] Thermal: Fix bug on generic thermal framework.

2012-09-24 Thread Zhang Rui
On 二, 2012-09-25 at 10:12 +0900, jonghwa3@samsung.com wrote: On 2012년 09월 24일 17:57, Zhang Rui wrote: On 一, 2012-09-24 at 02:08 -0600, R, Durgadoss wrote: Hi, Patch is fine, but I think you have to re-base on top of Rui's -next branch here: git://git.kernel.org/pub/scm/linux

Re: inux-next: Tree for Sept 26 (not bootable on AMD64: thermal|acpi|drm/i915|pci related?)

2012-09-26 Thread Zhang Rui
CC Durga. On 三, 2012-09-26 at 19:42 +0200, Sedat Dilek wrote: On Wed, Sep 26, 2012 at 8:44 AM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi all, Changes since 201209025: The net-next tree lost a conflict but gained another against Linus' tree. The wireless-next tree gained a

Re: inux-next: Tree for Sept 26 (not bootable on AMD64: thermal|acpi|drm/i915|pci related?)

2012-09-27 Thread Zhang Rui
Hi, hugh, On 三, 2012-09-26 at 12:51 -0700, Hugh Dickins wrote: On Wed, 26 Sep 2012, Sedat Dilek wrote: on my Ubuntu/precise AMD64 today's Linux-Next runs into the following call-trace (machine freezes): Sep 26 19:22:58 fambox kernel: [ 11.124739] BUG: unable to handle kernel

RE: inux-next: Tree for Sept 26 (not bootable on AMD64: thermal|acpi|drm/i915|pci related?)

2012-09-27 Thread Zhang Rui
On 四, 2012-09-27 at 00:11 -0600, R, Durgadoss wrote: Hi Rui, -Original Message- From: Zhang, Rui Sent: Thursday, September 27, 2012 11:38 AM To: Hugh Dickins Cc: Sedat Dilek; Stephen Rothwell; Andrew Morton; Dan Carpenter; R, Durgadoss; linux-n...@vger.kernel.org; linux

[RFC PATCH 0/6] ACPI: ACPI 5.0 device enumeration proposal

2012-09-28 Thread Zhang Rui
Hi, all, I'm working on ACPI device enumeration support recently, and here is the proposal I made to enumerate devices via ACPI namespace. the main idea is that, for Serial Buses like I2C and SPI, we enumerate the controller as a platform device, and then enumerate the slaves via

[RFC PATCH 1/6] Introduce acpi_match_device_id().

2012-09-28 Thread Zhang Rui
From 72df5d1f51fb27a4ba7f70a3b07df759d32b8288 Mon Sep 17 00:00:00 2001 From: Zhang Rui rui.zh...@intel.com Date: Thu, 27 Sep 2012 15:11:55 +0800 Subject: [RFC PATCH 1/6] Introduce acpi_match_device_id(). This API is used to check if a device id string is compatible with an ACPI device, either PNP

[RFC PATCH 2/6] Introduce ACPI style match in platform_match

2012-09-28 Thread Zhang Rui
From 5d7ecd12c2994b8c5905d52718c2870c3b62746e Mon Sep 17 00:00:00 2001 From: Zhang Rui rui.zh...@intel.com Date: Fri, 28 Sep 2012 14:51:03 +0800 Subject: [RFC PATCH 2/6] Introduce ACPI style match in platform_match Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/base/platform.c |8

[RFC PATCH 3/6] ACPI: introduce acpi_get_generic_resources

2012-09-28 Thread Zhang Rui
From 9a851d177794129a89f720c7122cb39fd163126b Mon Sep 17 00:00:00 2001 From: Zhang Rui rui.zh...@intel.com Date: Fri, 28 Sep 2012 08:34:05 +0800 Subject: [RFC PATCH 3/6] ACPI: introduce acpi_get_generic_resources Introduce acpi_get_generic_resources() to convert ACPI style resources to struct

[RFC PATCH 4/6] Change i2c_register_board_info from __init to __devinit

2012-09-28 Thread Zhang Rui
From 34aa38e12c04544d89af2eae46de284dc8a03b8d Mon Sep 17 00:00:00 2001 From: Zhang Rui rui.zh...@intel.com Date: Thu, 27 Sep 2012 15:42:23 +0800 Subject: [RFC PATCH 4/6] Change i2c_register_board_info from __init to __devinit. ACPI 5 supports enumerating I2C adapter and its slaves via ACPI

[RFC PATCH 5/6] ACPI: Introduce ACPI I2C controller enumeration driver

2012-09-28 Thread Zhang Rui
From 6077a62f2865201ab6727ca7d628ee5e43aa57e1 Mon Sep 17 00:00:00 2001 From: Zhang Rui rui.zh...@intel.com Date: Fri, 24 Aug 2012 15:18:25 +0800 Subject: [RFC PATCH 5/6] ACPI: Introduce ACPI I2C controller enumeration driver This driver is able to 1) enumerate I2C controller via ACPI namespace

[RFC PATCH 6/6] Introduce INT33B1 I2C controller driver

2012-09-28 Thread Zhang Rui
From 817d814ecae91862f42a0447f455dae7f74cba27 Mon Sep 17 00:00:00 2001 From: Zhang Rui rui.zh...@intel.com Date: Fri, 24 Aug 2012 15:20:38 +0800 Subject: [RFC PATCH 6/6] Introduce INT33B1 I2C controller driver This is a dummy platform device driver to illustrate my idea about how a really I2C

RE: linux-next: build failure after merge of the thermal tree

2012-10-07 Thread Zhang, Rui
Hi, -Original Message- From: Stephen Rothwell [mailto:s...@canb.auug.org.au] Sent: Monday, October 08, 2012 8:02 AM To: Zhang, Rui Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Amit Daniel Kachhap; Wu, Fengguang; Andrew Morton Subject: linux-next: build failure

[GIT PULL] Thermal management ACPI update for v3.7-rc4

2012-11-03 Thread Zhang Rui
Hi Linus, Could you please pull from the git repository at git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git release to receive three thermal and acpi fixes for v3.7-rc4. thanks, rui The following changes since commit 1e207eb1c3f0e8b690401f02fe08e7b53903f010: Merge

Re: linux-next: manual merge of the thermal tree with Linus' tree

2012-11-04 Thread Zhang Rui
On Mon, 2012-11-05 at 11:46 +1100, Stephen Rothwell wrote: Hi Zhang, Today's linux-next merge of the thermal tree got a conflict in drivers/thermal/rcar_thermal.c between commit 608f62b996c6 (thermal: solve compilation errors in rcar_thermal) from Linus' tree and commit ebbf0f11e7b4

Re: linux-next: manual merge of the thermal tree with Linus' tree

2012-11-04 Thread Zhang Rui
Hi, Stephen, On Mon, 2012-11-05 at 11:46 +1100, Stephen Rothwell wrote: Hi Zhang, Today's linux-next merge of the thermal tree got a conflict in drivers/thermal/rcar_thermal.c between commit 608f62b996c6 (thermal: solve compilation errors in rcar_thermal) from Linus' tree and commit

Re: [PATCH] thermal: rcar_thermal: remove explicitly used devm_kfree/iounap()

2012-11-06 Thread Zhang Rui
On Tue, 2012-10-02 at 23:51 -0700, Kuninori Morimoto wrote: devm_kfree and devm_iounmap should not have to be explicitly used Signed-off-by: Kuninori Morimoto kuninori.morimoto...@renesas.com applied to thermal-next. thanks, rui --- This patch is based on Devendra's [PATCH] thermal:

Re: [PATCH] thermal: rcar: fixup compilation errors

2012-11-06 Thread Zhang Rui
On Tue, 2012-10-09 at 01:14 -0700, Kuninori Morimoto wrote: This patch fixup following error ${LINUX}/drivers/thermal/rcar_thermal.c: In function 'rcar_thermal_probe': ${LINUX}/drivers/thermal/rcar_thermal.c:214:9: warning: passing argument 3 \ of 'thermal_zone_device_register' makes

RE: [PATCH v4] Thermal: exynos: Add sysfs node supporting exynos's emulation mode.

2012-11-06 Thread Zhang Rui
On Thu, 2012-11-01 at 23:13 -0600, R, Durgadoss wrote: Hi Lee, -Original Message- From: Jonghwa Lee [mailto:jonghwa3@samsung.com] Sent: Friday, November 02, 2012 7:55 AM To: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org; Brown, Len; R, Durgadoss; Rafael J.

Re: [PATCH V3 1/5] Thermal: add indent for code alignment.

2012-11-06 Thread Zhang Rui
On Tue, 2012-10-30 at 17:48 +0100, hongbo.zhang wrote: From: hongbo.zhang hongbo.zh...@linaro.com The curly bracket should be aligned with corresponding if else statements. Signed-off-by: hongbo.zhang hongbo.zh...@linaro.com Reviewed-by: Viresh Kumar viresh.ku...@linaro.org applied to

Re: [PATCH V3 2/5] Thermal: fix bug of counting cpu frequencies.

2012-11-06 Thread Zhang Rui
On Tue, 2012-10-30 at 17:48 +0100, hongbo.zhang wrote: From: hongbo.zhang hongbo.zh...@linaro.com In the while loop for counting cpu frequencies, if table[i].frequency equals CPUFREQ_ENTRY_INVALID, index i won't be increased, so this leads to an endless loop, what's more the index i cannot

Re: [PATCH V3 3/5] Thermal: Remove the cooling_cpufreq_list.

2012-11-06 Thread Zhang Rui
On Tue, 2012-10-30 at 17:48 +0100, hongbo.zhang wrote: From: hongbo.zhang hongbo.zh...@linaro.com Problem of using this list is that the cpufreq_get_max_state callback will be called when register cooling device by thermal_cooling_device_register, but this list isn't ready at this moment.

Re: [PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-07 Thread Zhang Rui
On Thu, 2012-11-08 at 09:56 +0530, Amit Daniel Kachhap wrote: This modification adds 2 new thermal trend type THERMAL_TREND_RAISE_FULL and THERMAL_TREND_DROP_FULL. This thermal trend can be used to quickly jump to the upper or lower cooling level instead of incremental increase or decrease.

Re: [PATCH] ACPI video: Ignore errors after _DOD evaluation.

2012-10-23 Thread Zhang Rui
On 六, 2012-10-13 at 04:41 +0400, Igor Murzov wrote: There are systems where video module known to work fine regardless of broken _DOD and ignoring returned value here doesn't cause any issues later. This should fix brightness controls on some laptops. Bugzilla:

Re: [PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-08 Thread Zhang Rui
On Thu, 2012-11-08 at 11:56 +0530, Amit Kachhap wrote: On 8 November 2012 11:31, Zhang Rui rui.zh...@intel.com wrote: On Thu, 2012-11-08 at 09:56 +0530, Amit Daniel Kachhap wrote: This modification adds 2 new thermal trend type THERMAL_TREND_RAISE_FULL and THERMAL_TREND_DROP_FULL

Re: [PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-11 Thread Zhang Rui
On Fri, 2012-11-09 at 11:51 +0530, Amit Kachhap wrote: On 9 November 2012 09:21, Zhang Rui rui.zh...@intel.com wrote: On Thu, 2012-11-08 at 11:56 +0530, Amit Kachhap wrote: On 8 November 2012 11:31, Zhang Rui rui.zh...@intel.com wrote: On Thu, 2012-11-08 at 09:56 +0530, Amit Daniel Kachhap

Re: [PATCH V5 2/2] Thermal: Add ST-Ericsson DB8500 thermal properties and platform data.

2012-11-11 Thread Zhang Rui
On Fri, 2012-11-09 at 19:29 +0800, hongbo.zhang wrote: From: hongbo.zhang hongbo.zh...@linaro.com This patch adds device tree properties for ST-Ericsson DB8500 thermal driver, also adds the platform data to support the old fashion. Signed-off-by: hongbo.zhang hongbo.zh...@linaro.com

RE: [PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-11 Thread Zhang Rui
On Sun, 2012-11-11 at 22:55 -0700, R, Durgadoss wrote: Hi Amit/Rui, -Original Message- From: Amit Kachhap [mailto:amit.kach...@linaro.org] Sent: Friday, November 09, 2012 11:52 AM To: Zhang, Rui Cc: linux...@lists.linux-foundation.org; linux-samsung- s...@vger.kernel.org

[PATCH] Thermal: Add Linux/Thermal subsystem info in MAINTAINER file

2012-11-13 Thread Zhang Rui
sent to linux...@vger.kernel.org. Signed-off-by: Zhang Rui rui.zh...@intel.com --- MAINTAINERS |8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 59203e7..2d8512b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7210,6 +7210,14 @@ L: linux-xte

Re: [PATCH] [-mm] FS: file name must be unique in the same dir in procfs

2007-09-11 Thread Zhang Rui
On Mon, 2007-09-10 at 15:49 +0800, Andrew Morton wrote: On Mon, 20 Aug 2007 23:50:05 +0800 Zhang Rui [EMAIL PROTECTED] wrote: Hi, Oliver, Thanks for your comments, On Mon, 2007-08-20 at 18:45 +0800, Oliver Neukum wrote: Am Montag 20 August 2007 schrieb Zhang Rui: Files name must

RE: [PATCH] [28/2many] MAINTAINERS - ACPI VIDEO DRIVER

2007-08-13 Thread Zhang, Rui
Hi, Len, I can take charge of the ACPI video driver. Thanks, Rui -Original Message- From: Len Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 14, 2007 1:16 PM To: [EMAIL PROTECTED]; Zhang, Rui Cc: [EMAIL PROTECTED]; Yu, Luming; linux-kernel@vger.kernel.org; [EMAIL PROTECTED

[PATCH] [-mm] FS: file name must be unique in the same dir in procfs

2007-08-20 Thread Zhang Rui
Files name must be unique in the same directory. Bug is reported here: http://bugzilla.kernel.org/show_bug.cgi?id=8798 Signed-off-by: Zhang Rui [EMAIL PROTECTED] --- fs/proc/generic.c |8 1 file changed, 8 insertions(+) Index: linux-2.6.23-rc3/fs/proc/generic.c

Re: [PATCH] [-mm] FS: file name must be unique in the same dir in procfs

2007-08-20 Thread Zhang Rui
Hi, Oliver, Thanks for your comments, On Mon, 2007-08-20 at 18:45 +0800, Oliver Neukum wrote: Am Montag 20 August 2007 schrieb Zhang Rui: Files name must be unique in the same directory. Bug is reported here: http://bugzilla.kernel.org/show_bug.cgi?id=8798 Then I'd say fix the callers

RE: How to use the generic thermal sysfs.

2012-07-12 Thread Zhang Rui
On 四, 2012-07-12 at 04:54 -0600, R, Durgadoss wrote: Hi, -Original Message- From: Wei Ni [mailto:w...@nvidia.com] Sent: Thursday, July 12, 2012 3:53 PM To: Zhang, Rui; Brown, Len; a...@linux-foundation.org; kh...@linux-fr.org; j...@perches.com; R, Durgadoss Cc: linux-kernel

Re: How to use the generic thermal sysfs.

2012-07-13 Thread Zhang Rui
On 五, 2012-07-13 at 15:08 +0900, Alex Courbot wrote: On Fri 13 Jul 2012 02:54:26 PM JST, R, Durgadoss wrote: As of now, we are getting the definitions done through the platform layer data. Considerations for device tree .. yes.. but I do not have any sample implementation.. Maybe we can

RE: How to use the generic thermal sysfs.

2012-07-13 Thread Zhang Rui
On 五, 2012-07-13 at 15:30 +0800, Wei Ni wrote: On Fri, 2012-07-13 at 09:51 +0800, Zhang Rui wrote: On 四, 2012-07-12 at 04:54 -0600, R, Durgadoss wrote: Hi, -Original Message- From: Wei Ni [mailto:w...@nvidia.com] Sent: Thursday, July 12, 2012 3:53 PM To: Zhang

Re: [PATCHv3 1/3] thermal: introduce thermal_zone_get_zone_by_name helper function

2013-04-14 Thread Zhang Rui
On Fri, 2013-04-05 at 08:32 -0400, Eduardo Valentin wrote: This patch adds a helper function to get a reference of a thermal zone, based on the zone type name. It will perform a zone name lookup and return a reference to a thermal zone device that matches the name requested. In case the

Re: [PATCHv3 2/3] thermal: expose thermal_zone_get_temp API

2013-04-14 Thread Zhang Rui
On Fri, 2013-04-05 at 08:32 -0400, Eduardo Valentin wrote: This patch exports the thermal_zone_get_temp API so that driver writers can fetch temperature of thermal zones managed by other drivers. Acked-by: Durgadoss R durgados...@intel.com Signed-off-by: Eduardo Valentin

Re: [PATCHv3 3/3] staging: ti-soc-thermal: remove external heat while extrapolating hotspot

2013-04-14 Thread Zhang Rui
On Fri, 2013-04-05 at 08:32 -0400, Eduardo Valentin wrote: For boards that provide a PCB sensor close to SoC junction temperature, it is possible to remove the cumulative heat reported by the SoC temperature sensor. This patch changes the extrapolation computation to consider an external

Re: still in 3.9-rc6 - fan speed at 100% after suspend/resume regression

2013-04-15 Thread Zhang Rui
On Mon, 2013-04-15 at 09:30 -0400, Eduardo Valentin wrote: On 13-04-2013 19:46, Ville Syrjälä wrote: On Sun, Apr 14, 2013 at 12:44:00AM +0300, Ville Syrjälä wrote: On Sat, Apr 13, 2013 at 10:02:21AM -0600, Jake Edge wrote: Hi Zhang Rui, The problem reported in https://lkml.org/lkml/2012

Re: [PATCH RESEND 04/11] thermal: rename get_thermal_instance to thermal_instance_get

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: To follow the prefix names used by the thermal exported functions, this patch renames get_thermal_instance to thermal_instance_get. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com NACK. with the change of building all

Re: [PATCH RESEND 05/11] thermal: rename get_tz_trend to thermal_zone_trend_get

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: To follow the prefix names used by the thermal exported functions, this patch renames get_tz_trend to thermal_zone_trend_get. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com NACK. get_tz_trend will not be exported as API any

Re: [PATCH RESEND 06/11] thermal: use EXPORT_SYMBOL_GPL

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: Restrict usage of GPL modules. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com NACK for thermal_zone_trend_get/thermal_instance_get/thermal_cdev_update, for the reasons stated earlier. ACK for the others. thanks, rui ---

Re: [PATCH RESEND 11/11] thermal: update kernel-doc for thermal_zone_device_register

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: This patch updates the documentation for thermal_zone_device_register it is not enough. parameters including const struct thermal_zone_params *tzp, int passive_delay, and int polling_delay are missing in the documentation. thanks, rui

Re: [PATCH RESEND 07/11] thermal: update kernel-doc for thermal_zone_bind_cooling_device

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: This patch updates the documentation for thermal_zone_bind_cooling_device and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/thermal/thermal_sys.c | 16

Re: [PATCH RESEND 07/11] thermal: update kernel-doc for thermal_zone_bind_cooling_device

2013-04-17 Thread Zhang Rui
On Wed, 2013-04-17 at 23:26 +0800, Zhang Rui wrote: On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: This patch updates the documentation for thermal_zone_bind_cooling_device and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin

Re: [PATCH RESEND 08/11] thermal: update kernel-doc for thermal_zone_unbind_cooling_device

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: This patch updates the documentation for thermal_zone_unbind_cooling_device and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com I'm fine with this one. thanks, rui

Re: [PATCH RESEND 09/11] thermal: update kernel-doc for thermal_cooling_device_register

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: This patch updates the documentation for thermal_cooling_device_register and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com --- drivers/thermal/thermal_sys.c |9

Re: [PATCH RESEND 10/11] thermal: update kernel-doc for create_trip_attrs

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: This patch updates the documentation for create_trip_attrs and removes the warnings generated by scripts/kernel-doc -v. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com this one looks okay to me. thanks, rui ---

Re: [PATCH RESEND 01/11] thermal: use strlcpy instead of strcpy

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: For memory boundaries safety, use strlcpy instead of strcpy. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com ACK. thanks, rui --- drivers/thermal/thermal_sys.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH RESEND 03/11] thermal: rename notify_thermal_framework to thermal_notify_framework

2013-04-17 Thread Zhang Rui
On Mon, 2013-04-08 at 12:07 -0400, Eduardo Valentin wrote: To follow the prefix names used by the thermal exported functions, this patch renames notify_thermal_framework to thermal_notify_framework. Signed-off-by: Eduardo Valentin eduardo.valen...@ti.com Hmm, I'm okay with this one. thanks,

Re: [PATCH] thermal: exynos: fix handling of invalid frequency table entries

2013-04-09 Thread Zhang Rui
Hi, Andrew, can you please verify commit fc35b35cbe24ef021ea9acfba21e54da958df747 commit 57df8106932b57427df1eaaa13871857f75b1194 at http://git.kernel.org/cgit/linux/kernel/git/rzhang/linux.git/log/?h=thermal fixes the problem for you? thanks, rui On Tue, 2013-04-09 at 14:59 -0700, Andrew

Re: [PATCH] thermal: step_wise: set throttle target within thermal instance limits

2013-04-10 Thread Zhang Rui
On Tue, 2013-04-09 at 14:59 -0700, Andrew Bresticker wrote: When selecting a target cooling state in get_target_state(), make sure that the state is at least as high as the minimum when the temperature is rising and at least as low as the maximum when the temperature is falling. This is

Re: [PATCH] thermal: step_wise: set throttle target within thermal instance limits

2013-04-11 Thread Zhang Rui
On Wed, 2013-04-10 at 16:22 -0400, Eduardo Valentin wrote: On 10-04-2013 03:06, Zhang Rui wrote: On Tue, 2013-04-09 at 14:59 -0700, Andrew Bresticker wrote: When selecting a target cooling state in get_target_state(), make sure that the state is at least as high as the minimum when

Re: [PATCH 14/30] thermal/exynos: remove unnecessary header inclusions

2013-04-11 Thread Zhang Rui
a number of drivers that include those headers do not actually need them, so we can just remove the inclusions. Signed-off-by: Arnd Bergmann a...@arndb.de Cc: linux...@vger.kernel.org Cc: Zhang Rui rui.zh...@intel.com This patch looks good to me. You can add my: Acked-by: Eduardo

Re: [PATCH V2 1/3] Thermal: rename thermal_sys.c to thermal_core.c

2013-04-11 Thread Zhang Rui
On Thu, 2013-04-04 at 16:24 -0400, Eduardo Valentin wrote: On 29-03-2013 10:26, Zhang Rui wrote: this is the preparation work to build all the thermal core framework source file, like governors, cpu cooling, etc, into one module. No functional change in this patch. Signed-off

Re: [PATCH] Thermal: Don't resolve THERMAL_NO_LIMIT to max_state.

2013-04-11 Thread Zhang Rui
On Tue, 2013-03-26 at 21:29 +0800, Yuxuan Shui wrote: max_state may change at runtime, for example, when loading/unloading cpufreq policy. this seems to be a problem that we have not covered yet. when loading/unloading the cpufreq policy, the cpufreq_frequency_table will be changed as well,

[PATCH V2 0/3] Thermal: build all thermal framework code into thermal_sys module

2013-03-29 Thread Zhang Rui
A regression introduced by thermal governor feature is reported in http://marc.info/?l=linux-kernelm=136085598604095w=2 And the root cause is that all the thermal governors can not be registered successfully when the thermal framework is built as a module. Thus I made this patch set to build all

[PATCH V2 3/3] Thermal: build cpu_cooling code into thermal_sys module

2013-03-29 Thread Zhang Rui
Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/thermal/Kconfig |2 +- drivers/thermal/Makefile|2 +- include/linux/cpu_cooling.h |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index a764f16

[PATCH V2 2/3] Thermal: build thermal governors into thermal_sys module

2013-03-29 Thread Zhang Rui
a problem that the generic thermal layer does not work when CONFIG_THERMAL=m and CONFIG_THERMAL_GOV_XXX=y. Signed-off-by: Zhang Rui rui.zh...@intel.com --- Documentation/thermal/sysfs-api.txt |8 - drivers/thermal/Makefile|6 ++-- drivers/thermal/fair_share.c| 15

[PATCH V2 1/3] Thermal: rename thermal_sys.c to thermal_core.c

2013-03-29 Thread Zhang Rui
this is the preparation work to build all the thermal core framework source file, like governors, cpu cooling, etc, into one module. No functional change in this patch. Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/thermal/Makefile |1 + drivers/thermal

Re: [PATCH 1/2] thermal: introduce thermal_zone_lookup_temperature helper function

2013-03-25 Thread Zhang Rui
On Fri, 2013-03-22 at 17:13 -0400, Eduardo Valentin wrote: This patch adds a helper function to get temperature of a thermal zone, based on the zone type name. It will perform a zone name lookup and return the last sensor temperature reading. In case the zone is not found or if the required

Re: [PATCH 2/2] staging: ti-soc-thermal: remove external heat while extrapolating hotspot

2013-03-25 Thread Zhang Rui
On Fri, 2013-03-22 at 17:13 -0400, Eduardo Valentin wrote: For boards that provide a PCB sensor close to SoC junction temperature, it is possible to remove the cumulative heat reported by the SoC temperature sensor. This patch changes the extrapolation computation to consider an external

RE: [PATCH 1/2] thermal: introduce thermal_zone_lookup_temperature helper function

2013-03-25 Thread Zhang Rui
On Mon, 2013-03-25 at 00:20 -0600, R, Durgadoss wrote: -Original Message- From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- ow...@vger.kernel.org] On Behalf Of Zhang Rui Sent: Monday, March 25, 2013 11:41 AM To: Eduardo Valentin Cc: linux...@vger.kernel.org; linux-kernel

Re: [PATCH V2] drivers: thermal: cpu_cooling: fix checkpatch warning

2013-03-25 Thread Zhang Rui
On Tue, 2013-03-12 at 11:47 +0100, Laurent Navet wrote: - WARNING: Avoid CamelCase: maskPtr Signed-off-by: Laurent Navet laurent.na...@gmail.com applied to thermal -next. thanks, rui --- drivers/thermal/cpu_cooling.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[RFC PATCH 0/5] Thermal: build all thermal framework code into thermal_sys module

2013-03-26 Thread Zhang Rui
A regression introduced by thermal governor feature is reported in http://marc.info/?l=linux-kernelm=136085598604095w=2 And the root cause is that all the thermal governors can not be registered successfully when the thermal framework is built as a module. Thus I made this patch set to build all

[RFC PATCH 2/5] Thermal: thermal framework registration failure case cleanup

2013-03-26 Thread Zhang Rui
Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/thermal/thermal_core.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 5b7863a..845ed6e 100644 --- a/drivers/thermal/thermal_core.c

[RFC PATCH 3/5] Thermal: build thermal governors into thermal_sys module

2013-03-26 Thread Zhang Rui
Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/thermal/Makefile |6 +++--- drivers/thermal/fair_share.c | 15 ++- drivers/thermal/step_wise.c| 16 ++-- drivers/thermal/thermal_core.c | 36 ++-- drivers/thermal

[RFC PATCH 5/5] Thermal: build cpu_cooling code into thermal_sys module

2013-03-26 Thread Zhang Rui
Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/thermal/Kconfig |2 +- drivers/thermal/Makefile|2 +- include/linux/cpu_cooling.h |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index a764f16

[RFC PATCH 4/5] Thermal: governor API cleanup

2013-03-26 Thread Zhang Rui
Signed-off-by: Zhang Rui rui.zh...@intel.com --- drivers/thermal/thermal_core.c |2 -- drivers/thermal/thermal_core.h |2 ++ include/linux/thermal.h|3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal

RE: [RFC PATCH 3/5] Thermal: build thermal governors into thermal_sys module

2013-03-26 Thread Zhang Rui
On Tue, 2013-03-26 at 10:53 -0600, R, Durgadoss wrote: Hi Rui, -Original Message- From: Zhang, Rui Sent: Tuesday, March 26, 2013 9:56 PM To: linux...@vger.kernel.org; linux-kernel@vger.kernel.org Cc: amit.dan...@samsung.com; R, Durgadoss; a...@lisas.de; Zhang, Rui Subject

Re: [PATCH] drivers: thermal: cpu_cooling: fix checkpatch warning

2013-03-11 Thread Zhang Rui
On Tue, 2013-02-26 at 14:42 +0100, Laurent Navet wrote: - WARNING: Avoid CamelCase: maskPtr Signed-off-by: Laurent Navet laurent.na...@gmail.com --- drivers/thermal/cpu_cooling.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/cpu_cooling.c

Re: [PATCH] kirkwood: fix coccicheck warnings

2013-03-11 Thread Zhang Rui
On Mon, 2013-03-11 at 09:35 +0200, Silviu-Mihai Popescu wrote: Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages so all explicit error messages

Re: [PATCH] kirkwood: fix coccicheck warnings

2013-03-11 Thread Zhang Rui
On Mon, 2013-03-11 at 18:03 +0100, Rafael J. Wysocki wrote: On Monday, March 11, 2013 10:55:00 PM Zhang Rui wrote: On Mon, 2013-03-11 at 09:35 +0200, Silviu-Mihai Popescu wrote: Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides

Re: [PATCH] acerhdf: Fix fan activation with new thermal governor

2013-03-05 Thread Zhang Rui
that were nicely discussed in this activity - So what do we want to have committed, and what do we not, the problem should have been fixed in 3.9-rc1 by commit b8bb6cb999858043489c1ddef08eed2127559169 Author: Zhang Rui rui.zh...@intel.com Date: Thu Nov 22 15:45:02 2012 +0800 step_wise: Unify

Re: [PATCH] acerhdf: Fix fan activation with new thermal governor

2013-03-05 Thread Zhang Rui
On Wed, 2013-03-06 at 08:00 +0100, Borislav Petkov wrote: On Wed, Mar 06, 2013 at 11:47:20AM +0800, Zhang Rui wrote: So this now does not have any of the Schmitt trigger equivalent (?) governor changes that were nicely discussed in this activity - So what do we want to have committed

Re: regression in linux 3.7 - fan speed at 100% after suspend/resume at 100%

2012-12-04 Thread Zhang Rui
ce119f83257aae29b84a5bfad0669e8348437b18 Author: Zhang Rui rui.zh...@intel.com Date: Wed Jun 27 14:13:04 2012 +0800 Thermal: Introduce simple arbitrator for setting device cooling state This fixes the problem that a cooling device may be referenced by by multiple trip points in multiple thermal

Re: [PATCH V2 2/2] thermal: exynos: Use the framework for temperature emulation support

2013-02-07 Thread Zhang Rui
On Mon, 2013-02-04 at 10:14 +0800, Zhang Rui wrote: On Sun, 2013-01-27 at 19:28 -0800, Amit Daniel Kachhap wrote: This removes the driver specific sysfs support of the temperature emulation and uses the newly added core thermal framework for thermal emulation. A platform specific handler

Re: [PATCHv3 0/8] Thermal Framework Enhancements

2013-02-07 Thread Zhang Rui
Hi, Durga, thanks for your continuous effort on this. comment in line. thanks, rui On Tue, 2013-02-05 at 16:16 +0530, Durgadoss R wrote: This patch set is a v3 of the previous versions submitted here: [v2]: http://lwn.net/Articles/531720/ [v1]: https://lkml.org/lkml/2012/12/18/108

Re: [PATCH 1/8] Thermal: Create sensor level APIs

2013-02-07 Thread Zhang Rui
On Tue, 2013-02-05 at 16:16 +0530, Durgadoss R wrote: This patch creates sensor level APIs, in the generic thermal framework. A Thermal sensor is a piece of hardware that can report temperature of the spot in which it is placed. A thermal sensor driver reads the temperature from this sensor

Re: [PATCH 2/8] Thermal: Create zone level APIs

2013-02-08 Thread Zhang Rui
On Tue, 2013-02-05 at 16:16 +0530, Durgadoss R wrote: This patch adds a new thermal_zone structure to thermal.h. Also, adds zone level APIs to the thermal framework. A thermal zone is a hot spot on the platform, which can have one or more sensors and cooling devices attached to it. These

Re: [PATCH 3/8] Thermal: Add APIs to bind cdev to new zone structure

2013-02-08 Thread Zhang Rui
On Tue, 2013-02-05 at 16:16 +0530, Durgadoss R wrote: This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 80

Re: [PATCH 4/8] Thermal: Add trip point sysfs nodes for sensor

2013-02-08 Thread Zhang Rui
On Tue, 2013-02-05 at 16:16 +0530, Durgadoss R wrote: This patch adds a trip point related sysfs nodes for each sensor under a zone in /sys/class/thermal/zoneX/. The nodes will be named, sensorX_trip_active, sensorX_trip_passive, sensorX_trip_hot, sensorX_trip_critical for active, passive,

Re: [PATCH 5/8] Thermal: Create Thermal map sysfs attributes for a zone

2013-02-08 Thread Zhang Rui
On Tue, 2013-02-05 at 16:16 +0530, Durgadoss R wrote: This patch creates a thermal map sysfs node under /sys/class/thermal/zoneX/. This contains entries named mapY_trip_type, mapY_sensor_name, mapY_cdev_name, mapY_trip_mask, mapY_weights. sorry I still not quite understand. does it look like?

Re: [PATCH 6/8] Thermal: Add Documentation to new APIs

2013-02-08 Thread Zhang Rui
On Tue, 2013-02-05 at 16:16 +0530, Durgadoss R wrote: This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/thermal/sysfs-api2.txt |

Re: [PATCHv3 0/8] Thermal Framework Enhancements

2013-02-08 Thread Zhang Rui
On Tue, 2013-02-05 at 16:16 +0530, Durgadoss R wrote: This patch set is a v3 of the previous versions submitted here: [v2]: http://lwn.net/Articles/531720/ [v1]: https://lkml.org/lkml/2012/12/18/108 [RFC]:https://patchwork.kernel.org/patch/1758921/ This patch set is based on Rui's -next

RE: [PATCH 2/8] Thermal: Create zone level APIs

2013-02-08 Thread Zhang Rui
On Fri, 2013-02-08 at 01:54 -0700, R, Durgadoss wrote: Hi Rui, -Original Message- From: Zhang, Rui Sent: Friday, February 08, 2013 1:42 PM To: R, Durgadoss Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; eduardo.valen...@ti.com; hongbo.zh...@linaro.org; w

RE: [PATCH 1/8] Thermal: Create sensor level APIs

2013-02-08 Thread Zhang Rui
On Fri, 2013-02-08 at 01:26 -0700, R, Durgadoss wrote: Hi Rui, -Original Message- From: Zhang, Rui Sent: Friday, February 08, 2013 1:24 PM To: R, Durgadoss Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; eduardo.valen...@ti.com; hongbo.zh...@linaro.org; w

RE: [PATCH 5/8] Thermal: Create Thermal map sysfs attributes for a zone

2013-02-08 Thread Zhang Rui
On Fri, 2013-02-08 at 02:08 -0700, R, Durgadoss wrote: Hi Rui, -Original Message- From: Zhang, Rui Sent: Friday, February 08, 2013 2:35 PM To: R, Durgadoss Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; eduardo.valen...@ti.com; hongbo.zh...@linaro.org; w

Re: [PATCH V2 2/2] thermal: exynos: Use the framework for temperature emulation support

2013-02-03 Thread Zhang Rui
On Sun, 2013-01-27 at 19:28 -0800, Amit Daniel Kachhap wrote: This removes the driver specific sysfs support of the temperature emulation and uses the newly added core thermal framework for thermal emulation. A platform specific handler is added to support this. Signed-off-by: Amit Daniel

Re: [PATCH V3 1/2] thermal: sysfs: Add a new sysfs node emul_temp for thermal emulation

2013-02-03 Thread Zhang Rui
On Sun, 2013-02-03 at 16:30 -0800, Amit Daniel Kachhap wrote: This patch adds support to set the emulated temperature method in thermal zone (sensor). After setting this feature thermal zone may report this temperature and not the actual temperature. The emulation implementation may be based

Re: [Intel-gfx] [RFC PATCH 3/3] i915: ignore lid open event when resuming

2013-02-03 Thread Zhang Rui
On Tue, 2013-01-29 at 11:10 +0100, Daniel Vetter wrote: On Mon, Jan 28, 2013 at 06:06:38PM +0800, Zhang Rui wrote: On Mon, 2013-01-28 at 09:31 +0100, Daniel Vetter wrote: On Mon, Jan 28, 2013 at 3:36 AM, Zhang Rui rui.zh...@intel.com wrote: Given that this essentially requires users

  1   2   3   4   5   6   7   8   9   10   >