[GIT PULL] pwm: Changes for v3.9-rc1

2013-02-24 Thread Thierry Reding
Hi Linus, The following changes since commit d1c3ed669a2d452cacfb48c2d171a1f364dae2ed: Linux 3.8-rc2 (2013-01-02 18:13:21 -0800) are available in the git repository at: git://gitorious.org/linux-pwm/linux-pwm.git tags/for-3.9-rc1 for you to fetch changes up to 30f786170352b8264bc7b61c24827

Re: [PATCH] Media: remove incorrect __exit markups

2013-02-24 Thread Guennadi Liakhovetski
Hi Dmitry On Sun, 24 Feb 2013, Dmitry Torokhov wrote: > Even if bus is not hot-pluggable, the devices can be unbound from the > driver via sysfs, so we should not be using __exit annotations on > remove() methods. The only exception is drivers registered with > platform_driver_probe() which speci

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-24 Thread Asias He
On 02/22/2013 03:02 AM, Milos Vyletel wrote: > When virtio-blk device is resized from host (using block_resize from QEMU) > emit > KOBJ_CHANGE uevent to notify guest about such change. This allows user to have > custom udev rules which would take whatever action if such event occurs. As a > proof

Re: Fwd: Cpu hotplug causes stutter on AMD platform, how can I disable it?

2013-02-24 Thread Mike Galbraith
On Sun, 2013-02-24 at 22:59 +0100, Mario Giammarco wrote: > I have searched on internet and I see that is a problem common to > several AMD platforms. > Even in Microsoft Windows several people have the same problem and > they solved it disabling cool&quiet on bios. It seems that some amd > cpus o

Re: [PATCH] tools: hv: Fix how ifcfg-* file is created

2013-02-24 Thread Tomas Hozza
- Original Message - > On Sun, Jan 13, Tomas Hozza wrote: > > > -# IPADDR=ipaddr1 > > -# IPADDR_1=ipaddr2 > > -# IPADDR_x=ipaddry (where y = x + 1) > > +# IPADDR0=ipaddr1 > > +# IPADDR1=ipaddr2 > > +# IPADDRx=ipaddry (where y = x + 1) > > Before this change it was IPADDR=, now its IPADDR0

[PATCH] rtc: add devm_rtc_device_{register,unregister}()

2013-02-24 Thread Jingoo Han
These functios allows the driver core to automatically clean up any allocation made by rtc drivers. Thus, it simplifies the error paths. Signed-off-by: Jingoo Han --- drivers/rtc/class.c | 72 +++ include/linux/rtc.h |6 2 files changed,

Re: [patch v5 02/15] sched: set initial load avg of new forked task

2013-02-24 Thread Alex Shi
On 02/24/2013 06:57 PM, Preeti U Murthy wrote: >> > diff --git a/kernel/sched/core.c b/kernel/sched/core.c >> > index 26058d0..1452e14 100644 >> > --- a/kernel/sched/core.c >> > +++ b/kernel/sched/core.c >> > @@ -1559,6 +1559,7 @@ static void __sched_fork(struct task_struct *p) >> > #if defined(CO

Re: [PATCH v5 1/3] mfd: syscon: Removed support for unloading

2013-02-24 Thread Dmitry Torokhov
On Mon, Feb 25, 2013 at 10:53:42AM +0400, Alexander Shiyan wrote: > > On Sat, Feb 23, 2013 at 04:51:19PM -0700, Stephen Warren wrote: > > > On 02/22/2013 10:28 PM, Alexander Shiyan wrote: > > > >> On 02/22/2013 10:15 PM, Alexander Shiyan wrote: > > > >>> The driver can be used in various subsystems

[PATCH v2 1/5] W1: w1-gpio - fix incorrect __init/__exit markups

2013-02-24 Thread Dmitry Torokhov
We should not be using __init/__exit markups on probe() and remove() methods unless platform_device_probe() is used, because other methods allow unbinding device through sysfs and these methods should not be discarded. Signed-off-by: Dmitry Torokhov --- Paatch #4 was adjusted according to Ville'

[PATCH 3/5] W1: w1-gpio - guard DT IDs with CONFIG_OF

2013-02-24 Thread Dmitry Torokhov
This fixes the following warning: CC drivers/w1/masters/w1-gpio.o drivers/w1/masters/w1-gpio.c:50:28: warning: ‘w1_gpio_dt_ids’ defined but not used [-Wunused-variable] Also provide stub for w1_gpio_probe_dt() if device tree support is disabled. Signed-off-by: Dmitry Torokhov --- drive

[PATCH 4/5] W1: w1-gpio - rework handling of platform data

2013-02-24 Thread Dmitry Torokhov
The platform data in the dveice structure does not belong to the driver and so it should not be trying to alter it, but instead use a local pointer and populate it with a local copy in case we are dealing with device tree setup. Also allow mixed setups where platform data coexists with device tree

[PATCH 2/5] W1: w1-gpio - switch to using dev_pm_ops

2013-02-24 Thread Dmitry Torokhov
Signed-off-by: Dmitry Torokhov --- drivers/w1/masters/w1-gpio.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c index 799dafd..c45b9ae 100644 --- a/drivers/w1/masters/w1-gpio.c +++ b/drivers/w1/m

