[PATCH 0/3] memory_hotplug: fix memory hotplug bug

2012-09-27 Thread Lai Jiangshan
We found 3 bug while we test and develop memory hotplug. PATCH1~2: the old code does not handle node_states[N_NORMAL_MEMORY] correctly, it corrupts the memory. PATCH3: move the modification of zone_start_pfn into corresponding lock. CC: Rob Landley CC: Andrew Morton CC: Jiang Liu CC: Jianguo

[PATCH 2/3] slub, hotplug: ignore unrelated node's hot-adding and hot-removing

2012-09-27 Thread Lai Jiangshan
SLUB only fucus on the nodes which has normal memory, so ignore the other node's hot-adding and hot-removing. Aka: if some memroy of a node(which has no onlined memory) is online, but this new memory onlined is not normal memory(HIGH memory example), we should not allocate kmem_cache_node for

[PATCH 3/3] memory_hotplug: Don't modify the zone_start_pfn outside of zone_span_writelock()

2012-09-27 Thread Lai Jiangshan
The __add_zone() maybe call sleep-able init_currently_empty_zone() to init wait_table, But this function also modifies the zone_start_pfn without any lock. It is bugy. So we move this modification out, and we ensure the modification of zone_start_pfn is only done with zone_span_writelock() held

[PATCH 1/3] memory_hotplug: fix stale node_states[N_NORMAL_MEMORY]

2012-09-27 Thread Lai Jiangshan
Currently memory_hotplug only manages the node_states[N_HIGH_MEMORY], it forgets to manage node_states[N_NORMAL_MEMORY]. it causes node_states[N_NORMAL_MEMORY] becomes stale. We add check_nodemasks_changes_online() and check_nodemasks_changes_offline() to detect whether node_states[N_HIGH_MEMORY]

Re: [RFC v2 07/10] vfs: fork one kthread to update data temperature

2012-09-27 Thread Dave Chinner
On Thu, Sep 27, 2012 at 02:54:22PM +0800, Zhi Yong Wu wrote: > On Thu, Sep 27, 2012 at 12:03 PM, Dave Chinner wrote: > > On Sun, Sep 23, 2012 at 08:56:32PM +0800, zwu.ker...@gmail.com wrote: > >> From: Zhi Yong Wu > >> > >> Fork and run one kernel kthread to calculate > >> that temperature

Re: [PATCH] slab: Ignore internal flags in cache creation

2012-09-27 Thread Glauber Costa
On 09/27/2012 05:16 AM, David Rientjes wrote: > On Wed, 26 Sep 2012, Glauber Costa wrote: > >> So the problem I am facing here is that when I am creating caches from >> memcg, I would very much like to reuse their flags fields. They are >> stored in the cache itself, so this is not a problem. But

Re: [PATCH] x86: Distinguish TLB shootdown interrupts from other functions call interrupts

2012-09-27 Thread Alex Shi
>> >> the 3.6 kernel will closed soon. it will be great to has this patch in. >> So, could you like to refresh your patch with popular comments format? :) > > Fixed patch is below. > Thank you for the review again. > Peter: Maybe the patch doesn't looks perfect for this issue. So I am

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

2012-09-27 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in mm/huge_memory.c between commit 93c9d633bd9e ("mm/thp: Preserve pgprot across huge page split") from the tip tree and commit "thp: merge page pre-alloc in khugepaged_loop into khugepaged_do_scan" from the akpm tree. I fixed

Re: [PATCH 1/1] HID: Fix missing Unifying device issue

2012-09-27 Thread Josip Rodin
On Mon, Sep 24, 2012 at 11:30:28AM +0200, Nestor Lopez Casado wrote: > Josip, this is a different issue from the one addressed with the patch. > > 1) Can you try it on a 3.2 kernel ? I can try that too, I'll let you know how it went. (Unfortunately the machine is in the same room with a crib,

Re: [RFC v2 03/10] vfs: add one new mount option '-o hottrack'

2012-09-27 Thread Dave Chinner
On Thu, Sep 27, 2012 at 01:25:34PM +0800, Zhi Yong Wu wrote: > On Tue, Sep 25, 2012 at 5:28 PM, Dave Chinner wrote: > > On Sun, Sep 23, 2012 at 08:56:28PM +0800, zwu.ker...@gmail.com wrote: > >> From: Zhi Yong Wu > >> > >> Introduce one new mount option '-o hottrack', > >> and add its parsing

Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to 3.6-rc5 on AMD chipsets - bisected

2012-09-27 Thread Ingo Molnar
* Mike Galbraith wrote: > > Do you have an easy-to-apply hack patch by chance that has > > the effect of turning off all such preemption, which people > > could try? > > They don't need any hacks, all they have to do is start > postgreqsl SCHED_BATCH, then run pgbench the same way. > > I

Re: [RFC v2 05/10] vfs: introduce one hash table

2012-09-27 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 2:57 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 02:23:16PM +0800, Zhi Yong Wu wrote: >> On Thu, Sep 27, 2012 at 11:43 AM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:30PM +0800, zwu.ker...@gmail.com wrote: >> >> From: Zhi Yong Wu >> >> >> >> Adds a

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

