[PATCH v2 0/7] Tegra USB PHY driver series

2013-04-03 Thread Venu Byravarasu
delta from v1: This patch is prepared as follow up patch of TEGRA USB PHY driver patch series being discussed at: http://marc.info/?l=linux-tegram=136361016003625w=2 Venu Byravarasu (7): ARM: tegra: finalize USB EHCI and PHY bindings ARM: tegra: update device trees for USB binding rework

[PATCH 02/12] usb: phy: ab8500-usb: convert to devm_kzalloc

2013-04-03 Thread Fabio Baltieri
Convert local data allocation to devm_kzalloc and drop unnecessary fail path code. Acked-by: Linus Walleij linus.wall...@linaro.org Signed-off-by: Fabio Baltieri fabio.balti...@linaro.org --- drivers/usb/phy/phy-ab8500-usb.c | 19 +-- 1 file changed, 5 insertions(+), 14

Re: [patch v3 0/8] sched: use runnable avg in load balance

2013-04-03 Thread Alex Shi
On 04/02/2013 03:23 PM, Michael Wang wrote: | 15 GB | 12 | 45393 | | 43986 | | 15 GB | 16 | 45110 | | 45719 | | 15 GB | 24 | 41415 | | 36813 | -11.11% | 15 GB | 32 | 35988 | | 34025 | The reason may caused by wake_affine()'s higher overhead, and

[PATCH v2 6/7] usb: phy: tegra: Add error handling clean up.

2013-04-03 Thread Venu Byravarasu
Check return values from all GPIO APIs and handle errors accordingly. Remove clk_disable_unprepare which is no more needed. Signed-off-by: Venu Byravarasu vbyravar...@nvidia.com --- delta from v2: no change. drivers/usb/phy/phy-tegra-usb.c | 50 ++ 1 files

[PATCH 05/12] usb: phy: ab8500-usb: add regulator support

2013-04-03 Thread Fabio Baltieri
Add initial regulator support to ab8500-usb by introducing necessary devm_regulator_get(). Acked-by: Linus Walleij linus.wall...@linaro.org Signed-off-by: Fabio Baltieri fabio.balti...@linaro.org --- drivers/usb/phy/phy-ab8500-usb.c | 36 1 file changed, 36

[PATCH 06/12] usb: phy: ab8500-usb: split ab8500_usb_phy_ctrl

2013-04-03 Thread Fabio Baltieri
Split ab8500_usb_phy_ctrl into separate enable/disable functions to make the code more linear and readable. Acked-by: Linus Walleij linus.wall...@linaro.org Signed-off-by: Fabio Baltieri fabio.balti...@linaro.org --- drivers/usb/phy/phy-ab8500-usb.c | 55 +++-

[PATCH 07/12] usb: phy: ab8500-usb: enable/disable regulator on phy events

2013-04-03 Thread Fabio Baltieri
Add ab8500_usb_regulator_{enable,disable} functions to control USB phy regulators on corresponding ab8500_usb_phy_{enable,disable} events. This contains some workaround and optimization for specific AB8500 versions. Signed-off-by: Mian Yousaf Kaukab mian.yousaf.kau...@stericsson.com

[PATCH 08/12] usb: phy: ab8500-usb: fix unbalanced clock and regulator disable warnings

2013-04-03 Thread Fabio Baltieri
From: Mian Yousaf Kaukab mian.yousaf.kau...@stericsson.com To prevent clock and regulator frameworks from complaining, only disable the host or peripheral phy if they were enabled. Reported-by: Sakethram Bommisetti sakethram.bommise...@stericsson.com Signed-off-by: Mian Yousaf Kaukab

[PATCH 09/12] usb: phy: ab8500-usb: fix last notifier arguments

2013-04-03 Thread Fabio Baltieri
Fix last ab-phy.notifier call to use vbus_draw as notifier argument, as that's used in ab8500_charger to control charging current. Also drop a related TODO comment, and the additional ux500_musb_set_vbus(musb, 0), as with this patch it was causing an erratic behaviour of gadget ep0 state machine.

[PATCH 10/12] usb: phy: ab8500-usb: adopt pinctrl support

2013-04-03 Thread Fabio Baltieri
From: Patrice Chotard patrice.chot...@st.com Amend the ab8500-usb driver to optionally take a pin control handle and set the state of the pins to default on ab8500_usb_phy_enable and to sleep on ab8500_usb_phy_disable. The pinctrl handle is released on ab8500_usb_phy_disable because USB pins are

[PATCH 11/12] usb: phy: ab8500-usb: drop link status delayed work

2013-04-03 Thread Fabio Baltieri
From: Sakethram Bommisetti sakethram.bommise...@stericsson.com ab8500_usb_delayed_work was implemented as a workaroud for the internal only and now unsupported v1.0 version of AB850. This patch removes the delayed work and just leave a link status update call at probe time. Signed-off-by:

[PATCH 12/12] usb: phy: ab8500-usb: call phy_dis_work only when necessary

