Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Tue, 2017-12-19 at 16:31 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 04:23:07PM +0100, Peter Zijlstra wrote: > > > > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > > > > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote:

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > Hi, can you see if this makes you Surface boot? > No, it does not boot. > I tested it on my IVB by making has_legacy_pic() return unconditional > true. > > [0.024000] tsc: Unable to calibrate against PIT > [0.025000] tsc: using

[GIT PULL] Thermal management updates for v4.15-rc1

2017-11-16 Thread Zhang Rui
annon Lake support Tony Lindgren (1):   thermal: ti-soc-thermal: Fix ti_thermal_unregister_cpu_cooling NULL pointer on unload Zhang Rui (2):   Merge branch 'imx-nvmem' into thermal-soc   Merge branches 'thermal-core', 'thermal-tool', 'thermal-intel' and 'thermal-soc' into next  .../

Re: Linux 4.15-rc2: Regression in resume from ACPI S3

2017-12-11 Thread Zhang Rui
y ca37e57bbe0c ("x86/entry/64: Add missing irqflags tracing to native_load_gs_index()"). > I'm also not sure > just how many of those machines are 32-bit at all.. for this, I suppose it can be reproduced if we use 32-bit kernel and rootfs, right? Then it's easier to enable this in 0D

Re: [PATCH 2/3] thermal: int340x: processor_thermal: Add Coffee Lake support

2017-10-31 Thread Zhang Rui
On Thu, 2017-10-19 at 14:51 -0700, Srinivas Pandruvada wrote: > Add new PCI id for Coffee lake processor thermal device. > > Signed-off-by: Srinivas Pandruvada om> > --- >  drivers/thermal/int340x_thermal/processor_thermal_device.c | 1 + >  1 file changed, 1

Re: [GIT PULL] Thermal SoC management updates for v4.15-rc1 #1

2017-10-31 Thread Zhang Rui
On Mon, 2017-10-30 at 07:30 -0700, Eduardo Valentin wrote: > Hello Rui, > > Please pull the changes for thermal-soc for the coming v4.15-rc1. > Changelog: > - New drivers: Rockchip RV1108 and Broadcom AVS tmon. > - Major rework on HISI driver plus additional support of hisi3660. > - Several fixes

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-20 Thread Zhang Rui
On Tue, 2017-12-19 at 18:23 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 05:01:55PM +0100, Peter Zijlstra wrote: > > > > On Tue, Dec 19, 2017 at 11:42:41PM +0800, Zhang Rui wrote: > > > > > > On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: >

[GIT PULL] Thermal management updates for v4.17-rc5

2018-05-12 Thread Zhang Rui
Hans de Goede (1):   thermal: int3403_thermal: Fix NULL pointer deref on module load / probe Marek Szyprowski (2):   thermal: exynos: Reading temperature makes sense only when TMU is turned on   thermal: exynos: Propagate error value from tmu_read() Zhang

Re: linux-next: Signed-off-by missing for commits in the thermal tree

2018-05-10 Thread Zhang Rui
On 三, 2018-05-09 at 19:10 -0700, Eduardo Valentin wrote: > Hey Rui, > > On Wed, May 09, 2018 at 09:43:41PM +1000, Stephen Rothwell wrote: > > > > Hi Zhang, > > > > Commits > > > >   a2ace598c00a ("thermal: exynos: Reading temperature makes sense > > only when TMU is turned on") > >  

[GIT PULL] Thermal management updates for v4.18-rc1 #1

2018-06-12 Thread Zhang Rui
Pawnikar (1):   thermal: int340x: processor_thermal: Add GeminiLake support Viresh Kumar (2):   thermal: Shorten name of sysfs callbacks   thermal: Use DEVICE_ATTR_{RO|RW|WO}() variants Zhang Rui (1):   Merge branches 'thermal-core' and 'thermal-intel' into next  .../thermal

[GIT PULL] Thermal management updates for v4.18-rc1 #2

2018-06-12 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc- thermal.git linus to receive the latest Thermal SoC management updates for v4.18-rc1 with top-most commit 6d7c70d1cd6526dc79e3d3b3faae1c40c1681168:   thermal: qcom: tsens: Allow number of sensors to

Re: [PATCH] MAINTAINERS: thermal: Remove Eduardo's git tree

2017-10-26 Thread Zhang Rui
CC Eduardo. On Thu, 2017-10-26 at 19:06 +0200, Daniel Lezcano wrote: > On 26/10/2017 18:59, Florian Fainelli wrote: > > > > On 09/24/2017 02:18 PM, Florian Fainelli wrote: > > > > > > Eduardo's git tree at: > > > git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc- > > >