2012-09-27 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in mm/huge_memory.c between commit 93c9d633bd9e ("mm/thp: Preserve pgprot across huge page split") from the tip tree and commit ("thp: remove assumptions on pgtable_t type") from the akpm tree. I fixed it up (see below) and can

Re: [PATCH 18/57] power: Add sysfs interfaces for capacity

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:15AM -0600, mathieu.poir...@linaro.org wrote: > From: Daniel WILLERUD > > Switchable depending on whether capacity scaling is enabled > > Signed-off-by: Marcus Cooper > Signed-off-by: Daniel WILLERUD > Signed-off-by: Mathieu Poirier > Reviewed-by: Jonas ABERG >

Re: [RFC v2 06/10] vfs: enable hot data tracking

2012-09-27 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 2:59 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 02:28:12PM +0800, Zhi Yong Wu wrote: >> On Thu, Sep 27, 2012 at 11:54 AM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:31PM +0800, zwu.ker...@gmail.com wrote: >> >> From: Zhi Yong Wu >> >> >> >>

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

2012-09-27 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in mm/huge_memory.c between commit 93c9d633bd9e ("93c9d633bd9e") from the tip tree and commit "thp: introduce pmdp_invalidate()" from the akpm tree. I fixed it up (see below) and can carry the fix as necessary (no action is

Re: [PATCH 20/57] power: Adds support for legacy USB chargers

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:17AM -0600, mathieu.poir...@linaro.org wrote: > From: Marcus Cooper > > A Legacy USB charger should be handled directly by the charger > driver. > > Signed-off-by: Marcus Cooper > Signed-off-by: Mathieu Poirier > Reviewed-by: Karl KOMIEROWSKI > Reviewed-by:

Re: [RFC v2 07/10] vfs: fork one kthread to update data temperature

2012-09-27 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 3:01 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 02:54:22PM +0800, Zhi Yong Wu wrote: >> On Thu, Sep 27, 2012 at 12:03 PM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:32PM +0800, zwu.ker...@gmail.com wrote: >> >> From: Zhi Yong Wu >> >> >> >> Fork and

Re: [RFC v2 03/10] vfs: add one new mount option '-o hottrack'

2012-09-27 Thread Zhi Yong Wu
On Thu, Sep 27, 2012 at 3:05 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 01:25:34PM +0800, Zhi Yong Wu wrote: >> On Tue, Sep 25, 2012 at 5:28 PM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:28PM +0800, zwu.ker...@gmail.com wrote: >> >> From: Zhi Yong Wu >> >> >> >> Introduce

Re: [PATCH 27/57] power: sysfs interface update

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:24AM -0600, mathieu.poir...@linaro.org wrote: > From: Michel JAOUEN > > Add new sysfs interface to get current charge status > > Signed-off-by: Michel JAOUEN > Signed-off-by: Loic Pallardy > Signed-off-by: Mathieu Poirier > Reviewed-by: Marcus COOPER >

Re: [PATCH 30/57] power: ab8500: Flush & sync all works

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:27AM -0600, mathieu.poir...@linaro.org wrote: > From: Jonas Aaberg > > Flush and sync all workqueues at suspend to avoid > that we suspend in the middle of a work. > > Signed-off-by: Jonas Aaberg > Signed-off-by: Mathieu Poirier > Reviewed-by: Marcus COOPER >

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

2012-09-27 Thread Stephen Rothwell
Hi Andrew, On Wed, 26 Sep 2012 13:33:35 -0700 Andrew Morton wrote: > > On Wed, 26 Sep 2012 13:15:58 -0700 > Kees Cook wrote: > > > This is weird -- my original patch doesn't touch audit_get_sessionid() at > > all: > >

Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to 3.6-rc5 on AMD chipsets - bisected

2012-09-27 Thread david
On Wed, 26 Sep 2012, Borislav Petkov wrote: It always selected target_cpu, but the fact is, that doesn't really sound very sane. The target cpu is either the previous cpu or the current cpu, depending on whether they should be balanced or not. But that still doesn't make any *sense*. In fact,

Re: [PATCH 31/57] power: ab8500_fg: fix to use correct battery charge full design

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:28AM -0600, mathieu.poir...@linaro.org wrote: > From: Rajkumar Kasirajan > > If battery is not identified while fg probe, mah_max_design gets > initialized with unknown battery's charge full design. Reinitialize > mah_max_design if battery is identified after fg

[PATCHv3 3/7] dmaengine: dw_dmac: remove CLK dependency

2012-09-27 Thread Andy Shevchenko
From: Heikki Krogerus This driver could be used on different platforms. Thus, the HAVE_CLK dependency is dropped away. Signed-off-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/dma/Kconfig |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/Kconfig

[PATCHv3 7/7] MAINTAINERS: add recently created files to dw_dmac section

2012-09-27 Thread Andy Shevchenko
Append myself to the mail entry of the section as well. Signed-off-by: Andy Shevchenko --- MAINTAINERS |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 7dfd0eb..b87cbb1d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5999,10 +5999,10 @@

[PATCHv3 0/7] dw_dmac: split the driver and introduce PCI part

2012-09-27 Thread Andy Shevchenko
This patchset is dedicated to support different platform devices via the same core driver. In our case the dw_dmac could be used as a PCI device, regular embedded device or something else. This split allows to support the controller connected to any bus by adding a little piece of code without

[PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread Andy Shevchenko
From: Heikki Krogerus Signed-off-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/dma/dw_dmac.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index c4b0eb3..0b88ced 100644 ---

[PATCHv3 4/7] dmaengine: dw_dmac: amend description and indentation

2012-09-27 Thread Andy Shevchenko
From: Heikki Krogerus The driver will be used as a core part for various implementations of the DesignWare DMA device. The patch adjusts description on the top and corrects paragraph indentation in few places across the code. Signed-off-by: Heikki Krogerus Signed-off-by: Andy Shevchenko ---

[PATCHv3 5/7] dmaengine: dw_dmac: add PCI part of the driver

2012-09-27 Thread Andy Shevchenko
From: Heikki Krogerus This is the PCI part of the DesignWare DMAC driver. The controller is usually used in the Intel hardware such as Medfield. Signed-off-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/dma/Kconfig |9 drivers/dma/Makefile |1 +

[PATCHv3 6/7] dma: move dw_dmac driver to an own directory

2012-09-27 Thread Andy Shevchenko
The dw_dmac driver contains multiple files. To make a managment of them more convenient move it to an own directory. Signed-off-by: Andy Shevchenko --- drivers/dma/Makefile|3 +-- drivers/dma/dw/Makefile |2 ++ drivers/dma/{ => dw}/dw_dmac.c |2 +-

[PATCHv3 2/7] dmaengine: dw_dmac: add module alias

2012-09-27 Thread Andy Shevchenko
From: Heikki Krogerus It's good to have a quasistatic name for the platform driver. Signed-off-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/dma/dw_dmac.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index

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

2012-09-27 Thread Jens Axboe
On 09/27/2012 05:27 AM, Stephen Rothwell wrote: > Hi Jens, > > After merging the block tree, today's linux-next build (x86 > 64_allmodconfig) failed like this: > > usr/include/linux/fs.h:13: included file 'linux/percpu-rwsem.h' is not > exported > > Caused by commit 62ac665ff9fc ("blockdev:

Re: [PATCH] x86: use the correct macros

2012-09-27 Thread Wen Congyang
At 09/26/2012 09:11 AM, Yasuaki Ishimatsu Wrote: > This patch fixes to use the correct macros. But you don't fix all. For example: = arg.start_pfn = pfn; arg.nr_pages = nr_pages; arg.status_change_nid = -1; <== here nid =

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

2012-09-27 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from arch/x86/include/asm/syscall.h:16:0, from arch/x86/kernel/signal.c:40: include/linux/audit.h: In function 'audit_get_loginuid':

Re: [PATCH 2/3] clk: ux500: Support prcmu ape opp voltage clock

2012-09-27 Thread Ulf Hansson
Hi Mike, On 26 September 2012 21:25, Mike Turquette wrote: > Quoting Ulf Hansson (2012-09-25 00:56:56) >> Hi Mike, >> >> Thanks for your input! >> >> On 24 September 2012 17:35, Mike Turquette wrote: >> > Quoting Ulf Hansson (2012-09-24 07:43:18) >> >> From: Ulf Hansson >> >> >> >> Some

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-27 Thread Gleb Natapov
On Tue, Sep 25, 2012 at 10:54:21AM +0200, Avi Kivity wrote: > On 09/25/2012 10:09 AM, Raghavendra K T wrote: > > On 09/24/2012 09:36 PM, Avi Kivity wrote: > >> On 09/24/2012 05:41 PM, Avi Kivity wrote: > >>> > > case 2) > rq1 : vcpu1->wait(lockA) (spinning) > rq2 : vcpu3

Re: [PATCH 33/57] power: u8500_charger: Delay for USB enumeration

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:30AM -0600, mathieu.poir...@linaro.org wrote: > From: Paer-Olof Haakansson > > If charging is started before USB enumeration of an > Accessory Charger Adapter has finished, the AB8500 will > generate a VBUS_ERROR. This in turn results in timeouts > and delays the

Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 10:31:55AM +0300, Andy Shevchenko wrote: > From: Heikki Krogerus > commit log would be great. > Signed-off-by: Heikki Krogerus > Signed-off-by: Andy Shevchenko > --- > drivers/dma/dw_dmac.c | 13 ++--- > 1 file changed, 2 insertions(+), 11 deletions(-) > >

linux-next: build warning after merge of the tip tree

2012-09-27 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc allnoconfig) produced this warning: mm/memory.c: In function 'do_prot_none': mm/memory.c:3463:6: warning: unused variable 'node' [-Wunused-variable] Introduced by commit 39d6cb39a817 ("mm/mpol: Use special PROT_NONE to

Re: [PATCHv3 3/7] dmaengine: dw_dmac: remove CLK dependency

2012-09-27 Thread Felipe Balbi
Hi, On Thu, Sep 27, 2012 at 10:31:57AM +0300, Andy Shevchenko wrote: > From: Heikki Krogerus > > This driver could be used on different platforms. Thus, the HAVE_CLK > dependency > is dropped away. > > Signed-off-by: Heikki Krogerus > Signed-off-by: Andy Shevchenko > --- >

Re: [PATCHv3 5/7] dmaengine: dw_dmac: add PCI part of the driver

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 10:31:59AM +0300, Andy Shevchenko wrote: > From: Heikki Krogerus > > This is the PCI part of the DesignWare DMAC driver. The controller is usually > used in the Intel hardware such as Medfield. > > Signed-off-by: Heikki Krogerus > Signed-off-by: Andy Shevchenko > --- >

Re: [PATCHv3 6/7] dma: move dw_dmac driver to an own directory

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 10:32:00AM +0300, Andy Shevchenko wrote: > The dw_dmac driver contains multiple files. To make a managment of them more typo: 'management' > convenient move it to an own directory. > > Signed-off-by: Andy Shevchenko > --- > drivers/dma/Makefile|3

Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to 3.6-rc5 on AMD chipsets - bisected

2012-09-27 Thread Mike Galbraith
On Thu, 2012-09-27 at 00:17 -0700, da...@lang.hm wrote: > over the long term, the work lost due to not moving optimally right away > is probably much less than the work lost due to trying to figure out the > perfect thing to do. Yeah, "Perfect is the enemy of good" definitely applies. Once

Re: [PATCHv3 7/7] MAINTAINERS: add recently created files to dw_dmac section

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 10:32:01AM +0300, Andy Shevchenko wrote: > Append myself to the mail entry of the section as well. > > Signed-off-by: Andy Shevchenko > --- > MAINTAINERS |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index

Re: [PATCHv3 4/7] dmaengine: dw_dmac: amend description and indentation

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 10:31:58AM +0300, Andy Shevchenko wrote: > From: Heikki Krogerus > > The driver will be used as a core part for various implementations of the > DesignWare DMA device. The patch adjusts description on the top and corrects > paragraph indentation in few places across the

[GIT PULL] DMA-mapping fix for v3.6

2012-09-27 Thread Marek Szyprowski
Hi Linus, I would like to ask for pulling yet another patch for ARM dma-mapping subsystem to Linux v3.6 kernel tree. This patch fixes potential memory leak ARM dma-mapping code. The following changes since commit 979570e02981d4a8fc20b3cc8fd651856c98ee9d: Linux 3.6-rc7 (2012-09-23 18:10:57

linux-next: Tree for Sept 27

2012-09-27 Thread Stephen Rothwell
Hi all, Changes since 201209026: The block tree gained a build failure so I used the version from next-20120926. The char-misc tree gained a conflict against the tty tree. The arm-soc tree gained a conflict against the arm tree. The akpm tree gained conflicts against the tip tree, lost

[git pull] drm fixes

2012-09-27 Thread Dave Airlie
Hi Linus the three nouveau fixes quiten unneeded dmesg spam that people are seeing and pondering, the udl fix stops it from trying to driver monitors that are too big, where we get a black screen. and vmware memory alloc problem. Dave. The following changes since commit

Re: [PATCHv3 3/7] dmaengine: dw_dmac: remove CLK dependency

2012-09-27 Thread Andy Shevchenko
On Thu, Sep 27, 2012 at 10:42 AM, Felipe Balbi wrote: >> - depends on HAVE_CLK > > as is, this will break compilation of any arch which doesn't set > HAVE_CLK. As Viresh suggested and I checked it's not. He wrote nice patch that adds stubs for such case. -- With Best Regards, Andy

Re: [PATCHv3 5/7] dmaengine: dw_dmac: add PCI part of the driver

2012-09-27 Thread Andy Shevchenko
On Thu, Sep 27, 2012 at 10:49 AM, Felipe Balbi wrote: > On Thu, Sep 27, 2012 at 10:31:59AM +0300, Andy Shevchenko wrote: >> From: Heikki Krogerus >> >> This is the PCI part of the DesignWare DMAC driver. The controller is usually >> used in the Intel hardware such as Medfield. >> --- /dev/null

Re: [PATCHv3 7/7] MAINTAINERS: add recently created files to dw_dmac section

2012-09-27 Thread viresh kumar
On Thu, Sep 27, 2012 at 1:21 PM, Felipe Balbi wrote: > On Thu, Sep 27, 2012 at 10:32:01AM +0300, Andy Shevchenko wrote: >> Append myself to the mail entry of the section as well. >> >> Signed-off-by: Andy Shevchenko >> --- >> MAINTAINERS |4 ++-- >> 1 file changed, 2 insertions(+), 2

Re: [PATCHv3 3/7] dmaengine: dw_dmac: remove CLK dependency

2012-09-27 Thread Felipe Balbi
Hi, On Thu, Sep 27, 2012 at 11:04:54AM +0300, Andy Shevchenko wrote: > On Thu, Sep 27, 2012 at 10:42 AM, Felipe Balbi wrote: > >> - depends on HAVE_CLK > > > > as is, this will break compilation of any arch which doesn't set > > HAVE_CLK. > As Viresh suggested and I checked it's not. > He

Re: [PATCHv3 5/7] dmaengine: dw_dmac: add PCI part of the driver

2012-09-27 Thread Felipe Balbi
Hi, On Thu, Sep 27, 2012 at 11:08:12AM +0300, Andy Shevchenko wrote: > >> + .is_private = 1, > >> + .chan_allocation_order = CHAN_ALLOCATION_ASCENDING, > >> + .chan_priority = CHAN_PRIORITY_ASCENDING, > >> +}; > > > > This is the same for all of the PCI IDs listed below, looks like

Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread viresh kumar
On Thu, Sep 27, 2012 at 1:10 PM, Felipe Balbi wrote: >> diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c >> @@ -1700,6 +1700,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_id_table); >> #endif >> >> static struct platform_driver dw_driver = { >> + .probe = dw_probe, > > probe's in

