Ran Shalit | 5 Mar 16:09 2015

setting min/max frequency - without sysfs


I would like to ask if there is some way to set min/max frequency
without using sysfs.
It is some sort of hacking, but the issue is that there is no sysfs in
the linux I'm using.

Thank you,
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Lorenzo Pieralisi | 5 Mar 13:52 2015

[RFC PATCH 1/2] drivers: cpuidle: introduce DT idle affinity probing function

Current DT idle state parsing code validates the idle states while
parsing them for the first logical cpu in the CPUidle driver cpumask,
at driver probing time.

This check is not thorough in that it misses configurations where cpus
other than the first in the driver cpumask have more idle states
than the first cpu in the mask, resulting in false positives.

Furthermore, on systems where cpus are allowed to have different
idle states, current DT parsing code prevents idle states
initialization, which consequently causes the CPUidle driver
initialization to fail.

This patch removes the idle_state_valid() function call check in
dt_init_idle_driver() and adds a new DT function, dt_probe_idle_affinity(),
that allows probing the affinity cpumask in order to detect cpus sharing
a common set of idle states.

This way, CPUidle drivers can use the newly introduced function to
probe cpus in the affinity mask that share the same idle states,
therefore creating an idle affinity cpumask, which is the basic requirement
defining a CPUidle driver.

Existing CPUidle drivers that make use of the DT idle states API are
updated accordingly.

Cc: Rob Herring <robh+dt <at> kernel.org>
Cc: Sudeep Holla <sudeep.holla <at> arm.com>
Cc: Lina Iyer <lina.iyer <at> linaro.org>
Cc: Daniel Lezcano <daniel.lezcano <at> linaro.org>
(Continue reading)

Anda-Maria Nicolae | 5 Mar 12:23 2015

[PATCH 0/2] bq2415x_charger: Fix coding style issues and add new charger in the list of supported chargers


First patch from patchset fixes coding style issues: removes unnecessary else after return.
This way, the coding style complies with checkpatch.pl.

Second patch from patchset updates bq2415x driver to support bq24157s charger.


Anda-Maria Nicolae (2):
  bq2415x_charger: Remove unnecessary else after return
  bq2415x_charger: Add support for bq24157s

 drivers/power/bq2415x_charger.c |   32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)



To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Zha, Qipeng | 5 Mar 07:18 2015

git tree

Hi Dear

Could you confirm the git tree is below to maintain platform x86 driver ? If not , could you tell me which one Thanks.
It report non reachable when I clone it.
git clone https://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86.git

Best wishes

-----Original Message-----
From: platform-driver-x86-owner <at> vger.kernel.org
[mailto:platform-driver-x86-owner <at> vger.kernel.org] On Behalf Of Darren Hart
Sent: Wednesday, March 04, 2015 12:44 AM
To: Krzysztof Kozlowski
Cc: Sebastian Reichel; Dmitry Eremin-Solenikov; David Woodhouse; linux-pm <at> vger.kernel.org;
linux-kernel <at> vger.kernel.org; Cezary Jackiewicz; platform-driver-x86 <at> vger.kernel.org;
Kyungmin Park; Marek Szyprowski
Subject: Re: [PATCH v4 11/20] power_supply: Change ownership from driver to core

On Thu, Feb 26, 2015 at 12:31:13PM +0100, Krzysztof Kozlowski wrote:
> On czw, 2015-02-26 at 12:28 +0100, Krzysztof Kozlowski wrote:
> > On śro, 2015-02-25 at 22:14 -0800, Darren Hart wrote:
> > > On Thu, Feb 26, 2015 at 01:45:22AM +0100, Sebastian Reichel wrote:
> > 
> > (...)
> > 
> > > > I would like to merge this via the power supply subsystem. Some 
> > > > of the files being patched are not under my maintainence, 
(Continue reading)

Shawn Bohrer | 4 Mar 23:00 2015

NFS Freezer and stuck tasks


We're using the Linux cgroup Freezer on some machines that use NFS and
have run into what appears to be a bug where frozen tasks are blocking
running tasks and preventing them from completing.  On one of our
machines which happens to be running an older 3.10.46 kernel we have
frozen some of the tasks on the system using the cgroup Freezer.  We
also have a separate set of tasks which are NOT frozen which are stuck
trying to open some files on NFS.

Looking at the frozen tasks there are several that have the following

