Re: [PATCH] at24: extend driver to allow writing via i2c_smbus_write_byte_data

2013-04-07 Thread Christian Gmeiner
Using the new mail address of wolfram sang - got the following error: Delivery to the following recipient failed permanently: w.s...@pengutronix.de Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the server for the recipient domainpengut

Re: [PATCH] AVR32: fix building warnings caused by redifinitions of HZ

2013-04-07 Thread Hans-Christian Egtvedt
Around Sun 07 Apr 2013 23:29:17 +0800 or thereabout, Jiang Liu wrote: > On 04/07/2013 03:55 PM, Hans-Christian Egtvedt wrote: >> Around Sun 07 Apr 2013 00:43:36 +0800 or thereabout, Jiang Liu wrote: >>> Fix building warnings caused by redifinitions of HZ: >> Thanks for fixing. >> >>> Signed-off

[PATCH resend] sched: Fix sd->*_idx limit range avoiding overflow

2013-04-07 Thread libin
Commit 201c373e8e ("sched/debug: Limit sd->*_idx range on sysctl") was an incomplete bug fix. This patch fixs sd->*_idx limit range to [0 ~ CPU_LOAD_IDX_MAX - 1] avioding array overflow caused by setting sd->*_idx to CPU_LOAD_IDX_MAX on sysctl. Signed-off-by: Libin --- kernel/sched/core.c |2

[PATCH 12/12] memcg: don't need to free memcg via RCU or workqueue