Re: [PATCHv3 2/7] dmaengine: dw_dmac: add module alias

2012-09-27 Thread viresh kumar
On Thu, Sep 27, 2012 at 1:01 PM, Andy Shevchenko wrote: > From: Heikki Krogerus > > It's good to have a quasistatic name for the platform driver. > > Signed-off-by: Heikki Krogerus > Signed-off-by: Andy Shevchenko > --- > drivers/dma/dw_dmac.c |1 + > 1 file changed, 1 insertion(+) > >

Re: [PATCHv3 3/7] dmaengine: dw_dmac: remove CLK dependency

2012-09-27 Thread viresh kumar
On Thu, Sep 27, 2012 at 1:12 PM, Felipe Balbi wrote: > Hi, > > On Thu, Sep 27, 2012 at 10:31:57AM +0300, Andy Shevchenko wrote: >> From: Heikki Krogerus >> >> This driver could be used on different platforms. Thus, the HAVE_CLK >> dependency >> is dropped away. >> >> Signed-off-by: Heikki

Re: [PATCHv3 4/7] dmaengine: dw_dmac: amend description and indentation

2012-09-27 Thread viresh kumar
On Thu, Sep 27, 2012 at 1:15 PM, Felipe Balbi wrote: > On Thu, Sep 27, 2012 at 10:31:58AM +0300, Andy Shevchenko wrote: >> From: Heikki Krogerus >> >> The driver will be used as a core part for various implementations of the >> DesignWare DMA device. The patch adjusts description on the top and