2013-04-03 Thread Fabio Baltieri
From: Sakethram Bommisetti sakethram.bommise...@stericsson.com Modify ab8500_usb_set_peripheral() and ab8500_usb_set_host() code to schedule phy_dis_work only when necessary in order to prevent regulator count mismatch during reboot/shutdown. Signed-off-by: Sakethram Bommisetti

[PATCH 04/12] usb: phy: ab8500-usb: fix eye diagram for ab8500 v2.0

2013-04-03 Thread Fabio Baltieri
From: Sakethram Bommisetti sakethram.bommise...@stericsson.com AB8500 v2.0 has eye diagram issues when drawing more than 100mA from VBUS. Force charging current to 100mA in case of standard host. Signed-off-by: Sakethram Bommisetti sakethram.bommise...@stericsson.com Acked-by: Linus Walleij

Re: [PATCH -v2] memcg: don't do cleanup manually if mem_cgroup_css_online() fails

2013-04-03 Thread Michal Hocko
On Wed 03-04-13 16:37:53, Li Zefan wrote: But memcg_update_cache_sizes calls memcg_kmem_clear_activated on the error path. But memcg_kmem_mark_dead() checks the ACCOUNT flag not the ACCOUNTED flag. Am I missing something? Dang. You are right! Glauber, is there any reason why

[PATCH v2 4/7] usb: phy: tegra: Return correct error value provided by clk_get_sys

2013-04-03 Thread Venu Byravarasu
In case if clk_get_sys fails, return correct error value provided by the API. Signed-off-by: Venu Byravarasu vbyravar...@nvidia.com --- delta from v1: no change. drivers/usb/phy/phy-tegra-usb.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git

[PATCH 03/12] usb: phy: ab8500-usb: set phy tuning values

2013-04-03 Thread Fabio Baltieri
From: Sakethram Bommisetti sakethram.bommise...@stericsson.com Set phy tuning values proposed by the hardware teams for AB8500 and AB8505 to improve USB eye diagram performances. Signed-off-by: Sakethram Bommisetti sakethram.bommise...@stericsson.com Acked-by: Linus Walleij

[PATCH v2 5/7] usb: phy: tegra: get ULPI reset GPIO info using DT.

2013-04-03 Thread Venu Byravarasu
As GPIO information is avail through DT, used it to get Tegra ULPI reset GPIO number. Added a new member to tegra_usb_phy structure to store this number. Signed-off-by: Venu Byravarasu vbyravar...@nvidia.com --- delta from v2: no change. drivers/usb/phy/phy-tegra-usb.c | 25

Re: s390x: kernel BUG at fs/ext4/inode.c:1591! (powerpc too!)

2013-04-03 Thread Dmitry Monakhov
On Tue, 2 Apr 2013 16:22:41 -0700 (PDT), Christian Kujau li...@nerdbynature.de wrote: On Wed, 3 Apr 2013 at 02:05, Dmitry Monakhov wrote: Please drop that patch and collect logs with a kernel which has only 0001-enable-ES_AGGRESSIVE_TEST-V2.patch patch applied Ok I have found at least one

[PATCH v2 7/7] usb: phy: registering Tegra USB PHY as platform driver

2013-04-03 Thread Venu Byravarasu
Registered Tegra USB PHY as a separate platform driver. To synchronize host controller and PHY initialization, used deferred probe mechanism. As PHY should be initialized before EHCI starts running, deferred probe of Tegra EHCI driver till PHY probe gets completed. Got rid of instance number

Re: [PATCH 04/12] usb: phy: ab8500-usb: fix eye diagram for ab8500 v2.0

2013-04-03 Thread Felipe Balbi
On Wed, Apr 03, 2013 at 10:45:05AM +0200, Fabio Baltieri wrote: From: Sakethram Bommisetti sakethram.bommise...@stericsson.com AB8500 v2.0 has eye diagram issues when drawing more than 100mA from VBUS. Force charging current to 100mA in case of standard host. Signed-off-by: Sakethram

[PATCH 1/2] Revert memcg: avoid dangling reference count in creation failure.

2013-04-03 Thread 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 lize...@huawei.com

[PATCH 2/2] memcg, kmem: clean up reference count handling on the error path

2013-04-03 Thread 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 reference. This all

[PATCH v2 3/7] usb: phy: tegra: Get PHY mode using DT

2013-04-03 Thread Venu Byravarasu
Added a new PHY mode to support OTG. Obtained Tegra USB PHY mode using DT property. Signed-off-by: Venu Byravarasu vbyravar...@nvidia.com --- delta from v1: replaced gadget with peripheral. drivers/usb/host/ehci-tegra.c |3 +-- drivers/usb/phy/phy-tegra-usb.c | 13 +++--

[PATCH v2 2/7] ARM: tegra: update device trees for USB binding rework

2013-04-03 Thread Venu Byravarasu
This patch updates all Tegra board files so that they contain all the properties required by the updated USB DT binding. Note that this patch only adds the new properties and does not yet remove the old properties, in order to maintain bisectability. The old properties will be removed once the

[PATCH v2 1/7] ARM: tegra: finalize USB EHCI and PHY bindings

