Re: prctl(PR_SET_MM)

2013-02-21 Thread Cyrill Gorcunov
On Thu, Feb 21, 2013 at 06:46:39PM +1100, Amnon Shiloh wrote: Cyrill Gorcunov wrote: Another possibility is to have a dual #if: #if defined(CONFIG_CHECKPOINT_RESTORE) || defined(CONFIG_MM_FIELDS_SETTING) Thus this approach looks preferred. And MM_FIELDS_SETTING will be y by

Re: prctl(PR_SET_MM)

2013-02-21 Thread Amnon Shiloh
Hi, Cyrill Gorcunov wrote: Wouldn't the below do the same trick but eliminate OR in preproc code? Yes it would. I don't mind having it either way. Best Regards, Amnon. --- From: Amnon Shiloh u3...@miso.sublimeip.com Subject: prctl: Make PR_SET_MM being depend on own

Re: prctl(PR_SET_MM)

2013-02-21 Thread Cyrill Gorcunov
On Thu, Feb 21, 2013 at 07:03:58PM +1100, Amnon Shiloh wrote: Hi, Cyrill Gorcunov wrote: Wouldn't the below do the same trick but eliminate OR in preproc code? Yes it would. I don't mind having it either way. OK, lets wait for opinions and see if this approach is acceptable. -- To

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-21 Thread Mike Galbraith
On Thu, 2013-02-21 at 15:00 +0800, Michael Wang wrote: On 02/21/2013 02:11 PM, Mike Galbraith wrote: On Thu, 2013-02-21 at 12:51 +0800, Michael Wang wrote: On 02/20/2013 06:49 PM, Ingo Molnar wrote: [snip] [snip] if wake_affine() new_cpu =

[PATCH 0/7] ksm: responses to NUMA review

2013-02-21 Thread Hugh Dickins
Here's a second KSM series, based on mmotm 2013-02-19-17-20: partly in response to Mel's review feedback, partly fixes to issues that I found myself in doing more review and testing. None of the issues fixed are truly show-stoppers, though I would prefer them fixed sooner than later. 1 ksm: add

[PATCH 1/7] ksm: add some comments

2013-02-21 Thread Hugh Dickins
Added slightly more detail to the Documentation of merge_across_nodes, a few comments in areas indicated by review, and renamed get_ksm_page()'s argument from locked to lock_it. No functional change. Signed-off-by: Hugh Dickins hu...@google.com --- Documentation/vm/ksm.txt | 16

[PATCH 2/7] ksm: treat unstable nid like in stable tree

2013-02-21 Thread Hugh Dickins
An inconsistency emerged in reviewing the NUMA node changes to KSM: when meeting a page from the wrong NUMA node in a stable tree, we say that it's okay for comparisons, but not as a leaf for merging; whereas when meeting a page from the wrong NUMA node in an unstable tree, we bail out

[PATCH 3/7] ksm: shrink 32-bit rmap_item back to 32 bytes

2013-02-21 Thread Hugh Dickins
Think of struct rmap_item as an extension of struct page (restricted to MADV_MERGEABLE areas): there may be a lot of them, we need to keep them small, especially on 32-bit architectures of limited lowmem. Siting int nid after unsigned int checksum works nicely on 64-bit, making no change to its

[PATCH 4/7] mm,ksm: FOLL_MIGRATION do migration_entry_wait

2013-02-21 Thread Hugh Dickins
In ksm: remove old stable nodes more thoroughly I said that I'd never seen its WARN_ON_ONCE(page_mapped(page)). True at the time of writing, but it soon appeared once I tried fuller tests on the whole series. It turned out to be due to the KSM page migration itself: unmerge_and_

[PATCH 5/7] mm,ksm: swapoff might need to copy

2013-02-21 Thread Hugh Dickins
Before establishing that KSM page migration was the cause of my WARN_ON_ONCE(page_mapped(page))s, I suspected that they came from the lack of a ksm_might_need_to_copy() in swapoff's unuse_pte() - which in many respects is equivalent to faulting in a page. In fact I've never caught that as the

[PATCH 6/7] mm: cleanup swapcache in do_swap_page

2013-02-21 Thread Hugh Dickins
I dislike the way in which swapcache gets used in do_swap_page(): there is always a page from swapcache there (even if maybe uncached by the time we lock it), but tests are made according to swapcache. Rework that with page != swapcache, as has been done in unuse_pte(). Signed-off-by: Hugh

[PATCH v4] sched: fix init NOHZ_IDLE flag

2013-02-21 Thread Vincent Guittot
On my smp platform which is made of 5 cores in 2 clusters, I have the nr_busy_cpu field of sched_group_power struct that is not null when the platform is fully idle. The root cause seems to be: During the boot sequence, some CPUs reach the idle loop and set their NOHZ_IDLE flag while waiting for

Re: [PATCH resent] dma: add the freescale-provided MultiChannel DMA driver

