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

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

[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] 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

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

[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

[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.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") > >  

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

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

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 >

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

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

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

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

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 Tue, 2017-12-19 at 16:23 +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: > > > > > > Hi, can you see if this makes you Surface boot? > > > &

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 14:15 +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: > > > > > > Hi, can you see if this makes you Surface boot? > > >

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

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: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-29 Thread Zhang Rui
On Tue, 2017-11-28 at 13:36 +0100, Peter Zijlstra wrote: > On Tue, Nov 28, 2017 at 06:59:01PM +0800, Zhang Rui wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > My Surface Pro 4 is unable to boot after

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

2017-11-28 Thread Zhang Rui
On Tue, 2017-11-28 at 10:34 +0100, Thomas Gleixner wrote: > On Tue, 28 Nov 2017, Zhang Rui wrote: > > > > > On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > > > > > > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > >

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

2017-11-28 Thread Zhang Rui
On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > Hi, All, > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > > kernel freezes during boot, and the last mes

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

2017-11-27 Thread Zhang Rui
Hi, All, My Surface Pro 4 is unable to boot after 4.12. The symptom is that kernel freezes during boot, and the last message in the screen is loading the initrd image. And I have bisected it to this commit commit bd9240a18edfbfa72e957fc2ba831cf1f13ea073 (refs/bisect/bad) Author: Peter

RE: [RFC PATCH v6 1/3] ACPI / EC: Fix possible driver order issue by moving EC event handling earlier

2017-11-22 Thread Zhang, Rui
> -Original Message- > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Lv Zheng > Sent: Friday, September 29, 2017 10:50 AM > To: Wysocki, Rafael J ; Rafael J . Wysocki > ; Brown, Len

RE: [RFC PATCH v6 2/3] ACPI / EC: Add event detection support for noirq stages

2017-11-22 Thread Zhang, Rui
> -Original Message- > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Lv Zheng > Sent: Friday, September 29, 2017 10:50 AM > To: Wysocki, Rafael J ; Rafael J . Wysocki > ; Brown, Len

[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: 4.14 kernel and acpi INT3400:00: Unsupported event [0x86]

2017-11-14 Thread Zhang Rui
ationship-table-change event > only, and all other ACPI notification codes are unknown/irrelevant > to the INT3400 driver. > > Thanks, > -Brian > > On Mon, 13 Nov 2017, Arkadiusz Miskiewicz wrote: > > > > > On Monday 13 of November 2017, Zhang Rui wrote: &

Re: CONFIG_DEBUG_INFO_SPLIT impacts on faddr2line

2017-11-12 Thread Zhang Rui
On Mon, 2017-11-13 at 09:13 +0800, Fengguang Wu wrote: > CC Andi and more DEBUG_INFO_SPLIT people. > > On Sun, Nov 12, 2017 at 11:31:56AM -0800, Linus Torvalds wrote: > > > > On Wed, Nov 8, 2017 at 9:12 AM, Fengguang Wu > m> wrote: > > > > > > > > > OK. Here is the

Re: 4.14 kernel and acpi INT3400:00: Unsupported event [0x86]

2017-11-12 Thread Zhang Rui
e(ART) and/or thermal relationship table(TRT) > changes > to INT3400 device. This event needs to be propagated to user > space so > that it can be handled by the user space thermal daemon. > > Signed-off-by: Brian Bian <brian.b...@linux.intel.com> > Signed-off-b

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: [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: [PATCH 0/3] tools/thermal: tmon: Makefile improvements

2017-10-17 Thread Zhang Rui
On Fri, 2017-10-13 at 13:39 -0700, Markus Mayer wrote: > On 27 September 2017 at 16:02, Markus Mayer wrote: > > > > From: Markus Mayer > > > > This series introduces a number of improvements to tmon's Makefile. > > The > > changes are meant to make it

Re: linux-next: manual merge of the thermal tree with the imx-mxs tree

2017-10-17 Thread Zhang Rui
Hi, Mark, thanks for the fix. On Mon, 2017-10-16 at 10:17 +0100, Mark Brown wrote: > Hi Zhang, > > Today's linux-next merge of the thermal tree got a conflict in: > >   arch/arm/boot/dts/imx6ul.dtsi > > between commit: > >    efb9adb274754 ("ARM: dts: imx6ul: Remove leading zeroes from unit

RE: [PATCH v4 2/4] thermal: add brcmstb AVS TMON driver

2017-09-26 Thread Zhang, Rui
Hi, Florian, > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Tuesday, September 26, 2017 12:14 PM > To: Zhang, Rui <rui.zh...@intel.com>; Rafal Milecki <ra...@milecki.pl> > Cc: Markus Mayer <c...@mmayer.net>; Eduard

RE: [PATCH v4 2/4] thermal: add brcmstb AVS TMON driver

2017-09-25 Thread Zhang, Rui
. Thanks, rui -Original Message- From: Florian Fainelli [mailto:f.faine...@gmail.com] Sent: Monday, September 25, 2017 5:11 AM To: Zhang, Rui <rui.zh...@intel.com>; Rafał Miłecki <ra...@milecki.pl> Cc: Markus Mayer <c...@mmayer.net>; Eduardo Valentin <edubez...@gma

Re: [PATCH v2 0/5] thermal: imx: Add nvmem-cells binding on imx6sx

2017-09-19 Thread Zhang Rui
On Thu, 2017-08-31 at 21:11 +0800, Zhang Rui wrote: > On Thu, 2017-08-31 at 16:48 +0800, Shawn Guo wrote: > > > > On Fri, Jul 14, 2017 at 05:11:05PM +0300, Leonard Crestez wrote: > > > > > > > > > Leonard Crestez (5): > > >   therma

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

2017-09-11 Thread Zhang Rui
in rockchip_thermal driver. (Rocky Hao) - cleanup a couple of platform thermal drivers to constify thermal_zone_of_device_ops structures. (Julia Lawall) - a couple of fixes in int340x and intel_pch_thermal thermal driver.(Arvind Yadav, Sumeet Pawnikar, Brian Bian, Ed Swierk, Zhang Rui) thanks, rui

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

2017-09-04 Thread Zhang Rui
On Tue, 2017-09-05 at 10:57 +1000, Stephen Rothwell wrote: > Hi Zhang, > > Commits > >   1f0d851d9359 ("Debug patch") >   083d998842a2 ("debug") > > are missing a Signed-off-bys. > > These are not really appropriate for linux-next inclusion - > especially > during the merge window. > oops,

Re: [PATCH][next] Thermal: int3406_thermal: fix unused variable warning

2017-09-03 Thread Zhang Rui
On Fri, 2017-09-01 at 10:58 +0100, Colin King wrote: > From: Colin Ian King > > The variable index was introduced by an earlier commit and is not > used, and hence should be removed. > > Cleans up warning: "unused variable 'index'" > > Fixes: c658894562ba ("Thermal:

Re: [PATCH v2 5/5] thermal: Add Tegra BPMP thermal sensor driver

2017-08-31 Thread Zhang Rui
On Thu, 2017-08-31 at 14:45 +0200, Thierry Reding wrote: > On Mon, Aug 21, 2017 at 10:40:44AM +0800, Wei Ni wrote: > > > > > > > > On Friday, August 11, 2017 10:57 AM, Zhang Rui wrote: > > > > > > On Mon, 2017-07-24 at 19:29 +0300, Mikko Perttunen

Re: [PATCH v2 0/5] thermal: imx: Add nvmem-cells binding on imx6sx

2017-08-31 Thread Zhang Rui
On Thu, 2017-08-31 at 16:48 +0800, Shawn Guo wrote: > On Fri, Jul 14, 2017 at 05:11:05PM +0300, Leonard Crestez wrote: > > > > Leonard Crestez (5): > >   thermal: imx: Add nvmem-cells alternate binding for OCOTP access > >   nvmem: core: Add nvmem_cell_read_u32 > >   thermal: imx: Add support for

Re: [PATCH] thermal: max77620: constify platform_device_id

2017-08-24 Thread Zhang Rui
On Sun, 2017-08-13 at 17:03 +0530, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All > functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav

Re: [PATCH v2 3/5] thermal: imx: Add support for reading OCOTP through nvmem

2017-08-24 Thread Zhang Rui
On Wed, 2017-08-16 at 18:33 +0300, Leonard Crestez wrote: > On Tue, 2017-08-08 at 20:58 +0800, Zhang Rui wrote: > > > > On Tue, 2017-08-08 at 12:44 +0100, Srinivas Kandagatla wrote: > > > > > > On 08/08/17 12:38, Leonard Crestez wrote: > > > > > &

Re: [PATCH V1] thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals

2017-08-24 Thread Zhang Rui
On Thu, 2017-08-17 at 13:12 +0530, kgu...@codeaurora.org wrote: > On 2017-08-16 17:53, kgu...@codeaurora.org wrote: > > > > On 2017-08-08 13:42, Zhang Rui wrote: > > > > > > On Thu, 2017-07-13 at 17:39 +0530, Kiran Gunda wrote: > > > > > &g

Re: [PATCH v4 2/4] thermal: add brcmstb AVS TMON driver

2017-08-15 Thread Zhang Rui
On Tue, 2017-08-15 at 08:42 +0200, Rafał Miłecki wrote: > On 2017-08-15 08:08, Zhang Rui wrote: > > > > > > > > diff --git a/drivers/thermal/broadcom/Kconfig > > > b/drivers/thermal/broadcom/Kconfig > > > index 42c098e..c106a15 100644 > > &

Re: [PATCH v4 2/4] thermal: add brcmstb AVS TMON driver

2017-08-15 Thread Zhang Rui
On Wed, 2017-08-09 at 15:02 -0700, Markus Mayer wrote: > From: Brian Norris > > The AVS TMON core provides temperature readings, a pair of > configurable > high- and low-temperature threshold interrupts, and an emergency > over-temperature chip reset. The driver

Re: [PATCH 1/3 v2] thermal: core: Add some new helper functions to free resources

2017-08-11 Thread Zhang Rui
On Fri, 2017-08-11 at 09:30 +0200, walter harms wrote: > > Am 08.08.2017 16:39, schrieb Christophe JAILLET: > > > > In order to easily free resources allocated by > > 'thermal_zone_create_device_groups()' we need 2 new helper > > functions. > > > > The first one undoes

Re: [PATCH v2 0/5] thermal: rockchip: add tsadc support in thermal driver and IPA thermal control for rk3328 in dts

2017-08-11 Thread Zhang Rui
On Fri, 2017-08-11 at 08:27 +0200, Heiko Stuebner wrote: > Hi, > > Am Freitag, 11. August 2017, 12:51:35 CEST schrieb Zhang Rui: > > > > On Fri, 2017-08-04 at 16:06 +0800, Rocky Hao wrote: > > > > > > This series patches add the tsadc support in therm

Re: [PATCH v4 0/4] thermal: add brcmstb AVS TMON driver

2017-08-10 Thread Zhang Rui
On Wed, 2017-08-09 at 15:02 -0700, Markus Mayer wrote: > From: Markus Mayer > > This series adds the brcmstb AVS TMON driver. > > The driver was originally written by Brian Norris. > > This series is also available at >

Re: [PATCH v2 0/5] thermal: rockchip: add tsadc support in thermal driver and IPA thermal control for rk3328 in dts

2017-08-10 Thread Zhang Rui
On Fri, 2017-08-04 at 16:06 +0800, Rocky Hao wrote: > This series patches add the tsadc support in thermal driver and in > devicetree for rk3328. > Also add thermal control with Intelligent Power Allocation (IPA) > policy by default.  Please > refer to

Re: [PATCH 0/9 v2] constify thermal_zone_of_device_ops structures

2017-08-10 Thread Zhang Rui
On Tue, 2017-08-08 at 17:08 +0200, Julia Lawall wrote: > The thermal_zone_of_device_ops structures are only passed as the > fourth > argument to thermal_zone_of_sensor_register or > devm_thermal_zone_of_sensor_register, both of which are declared as > const. > Thus the thermal_zone_of_device_ops

Re: [PATCH 1/3 v2] thermal: core: Add some new helper functions to free resources

2017-08-10 Thread Zhang Rui
On Fri, 2017-08-11 at 11:23 +0800, Zhang Rui wrote: > On Tue, 2017-08-08 at 16:39 +0200, Christophe JAILLET wrote: > > > > In order to easily free resources allocated by > > 'thermal_zone_create_device_groups()' we need 2 new helper > > functions. &g

Re: [PATCH 1/3 v2] thermal: core: Add some new helper functions to free resources

2017-08-10 Thread Zhang Rui
On Tue, 2017-08-08 at 16:39 +0200, Christophe JAILLET wrote: > In order to easily free resources allocated by > 'thermal_zone_create_device_groups()' we need 2 new helper functions. > > The first one undoes 'thermal_zone_create_device_groups()'. > The 2nd one undoes 'create_trip_attrs()', which

Re: [PATCH] thermal/drivers/hisi: Remove confusing error message

2017-08-10 Thread Zhang Rui
On Tue, 2017-08-08 at 21:29 +0800, Leo Yan wrote: > On Tue, Aug 08, 2017 at 08:48:51PM +0800, Zhang Rui wrote: > > [...] > > > > > > > > > > > > > > > > > > > > @@ -352,10 +353,9 @@ static int hisi_thermal_prob

Re: [PATCH] thermal: rockchip: fix error return code in rockchip_thermal_probe()

2017-08-10 Thread Zhang Rui
On Mon, 2017-08-07 at 23:35 -0500, Gustavo A. R. Silva wrote: > platform_get_irq() returns an error code, but the rockchip_thermal > driver > ignores it and always returns -EINVAL. This is not correct and, > prevents > -EPROBE_DEFER from being propagated properly. > > Notice that

Re: [PATCH 2/5] thermal: rockchip: Support the RK3328 SOC in thermal driver

2017-08-10 Thread Zhang Rui
On Tue, 2017-07-25 at 17:09 +0800, Rocky Hao wrote: > RK3328 SOC has one Temperature Sensor for CPU. > > Change-Id: I176c76bae1801d815a513986cfefcb55272c69a8 > Signed-off-by: Rocky Hao Caesar, what do you think of this patch? thanks, rui > --- >  

Re: [PATCH v2 5/5] thermal: Add Tegra BPMP thermal sensor driver

2017-08-10 Thread Zhang Rui
On Mon, 2017-07-24 at 19:29 +0300, Mikko Perttunen wrote: > On Tegra186, the BPMP (Boot and Power Management Processor) exposes > an > interface to thermal sensors on the system-on-chip. This driver > implements access to the interface. It supports reading the > temperature, setting trip points

Re: [PATCH 0/4] constify thermal_zone_of_device_ops structures

2017-08-08 Thread Zhang Rui
On Sat, 2017-08-05 at 22:37 +0200, Julia Lawall wrote: > The thermal_zone_of_device_ops structures are only passed as the > fourth > argument to thermal_zone_of_sensor_register, which is declared as > const. > Thus the thermal_zone_of_device_ops structures themselves can be > const. > > Done with

Re: [PATCH v6 2/2] thermal: uniphier: add UniPhier thermal driver

2017-08-08 Thread Zhang Rui
On Tue, 2017-08-01 at 17:04 +0900, Kunihiko Hayashi wrote: > Add a thermal driver for on-chip PVT (Process, Voltage and > Temperature) > monitoring unit implemented on UniPhier SoCs. This driver supports > temperature monitoring and alert function. > > Signed-off-by: Kunihiko Hayashi

Re: [PATCH 2/3] thermal: core: Reorder 'thermal_zone_device_register()' error handling code

2017-08-08 Thread Zhang Rui
On Tue, 2017-08-08 at 14:31 +0200, Christophe JAILLET wrote: > Le 08/08/2017 à 10:49, Zhang Rui a écrit : > > > > On Sun, 2017-07-16 at 08:59 +0200, Christophe JAILLET wrote: > > > > > > Reorder code in the error handling path in order to match the way > >

Re: [PATCH v2 3/5] thermal: imx: Add support for reading OCOTP through nvmem

2017-08-08 Thread Zhang Rui
On Tue, 2017-08-08 at 12:44 +0100, Srinivas Kandagatla wrote: > > > > On 08/08/17 12:38, Leonard Crestez wrote: > > > > On Tue, 2017-08-08 at 12:00 +0100, Srinivas Kandagatla wrote: > > > > > > On 08/08/17 08:21, Zhang Rui wrote: > > > >

Re: [PATCH] thermal/drivers/hisi: Remove confusing error message

2017-08-08 Thread Zhang Rui
On Tue, 2017-08-08 at 12:15 +0200, Daniel Lezcano wrote: > On 08/08/2017 09:55, Zhang Rui wrote: > > > > On Fri, 2017-07-07 at 17:03 +0200, Daniel Lezcano wrote: > > > > > > The sensor id is unknown at init time and we use all id in the > > > authori

Re: [PATCH v3 1/4] Documentation: devicetree: add binding for Broadcom STB AVS TMON

2017-08-08 Thread Zhang Rui
On Mon, 2017-07-31 at 12:26 -0700, Markus Mayer wrote: > From: Brian Norris > > Add binding for Broadcom STB thermal. > > Signed-off-by: Brian Norris > Signed-off-by: Markus Mayer $ file

Re: [PATCH v3 0/4] thermal: add brcmstb AVS TMON driver

2017-08-08 Thread Zhang Rui
On Mon, 2017-08-07 at 10:52 -0700, Florian Fainelli wrote: > On 07/31/2017 12:26 PM, Markus Mayer wrote: > > > > From: Markus Mayer > > > > This series adds the brcmstb AVS TMON driver. > > > > The driver was originally written by Brian Norris. > > > > v1 of this series

Re: [PATCH] thermal: core: fix some format issues on critical shutdown string

2017-08-08 Thread Zhang Rui
On Sun, 2017-07-23 at 22:21 +0800, Icenowy Zheng wrote: > The critical shutdown notice string used to have some spaces missing, > which makes it not so pretty. > > Add the spaces to satisfy usual English space rules. > > Reported-by: Mingcong Bai > Signed-off-by: Icenowy Zheng

Re: [PATCH] thermal: fix INTEL_SOC_DTS_IOSF_CORE dependencies

2017-08-08 Thread Zhang Rui
On Sat, 2017-07-29 at 13:22 -0600, Pandruvada, Srinivas wrote: > On Fri, 2017-07-21 at 18:16 +0200, Arnd Bergmann wrote: > > > > We get a Kconfig warning when selecting this without also enabling > > CONFIG_PCI: > > > > warning: (X86_INTEL_LPSS && INTEL_SOC_DTS_IOSF_CORE && > > SND_SST_IPC_ACPI

  1   2   3   4   5   6   7   8   >