Re: [RFC] intel-lpss: remove .prepare() callback

2018-01-26 Thread Zhang Rui
Hi, Andy, On Thu, 2018-01-25 at 14:28 +0200, Andy Shevchenko wrote: > On Thu, 2018-01-25 at 16:12 +0800, Zhang Rui wrote: > > > > The .prepare() callback of intel-lpss driver does nothing but wakes > > up > > its > > children. I don't know if there

[RFC] intel-lpss: remove .prepare() callback

2018-01-25 Thread Zhang Rui
problem caused by this patch, and it indeed reduces the suspend time a lot. Signed-off-by: Zhang Rui <rui.zh...@intel.com> --- drivers/mfd/intel-lpss.c | 11 --- drivers/mfd/intel-lpss.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd

[GIT PULL] Thermal management updates for v4.16-rc1

2018-02-06 Thread Zhang Rui
alculation   thermal: imx: use consistent style to write temperatures   thermal: imx: update to new formula according to NXP AN5215 Yi Zeng (1):   thermal: power_allocator: fix one race condition issue for thermal_instances list Zhang Rui (2):   Merge branch 'linus' of git://git.

Re: [PATCH 1/2] thermal: mtk: Cleanup unused defines

2017-12-21 Thread Zhang Rui
On Thu, 2017-12-21 at 11:01 +0100, Matthias Brugger wrote: > > On 12/01/2017 11:43 AM, Matthias Brugger wrote: > > > > The mtk_thermal has some defiens which are never used within the > > driver. > > This patch delets them. > > > > Signed-off-by: Matthias Brugger > > --- >

Re: [PATCH 20/45] drivers: thermal: remove duplicate includes

2017-12-26 Thread Zhang Rui
On Wed, 2017-12-06 at 22:10 +0530, Pravin Shedge wrote: > These duplicate includes have been found with > scripts/checkincludes.pl but > they have been removed manually to avoid removing false positives. > > Signed-off-by: Pravin Shedge applied. thanks, rui > ---

Re: [PATCH] thermal: power_allocator: fix one race condition issue for thermal_instances list

2017-12-26 Thread Zhang Rui
On Tue, 2017-12-26 at 19:22 +0800, Yi Zeng wrote: > When invoking allow_maximum_power and traverse tz->thermal_instances, > we should grab thermal_zone_device->lock to avoid race condition. For > example, during the system reboot, if the mali GPU device implements > device shutdown callback and

Re: [-next PATCH 2/4] treewide: Use DEVICE_ATTR_RW

2017-12-20 Thread Zhang Rui
rs/thermal/thermal_sysfs.c  |  9 For the thermal part, ACK-by: Zhang Rui <rui.zh...@intel.com> thanks, rui >  drivers/tty/serial/sh-sci.c  |  2 +- >  drivers/usb/host/xhci-dbgcap.c   |  2 +- >  drivers/usb/phy/phy-tahvo.c  |  2 +- >  drivers/video

Re: [-next PATCH 3/4] treewide: Use DEVICE_ATTR_RO

2017-12-20 Thread Zhang Rui
  |  2 +- >  drivers/scsi/hpsa.c  | 10 +- >  drivers/scsi/lpfc/lpfc_attr.c| 18 > -- >  drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c |  8 >  drivers/thermal/thermal_sysfs.c

Re: [-next PATCH 4/4] treewide: Use DEVICE_ATTR_WO

2017-12-20 Thread Zhang Rui
s/input/touchscreen/elants_i2c.c | 2 +- >  drivers/net/ethernet/ibm/ibmvnic.c | 2 +- >  drivers/net/wimax/i2400m/sysfs.c   | 3 +-- >  drivers/scsi/lpfc/lpfc_attr.c  | 3 +-- >  drivers/thermal/thermal_sysfs.c| 2 +- For the thermal part, Acked-by: Zhang Rui <rui.

Re: [PATCH] MAINTAINERS: Add myself as designated reviewer for thermal

2018-07-27 Thread Zhang Rui
00644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -14119,6 +14119,7 @@ F: drivers/media/radio/radio- > > raremono.c > >  THERMAL > >  M: Zhang Rui > >  M: Eduardo Valentin > > +R: Daniel Lezcano > >  L: linux...@vger.kernel.org > >  T: git > > git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git > >  T: git > > git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc- > > thermal.git

Re: [PATCH] drivers: thermal: do not clobber cooling dev state from userspace