[PATCH 5/5] W1: w1-gpio - switch to using managed resources (devm)

2013-02-24 Thread Dmitry Torokhov
This simplifies error unwinding and device teardown. Signed-off-by: Dmitry Torokhov --- drivers/w1/masters/w1-gpio.c | 32 +++- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c index 465ce52..4

Re[2]: [PATCH v5 1/3] mfd: syscon: Removed support for unloading

2013-02-24 Thread Alexander Shiyan
> On Sat, Feb 23, 2013 at 04:51:19PM -0700, Stephen Warren wrote: > > On 02/22/2013 10:28 PM, Alexander Shiyan wrote: > > >> On 02/22/2013 10:15 PM, Alexander Shiyan wrote: > > >>> The driver can be used in various subsystems and therefore should not > > >>> be unloaded when it is defined in the ke

Re: [PATCH] s390/dis: Fix invalid array size

2013-02-24 Thread Heiko Carstens
On Mon, Feb 25, 2013 at 03:45:45AM +0530, Syam Sidhardhan wrote: > We are using sizeof operator for an array given as function argument, > which is incorrect. > > Signed-off-by: Syam Sidhardhan > --- > arch/s390/kernel/dis.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > dif

Re: [PATCH v2 1/5] drivers: phy: add generic PHY framework

2013-02-24 Thread kishon
Hi, On Sunday 24 February 2013 04:14 AM, Rob Landley wrote: On 02/18/2013 11:53:14 PM, Kishon Vijay Abraham I wrote: The PHY framework provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. To

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-24 Thread Jason Liu
Thomas, 2013/2/23 Thomas Gleixner : > On Fri, 22 Feb 2013, Lorenzo Pieralisi wrote: >> On Fri, Feb 22, 2013 at 03:03:02PM +, Thomas Gleixner wrote: >> > On Fri, 22 Feb 2013, Lorenzo Pieralisi wrote: >> > > On Fri, Feb 22, 2013 at 12:07:30PM +, Thomas Gleixner wrote: >> > > > Now we could m

Re: resume fails to light display on Macbook Pro Retina on 3.8-rc1