Re: [PATCH v3 1/3] devfreq: Core updates to support devices which can idle

2012-09-27 Thread MyungJoo Ham
> Prepare devfreq core framework to support devices which > can idle. When device idleness is detected perhaps through > runtime-pm, need some mechanism to suspend devfreq load > monitoring and resume back when device is online. Present > code continues monitoring unless device is removed from >

Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 01:46:17PM +0530, viresh kumar wrote: > On Thu, Sep 27, 2012 at 1:10 PM, Felipe Balbi wrote: > >> diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c > > >> @@ -1700,6 +1700,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_id_table); > >> #endif > >> > >> static struct

Re: [PATCHv3 2/7] dmaengine: dw_dmac: add module alias

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 01:46:57PM +0530, viresh kumar wrote: > On Thu, Sep 27, 2012 at 1:01 PM, Andy Shevchenko > wrote: > > From: Heikki Krogerus > > > > It's good to have a quasistatic name for the platform driver. > > > > Signed-off-by: Heikki Krogerus > > Signed-off-by: Andy Shevchenko >

Re: [PATCHv3 3/7] dmaengine: dw_dmac: remove CLK dependency

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 01:47:58PM +0530, viresh kumar wrote: > On Thu, Sep 27, 2012 at 1:12 PM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Sep 27, 2012 at 10:31:57AM +0300, Andy Shevchenko wrote: > >> From: Heikki Krogerus > >> > >> This driver could be used on different platforms. Thus, the

Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to 3.6-rc5 on AMD chipsets - bisected