2013-04-03 Thread Venu Byravarasu
The existing Tegra USB bindings have a few issues: 1) Many properties are documented as being part of the EHCI controller node, yet they apply more to the PHY device. They should be moved. 2) Some registers in PHY1 are shared with PHY3, and hence PHY3 needs a reg entry to point at PHY1's

Re: [PATCH 04/12] usb: phy: ab8500-usb: fix eye diagram for ab8500 v2.0

2013-04-03 Thread Felipe Balbi
On Wed, Apr 03, 2013 at 11:53:36AM +0300, Felipe Balbi wrote: On Wed, Apr 03, 2013 at 10:45:05AM +0200, Fabio Baltieri wrote: From: Sakethram Bommisetti sakethram.bommise...@stericsson.com AB8500 v2.0 has eye diagram issues when drawing more than 100mA from VBUS. Force charging current

Re: [PATCH] i2c-hid: fix length for set/get report in i2c hid

2013-04-03 Thread Benjamin Tissoires
Hi Huzefa, On Tue, Apr 2, 2013 at 12:52 PM, Huzefa Kankroliwala huzefa.nomanx.kankroliw...@intel.com wrote: With the current i2c hid driver set/get report does not work as expected, for e.g sensor hub properties like power state, frequency etc is not set properly on the device as a result we

Re: [PATCH] timer: Fix possible issues with non serialized timer_pending( )

2013-04-03 Thread Christian Ruppert
We have tested the patch in several configurations and boards using tests which previously crashed the kernel in less than an hour. The crashes in question could not be reproduced in long term tests (3 days) and nightly tests with the patch. I can thus confirm that this fixes a real issue. On

Re: [PATCH 6/9] perf sort: Add 'addr' sort key

2013-04-03 Thread Namhyung Kim
Hi Jiri, On Tue, 2 Apr 2013 10:40:14 +0200, Jiri Olsa wrote: On Tue, Apr 02, 2013 at 11:15:23AM +0900, Namhyung Kim wrote: On Mon, 1 Apr 2013 22:40:23 +0200, Jiri Olsa wrote: On Mon, Apr 01, 2013 at 08:35:22PM +0900, Namhyung Kim wrote: From: Namhyung Kim namhyung@lge.com New addr

Re: [PATCH 04/12] usb: phy: ab8500-usb: fix eye diagram for ab8500 v2.0

2013-04-03 Thread Fabio Baltieri
Hi Felipe, On Wed, Apr 03, 2013 at 11:58:58AM +0300, Felipe Balbi wrote: On Wed, Apr 03, 2013 at 11:53:36AM +0300, Felipe Balbi wrote: On Wed, Apr 03, 2013 at 10:45:05AM +0200, Fabio Baltieri wrote: From: Sakethram Bommisetti sakethram.bommise...@stericsson.com AB8500 v2.0 has eye

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

2013-04-03 Thread Li Zefan
(I'll be off from my office soon, and I won't be responsive in the following 3 days.) I'm working on converting memcg to use cgroup-id, and then we can kill css_id. Now memcg has its own refcnt, so when a cgroup is destroyed, the memcg can still be alive. This patchset converts memcg to always

[RFC][PATCH 2/7] memcg: don't use mem_cgroup_get() when creating a kmemcg cache

2013-04-03 Thread Li Zefan
Use css_get()/css_put() instead of mem_cgroup_get()/mem_cgroup_put(). Signed-off-by: Li Zefan lize...@huawei.com --- mm/memcontrol.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 43ca91d..dafacb8 100644 ---

[RFC][PATCH 4/7] memcg: use css_get/put for swap memcg

2013-04-03 Thread Li Zefan
Use css_get/put instead of mem_cgroup_get/put. Signed-off-by: Li Zefan lize...@huawei.com --- mm/memcontrol.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 877551d..ad576e8 100644 --- a/mm/memcontrol.c +++

[RFC][PATCH 5/7] cgroup: make sure parent won't be destroyed before its children

2013-04-03 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 due to css ref draining to 0. Now it would be a disaster if the child cgroup tries to access its parent. Make sure this won't happen. Signed-off-by: Li

[RFC][PATCH 6/7] memcg: don't need to get a reference to the parent

2013-04-03 Thread Li Zefan
The cgroup core guarantees it's always safe to access the parent. Signed-off-by: Li Zefan lize...@huawei.com --- mm/memcontrol.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index ad576e8..45129cd 100644 ---

Re: [PATCH] To add NULL pointer check

2013-04-03 Thread P J P
+-- On Wed, 3 Apr 2013, Jaegeuk Kim wrote --+ | I'm confusing the question because f2fs doesn't use generic_writepages(), | since f2fs_write_data_pages() is linked to a_ops-writepages. In | do_writepages(), always f2fs_write_data_pages() is triggered instead of | generic_writepages(). Isn't it?

[RFC][PATCH 3/7] memcg: use css_get/put when charging/uncharging kmem

2013-04-03 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

[RFC][PATCH 7/7] memcg: kill memcg refcnt

2013-04-03 Thread Li Zefan
Now memcg has the same life cycle as the corresponding cgroup. Kill the useless refcnt. Signed-off-by: Li Zefan lize...@huawei.com --- mm/memcontrol.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index

