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

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

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

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

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

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

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

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

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,

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

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

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

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

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

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

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

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*

[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

[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

[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

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

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

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

[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

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

[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

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 |

[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

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,

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

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 >

[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

[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

[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

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

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

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

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

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

[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

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

[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

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

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

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

Re: openat(..., AT_UNLINKED) was Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Pavel Machek
Hi! > >>User wants to test for a file with name "foo.txt" > >> > >>* create "foo.txt~" (or whatever) > >>* write contents into "foo.txt~" > >>* rename "foo.txt~" to "foo.txt" > >> > >>Until rename is done, the file does not exists and is not complete. > >>You will potentially have a garbage file

Re: [PATCH] sparc:cleanup unused code in smp_32.h

2013-03-31 Thread David Miller
From: Kefeng Wang Date: Sat, 30 Mar 2013 18:28:26 +0800 > After genirq and generic clockevent support at sparc32, > smp4m_irq_rotate(), prof_multiplier() and prof_counter() > are no longer used and should be removed. > > Find more info from commit 6baa9b20 & 62f08283. > > Signed-off-by: Kefeng

Re: [PATCH] sparc:remove unused declaration smp_boot_cpus()

2013-03-31 Thread David Miller
From: Sam Ravnborg Date: Fri, 29 Mar 2013 12:09:04 +0100 > On Wed, Mar 27, 2013 at 08:20:45PM +0800, Kefeng Wang wrote: >> smp_boot_cpus() was replaced smp_prepare_cpus() long ago, and it no >> longer needed, so delete it. >> >> Signed-off-by: Kefeng Wang > Acked-by: Sam Ravnborg Applied. --

Re: openat(..., AT_UNLINKED) was Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Ric Wheeler
On 03/31/2013 07:18 PM, Pavel Machek wrote: Hi! Take a look at how many actively used filesystems out there that have some variant of sillyrename(), and explain what you want to do in those cases. Well. Yes, there are non-unix filesystems around. You have to deal with silly files on them, and

Re: openat(..., AT_UNLINKED) was Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Pavel Machek
Hi! > Take a look at how many actively used filesystems out there that have > some variant of sillyrename(), and explain what you want to do in those > cases. > >>>Well. Yes, there are non-unix filesystems around. You have to deal > >>>with silly files on them, and this will not be

Internal mic doesn't work on Dell Vostro 3360

2013-03-31 Thread Oleksandr Natalenko
Hi. I've got Dell Vostro 3360 laptop, and internal mic doesn't work. I use 3.8 series kernel. When I try to record sound from mic I get only weird noise. All sliders in alsamixer are 100% and capture is ON. alsa-info.sh script output could be found here:

Re: openat(..., AT_UNLINKED) was Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Ric Wheeler
On 03/31/2013 06:50 PM, Pavel Machek wrote: On Sun 2013-03-31 18:44:53, Myklebust, Trond wrote: On Sun, 2013-03-31 at 20:32 +0200, Pavel Machek wrote: Hmm. open_deleted_file() will still need to get a directory... so it will still need a path. Perhaps open("/foo/bar/mnt", O_DELETED) would be

Re: [char-misc-next 08/11 V5] mei: nfc: Initial nfc implementation

2013-03-31 Thread Greg KH
On Mon, Apr 01, 2013 at 12:49:49AM +0200, Samuel Ortiz wrote: > Hi Greg, > > On Fri, Mar 29, 2013 at 08:48:23AM -0700, Greg KH wrote: > > On Wed, Mar 27, 2013 at 05:30:00PM +0200, Tomas Winkler wrote: > > > --- /dev/null > > > +++ b/drivers/misc/mei/nfc.h > > > @@ -0,0 +1,122 @@ > > >

[PATCH 2/2] PM / QoS: Avoid possible deadlock related to sysfs access

2013-03-31 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit b81ea1b (PM / QoS: Fix concurrency issues and memory leaks in device PM QoS) put calls to pm_qos_sysfs_add_latency(), pm_qos_sysfs_add_flags(), pm_qos_sysfs_remove_latency(), and pm_qos_sysfs_remove_flags() under dev_pm_qos_mtx, which was a mistake, because it may

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

2013-03-31 Thread Rafael J. Wysocki
On Sunday, March 31, 2013 03:41:11 AM Rafael J. Wysocki wrote: > [Moving the thread to the LKML.] > > On Saturday, March 30, 2013 06:41:16 PM Sasha Levin wrote: > > On 03/15/2013 01:06 PM, Rafael J. Wysocki wrote: > [...] > > >> Rafael, Is there anything you would like me to test? > > > > > >

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

2013-03-31 Thread Rafael J. Wysocki
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 (the flags have been removed already by the PM core during the unregistration of

Re: openat(..., AT_UNLINKED) was Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Pavel Machek
On Sun 2013-03-31 18:44:53, Myklebust, Trond wrote: > On Sun, 2013-03-31 at 20:32 +0200, Pavel Machek wrote: > > > > > > Hmm. open_deleted_file() will still need to get a directory... so it > > > > > > will still need a path. Perhaps open("/foo/bar/mnt", O_DELETED) > > > > > > would > > > > > >

Re: [char-misc-next 08/11 V5] mei: nfc: Initial nfc implementation

2013-03-31 Thread Samuel Ortiz
Hi Greg, On Fri, Mar 29, 2013 at 08:48:23AM -0700, Greg KH wrote: > On Wed, Mar 27, 2013 at 05:30:00PM +0200, Tomas Winkler wrote: > > --- /dev/null > > +++ b/drivers/misc/mei/nfc.h > > @@ -0,0 +1,122 @@ > > +/** > > + *

[PATCH] kbuild: avoid rebuild of file2alias for each build

2013-03-31 Thread Sam Ravnborg
When introducing devicetable-offsets generation this had the side-effect that file2alias (and thus modpost) were build for each kernel build. devicetable-offsets were introduced in 6543becf26fff612cdadeed7250ccc8d49f67f27 ("mod/file2alias: make modalias generation safe for cross compiling")

Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Eric Wong
Pavel Machek wrote: > Eric Wong wrote: > > [1] my splice() annoyances: > > * need to create/manage a pipe > > * copy size limited by pipe size > > * doesn't reduce userspace syscalls (just data copy overhead) > > * easy to misuse and starve with blocking sockets + big buffers > >

Freescale FEC: fall back to random address

2013-03-31 Thread Pavel Machek
If there's no valid ethernet address, fall back to randomly generated one. (Yes, I need to get newer u-boot for the board, but as the only available one is from 2009... this might be good idea). Signed-off-by: Pavel Machek index e3f3937..5a7d1e1 100644 pp---

Re: [PATCH v7 5/5] hwmon: add ST-Ericsson ABX500 hwmon driver

2013-03-31 Thread Anton Vorontsov
On Sat, Mar 30, 2013 at 04:27:26PM -0700, Guenter Roeck wrote: > > > > Each of ST-Ericsson X500 chip set series consists of both ABX500 and > > > > DBX500 > > > > chips. This is ABX500 hwmon driver, where the abx500.c is a common > > > > layer for > > > > all ABX500s, and the ab8500.c is

Re: [PATCH] dummy-irq: introduce a dummy IRQ handler driver (was Re: gm45 intel gfx can generate non-MSI irq# in MSI mode (was Re: [PATCH] drm/i915: stop using GMBUS IRQs on Gen4 chips (was Re: [3.9-r

2013-03-31 Thread Jiri Kosina
On Thu, 21 Mar 2013, Daniel Vetter wrote: > Indeed, this is pretty useful and allowed me to quickly reproduce that > phantom irq on my gm45. Thanks to module reloading we can even reset the > kernel's irq disabling logic and so test different tricks quickly without > rebooting. Really useful.

Re: gpio-ucb1400

2013-03-31 Thread Marek Vasut
Dear Guenter Roeck, > On Sat, Mar 30, 2013 at 08:20:44PM +0100, Marek Vasut wrote: > > Dear Guenter Roeck, > > > > > On Fri, Mar 29, 2013 at 08:46:39PM +0100, Jean Delvare wrote: > > > > Hi all, > > > > > > > > In September 2009, a driver for the GPIO function of the UCB1400 chip > > > > was

Re: [PATCH v4 13/14] workqueue: implement NUMA affinity for unbound workqueues

2013-03-31 Thread Tejun Heo
Hello, Lai. On Sun, Mar 31, 2013 at 01:23:46AM +0800, Lai Jiangshan wrote: > But for unbound wq when cpuhotplug > w/o NUMA affinity, works arealways in the cpus if there is online > cpu in wq's cpumask > w/ NUMA affinity, . NOT always even >

Re: openat(..., AT_UNLINKED) was Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Myklebust, Trond
On Sun, 2013-03-31 at 20:32 +0200, Pavel Machek wrote: > > > > > Hmm. open_deleted_file() will still need to get a directory... so it > > > > > will still need a path. Perhaps open("/foo/bar/mnt", O_DELETED) would > > > > > be acceptable interface? > > > > > > > > ...and what's the big plan to

openat(..., AT_UNLINKED) was Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Pavel Machek
> > > > Hmm. open_deleted_file() will still need to get a directory... so it > > > > will still need a path. Perhaps open("/foo/bar/mnt", O_DELETED) would > > > > be acceptable interface? > > > > > > ...and what's the big plan to make this work on anything other than ext4 > > > and btrfs? > >

Re: [PATCH v3 2/7] USB: EHCI: make ehci-spear a separate driver

2013-03-31 Thread Arnd Bergmann
On Saturday 30 March 2013, Arnd Bergmann wrote: > > > In V3: > > > -Detailed commit message added here about why this patch is required. > > > -Eliminated ehci_spear_setup routine beacuse hcd registers > > > directly setting in spear_ehci_hcd_drv_probe function. > > > > Fix the grammar,

Re: New copyfile system call - discuss before LSF?

2013-03-31 Thread Myklebust, Trond
On Sun, 2013-03-31 at 09:36 +0200, Pavel Machek wrote: > Hi! > > > >>> Hmm, really? AFAICT it would be simple to provide an > > >>> open_deleted_file("directory") syscall. You'd open_deleted_file(), > > >>> copy source file into it, then fsync(), then link it into filesystem. > > >>> > > >>>

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

2013-03-31 Thread Tejun Heo
Hello, Viresh. On Sun, Mar 31, 2013 at 08:01:46PM +0530, Viresh Kumar wrote: > Block layer uses workqueues for multiple purposes. There is no real dependency > of scheduling these on the cpu which scheduled them. > > On a idle system, it is observed that and idle cpu wakes up many times just to

[GIT PULL] slave-dmaengine fixes

2013-03-31 Thread Vinod Koul
Hi Linus, Please pull the following two patches to recive the fixes for slave-dmaengine. The first one is for making slave_id value correct for dw_dmac and send one fixes the endieness in DT parsing The following changes since commit 8bb9660418e05bb1845ac1a2428444d78e322cc7: are available in

Re: ipc,sem: sysv semaphore scalability

2013-03-31 Thread Linus Torvalds
On Sun, Mar 31, 2013 at 6:45 AM, Rik van Riel wrote: > > Should we use "semid" here, like Linus suggested, instead of "un->semid"? As Davidlohr noted, in linux-next the rcu read-lock is held over the whole thing, so no, un->semid should be stable once "un" has been re-looked-up under the

Re: ipc,sem: sysv semaphore scalability

2013-03-31 Thread Emmanuel Benisty
Hi Davidlohr, On Sun, Mar 31, 2013 at 12:01 PM, Davidlohr Bueso wrote: > Specially dropping the rcu read lock before the continue statement > (sorry for not mentioning this in the last email). I was missing this indeed, thanks. Still the same issues however... I'll do some more testing on the

[RFC PATCH] Use target compiler for user binaries in samples/

2013-03-31 Thread Sam Ravnborg
The user-space binaries build in samples/ uses the installed headers for the kernel. Therefore it is wrong that they use the host compiler to build the samples. Following is an attempt to create some infrastructure for building user-space binaries that uses the uapi headers. As my sparc cross

Re: [PATCH V4 2/4] PHYLIB: queue work on unbound wq

2013-03-31 Thread David Miller
From: Viresh Kumar Date: Sun, 31 Mar 2013 20:01:45 +0530 > Phylib uses workqueues for multiple purposes. There is no real dependency of > scheduling these on the cpu which scheduled them. > > On a idle system, it is observed that and idle cpu wakes up many times just to > service this work. It

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

2013-03-31 Thread David Miller
From: Viresh Kumar Date: Sun, 31 Mar 2013 13:00:21 +0530 > 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 >> >> This patch moves cpufreq driver of SPARC

Re: [PATCHv2 2/2] watchdog: fix w83627hf_wdt reboot due to timeout expired

2013-03-31 Thread Guenter Roeck
On Sun, Mar 31, 2013 at 08:45:54AM -0700, Tony Chung wrote: > How about this? > > - t &= ~0xC0; /* disable keyboard & mouse turning off > - watchdog */ > + t &= ~0xE0; /* clear timeout occurred and disable > keyboard > +

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-03-31 Thread David Ahern
On 3/14/13 1:57 PM, Pawel Moll wrote: Ok, how about the code below? I must say I have some doubts about the resolution, as there seem to be no generic way of figuring it out for the sched_clock (the arch/arm/kernel/sched_clock.c is actually calculating it, but than just prints it out and nothing

[PATCH 2/2] dmaengine: mpc512x: add slave sg and device control operations

2013-03-31 Thread Anatolij Gustschin
Prepare the driver to support slave sg operation. For memory to memory transfers mpc_dma_execute() used to start the transfer explicitely, for peripheral transfers the dma transfer will be started on peripheral's request, so we only need to enable peripheral's channel request in

[PATCH 1/2] dmaengine: mpc512x_dma: use generic DMA DT bindings

2013-03-31 Thread Anatolij Gustschin
Add generic DMA bindings and register the DMA controller to DT DMA helpers. Signed-off-by: Anatolij Gustschin --- arch/powerpc/boot/dts/mpc5121.dtsi |5 ++- drivers/dma/mpc512x_dma.c | 63 ++-- 2 files changed, 64 insertions(+), 4 deletions(-)

[PATCH] pwm: pxa: Use driver_data field to store pwm_nr

2013-03-31 Thread Axel Lin
The driver_data field was used to store information about PWM_ID_BASE and HAS_SECONDARY_PWM. PWM_ID_BASE is not used now after convert to pwm framework. This patch stores the pwm_nr in driver_data field to simplify the code. Signed-off-by: Axel Lin --- drivers/pwm/pwm-pxa.c | 11 ---

Re: [PATCH] [TRIVIAL] Remove obsolete, iSeries specific, Makefile lines

2013-03-31 Thread Jiri Kosina
On Fri, 29 Mar 2013, Paul Bolle wrote: > Signed-off-by: Paul Bolle > --- > 0) Entirely untested. > > 1) See commit 3d066d77cf464ea1e47808f95243301fd2175a7f ("powerpc: remove > CONFIG_PPC_ISERIES from the architecture Kconfig files") and commit > ba7a4822b48fbc7afd6b567c18e316a03f46684d

Re: [PATCHv2 2/2] watchdog: fix w83627hf_wdt reboot due to timeout expired

2013-03-31 Thread Tony Chung
How about this? - t &= ~0xC0; /* disable keyboard & mouse turning off - watchdog */ + t &= ~0xE0; /* clear timeout occurred and disable keyboard +& mouse turning off watchdog */

[PATCH] pwm: twl: Return proper error if twl6030_pwm_enable() fails

2013-03-31 Thread Axel Lin
Return proper error instead of 0 if twl6030_pwm_enable() fails. Signed-off-by: Axel Lin --- drivers/pwm/pwm-twl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c index ee7fa5d..2782001 100644 --- a/drivers/pwm/pwm-twl.c +++

[PATCH 3/3] pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip

2013-03-31 Thread Axel Lin
clk_enable/clk_disable maintain an enable_count, clk_prepare and clk_unprepare also maintain a prepare_count. These APIs will do prepare/enable when the first user calling these APIs, and do disable/unprepare when the corresponding counter reach 0. Thus We don't need to maintain a clk_enabled

Re: [PATCH 1/1] TTY Fix NULL pointer error in tty_wakeup

2013-03-31 Thread Greg Kroah-Hartman
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Sun, Mar 31, 2013 at 04:09:05PM +0800, frankie lin wrote: > Hi, greg, it's excited to get your reply. > In our case, it is gs_start_io(struct gs_port *port) in the file u_serial.c > who > call the

  1   2   3   >