2018-07-26 Thread Zhang Rui
On 一, 2018-05-07 at 11:55 -0600, Lina Iyer wrote: > From: Ram Chandrasekar > > Let userspace be another voter for cooling device state instead of > the > overriding authority. It is possible that the thermal governor may > find > a higher cooling state desirable than what is recommended by the >

Re: [PATCH] drivers: thermal: step_wise: add support for hysteresis

2018-07-26 Thread Zhang Rui
Hi, Lina, On 一, 2018-05-07 at 11:54 -0600, Lina Iyer wrote: > From: Ram Chandrasekar > > From: Ram Chandrasekar > > Step wise governor increases the mitigation level when the > temperature > goes above a threshold and will decrease the mitigation when the > temperature falls below the

Re: [PATCH 0/2] dt: thermal: Fix broken cooling-maps

2018-07-31 Thread Zhang Rui
On 二, 2018-07-31 at 10:21 +0530, Viresh Kumar wrote: > On 05-07-18, 10:39, Viresh Kumar wrote: > > > > Hi, > > > > This is an attempt to fix the broken or partially defined DT > > bindings > > for cooling-maps. We should list every device that participates in > > cooling down at a certain trip

Re: [PATCH 0/2] dt: thermal: Fix broken cooling-maps

2018-08-06 Thread Zhang Rui
On 五, 2018-08-03 at 14:10 +0530, Viresh Kumar wrote: > On 31-07-18, 14:00, Zhang Rui wrote: > > > > I suppose this patch should go via Eduardo' tree. > > Eduardo, can you please take a look at this patch set? > Zhang, > > Since Eduardo isn't replying, will it be po

Re: [PATCH V6 2/2] thermal: imx: add i.MX7 thermal sensor support

2018-03-13 Thread Zhang Rui
yeah, will review it and get back to you later. On 二, 2018-03-13 at 06:13 +, Anson Huang wrote: > Ping... > > @rui.zh...@intel.com, can you help review this patch? > > Anson Huang > Best Regards! > > > > > > -Original Message- > > From: linux-arm-kernel

Re: [PATCH V4] thermal: Add cooling device's statistics in sysfs

2018-03-13 Thread Zhang Rui
Hi, Viresh, I will queue it for 4.17, with just one minor fix below. On 二, 2018-01-16 at 15:22 +0530, Viresh Kumar wrote: > This extends the sysfs interface for thermal cooling devices and > exposes > some pretty useful statistics. These statistics have proven to be > quite > useful specially

Re: [PATCH V4] thermal: Add cooling device's statistics in sysfs

2018-03-14 Thread Zhang Rui
On 二, 2018-03-13 at 15:02 +0800, Zhang Rui wrote: > Hi, Viresh, > > I will queue it for 4.17, with just one minor fix below. > I got the following warning from checkpatch.pl --- WARNING: please write a paragraph that describes the config symbol fully #147: FILE: dri

Re: int3403_driver_init needs over 330 ms to finish

2018-03-14 Thread Zhang Rui
On 二, 2018-03-13 at 20:39 +0100, Paul Menzel wrote: > Dear Linux folks, > > > Booting the Dell XPS 13 9370 with Linux 4.16-rc4+ and > `initcall_debug`,  > shows it is shown that int3403_driver_init needs over 330 ms to run. > >  [2.524839] initcall int3403_driver_init+0x0/0x1000  >

[GIT PULL] Thermal management updates for v4.17-rc1

2018-04-11 Thread Zhang Rui
s   thermal: Add cooling device's statistics in sysfs Zhang Rui (2):   Merge branch 'linus' of git://git.kernel.org/.../evalenti/linux- soc-thermal into thermal-soc   Merge branches 'thermal-core' and 'thermal-soc' into next  .../devicetree/bindings/thermal/exynos-thermal.txt |  2

Re: [GIT PULL] Thermal management updates for v4.17-rc1

2018-04-12 Thread Zhang Rui
Hi, Eduardo, On 四, 2018-04-12 at 21:08 -0700, Eduardo Valentin wrote: > Hello, > > On Thu, Apr 12, 2018 at 09:55:19AM -0700, Linus Torvalds wrote: > > > > On Wed, Apr 11, 2018 at 10:08 PM, Zhang Rui <rui.zh...@intel.com> > > wrote: > > > > &

Re: [GIT PULL] Thermal management updates for v4.17-rc1