[RFC][PATCH 1/7] memcg: use css_get in sock_update_memcg()

2013-04-03 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. Signed-off-by: Li Zefan lize...@huawei.com --- mm/memcontrol.c | 8

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

2013-04-03 Thread Stephane Eranian
On Tue, Apr 2, 2013 at 12:29 AM, David Ahern dsah...@gmail.com wrote: On 4/1/13 12:29 PM, John Stultz wrote: Any chance a decision can be reached in time for 3.10? Seems like the simplest option is the perf event based ioctl. I'm still not sold on the CLOCK_PERF posix clock. The semantics

Re: [RFC 1/4] mm: Per process reclaim

2013-04-03 Thread Michael Kerrisk
Hello Minchan, On Mon, Mar 25, 2013 at 7:21 AM, Minchan Kim minc...@kernel.org wrote: These day, there are many platforms avaiable in the embedded market and they are smarter than kernel which has very limited information about working set so they want to involve memory management more heavily

Re: [RFC][PATCH 0/7] memcg: make memcg's life cycle the same as cgroup

2013-04-03 Thread Glauber Costa
On 04/03/2013 01:11 PM, Li Zefan wrote: The historical reason that memcg didn't use css_get in some cases, is that cgroup couldn't be removed if there're still css refs. The situation has changed so that rmdir a cgroup will succeed regardless css refs, but won't be freed until css refs goes

[PATCH] sound: soc: tegra: do not provide PAUSE/RESUME in hardware info

2013-04-03 Thread Laxman Dewangan
Tegra PCM driver uses the dmaengine based DMA driver and Tegra DMA driver does not support the pause/resume functionality as hardware does not support it. ALSA driver support the sw based pause/resume functionality if hardware does not support it and in this case, hw driver should not provide the

[PATCH] pinctrl/abx500: fix ab8505 alternate function

2013-04-03 Thread Linus Walleij
From: Patrice Chotard patrice.chot...@st.com This fix allows to correctly select default and alternate pin mode. By default for all ABx500 family chip, pin default mode is selected by clearing corresponding bit in GPIOSELx register except for pins which support alternate function, in this case,

[PATCH] ARM: at91: remove unused dbgu_readl() macro

2013-04-03 Thread Nicolas Ferre
Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/include/mach/at91_dbgu.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/at91_dbgu.h b/arch/arm/mach-at91/include/mach/at91_dbgu.h index 2aa0c5e..3b59485 100644 ---

[PATCH] reboot: call syscore_shutdown() after disable_nonboot_cpus()

2013-04-03 Thread Huacai Chen
As commit 40dc166c (PM / Core: Introduce struct syscore_ops for core subsystems PM) say, syscore_ops operations should be carried with one CPU on-line and interrupts disabled. However, after commit f96972f2d (kernel/sys.c: call disable_nonboot_cpus() in kernel_restart()), syscore_shutdown() is

Re: [PATCH] sound: soc: tegra: do not provide PAUSE/RESUME in hardware info

2013-04-03 Thread Lars-Peter Clausen
On 04/03/2013 11:19 AM, Laxman Dewangan wrote: Tegra PCM driver uses the dmaengine based DMA driver and Tegra DMA driver does not support the pause/resume functionality as hardware does not support it. ALSA driver support the sw based pause/resume functionality if hardware does not support

Re: [PATCH 1/3] kthread: implement probe_kthread_data()

2013-04-03 Thread Jan Kara
On Fri 29-03-13 20:00:45, Tejun Heo wrote: Implement probe_kthread_data() which returns kthread_data if accessible. The function is equivalent to kthread_data() except that the specified @task may not be a kthread or its vfork_done is already cleared rendering struct kthread inaccessible. In

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

2013-04-03 Thread Viresh Kumar
On 31 March 2013 09:23, Viresh Kumar viresh.ku...@linaro.org wrote: On 25 March 2013 15:41, Viresh Kumar viresh.ku...@linaro.org wrote: This patch moves cpufreq driver of Samsung's ARM based s3c24xx platform to drivers/cpufreq. Cc: Ben Dooks ben-li...@fluff.org Cc: Kukjin Kim

Re: [PATCH cpuset] Use rebuild_sched_domains() in cpuset_hotplug_workfn()

2013-04-03 Thread Li Zefan
On 2013/4/2 15:16, Li Zhong wrote: In cpuset_hotplug_workfn(), partition_sched_domains() is called without hotplug lock held, which is actually needed (stated in the function header of partition_sched_domains()). This patch tries to use rebuild_sched_domains() to solve the above issue, and

Re: [PATCH 04/12] usb: phy: ab8500-usb: fix eye diagram for ab8500 v2.0

2013-04-03 Thread Felipe Balbi
On Wed, Apr 03, 2013 at 11:12:00AM +0200, Fabio Baltieri wrote: Hi Felipe, On Wed, Apr 03, 2013 at 11:58:58AM +0300, Felipe Balbi wrote: On Wed, Apr 03, 2013 at 11:53:36AM +0300, Felipe Balbi wrote: On Wed, Apr 03, 2013 at 10:45:05AM +0200, Fabio Baltieri wrote: From: Sakethram