2013-02-21 Thread Philippe De Muyter
Hi Vinod, On Wed, Feb 20, 2013 at 12:01:47PM +0530, Vinod Koul wrote: On Mon, Feb 04, 2013 at 06:38:23PM +0100, Philippe De Muyter wrote: This patch adds the (cleaned-up) Freescale-provided MultiChannel DMA driver for ColdFire M54xx and MPC8220 processors. This driver is needed for the

[PATCH 7/7] ksm: allocate roots when needed

2013-02-21 Thread Hugh Dickins
It is a pity to have MAX_NUMNODES+MAX_NUMNODES tree roots statically allocated, particularly when very few users will ever actually tune merge_across_nodes 0 to use more than 1+1 of those trees. Not a big deal (only 16kB wasted on each machine with CONFIG_MAXSMP), but a pity. Start off with 1+1

[PATCH] block: modify __bio_add_page check to accept pages that don't start a new segment

2013-02-21 Thread Jan Vesely
The original behavior was to refuse all pages after the maximum number of segments has been reached. However, some drivers (like st) craft their buffers to potentially require exactly max segments and multiple pages in the last segment. This patch modifies the check to allow pages that can be

[PATCH] rtc: rtc-v3020: use gpio_request_one()

2013-02-21 Thread Jingoo Han
Using gpio_request_one() can make the code simpler because it can set the direction and initial value in one shot. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-v3020.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-v3020.c

[PATCH 01/12] rtc: rtc-imxdi: use devm_clk_get()

2013-02-21 Thread Jingoo Han
Use devm_clk_get() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-imxdi.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c index 75d307a..82aad69 100644 ---

[PATCH 02/12] rtc: rtc-tps6586x: use devm_request_threaded_irq()

2013-02-21 Thread Jingoo Han
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-tps6586x.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c index

[PATCH 03/12] rtc: rtc-vt8500: use devm_*() functions

2013-02-21 Thread Jingoo Han
Use devm_*() functions to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-vt8500.c | 28 ++-- 1 files changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c index

Re: PROBLEM: Crash cgdeleting empty memory cgroups with memory.kmem.limit_in_bytes set