2013-04-07 Thread Li Zefan
Now memcg has the same life cycle with its corresponding cgroup, and a cgroup is freed via RCU and then mem_cgroup_css_free() is called in a work function, so we can simply call __mem_cgroup_free() in mem_cgroup_css_free(). This actually reverts 59927fb984de1703c67bc640c3e522d8b5276c73 ("memcg: fr

[PATCH 13/12] memcg: don't need memcg->memcg_name

2013-04-07 Thread Li Zefan
Now memcg has the same life cycle as its corresponding cgroup, we don't have to save the cgroup path name in memcg->memcg_name. Signed-off-by: Li Zefan --- mm/memcontrol.c | 65 + 1 file changed, 24 insertions(+), 41 deletions(-) diff --gi

[PATCH 10/12] memcg: don't need to get a reference to the parent

2013-04-07 Thread Li Zefan
The cgroup core guarantees it's always safe to access the parent. v2: - added a comment in mem_cgroup_put() as suggested by Michal - removed mem_cgroup_get(), otherwise gcc will warn that it's not used Signed-off-by: Li Zefan Acked-by: Michal Hocko Acked-by: KAMEZAWA Hiroyuki --- mm/memcontro

[PATCH 11/12] memcg: kill memcg refcnt

2013-04-07 Thread Li Zefan
Now memcg has the same life cycle as its corresponding cgroup. Kill the useless refcnt. Signed-off-by: Li Zefan Acked-by: Michal Hocko Acked-by: KAMEZAWA Hiroyuki --- mm/memcontrol.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/mm/memcontrol.c b/mm/mem

[PATCH 09/12] cgroup: make sure parent won't be destroyed before its children

2013-04-07 Thread Li Zefan
Suppose we rmdir a cgroup and there're still css refs, this cgroup won't be freed. Then we rmdir the parent cgroup, and the parent is freed immediately due to css ref draining to 0. Now it would be a disaster if the still-alive child cgroup tries to access its parent. Make sure this won't happen.

[PATCH 07/12] memcg: use css_get/put when charging/uncharging kmem

2013-04-07 Thread Li Zefan
Use css_get/put instead of mem_cgroup_get/put. We can't do a simple replacement, because here mem_cgroup_put() is called during mem_cgroup_css_free(), while mem_cgroup_css_free() won't be called until css refcnt goes down to 0. Instead we increment css refcnt in mem_cgroup_css_offline(), and then

[PATCH 08/12] memcg: use css_get/put for swap memcg

2013-04-07 Thread Li Zefan
Use css_get/put instead of mem_cgroup_get/put. A simple replacement will do. The historical reason that memcg has its own refcnt instead of always using css_get/put, is that cgroup couldn't be removed if there're still css refs, so css refs can't be used as long-lived reference. The situation has

[PATCH 06/12] memcg: don't use mem_cgroup_get() when creating a kmemcg cache

2013-04-07 Thread Li Zefan
Use css_get()/css_put() instead of mem_cgroup_get()/mem_cgroup_put(). There are two things being done in the current code: First, we acquired a css_ref to make sure that the underlying cgroup would not go away. That is a short lived reference, and it is put as soon as the cache is created. At th

[PATCH 05/12] memcg: use css_get() in sock_update_memcg()

2013-04-07 Thread Li Zefan
Use css_get/css_put instead of mem_cgroup_get/put. Note, if at the same time someone is moving @current to a different cgroup and removing the old cgroup, css_tryget() may return false, and sock->sk_cgrp won't be initialized, which is fine. Signed-off-by: Li Zefan Acked-by: KAMEZAWA Hiroyuki Ac

[PATCH 04/12] memcg, kmem: fix reference count handling on the error path

2013-04-07 Thread Li Zefan
From: Michal Hocko mem_cgroup_css_online calls mem_cgroup_put if memcg_init_kmem fails. This is not correct because only memcg_propagate_kmem takes an additional reference while mem_cgroup_sockets_init is allowed to fail as well (although no current implementation fails) but it doesn't take any r

[PATCH 02/12] memcg: avoid accessing memcg after releasing reference

2013-04-07 Thread Li Zefan
This might cause use-after-free bug. Signed-off-by: Li Zefan Acked-by: KAMEZAWA Hiroyuki Acked-by: Michal Hocko --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index e054ac0..2364f4e 100644 --- a/mm/memcontrol.c +++ b/mm

[PATCH 03/12] Revert "memcg: avoid dangling reference count in creation failure."

2013-04-07 Thread Li Zefan
From: Michal Hocko This reverts commit e4715f01be697a3730c78f8b595591d6a88c mem_cgroup_put is hierarchy aware so mem_cgroup_put(memcg) already drops an additional reference from all parents so the additional mem_cgrroup_put(parent) potentially causes use-after-free. Signed-off-by: Li Zefan

Re: [PATCH] kernel: module: strncpy issue, using strlcpy instead of strncpy

2013-04-07 Thread Rusty Russell
Chen Gang writes: > ownername and namebuf are all NUL terminated string. > > need always let them ended by '\0'. > > Signed-off-by: Chen Gang > --- > kernel/module.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/module.c b/kernel/module.c > index 3c2

[PATCH 01/12] memcg: take reference before releasing rcu_read_lock

2013-04-07 Thread Li Zefan
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. Signed-off-by: Li Zefan Acked-by: Glauber Costa Acked-by: Michal Hocko

[PATCH 0/12][V2] memcg: make memcg's life cycle the same as cgroup

2013-04-07 Thread Li Zefan
Changes since v1: - wrote better changelog and added acked-by and reviewed-by tags - revised some comments as suggested by Michal - added a wmb() in kmem_cgroup_css_offline(), pointed out by Michal - fixed a bug which causes a css_put() never be called Now memcg has its own refcnt, so when a cgr

Re: [PATCH] clk: add helper to set flags for clk-provider

2013-04-07 Thread Sebastian Hesselbarth
On 04/08/2013 05:59 AM, Mike Turquette wrote: Quoting Sebastian Hesselbarth (2013-04-04 22:22:12) Clock providers are not allowed to mess with struct clk internals directly but using helpers provided by clk-provider.h. This patch adds a helper to allow to set flags of a clock after registration.

Re: [PATCH] F2FS: Fix the logic of IS_DNODE()

2013-04-07 Thread Jaegeuk Kim
Hi, 2013-04-07 (일), 12:57 -0400, Zhihui Zhang: > Signed-off-by: Zhihui Zhang > --- > fs/f2fs/node.h |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h > index afdb130..2be47b2 100644 > --- a/fs/f2fs/node.h > +++ b/fs/f2fs/node.h > @@ -239

Re: AMD Vi error and lost networking with r8169

2013-04-07 Thread David R
Sure. Will apply this evening. It may take several days before I can report back due to the intermittent nature of the thing. Thanks David Quoting Francois Romieu : David R : I'm been seeing some problems with my new ish AMD motherboard/processor combo and networking (r8169). I see the fo

Re: [v5] clk: add si5351 i2c common clock driver

2013-04-07 Thread Sebastian Hesselbarth
On 04/08/2013 02:17 AM, Guenter Roeck wrote: On Mon, Apr 08, 2013 at 01:49:24AM +0200, Sebastian Hesselbarth wrote: On 04/08/2013 12:50 AM, Guenter Roeck wrote: On Fri, Apr 05, 2013 at 05:23:35AM -, Sebastian Hesselbarth wrote: This patch adds a common clock driver for Silicon Labs Si5351a

Re: [PATCH 2/2] hfsplus: add printk to log allocation failure in hfs_find_init()

2013-04-07 Thread Vyacheslav Dubeyko
On Sun, 2013-04-07 at 15:00 -0700, Joe Perches wrote: > On Mon, 2013-04-08 at 01:21 +0400, Alexey Khoroshilov wrote: > > Add printk to log allocation failure in hfs_find_init(), > > "so that there is a sign in dmesg when the error condition is triggered". > > (per Hin-Tak Leung request) > > Not ne

[PATCH] mm: remove compressed copy from zram in-memory

2013-04-07 Thread Minchan Kim
Swap subsystem does lazy swap slot free with expecting the page would be swapped out again so we can avoid unnecessary write. But the problem in in-memory swap(ex, zram) is that it consumes memory space until vm_swap_full(ie, used half of all of swap device) condition meet. It could be bad if we u

RE: [PATCH 0/2] Update device tree binding document for pwm-tiehrpwm & pwm-tiecap

2013-04-07 Thread Philip, Avinash
Thierry, On Mon, Mar 25, 2013 at 12:34:51, Philip, Avinash wrote: > Update device tree document of pwm-tiehrpwm & pwm-tiecap in order to reflect > the > usage of similar modules in both da850 and am33xx platforms. Can you accept both documentation update patches with Peter Korsgaard's Ack. Than

Re: [PATCH 1/2] hfsplus: add error propagation to __hfsplus_ext_write_extent()

2013-04-07 Thread Vyacheslav Dubeyko
Hi Alexey, On Mon, 2013-04-08 at 01:21 +0400, Alexey Khoroshilov wrote: > __hfsplus_ext_write_extent() suppresses errors coming from hfs_brec_find(). > The patch implements error code propagation. > Please, prepare a single patch set for all your changes in HFS and HFS+. These changes are relat

Re: [PATCH -next] virtio_console: make local symbols static

2013-04-07 Thread Amit Shah
On (Sat) 06 Apr 2013 [11:52:07], Wei Yongjun wrote: > From: Wei Yongjun > > Those symbols only used within this file, and should be static. > > Signed-off-by: Wei Yongjun Acked-by: Amit Shah Amit -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in th

Re: [RFC PATCH] watchdog: Add hook for kicking in kdump path

2013-04-07 Thread Dave Young
On 04/06/2013 04:16 AM, Don Zickus wrote: > A common problem with kdump is that during the boot up of the > second kernel, the hardware watchdog times out and reboots the > machine before a vmcore can be captured. > > Instead of tellling customers to disable their hardware watchdog > timers, I hac

Re: [PATCH v8 1/2] ARM: davinci: dm365: add support for v4l2 video display

2013-04-07 Thread Prabhakar Lad
Sekhar, On Thu, Apr 4, 2013 at 3:03 PM, Sekhar Nori wrote: > On 4/2/2013 5:24 PM, Prabhakar lad wrote: >> From: Lad, Prabhakar >> >> Create platform devices for various video modules like venc,osd, >> vpbe and v4l2 driver for dm365. >> >> Signed-off-by: Lad, Prabhakar > > Minor nits below: > >>

Re: [PATCH] RFC: mmc: dw_mmc: Always go to STATE_DATA_BUSY from STATE_DATA_ERROR

2013-04-07 Thread Jaehoon Chung
Looks good to me. Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung On 04/05/2013 05:18 PM, Jaehoon Chung wrote: > Hi Doug, > > You're right..it's something wrong. > Actually i didn't test with your patch, but your commit message is reasonable. > > I will check until next week after test

[PATCH] Convert compat_sys_sysinfo to COMPAT_SYSCALL_DEFINE

2013-04-07 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell --- kernel/timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) This depends on my previous patch "Make do_sysinfo() static". diff --git a/kernel/timer.c b/kernel/timer.c index 06b3245..f0e6588 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -1661