[<ffffffff814fd055>] rpc_wait_bit_killable+0x35/0x80
[<ffffffff814fd01d>] __rpc_wait_for_completion_task+0x2d/0x30
[<ffffffff811dce5d>] nfs4_run_open_task+0x11d/0x170
[<ffffffff811de7a3>] _nfs4_open_and_get_state+0x53/0x260
[<ffffffff811e12d1>] nfs4_do_open+0x121/0x400
[<ffffffff811e15e1>] nfs4_atomic_open+0x31/0x50
[<ffffffff811f02dc>] nfs4_file_open+0xac/0x180
[<ffffffff811479be>] do_dentry_open.isra.19+0x1ee/0x280
[<ffffffff81147b3e>] finish_open+0x1e/0x30
[<ffffffff811578d2>] do_last.isra.64+0x2c2/0xc40
[<ffffffff81158519>] path_openat.isra.65+0x2c9/0x490
[<ffffffff81158c38>] do_filp_open+0x38/0x80
[<ffffffff81148cd4>] do_sys_open+0xe4/0x1c0
[<ffffffff81148dce>] SyS_open+0x1e/0x20
[<ffffffff8153e719>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff

(Continue reading)

kbuild test robot | 4 Mar 21:34 2015

[PATCH] thermal: cpu_cooling: fix ptr_ret.cocci warnings

drivers/thermal/cpu_cooling.c:463:18-24: WARNING: PTR_ERR_OR_ZERO can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

CC: Javi Merino <javi.merino <at> arm.com>
Signed-off-by: Fengguang Wu <fengguang.wu <at> intel.com>

 cpu_cooling.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
 <at>  <at>  -460,7 +460,7  <at>  <at>  static int get_static_power(struct cpufr
 	if (voltage == 0) {
 				     "Failed to get voltage for frequency %lu: %ld\n",
-				     freq_hz, IS_ERR(opp) ? PTR_ERR(opp) : 0);
+				     freq_hz, PTR_ERR_OR_ZERO(opp));
 		return -EINVAL;

To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Alexandre Belloni | 4 Mar 15:21 2015

[PATCH v3 0/9] Atmel System Timer cleanups

This patch set cleans up the system timer driver.

The main goal is to get rid of the mach/ headers dependency. At the same time,
it introduces proper probing and locking (using a regmap) for the watchdog

This is based on 4.0-rc1 and will have two merge conflicts with my cleanup #1 in

Changes in v3:
 - stop using an mfd and get the syscon directly from the watchdog driver
 - introduce a proper reset driver to handle reset

Changes in v2:
 - cleaned up more includes in the watchdog driver
 - stop using if OF when selecting CLKSRC_OF
 - stop initializing .owner

Alexandre Belloni (9):
  ARM: at91/dt: declare atmel,at91rm9200-st as a syscon
  mfd: syscon: Add atmel system timer registers definition
  watchdog: at91rm9200: use the system timer syscon
  power: reset: Add AT91RM9200 reset driver
  ARM: at91: at91rm9200: remove deprecated arm_pm_restart
  ARM: at91: time: move the system timer driver to drivers/clocksource
  clocksource: atmel-st: properly initialize driver
  clocksource: atmel-st: use syscon/regmap
  ARM: at91: remove useless include

 .../devicetree/bindings/arm/atmel-at91.txt         |   2 +-
(Continue reading)

Valentin Rothberg | 4 Mar 14:19 2015

select on undefined THERMAL_POWER_ACTOR

Hi Javi,

your commit 8754d5115693 ("thermal: introduce the Power Allocator
governor") is included in today's linux-next tree (i.e.,

This patch adds a select on the Kconfig symbol THERMAL_POWER_ACTOR.
However, THERMAL_POWER_ACTOR is not defined so that this select is a

 <at>  <at>  -99,6 +107,13  <at>  <at>  config THERMAL_GOV_USER_SPACE
          Enable this to let the user space manage the platform thermals.

+       bool "Power allocator thermal governor"
+       select THERMAL_POWER_ACTOR

Is there a patch queued somewhere that adds this Kconfig symbol?  I
detected the issue by running undertaker-checkpatch from the
Undertaker tool suite (undertaker.cs.fau.de).

Kind regards,
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Martin Steigerwald | 4 Mar 11:47 2015

[REGRESSION][BUG 94241] 4.0-rc2: Blanks screen on hibernation but does not switch off the machine

Also reported as:

After I had [1] with 3.18 and 3.19 upto rc7, with 4.0-rc2 I get a different 

The ThinkPad T520 does not hibernate at all anymore. It blanks the screen, 
has some disk accesses, but then stays there. It stays on. It even seems 
to continue to have some disk accesses. But its not possible to switch on 
the display anymore. I tried the usual Ctrl-Alt-F1 to switch to TTY1 

Expected results:

It goes to console as I have "no_console_suspend", tells me it will 
hibernate, gives out the 10% step progress report on saving the image, 
completes saving the image and switches off.

I am back on 3.19-rc7 as I need the machine for work. I do not foresee 
having time to bisect this at the moment. I may try with kernel 4.0-rc2 
again and try to SSH into the machine from a different box. Maybe I can 
still log in to it in that black screen state.

This is on Debian Sid with systemd and the following hardware and software 

martin <at> merkaba:~> phoronix-test-suite system-info

Phoronix Test Suite v5.2.1
System Information
(Continue reading)

pi-cheng.chen | 4 Mar 09:49 2015

[PATCH v2 0/4] cpufreq: add cpufreq driver for Mediatek MT8173 SoC

MT8173 is a ARMv8 based SoC with 2 clusters. All CPUs in a single cluster
share the same power and clock domain. This series tries to add cpufreq support
for MT8173 SoC by using DT based cpufreq driver. 

From v1 to v2:
1. Add intermediate frequency support in cpufreq-dt driver
2. Use voltage scaling code of cpufreq-dt for little cluster instead of
   implementaion in notifier of mtk-cpufreq driver
3. Code refinement for mtk-cpufreq driver

pi-cheng.chen (4):
  cpufreq-dt: add clock domain and intermediate frequency support
  cpufreq: dt-bindings: add bindings for mtk-cpufreq driver
  cpufreq: mediatek: add Mediatek cpufreq driver
  ARM64: dts: mediatek: add cpufreq dts for MT8173 SoC

 .../devicetree/bindings/cpufreq/cpufreq-mtk.txt    |  17 +
 arch/arm64/boot/dts/mediatek/mt8173-evb.dts        |  10 +
 arch/arm64/boot/dts/mediatek/mt8173.dtsi           |  25 ++
 drivers/cpufreq/Kconfig.arm                        |   6 +
 drivers/cpufreq/Makefile                           |   1 +
 drivers/cpufreq/cpufreq-dt.c                       |  68 +++-
 drivers/cpufreq/mtk-cpufreq.c                      | 346 +++++++++++++++++++++
 include/linux/cpufreq-dt.h                         |   7 +
 8 files changed, 473 insertions(+), 7 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-mtk.txt
 create mode 100644 drivers/cpufreq/mtk-cpufreq.c


(Continue reading)

Keita Kobayashi | 4 Mar 05:55 2015

[RFC/PATCH 0/6] Add CPUIdle support for Renesas SoCs


These patches add CPUIdle support for Renesas SoCs. 
These patches have been tested on Renesas Gen2 series with
following cases on renesas-devel-20150301-v4.0-rc1 tag.

[Test case]
   a. Lager board(CA15 * 4)
   b. Lager board(CA7 * 4)
   c. Lager board(CA15 * 4 + CA7 *4)
   d. Koelsch board(CA15 * 2)

These cases work fine.

Keita Kobayashi (6):
  cpuidle: renesas: Add CPUIdle Driver for Renesas SoCs
  ARM: shmobile: Change CPUIdle InterFace
  ARM: shmobile: APMU: Add Core-Standby function for CPUIdle
  ARM: shmobile: r8a7791: Add Core-Standby CPUIdle support for r8a7791
  ARM: shmobile: r8a7790: Add Core-Standby CPUIdle support for r8a7790
  ARM: shmobile: Enable Renesas CPUIdle for shmobile_defconfig

 arch/arm/configs/shmobile_defconfig           |   2 +
 arch/arm/mach-shmobile/common.h               |   8 +-
 arch/arm/mach-shmobile/cpuidle.c              |  31 ++++---
 arch/arm/mach-shmobile/platsmp-apmu.c         |  20 ++++-
 arch/arm/mach-shmobile/pm-r8a7790.c           |  55 ++++++++++++
 arch/arm/mach-shmobile/pm-r8a7791.c           |  41 +++++++++
 drivers/cpuidle/Kconfig.arm                   |   8 ++
 drivers/cpuidle/Makefile                      |   1 +
(Continue reading)