[PATCH 3/9] f2fs: remove redundant lock_page calls

2013-03-31 Thread Jaegeuk Kim
In get_node_page, we do not need to call lock_page all the time. If the node page is cached as uptodate, 1. grab_cache_page locks the page, 2. read_node_page unlocks the page, and 3. lock_page is called for further process. Let's avoid this. Signed-off-by: Jaegeuk Kim --- fs/f2fs/node.c | 63

[PATCH 4/9] f2fs: allocate new segment aligned with sections

2013-03-31 Thread Jaegeuk Kim
When allocating a new segment under the LFS mode, we should keep the section boundary. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 179a13e..b3486f3 100644 --- a/fs/f2fs/segment.

[PATCH 5/9] f2fs: change GC bitmaps to apply the section granularity

2013-03-31 Thread Jaegeuk Kim
This patch removes a bitmap for victim segments selected by foreground GC, and modifies the other bitmap for victim segments selected by background GC. 1) foreground GC bitmap : We don't need to manage this, since we just only one previous victim section number instead of the whole victim hist

[PATCH 1/9] f2fs: do not use duplicate names in a macro

2013-03-31 Thread Jaegeuk Kim
A macro should not use duplicate parameter names. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index e399bd4..c0d7740 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.

[PATCH 7/9] f2fs: allocate remained free segments in the LFS mode

2013-03-31 Thread Jaegeuk Kim
This patch adds a new condition that allocates free segments in the current active section even if SSR is needed. Otherwise, f2fs cannot allocate remained free segments in the section since SSR finds dirty segments only. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 13 + 1 file

[PATCH 8/9] f2fs: avoid race for summary information

2013-03-31 Thread Jaegeuk Kim
In order to do GC more reliably, I'd like to lock the vicitm summary page until its GC is completed, and also prevent any checkpoint process. Signed-off-by: Jaegeuk Kim --- fs/f2fs/gc.c| 8 +--- fs/f2fs/node.c | 2 +- fs/f2fs/super.c | 7 +-- 3 files changed, 7 insertions(+), 10 del

[PATCH 6/9] f2fs: check completion of foreground GC

2013-03-31 Thread Jaegeuk Kim
The foreground GCs are triggered under not enough free sections. So, we should not skip moving valid blocks in the victim segments. Signed-off-by: Jaegeuk Kim --- fs/f2fs/gc.c | 46 ++ 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/fs/

[PATCH 9/9] f2fs: fix the bitmap consistency of dirty segments