2012-09-27 Thread Peter Zijlstra
On Wed, 2012-09-26 at 11:19 -0700, Linus Torvalds wrote: > > For example, it starts with the maximum target scheduling domain, and > works its way in over the scheduling groups within that domain. What > the f*ck is the logic of that kind of crazy thing? It never makes > sense to look at a

Re: [PATCHv3 6/7] dma: move dw_dmac driver to an own directory

2012-09-27 Thread viresh kumar
On Thu, Sep 27, 2012 at 1:02 PM, Andy Shevchenko wrote: > The dw_dmac driver contains multiple files. To make a managment of them more > convenient move it to an own directory. > Looks readable now :) Acked-by: Viresh Kumar (After fixing Felipe's comment) -- To unsubscribe from this list: send

Re: [PATCH -v3 00/14] x86, mm: init_memory_mapping cleanup

2012-09-27 Thread Yinghai Lu
On Thu, Sep 13, 2012 at 8:00 AM, Jacob Shin wrote: > On Wed, Sep 05, 2012 at 03:08:15PM -0500, Jacob Shin wrote: >> On Tue, Sep 04, 2012 at 10:46:17PM -0700, Yinghai Lu wrote: >> > Only create mapping for E820_820 and E820_RESERVED_KERN. >> > >> > Seperate calculate_table_space_size and

Re: [tip:core/rcu] sched: Fix load avg vs cpu-hotplug

2012-09-27 Thread Peter Zijlstra
On Wed, 2012-09-26 at 22:12 -0700, tip-bot for Peter Zijlstra wrote: > Commit-ID: 5d18023294abc22984886bd7185344e0c2be0daf > Gitweb: http://git.kernel.org/tip/5d18023294abc22984886bd7185344e0c2be0daf > Author: Peter Zijlstra > AuthorDate: Mon, 20 Aug 2012 11:26:57 +0200 > Committer:

Re: [PATCHv3 7/7] MAINTAINERS: add recently created files to dw_dmac section

2012-09-27 Thread Andy Shevchenko
On Thu, Sep 27, 2012 at 10:51 AM, Felipe Balbi wrote: > On Thu, Sep 27, 2012 at 10:32:01AM +0300, Andy Shevchenko wrote: >> Append myself to the mail entry of the section as well. >> >> Signed-off-by: Andy Shevchenko >> --- >> MAINTAINERS |4 ++-- >> 1 file changed, 2 insertions(+), 2

[PATCH] ALSA: snd-usb: fix next_packet_size calls for pause case

2012-09-27 Thread Daniel Mack
Also fix the calls to next_packet_size() for the pause case. This was missed in 245baf983 ("ALSA: snd-usb: fix calls to next_packet_size"). Signed-off-by: Daniel Mack Reviewed-by: Takashi Iwai Reported-and-tested-by: Christian Tefzer Cc: sta...@kernel.org --- Hi Linus, Takashi is currently on

RE: [PATCH v6] hashtable: introduce a small and naive hashtable

2012-09-27 Thread David Laight
> > > And even then, if we would do: > > > > > > for (i = 0; i < HASH_SIZE(hashtable); i++) > > > if (!hlist_empty([i])) > > > break; > > > > > > return i >= HASH_SIZE(hashtable); > > > > > > What happens if the last entry of the table is non-empty ? > > > > It

Re: [PATCH v6] hashtable: introduce a small and naive hashtable

2012-09-27 Thread Sasha Levin
On 09/27/2012 10:25 AM, David Laight wrote: And even then, if we would do: for (i = 0; i < HASH_SIZE(hashtable); i++) if (!hlist_empty([i])) break; return i >= HASH_SIZE(hashtable); What happens if the last entry of

Re: [PATCHv3 4/7] dmaengine: dw_dmac: amend description and indentation

2012-09-27 Thread Andy Shevchenko
On Thu, Sep 27, 2012 at 11:19 AM, viresh kumar wrote: > On Thu, Sep 27, 2012 at 1:15 PM, Felipe Balbi wrote: >> On Thu, Sep 27, 2012 at 10:31:58AM +0300, Andy Shevchenko wrote: >>> From: Heikki Krogerus >>> >>> The driver will be used as a core part for various implementations of the >>>

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-09-27 Thread Avi Kivity
On 09/25/2012 03:40 PM, Raghavendra K T wrote: > On 09/24/2012 07:46 PM, Raghavendra K T wrote: >> On 09/24/2012 07:24 PM, Peter Zijlstra wrote: >>> On Mon, 2012-09-24 at 18:59 +0530, Raghavendra K T wrote: However Rik had a genuine concern in the cases where runqueue is not equally

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-27 Thread Davide Ciminaghi
On Wed, Sep 26, 2012 at 05:49:33PM +0100, Mark Brown wrote: > On Wed, Sep 26, 2012 at 06:31:45PM +0200, Davide Ciminaghi wrote: > > > Oh, and there's another problem (I'm looking at the code right now, I had > > forgotten about this): the clock framework also asks for a spinlock_t *. > > Regmap

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-27 Thread Avi Kivity
On 09/25/2012 04:21 PM, Takuya Yoshikawa wrote: > On Tue, 25 Sep 2012 10:12:49 +0200 > Avi Kivity wrote: > >> It will. The tradeoff is between false-positive costs (undercommit) and >> true positive costs (overcommit). I think undercommit should perform >> well no matter what. >> >> If we