Re: [PATCH] sound: soc: tegra: do not provide PAUSE/RESUME in hardware info

2013-04-03 Thread Laxman Dewangan
On Wednesday 03 April 2013 03:56 PM, Lars-Peter Clausen wrote: On 04/03/2013 11:19 AM, Laxman Dewangan wrote: Tegra PCM driver uses the dmaengine based DMA driver and Tegra DMA driver does not support the pause/resume functionality as hardware does not support it. ALSA driver support the sw

Re: [patch v3 0/8] sched: use runnable avg in load balance

2013-04-03 Thread Michael Wang
On 04/03/2013 04:46 PM, Alex Shi wrote: On 04/02/2013 03:23 PM, Michael Wang wrote: | 15 GB | 12 | 45393 | | 43986 | | 15 GB | 16 | 45110 | | 45719 | | 15 GB | 24 | 41415 | | 36813 |-11.11% | 15 GB | 32 | 35988 | | 34025 | The reason may caused by

Re: NULL pointer at kset_find_obj

2013-04-03 Thread David Howells
CAI Qian caiq...@redhat.com wrote: Can you check back earlier in the dmesg to see whether the kernel tried to load the key? -11 is presumably -EAGAIN - in which case no such key was found (rather than there being a cached lookup failure which is what -ENOKEY would indicate). It is

Re: [PATCH v8 1/8] spi/spi-atmel: add physical base address

2013-04-03 Thread Richard GENOUD
On [mer., 03.04.2013 13:57:42], Wenyou Yang wrote: From: Nicolas Ferre nicolas.fe...@atmel.com Needed for future use with dmaengine enabled driver. Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: spi-devel-gene...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org

Re: [PATCH v8 2/8] spi/spi-atmel: add flag to controller data for lock operations

2013-04-03 Thread Richard GENOUD
On [mer., 03.04.2013 13:58:36], Wenyou Yang wrote: From: Nicolas Ferre nicolas.fe...@atmel.com Will allow to drop the lock during DMA operations. Replacing non-irqsave versions with irqsave versions of the lock to make it correct in both pdc and dmaengine transfer mode Signed-off-by:

[PATCH] audit: don't check if kauditd is valid everytime

2013-04-03 Thread Gao feng
We only need to check if kauditd is valid after we start it, if kauditd is invalid, we will set kauditd_task to NULL. So next time, we will start kauditd again. It means if kauditd_task is not NULL,it must be valid. Signed-off-by: Gao feng gaof...@cn.fujitsu.com --- kernel/audit.c | 12

Re: [PATCH 2/2] memcg, kmem: clean up reference count handling on the error path

2013-04-03 Thread Michal Hocko
On Wed 03-04-13 10:53:54, Michal Hocko wrote: 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

Re: [RFC PATCH v2] rtc: rtc-at91rm9200: manage IMR depending on revision

2013-04-03 Thread Johan Hovold
On Tue, Apr 02, 2013 at 06:36:06PM +0200, Nicolas Ferre wrote: Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com --- Hi again, Here is my latest revision of this fix. It depends on the patch that is already in Andrew's patch stack: drivers-rtc-rtc-at91rm9200c-add-dt-support.patch.

Re: s390x: kernel BUG at fs/ext4/inode.c:1591! (powerpc too!)

2013-04-03 Thread Dmitry Monakhov
On Wed, 03 Apr 2013 12:52:06 +0400, Dmitry Monakhov dmonak...@openvz.org wrote: Non-text part: multipart/mixed On Tue, 2 Apr 2013 16:22:41 -0700 (PDT), Christian Kujau li...@nerdbynature.de wrote: On Wed, 3 Apr 2013 at 02:05, Dmitry Monakhov wrote: Please drop that patch and collect logs

[PATCH] Revert drivers/rtc/rtc-at91rm9200.c: use a variable for storing IMR

2013-04-03 Thread Johan Hovold
This reverts commit 0ef1594c017521ea89278e80fe3f80dafb17abde. This patch introduced a few races which cannot be easily fixed with a small follow-up patch. Furthermore, the SoC with the broken hardware register, which this patch intended to add support for, can only be used with device trees,

[RFC v2 1/4] rtc-at91rm9200: add configuration support

2013-04-03 Thread Johan Hovold
Add configuration support which can be used to implement SoC-specific workarounds for broken hardware. Signed-off-by: Johan Hovold jhov...@gmail.com --- drivers/rtc/rtc-at91rm9200.c | 42 -- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git

[RFC v2 4/4] rtc-at91rm9200: add support for at91sam9x5

2013-04-03 Thread Johan Hovold
Add support for the at91sam9x5-family which must use the shadow interrupt mask due to a hardware issue. Signed-off-by: Johan Hovold jhov...@gmail.com --- Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt | 2 +- drivers/rtc/rtc-at91rm9200.c | 7

[RFC v2 0/4] rtc-at91rm9200: add support for at91sam9x5