2013-02-21 Thread Glauber Costa
On 02/21/2013 03:00 AM, Tejun Heo wrote: (cc'ing cgroup / memcg people and quoting whole body) Looks like something is going wrong with memcg cache destruction. Glauber, any ideas? Also, can we please not use names as generic as kmem_cache_destroy_work_func for something specific to memcg?

[PATCH 04/12] rtc: rtc-coh901331: use devm_clk_get()

2013-02-21 Thread Jingoo Han
Use devm_clk_get() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-coh901331.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c index c8115b8..2d28ec1a

[PATCH 05/12] rtc: rtc-lp8788: use devm_request_threaded_irq()

2013-02-21 Thread Jingoo Han
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-lp8788.c | 10 ++ 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/rtc/rtc-lp8788.c b/drivers/rtc/rtc-lp8788.c index

[PATCH 06/12] rtc: rtc-tps80031: use devm_request_threaded_irq()

2013-02-21 Thread Jingoo Han
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-tps80031.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-tps80031.c b/drivers/rtc/rtc-tps80031.c index

[PATCH 07/12] rtc: rtc-wm831x: use devm_request_threaded_irq()

2013-02-21 Thread Jingoo Han
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-wm831x.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-wm831x.c b/drivers/rtc/rtc-wm831x.c index

[PATCH 08/12] rtc: rtc-da9052: use devm_request_threaded_irq()

2013-02-21 Thread Jingoo Han
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-da9052.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c index

[PATCH 09/12] rtc: rtc-palmas: use devm_request_threaded_irq()

2013-02-21 Thread Jingoo Han
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-palmas.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-palmas.c b/drivers/rtc/rtc-palmas.c index 59c4298..df9359c

[PATCH 10/12] rtc: rtc-max8907: use devm_request_threaded_irq()

2013-02-21 Thread Jingoo Han
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-max8907.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-max8907.c b/drivers/rtc/rtc-max8907.c index

[PATCH 11/12] rtc: rtc-max8997: use devm_request_threaded_irq()

2013-02-21 Thread Jingoo Han
Use devm_request_threaded_irq() to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-max8997.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/rtc/rtc-max8997.c b/drivers/rtc/rtc-max8997.c index

Re: [PATCH v2 10/18] mm: teach truncate_inode_pages_range() to handle non page aligned ranges

2013-02-21 Thread Lukáš Czerner
On Fri, 8 Feb 2013, Lukáš Czerner wrote: Date: Fri, 8 Feb 2013 10:08:05 +0100 (CET) From: Lukáš Czerner lczer...@redhat.com To: Andrew Morton a...@linux-foundation.org Cc: Lukas Czerner lczer...@redhat.com, linux...@kvack.org, linux-kernel@vger.kernel.org, linux-fsde...@vger.kernel.org,

[PATCH 12/12] rtc: rtc-davinci: use devm_*() functions

2013-02-21 Thread Jingoo Han
Use devm_*() functions to make cleanup paths more simple. Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/rtc/rtc-davinci.c | 28 ++-- 1 files changed, 10 insertions(+), 18 deletions(-) diff --git a/drivers/rtc/rtc-davinci.c b/drivers/rtc/rtc-davinci.c index

Re: [PATCH 10/16] virtio_net: use virtqueue_add_sgs[] for command buffers.

2013-02-21 Thread Wanlong Gao
On 02/19/2013 03:56 PM, Rusty Russell wrote: It's a bit cleaner to hand multiple sgs, rather than one big one. Signed-off-by: Rusty Russell ru...@rustcorp.com.au --- drivers/net/virtio_net.c | 50 ++ 1 file changed, 24 insertions(+), 26

elevator: Fix a race about elevator switching.

2013-02-21 Thread majianpeng
Thare's a race between elevator switching and normal io operation. Because the allocation of struct elevator_queue and struct elevator_data don't in a atomic operation.So there are have chance to use NULL -elevator_data. For example: Thread A:

[PATCH] x86: Expand Dell OptiPlex 760 reboot quirk

2013-02-21 Thread Pascal de Bruijn
Different DMI_BOARD_NAME's are affected by this reboot issue as well, so we want to expand the quirk coverage by removing the DMI_BOARD_NAME match. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=54051 BugLink: https://bugs.launchpad.net/bugs/488319 Signed-off-by: Pascal de Bruijn

Re: [PATCH] rtc: rtc-v3020: use gpio_request_one()

2013-02-21 Thread Igor Grinberg
On 02/21/13 10:31, Jingoo Han wrote: Using gpio_request_one() can make the code simpler because it can set the direction and initial value in one shot. If you are on this, then I think converting to gpio_request_array() would be even better. Signed-off-by: Jingoo Han jg1@samsung.com

Re: [PATCHv5 2/8] zsmalloc: add documentation

2013-02-21 Thread Ric Mason
On 02/19/2013 03:16 AM, Seth Jennings wrote: On 02/16/2013 12:21 AM, Ric Mason wrote: On 02/14/2013 02:38 AM, Seth Jennings wrote: This patch adds a documentation file for zsmalloc at Documentation/vm/zsmalloc.txt Signed-off-by: Seth Jennings sjenn...@linux.vnet.ibm.com ---

Re: [PATCH v5] iio: Add OF support

2013-02-21 Thread Jonathan Cameron
On 02/20/2013 07:24 PM, Guenter Roeck wrote: On Wed, Feb 20, 2013 at 06:51:08PM +, Jonathan Cameron wrote: Guenter Roeck li...@roeck-us.net wrote: On Wed, Feb 20, 2013 at 11:38:22AM -0600, Rob Herring wrote: On 02/07/2013 11:09 AM, Guenter Roeck wrote: Provide bindings and parse OF

Re: sched: Fix signedness bug in yield_to()

2013-02-21 Thread Ingo Molnar
* Shuah Khan shuahk...@gmail.com wrote: On Tue, Feb 19, 2013 at 7:27 PM, Linux Kernel Mailing List linux-kernel@vger.kernel.org wrote: Gitweb: http://git.kernel.org/linus/;a=commit;h=c3c186403c6abd32e719f005f0af950155a9e54d Commit: c3c186403c6abd32e719f005f0af950155a9e54d

Re: [resend] Timer broadcast question

2013-02-21 Thread Daniel Lezcano
On 02/21/2013 07:19 AM, Santosh Shilimkar wrote: On Tuesday 19 February 2013 11:51 PM, Daniel Lezcano wrote: On 02/19/2013 07:10 PM, Thomas Gleixner wrote: On Tue, 19 Feb 2013, Daniel Lezcano wrote: I am working on identifying the different wakeup sources from the interrupts and I have a

[PATCH v2] IB/mlx4: silence GCC warning

2013-02-21 Thread Paul Bolle
Building qp.o (part of the Mellanox ConnectX HCA support driver) triggers this GCC warning: drivers/infiniband/hw/mlx4/qp.c: In function ‘mlx4_ib_post_send’: drivers/infiniband/hw/mlx4/qp.c:1862:30: warning: ‘vlan’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Re: [PATCH] ALSA: usb: Fix Processing Unit Descriptor parsers

2013-02-21 Thread Takashi Iwai
At Thu, 21 Feb 2013 01:55:50 +, Pawel Moll wrote: Commit 99fc86450c439039d2ef88d06b222fd51a779176 ALSA: usb-mixer: parse descriptors with structs introduced a set of useful parsers for descriptors. Unfortunately the parses for the Processing Unit Descriptor came with a very subtle bug...

Re: [PATCH 1/2] metag: copy devicetree to non-init memory

2013-02-21 Thread Vineet Gupta
Hi James, On Wednesday 20 February 2013 08:22 PM, James Hogan wrote: Make a copy of the device tree blob in non-init memory. It is required when using built-in device tree files that the platform code copies the blob to non-init memory prior to calling unflatten_device_tree(), otherwise the

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-21 Thread Michael Wang
On 02/21/2013 04:10 PM, Mike Galbraith wrote: On Thu, 2013-02-21 at 15:00 +0800, Michael Wang wrote: On 02/21/2013 02:11 PM, Mike Galbraith wrote: On Thu, 2013-02-21 at 12:51 +0800, Michael Wang wrote: On 02/20/2013 06:49 PM, Ingo Molnar wrote: [snip] [snip] if wake_affine()

Re: [PATCH] idr: explain WARN_ON_ONCE() on negative IDs out-of-range ID

2013-02-21 Thread Thomas Gleixner
On Wed, 20 Feb 2013, Tejun Heo wrote: Until recently, when an negative ID is specified, idr functions used to ignore the sign bit and proceeded with the operation with the rest of bits, which is bizarre and error-prone. The behavior recently got changed so that negative IDs are treated as

Re: [resend] Timer broadcast question

2013-02-21 Thread Santosh Shilimkar
On Thursday 21 February 2013 02:31 PM, Daniel Lezcano wrote: On 02/21/2013 07:19 AM, Santosh Shilimkar wrote: On Tuesday 19 February 2013 11:51 PM, Daniel Lezcano wrote: On 02/19/2013 07:10 PM, Thomas Gleixner wrote: On Tue, 19 Feb 2013, Daniel Lezcano wrote: I am working on identifying the

Re: [PATCH v10 0/4] block layer runtime pm

2013-02-21 Thread Aaron Lu
On Wed, Feb 20, 2013 at 10:43:50AM -0500, Alan Stern wrote: On Wed, 20 Feb 2013, Aaron Lu wrote: In August 2010, Jens and Alan discussed about Runtime PM and the block layer. http://marc.info/?t=12825910841r=1w=2 And then Alan has given a detailed implementation guide:

[GIT PULL] s390 patches for the 3.9 merge window

2013-02-21 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: The most prominent change in this patch set is the software dirty bit patch for s390. It removes

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-21 Thread Michael Wang
On 02/21/2013 04:10 PM, Mike Galbraith wrote: On Thu, 2013-02-21 at 15:00 +0800, Michael Wang wrote: On 02/21/2013 02:11 PM, Mike Galbraith wrote: On Thu, 2013-02-21 at 12:51 +0800, Michael Wang wrote: On 02/20/2013 06:49 PM, Ingo Molnar wrote: [snip] [snip] if wake_affine()

Re: mmotm 2013-02-19-17-20 uploaded

2013-02-21 Thread Stephen Boyd
On 2/19/2013 5:21 PM, a...@linux-foundation.org wrote: * timer_list-split-timer_list_show_tickdevices.patch * timer_list-convert-timer-list-to-be-a-proper-seq_file.patch * timer_list-convert-timer-list-to-be-a-proper-seq_file-fix.patch *

[PATCH] x86, smpboot: Remove unused variable

2013-02-21 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de The cpuinfo_x86 ptr is unused now. Drop it. Got obsolete by 69fb3676df33 (x86 idle: remove mwait_idle() and idle=mwait cmdline param) removing its only user. Signed-off-by: Borislav Petkov b...@suse.de Cc: Len Brown len.br...@intel.com ---

Re: [PATCH 1/2] metag: copy devicetree to non-init memory

2013-02-21 Thread James Hogan
Hi Vineet, On 21/02/13 09:08, Vineet Gupta wrote: On Wednesday 20 February 2013 08:22 PM, James Hogan wrote: Make a copy of the device tree blob in non-init memory. It is required when using built-in device tree files that the platform code copies the blob to non-init memory prior to calling

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-21 Thread Thomas Gleixner
On Thu, 21 Feb 2013, Jason Liu wrote: 2013/2/20 Thomas Gleixner t...@linutronix.de: On Wed, 20 Feb 2013, Jason Liu wrote: void arch_idle(void) { clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, cpu); enter_the_wait_mode();

Re: [PATCH 6/6] ubifs: Wait for page writeback to provide stable pages

2013-02-21 Thread Boaz Harrosh
On 02/21/2013 05:48 AM, Darrick J. Wong wrote: On Wed, Jan 23, 2013 at 01:43:12PM -0800, Andrew Morton wrote: On Fri, 18 Jan 2013 17:13:16 -0800 Darrick J. Wong darrick.w...@oracle.com wrote: When stable pages are required, we have to wait if the page is just going to disk and we want to

Re: [PATCH 10/16] virtio_net: use virtqueue_add_sgs[] for command buffers.

2013-02-21 Thread Jason Wang
On 02/21/2013 04:30 PM, Wanlong Gao wrote: On 02/19/2013 03:56 PM, Rusty Russell wrote: It's a bit cleaner to hand multiple sgs, rather than one big one. Signed-off-by: Rusty Russell ru...@rustcorp.com.au --- drivers/net/virtio_net.c | 50 ++

Re: [patch v5 11/15] sched: add power/performance balance allow flag

2013-02-21 Thread Borislav Petkov
On Thu, Feb 21, 2013 at 09:32:54AM +0800, Alex Shi wrote: Yes, use flags can save 2 int variable, I will change that. Just curious, consider the lb_env size and just used in stack, plus the big cacheline size of modern cpu, and the alignment of gcc flag on kernel, seems no arch needs more

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-21 Thread Mike Galbraith
On Thu, 2013-02-21 at 17:08 +0800, Michael Wang wrote: But is this patch set really cause regression on your Q6600? It may sacrificed some thing, but I still think it will benefit far more, especially on huge systems. We spread on FORK/EXEC, and will no longer will pull communicating tasks

Re: [PATCH 10/16] virtio_net: use virtqueue_add_sgs[] for command buffers.

2013-02-21 Thread Wanlong Gao
On 02/21/2013 05:41 PM, Jason Wang wrote: On 02/21/2013 04:30 PM, Wanlong Gao wrote: On 02/19/2013 03:56 PM, Rusty Russell wrote: It's a bit cleaner to hand multiple sgs, rather than one big one. Signed-off-by: Rusty Russell ru...@rustcorp.com.au --- drivers/net/virtio_net.c | 50

[perf bugreport] perf doesn't delete /tmp/perf-vdso.so.* file on exit

2013-02-21 Thread Markus Trippelsdorf
Perf doesn't properly clean up /tmp/perf-vdso.so-XX on exit. So these files keep accumulating in /tmp every time perf is run. -- Markus -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH resent] dma: add the freescale-provided MultiChannel DMA driver

2013-02-21 Thread Vinod Koul
On Thu, Feb 21, 2013 at 09:29:47AM +0100, Philippe De Muyter wrote: 2. If you are not using dmaengine APIs then drivers/dma/ is not a place for you. What would be the place then for a multi-architecture dma driver. Freescale often reuses the same blocks for its m68k (coldfire), powerpc

[PATCH] blackfin idle: Fix compile error

2013-02-21 Thread Lars-Peter Clausen
Commit 26bab0c (blackfin idle: delete pm_idle) introduced the following compile error: arch/blackfin/kernel/process.c: In function ‘cpu_idle’: arch/blackfin/kernel/process.c:83: error: ‘idle’ undeclared (first use in this function) arch/blackfin/kernel/process.c:83: error:

Re: [PATCH] spi: tegra114: add spi driver

2013-02-21 Thread Peter De Schrijver
On Wed, Feb 20, 2013 at 06:25:13PM +0100, Stephen Warren wrote: On 02/20/2013 06:26 AM, Laxman Dewangan wrote: On Wednesday 20 February 2013 06:41 PM, Mark Brown wrote: * PGP Signed by an unknown key On Wed, Feb 20, 2013 at 05:59:03PM +0530, Laxman Dewangan wrote: +tspi-clk =

Re: [PATCH] I2C: i2c-pxa - remove incorrect __exit annotations

2013-02-21 Thread Wolfram Sang
On Wed, Feb 20, 2013 at 12:50:10AM -0800, Dmitry Torokhov wrote: The remove() methods should not be marked __exit unless we are using platform_driver_probe() which disables unbinding device from driver via sysfs. Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com Eeks, I broke this

Re: sched: Fix signedness bug in yield_to()

2013-02-21 Thread Raghavendra KT
On Thu, Feb 21, 2013 at 2:26 PM, Ingo Molnar mi...@kernel.org wrote: * Shuah Khan shuahk...@gmail.com wrote: On Tue, Feb 19, 2013 at 7:27 PM, Linux Kernel Mailing List linux-kernel@vger.kernel.org wrote: Gitweb:

Re: [PATCH v2] X.509: Support parse long form of length octets in Authority Key Identifier

2013-02-21 Thread joeyli
於 四,2013-02-21 於 15:35 +1030,Rusty Russell 提到: joeyli j...@suse.com writes: 於 三,2013-02-20 於 12:49 +,David Howells 提到: Acked-by: David Howells dhowe...@redhat.com Thanks for David's review and confirm. Should this be CC stable? Thanks, Rusty. IMHO this patch need Cc

[PATCH] microblaze idle: Fix compile error

2013-02-21 Thread Lars-Peter Clausen
Commit def8203 (microblaze idle: delete pm_idle) introduced the following compile error: arch/microblaze/kernel/process.c: In function 'cpu_idle': arch/microblaze/kernel/process.c:100: error: 'idle' undeclared (first use in this function)

[GIT] trivial

2013-02-21 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial.git for-linus to receive assorted tiny fixes queued in trivial tree. Andrew Murray (1): of: fix spelling mistake in comment Javi Merino (1): of: add missing documentation for

[GIT] HID

2013-02-21 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive HID subsystem and drivers update. Highlights: - new support of a group of Win7/Win8 multitouch devices, from Benjamin Tissoires - fix for compat interface brokenness in uhid, from

Re: [PATCH 09/16] ia64 idle: delete pm_idle

2013-02-21 Thread Lars-Peter Clausen
On 02/10/2013 06:58 AM, Len Brown wrote: From: Len Brown len.br...@intel.com pm_idle() on ia64 was a synonym for default_idle(). So simply invoke default_idle() directly. Signed-off-by: Len Brown len.br...@intel.com Cc: linux-i...@vger.kernel.org --- arch/ia64/kernel/process.c | 3 ---

Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair()

2013-02-21 Thread Peter Zijlstra
On Thu, 2013-02-21 at 12:51 +0800, Michael Wang wrote: The old logical when locate affine_sd is: if prev_cpu != curr_cpu if wake_affine() prev_cpu = curr_cpu new_cpu = select_idle_sibling(prev_cpu) return new_cpu The new

[perf patch] perf doesn't delete /tmp/perf-vdso.so.* file on exit

2013-02-21 Thread Markus Trippelsdorf
perf top doesn't unlink /tmp/perf-vdso.so.* on exit. Fix this by calling vdso__exit() before exit(0). Signed-off-by: Markus Trippelsdorf mar...@trippelsdorf.de diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index c9ff395..e910d91 100644 --- a/tools/perf/builtin-top.c +++

Re: [PATCH] ptrace: add ability to retrieve signals without removing them from a queue

2013-02-21 Thread Pavel Emelyanov
On 02/21/2013 02:37 AM, Oleg Nesterov wrote: On 02/19, Pavel Emelyanov wrote: On 02/19/2013 11:34 PM, Oleg Nesterov wrote: But, given that every PEEK does list_for_each() until it finds the necessary sequence number, I am wondering how this O(n**2) will work if you want to dump 126065

Re: [tip:x86/urgent] x86, efi: Make noefi really disable EFI runtime serivces

2013-02-21 Thread Matt Fleming
On Wed, 2013-02-20 at 16:16 -0800, Yinghai Lu wrote: diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 928bf83..e2cd38f 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -85,9 +85,10 @@ int efi_enabled(int facility) }

