[tip:x86/topology] powercap/intel_rapl: Simplify rapl_find_package()

2019-05-23 Thread tip-bot for Zhang Rui
Commit-ID: aadf7b38337108627b014fb285147aacdfafe42e Gitweb: https://git.kernel.org/tip/aadf7b38337108627b014fb285147aacdfafe42e Author: Zhang Rui AuthorDate: Mon, 13 May 2019 13:58:50 -0400 Committer: Thomas Gleixner CommitDate: Thu, 23 May 2019 10:08:32 +0200 powercap/intel_rapl

[GIT PULL] Thermal management updates for v5.2-rc1

2019-05-16 Thread Zhang Rui
ork are required to be ready as early as possible to avoid overheat at boot time. (Daniel Lezcano) - Fix a bug that thermal framework pokes disabled thermal zones upon resume. (Wei Wang) - A couple of cleanups and trivial fixes on int340x thermal drivers. (Srinivas Pandruvada,

Re: Missing patches for thermal for 5.2

2019-05-06 Thread Zhang Rui
On 一, 2019-05-06 at 15:17 +0200, Daniel Lezcano wrote: > Hi Eduardo, Zhang, > > AFAICS, the following patches are missing for 5.2: > > > [PATCH -next] mlxsw: Remove obsolete dependency on THERMAL=m > This one is already in my tree. https://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.gi

Re: [PATCH] drivers: thermal: processor_thermal: Downgrade error message

2019-05-06 Thread Zhang Rui
On 一, 2019-04-29 at 20:42 -0700, Srinivas Pandruvada wrote: > Downgrade "Unsupported event" message from dev_err to dev_dbg. > Otherwise it > floods with this message one some platforms. > > Signed-off-by: Srinivas Pandruvada om> > --- >  .../thermal/intel/int340x_thermal/processor_thermal_device

Re: [PATCH 3/7] thermal/drivers/core: Add init section table for self-encapsulation

2019-05-06 Thread Zhang Rui
On 五, 2019-05-03 at 22:28 +0200, Daniel Lezcano wrote: > On 23/04/2019 07:59, Zhang Rui wrote: > > > > Hi, Daniel, > > > > thanks for clarifying. > > It is true that we need to make thermal framework ready as early as > > possible. And a static table works

Re: [PATCH next 23/25] thermal: Use dev_get_drvdata()

2019-04-28 Thread Zhang Rui
On 二, 2019-04-23 at 15:50 +0800, Kefeng Wang wrote: > Using dev_get_drvdata directly. > > Cc: Zhang Rui > Cc: Eduardo Valentin > Cc: Daniel Lezcano > Cc: linux...@vger.kernel.org > Signed-off-by: Kefeng Wang > --- >  .../intel/int340x_thermal/processo

Re: [PATCH 1/7] thermal/drivers/core: Remove the module Kconfig's option

2019-04-24 Thread Zhang Rui
gt; a better description why we are going this direction rather > than "most people dont use it as module". Was there any particular > specific technical motivation? > I checked the change log, it seems that we make CONFIG_THERMAL from bool to tristate long time ago. commit 63c4ec905d638

Re: [PATCH] thermal: core: skip update disabled thermal zones after suspend

2019-04-22 Thread Zhang Rui
On 一, 2019-04-22 at 09:44 -0700, Wei Wang wrote: > On Mon, Apr 22, 2019 at 2:03 AM Zhang Rui > wrote: > > > > > > On 二, 2019-04-16 at 10:07 -0700, Wei Wang wrote: > > > > > > It is unnecessary to update disabled thermal zones post suspend > >

Re: [PATCH 3/7] thermal/drivers/core: Add init section table for self-encapsulation

2019-04-22 Thread Zhang Rui
On 一, 2019-04-22 at 14:11 +0200, Daniel Lezcano wrote: > Hi Zhang, > > > On 22/04/2019 10:43, Zhang Rui wrote: > > > > Hi, Daniel, > > > > Thanks for the patches, it looks good to me except this one and > > patch > > 4/7. > > > > Fi

Re: [PATCH] thermal: core: skip update disabled thermal zones after suspend

2019-04-22 Thread Zhang Rui
On 二, 2019-04-16 at 10:07 -0700, Wei Wang wrote: > It is unnecessary to update disabled thermal zones post suspend and > sometimes leads error/warning in bad behaved thermal drivers. > a good catch, and in fact, there are more issues about thermal handling for disabled thermal zones, like we're ab

Re: [PATCH] thermal: intel: int340x: processor_thermal_device: simplify to get driver data

2019-04-22 Thread Zhang Rui
On 一, 2019-04-22 at 16:46 +0800, Zhang Rui wrote: > On 一, 2019-04-15 at 19:28 +0300, Andy Shevchenko wrote: > > > > On Mon, Apr 15, 2019 at 08:18:30PM +0530, Sumeet Pawnikar wrote: > > > > > > > > > From: "Pawnikar, Sumeet R" > > >

Re: [PATCH 3/7] thermal/drivers/core: Add init section table for self-encapsulation

2019-04-22 Thread Zhang Rui
Hi, Daniel, Thanks for the patches, it looks good to me except this one and patch 4/7. First, I don't think this is a cyclic dependency issue as they are in the same module. Second, I have not read include/asm-generic/vmlinux.lds.h before, it seems that it is used for architecture specific stuff.

Re: [PATCH] thermal: intel: int340x: processor_thermal_device: simplify to get driver data

2019-04-22 Thread Zhang Rui
On 一, 2019-04-15 at 19:28 +0300, Andy Shevchenko wrote: > On Mon, Apr 15, 2019 at 08:18:30PM +0530, Sumeet Pawnikar wrote: > > > > From: "Pawnikar, Sumeet R" > > > > This simplifies getting the 'driver_data' from 'struct device' > > directly. > > Going through platform_device or pci_dev is not r

Re: [PATCH V10 1/4] dt-bindings: fsl: scu: add thermal binding

2019-04-09 Thread Zhang Rui
On 二, 2019-04-09 at 05:28 +, Anson Huang wrote: > Ping... > Can anyone provide some suggestion about how to proceed next? > Hi, Eduardo, I guess you will comment on this patch, right? Or else I will take the patch following Rob' suggestion. thanks, rui > Best Regards! > Anson Huang > > >

Re: [PATCH 08/14] powercap/intel_rapl: Support multi-die/package

2019-04-07 Thread Zhang Rui
On 五, 2019-04-05 at 20:27 +0200, Thomas Gleixner wrote: > On Tue, 26 Feb 2019, Len Brown wrote: > > > > > From: Zhang Rui > > > > On the new dual-die/package systems, the RAPL MSR becomes die- > > scope. > > Thus instead of one powercap device per phy

[GIT PULL] Thermal management updates for v5.1-rc2

2019-03-24 Thread Zhang Rui
kthreads created by intel_powerclamp driver. (Zhang Rui) - Fix the missing UUID supports in int3400 thermal driver. (Matthew Garrett) - Fix a crash when accessing the debugfs of bcm2835 SoC thermal driver. (Phil Elwell) - A couple of trivial fixes/cleanups in some SoC thermal d

Re: [PATCH 08/11] powercap/intel_rapl: Support multi-die/package

2019-02-25 Thread Zhang Rui
On 一, 2019-02-25 at 23:41 -0500, Len Brown wrote: > On Thu, Feb 21, 2019 at 12:44 AM Len Brown wrote: > > > > > > On Wed, Feb 20, 2019 at 6:02 AM Peter Zijlstra > g> wrote: > > > > > > > > > > > > >   list_for_each_entry(rp, &rapl_packages, plist) { > > > > @@ -1457,7 +1457,7 @@ static v

Re: [PATCH v7 0/3] Fixes for Tegra soctherm

2019-02-19 Thread Zhang Rui
On 一, 2019-02-18 at 15:59 +0800, Wei Ni wrote: > Rui, > Will you take this serial? > it is already in my tree. I missed -rc6, thus I will queue them for 5.1-rc1. thanks, rui > Thanks. > Wei. > > On 21/1/2019 5:17 PM, Wei Ni wrote: > > > > Does there have any comments? > > > > Thanks. > > Wei.

Re: [PATCH] thermal/intel_powerclamp: fix __percpu declaration of worker_data

2019-01-30 Thread Zhang Rui
On 三, 2019-01-30 at 21:37 +0800, Zhang Rui wrote: > On 三, 2019-01-30 at 10:59 +0100, Petr Mladek wrote: > > > > On Sat 2019-01-19 17:15:23, Luc Van Oostenryck wrote: > > > > > > > > > This variable is declared as: > > > static struct powe

Re: [PATCH] thermal: mtk: Allocate enough space for mtk_thermal.

2019-01-30 Thread Zhang Rui
On 三, 2019-01-30 at 11:04 +0100, Daniel Lezcano wrote: > On 30/01/2019 10:25, Pi-Hsun Shih wrote: > > > > On Wed, Jan 30, 2019 at 3:44 PM Daniel Lezcano > > wrote: > > > > > > > > > On 30/01/2019 07:04, Peter Shih wrote: > > > > > > > > Adding Michael Kao to cc list. > > > > > > > > On Wed, J

Re: [PATCH] thermal/intel_powerclamp: fix __percpu declaration of worker_data

2019-01-30 Thread Zhang Rui
On 三, 2019-01-30 at 10:59 +0100, Petr Mladek wrote: > On Sat 2019-01-19 17:15:23, Luc Van Oostenryck wrote: > > > > This variable is declared as: > > static struct powerclamp_worker_data * __percpu worker_data; > > In other words, a percpu pointer to struct ... > > > > But this variable not u

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

2019-01-22 Thread Zhang Rui
On 三, 2019-01-23 at 11:44 +1100, Joel Stanley wrote: > Hello Rui, > > On Tue, 4 Dec 2018 at 02:12, Zhang Rui wrote: > > > > On 三, 2018-10-10 at 01:30 -0700, Matthew Garrett wrote: > > > > > > Platforms support more DPTF policies than the driver curren

[GIT PULL] Thermal management updates for v5.0-rc4

2019-01-22 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for-rc to receive the latest Thermal management updates for v5.0-rc4 with top-most commit 129699bb8c7572106b5bbb2407c2daee4727ccad:   drivers: thermal: int340x_thermal: Fix sysfs race condition (2019-01-

Re: [PATCH v2 02/11] thermal: add irq-mode configuration for trip point

2019-01-10 Thread Zhang Rui
Hi, Lukasz, On 四, 2018-12-06 at 20:55 +0100, Lukasz Luba wrote: > > On 12/6/18 8:18 PM, Lukasz Luba wrote: > > > > Hi Rui, > > > > On 12/5/18 4:09 PM, Zhang Rui wrote: > > > > > > On 三, 2018-11-07 at 18:09 +0100, Lukasz Luba wrote: > >

Re: [PATCH v6 07/11] drivers: thermal: int3406_thermal: Make PCI dependency explicit

2019-01-08 Thread Zhang Rui
On 一, 2019-01-07 at 12:19 +0100, Rafael J. Wysocki wrote: > On Sat, Jan 5, 2019 at 11:06 AM Sinan Kaya wrote: > > > > > > After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built > > without > > CONFIG_PCI set")' dependencies on CONFIG_PCI that previously were > > satisfied implicitly throu

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

2019-01-03 Thread Zhang Rui
ta   thermal: st: st_thermal: simplify getting .driver_data   thermal: zx2967_thermal: simplify getting .driver_data Zhang Rui (1):   Merge branches 'for-rc' and 'thermal-core' into next  drivers/thermal/Kconfig| 94 ++---

Re: [PATCH V2] thermal: Fix locking in cooling device sysfs update cur_state

2019-01-02 Thread Zhang Rui
On 三, 2019-01-02 at 21:29 -0500, Thara Gopinath wrote: > On 11/27/2018 05:43 PM, Thara Gopinath wrote: > > > > Sysfs interface to update cooling device cur_state does not > > currently holding cooling device lock sometimes leading to > > stale values in cur_state if getting updated simultanelously

Re: [PATCH v5 0/3] Stingray thermal driver support

2019-01-01 Thread Zhang Rui
On 一, 2018-12-31 at 14:15 -0800, Florian Fainelli wrote: > > On 04/12/2018 19:17, Srinath Mannam wrote: > > > > Hi, > > > > Could you please provide your feedback to this patch series? > Rui or Eduardo can we get either one of you to review the thermal > driver > parts of this patch series? Why

Re: [PATCH v6 0/4] Fixes for Tegra soctherm

2018-12-17 Thread Zhang Rui
On 五, 2018-12-14 at 17:54 +0800, Wei Ni wrote: > Hi Rui, > I moved get_trend() patch https://lkml.org/lkml/2018/11/20/643 in > this > serial. > Since no more comments on these patches, will you take them? > I think Eduardo will take care of this patch series. thanks, rui > Thanks. > Wei. > > On

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. T

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 K

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

2018-12-03 Thread Zhang Rui
d. thanks, 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.

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: > > git://git.kernel

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 patch.

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

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

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 p

[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 (&q

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

2018-08-05 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, wil

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

2018-07-30 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 po

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 threshol

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

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

2018-06-12 Thread Zhang Rui
is attribute Sumeet 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 'the

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

2018-05-12 Thread Zhang Rui
hanks, 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_rea

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") > >   f9cd6a904e

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 upda

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
 thermal: Add cooling 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 +-  dri

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

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 > > wrote: > > > > > > > > > could you please illus

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 > wrote: > > > > > > Please pull from > >   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git > > next > Pulled, and then immediate

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

2018-04-11 Thread Zhang Rui
ax}-level" properties   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 ne

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! > > This

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

2018-03-26 Thread Zhang, Rui
> -Original Message- > From: Eduardo Valentin [mailto:edubez...@gmail.com] > Sent: Tuesday, March 27, 2018 5:05 AM > To: Randy Dunlap > Cc: Stephen Rothwell ; Linux-Next Mailing List n...@vger.kernel.org>; Linux Kernel Mailing List ker...@vger.kernel.org>; Linux P

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 th

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

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

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 whi

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

2018-03-12 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 [mailto:linux-arm-kernel-bo

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

2018-02-27 Thread Zhang Rui
ll 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 > > > > Changes in v3: > > - [1/2] Make sure tz->tz_enabled is set properly before registering > > the > >   zone (Zh

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

2018-02-06 Thread Zhang Rui
escribing algorithm for temp calculation   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):   Merg

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 is any r

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

2018-01-25 Thread Zhang Rui
ind any obvious problem caused by this patch, and it indeed reduces the suspend time a lot. Signed-off-by: Zhang Rui --- 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/intel-lpss.

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 unr

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 > --- >  drivers/thermal/of-thermal.c

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 > > --- > Rui, Eduardo, do you

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

2017-12-20 Thread Zhang Rui
/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 thanks, rui >  7 f

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

2017-12-20 Thread Zhang Rui
ers/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
  |  2 +- >  drivers/gpu/drm/i915/i915_sysfs.c|  6 ++--- >  drivers/platform/x86/compal-laptop.c | 18 +-- >  drivers/s390/cio/device.c|  2 +- >  drivers/scsi/lpfc/lpfc_attr.c| 43 > >  drivers/thermal

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

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 H

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

2017-12-11 Thread Zhang Rui
37e57bbe0c ("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 ena

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 message

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 Zijlstr

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 > Cc: Zheng, Lv ; Lv Zheng ; linux- > ker...@vger.kerne

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 > Cc: Zheng, Lv ; Lv Zheng ; linux- > ker...@vger.kerne

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

2017-11-16 Thread Zhang Rui
e Lake support   thermal: pch: Add Cannon 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', '

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 original faddr2line output:

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

2017-11-12 Thread Zhang Rui
RT) > 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 > Signed-off-by: Zhang Rui > > # dmesg > [0.00] microcode: microcode

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 insertion(+) > > diff --git > a/drive

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- > > > thermal.git

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 easier to cross-compile tmon on a > > great

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-25 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 ; Rafal Milecki > Cc: Markus Mayer ; Eduardo Valentin > ; Rob Herring ; Mark Rutland > ; Doug Berger ; Brian &g

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 ; Rafał Miłecki Cc: Markus Mayer ; Eduardo Valentin ; Rob Herring ; Mark Rutland ; Doug Berger ; Brian Norris ; Gregory Fong ; Russell King

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
uis Yu) - Add support for RK3328 SOC 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

<    1   2   3   4   5   6   7   8   9   >