2013-04-03 Thread Johan Hovold
This v2 of my version of the work-around for the buggy hardware register on sam9x5, based on top of the revert of commit 0ef1594c017 (drivers/rtc/rtc-at91rm9200.c: use a variable for storing IMR) and the DT-support patch in Andrew's queue. If preferred, the generic configuration support added in

Re: [GIT PULL] at91: soc for 3.10 #2

2013-04-03 Thread Arnd Bergmann
On Wednesday 03 April 2013, Nicolas Ferre wrote: Also, USE_OF isn't set at that point (it's controlled by the next section), so it can't be used as a replacement. Also, isn't it a bit backwards in the first place to first set ATAGS vs no-ATAGS, and then get to choose what hardware you

Re: s390x: kernel BUG at fs/ext4/inode.c:1591! (powerpc too!)

2013-04-03 Thread Zheng Liu
On Wed, Apr 03, 2013 at 01:53:49PM +0400, Dmitry Monakhov wrote: On Wed, 03 Apr 2013 12:52:06 +0400, Dmitry Monakhov dmonak...@openvz.org wrote: Non-text part: multipart/mixed On Tue, 2 Apr 2013 16:22:41 -0700 (PDT), Christian Kujau li...@nerdbynature.de wrote: On Wed, 3 Apr 2013 at

[RFC v2 2/4] rtc-at91rm9200: refactor interrupt-register handling

2013-04-03 Thread Johan Hovold
Add accessors for the interrupt register. This will allow us to easily add a shadow interrupt-mask register to use on SoCs where the interrupt-mask register cannot be used. Signed-off-by: Johan Hovold jhov...@gmail.com --- drivers/rtc/rtc-at91rm9200.c | 43

[RFC v2 3/4] rtc-at91rm9200: add shadow interrupt mask

2013-04-03 Thread Johan Hovold
Add shadow interrupt-mask register which can be used on SoCs where the actual hardware register is broken. Note that some care needs to be taken to make sure the shadow mask corresponds to the actual hardware state. The added overhead is not an issue for the non-broken SoCs due to the relatively

Re: [RFC 1/4] mm: Per process reclaim

2013-04-03 Thread Michael Kerrisk
Hello Minchan, On Mon, Mar 25, 2013 at 7:21 AM, Minchan Kim minc...@kernel.org wrote: These day, there are many platforms avaiable in the embedded market and they are smarter than kernel which has very limited information about working set so they want to involve memory management more heavily

Re: [RFC 1/4] mm: Per process reclaim

2013-04-03 Thread Michael Kerrisk
However, the interface is a quite blunt instrument. Would there be any virtue in extending it so that an address range could be written to Here, I did mean to say an *optional* address range. Thanks, Michael -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

[PATCH v6 1/3] staging: zcache: fix static variables defined in debug.h but used in mutiple C files

2013-04-03 Thread Wanpeng Li
After commit 95bdaee214 (zcache: Move debugfs code out of zcache-main.c file) be merged, most of knods in zcache debugfs just export zero since these variables are defined in debug.h but are in use in multiple C files zcache-main.c and debug.c, in this case variables can't be treated as shared

[PATCH v2 3/3] staging: zcache: clean TODO list

2013-04-03 Thread Wanpeng Li
Cleanup TODO list since support zero-filled pages more efficiently has already done by this patchset. Acked-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Wanpeng Li liw...@linux.vnet.ibm.com --- drivers/staging/zcache/TODO |3 +-- 1 files changed, 1 insertions(+), 2

[PATCH part2 v6 0/3] staging: zcache: Support zero-filled pages more efficiently

2013-04-03 Thread Wanpeng Li
Changelog: v5 - v6: * shove variables in debug.c and in debug.h just have an extern, spotted by Konrad * update patch description, spotted by Konrad v4 - v5: * fix compile error, reported by Fengguang, Geert * add check for !is_ephemeral(pool), spotted by Bob v3 - v4: * handle

[PATCH v6 2/3] staging: zcache: introduce zero-filled page stat count

2013-04-03 Thread Wanpeng Li
Introduce zero-filled page statistics to monitor the number of zero-filled pages. Acked-by: Dan Magenheimer dan.magenhei...@oracle.com Signed-off-by: Wanpeng Li liw...@linux.vnet.ibm.com --- drivers/staging/zcache/debug.c |3 +++ drivers/staging/zcache/debug.h | 17

Re: NULL pointer at kset_find_obj

2013-04-03 Thread David Howells
Rusty Russell ru...@rustcorp.com.au wrote: I think this bit should be waved in front of Rusty. It looks like it might be a bug in error handling code. It does look like it, but I can't see it. The module code doesn't see an error (presumably sig_enforce is false), so we continue

Re: [PATCH] Revert drivers/rtc/rtc-at91rm9200.c: use a variable for storing IMR

2013-04-03 Thread Nicolas Ferre
On 04/03/2013 11:54 AM, Johan Hovold : This reverts commit 0ef1594c017521ea89278e80fe3f80dafb17abde. This patch introduced a few races which cannot be easily fixed with a small follow-up patch. Furthermore, the SoC with the broken hardware register, which this patch intended to add support

Re: Excessive stall times on ext4 in 3.9-rc2