Re: [PATCH 3/3] HID: sensor-hub: don't limit the driver only to USB bus

2013-02-21 Thread Benjamin Tissoires
Hi, Sorry for coming this late in the discussion (I was sick at the beginning of the week, preventing me to answer mails). On Mon, Feb 18, 2013 at 1:13 PM, Alexander Holler hol...@ahsoftware.de wrote: Hmm, what happens with Bluetooth sensor-hubs? Is the driver now able to handle them too?

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-21 Thread Will Deacon
Hi Andre, On Wed, Feb 20, 2013 at 07:34:37PM +, André Hentschel wrote: Am 12.02.2013 16:02, schrieb Matthieu CASTET: The tls value is never saved to : thread-tp_value[1]. Also I don't know if you can avoid the extra ldr in the software case. seems like Matthieu is right, any update

Re: [PATCH] perf, x86: add Intel IvyBridge event scheduling constraints

2013-02-21 Thread Stephane Eranian
On Wed, Feb 20, 2013 at 11:08 PM, Andi Kleen a...@linux.intel.com wrote: Except for LDM_PENDING the CYCLE_ACTIVITY events have been also added to Sandy Bridge. So it should be also added there. As far as I know and I double-checked the documentation I have, there is no CYCLE_ACTIVITY

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-21 Thread Lorenzo Pieralisi
Hi Jason, On Thu, Feb 21, 2013 at 06:16:51AM +, Jason Liu wrote: 2013/2/20 Thomas Gleixner t...@linutronix.de: On Wed, 20 Feb 2013, Jason Liu wrote: void arch_idle(void) { clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, cpu); enter_the_wait_mode();