Re: [PATCHv3 6/7] dma: move dw_dmac driver to an own directory

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 01:52:24PM +0530, viresh kumar wrote: > On Thu, Sep 27, 2012 at 1:02 PM, Andy Shevchenko > wrote: > > The dw_dmac driver contains multiple files. To make a managment of them more > > convenient move it to an own directory. > > > > Looks readable now :) > > Acked-by:

Re: [RFC v9 PATCH 00/21] memory-hotplug: hot-remove physical memory

2012-09-27 Thread Wen Congyang
At 09/27/2012 12:58 AM, Vasilis Liaskovitis Wrote: > Testing 3.6.0-rc7 with this v9 patchset plus more recent fixes [1],[2],[3] > Running in a guest (qemu+seabios from [4]). > CONFIG_SLAB=y > CONFIG_DEBUG_SLAB=y > > - succesfull hot-add and online > - succesfull hot-remove with SCI (qemu) eject

Re: [PATCHv3 5/7] dmaengine: dw_dmac: add PCI part of the driver

2012-09-27 Thread Vinod Koul
On Thu, 2012-09-27 at 10:31 +0300, Andy Shevchenko wrote: > + > +#include > +#include > +#include > +#include > + > +static struct dw_dma_platform_data pdata = { > + .is_private = 1, > + .chan_allocation_order = CHAN_ALLOCATION_ASCENDING, > + .chan_priority =

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-27 Thread Avi Kivity
On 09/25/2012 04:43 PM, Jiannan Ouyang wrote: > I've actually implemented this preempted_bitmap idea. Interesting, please share the code if you can. > However, I'm doing this to expose this information to the guest, so the > guest is able to know if the lock holder is preempted or not before >

Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code