2013-04-03 Thread Mel Gorman
On Tue, Apr 02, 2013 at 11:14:36AM -0400, Theodore Ts'o wrote: On Tue, Apr 02, 2013 at 11:06:51AM -0400, Theodore Ts'o wrote: Can you try 3.9-rc4 or later and see if the problem still persists? There were a number of ext4 issues especially around low memory performance which weren't

Re: [PATCH v8 3/8] spi/spi-atmel: add dmaengine support

2013-04-03 Thread Richard GENOUD
On [mer., 03.04.2013 13:59:19], Wenyou Yang wrote: From: Nicolas Ferre nicolas.fe...@atmel.com Add dmaengine support. Using has_dma_support member of struct is used to select the transfer mode: dmaengine or pdc. For the dmaengine transfer mode, it supports both 8 bits and 16 bits

Re: [PATCH 1/1] Introduce Intel RAPL cooling device driver

2013-04-03 Thread Paul Bolle
On Tue, 2013-04-02 at 15:15 -0700, Jacob Pan wrote: --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -781,4 +781,12 @@ config APPLE_GMUX graphics as well as the backlight. Currently only backlight control is supported by the driver. +config

Re: Patch efi: Build EFI stub with EFI-appropriate options has been added to the 3.6-stable tree

2013-04-03 Thread Matt Fleming
On 30/03/13 10:04, Daniel Vacek wrote: On Sat, Mar 30, 2013 at 4:28 AM, Ben Hutchings b...@decadent.org.uk wrote: Daniel, this is an obvious fix but I noticed it still hasn't been applied. Please can you re-send with the proper Signed-off-by line? Resending patch. It got lost somewhere.

Re: [PATCH v8 8/8] ARM: dts: add pinctrl property for spi node for atmel SoC

2013-04-03 Thread Richard GENOUD
On [mer., 03.04.2013 14:03:52], Wenyou Yang wrote: Signed-off-by: Wenyou Yang wenyou.y...@atmel.com Cc: li...@arm.linux.org.uk Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/at91sam9260.dtsi | 22 ++ arch/arm/boot/dts/at91sam9263.dtsi | 22

Re: [PATCH 1/9] AVR32: cpufreq: move cpufreq driver to drivers/cpufreq

2013-04-03 Thread Viresh Kumar
On 3 April 2013 15:12, Hans-Christian Egtvedt egtv...@samfundet.no wrote: Around Wed 03 Apr 2013 14:58:29 +0530 or thereabout, Viresh Kumar wrote: Ping!! If it still builds, then Acked-by: Hans-Christian Egtvedt egtv...@samfundet.no It only uses global header files, so should be fine.

Re: [RFC PATCH v2] rtc: rtc-at91rm9200: manage IMR depending on revision

2013-04-03 Thread Nicolas Ferre
On 04/03/2013 11:51 AM, Johan Hovold : On Tue, Apr 02, 2013 at 06:36:06PM +0200, Nicolas Ferre wrote: Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com --- Hi again, Here is my latest revision of this fix. It depends on the patch that is already in Andrew's patch stack:

Re: [PATCH v5 2/3] block: Add API for urgent request handling

2013-04-03 Thread Tanya Brokhman
On 3/25/2013 2:40 PM, Jens Axboe wrote: On Mon, Mar 25 2013, Tanya Brokhman wrote: This patch add support in block elevator layers for handling urgent requests. The decision if a request is urgent or not is taken by the scheduler. Request is marked as urgent in cmd_flags (by the scheduler)

[PATCH resend] usb: host: tegra: Reset Tegra USB controller before init

2013-04-03 Thread Venu Byravarasu
To clear any configurations made by U-Boot on Tegra USB controller, reset it before init in probe. Signed-off-by: Venu Byravarasu vbyravar...@nvidia.com Acked-by: Alan Stern st...@rowland.harvard.edu Acked-by: Greg Kroah-Hartman gre...@linuxfoundation.org reviewed-by: Stephen Warren

RE: [PATCH] usb: host: tegra: Reset Tegra USB controller before init

2013-04-03 Thread Venu Byravarasu
-Original Message- From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Tuesday, April 02, 2013 9:02 PM To: Venu Byravarasu Cc: gre...@linuxfoundation.org; st...@rowland.harvard.edu; linux- u...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: host:

[PATCH] gpiolib-acpi: introduce acpi_get_gpio_by_index() helper

2013-04-03 Thread Mika Westerberg
Instead of open-coding ACPI GPIO resource lookup in each driver, we provide a helper function analogous to Device Tree version that allows drivers to specify which GPIO resource they are interested (using an index to the GPIO resources). The function then finds out the correct resource, translates

Re: [PATCH] gpiolib-acpi: introduce acpi_get_gpio_by_index() helper