Re: [PATCH 07/18] cpufreq: s3c24xx: move cpufreq driver to drivers/cpufreq

2013-04-07 Thread Viresh Kumar
On 5 April 2013 12:36, Viresh Kumar wrote: > On 5 April 2013 12:18, Kukjin Kim wrote: >> Basically, this moving looks good to me, but should be re-worked based on >> for-next of samsung tree because this touches too many samsung stuff so this >> should be sent to upstream via samsung tree. > > Hm

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-07 Thread Linus Torvalds
On Sun, Apr 7, 2013 at 9:20 PM, Vineet Gupta wrote: > > Would you be OK if I send the single patch to ARC by email (for 3.9-rc7) or > you'd > rather have the pull request. I got distracted by thinking about user-accesses vs preemption, but yes, sending the ARC patch to fix things by email as a p

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-07 Thread Linus Torvalds
On Sun, Apr 7, 2013 at 9:20 PM, Vineet Gupta wrote: > > Christian had already proposed that change - only I was reluctant to take it > - as > local_irq_* is used heavily in a configuration of ARC700 linux where (!SMP) > cpu > doesn't support load-locked/store-conditional instructions - hence ato

Re: linux-next: build failure after merge of the mfd tree

2013-04-07 Thread Alexander Shiyan
Hello. > After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > drivers/regulator/anatop-regulator.c: In function 'anatop_regulator_probe': > drivers/regulator/anatop-regulator.c:134:2: error: implicit declaration of > function 'of_get_parent' [-Werror

[PATCH v2] Make do_sysinfo() static

2013-04-07 Thread Stephen Rothwell
The only use outside of kernel/timer.c was in kernel/compat.c, so move compat_sys_sysinfo() next to sys_sysinfo() in kernel/timer.c. Signed-off-by: Stephen Rothwell --- include/linux/kernel.h | 2 -- kernel/compat.c| 65 -- kernel/timer.c

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

2013-04-07 Thread Stephen Rothwell
Hi Tomi, Today's linux-next merge of the omap_dss2 tree got a conflict in drivers/video/fbmon.c between commit 477fc03f5baa ("fbmon: use VESA_DMT_VSYNC_HIGH to fix typo") from Linus' tree and commit 06a3307975aa ("videomode: combine videomode dmt_flags and data_flags") from the omap_dss2 tree. I

Re: [PATCH] Add non-zero module sections to sysfs

2013-04-07 Thread Rusty Russell
Philip Kranz writes: > Hello. > > On Fri, Apr 05, 2013 at 12:07:15PM +0200, James Bottomley wrote: >> Just so you know: this isn't a parisc specific problem. Gcc produces >> duplicate section names under various circumstances, but the one that >> bites us is -ffunction-sections. Note that there

Re: [PATCH] Make information about modules available to kgdb.

2013-04-07 Thread Rusty Russell
Greg KH writes: > On Sat, Apr 06, 2013 at 03:00:55PM +0200, Sebastian Wankerl wrote: >> From: Philip Kranz >> >> To be able to properly debug kernel modules kgbd needs to know all SHF_ALLOC >> sections of the module. This patch add an array of those sections to struct >> module. One cannot use s

Linux 3.9-rc6

2013-04-07 Thread Linus Torvalds
Things seem to be on track, and it's been a mostly boring week. Lots of small fixes, a few reverts. Networking, some small arch fixes (arm, mips, s390, alpha, tile, x86), drivers, minor filesystem updates (gfs2, ext4, tiny reiserfs xattr fix). Nothing really exciting stands out, I think the appende

Re: [PATCH] [PATCH] Gaurantee spinlocks implicit barrier for !PREEMPT_COUNT

2013-04-07 Thread Vineet Gupta
Hi Linus, On 04/06/2013 09:43 PM, Linus Torvalds wrote: > This is all *COMPLETELY* wrong. > > Neither the normal preempt macros, nor the plain spinlocks, should > protect anything at all against interrupts. > > The real protection should come from the spin_lock_irqsave() in > lock_timer_base(), n

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

2013-04-07 Thread Stephen Rothwell
Hi Samuel, After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/regulator/anatop-regulator.c: In function 'anatop_regulator_probe': drivers/regulator/anatop-regulator.c:134:2: error: implicit declaration of function 'of_get_parent' [-Werror=implici

Re: [patch v7 20/21] sched: don't do power balance on share cpu power domain

2013-04-07 Thread Alex Shi
On 04/08/2013 11:25 AM, Preeti U Murthy wrote: > Hi Alex, > > I am sorry I overlooked the changes you have made to the power > scheduling policies.Now you have just two : performance and powersave. > > Hence you can ignore my below comments.But if you use group->capacity > instead of group->weigh

[PATCH] kernel: trace: ftrace: strncpy, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
for NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang --- kernel/trace/ftrace.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index dfd33f0..fa984b7 100644 --- a/kernel/trace/ftrace.c ++

Re: [PATCH] Input: MT - handle semi-mt devices in core

2013-04-07 Thread Dmitry Torokhov
On Sun, Apr 07, 2013 at 09:41:32PM +0200, Henrik Rydberg wrote: > Most semi-mt drivers use the slots in a manual way, but really only > need to treat the finger count manually. With this patch, a semi-mt > driver may use the input-mt core for everything else. > > Signed-off-by: Henrik Rydberg Ap

[PATCH] kernel: trace: strncpy, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
for NUL terminated string, need always set '\0' at the end. Signed-off-by: Chen Gang --- kernel/trace/trace.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 829b2be..07860b9 100644 --- a/kernel/trace/trace.c +++ b/

Re: [PATCH] kernel: tsacct: strncpy, always be sure of NUL terminated.

2013-04-07 Thread Chen Gang
On 2013年04月08日 11:52, KOSAKI Motohiro wrote: > On Sun, Apr 7, 2013 at 11:27 PM, Chen Gang wrote: >> > >> > for NUL terminated string, always set '\0' at the end. >> > >> > Signed-off-by: Chen Gang >> > --- >> > kernel/tsacct.c |3 ++- >> > 1 files changed, 2 insertions(+), 1 deletions(-) >

Re: [PATCH] clk: add helper to set flags for clk-provider

2013-04-07 Thread Mike Turquette
Quoting Sebastian Hesselbarth (2013-04-04 22:22:12) > Clock providers are not allowed to mess with struct clk internals directly > but using helpers provided by clk-provider.h. This patch adds a helper to > allow to set flags of a clock after registration. This is useful, if clock > flags change du

Re: [PATCH] kernel: tsacct: strncpy, always be sure of NUL terminated.

2013-04-07 Thread KOSAKI Motohiro
On Sun, Apr 7, 2013 at 11:27 PM, Chen Gang wrote: > > for NUL terminated string, always set '\0' at the end. > > Signed-off-by: Chen Gang > --- > kernel/tsacct.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/kernel/tsacct.c b/kernel/tsacct.c > index a1dd9a1..0

Re: [GIT PULL] extcon fixes for 3.9-rc6

2013-04-07 Thread Chanwoo Choi
On 04/08/2013 11:36 AM, Greg KH wrote: > On Mon, Apr 08, 2013 at 11:02:14AM +0900, Chanwoo Choi wrote: >> Hi Greg, >> >> This is extcon fixes for 3.9-rc6 >> Please pull extcon with following updates. >> >> Best Regards and thanks, >> Chanwoo Choi >> >> The following changes since commit 07961ac7c0e

[PATCH] kernel: events: strncpy, always be sure of NUL terminated.

2013-04-07 Thread Chen Gang
for NUL terminated string, always be sure of '\0' at the end. in our case, need return value, so still use strncpy (strlcpy return the size, not the pointer) Signed-off-by: Chen Gang --- kernel/events/core.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/k

[PATCH] Fix sortextable building on non-Linux systems

2013-04-07 Thread Daniel Tang
Hi, Is there any reason why 'tools/include/tools/be_byteshift.h' and 'tools/include/tools/le_byteshift.h' needs to include 'linux/types.h'? It breaks compilation of ARM kernels on OS X since sortextable, which uses those headers, fails to build because 'linux/types.h' doesn't exist. Included i

[PATCH] clk: mvebu: Fix valid value range checking for cpu_freq_select

2013-04-07 Thread Axel Lin
cpu_freq_select is used as array subscript, thus the valid value range is 0 ... ARRAY_SIZE() - 1. Signed-off-by: Axel Lin --- drivers/clk/mvebu/clk-core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mvebu/clk-core.c b/drivers/clk/mvebu/clk-core.c index

Re: [patch v7 20/21] sched: don't do power balance on share cpu power domain

2013-04-07 Thread Preeti U Murthy
Hi Alex, I am sorry I overlooked the changes you have made to the power scheduling policies.Now you have just two : performance and powersave. Hence you can ignore my below comments.But if you use group->capacity instead of group->weight for threshold,like you did for balance policy in your versi

[PATCH] kernel: tsacct: strncpy, always be sure of NUL terminated.

2013-04-07 Thread Chen Gang
for NUL terminated string, always set '\0' at the end. Signed-off-by: Chen Gang --- kernel/tsacct.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/tsacct.c b/kernel/tsacct.c index a1dd9a1..01bcc4e 100644 --- a/kernel/tsacct.c +++ b/kernel/tsacct.c @@ -78,7 +

Re: [patch v7 20/21] sched: don't do power balance on share cpu power domain

2013-04-07 Thread Preeti U Murthy
Hi Alex, On 04/04/2013 07:31 AM, Alex Shi wrote: > Packing tasks among such domain can't save power, just performance > losing. So no power balance on them. As far as my understanding goes, powersave policy is the one that tries to pack tasks onto a SIBLING domain( domain where SD_SHARE_CPUPOWER

Re: [PATCH] Make do_sysinfo() static

2013-04-07 Thread Stephen Rothwell
Hi Al, On Mon, 8 Apr 2013 03:00:11 +0100 Al Viro wrote: > > On Mon, Apr 08, 2013 at 11:53:25AM +1000, Stephen Rothwell wrote: > > The only use outside of kernel/timer.c was in kernel/compat.c, so move > > compat_sys_sysinfo() next to sys_sysinfo() in kernel/timer.c. > > Please, switch it to COMP

Re: [PATCH] kernel: module: strncpy issue, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
On 2013年04月08日 10:48, Chen Gang wrote: > On 2013年04月07日 22:28, Geert Uytterhoeven wrote: >> On Sun, Apr 7, 2013 at 1:38 PM, Chen Gang wrote: ownername and namebuf are all NUL terminated string. need always let them ended by '\0'. Signed-off-by: Chen Gang ---

Re: [PATCH] PM/reboot: call syscore_shutdown() after disable_nonboot_cpus()

2013-04-07 Thread chenhc
> On Sunday, April 07, 2013 08:29:32 AM Greg KH wrote: >> On Sun, Apr 07, 2013 at 10:46:00AM +0200, Rafael J. Wysocki wrote: >> > On Sunday, April 07, 2013 10:14:14 AM Huacai Chen wrote: >> > > As commit 40dc166c (PM / Core: Introduce struct syscore_ops for core >> > > subsystems PM) say, syscore_o

Re: [PATCH] kernel: module: strncpy issue, using strlcpy instead of strncpy

2013-04-07 Thread Chen Gang
On 2013年04月07日 22:28, Geert Uytterhoeven wrote: > On Sun, Apr 7, 2013 at 1:38 PM, Chen Gang wrote: >> > ownername and namebuf are all NUL terminated string. >> > >> > need always let them ended by '\0'. >> > >> > Signed-off-by: Chen Gang >> > --- >> > kernel/module.c |4 ++-- >> > 1 file

Re: af_unix udev startup regression

2013-04-07 Thread Lai Jiangshan
On 04/05/2013 02:03 AM, Linus Torvalds wrote: > [ Fixed odd legacy subject line that has nothing to do with the actual bug ] > > Hmm. Can you double-check and verify that reverting that commit makes > things work again for you? reverting 14134f6584212d585b310ce95428014b653dfaf6 works. 14134f6584

Re: [GIT PULL] extcon fixes for 3.9-rc6

2013-04-07 Thread Greg KH
On Mon, Apr 08, 2013 at 11:02:14AM +0900, Chanwoo Choi wrote: > Hi Greg, > > This is extcon fixes for 3.9-rc6 > Please pull extcon with following updates. > > Best Regards and thanks, > Chanwoo Choi > > The following changes since commit 07961ac7c0ee8b546658717034fe692fd12eefa9: > > Linux 3.9

[PATCH] bitmap: speedup in bitmap_find_free_region when order is 0

2013-04-07 Thread Chanho Min
If bitmap_find_free_region() is called with order=0, We can reduce for-loops to find 1 free bit. First, It scans bitmap array by the increment of long type, then find 1 free bit within 1 long type value. In 32 bits system and 1024 bits size, in the worst case, We need 1024 for-loops to find 1 free

Re: [RFC PATCH] wfcqueue: implement __wfcq_enqueue_head() (v3)

2013-04-07 Thread Eric Wong
Mathieu Desnoyers wrote: > Changes since v2: > * Only issue cmpxchg() if queue was empty. > * Add missing memory barrier. Thanks! There's a slight drop in performance either from the barrier or larger code, but I'm not worried (it was around 9-10s before wfcqueue). $ time ./eponeshotmt -c 1

Re: [RFC PATCH] sched: wake-affine throttle

2013-04-07 Thread Michael Wang
On 03/25/2013 01:24 PM, Michael Wang wrote: > Recently testing show that wake-affine stuff cause regression on pgbench, the > hiding rat was finally catched out. > > wake-affine stuff is always trying to pull wakee close to waker, by theory, > this will benefit us if waker's cpu cached hot data fo

[GIT PULL] extcon fixes for 3.9-rc6

2013-04-07 Thread Chanwoo Choi
Hi Greg, This is extcon fixes for 3.9-rc6 Please pull extcon with following updates. Best Regards and thanks, Chanwoo Choi The following changes since commit 07961ac7c0ee8b546658717034fe692fd12eefa9: Linux 3.9-rc5 (2013-03-31 15:12:43 -0700) are available in the git repository at: git://g

Re: [UPDATE][PATCH 2/3] resource: Add release_mem_region_adjustable()

2013-04-07 Thread Yasuaki Ishimatsu
Hi Toshi, 2013/04/04 8:23, Toshi Kani wrote: > Added release_mem_region_adjustable(), which releases a requested > region from a currently busy memory resource. This interface > adjusts the matched memory resource accordingly if the requested > region does not match exactly but still fits into. >

Re: [PATCH] Make do_sysinfo() static

2013-04-07 Thread Al Viro
On Mon, Apr 08, 2013 at 11:53:25AM +1000, Stephen Rothwell wrote: > The only use outside of kernel/timer.c was in kernel/compat.c, so move > compat_sys_sysinfo() next to sys_sysinfo() in kernel/timer.c. Please, switch it to COMPAT_SYSCALL_DEFINE, while you are at it. -- To unsubscribe from this li

[PATCH] Make do_sysinfo() static

2013-04-07 Thread Stephen Rothwell
The only use outside of kernel/timer.c was in kernel/compat.c, so move compat_sys_sysinfo() next to sys_sysinfo() in kernel/timer.c. Signed-off-by: Stephen Rothwell --- include/linux/kernel.h | 2 -- kernel/compat.c| 65 --- kernel/timer.c

Re: [RFC] mm: remove swapcache page early

2013-04-07 Thread Simon Jeons
On 04/08/2013 09:48 AM, Minchan Kim wrote: Hello Simon, On Sun, Apr 07, 2013 at 03:26:12PM +0800, Simon Jeons wrote: Ping Minchan. On 04/02/2013 09:40 PM, Simon Jeons wrote: Hi Hugh, On 03/28/2013 05:41 AM, Hugh Dickins wrote: On Wed, 27 Mar 2013, Minchan Kim wrote: Swap subsystem does lazy

Re: [RFC] mm: remove swapcache page early

2013-04-07 Thread Minchan Kim
Hello Simon, On Sun, Apr 07, 2013 at 03:26:12PM +0800, Simon Jeons wrote: > Ping Minchan. > On 04/02/2013 09:40 PM, Simon Jeons wrote: > >Hi Hugh, > >On 03/28/2013 05:41 AM, Hugh Dickins wrote: > >>On Wed, 27 Mar 2013, Minchan Kim wrote: > >> > >>>Swap subsystem does lazy swap slot free with expec

[PATCH] Staging: omap-thermal: remove trailing whitespace from omap-bandgap.c

2013-04-07 Thread Tyrel Datwyler
This patch removes trailing whitespace from a blank line in omap-bandgap.c as detected by the checkpatch.pl tool. Signed-off-by: Tyrel Datwyler --- drivers/staging/omap-thermal/omap-bandgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/omap-thermal/omap-ba

[PATCH 2/5 V2] mmc: core: call pm_runtime_put_noidle in pm_runtime_get_sync failed case

2013-04-07 Thread Li Fei
Even in failed case of pm_runtime_get_sync, the usage_count is incremented. In order to keep the usage_count with correct value and runtime power management to behave correctly, call pm_runtime_put_noidle in such case. Signed-off-by Liu Chuansheng Signed-off-by: Li Fei --- drivers/mmc/core/sdi

RE: [PATCH 2/5] mmc: core: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-04-07 Thread Li, Fei
> > Hi Li, > > On Thu, Feb 28, 2013 at 9:44 AM, Li Fei wrote: > > Even in failed case of pm_runtime_get_sync, the usage_count > > is incremented. In order to keep the usage_count with correct > > value and runtime power management to behave correctly, call > > pm_runtime_put(_sync) in such case.

Re: [PATCH v4, part3 24/41] mm/m68k: prepare for removing num_physpages and simplify mem_init()

2013-04-07 Thread Greg Ungerer
On 07/04/13 00:32, Jiang Liu wrote: > Prepare for removing num_physpages and simplify mem_init(). > > Signed-off-by: Jiang Liu > Cc: Geert Uytterhoeven > Cc: Greg Ungerer Acked-by: Greg Ungerer Cc: linux-m...@lists.linux-m68k.org > Cc: linux-kernel@vger.kernel.org > --- > arch/m68k/mm/init.c

[PATCH] gpio: update gpio Chinese documentation

2013-04-07 Thread Chen Baozi
Since the GENERIC_GPIO has been removed and the documentation of it has been modified, this patch updates the corresponding documentation of gpio in Chinese. Signed-off-by: Chen Baozi --- Documentation/zh_CN/gpio.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc

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

2013-04-07 Thread Stephen Rothwell
Hi Al, After merging the vfs tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_init': arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2990:2: error: assignment of member 'owner' in read-only object arch/powerp

Re: Linux 3.8.6

2013-04-07 Thread Lucas
On 07/04/13 15:28, Daniel Vetter wrote: On Sun, Apr 7, 2013 at 12:56 AM, Lucas wrote: Thanks for reporting in. Somehow the thread got all messed up in LKML. It didn't parse correctly there, but it seems that Gmane did. Here is the link: http://comments.gmane.org/gmane.linux.kernel.stable/4887

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-07 Thread Minchan Kim
Hello John, As you know, userland people wanted to handle vrange with mmaped pointer rather than fd-based and see the SIGBUS so I thought more about semantic of vrange and want to make it very clear and easy. So I suggest below semantic(Of course, it's not rock solid). mvrange(start_addr,

Re: [v5] clk: add si5351 i2c common clock driver

2013-04-07 Thread Guenter Roeck
On Mon, Apr 08, 2013 at 01:49:24AM +0200, Sebastian Hesselbarth wrote: > On 04/08/2013 12:50 AM, Guenter Roeck wrote: > >On Fri, Apr 05, 2013 at 05:23:35AM -, Sebastian Hesselbarth wrote: > >>This patch adds a common clock driver for Silicon Labs Si5351a/b/c > >>i2c programmable clock generator

[ANNOUNCE] Git v1.8.2.1

2013-04-07 Thread Junio C Hamano
The latest maintenance release Git v1.8.2.1 is now available at the usual places. The release tarballs are found at: http://code.google.com/p/git-core/downloads/list and their SHA-1 checksums are: ad9f833e509ba31c83efe336fd3599e89a39394b git-1.8.2.1.tar.gz bf4abd0e020d24ee47c64760e9fe4372c

[ANNOUNCE] Git v1.8.1.6

2013-04-07 Thread Junio C Hamano
A maintenance release Git v1.8.1.6 is now available at the usual places. The release tarballs are found at: http://code.google.com/p/git-core/downloads/list and their SHA-1 checksums are: 135a4fd6c025ab16560694da110a1476a9b83de2 git-1.8.1.6.tar.gz a9b004bf1b1922f09cb45a7a388bd452399db30c

[PATCH] ALSA: hda: fix mute led on HP Envy 15

2013-04-07 Thread Dan Savilonis
This laptop reports the string HP_Mute_LED_P_G in DMI, but the guess made in hp_set_mute_led() is wrong. So, hard-code the GPIO id. Signed-off-by: Dan Savilonis --- sound/pci/hda/patch_sigmatel.c | 21 + 1 file changed, 21 insertions(+) diff --git a/sound/pci/hda/patch_sigma

Re: [v5] clk: add si5351 i2c common clock driver

2013-04-07 Thread Sebastian Hesselbarth
On 04/08/2013 12:50 AM, Guenter Roeck wrote: On Fri, Apr 05, 2013 at 05:23:35AM -, Sebastian Hesselbarth wrote: This patch adds a common clock driver for Silicon Labs Si5351a/b/c i2c programmable clock generators. Currently, the driver supports DT kernels only and VXCO feature of si5351b is

[53/74] sky2: Threshold for Pause Packet is set wrong

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Mirko Lindner [ Upstream commit 74f9f42c1c1650e74fb464f76644c9041f996851 ] The sky2 driver sets the Rx Upper Threshold for Pause Packet generation to a wrong value which leads to only 2kB of RA

[32/74] vt: synchronize_rcu() under spinlock is not nice...

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Al Viro commit e8cd8169315db57d3c9aa7dd90eda4842874 upstream. vcs_poll_data_free() calls unregister_vt_notifier(), which calls atomic_notifier_chain_unregister(), which calls synchronize_rc

[29/74] staging: comedi: s626: fix continuous acquisition

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit e4317ce877a31dbb9d96375391c1c4ad2210d637 upstream. For the s626 driver, there is a bug in the handling of asynchronous commands on the AI subdevice when the stop source is `TR

[48/74] key: Fix resource leak

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Alan Cox commit a84a921978b7d56e0e4b87ffaca6367429b4d8ff upstream. On an error iov may still have been reallocated and need freeing Signed-off-by: Alan Cox Signed-off-by: David Howells Signe

[26/74] IPoIB: Fix send lockup due to missed TX completion

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Mike Marciniszyn commit 1ee9e2aa7b31427303466776f455d43e5e3c9275 upstream. Commit f0dc117abdfa ("IPoIB: Fix TX queue lockup with mixed UD/CM traffic") attempts to solve an issue where unprocess

[42/74] virtio: console: add locking around c_ovq operations

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Amit Shah commit 9ba5c80b1aea8648a3efe5f22dc1f7cacdfbeeb8 upstream. When multiple ovq operations are being performed (lots of open/close operations on virtio_console fds), the __send_control_ms

[33/74] iommu/amd: Make sure dma_ops are set for hotplug devices

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Joerg Roedel commit c2a2876e863356b092967ea62bebdb4dd663af80 upstream. There is a bug introduced with commit 27c2127 that causes devices which are hot unplugged and then hot-replugged to not ha

[10/74] Bluetooth: Device 0cf3:3008 should map AR 3012

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Sunguk Lee commit 94a32d10f47b637ae24b78b1ddc7ef0e8396fda4 upstream. T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=

[25/74] ASoC: dma-sh7760: Fix compile error

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Lars-Peter Clausen commit 417a1178f1bf3cdc606376b3ded3a22489fbb3eb upstream. The dma-sh7760 currently fails with the following compile error: sound/soc/sh/dma-sh7760.c:346:2: error: unk

[37/74] Btrfs: limit the global reserve to 512mb

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Josef Bacik commit fdf30d1c1b386e1b73116cc7e0fb14e962b763b0 upstream. A user reported a problem where he was getting early ENOSPC with hundreds of gigs of free data space and 6 gigs of free met

[41/74] virtio: console: rename cvq_lock to c_ivq_lock

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Amit Shah commit 165b1b8bbc17c9469b053bab78b11b7cbce6d161 upstream. The cvq_lock was taken for the c_ivq. Rename the lock to make that obvious. We'll also add a lock around the c_ovq in the n

[20/74] net/irda: add missing error path release_sock call

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 896ee0eee6261e30c3623be931c3f621428947df upstream. This makes sure that release_sock is called for all error conditions in irda_getsockopt. Signed-off-by: Kees Cook Reported-

[21/74] sysfs: fix race between readdir and lseek

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Ming Lei commit 991f76f837bf22c5bb07261cfd86525a0a96650c upstream. While readdir() is running, lseek() may set filp->f_pos as zero, then may leave filp->private_data pointing to one sysfs_diren

[30/74] nfsd4: reject "negative" acl lengths

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: "J. Bruce Fields" commit 64a817cfbded8674f345d1117b117f942a351a69 upstream. Since we only enforce an upper bound, not a lower bound, a "negative" length can get through here. The symptom seen

[34/74] can: sja1000: fix define conflict on SH

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Marc Kleine-Budde commit f901b6bc404b67d96eca739857c097e022727b71 upstream. Thias patch fixes a define conflict between the SH architecture and the sja1000 driver: drivers/net/can/sja1000/

[19/74] xen-blkback: fix dispatch_rw_block_io() error path

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Beulich commit 0e5e098ac22dae38f957e951b70d3cf73beff0f7 upstream. Commit 7708992 ("xen/blkback: Seperate the bio allocation and the bio submission") consolidated the pendcnt updates to just

  1   2   3   >