2012-09-27 Thread Davide Ciminaghi
On Wed, Sep 26, 2012 at 05:49:33PM +0100, Mark Brown wrote: > On Wed, Sep 26, 2012 at 06:31:45PM +0200, Davide Ciminaghi wrote: > > > Oh, and there's another problem (I'm looking at the code right now, I had > > forgotten about this): the clock framework also asks for a spinlock_t *. > > Regmap

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-27 Thread Avi Kivity
On 09/27/2012 09:44 AM, Gleb Natapov wrote: > On Tue, Sep 25, 2012 at 10:54:21AM +0200, Avi Kivity wrote: >> On 09/25/2012 10:09 AM, Raghavendra K T wrote: >> > On 09/24/2012 09:36 PM, Avi Kivity wrote: >> >> On 09/24/2012 05:41 PM, Avi Kivity wrote: >> >>> >> >> case 2) >> rq1 :

[PATCH V2 0/3] Create sched_select_cpu() and use it in workqueues

2012-09-27 Thread Viresh Kumar
Hi All, This is V2 of my sched_select_cpu() work. In order to save power, it would be useful to schedule work onto non-IDLE cpus instead of waking up an IDLE one. To achieve this, we need scheduler to guide kernel frameworks (like: timers & workqueues) on which is the most preferred CPU that

[PATCH V2 3/3] workqueue: Schedule work on non-idle cpu instead of current one

2012-09-27 Thread Viresh Kumar
Workqueues queues work on current cpu, if the caller haven't passed a preferred cpu. This may wake up an idle CPU, which is actually not required. This work can be processed by any CPU and so we must select a non-idle CPU here. This patch adds in support in workqueue framework to get preferred

[PATCH V2 2/3] timer: hrtimer: Don't check idle_cpu() before calling get_nohz_timer_target()

2012-09-27 Thread Viresh Kumar
Check for current cpu's idleness already done in implementation of sched_select_cpu() which is called by get_nohz_timer_target(). So, no need to call idle_cpu() twice, once from sched_select_cpu() and once from timer and hrtimer before calling get_nohz_timer_target(). This patch removes calls to

[PATCH V2 1/3] sched: Create sched_select_cpu() to give preferred CPU for power saving

2012-09-27 Thread Viresh Kumar
In order to save power, it would be useful to schedule work onto non-IDLE cpus instead of waking up an IDLE one. To achieve this, we need scheduler to guide kernel frameworks (like: timers & workqueues) on which is the most preferred CPU that must be used for these tasks. This routine returns

Re: [GIT PULL] Asymmetric keys and module signing

2012-09-27 Thread David Howells
Hi Rusty, Could you pull my tree? David --- The following changes since commit eeea3ac912207dcf759b95b2b4c36f96bce583bf: Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc (2012-09-06 10:23:58 -0700) are available in the git repository at:

Re: [PATCH] perf probe: print an enum type variable in "enum variable-name" format when showing accessible variables

2012-09-27 Thread Masami Hiramatsu
(2012/09/27 11:36), Hyeoncheol Lee wrote: > When showing accessible variables, an enum type variable was > printed in "variable-name" format. Change this format into > "enum variable-name". Right, and even if the enum has a type name, it shows only "type-name variable-name", this should show

Re: [PATCH v3 0/3] perf: use hrtimer for event multiplexing

2012-09-27 Thread Stephane Eranian
Any comment on this patch set? This is an important improvement for any system-wide measurement. On Thu, Sep 13, 2012 at 4:10 PM, Stephane Eranian wrote: > The current scheme of using the timer tick was fine > for per-thread events. However, it was causing > bias issues in system-wide mode

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-27 Thread Gleb Natapov
On Thu, Sep 27, 2012 at 10:59:21AM +0200, Avi Kivity wrote: > On 09/27/2012 09:44 AM, Gleb Natapov wrote: > > On Tue, Sep 25, 2012 at 10:54:21AM +0200, Avi Kivity wrote: > >> On 09/25/2012 10:09 AM, Raghavendra K T wrote: > >> > On 09/24/2012 09:36 PM, Avi Kivity wrote: > >> >> On 09/24/2012 05:41

[PATCH] Do not change worker's running cpu in cmci_rediscover().

2012-09-27 Thread Tang Chen
1. cmci_rediscover() is only called by the CPU_POST_DEAD event handler, which means the corresponding cpu has already dead. As a result, it won't be accessed in the for_each_online_cpu loop. So, we could change the if(cpu == dying) statement into a BUG_ON(). 2. cmci_rediscover() used

RE: [PATCH v2] pwm_backlight: Add device tree support for Low Threshold Brightness