Re: [PATCH 0/3] posix timers: Extend kernel API to report more info about timers

2013-02-21 Thread Pavel Emelyanov
On 02/21/2013 05:21 AM, Matthew Helsley wrote: On Thu, Feb 14, 2013 at 8:18 AM, Pavel Emelyanov xe...@parallels.com wrote: Hi. I'm working on the checkpoint-restore project (http://criu.org), briefly it's aim is to collect information about process' state and saving it so that later it is

Re: [PATCH resent] dma: add the freescale-provided MultiChannel DMA driver

2013-02-21 Thread Philippe De Muyter
Hi Vinod, On Thu, Feb 21, 2013 at 03:22:33PM +0530, Vinod Koul wrote: On Thu, Feb 21, 2013 at 09:29:47AM +0100, Philippe De Muyter wrote: 2. If you are not using dmaengine APIs then drivers/dma/ is not a place for you. What would be the place then for a multi-architecture dma driver.

Re: [PATCH] HID: make sensor autodetection independent of underlying bus

2013-02-21 Thread Benjamin Tissoires
On Tue, Feb 19, 2013 at 10:22 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: Instead of limiting HID sensors to USB and I2C busses we can just make everything that has usage page of HID_UP_SENSOR to be included in HID_GROUP_SENSOR_HUB group. This allows the sensor-hub to work over

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-21 Thread Jason Liu
2013/2/21 Lorenzo Pieralisi lorenzo.pieral...@arm.com: Hi Jason, On Thu, Feb 21, 2013 at 06:16:51AM +, Jason Liu wrote: 2013/2/20 Thomas Gleixner t...@linutronix.de: On Wed, 20 Feb 2013, Jason Liu wrote: void arch_idle(void) {

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-21 Thread Jason Liu
2013/2/21 Thomas Gleixner t...@linutronix.de: On Thu, 21 Feb 2013, Jason Liu wrote: 2013/2/20 Thomas Gleixner t...@linutronix.de: On Wed, 20 Feb 2013, Jason Liu wrote: void arch_idle(void) { clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, cpu); enter_the_wait_mode();

Re: [PATCH 3/3] HID: sensor-hub: don't limit the driver only to USB bus

2013-02-21 Thread Alexander Holler
Am 21.02.2013 11:34, schrieb Benjamin Tissoires: Hi, Sorry for coming this late in the discussion (I was sick at the beginning of the week, preventing me to answer mails). On Mon, Feb 18, 2013 at 1:13 PM, Alexander Holler hol...@ahsoftware.de wrote: Hmm, what happens with Bluetooth

RE: [PATCH v3] mmc: dw_mmc: Add MSHC compatible for Exynos4412

2013-02-21 Thread Seungwon Jeon
On Wednesday, February 20, 2013, Alim Akhtar wrote: Hi, On Tue, Feb 19, 2013 at 6:04 PM, Dongjin Kim tobet...@gmail.com wrote: Hello Seungwon, Thank you for reviewing and I understand what you mean. I agree that Exynos5250 and Exynos4412 are not same, no idea how much they are

[PATCH v2] x86, efi: Make noefi really disable EFI runtime serivces

2013-02-21 Thread Matt Fleming
From: Matt Fleming matt.flem...@intel.com commit 1de63d60cd5b (efi: Clear EFI_RUNTIME_SERVICES rather than EFI_BOOT by noefi boot parameter) attempted to make noefi true to its documentation and disable EFI runtime services to prevent the bricking bug described in commit e0094244e41c

Re: [PATCH v2 -tip] sched/rt: Fix locality of threaded interrupt handlers

2013-02-21 Thread Peter Zijlstra
On Wed, 2013-02-20 at 10:19 +0100, Alexander Gordeev wrote: When a interrupt affinity mask targets multiple CPUs, the RT scheduler selects a runqueue for RT task corresponding to a threaded interrupt handler without consideration of where the interrupt is actually gets delivered. It leads to

[PATCH V3 2/2] fs/aio.c: use get_user_pages_non_movable() to pin ring pages when support memory hotremove

2013-02-21 Thread Lin Feng
This patch gets around the aio ring pages can't be migrated bug caused by get_user_pages() via using the new function. It only works as configed with CONFIG_MEMORY_HOTREMOVE, otherwise it falls back to use the old version of get_user_pages(). Cc: Benjamin LaHaise b...@kvack.org Cc: Alexander

[PATCH V3 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable()

2013-02-21 Thread Lin Feng
get_user_pages() always tries to allocate pages from movable zone, which is not reliable to memory hotremove framework in some case. This patch introduces a new library function called get_user_pages_non_movable() to pin pages only from zone non-movable in memory. It's a wrapper of

[PATCH V3 0/2] mm: hotplug: implement non-movable version of get_user_pages() to kill long-time pin pages

2013-02-21 Thread Lin Feng
Currently get_user_pages() always tries to allocate pages from movable zone, as discussed in thread https://lkml.org/lkml/2012/11/29/69, in some case users of get_user_pages() is easy to pin user pages for a long time(for now we found that pages pinned as aio ring pages is such case), which is

Re: [PATCH 1/2] metag: copy devicetree to non-init memory

2013-02-21 Thread Vineet Gupta
On Wednesday 20 February 2013 08:22 PM, James Hogan wrote: Make a copy of the device tree blob in non-init memory. It is required when using built-in device tree files that the platform code copies the blob to non-init memory prior to calling unflatten_device_tree(), otherwise the strings that

Re: [PATCH 1/2] metag: copy devicetree to non-init memory

2013-02-21 Thread Vineet Gupta
On Thursday 21 February 2013 03:04 PM, James Hogan wrote: Hi Vineet, On 21/02/13 09:08, Vineet Gupta wrote: On Wednesday 20 February 2013 08:22 PM, James Hogan wrote: Make a copy of the device tree blob in non-init memory. It is required when using built-in device tree files that the

Re: PROBLEM: Crash cgdeleting empty memory cgroups with memory.kmem.limit_in_bytes set

2013-02-21 Thread Glauber Costa
On 02/21/2013 03:00 AM, Tejun Heo wrote: (cc'ing cgroup / memcg people and quoting whole body) Looks like something is going wrong with memcg cache destruction. Glauber, any ideas? Also, can we please not use names as generic as kmem_cache_destroy_work_func for something specific to memcg?

[PATCH] MODSIGN: Fix including certificate twice when the signing_key.x509 already exists

2013-02-21 Thread Chun-Yi Lee
This issue was found in devel-pekey branch on linux-modsign.git tree. The x509_certificate_list includes certificate twice when the signing_key.x509 already exists. We can reproduce this issue by making kernel twice, the build log of second time looks like this: ... CHK kernel/config_data.h

Re: [PATCH 1/2] metag: copy devicetree to non-init memory

2013-02-21 Thread James Hogan
On 21/02/13 11:19, Vineet Gupta wrote: On Wednesday 20 February 2013 08:22 PM, James Hogan wrote: Make a copy of the device tree blob in non-init memory. It is required when using built-in device tree files that the platform code copies the blob to non-init memory prior to calling

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

2013-02-21 Thread Stratos Karafotis
Hi Viresh, Thank you very much for your review and your suggestions. On 02/21/2013 06:59 AM, Viresh Kumar wrote: Sorry for this but i already have a patchset which has changed these files to some extent. Can you please rebase over them? Actually my patchset is already accepted, its just that

Re: [RFC PATCH v3 1/3] sched: schedule balance map foundation

2013-02-21 Thread Peter Zijlstra
On Thu, 2013-02-21 at 12:58 +0800, Michael Wang wrote: You are right, it cost space in order to accelerate the system, I've calculated the cost once before (I'm really not good at this, please let me know if I make any silly calculation...), The exact size isn't that important, but its

New copyfile system call - discuss before LSF?

2013-02-21 Thread Ric Wheeler
We have debated the need to have a system call to allow for offloading copy operations, for example to an NFS server (part to the new NFS 4.2 specification), SCSI target device (two different SCSI commands do this), local file systems (reflink, etc) and I suspect many other possible parts of

[PATCH v2] [SCSI] aacraid: suppress two GCC warnings

2013-02-21 Thread Paul Bolle
Building src.o for a 32 bit system triggers two GCC warnings: drivers/scsi/aacraid/src.c: In function ‘aac_src_deliver_message’: drivers/scsi/aacraid/src.c:410:3: warning: right shift count = width of type [enabled by default] drivers/scsi/aacraid/src.c:434:2: warning: right shift

Re: Read I/O starvation with writeback RAID controller

2013-02-21 Thread Martin Svec
I'm sorry, I forgot to mention hardware details. It isn't aacraid, it is megaraid-based Dell PERC H700 w/ 1GB NVRAM and 12x 450GB 15k SAS drives in RAID-10. All in Dell R510 server. Thanks, Martin Dne 20.2.2013 21:48, Nicholas A. Bellinger napsal(a): Hi Martin, CC'ing linux-scsi here, as

[PATCH] [SCSI]: megaraid: avoid sleeping on spinlock

2013-02-21 Thread Denis Efremov
GFP_KERNEL may cause pci_pool_alloc() sleep, so we need use GFP_ATOMIC instead of GFP_KERNEL. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov yefremov.de...@gmail.com --- drivers/scsi/megaraid/megaraid_mm.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] KEYS: Revert one application of Fix unreachable code patch [ver #2]

2013-02-21 Thread David Howells
A patch to fix some unreachable code in search_my_process_keyrings() got applied twice by two different routes upstream: commit e67eab39bee26f509d38d00ca1a8f24b63f46a31 Author: Alan Cox a...@linux.intel.com Date: Thu Dec 20 15:05:54 2012 -0800 keys: fix

Re: [PATCH EDAC 03/13] ghes: add the needed hooks for EDAC error report

2013-02-21 Thread Mauro Carvalho Chehab
Em Thu, 21 Feb 2013 09:26:07 +0800 Huang Ying ying.hu...@intel.com escreveu: Sorry for late! Thanks for your comments. See my answers below. On Fri, 2013-02-15 at 10:44 -0200, Mauro Carvalho Chehab wrote: In order to allow reporting errors via EDAC, add hooks for: 1) register an EDAC

  1   2   3   4   5   6   7   8   9   10   >