2013-04-03 Thread Rafael J. Wysocki
On Wednesday, April 03, 2013 01:56:54 PM Mika Westerberg wrote: Instead of open-coding ACPI GPIO resource lookup in each driver, we provide a helper function analogous to Device Tree version that allows drivers to specify which GPIO resource they are interested (using an index to the GPIO

Re: systemtap broken by removal of register_timer_hook

2013-04-03 Thread Frederic Weisbecker
2013/4/3 Mel Gorman mgor...@suse.de: Commit ba6fdda4 (profiling: Remove unused timer hook) removed [un]register_timer_hook due to a lack of upstream users and a belief that there were no out-of-tree users. However, systemtap uses it and with that patch applied, some stap scripts fail with

Re: s390x: kernel BUG at fs/ext4/inode.c:1591! (powerpc too!)

2013-04-03 Thread Dmitry Monakhov
On Wed, 03 Apr 2013 13:53:49 +0400, Dmitry Monakhov dmonak...@openvz.org wrote: Non-text part: multipart/mixed On Wed, 03 Apr 2013 12:52:06 +0400, Dmitry Monakhov dmonak...@openvz.org wrote: Non-text part: multipart/mixed On Tue, 2 Apr 2013 16:22:41 -0700 (PDT), Christian Kujau

Re: [PATCH v3 linux-next] cpufreq: ondemand: Calculate gradient of CPU load to early increase frequency

2013-04-03 Thread Rafael J. Wysocki
On Wednesday, April 03, 2013 12:13:56 PM Viresh Kumar wrote: On 3 April 2013 12:01, stratosk strat...@semaphore.gr wrote: I'm sorry, I don't understand. The goal of this patch is not energy saving. He probably misunderstood it... The goal is to detect CPU load as soon as possible to

Re: [PATCH v2] nfsd: fix bug on nfs4 stateid deallocation

2013-04-03 Thread Yanchuan Nian
On Mon, Apr 01, 2013 at 09:50:44PM -0400, J. Bruce Fields wrote: On Wed, Mar 13, 2013 at 11:04:54PM +0800, Yanchuan Nian wrote: 2013/3/11 J. Bruce Fields bfie...@fieldses.org On Mon, Mar 11, 2013 at 08:46:14AM +0800, ycn...@gmail.com wrote: NFS4_OO_PURGE_CLOSE is not handled properly.

Re: [PATCH v4] clk: add si5351 i2c common clock driver

2013-04-03 Thread Sebastian Hesselbarth
On Wed, Apr 3, 2013 at 1:46 AM, Mike Turquette mturque...@linaro.org wrote: Quoting Sebastian Hesselbarth (2013-03-23 07:46:50) diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c new file mode 100644 index 000..9d0c210 --- /dev/null +++ b/drivers/clk/clk-si5351.c @@ -0,0

Re: linux-next: build failure after merge of the final tree (nfsd tree related)

2013-04-03 Thread Jeff Layton
On Wed, 3 Apr 2013 17:42:19 +1100 Stephen Rothwell s...@canb.auug.org.au wrote: Hi all, After merging the final tree, today's linux-next build (arm defconfig) failed like this: fs/built-in.o: In function `nfsd_reply_cache_stats_show': super.c:(.text+0x87308): undefined reference to

Re: Patch efi: Build EFI stub with EFI-appropriate options has been added to the 3.6-stable tree

2013-04-03 Thread Daniel Vacek
On Wed, Apr 3, 2013 at 12:28 PM, Matt Fleming m...@console-pimps.org wrote: On 30/03/13 10:04, Daniel Vacek wrote: Resending patch. It got lost somewhere. Thanks for pushing Ben. I applied this by hand. Your patch appears to be whitespace damaged. You're right. Sorry for the mess and

system administrator

2013-04-03 Thread vlkovce
Your Email has generated an error and will affect our database, please correct the error in your e-mail within 24 hours or your email will be disabled you can to send or recieve messages to prevent damage to our systems provider To correct the error click or copy the link below

Re: [patch v3 0/8] sched: use runnable avg in load balance

2013-04-03 Thread Alex Shi
On 04/03/2013 05:37 PM, Michael Wang wrote: Michael: I changed the threshold to 0.1ms it has same effect on aim7. So could you try the following on pgbench? Hi, Alex I've done some rough test and the change point should in 6~12, Sounds good. I'm currently running a auto test

[RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-03 Thread Peter Ujfalusi
cyclic DMA is only used by audio which needs DMA to be started without a delay. If the DMA for audio is started using the tasklet we experience random channel switch (to be more precise: channel shift). Reported-by: Peter Meerwald pme...@pmeerw.net Signed-off-by: Peter Ujfalusi

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-03 Thread Santosh Shilimkar
On Wednesday 03 April 2013 04:47 PM, Peter Ujfalusi wrote: cyclic DMA is only used by audio which needs DMA to be started without a delay. If the DMA for audio is started using the tasklet we experience random channel switch (to be more precise: channel shift). Reported-by: Peter Meerwald

Re: [PATCH v5 3/3] xen/arm: introduce xen_early_init, use PSCI on xen

2013-04-03 Thread Stefano Stabellini
On Tue, 2 Apr 2013, Nicolas Pitre wrote: On Tue, 2 Apr 2013, Stefano Stabellini wrote: Split xen_guest_init in two functions, one of them (xen_early_init) is going to be called very early from setup_arch. Change machine_desc-smp_init to xen_smp_init if Xen is present on the platform.

<    5   6   7   8   9   10   11   12   13   14   >