2018-04-12 Thread Zhang Rui
On 四, 2018-04-12 at 21:08 -0700, Eduardo Valentin wrote: > Hello, > > On Thu, Apr 12, 2018 at 09:55:19AM -0700, Linus Torvalds wrote: > > > > On Wed, Apr 11, 2018 at 10:08 PM, Zhang Rui <rui.zh...@intel.com> > > wrote: > > > > > > > > &g

[GIT PULL V2] Thermal management updates for v4.17-rc1

2018-04-13 Thread Zhang Rui
device's statistics in sysfs Zhang Rui (1):   Merge branches 'thermal-core' and 'thermal-soc' into next  Documentation/thermal/sysfs-api.txt |  31 +  drivers/thermal/Kconfig |   7 ++  drivers/thermal/imx_thermal.c   |   6 +-  drivers/thermal/thermal_core.c  |   3 +-  drivers

Re: [GIT PULL] Thermal management updates for v4.17-rc1

2018-04-11 Thread Zhang Rui
Hi, Linus, On 三, 2018-04-11 at 17:01 -0700, Linus Torvalds wrote: > On Wed, Apr 11, 2018 at 1:41 AM, Zhang Rui <rui.zh...@intel.com> > wrote: > > > > > > Please pull from > >   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git > > next >

Re: [GIT PULL V3] Thermal SoC management updates for v4.17-rc1

2018-04-18 Thread Zhang Rui
On 三, 2018-04-18 at 07:10 -0700, Eduardo Valentin wrote: > Hello, > > On Wed, Apr 18, 2018 at 03:51:29PM +0800, Zhang Rui wrote: > > > > Hi, Eduardo, > > > > On 六, 2018-04-14 at 11:30 -0700, Eduardo Valentin wrote: > > > > > > Hello Linus, >

Re: [GIT PULL V3] Thermal SoC management updates for v4.17-rc1

2018-04-18 Thread Zhang Rui
Hi, Eduardo, On 六, 2018-04-14 at 11:30 -0700, Eduardo Valentin wrote: > Hello Linus, > > Please find thermal-soc changes for v4.17-rc1. > Rui asked me to send the pull request directly to you > as we are close to the end of the merge window. > Essentially this pull removes the series that caused

Re: [GIT PULL] Thermal management updates for v4.17-rc2

2018-04-24 Thread Zhang Rui
Hi, Eduardo, On 五, 2018-04-20 at 09:18 -0700, Eduardo Valentin wrote: > Hello Linus, > > Here are a couple of fixes on thermal subsystem. > Please consider pulling from > >   git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc- > thermal fixes > > to receive Thermal Management

RE: linux-next: Tree for Mar 22 (thermal)

2018-03-26 Thread Zhang, Rui
Linux Kernel Mailing List ker...@vger.kernel.org>; Linux PM list <linux...@vger.kernel.org>; Zhang, > Rui <rui.zh...@intel.com> > Subject: Re: linux-next: Tree for Mar 22 (thermal) > Importance: High > > Rui, > > On Thu, Mar 22, 2018 at 10:36:38AM -0700, Rand

Re: [PATCH] time: export nsec_to_clock_t

2018-03-29 Thread Zhang Rui
On 三, 2018-03-28 at 16:11 +0200, Arnd Bergmann wrote: > nsec_to_clock_t was traditionally used only in the core kernel, now > we > have a sysfs file that needs it from a loadable module, causing a > link-time error: > > ERROR: "nsec_to_clock_t" [drivers/thermal/thermal_sys.ko] undefined! > >

Re: [PATCH 10/10] dt-bindings: thermal: Remove "cooling-{min|max}-level" properties

2018-03-20 Thread Zhang Rui
On 一, 2018-03-12 at 10:08 +0530, Viresh Kumar wrote: > On 09-02-18, 14:28, Viresh Kumar wrote: > > > > The "cooling-min-level" and "cooling-max-level" properties are not > > parsed by any part of kernel currently and the max cooling state of > > a > > CPU cooling device is found by referring to

Re: [PATCH V4] thermal: Add cooling device's statistics in sysfs

2018-03-19 Thread Zhang Rui
On 二, 2018-03-20 at 09:38 +0800, Viresh Kumar wrote: > On 14-03-18, 13:44, Viresh Kumar wrote: > > > > I got those warnings as well, and I quietly ignored them :) > > > > I ignored the renaming part for the sake of consistency. The other > > existing > > routines for similar purpose are named

Re: [RESEND PATCH v3 1/2] acpi: thermal: initialize tz_enabled to 1

2018-02-27 Thread Zhang Rui
but this is not true after checking some of the driver code. To apply patch 2/2, extra effort, which checks and fixes all the thermal drivers one by one, is needed. It would be nice if someone can do this, or else I will work on this, but some time later. thanks, rui > > > &g