2013-02-24 Thread Dave Airlie
On Mon, Feb 25, 2013 at 4:06 PM, Dave Airlie wrote: > On Mon, Feb 25, 2013 at 3:52 PM, Greg KH wrote: >> Hi Ben, >> >> My Macbook Pro Retina fails to resume properly on 3.8. I tracked this >> down to commit 6c5a04249d7afeea3e0ed971e7813f84e29a1706 (drm/nvd0/disp: >> move link training helpers in

[PATCH 3/3] cpuset: use cgroup_name() in cpuset_print_task_mems_allowed()

2013-02-24 Thread Li Zefan
Use cgroup_name() instead of cgrp->dentry->name. This makes the code simpler. While at it, remove cpuset_name and make cpuset_nodelist a local variable to cpuset_print_task_mems_allowed(). Signed-off-by: Li Zefan --- kernel/cpuset.c | 32 +--- 1 file changed, 9 inser

[PATCH 2/3] cgroup: add cgroup_name() API

2013-02-24 Thread Li Zefan
cgroup_name() returns the name of a cgroup and it must be called with rcu_read_lock() held. This will be used by cpuset. Signed-off-by: Li Zefan --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 14 ++ 2 files changed, 15 insertions(+) diff --git a/include/linux/cgroup.h

[PATCH v3 1/3] cgroup: fix cgroup_path() vs rename() race

2013-02-24 Thread Li Zefan
rename() will change dentry->d_name. The result of this race can be worse than seeing partially rewritten name, but we might access a stale pointer because rename() will re-allocate memory to hold a longer name. As accessing dentry->name must be protected by dentry->d_lock or parent inode's i_mute

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-24 Thread Santosh Shilimkar
On Saturday 23 February 2013 12:22 AM, Thomas Gleixner wrote: On Fri, 22 Feb 2013, Lorenzo Pieralisi wrote: On Fri, Feb 22, 2013 at 03:03:02PM +, Thomas Gleixner wrote: On Fri, 22 Feb 2013, Lorenzo Pieralisi wrote: On Fri, Feb 22, 2013 at 12:07:30PM +, Thomas Gleixner wrote: Now we co

Re: [RFC] f_pos in readdir() (was Re: [RFC][PATCH] vfs: always protect diretory file->fpos with inode mutex)

2013-02-24 Thread Li Zefan
>> We can fix this bug in each filesystem, but can't we just make sure i_mutex >> is >> acquired in lseek(), read(), write() and readdir() for directory file >> operations? >> >> (the patch is for demonstration only) > > No. This is a very massive overkill. If anything, we want to *reduce* the

Re: resume fails to light display on Macbook Pro Retina on 3.8-rc1

2013-02-24 Thread Dave Airlie
On Mon, Feb 25, 2013 at 3:52 PM, Greg KH wrote: > Hi Ben, > > My Macbook Pro Retina fails to resume properly on 3.8. I tracked this > down to commit 6c5a04249d7afeea3e0ed971e7813f84e29a1706 (drm/nvd0/disp: > move link training helpers into core as display methods) > > Anything I can try to help s

Re: [patch v5 02/15] sched: set initial load avg of new forked task

2013-02-24 Thread Alex Shi
On 02/24/2013 06:57 PM, Preeti U Murthy wrote: > Hi Alex, > > On 02/20/2013 11:50 AM, Alex Shi wrote: >> On 02/18/2013 01:07 PM, Alex Shi wrote: >>> New task has no runnable sum at its first runnable time, so its >>> runnable load is zero. That makes burst forking balancing just select >>> few idl

resume fails to light display on Macbook Pro Retina on 3.8-rc1

2013-02-24 Thread Greg KH
Hi Ben, My Macbook Pro Retina fails to resume properly on 3.8. I tracked this down to commit 6c5a04249d7afeea3e0ed971e7813f84e29a1706 (drm/nvd0/disp: move link training helpers into core as display methods) Anything I can try to help solve this? Note, I'm using the Intel driver as the main cont

[PATCH v3] backlight: add new LP8788 backlight driver

2013-02-24 Thread Kim, Milo
TI LP8788 PMU supports regulators, battery charger, RTC, ADC, backlight driver and current sinks. This patch enables LP8788 backlight module. (Brightness mode) The brightness is controlled by PWM input or I2C register. All modes are supported in the driver. (Platform data) Configurable data can b

[PATCH RESEND 2/3] e1000e: fix runtime power management transitions

2013-02-24 Thread Konstantin Khlebnikov
This patch removes redundant actions from driver and fixes its interaction with actions in pci-bus runtime power management code. It removes pci_save_state() from __e1000_shutdown() for normal adapters, PCI bus callbacks pci_pm_*() will do all this for us. Now __e1000_shutdown() switches to D3-sta

[PATCH RESEND 3/3] e1000e: fix accessing to suspended device

2013-02-24 Thread Konstantin Khlebnikov
This patch fixes some annoying messages like 'Error reading PHY register' and 'Hardware Erorr' and saves several seconds on reboot. Signed-off-by: Konstantin Khlebnikov Acked-by: Rafael J. Wysocki Cc: e1000-de...@lists.sourceforge.net Cc: Jeff Kirsher Cc: Bruce Allan --- drivers/net/ethernet/

[PATCH RESEND 1/3] e1000e: fix pci-device enable-counter balance

2013-02-24 Thread Konstantin Khlebnikov
This patch removes redundant and unbalanced pci_disable_device() from __e1000_shutdown(). pci_clear_master() is enough, device can go into suspended state with elevated enable_cnt. Bug was introduced in commit 23606cf5d1192c2b17912cb2ef6e62f9b11de133 ("e1000e / PCI / PM: Add basic runtime PM suppo

[PATCH RESEND 0/3] e1000e: return runtime-pm back to work

2013-02-24 Thread Konstantin Khlebnikov
here some fixes for e1000e driver from: https://lkml.org/lkml/2013/2/4/185 The rest patches from that patchset already committed. --- Konstantin Khlebnikov (3): e1000e: fix pci-device enable-counter balance e1000e: fix runtime power management transitions e1000e: fix accessing t

Re: [PATCH v2] slub: correctly bootstrap boot caches

2013-02-24 Thread Joonsoo Kim
Hello, Christoph. On Sun, Feb 24, 2013 at 12:35:22AM +, Christoph Lameter wrote: > On Sat, 23 Feb 2013, JoonSoo Kim wrote: > > > With flushing, deactivate_slab() occur and it has some overhead to > > deactivate objects. > > If my patch properly fix this situation, it is better to use mine > >

linux-next: Tree for Feb 23

2013-02-24 Thread Stephen Rothwell
Hi all, Please do not add any work destined for v3.10 to your -next included branches until after Linus has release v3.9-rc1. Changes since 20130222: The metag tree gained a conflict against Linus' tree. The kbuild tree gained a build failure so I used the version from next-20130222. The drm t

Re: [PATCH 0/8] correct load_balance()

2013-02-24 Thread Joonsoo Kim
On Thu, Feb 14, 2013 at 02:48:33PM +0900, Joonsoo Kim wrote: > Commit 88b8dac0 makes load_balance() consider other cpus in its group. > But, there are some missing parts for this feature to work properly. > This patchset correct these things and make load_balance() robust. > > Others are related t

Re: [PATCH] ACPI: Add sysfs links from memory device to memblocks

2013-02-24 Thread Yasuaki Ishimatsu
Hi Toshi, 2013/02/23 4:42, Toshi Kani wrote: > In order to eject a memory device object represented as "PNP0C80:%d" > in sysfs, its associated memblocks (system/memory/memory%d) need to > be off-lined. However, there is no user friendly way to correlate > between a memory device object and its me

[PATCH v2 1/2] ima: "remove enforce checking duplication" merge fix

2013-02-24 Thread Mimi Zohar
Commit "750943a ima: remove enforce checking duplication" combined the 'in IMA policy' and 'enforcing file integrity' checks. For the non-file, kernel module verification, a specific check for 'enforcing file integrity' was not added. This patch adds the check. Signed-off-by: Mimi Zohar --- se

[PATCH v2 2/2] block: fix part_pack_uuid() build error

2013-02-24 Thread Mimi Zohar
Commit "85865c1 ima: add policy support for file system uuid" introduced a CONFIG_BLOCK dependency. This patch defines a wrapper called blk_part_pack_uuid(), which returns -EINVAL, when CONFIG_BLOCK is not defined. security/integrity/ima/ima_policy.c:538:4: error: implicit declaration of function

[PATCH v2 0/2] bug fixes for Linus

2013-02-24 Thread Mimi Zohar
Both of these patches are bug fixes for patches, which were upstreamed in this open window. The first patch addresses a merge issue. The second patch addresses a CONFIG_BLOCK dependency. thanks, Mimi Mimi Zohar (2): ima: "remove enforce checking duplication" merge fix block: fix part_pack_

Re: [PATCHv6 4/8] zswap: add to mm/

2013-02-24 Thread Joonsoo Kim
Hello, Seth. Here comes minor comments. On Wed, Feb 20, 2013 at 04:04:44PM -0600, Seth Jennings wrote: > zswap is a thin compression backend for frontswap. It receives > pages from frontswap and attempts to store them in a compressed > memory pool, resulting in an effective partial memory reclaim

Re: [PATCH] perf report: Add option to collapse undesired parts of call graph

2013-02-24 Thread Greg Price
On Fri, Jan 11, 2013 at 02:27:36AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Dec 07, 2012 at 02:30:44AM -0500, Greg Price escreveu: > > If an application has an expensive function implemented with a large > > tree of calls to helper functions, the default call-graph presentation > > will be

Re: [PATCH RFC] pwm: add sysfs interface

2013-02-24 Thread Greg KH
On Tue, Feb 19, 2013 at 03:27:41PM +0100, Lars Poeschel wrote: > +static int pwmchip_export(struct pwm_chip *chip) > +{ > + int status; > + struct device *dev; > + > + mutex_lock(&sysfs_lock); > + dev = device_create(&pwm_class, chip->dev, MKDEV(0, 0), chip, > +

Re: [PATCH RFC] pwm: add sysfs interface

2013-02-24 Thread Greg KH
On Tue, Feb 19, 2013 at 03:27:41PM +0100, Lars Poeschel wrote: > From: Lars Poeschel > > This adds a simple sysfs interface to the pwm subsystem. It is > heavily inspired by the gpio sysfs interface. > > /sys/class/pwm > /export ... asks the kernel to export a PWM to user

Re: [PATCH] cpufreq: highbank: do not initialize array with a loop

2013-02-24 Thread Viresh Kumar
On Sun, Feb 24, 2013 at 10:31 PM, Emilio López wrote: > As uninitialized array members will be initialized to zero, we can > avoid using a for loop by setting a value to it. > > Signed-off-by: Emilio López > --- > Note that I don't own any device using this driver, it has only been compile > test

linux-next: manual merge of the akpm tree with the vfs tree

2013-02-24 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in fs/sysfs/bin.c between commit 496ad9aa8ef4 ("new helper: file_inode (file)") from the vfs tree and commit "hlist: drop the node parameter from iterators" from the akpm tree. I fixed it up (see below) and can carry the fix as n

[PATCH] SPI: spi-ppc4xx - remove incorrect __exit markup

2013-02-24 Thread Dmitry Torokhov
Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes. Signed-off-by: D

[PATCH] Regulator: db8500-prcmu - remove incorrect __exit markup

2013-02-24 Thread Dmitry Torokhov
Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes. Signed-off-by: D

Re: [patch v5 09/15] sched: add power aware scheduling in fork/exec/wake

2013-02-24 Thread Mike Galbraith
On Mon, 2013-02-25 at 10:23 +0800, Alex Shi wrote: > One of problem is the how to decide the criteria of the burst? If we set > 5 waking up/ms is burst, we will lose 4 waking up/ms. > another problem is the burst detection cost, we need tracking a period > history info of the waking up, better on

[PATCH] Media: remove incorrect __exit markups

2013-02-24 Thread Dmitry Torokhov
Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes. Signed-off-by: D

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

2013-02-24 Thread Zhang Rui
On Sun, 2013-02-24 at 15:34 +0100, Borislav Petkov wrote: > On Sun, Feb 24, 2013 at 12:42:55PM +0100, Peter Feuerer wrote: > > Please test my last patch with the 4 trip points ;) - even if you > > don't really like it, it is working great! - And to be honest, I still > > prefer this solution! > >

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

2013-02-24 Thread Zhang Rui
On Sun, 2013-02-24 at 13:09 +0100, Borislav Petkov wrote: > On Sun, Feb 24, 2013 at 12:42:55PM +0100, Peter Feuerer wrote: > > Hi Boris, > > > > thanks for your best wishes in the last mail, I'm feeling little better now. > > Nice :) > > > Please test my last patch with the 4 trip points ;) - ev

[PATCH 1/1] scripts/package/Makefile: compare objtree with srctree instead of test KBUILD_OUTPUT

2013-02-24 Thread Bin Wang
KBUILD_OUTPUT is always empty here, so it is useless to test it. But while use O=.., objtree and srctree will be different. I compare them instead. Signed-off-by: Bin Wang --- scripts/package/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/Makefile b/

[PATCH] scripts/package/Makefile: compare objtree with srctree instead of test KBUILD_OUTPUT

2013-02-24 Thread Bin Wang
KBUILD_OUTPUT is always empty here, so it is useless to test it. But while use O=.., objtree and srctree will be different. I compare them instead. --- scripts/package/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/Makefile b/scripts/package/Makefile i

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

2013-02-24 Thread Zhang Rui
On Sun, 2013-02-24 at 12:42 +0100, Peter Feuerer wrote: > Hi Boris, > > thanks for your best wishes in the last mail, I'm feeling little better now. > > Borislav Petkov writes: > > > On Sat, Feb 23, 2013 at 08:20:10PM +0100, Borislav Petkov wrote: > >> From: Borislav Petkov > >> > >> The new s

Re: [PATCH 1/2] ima: "remove enforce checking duplication" merge fix

2013-02-24 Thread James Morris
On Sun, 24 Feb 2013, Mimi Zohar wrote: > Commit "750943a ima: remove enforce checking duplication" combined > the 'in IMA policy' and 'enforcing file integrity' checks. For > the non-file, kernel module verification, a specific check for > 'enforcing file integrity' was not added. This patch add

Re: [PATCH] block: fix part_pack_uuid() build error

2013-02-24 Thread James Morris
On Sun, 24 Feb 2013, Mimi Zohar wrote: > Fix a build error when CONFIG_BLOCK is not enabled, by defining > a wrapper called blk_part_pack_uuid(). The wrapper returns > -EINVAL, when CONFIG_BLOCK is not defined. Please indicate which tree your patches are intended for, also noting specific regre

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

2013-02-24 Thread Zhang Rui
On Sun, 2013-02-24 at 12:28 +0100, Borislav Petkov wrote: > On Sat, Feb 23, 2013 at 08:20:10PM +0100, Borislav Petkov wrote: > > From: Borislav Petkov > > > > The new step_wise thermal governor wasn't able to handle the one-trip > > point design of acerhdf where we want to turn off the fan if we

Re: [Bug fix PATCH 2/2] acpi, movablemem_map: Make whatever nodes the kernel resides in un-hotpluggable.

2013-02-24 Thread Tang Chen
On 02/24/2013 03:26 AM, Rob Landley wrote: On 02/20/2013 05:00:56 AM, Tang Chen wrote: There could be several memory ranges in the node in which the kernel resides. When using movablemem_map=acpi, we may skip one range that have memory reserved by memblock. But if it is too small, then the kerne

Re: [PATCHv5 7/8] zswap: add swap page writeback support

2013-02-24 Thread Minchan Kim
Hi Seth, On Wed, Feb 13, 2013 at 12:38:50PM -0600, Seth Jennings wrote: > This patch adds support for evicting swap pages that are currently > compressed in zswap to the swap device. This functionality is very > important and make zswap a true cache in that, once the cache is full > or can't grow

[rebased-again][PATCH 0/4] acpi: do some changes for numa info

2013-02-24 Thread liguang
just do some trivial changes to make acpi's numa info operation more cleaner. ChangeLog v3->v4 1.fix srat_disabled function spotted by Yasuaki Ishimatsu v2->v3 1. rebase on linux-next 2. bring back lost Makefile changes spotted by David Rientjes spotted by Yasuaki Ishimatsu v1->v2 1.

[rebased-again][PATCH 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-24 Thread liguang
srat table should present only on acpi domain, seems mm/ is not the right place for it. Reviewed-by: Yasuaki Ishimatsu Signed-off-by: liguang --- arch/x86/kernel/acpi/Makefile |1 + arch/x86/kernel/acpi/srat.c | 284 + arch/x86/mm/Makefile

Re: [rebased][PATCH 1/4] acpi: move x86/mm/srat.c to x86/kernel/acpi/srat.c

2013-02-24 Thread li guang
在 2013-02-22五的 12:57 -0800,David Rientjes写道: > On Fri, 22 Feb 2013, liguang wrote: > > > srat table should present only on acpi domain, > > seems mm/ is not the right place for it. > > > > Reviewed-by: Yasuaki Ishimatsu > > Signed-off-by: liguang > > This is not rebased, it does not have 4819e

Re: [patch v5 06/15] sched: log the cpu utilization at rq

2013-02-24 Thread Alex Shi
On 02/20/2013 11:22 PM, Peter Zijlstra wrote: > On Wed, 2013-02-20 at 22:33 +0800, Alex Shi wrote: >>> You don't actually compute the rq utilization, you only compute the >>> utilization as per the fair class, so if there's significant RT >> activity >>> it'll think the cpu is under-utilized, whihc

Re: [patch v5 09/15] sched: add power aware scheduling in fork/exec/wake

2013-02-24 Thread Alex Shi
On 02/25/2013 01:51 AM, Preeti U Murthy wrote: > Hi, > > On 02/24/2013 02:57 PM, Alex Shi wrote: >> On 02/22/2013 04:54 PM, Peter Zijlstra wrote: >>> On Thu, 2013-02-21 at 22:40 +0800, Alex Shi wrote: > The name is a secondary issue, first you need to explain why you think > nr_runnin

Re: [PATCH 1/2] vfio powerpc: enabled on powernv platform

2013-02-24 Thread Paul Mackerras
On Mon, Feb 11, 2013 at 03:16:43PM -0700, Alex Williamson wrote: > > Why do these all return long (vs int)? Is this a POWER-ism? On ppc64 the compiler tends to generate slightly shorter code with longs than with ints. The reason is that with ints the compiler has to put in "extend sign word" in

[PATCH V2] lib: devres: Fix misplaced #endif

2013-02-24 Thread Jingoo Han
A misplaced #endif causes link errors related to pcim_*() functions. This is because pcim_*() functions are related to CONFIG_PCI option, however these are not related to CONFIG_HAS_IOPORT option. Therefore, when CONFIG_PCI is enabled and CONFIG_HAS_IOPORT is not enabled, it makes link errors rela

Re: [PATCH] lib: devres: Fix misplaced #endif

2013-02-24 Thread Jingoo Han
On Saturday, February 23, 2013 6:44 AM, Andrew Morton wrote: > > On Fri, 22 Feb 2013 14:39:40 +0900 > Jingoo Han wrote: > > > A misplaced #endif causes link errors related to pcim_*() functions. > > > > --- a/lib/devres.c > > +++ b/lib/devres.c > > @@ -227,6 +227,7 @@ void devm_ioport_unmap(stru

Re: [PATCH v2] mm: remove MIGRATE_ISOLATE check in hotpath

2013-02-24 Thread Minchan Kim
Hi Andrew, Sorry for late reply and I totally missed it. :( On Tue, Jan 15, 2013 at 03:36:25PM -0800, Andrew Morton wrote: > On Tue, 15 Jan 2013 09:16:46 +0900 > Minchan Kim wrote: > > > Now mm several functions test MIGRATE_ISOLATE and some of those > > are hotpath but MIGRATE_ISOLATE is used

[PATCH] tty vt: fix character insertion overflow

2013-02-24 Thread Nicolas Pitre
Commit 81732c3b2f (tty vt: Fix line garbage in virtual console on command line edition) broke insert_char() in multiple ways. Then commit b1a925f44a (tty vt: Fix a regression in command line edition) partially fixed it. However, the buffer being moved is still too large and overflowing beyond the

[PATCH 1/7] perf, x86: Reduce lbr_sel_map size

2013-02-24 Thread Yan, Zheng
From: "Yan, Zheng" The index of lbr_sel_map is bit value of perf branch_sample_type. By using bit shift as index, we can reduce lbr_sel_map size. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event.h | 4 +++ arch/x86/kernel/cpu/perf_event_intel_lbr.c | 50 ++---

[PATCH 6/7] perf, x86: Use LBR call stack to get user callchain

2013-02-24 Thread Yan, Zheng
From: "Yan, Zheng" Try enabling the LBR call stack feature if event request recording callchain. Try utilizing the LBR call stack to get user callchain in case of there is no frame pointer. This patch also adds a cpu pmu attribute to enable/disable this feature. Signed-off-by: Yan, Zheng ---

[PATCH 7/7] perf, x86: Discard zero length call entries in LBR call stack

2013-02-24 Thread Yan, Zheng
From: "Yan, Zheng" "Zero length call" uses the attribute of the call instruction to push the immediate instruction pointer on to the stack and then pops off that address into a register. This is accomplished without any matching return instruction. It confuses the hardware and make the recorded c

[PATCH 3/7] perf, x86: Introduce x86 special perf event context

2013-02-24 Thread Yan, Zheng
From: "Yan, Zheng" The x86 special perf event context is named x86_perf_event_context, We can enlarge it later to store PMU special data. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event.c | 12 arch/x86/kernel/cpu/perf_event.h | 4 include/linux/perf_event.h

[PATCH 2/7] perf, x86: Basic Haswell LBR call stack support

2013-02-24 Thread Yan, Zheng
From: "Yan, Zheng" The new HSW call stack feature provides a facility such that unfiltered call data will be collected as normal, but as return instructions are executed the last captured branch record is popped from the LBR stack. Thus, branch information relative to leaf functions will not be c

[PATCH 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-02-24 Thread Yan, Zheng
From: "Yan, Zheng" When the LBR call stack is enabled, it is necessary to save/restore the stack on context switch. The solution is saving/restoring the stack to/from task's perf event context. If task has no perf event context, just flush the stack on context switch. Signed-off-by: Yan, Zheng

[PATCH V3 0/7] perf, x86: Haswell LBR call stack support

2013-02-24 Thread Yan, Zheng
From: "Yan, Zheng" Haswell has a new feature that utilizes the existing Last Branch Record facility to record call chains. When the feature is enabled, function call will be collected as normal, but as return instructions are executed the last captured branch record is popped from the on-chip LBR

[PATCH 5/7] perf, core: Pass perf_sample_data to perf_callchain()

2013-02-24 Thread Yan, Zheng
From: "Yan, Zheng" New Intel CPU can record call chains by using existing last branch record facility. perf_callchain_user() can make use of the call chains recorded by hardware in case of there is no frame pointer. Signed-off-by: Yan, Zheng --- arch/arm/kernel/perf_event.c | 4 ++-- arch/

[PATCH V2] backlight: ams369fg06: convert ams369fg06 to dev_pm_ops

2013-02-24 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- Changes since v1: - Remove unnecessary ifdefs. drivers/video/backlight/ams369fg06.c | 21 ++--- 1 files changed, 10 inser

Re: [PATCH] backlight: ams369fg06: convert ams369fg06 to dev_pm_ops

2013-02-24 Thread Jingoo Han
On Saturday, February 23, 2013 6:26 AM, Andrew Morton wrote: > > On Fri, 22 Feb 2013 19:42:59 +0900 > Jingoo Han wrote: > > > Instead of using legacy suspend/resume methods, using newer dev_pm_ops > > structure allows better control over power management. > > > > ... > > > > @@ -571,12 +571,13 @

[GIT PULL] f2fs updates for v3.9 merge window

2013-02-24 Thread Jaegeuk Kim
Hi Linus, Please pull for v3.9. Thanks, The following changes since commit 836dc9e3fbbab0c30aa6e664417225f5c1fb1c39: Linux 3.8-rc7 (2013-02-09 08:20:39 +1100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git tags/f2fs-for-3.9 for you t

Re: [PATCH] infiniband-diags/saquery.c: switchinfo support added

2013-02-24 Thread Ira Weiny
On Sun, 24 Feb 2013 10:22:47 +0200 "Husam Kahalah" wrote: > Thank you for your time, I have the following notes: > I plan to add support for more records other than switchInfoRecord like > smInfo, multipath, nodeInfo That would be great! > I plan also to add component filter to those records a

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

2013-02-24 Thread Stephen Rothwell
Hi Wim, Today's linux-next merge of the watchdog tree got a conflict in drivers/rtc/rtc-stmp3xxx.c between commit c8a6046e1e0b ("drivers/rtc: use of_match_ptr() macro") from Linus' tree and commit e02f5cf6b648 ("rtc: stmp3xxx: add wdt-accessor function") from the watchdog tree. I fixed it up (see

[GIT PULL] VFIO updates for v3.9-rc1

2013-02-24 Thread Alex Williamson
Hi Linus, Please pull for v3.9-rc1. Thanks, Alex The following changes since commit 323a72d83c9b2963bd1e46c8e6963e468d4658d7: Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2013-02-13 12:21:07 -0800) are available in the git repository at: git://github.com/awilliam/linu

Re: [PATCH v2] kexec: Use min_t to simplify logic

2013-02-24 Thread Simon Horman
On Sun, Feb 24, 2013 at 10:37:21PM +0800, Zhang Yanfei wrote: > From: Zhang Yanfei > > This is just a tweak: using min_t to simplify logic of variable > assignments. > > v2: > - Rewrite patch description as Simon suggested. > - Fix an inappropriate if test introduced by v1. Thanks Simon. Hi Zha

igb: NULL pointer dereference

2013-02-24 Thread Alex Williamson
On Linus' current tree I get the the oops below. I realize I'm still using the deprecated max_vfs= module option, but this isn't a very compatible or friendly migration path. I'm using an 82576 PF as an interface for connecting an iscsi root disk and I also use the VF off this interface for misc

Re: [PATCH EDAC 03/13] ghes: add the needed hooks for EDAC error report

2013-02-24 Thread Huang Ying
On Fri, 2013-02-22 at 05:57 -0300, Mauro Carvalho Chehab wrote: > Em Fri, 22 Feb 2013 05:50:21 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Fri, 22 Feb 2013 08:45:11 +0800 > > Huang Ying escreveu: > > > > > On Thu, 2013-02-21 at 09:04 -0300, Mauro Carvalho Chehab wrote: > > > > Em Thu, 21 F

Re: [PATCH] iommu: making IOMMU sysfs nodes API public

2013-02-24 Thread David Gibson
On Thu, Feb 21, 2013 at 09:11:13PM -0700, Alex Williamson wrote: > On Fri, 2013-02-22 at 11:04 +1100, David Gibson wrote: > > On Tue, Feb 19, 2013 at 01:11:51PM -0700, Alex Williamson wrote: > > > On Tue, 2013-02-19 at 18:38 +1100, David Gibson wrote: > > > > On Mon, Feb 18, 2013 at 10:24:00PM -070

Re: [GIT PULL] KVM updates for the 3.9 merge window

2013-02-24 Thread Linus Torvalds
On Wed, Feb 20, 2013 at 5:17 PM, Marcelo Tosatti wrote: > > Please pull from > > git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/kvm-3.9-1 > > to receive the KVM updates for the 3.9 merge window [..] Ok, particularly the s390 people should check me resolution of the conflicts, since they inclu

Re: [PATCH] i2c: s3c2410: check for NULL pinctrl handle

2013-02-24 Thread Tomasz Figa
Hi, On Monday 25 of February 2013 00:16:49 Heiko Stübner wrote: > Am Sonntag, 24. Februar 2013, 23:39:44 schrieb Linus Walleij: > > On Sun, Feb 24, 2013 at 6:00 PM, Tomasz Figa wrote: > > >> > Note that we are talking here about a temporary solution. The > > >> > legacy > > >> > DT- based pin co

linux-next: build failure after merge of the kbuild tree

2013-02-24 Thread Stephen Rothwell
Hi Michal, After merging the kbuild tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: scripts/link-vmlinux.sh: line 135: .: .config: file not found Presumably caused by commit 03b25b47e0f4 ("scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG"). I have used th

Re: [PATCH v2 2/3] freezer: do not send a fake signal to a PF_DUMPCORE thread

2013-02-24 Thread Rafael J. Wysocki
On Sunday, February 24, 2013 07:36:56 PM Oleg Nesterov wrote: > A coredumping thread can't be frozen anyway but the fake signal sent > by freeze_task() can confuse dump_write/wait_for_dump_helpers/etc > and interrupt the coredump. > > We are going to make the do_coredump() paths freezable but the

Re: [PATCH] i2c: s3c2410: check for NULL pinctrl handle

2013-02-24 Thread Heiko Stübner
Am Sonntag, 24. Februar 2013, 23:39:44 schrieb Linus Walleij: > On Sun, Feb 24, 2013 at 6:00 PM, Tomasz Figa wrote: > >> > Note that we are talking here about a temporary solution. The legacy > >> > DT- based pin configuration will go away after all the DT-enabled > >> > platforms using this drive

[PATCH] dma: imx-dma: Remove redundant NULL check before kfree

2013-02-24 Thread Syam Sidhardhan
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan --- drivers/dma/imx-dma.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 70b8975..0988583 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c

Re: [PATCH] pinctrl: return real error codes when pinctrl is not included

2013-02-24 Thread Heiko Stübner
Am Sonntag, 24. Februar 2013, 23:42:32 schrieb Linus Walleij: > On Sun, Feb 24, 2013 at 11:34 PM, Heiko Stübner wrote: > > [Me] > > > >> This make me suspect that you have this ugly patch in some > >> private repo and I will be seeing it again and again :-( > > > > All my s3c24xx work is done is

Re: [PATCH] pinctrl: return real error codes when pinctrl is not included

2013-02-24 Thread Heiko Stübner
Am Sonntag, 24. Februar 2013, 01:40:58 schrieb Linus Walleij: > On Sat, Feb 23, 2013 at 6:56 PM, Heiko Stübner wrote: > > Currently the fallback functions when pinctrl is not being built do > > return either NULL or 0, either no pinctrl handle or no error, > > making them fail silently. > > > > A

Re: [git pull] signal.git

2013-02-24 Thread James Bottomley
On Sat, 2013-02-23 at 18:56 -0800, Linus Torvalds wrote: > Ok, in the meantime I had merged the parisc and powerpc trees, which > had their own fixes in this area: powerpc added the transactional > memory support for power8 (which impacted signal save/restore), and > parisc had some fixes to the ro

[PATCH] s3c-adc-battery: Fix possible NULL pointer dereference

2013-02-24 Thread Syam Sidhardhan
Check for (bat == NULL) has to be done before accessing bat Signed-off-by: Syam Sidhardhan --- drivers/power/s3c_adc_battery.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/power/s3c_adc_battery.c b/drivers/power/s3c_adc_battery.c index d2ca989..5948ce0 10

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

2013-02-24 Thread Stephen Rothwell
Hi James, Today's linux-next merge of the metag tree got a conflict in mm/page_alloc.c between commit 22b751c3d037 ("mm: rename page struct field helpers") from Linus' tree and commit 373d4d099761 ("taint: add explicit flag to show whether lock dep is still OK") from the metag tree. I fixed it up

Re: [PATCH] pinctrl: return real error codes when pinctrl is not included

2013-02-24 Thread Linus Walleij
On Sun, Feb 24, 2013 at 11:34 PM, Heiko Stübner wrote: > [Me] >> This make me suspect that you have this ugly patch in some >> private repo and I will be seeing it again and again :-( > > All my s3c24xx work is done is my spare time, so I have to confess I came up > with this "ugly patch" all by

Re: [PATCH] i2c: s3c2410: check for NULL pinctrl handle

2013-02-24 Thread Linus Walleij
On Sun, Feb 24, 2013 at 6:00 PM, Tomasz Figa wrote: >> > Note that we are talking here about a temporary solution. The legacy >> > DT- based pin configuration will go away after all the DT-enabled >> > platforms using this driver get migrated to pin control and so will >> > the need to check if p

linux-next: please clean up

2013-02-24 Thread Stephen Rothwell
Hi all, As your work is merged by upstream trees, please clean up your linux-next included branches. A big thanks to those who already do this in a timely fashion. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpaaDtRS04nC.pgp Description: PGP signature

  1   2   >