2012-09-27 Thread Philip, Avinash
On Wed, Sep 26, 2012 at 22:19:49, Thierry Reding wrote: > On Wed, Sep 26, 2012 at 09:27:51AM -0600, Stephen Warren wrote: > > On 09/25/2012 10:35 PM, Philip, Avinash wrote: > > > On Tue, Sep 25, 2012 at 11:49:14, Stephen Warren wrote: > > >> On 09/24/2012 10:29 PM, Philip, Avinash wrote: > > >>>

Re: [PATCH] Documentation: Update git repository URL for Smack userland tools

2012-09-27 Thread Daniel Wagner
Hi Casey, On 26.09.2012 18:34, Casey Schaufler wrote: On 9/24/2012 5:21 AM, Daniel Wagner wrote: From: Daniel Wagner The userland git repository has been moved to a new place. Signed-off-by: Daniel Wagner Applied to git://git.gitorious.org/smack-next/kernel.git#for-1209 Thanks. BTW, I

Re: staging tree closed for 3.7

2012-09-27 Thread Ian Abbott
On 2012-09-26 18:56, Greg Kroah-Hartman wrote: On Wed, Sep 26, 2012 at 10:56:06AM -0700, Greg Kroah-Hartman wrote: With 3.6 about to be released, I've now closed the 3.7 staging-next tree for new features / cleanups. It's bug-fixes only now until 3.7-rc1 is out. Oh, and if I've missed any

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-27 Thread Avi Kivity
On 09/27/2012 11:11 AM, Gleb Natapov wrote: >> >> User return notifier is per-cpu, not per-task. There is a new task_work >> () that does what you want. With these >> technicalities out of the way, I think it's the wrong idea. If a vcpu >> thread is in userspace, that doesn't mean it's

[PATCH resend] MIPS: Loongson1B: use common clock infrastructure instead of private APIs.

2012-09-27 Thread Kelvin Cheung
1. Remove private clock APIs, which are replaced by the code in drivers/clk/clk-ls1x.c 2. Enable COMMON_CLK in the Kconfig. 3. some minor modifications. Signed-off-by: Kelvin Cheung --- arch/mips/include/asm/mach-loongson1/platform.h |3 +- arch/mips/include/asm/mach-loongson1/regs-clk.h

Re: [RFC PATCH 10/13] spi: omap2-mcspi: dma_request_slave_channel() support for DT platforms

2012-09-27 Thread Vinod Koul
On Fri, 2012-09-21 at 14:37 -0400, Matt Porter wrote: > On Fri, Sep 21, 2012 at 08:42:47AM -0700, Tony Lindgren wrote: > > > > Can't we come up with a version of dma_request_slave_channel that works > > both ways for now: > > > > mcspi_dma->dma_rx = > >

Re: [PATCHv3 5/7] dmaengine: dw_dmac: add PCI part of the driver

2012-09-27 Thread Andy Shevchenko
On Thu, 2012-09-27 at 14:14 +0530, Vinod Koul wrote: > > +static int __devinit dw_pci_probe(struct pci_dev *pdev, > > + const struct pci_device_id *id) > > +{ > ... > > + > > + pd = platform_device_alloc("dw_dmac", instance); > Why can't the core driver library be

Re: [RFC PATCH 08/13] mmc: omap_hsmmc: limit max_segs with the EDMA DMAC

2012-09-27 Thread Vinod Koul
On Fri, 2012-09-21 at 19:47 +0100, Russell King - ARM Linux wrote: > On Fri, Sep 21, 2012 at 10:45:29PM +0530, S, Venkatraman wrote: > > On Thu, Sep 20, 2012 at 8:13 PM, Matt Porter wrote: > > > The EDMA DMAC has a hardware limitation that prevents supporting > > > scatter gather lists with any

Re: [PATCH v2] pwm_backlight: Add device tree support for Low Threshold Brightness

2012-09-27 Thread Thierry Reding
On Thu, Sep 27, 2012 at 09:24:47AM +, Philip, Avinash wrote: > On Wed, Sep 26, 2012 at 22:19:49, Thierry Reding wrote: > > On Wed, Sep 26, 2012 at 09:27:51AM -0600, Stephen Warren wrote: > > > On 09/25/2012 10:35 PM, Philip, Avinash wrote: > > > > On Tue, Sep 25, 2012 at 11:49:14, Stephen

[PATCH scsi] Short the path length of scsi_cmd_to_driver()

2012-09-27 Thread Li Zhong
Hi James, Martin, Here is the updated version, please help to review. Thanks, Zhong As suggested by James: this patch tries to short the path length of scsi_cmd_to_driver(). As only REQ_TYPE_BLOCK_PC commands can be submitted without a driver, so we could avoid the related NULL

Re: [PATCH 1/1] hid:Fix problem on GeneralTouch multi-touchscreen

2012-09-27 Thread Jiri Kosina
On Thu, 27 Sep 2012, GeneralTouch wrote: > From: Xianhan Yu > > Fix the touch-up no response problem on GeneralTouch twofingers > touchscreen and modify the driver for new GeneralTouch PWT touchscreen. > > Signed-off-by: Xianhan Yu Thank you for the patch. Please find a few comments below.

<    3   4   5   6   7   8   9   10   11   12   >