Re: 4.18: early boot crash in thermal_cooling_device_destroy_sysfs

2018-10-30 Thread Zhang Rui
Hi, Randy, On 五, 2018-10-26 at 20:35 -0700, Randy Dunlap wrote: > On 10/26/18 2:14 AM, Rafael J. Wysocki wrote: > > > > On Monday, October 22, 2018 8:37:25 PM CEST Randy Dunlap wrote: > > > > > > > > > On 8/16/18 2:33 PM, Randy Dunlap wrote: > > > > > > > > Hi, > > > > > > > > Sorry for the

[GIT PULL] Thermal management updates for v4.20-rc1

2018-10-30 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next to receive the latest Thermal management updates for v4.20-rc1 with top-most commit c2b59d279dbbac750958f6a1bc4841e431d934e3:   thermal: core: using power_efficient_wq for thermal worker (2018-10-

Re: [PATCH v2 01/17] thermal: add thermal_zone_set_mode() helper

2018-11-06 Thread Zhang Rui
On 三, 2018-10-17 at 17:52 +0200, Bartlomiej Zolnierkiewicz wrote: > In order to remove the code duplication and prepare for further > changes: > > * Add thermal_zone_set_mode() helper. Then update core code and >   drivers to use it. > > There should be no functional changes caused by this

Re: [PATCH v2 00/17] thermal: enable+check sensor after its setup is finished

2018-11-05 Thread Zhang Rui
Hi, Bartlomiej, On 一, 2018-11-05 at 17:35 +0100, Bartlomiej Zolnierkiewicz wrote: > On 11/05/2018 04:04 AM, Zhang Rui wrote: > > > > Hi, Bartlomiej, > Hi Rui, > > > > > Interesting, I'm about to bring this issue to Linux Plumber > > Conference >

Re: [PATCH] ACPI / LPSS: Ensure LPIOEP is always set on resume

2018-09-02 Thread Zhang Rui
find out why this could happen, but if it is true, please check if the below patch helps >From 27fda1ab0d800966b0ec1c444fe356812bd2f04e Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Mon, 3 Sep 2018 10:00:07 +0800 Subject: [PATCH] ACPI / LPSS: Force lpss quirks on boot Commit 12864ff8545f ("A

[PATCH] ACPI / LPSS: Force lpss quirks on boot

2018-09-04 Thread Zhang Rui
On 一, 2018-09-03 at 10:38 +0800, Zhang Rui wrote: > Hi, William, > > On 六, 2018-09-01 at 12:59 -0500, William Lieurance wrote: > > > > For some number of systems with lpss_quirks enabled, on boot the > > system > > goes through an acpi_lpss_resume() without a co

Re: [PATCH v3 1/2] drivers: thermal: Move various drivers for intel platforms into a subdir

2018-12-05 Thread Zhang Rui
On 三, 2018-11-28 at 00:28 +0530, Amit Kucheria wrote: > This cleans up the directory a bit, now that we have several other > platforms using platform-specific sub-directories. Compile-tested > with > ARCH=x86 defconfig and the drivers explicitly enabled with > menuconfig. > > Signed-off-by: Amit

Re: [PATCH 1/2] thermal/int340x_thermal: Add additional UUIDs

2018-12-03 Thread Zhang Rui
> Signed-off-by: Matthew Garrett > Cc: Zhang Rui > Cc: Nisha Aram > --- >  drivers/thermal/int340x_thermal/int3400_thermal.c | 14 > ++ >  1 file changed, 14 insertions(+) > > diff --git a/drivers/thermal/int340x_thermal/int3400_thermal.c > b/driver

Re: [PATCH v4 0/2] driver: thermal: Move some drivers into subdirs

2018-12-07 Thread Zhang Rui
applied. But please do remember to send the patches to linux-pm mailing list next time so that I can catch them via patchwork. thanks, rui On 五, 2018-12-07 at 12:25 +0530, Amit Kucheria wrote: > (Apologies for the build failure. My scripts to enable these configs > and > build-test them failed.

Re: [PATCH v2 0/2] driver: thermal: Move some drivers into subdirs

2018-11-25 Thread Zhang Rui
On 五, 2018-11-23 at 00:17 +0530, Amit Kucheria wrote: > On Fri, Oct 26, 2018 at 2:21 PM Amit Kucheria rg> wrote: > > > > > > Hi Rui, > > > > On Thu, Oct 4, 2018 at 1:22 PM Amit Kucheria > org> wrote: > > > > > > > > > Move the various drivers for Intel platforms into their own > > > subdir.

Re: [PATCH v3] thermal: qoriq: add multiple sensors support

2018-11-22 Thread Zhang Rui
On 三, 2018-11-21 at 09:43 +0100, Daniel Lezcano wrote: > On 21/11/2018 02:34, Andy Tang wrote: > > > > Hi all, > > > > Do you have any comments on this patch? > > > > I found for our thermal driver(qoriq_thermal.c) there are different > > between the following two git trees: > >

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

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 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 wa

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

Re: Documentation - How to debug ACPI Problems

2007-06-07 Thread Zhang Rui
On Wed, 2007-06-06 at 16:26 +0200, Thomas Renninger wrote: > > 3. Problem Analysis and Solving > --- > > 3.1. I see Warnings or Errors when disassembling or compiling my DSDT > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > Some might be

[PATCH]: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes

2007-06-07 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Well, first of all, I don't want to change so many files either. What I do: Adding a new parameter "struct bin_attribute *" in the .read/.write methods for the sysfs binary attributes. In fact, only the four lines change in fs/sysfs/bin.c a

Re: [PATCH]: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes

2007-06-08 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> > > Well, first of all, I don't want to change so many files either. > > > > What I do: > > Adding a new parameter "struct bin_attribute *" in the > > .read/.write methods for the sysfs binary attributes. > >

Re: [PATCH]: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes

2007-06-08 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> > > > > Well, first of all, I don't want to change so many files either. > > > > What I do: > > Adding a new parameter "struct bin_attribute *" in the > > .read/.write methods for the sysfs binary attributes

Re: [PATCH]: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes

2007-06-08 Thread Zhang Rui
From: Zhang Rui <[EMAIL PROTECTED]> Well, first of all, I don't want to change so many files either. What I do: Adding a new parameter "struct bin_attribute *" in the .read/.write methods for the sysfs binary attributes. In fact, only the four lines change in fs/sysfs/bin.c a

Re: [2.6 patch] the scheduled ACPI_PROCFS removal

2007-07-10 Thread Zhang Rui
emoval-schedule.txt > 2007-07-09 02:04:32.0 +0200 > @@ -190,14 +190,6 @@ > > --- > > -What: ACPI procfs interface > -When: July 2007 > -Why: After ACPI sysfs conversion, ACPI attributes will be > duplicated > - in sysfs

RE: [PATCH][ACPI][BUTTON] remove procfs-interface

2007-07-12 Thread Zhang, Rui
<[EMAIL PROTECTED]> Second, refering to /Documentation/feature-removal-schedule.txt >What: ACPI procfs interface >When: July 2007 >Why:After ACPI sysfs conversion, ACPI attributes will be duplicated >in sysfs and the ACPI procfs interface should be removed. >Who:

Re: [PATCH][ACPI][BUTTON] remove procfs-interface

2007-07-13 Thread Zhang Rui
On Fri, 2007-07-13 at 03:07 +0800, Satyam Sharma wrote: > On 7/12/07, Zhang, Rui <[EMAIL PROTECTED]> wrote: > > Well, the ACPI sysfs conversion is not finished yet > > [...] > > I'm not sure if the button sysfs I/F is already finished. > > We'd better make a doub

RE: [patch -mm] s390: struct bin_attribute changes

2007-06-28 Thread Zhang, Rui
Oops. Sorry. Thanks for fixing it. Best regards, Rui -Original Message- From: Heiko Carstens [mailto:[EMAIL PROTECTED] Sent: 2007年6月28日 21:39 To: Andrew Morton Cc: linux-kernel@vger.kernel.org; Martin Schwidefsky; Zhang, Rui; Greg KH; Brown, Len Subject: [patch -mm] s390: struct

[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/gen

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

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

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: > >

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: [RFC PATCH 1/4] thermal: hwmon: move hwmon support to single file

2013-08-15 Thread Zhang Rui
drivers/thermal/thermal_hwmon.h > @@ -0,0 +1,49 @@ > +/* > + * thermal_hwmon.h - Generic Thermal Management hwmon support. > + * > + * Code based on Intel thermal_core.c. Copyrights of the original code: > + * Copyright (C) 2008 Intel Corp > + * Copyright (C) 2008 Zhang Rui >

Re: [PATCH] thermal: exynos_tmu: fix wrong error check for mapped memory

2013-08-15 Thread Zhang Rui
On 三, 2013-08-07 at 14:01 +0530, Naveen Krishna Chatradhi wrote: > The error check is checking for a "base" mapped memory base > instead of "base_common". Fixing the same. > > Signed-off-by: Naveen Krishna Chatradhi applied. Thanks! BTW, can you rebase the other three exynos patches you

Re: [PATCH] thermal: new asus driver

2013-08-15 Thread Zhang Rui
On 二, 2013-08-06 at 17:48 -0500, Felipe Contreras wrote: > Simple driver to enable control of the fan in ASUS laptops. So far this > has only been tested in ASUS Zenbook Prime UX31A, but according to some > online reference [1], it should work in other models as well. > I'd rather prefer to do

Re: [PATCH] thermal: new asus driver

2013-08-15 Thread Zhang Rui
On 四, 2013-08-15 at 15:22 +0800, Zhang Rui wrote: > On 二, 2013-08-06 at 17:48 -0500, Felipe Contreras wrote: > > Simple driver to enable control of the fan in ASUS laptops. So far this > > has only been tested in ASUS Zenbook Prime UX31A, but according to some > > online ref

Re: [PATCH 3/5] drivers: thermal: make usage of CONFIG_THERMAL_HWMON optional

2013-08-27 Thread Zhang Rui
On 二, 2013-08-27 at 23:17 +0200, Rafael J. Wysocki wrote: > On Tuesday, August 27, 2013 02:26:41 PM Eduardo Valentin wrote: > > On 23-08-2013 19:08, Rafael J. Wysocki wrote: > > > On Friday, August 23, 2013 06:03:14 PM Eduardo Valentin wrote: > > >> When registering a new thermal_device, the

Re: [Panic - Bisected] f1a18a10566081abfce1649c2f3884b28fff7372 cases panic on boot

2013-07-23 Thread Zhang Rui
On Tue, 2013-07-23 at 21:56 -0300, Kevin Winchester wrote: > On 22 July 2013 23:11, Linus Torvalds wrote: > > On 22 July 2013 21:45, Kevin Winchester wrote: > >> I have found that the new CPU Package temperature thermal driver introduced > >> in this merge window causes my HP laptop to panic on

Re: [PATCH 1/1] thermal: MAINTAINERS: Add git tree path for SoC specific updates

2013-06-23 Thread Zhang Rui
> window and rc's (for fixes). > > Branch names would be: next and fixes. > > Cc: Zhang Rui > Cc: linux...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Eduardo Valentin Acked-by: Zhang Rui thanks, rui > --- > MAINTAINERS | 1 + > 1 fi

Re: [PATCH] thermal: Fix binding problem when there is thermal zone params

2013-11-05 Thread Zhang Rui
On Fri, 2013-10-18 at 18:03 +0800, Wei Ni wrote: > The thermal zone params can be used to set governor > to specific thermal governor for thermal zone device. > But if the thermal zone params has only governor name > without thermal bind params, then the thermal zone device > will not be binding

RE: [PATCH v9 3/7] thermal:boost: Automatic enable/disable of BOOST feature

2013-10-17 Thread Zhang, Rui
> -Original Message- > From: Lukasz Majewski [mailto:l.majew...@samsung.com] > Sent: Tuesday, October 15, 2013 11:43 PM > To: Zhang, Rui > Cc: Viresh Kumar; Rafael J. Wysocki; Eduardo Valentin; > cpuf...@vger.kernel.org; Linux PM list; Jonghwa Lee; Lukasz Majews

[GIT PULL] thermal management updates for v3.13-rc1

2013-11-12 Thread Zhang Rui
: cpu_cooling: fix return value check in cpufreq_cooling_register() Zhang Rui (1): Merge branches 'intel_powerclamp', 'tmon' and 'misc' of .git into next durgados...@intel.com (2): Thermal: Tidy up error handling in powerclamp_init Thermal: Check for validity before doing kfree

Re: [lm-sensors] [PATCHv9 02/20] thermal: introduce device tree parser

2013-11-17 Thread Zhang Rui
ion on the DT thermal zone, > > it was required to allow changing the thermal zone > > .get_temp callback. For this reason, this patch > > also removes the 'const' modifier from the .ops > > field of thermal zone devices. > > > > Cc: Zhang Rui > > Cc: linux..

Re: [PATCH] sysfs, acpi, tables: Set file size for each ACPI table

2013-11-20 Thread Zhang Rui
00 00 ...@ > 00A0: 00 00 00 00 00 00 00 00 > > Signed-off-by: HATAYAMA Daisuke Nice catch! Acked-by: Zhang Rui thanks, rui > --- > drivers/acpi/sysfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

RE: [PATCH 0/4] Convert ACPI fan driver to platform driver

2013-12-05 Thread Zhang, Rui
> -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Thursday, December 05, 2013 7:10 AM > To: Lu, Aaron > Cc: Zhang, Rui; linux-a...@vger.kernel.org; linux- > ker...@vger.kernel.org; Lan, Tianyu; Brown, Len; Matthew Garrett > Su

Re: Fans at full speed after resume

2013-05-14 Thread Zhang Rui
please On Tue, 2013-05-14 at 21:18 -0700, Sonny Rao wrote: > Hi, I've seen a regression in kernels since 3.7 on x86 devices where > the kernel turns the system fans on to max speed after resuming from > ram. Other people have noticed it as well, for example see >

Re: Fans at full speed after resume

2013-05-14 Thread Zhang Rui
On Wed, 2013-05-15 at 12:26 +0800, Zhang Rui wrote: > please > > On Tue, 2013-05-14 at 21:18 -0700, Sonny Rao wrote: > > Hi, I've seen a regression in kernels since 3.7 on x86 devices where > > the kernel turns the system fans on to max speed after resuming from > &

Re: ACPI fan driver: uninitialized variable when CONFIG_PM is not set

2013-05-15 Thread Zhang Rui
Hi, Michel, On Mon, 2013-04-29 at 05:32 -0700, Michel Lespinasse wrote: > In the following code: > > static int fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned > long > *state) > { > struct acpi_device *device = cdev->devdata; > int

Re: [RFC 26/42] drivers/thermal: don't check resource with devm_ioremap_resource

2013-05-16 Thread Zhang Rui
On Fri, 2013-05-10 at 10:17 +0200, Wolfram Sang wrote: > devm_ioremap_resource does sanity checks on the given resource. No need to > duplicate this in the driver. > > Signed-off-by: Wolfram Sang applied to thermal -next. thanks, rui > --- > drivers/thermal/dove_thermal.c | 11

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

2013-02-04 Thread Zhang Rui
On Mon, 2013-02-04 at 16:25 +0100, Daniel Vetter wrote: > On Mon, Feb 04, 2013 at 03:10:11PM +0800, Zhang Rui wrote: > > i915 driver needs to do modeset when > > 1. system resumes from sleep > > 2. lid is opened > > > > In PM_SUSPEND_MEM state, all the GPE

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

2013-02-04 Thread Zhang Rui
On Tue, 2013-02-05 at 07:58 +0800, Zhang Rui wrote: > On Mon, 2013-02-04 at 16:25 +0100, Daniel Vetter wrote: > > On Mon, Feb 04, 2013 at 03:10:11PM +0800, Zhang Rui wrote: > > > i915 driver needs to do modeset when > > > 1. system resumes from s

Re: [PATCH] Thermal: fix iteration over CPU frequency list

2013-02-05 Thread Zhang Rui
On Mon, 2013-02-04 at 11:49 -0800, amit daniel kachhap wrote: > On Thu, Jan 31, 2013 at 11:59 PM, Zhang Rui wrote: > > On Thu, 2013-01-24 at 16:24 +0100, Gu1 wrote: > >> In different places in the Thermal code, the CPU frequency list is iterated > >> in an incorrect wa

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

2013-02-05 Thread Zhang Rui
On Tue, 2013-02-05 at 11:07 +0100, Daniel Vetter wrote: > On Tue, Feb 05, 2013 at 03:41:53PM +0800, Zhang Rui wrote: > > oops, forgot to update the changelog and comments. > > refreshed patch attached. > > > > From b584fcebb6d715a317f192c88606b875ee88ce78 Mon Sep 17 00

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

2013-02-05 Thread Zhang Rui
On Tue, 2013-02-05 at 11:14 +0100, Rafael J. Wysocki wrote: > On Tuesday, February 05, 2013 11:07:11 AM Daniel Vetter wrote: > > On Tue, Feb 05, 2013 at 03:41:53PM +0800, Zhang Rui wrote: > > > oops, forgot to update the changelog and comments. > > > refreshed patch

Re: [PATCH V2 1/3] PM: Introduce suspend state PM_SUSPEND_FREEZE

2013-02-05 Thread Zhang Rui
On Mon, 2013-02-04 at 15:10 +0800, Zhang Rui wrote: > PM_SUSPEND_FREEZE state is a general state that > does not need any platform specific support, it equals > frozen processes + suspended devices + idle processors. > > Compared with PM_SUSPEND_MEMORY, > PM_SUSPEND_FREEZ

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

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

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.

<    3   4   5   6   7   8   9   10   11   12   >