2013-03-31 Thread Jaegeuk Kim
Like below, there are 8 segment bitmaps for SSR victim candidates. enum dirty_type { DIRTY_HOT_DATA, /* dirty segments assigned as hot data logs */ DIRTY_WARM_DATA,/* dirty segments assigned as warm data logs */ DIRTY_COLD_DATA,/* dirty segments assi

[PATCH 2/9] f2fs: introduce TOTAL_SECS macro

2013-03-31 Thread Jaegeuk Kim
Let's use a macro to get the total number of sections. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 7 +++ fs/f2fs/segment.c | 19 +-- fs/f2fs/segment.h | 1 + 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 025

Re: s390x: kernel BUG at fs/ext4/inode.c:1591!

2013-03-31 Thread Dmitry Monakhov
On Mon, 1 Apr 2013 02:30:47 -0400 (EDT), CAI Qian wrote: > > > - Original Message - > > From: "Dmitry Monakhov" > > To: "CAI Qian" , "Theodore Ts'o" > > Cc: "LKML" , "linux-s390" > > , "Steve Best" > > , linux-e...@vger.kernel.org > > Sent: Monday, April 1, 2013 2:07:35 PM > > Subject

[PATCH] kprobe: initialize kprobe_blacklist when it is used firstly

2013-03-31 Thread Joonsoo Kim
Currently, initializing kprobe_blacklist is done during boot process. It takes 230 ms on our android platform and this is significant amount for our use case. We can disable CONFIG_KPROBES for production kernel, but it is hassle. This kprobe functionality is not commonly used, so we don't need to p

Re: [PATCH] sparc: Use generic idle loop

2013-03-31 Thread Srivatsa S. Bhat
On 03/30/2013 01:59 AM, Sam Ravnborg wrote: > Add generic cpu_idle support > > sparc32: > - replace call to cpu_idle() with cpu_startup_entry() > - add arch_cpu_idle() > > sparc64: > - smp_callin() includes cpu_startup_entry() call so we can > skip calling cpu_idle from assembler > - add arch_c

Re: [PATCH 1/2] pwm: mxs: Remove unused *dev from struct mxs_pwm_chip

2013-03-31 Thread Shawn Guo
On Mon, Apr 01, 2013 at 10:48:13AM +0800, Axel Lin wrote: > Signed-off-by: Axel Lin Acked-by: Shawn Guo > --- > drivers/pwm/pwm-mxs.c |2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c > index a53d309..23d5180 100644 > --- a/drivers/pwm/

Re: [PATCH] cpufreq: cpufreq-cpu0: Call CPUFREQ_POSTCHANGE notifier for failure cases too

2013-03-31 Thread Shawn Guo
On Sat, Mar 30, 2013 at 07:48:07PM +0530, Viresh Kumar wrote: > Currently we are simply returning from target() if we encounter some error > after > broadcasting CPUFREQ_PRECHANGE notifier. Which looks to be wrong as others > might > depend on POSTCHANGE notifier for their functioning. > > So, b

Re: [PATCH 5/5] sched: limit sched_slice if it is more than sysctl_sched_latency

2013-03-31 Thread Preeti U Murthy
Hi Joonsoo, On 04/01/2013 10:39 AM, Joonsoo Kim wrote: > Hello Preeti. > So we should limit this possible weird situation. >>> >>> Signed-off-by: Joonsoo Kim >>> >>> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >>> index e232421..6ceffbc 100644 >>> --- a/kernel/sched/fair.c >>> +++ b/ke

Re: [PATCH 21/21] power: fix invalid free of devm_ allocated data

2013-03-31 Thread Anton Vorontsov
On Thu, Mar 28, 2013 at 02:51:59AM +0200, Andrei Epure wrote: > The objects allocated by devm_* APIs are managed by devres and are freed when > the device is detached. Hence there is no need to use kfree() explicitly. > Patch found using coccinelle. > > Signed-off-by: Andrei Epure > --- Jingoo H

Re: [PATCH] power: resource_size() instead of computation

2013-03-31 Thread Anton Vorontsov
On Wed, Mar 27, 2013 at 11:53:47PM +0200, Andrei Epure wrote: > Patch found using coccinelle. > > Signed-off-by: Andrei Epure > --- Silviu-Mihai Popescu sent a similar patch ealier, but I added your Signed-off-by to the commit. > drivers/power/goldfish_battery.c |2 +- > 1 file changed, 1

Re: [PATCH] cpufreq: cpufreq-cpu0: No need to check cpu number in init()

2013-03-31 Thread Shawn Guo
On Sat, Mar 30, 2013 at 06:26:29PM +0530, Viresh Kumar wrote: > It is not possible for init() to be called for any cpu other than cpu0. During > bootup whatever cpu is used to boot system will be assigned as cpu0. And later > on policy->cpu can only change if we hotunplug all cpus first and then ho

Re: [PATCH] drivers: power: goldfish: use resource_size()

2013-03-31 Thread Anton Vorontsov
On Sun, Mar 17, 2013 at 10:01:34AM +0200, Silviu-Mihai Popescu wrote: > This uses the resource_size() function instead of explicit computation. > > Signed-off-by: Silviu-Mihai Popescu > --- Applied, thanks! Anton -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH] power: 88pm860x: fix invalid free of devm_* allocated data

2013-03-31 Thread Anton Vorontsov
On Sun, Mar 17, 2013 at 08:18:43AM +0200, Silviu-Mihai Popescu wrote: > The objects allocated by devm_* APIs are managed by devres and are freed > when the device is detached. There is no need to use kfree() explicitly. > > Signed-off-by: Silviu-Mihai Popescu > --- Jingoo Han sent a similar patc

Re: [PATCH] power: lp8788: use PAGE_SIZE for the sysfs read operation

2013-03-31 Thread Anton Vorontsov
On Fri, Mar 15, 2013 at 12:19:29AM +, Kim, Milo wrote: > The sysfs allocates PAGE_SIZE. It is used by each R/W operation method. > Use it instead of another buffer size. > > Signed-off-by: Milo(Woogyom) Kim > --- Applied, thanks! Anton -- To unsubscribe from this list: send the line "unsubs

[PATCH v2] davinci: vpif: add pm_runtime support

2013-03-31 Thread Prabhakar lad
From: Lad, Prabhakar Add pm_runtime support to the TI Davinci VPIF driver. Signed-off-by: Lad, Prabhakar Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Cc: Laurent Pinchart Cc: Sakari Ailus Cc: Sekhar Nori --- Changes for v2: 1: Removed use of clk API as pointed by Laurent and Sekhar. driv

Re: [PATCH 01/14] power: 88pm860x_charger: drop kfree of devm_kzalloc'd data

2013-03-31 Thread Anton Vorontsov
On Mon, Mar 11, 2013 at 03:30:40PM +0900, Jingoo Han wrote: > The devm_kzalloc function allocates memory that is released > automatically, when a driver detaches. Thus, there is no reason > to explicitly call kfree in probe or remove functions. > > Signed-off-by: Jingoo Han > --- 1-14 applied, t

Re: s390x: kernel BUG at fs/ext4/inode.c:1591!

2013-03-31 Thread CAI Qian
- Original Message - > From: "Dmitry Monakhov" > To: "CAI Qian" , "Theodore Ts'o" > Cc: "LKML" , "linux-s390" > , "Steve Best" > , linux-e...@vger.kernel.org > Sent: Monday, April 1, 2013 2:07:35 PM > Subject: Re: s390x: kernel BUG at fs/ext4/inode.c:1591! > > On Fri, 29 Mar 2013 05:2

Re: [PATCH V4 3/4] block: queue work on unbound wq

2013-03-31 Thread Viresh Kumar
Hi Tejun, On 31 March 2013 23:49, Tejun Heo wrote: > So, let's please introduce a new flag to mark these workqueues, say, > WQ_UNBOUND_FOR_POWER_SAVE or whatever (please come up with a better > name) and provide a compile time switch with boot time override. Just wanted to make this clear before

[PATCH v2] avr32: fix build error in atstk1006_defconfig

2013-03-31 Thread Josh Wu
fixed the following compile error when use avr32 atstk1006_defconfig: drivers/mtd/nand/atmel_nand.c: In function 'pmecc_err_location': drivers/mtd/nand/atmel_nand.c:639: error: implicit declaration of function 'writel_relaxed' which was introduced by commit: 1c7b874d33b463f7150b1ab4617f000a

Re: [PATCH 2/2] power_supply: tps65090: Setup compatible property for dt

2013-03-31 Thread Anton Vorontsov
On Thu, Mar 21, 2013 at 04:33:05PM -0400, Rhyland Klein wrote: > Setup the compatible property so that when this device is registered > through device tree, it can match the expected compatiblity string > used in the tps65090 driver. > > Signed-off-by: Rhyland Klein > --- > drivers/power/tps6509

Re: [patch v6 0/21] sched: power aware scheduling

2013-03-31 Thread Alex Shi
BTW, the patch set passed fengguang's 0day kbuild testing. Thanks fengguang! Alex -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: [PATCH] perf: fix bug in isupper() and islower()

2013-03-31 Thread Namhyung Kim
Hi Sukadev, On Fri, 29 Mar 2013 12:29:50 -0700, Sukadev Bhattiprolu wrote: > From fd349681226bf7b27c9d0f72b0f3941b5aa94f78 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Fri, 29 Mar 2013 12:14:43 -0700 > Subject: [PATCH] perf: fix bug in isupper() and islower() > > One of the reason

Re: [patch v6 0/21] sched: power aware scheduling

2013-03-31 Thread Alex Shi
On 04/01/2013 01:05 PM, Michael Wang wrote: > > For the performance one, a bit win here and a bit lost there, well, > since little float is there, I think at least, no regression. > > But the powersaving one suffered some regression in low-end, is that the > sacrifice we supposed to do for power

Re: [PATCH] power: abx500_chargalg: use module_platform_driver() macro

2013-03-31 Thread Anton Vorontsov
On Mon, Mar 11, 2013 at 03:30:06PM +0900, Jingoo Han wrote: > This patch uses module_platform_driver() macro which makes > the code smaller and simpler. > > Signed-off-by: Jingoo Han > --- Similar change was in a "big ab8500 sync".. commit 1ee26af028a46cf911f844c062b3c810bac34366 Author: srinid

Re: avr32: fix build error in atstk1006_defconfig

2013-03-31 Thread Josh Wu
Sorry, please drop this email. I will send out another one to include a...@linux-foundation.org Best Regards, Josh Wu On 4/1/2013 1:58 PM, Josh Wu wrote: fixed the following compile error when use avr32 atstk1006_defconfig: drivers/mtd/nand/atmel_nand.c: In function 'pmecc_err_location':

Re: [PATCH] ARM: davinci: use is IS_ENABLED macro

2013-03-31 Thread Sekhar Nori
On 3/28/2013 10:07 AM, Prabhakar Lad wrote: > Hi Sekhar, > > On Wed, Mar 27, 2013 at 4:13 PM, Stephen Rothwell > wrote: >> Hi, >> >> On Mon, 25 Mar 2013 16:51:35 +0530 Prabhakar lad >> wrote: >>> >>> --- a/arch/arm/mach-davinci/board-da830-evm.c >>> +++ b/arch/arm/mach-davinci/board-da830-evm.

Re: [PATCH] davinci: vpif: add pm_runtime support

2013-03-31 Thread Prabhakar Lad
Hi Sekhar, On Mon, Apr 1, 2013 at 11:33 AM, Sekhar Nori wrote: > On 3/28/2013 3:50 PM, Prabhakar Lad wrote: >> Hi Laurent, >> >> On Thu, Mar 28, 2013 at 3:40 PM, Laurent Pinchart >> wrote: >>> Hi Prabhakar, >>> >>> On Thursday 28 March 2013 15:36:11 Prabhakar Lad wrote: On Thu, Mar 28, 2013

Re: [PATCH] twl4030_charger: use module_platform_driver_probe()

2013-03-31 Thread Anton Vorontsov
On Tue, Mar 05, 2013 at 01:01:36PM +0900, Jingoo Han wrote: > This patch uses module_platform_driver_probe() macro which makes > the code smaller and simpler. > > Signed-off-by: Jingoo Han > --- Applied, thanks! Anton -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: s390x: kernel BUG at fs/ext4/inode.c:1591!

2013-03-31 Thread Dmitry Monakhov
On Fri, 29 Mar 2013 05:27:02 -0400 (EDT), CAI Qian wrote: > I've spent a half of weekend by trying to create s390x guest image, without any success. Can you please share it. > > - Original Message - > > From: "Theodore Ts'o" > > To: "CAI Qian" > > Cc: "LKML" , "linux-s390" > > , "Stev

avr32: fix build error in atstk1006_defconfig

2013-03-31 Thread Josh Wu
fixed the following compile error when use avr32 atstk1006_defconfig: drivers/mtd/nand/atmel_nand.c: In function 'pmecc_err_location': drivers/mtd/nand/atmel_nand.c:639: error: implicit declaration of function 'writel_relaxed' which was introduced by commit 1c7b874d33b463 ("mtd: at91: atmel_n

Re: [PATCH 1/5] power: ds2782_battery: Use dev_pm_ops

2013-03-31 Thread Anton Vorontsov
On Sun, Mar 10, 2013 at 02:34:05PM +0100, Lars-Peter Clausen wrote: > Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. > > Cc: Evgeny Romanov > Signed-off-by: Lars-Peter Clausen > --- [...] > @@ -465,11 +466,10 @@ MODULE_DEVICE_TABLE(i2c, ds278x_id); > static struct i2c

Re: [PATCH] davinci: vpif: add pm_runtime support

2013-03-31 Thread Sekhar Nori
On 3/28/2013 3:50 PM, Prabhakar Lad wrote: > Hi Laurent, > > On Thu, Mar 28, 2013 at 3:40 PM, Laurent Pinchart > wrote: >> Hi Prabhakar, >> >> On Thursday 28 March 2013 15:36:11 Prabhakar Lad wrote: >>> On Thu, Mar 28, 2013 at 2:39 PM, Laurent Pinchart wrote: On Thursday 28 March 2013 14:20:

Re: [PATCH 2/5] power: max17040_battery: Use dev_pm_ops

2013-03-31 Thread Anton Vorontsov
On Sun, Mar 10, 2013 at 02:34:06PM +0100, Lars-Peter Clausen wrote: > Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. > > Cc: Minkyu Kang > Signed-off-by: Lars-Peter Clausen > --- Patches 1-3 applied, thanks a lot! [...] > @@ -278,14 +281,14 @@ static const struct i2c

[PATCH v3 1/2] watchdog: improve w83627hf_wdt to timeout in minute

2013-03-31 Thread Tony Chung
Watchdog should support timeout in minutes. For example, crash dump will usually require 5+ minutes. This patch increase the timeout from 255 seconds to (255*60) seconds and should be good for older LTS releases. This patch need to be rewritten again when this driver migrate to new watchdog infr

[PATCH v3 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-03-31 Thread Tony Chung
Observed that the w83627hf watchdog timer start counting during reboot. If the system load the driver after 5 minutes, it rebooted immediately because of timer expired. For example, fsck took more than 5 minutes to run, then the computer reboot as soon as the driver was loaded. Signed-off-by: T

Re: [PATCH 1/1] sbs-battery: Use of_match_ptr() macro

2013-03-31 Thread Anton Vorontsov
On Mon, Apr 01, 2013 at 09:02:28AM +0530, Sachin Kamat wrote: [...] > > - .of_match_table = sbs_dt_ids, > > + .of_match_table = of_match_ptr(sbs_dt_ids), > > }, > > }; > > module_i2c_driver(sbs_battery_driver); > > -- > > 1.7.4.1 > > ping... Applied, thanks!

Re: [PATCH] intel-iommu: Synchronize gcmd value with global command register

2013-03-31 Thread Takao Indoh
(2013/03/27 19:31), Joerg Roedel wrote: > On Wed, Mar 27, 2013 at 02:02:44PM +0900, Takao Indoh wrote: >> The root cause of this problem is mismatch between iommu->gcmd and >> global command register in the case of kdump. At boot time, initial >> value of iommu->gcmd is zero as I wrote above, but a

Re: [patch] mm, memcg: give exiting processes access to memory reserves

2013-03-31 Thread Kamezawa Hiroyuki
(2013/03/28 10:22), David Rientjes wrote: A memcg may livelock when oom if the process that grabs the hierarchy's oom lock is never the first process with PF_EXITING set in the memcg's task iteration. The oom killer, both global and memcg, will defer if it finds an eligible process that is in th

Re: [PATCH] xen: Don't call arch_trigger_all_cpu_backtrace in dom0(pvm)

2013-03-31 Thread Zhenzhong Duan
On 2013-03-29 21:46, Konrad Rzeszutek Wilk wrote: On Fri, Mar 29, 2013 at 03:22:38PM +0800, Zhenzhong Duan wrote: nmi isn't supported in dom0, fallback to general all cpu backtrace code. Without fix, on xapic system, sysrq+l, no backtrace is showed. On x2apic enabled system, got NULL pointer d

Re: [PATCH V4 1/4] workqueue: Add system wide system_freezable_unbound_wq

2013-03-31 Thread Viresh Kumar
On 1 April 2013 10:50, Amit Kucheria wrote: > On Sun, Mar 31, 2013 at 8:01 PM, Viresh Kumar wrote: >> This patch adds system wide system_freezable_unbound_wq which will be used by >> code that currently uses system_freezable_wq and can be moved to unbound >> workqueues. > > _Why_ do i need this c

Re: [PATCH V4 1/4] workqueue: Add system wide system_freezable_unbound_wq

2013-03-31 Thread Amit Kucheria
On Sun, Mar 31, 2013 at 8:01 PM, Viresh Kumar wrote: > This patch adds system wide system_freezable_unbound_wq which will be used by > code that currently uses system_freezable_wq and can be moved to unbound > workqueues. _Why_ do i need this change? > Signed-off-by: Viresh Kumar > --- > inclu

Re: [PATCH 2/5] sched: factor out code to should_we_balance()

2013-03-31 Thread Joonsoo Kim
On Fri, Mar 29, 2013 at 12:58:26PM +0100, Peter Zijlstra wrote: > On Thu, 2013-03-28 at 16:58 +0900, Joonsoo Kim wrote: > > +static int should_we_balance(struct lb_env *env) > > +{ > > + struct sched_group *sg = env->sd->groups; > > + int cpu, balance_cpu = -1; > > + > > + /* > >

Re: [PATCH 03/10] soft-offline: use migrate_pages() instead of migrate_huge_page()

2013-03-31 Thread Aneesh Kumar K.V
Michal Hocko writes: > On Tue 26-03-13 16:59:40, Aneesh Kumar K.V wrote: >> Naoya Horiguchi writes: > [...] >> > diff --git v3.9-rc3.orig/mm/memory-failure.c v3.9-rc3/mm/memory-failure.c >> > index df0694c..4e01082 100644 >> > --- v3.9-rc3.orig/mm/memory-failure.c >> > +++ v3.9-rc3/mm/memory-fai

Re: [PATCH 2/5] sched: factor out code to should_we_balance()

2013-03-31 Thread Joonsoo Kim
Hello, Peter. On Fri, Mar 29, 2013 at 12:45:14PM +0100, Peter Zijlstra wrote: > On Thu, 2013-03-28 at 16:58 +0900, Joonsoo Kim wrote: > > There is not enough reason to place this checking at > > update_sg_lb_stats(), > > except saving one iteration for sched_group_cpus. But with this > > change, >

Re: [PATCH 5/5] sched: limit sched_slice if it is more than sysctl_sched_latency

2013-03-31 Thread Joonsoo Kim
Hello Preeti. On Fri, Mar 29, 2013 at 05:05:37PM +0530, Preeti U Murthy wrote: > Hi Joonsoo > > On 03/28/2013 01:28 PM, Joonsoo Kim wrote: > > sched_slice() compute ideal runtime slice. If there are many tasks > > in cfs_rq, period for this cfs_rq is extended to guarantee that each task > > has t

Re: [PATCH] memcg: avoid accessing memcg after releasing reference

2013-03-31 Thread Kamezawa Hiroyuki
(2013/04/01 11:39), Li Zefan wrote: > This might cause use-after-free bug. > > Signed-off-by: Li Zefan Thank you. Acked-by: KAMEZAWA Hiroyuki -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [patch v6 0/21] sched: power aware scheduling

2013-03-31 Thread Michael Wang
On 03/30/2013 10:34 PM, Alex Shi wrote: [snip] > > Some performance testing results: > - > > Tested benchmarks: kbuild, specjbb2005, oltp, tbench, aim9, > hackbench, fileio-cfq of sysbench, dbench, aiostress, multhreads > loopback netperf. on my core2, nhm, wsm, sn

Re: [PATCH] memcg: take reference before releasing rcu_read_lock

2013-03-31 Thread Kamezawa Hiroyuki
(2013/03/29 19:28), Li Zefan wrote: > The memcg is not referenced, so it can be destroyed at anytime right > after we exit rcu read section, so it's not safe to access it. > > To fix this, we call css_tryget() to get a reference while we're still > in rcu read section. > > This also removes a bog

Re: [PATCH 4/9] ia64: cpufreq: move cpufreq driver to drivers/cpufreq

2013-03-31 Thread Viresh Kumar
On 30 March 2013 15:21, Viresh Kumar wrote: > Fixup: > > commit 509bc3c30aff65045918f69f750d8845f004cc0a > Author: Viresh Kumar > Date: Sat Mar 30 15:20:41 2013 +0530 > > fixup! ia64: cpufreq: move cpufreq driver to drivers/cpufreq > --- > arch/ia64/Kconfig | 1 + > 1 file changed, 1 inse

Re: [PATCH 2/2] pwm: mxs: Remove unused *dev from struct spear_pwm_chip

2013-03-31 Thread Viresh Kumar
On 1 April 2013 08:19, Axel Lin wrote: Apart from fixing subject you need to write something in logs too.. > Signed-off-by: Axel Lin > --- > drivers/pwm/pwm-spear.c |3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c > index 3223b57..

Re: [PATCH] THP: Use explicit memory barrier

2013-03-31 Thread Minchan Kim
Hey Kame, On Mon, Apr 01, 2013 at 10:01:49AM +0900, Kamezawa Hiroyuki wrote: > (2013/04/01 8:45), Minchan Kim wrote: > > __do_huge_pmd_anonymous_page depends on page_add_new_anon_rmap's > > spinlock for making sure that clear_huge_page write become visible > > after set set_pmd_at() write. > > >

[PATCH] misc/vmw_vmci: VMWARE_VMCI depends on NET

2013-03-31 Thread Guenter Roeck
Fix: ERROR: "memcpy_toiovec" [drivers/misc/vmw_vmci/vmw_vmci.ko] undefined! ERROR: "memcpy_fromiovec" [drivers/misc/vmw_vmci/vmw_vmci.ko] undefined! Both functions are defined in the core networking code. Signed-off-by: Guenter Roeck --- drivers/misc/vmw_vmci/Kconfig |2 +- 1 file changed,

Re: [PATCH 8/9] spark: cpufreq: move cpufreq driver to drivers/cpufreq

2013-03-31 Thread Viresh Kumar
On 31 March 2013 22:10, David Miller wrote: >> On 26 March 2013 09:55, Viresh Kumar wrote: >>> From: Viresh Kumar >>> Date: Mon, 25 Mar 2013 11:20:23 +0530 >>> Subject: [PATCH] sparc: cpufreq: move cpufreq driver to drivers/cpufreq > Subject line still has the "spark" typo. Your mail was scar

RE: [PATCH] pinctrl: tegra: add suspend-resume support

2013-03-31 Thread Bibek Basu
Hi Stephen, My response inline. Regards Bibek -Original Message- From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Thursday, March 28, 2013 11:19 PM To: Bibek Basu Cc: Linus Walleij; linux-kernel@vger.kernel.org; Pritesh Raithatha Subject: Re: [PATCH] pinctrl: tegra: add suspen

[PATCH v2 2/2] pwm: spear: Remove unused *dev from struct spear_pwm_chip

2013-03-31 Thread Axel Lin
Signed-off-by: Axel Lin Acked-by: Shiraz Hashim --- v2: fix the prefix in subject line drivers/pwm/pwm-spear.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c index 3223b57..9563599 100644 --- a/drivers/pwm/pwm-spear.c +++ b/drivers/pwm/

Re: [PATCH 4/5] sched: don't consider upper se in sched_slice()

2013-03-31 Thread Joonsoo Kim
Hello, Preeti. On Fri, Mar 29, 2013 at 12:42:53PM +0530, Preeti U Murthy wrote: > Hi Joonsoo, > > On 03/28/2013 01:28 PM, Joonsoo Kim wrote: > > Following-up upper se in sched_slice() should not be done, > > because sched_slice() is used for checking that resched is needed > > whithin *this* cfs_

[PATCH 1/2] KVM: MMU: make kvm_mmu_zap_all preemptable

2013-03-31 Thread Xiao Guangrong
kvm_mmu_zap_all is a slow path, break the mmu-lock if needed to avoid potential soft lockup Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 633e30c..1ebca53 1006

[PATCH 2/2] KVM: MMU: drop unnecessary kvm_reload_remote_mmus

2013-03-31 Thread Xiao Guangrong
It is the responsibility of kvm_mmu_zap_all that keeps the consistent of mmu and tlbs. And it is also unnecessary after zap all mmio sptes since no mmio spte exists on root shadow page and it can not be cached into tlb Signed-off-by: Xiao Guangrong --- arch/x86/kvm/x86.c |5 + 1 files ch

[PATCH 0/2] KVM: x86: avoid potential soft lockup and unneeded mmu reload

2013-03-31 Thread Xiao Guangrong
This patch makes kvm_mmu_zap_all be preemptable since it is a slow path, break the mmu-lock if needed to avoid potential soft lockup. Also it drops unnecessary kvm_reload_remote_mmus This is the preparing work about kvm_mmu_zap_all, the fast approach is being developed Xiao Guangrong (2): KVM:

Re: [PATCH] checkpatch: do not exit in main process subroutine

2013-03-31 Thread Joe Perches
On Sat, 2013-03-30 at 18:30 +0800, zhangwei(Jovi) wrote: > On 2013/3/28 11:43, zhangwei(Jovi) wrote: > > Currently checkpatch program exit when process empty file, > > This will cause issue when @ARGV include many files ready to check. [] > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.

Re: [PATCH 2/2] pwm: mxs: Remove unused *dev from struct spear_pwm_chip

2013-03-31 Thread Shiraz Hashim
Hi Axel, Perhaps you meant pwm: spear: (instead of pwm: mxs) in the subject line. On Mon, Apr 01, 2013 at 10:49:25AM +0800, Axel Lin wrote: > Signed-off-by: Axel Lin > --- > drivers/pwm/pwm-spear.c |3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/pwm/pwm-spear.c b/drivers/

[PATCH] drivers/usb/serial: looping issue: avoid the return value overriden by looping

2013-03-31 Thread Chen Gang
inside the 'for' looping: the return value 'rv' may override if not have a check in time. next checking, outside the 'for' looping: can not find failure which generated during the 'for' looping so need let outside know about the failure. Signed-off-by: Chen Gang --- drivers/usb

Re: [PATCH v2] pwm: spear: Fix enable pwm output

2013-03-31 Thread Shiraz Hashim
On Sat, Mar 30, 2013 at 05:55:41PM +0800, Viresh Kumar wrote: > On 30 March 2013 11:07, Axel Lin wrote: > > The logic to check return value of clk_enable() is reversed, thus > > when clk_enable() passes PWMCR_PWM_ENABLE bit is not set. Fix it. > > > > Signed-off-by: Axel Lin > > --- > > drivers/

[PATCH] NMI: fix NMI period is not correct when cpu frequency changes issue.

2013-03-31 Thread Pan, Zhenjie
Watchdog use performance monitor of cpu clock cycle to generate NMI to detect hard lockup. But when cpu's frequency changes, the event period will also change. It's not as expected as the configuration. For example, set the NMI event handler period is 10 seconds when the cpu is 2.0GHz. If the cpu

Linux 3.9-rc5

2013-03-31 Thread Linus Torvalds
Another week, another -rc. I'm like the US postal office - "Neither snow nor rain nor heat nor gloom of night" will keep me from doing weekly -rc releases. A little holiday like Easter? Bah, humbug. It might delay the release email a few hours because a man gotta stuff himself with odd seasonal d

[GIT] Networking

2013-03-31 Thread David Miller
1) sadb_msg prepared for IPSEC userspace forgets to initialize the satype field, fix from Nicolas Dichtel. 2) Fix mac80211 synchronization during station removal, from Johannes Berg. 3) Fix IPSEC sequence number notifications when they wrap, from Steffen Klassert. 4) Fix cfg80211 wdev

[PATCH 3/3] pstore/ram: Restore ecc information block

2013-03-31 Thread Anton Vorontsov
From: Arve Hjønnevåg This was lost when proc/last_kmsg moved to pstore/console-ramoops. Signed-off-by: Arve Hjønnevåg Signed-off-by: John Stultz Signed-off-by: Anton Vorontsov --- fs/pstore/ram.c | 12 ++-- fs/pstore/ram_core.c | 3 +++ 2 files changed, 13 insertions(+), 2 dele

Re: [PATCH 0/2] USB PM and PM QoS fixes (Re: gpf in pm_qos_remote_wakeup_show)

2013-03-31 Thread Linus Torvalds
On Sun, Mar 31, 2013 at 3:56 PM, Rafael J. Wysocki wrote: > > So, I have two patches (on top of the Linus' tree) that will follow shortly: Should I take these directly as patches, or expect them to show up in a pull soon (ie do you have or expect to have other things pending)?

[PATCH 2/3] pstore/ram: Allow specifying ecc parameters in platform data

2013-03-31 Thread Anton Vorontsov
From: Arve Hjønnevåg Allow specifying ecc parameters in platform data Signed-off-by: Arve Hjønnevåg [jstultz: Tweaked commit subject & add commit message] Signed-off-by: John Stultz Signed-off-by: Anton Vorontsov --- fs/pstore/ram.c| 15 ++- fs/pstore/ram_core.c | 6

[PATCH 1/3] pstore/ram: Include ecc_size when calculating ecc_block

2013-03-31 Thread Anton Vorontsov
From: Arve Hjønnevåg Wastes less memory and allows using more memory for ecc than data. Signed-off-by: Arve Hjønnevåg [jstultz: Tweaked commit subject] Signed-off-by: John Stultz Signed-off-by: Anton Vorontsov --- fs/pstore/ram_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 0/3] Sync Android pstore updates

2013-03-31 Thread Anton Vorontsov
Hi all, Here are a few updates from the Android dev tree. Thanks to Arve Hjønnevåg for the code, and John Stultz for actually preparing commits for submission. Unless there are objections, I'll push these updates to linux-pstore.git. Thanks! Anton -- To unsubscribe from this list: send the line

Re: [Suggestion] drivers/usb/serial: looping issue: return value may override by looping

2013-03-31 Thread Chen Gang
On 2013年04月01日 11:05, Greg KH wrote: > No. Please send real patches if you think something is wrong, after > determining something is incorrect. To waste people's time like this, > checking to see if you have misunderstood something, does not scale at > all, please be more considerate. ok, tha

Re: [Suggestion] drivers/usb/serial: looping issue: return value may override by looping

2013-03-31 Thread Greg KH
On Mon, Apr 01, 2013 at 10:52:57AM +0800, Chen Gang wrote: > Hello Maintainers: > > in drivers/usb/serial/mos7840.c: > > in 'for' looping (line 632..657) > the return value 'rv' may override if not have a check in time (line 654) > > next checking can not find failure which generated dur

Re: [PATCH 1/2] USB / PM: Don't try to hide PM QoS flags from usb_port_device_release()

2013-03-31 Thread Greg Kroah-Hartman
On Mon, Apr 01, 2013 at 12:57:21AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Remove the call to dev_pm_qos_hide_flags(), added by commit 6e30d7cb > "usb: Add driver/usb/core/(port.c,hub.h) files", from > usb_port_device_release(), because (1) it is completely unnecessary > (th

[PATCH v2] r8169: fix auto speed down issue

2013-03-31 Thread Hayes Wang
It would cause no link after suspending or shutdowning when the nic changes the speed to 10M and connects to a link partner which forces the speed to 100M. Check the link partner ability to determine which speed to set. Signed-off-by: Hayes Wang --- drivers/net/ethernet/realtek/r8169.c | 28 +++

[Suggestion] drivers/usb/serial: looping issue: return value may override by looping

2013-03-31 Thread Chen Gang
Hello Maintainers: in drivers/usb/serial/mos7840.c: in 'for' looping (line 632..657) the return value 'rv' may override if not have a check in time (line 654) next checking can not find failure which generated during looping (line 658) please help check, thanks. gchen. 579 static

[PATCH 2/2] pwm: mxs: Remove unused *dev from struct spear_pwm_chip

2013-03-31 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/pwm/pwm-spear.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c index 3223b57..9563599 100644 --- a/drivers/pwm/pwm-spear.c +++ b/drivers/pwm/pwm-spear.c @@ -49,13 +49,11 @@ * @mmio_base: base address

[PATCH 1/2] pwm: mxs: Remove unused *dev from struct mxs_pwm_chip

2013-03-31 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/pwm/pwm-mxs.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c index a53d309..23d5180 100644 --- a/drivers/pwm/pwm-mxs.c +++ b/drivers/pwm/pwm-mxs.c @@ -38,7 +38,6 @@ struct mxs_pwm_chip { struct p

[PATCH] memcg: avoid accessing memcg after releasing reference

2013-03-31 Thread Li Zefan
This might cause use-after-free bug. Signed-off-by: Li Zefan --- found when reading the code. --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 8ec501c..6391046 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -

[PATCH] ipc,sem: prevent releasing RCU read lock twice in semctl_main

2013-03-31 Thread Sasha Levin
We will release RCU read lock twice if the sem id passed from userspace is not within the legal range in semctl_main. Reviewed-by: Rik van Riel Reviewed-by: Davidlohr Bueso Signed-off-by: Sasha Levin --- ipc/sem.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ipc/se

Re: [PATCH] pinctrl: pinctrl-mxs: document the missing pull-ups

2013-03-31 Thread Shawn Guo
On Sat, Mar 30, 2013 at 12:51:12AM +0100, Alexandre Belloni wrote: > Some pins on the i.mx23 and i.mx28 are missing pull-ups, document that > oddity because it was difficult to know the expected behaviour. > > Signed-off-by: Alexandre Belloni Applied, thanks. > --- > > I don't think it is nece

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-31 Thread Ning Jiang
2013/4/1 Daniel Lezcano : > On 03/29/2013 10:24 AM, ning.n.ji...@gmail.com wrote: >> From: Ning Jiang >> >> Currently there are two problems when we try to stop local timer. >> First, it calls set_mode function directly so mode state is not >> updated for the clock event device. Second, it makes t

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-31 Thread Ning Jiang
2013/4/1 Daniel Lezcano : > On 03/29/2013 10:24 AM, ning.n.ji...@gmail.com wrote: >> From: Ning Jiang >> >> Currently there are two problems when we try to stop local timer. >> First, it calls set_mode function directly so mode state is not >> updated for the clock event device. Second, it makes t

Re: [PATCH] ACPI / I2C: Use parent's ACPI_HANDLE() in acpi_i2c_register_devices()

2013-03-31 Thread Aaron Lu
On 04/01/2013 08:25 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The ACPI handle of struct i2c_adapter's dev member should not be > set, because this causes that struct i2c_adapter to be associated > with the ACPI device node corresponding to its parent as the > second "physical_dev

Re: [PATCH] THP: Use explicit memory barrier

2013-03-31 Thread Kamezawa Hiroyuki
(2013/04/01 8:45), Minchan Kim wrote: > __do_huge_pmd_anonymous_page depends on page_add_new_anon_rmap's > spinlock for making sure that clear_huge_page write become visible > after set set_pmd_at() write. > > But lru_cache_add_lru uses pagevec so it could miss spinlock > easily so above rule was

[PATCH] [media] gspca_touptek: Add support for ToupTek UCMOS series USB cameras

2013-03-31 Thread John McMaster
Adds support for AmScope MU800 / ToupTek UCMOS08000KPB USB microscope camera. Signed-off-by: John McMaster --- drivers/media/usb/gspca/Kconfig | 10 + drivers/media/usb/gspca/Makefile |2 + drivers/media/usb/gspca/touptek.c | 857 + 3 files changed,

[PATCH] ACPI / I2C: Use parent's ACPI_HANDLE() in acpi_i2c_register_devices()

2013-03-31 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The ACPI handle of struct i2c_adapter's dev member should not be set, because this causes that struct i2c_adapter to be associated with the ACPI device node corresponding to its parent as the second "physical_device", which is incorrect (this happens during the registratio

[PATCH] ACPI / SPI: Use parent's ACPI_HANDLE() in acpi_register_spi_devices()

2013-03-31 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The ACPI handle of struct spi_master's dev member should not be set, because this causes that struct spi_master to be associated with the ACPI device node corresponding to its parent as the second "physical_device", which is incorrect (this happens during the registration

Re: [PATCH 1/3] posix-timers: Correctly get dying task time sample in posix_cpu_timer_schedule()

2013-03-31 Thread Chen Gang
On 2013年03月30日 21:15, Frederic Weisbecker wrote: > In order to arm the next timer to schedule, we take a sample of the > current process or thread cputime. > > If the task is dying though, we don't arm anything but we > cache the remaining timer expiration delta for further reads. > > Something s

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-31 Thread Daniel Lezcano
On 03/29/2013 10:24 AM, ning.n.ji...@gmail.com wrote: > From: Ning Jiang > > Currently there are two problems when we try to stop local timer. > First, it calls set_mode function directly so mode state is not > updated for the clock event device. Second, it makes the device > unused instead of sh

[PATCH] THP: Use explicit memory barrier

2013-03-31 Thread Minchan Kim
__do_huge_pmd_anonymous_page depends on page_add_new_anon_rmap's spinlock for making sure that clear_huge_page write become visible after set set_pmd_at() write. But lru_cache_add_lru uses pagevec so it could miss spinlock easily so above rule was broken so user may see inconsistent data. This pa

Re: [PATCH] sparc: Use generic idle loop

2013-03-31 Thread David Miller
From: Sam Ravnborg Date: Fri, 29 Mar 2013 21:29:26 +0100 > Add generic cpu_idle support > > sparc32: > - replace call to cpu_idle() with cpu_startup_entry() > - add arch_cpu_idle() > > sparc64: > - smp_callin() includes cpu_startup_entry() call so we can > skip calling cpu_idle from assembler

Re: [PATCH 1/1] DM9000B: driver initialization upgrade

2013-03-31 Thread David Miller
From: Joseph CHANG Date: Fri, 29 Mar 2013 17:13:42 +0800 > Fix bug for DM9000 revision B which contain a DSP PHY > > DM9000B use DSP PHY instead previouse DM9000 revisions' analog PHY, > So need extra change in initialization, For > explicity PHY Reset and PHY init parameter, and > first DM9000_

  1   2   >