Re: [PATCH 1/2] Staging: android: binder: Fix memory leak on thread/process exit

2012-10-22 Thread Greg KH
On Tue, Oct 16, 2012 at 03:45:20PM -0700, Arve Hjønnevåg wrote: On Tue, Oct 16, 2012 at 12:11 AM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Oct 15, 2012 at 05:32:41PM -0700, Arve Hjønnevåg wrote: If a thread or process exited while a reply, one-way transaction or death notification

Re: [PATCH] Staging: android: binder: Fixed multi-line strings

2012-10-22 Thread Greg KH
On Mon, Oct 08, 2012 at 04:15:14PM -0700, Joe Perches wrote: On Tue, 2012-10-09 at 00:31 +0530, Anmol Sarma wrote: Changed all user visible multi-line stings to single line. Another patch might be to add #define pr_fmt(fmt) KBUILD_MODNAME : fmt before any #include and diff --git

Re: [PATCH] spi: tegra: add spi driver for SLINK controller

2012-10-22 Thread Stephen Warren
On 10/18/2012 04:47 AM, Laxman Dewangan wrote: Tegra20/Tegra30 supports the spi interface through its SLINK controller. Add spi driver for SLINK controller. diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c +static inline void tegra_slink_writel(struct

Re: [PATCH 1/2] staging: android: checkpatch.pl fixes

2012-10-22 Thread Greg KH
On Sat, Oct 20, 2012 at 11:33:19PM +0100, Ken O'Brien wrote: Fixed all instances of strings spanning multiple lines from checkpatch.pl. Signed-off-by: Ken O'Brien ker...@kenobrien.org Why did you send me 3 copies of this series? Which one should I use? Based on this thread, I'll throw away

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread Eric W. Biederman
HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: We disable BSP if boot cpu is AP. INIT-INIT-SIPI sequence, a protocal to initiate AP, cannot be used for BSP since it causes BSP jump to BIOS init code; typical visible behaviour is hang or immediate reset, depending on the BIOS init code.

Re: [PATCH] pinctrl/nomadik: use irq_create_mapping()

2012-10-22 Thread Stephen Warren
On 10/22/2012 02:14 AM, Linus Walleij wrote: On Fri, Oct 19, 2012 at 6:22 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/19/2012 09:09 AM, Linus Walleij wrote: From: Linus Walleij linus.wall...@linaro.org @@ -931,7 +931,7 @@ static void __nmk_gpio_irq_handler(unsigned int irq, struct

Re: [PATCH] pinctrl: reserve pins when states are activated

2012-10-22 Thread Stephen Warren
On 10/22/2012 02:15 AM, Linus Walleij wrote: This switches the way that pins are reserved for multiplexing: We used to do this when the map was parsed, at the creation of the settings inside the pinctrl handle, in pinmux_map_to_setting(). However this does not work for us, because we want

Re: [PATCH 0/4] Rebase device_cgroup v2 patchset

2012-10-22 Thread Aristeu Rozanski
Hi Andrew, On Mon, Oct 22, 2012 at 12:58:38PM -0700, Andrew Morton wrote: On Mon, 22 Oct 2012 09:45:36 -0400 Aristeu Rozanski a...@redhat.com wrote: This patchset rebases the v2 of the patchset since the v1 was pushed into -rc1 instead. The last patch, not present on previous patchset,

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:04 PM, Eric W. Biederman wrote: HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: We disable BSP if boot cpu is AP. INIT-INIT-SIPI sequence, a protocal to initiate AP, cannot be used for BSP since it causes BSP jump to BIOS init code; typical visible behaviour is hang or

Re: Major performance regressions in 3.7rc1/2

2012-10-22 Thread Julian Wollrath
Hello, seems like I found the other bad commit. Everything, which means v3.7-rc*, works fine again with commit e6c509f85 (mm: use clear_page_mlock() in page_remove_rmap()) and commit 957f822a0 (mm, numa: reclaim from all nodes within reclaim distance) revoked. With best regards, Julian Wollrath

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 12:46 PM, Yinghai Lu wrote: On Mon, Oct 22, 2012 at 11:38 AM, Jacob Shin jacob.s...@amd.com wrote: Does EFI do this on above 4G memory? All the EFI BIOSes we have in house looked to be only touching under 4G. I have no idea about it. I don't think we can rely on what is

Re: [PATCH 2/6] xen/pvh: Extend vcpu_guest_context, p2m, event, and xenbus to support PVH.

2012-10-22 Thread Konrad Rzeszutek Wilk
On Mon, Oct 22, 2012 at 11:31:54AM -0700, Mukesh Rathor wrote: On Mon, 22 Oct 2012 14:44:40 +0100 Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Sat, 20 Oct 2012, Konrad Rzeszutek Wilk wrote: From: Mukesh Rathor mukesh.rat...@oracle.com make gdt_frames[]/gdt_ents

Re: [PATCH v2] pinctrl: reserve pins when states are activated

2012-10-22 Thread Stephen Warren
On 10/22/2012 02:21 AM, Linus Walleij wrote: On Fri, Oct 19, 2012 at 8:10 PM, Tony Lindgren t...@atomide.com wrote: [Me] Instead: let use reserve the pins when the state is activated and drop them when the state is disabled, i.e. when we move to another state. This way different

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread Eric W. Biederman
H. Peter Anvin h...@zytor.com writes: On 10/22/2012 01:04 PM, Eric W. Biederman wrote: HATAYAMA Daisuke d.hatay...@jp.fujitsu.com writes: We disable BSP if boot cpu is AP. INIT-INIT-SIPI sequence, a protocal to initiate AP, cannot be used for BSP since it causes BSP jump to BIOS init

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:31 PM, Eric W. Biederman wrote: IIRC Fenghua experimented with that and it didn't work. Not all BIOSes use that bit to determine BSP-ness. What does a BIOS have to do with anything? The practical issue here is does an INIT IPI cause the cpu to go into startup-ipi-wait

Re: [PATCH 0/9] Staging: winbond: Fixed coding style issues

2012-10-22 Thread Greg KH
On Fri, Oct 12, 2012 at 10:07:06PM +0530, Adil Mujeeb wrote: winbond directory files have lots of coding style issues. The patch set tries to remove *most* (if not all) of the coding style issues. checkpatch.pl script is still complaining (like 80 characters limit) but major part of the

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:33 PM, H. Peter Anvin wrote: On 10/22/2012 01:31 PM, Eric W. Biederman wrote: IIRC Fenghua experimented with that and it didn't work. Not all BIOSes use that bit to determine BSP-ness. What does a BIOS have to do with anything? The practical issue here is does an INIT IPI

Re: [PATCH 2/6] xen/pvh: Extend vcpu_guest_context, p2m, event, and xenbus to support PVH.

2012-10-22 Thread Mukesh Rathor
On Mon, 22 Oct 2012 16:14:51 -0400 Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: On Mon, Oct 22, 2012 at 11:31:54AM -0700, Mukesh Rathor wrote: On Mon, 22 Oct 2012 14:44:40 +0100 Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Sat, 20 Oct 2012, Konrad Rzeszutek Wilk

Re: [PATCH] [staging][zram] Fix handling of incompressible pages

2012-10-22 Thread Greg KH
On Wed, Oct 10, 2012 at 05:42:18PM -0700, Nitin Gupta wrote: Change 130f315a (staging: zram: remove special handle of uncompressed page) introduced a bug in the handling of incompressible pages which resulted in memory allocation failure for such pages. When a page expands on compression,

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread Eric W. Biederman
H. Peter Anvin h...@zytor.com writes: On 10/22/2012 01:31 PM, Eric W. Biederman wrote: IIRC Fenghua experimented with that and it didn't work. Not all BIOSes use that bit to determine BSP-ness. What does a BIOS have to do with anything? The practical issue here is does an INIT IPI

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:43 PM, Eric W. Biederman wrote: The reason the BIOSen go wonky is the INIT cause the cpu to go to the reset vector at 4G-16 bytes. So it is very much expected that the BIOSen start acting like you just came out of reset. If you can clear bit 8 of IA32_APIC_BASE_MSR and

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread Yinghai Lu
On Mon, Oct 22, 2012 at 1:26 PM, H. Peter Anvin h...@linux.intel.com wrote: 2. partial page: E820 or user could pass memmap that is not page aligned. old cold will guarded by max_low_pfn and max_pfn. so the end partial page will be trimmed down, and memblock can one use it.

Re: [PATCH] staging: csr: remove a number of unneeded includes of version.h

2012-10-22 Thread Greg Kroah-Hartman
On Thu, Oct 18, 2012 at 09:51:56PM +0200, Jesper Juhl wrote: Signed-off-by: Jesper Juhl j...@chaosbits.net Someone already beat you to this patch, sorry. greg k-h -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: [rfc 0/2] Introducing VmFlags field into smaps output

2012-10-22 Thread Pavel Emelyanov
On 10/22/2012 11:29 PM, Andrew Morton wrote: On Mon, 22 Oct 2012 23:14:52 +0400 Cyrill Gorcunov gorcu...@openvz.org wrote: Hi guys, during c/r sessions we've found that there is no way at the moment to fetch some VMA associated flags, such as mlock() and madvise(), thus the patches in this

Re: [patch for-3.7 v3] mm, mempolicy: hold task-mempolicy refcount while reading numa_maps.

2012-10-22 Thread Andrew Morton
On Mon, 22 Oct 2012 11:47:31 +0900 Kamezawa Hiroyuki kamezawa.hir...@jp.fujitsu.com wrote: (2012/10/19 18:28), David Rientjes wrote: Looks good, but the patch is whitespace damaged so it doesn't apply. When that's fixed: Acked-by: David Rientjes rient...@google.com Sorry, I hope

Re: [PATCH] staging: csr: fix coding style

2012-10-22 Thread Greg KH
On Tue, Oct 16, 2012 at 10:13:02AM +0300, Lauri Hintsala wrote: Hi, On 10/15/2012 10:55 AM, SeongJae Park wrote: Fix coding style of csr_framework_ext_types.h Signed-off-by: SeongJae Park sj38.p...@gmail.com --- drivers/staging/csr/csr_framework_ext_types.h | 33

Re: [rfc 0/2] Introducing VmFlags field into smaps output

2012-10-22 Thread Cyrill Gorcunov
On Tue, Oct 23, 2012 at 12:50:48AM +0400, Pavel Emelyanov wrote: On 10/22/2012 11:29 PM, Andrew Morton wrote: On Mon, 22 Oct 2012 23:14:52 +0400 Cyrill Gorcunov gorcu...@openvz.org wrote: Hi guys, during c/r sessions we've found that there is no way at the moment to fetch some VMA

Re: [patch for-3.7 v3] mm, mempolicy: hold task-mempolicy refcount while reading numa_maps.

2012-10-22 Thread David Rientjes
On Mon, 22 Oct 2012, Kamezawa Hiroyuki wrote: Looks good, but the patch is whitespace damaged so it doesn't apply. When that's fixed: Acked-by: David Rientjes rient...@google.com Sorry, I hope this one is not broken... Looks like Linus picked this up directly, thanks Kame! -- To

[PATCH] perf report: fix broken perf report -n on 32-bit systems

2012-10-22 Thread Stephane Eranian
On 32-bit systems, using perf report -n would yield garbage for the Samples column. This is because the hpp code was assuming the hist_entry.stat.nr_events was u64 when in reality it was u32. This patch fixes the problem by defining nr_events to be u64. u32 is too small anyway. Signed-off-by:

Re: [PATCH 1/4] Drivers: Staging: CSR: Fixed indentation problems on data_tx.c

2012-10-22 Thread Greg KH
On Mon, Oct 15, 2012 at 12:16:50AM +0900, Sangho Yi wrote: Originally, the data_tx.c was indented with 4 spaces, so I fixed the indentation using a single tab. Signed-off-by: Sangho Yi antir...@gmail.com --- drivers/staging/csr/data_tx.c | 58 -

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:50 PM, Yinghai Lu wrote: We should not map a partial page at the end of RAM; it is functionally lost. Now we did not, we have max_low_pfn, and max_pfn to cap out end partial page. Well, it is not just end of RAM, which is where the entire current implementation falls

Re: [PATCH 2/4] Drivers: Staging: CSR: Removed braces for single line if statement

2012-10-22 Thread Greg KH
On Mon, Oct 15, 2012 at 12:16:51AM +0900, Sangho Yi wrote: It was a very minor fix that an if statement had curly braces with just single line of code inside. Signed-off-by: Sangho Yi antir...@gmail.com --- drivers/staging/csr/data_tx.c |3 +-- 1 file changed, 1 insertion(+), 2

Re: [PATCH 3/4] Drivers: Staging: CSR: Removed whitespace between function name and (

2012-10-22 Thread Greg KH
On Mon, Oct 15, 2012 at 12:16:52AM +0900, Sangho Yi wrote: Removed the unnecessary whitespace between function name and the (, according to the coding style. Signed-off-by: Sangho Yi antir...@gmail.com --- drivers/staging/csr/data_tx.c |2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 4/4] Drivers: Staging: CSR: Removed whitespace before quoting newline

2012-10-22 Thread Greg KH
On Mon, Oct 15, 2012 at 12:16:53AM +0900, Sangho Yi wrote: Removed the unnecessary whitespace before \n on the printing statement. Signed-off-by: Sangho Yi antir...@gmail.com This one didn't apply either. greg k-h -- To unsubscribe from this list: send the line unsubscribe linux-kernel in

Re: [PATCH 2/2] Staging: CSR: Fixed 41% of exceeding 80 characters problems on drv.c

2012-10-22 Thread Greg KH
On Thu, Oct 18, 2012 at 04:36:38PM +0300, Dan Carpenter wrote: On Mon, Oct 15, 2012 at 12:58:26AM +0900, Sangho Yi wrote: -int buswidth = 0; /* 0 means use default, values 1,4 */ -int sdio_clock = 5; /* kHz */ +int buswidth = 0; /* 0 means use

Re: [PATCH 01/14] staging: csr: fixed indentation from spaces to tabs on io.c

2012-10-22 Thread Greg KH
On Thu, Oct 18, 2012 at 04:40:46PM +0300, Dan Carpenter wrote: On Tue, Oct 16, 2012 at 02:24:20AM +0900, Sangho Yi wrote: static int uf_read_proc(char *page, char **start, off_t offset, int count, -int *eof, void *data); +

Re: [PATCH 1/4] staging: csr: Fixed indentation from 4 spaces to tabs on mlme.c

2012-10-22 Thread Greg KH
On Wed, Oct 17, 2012 at 01:36:45AM +0900, Sangho Yi wrote: There were all the 4 spaces indentation, so I fixed them using the tabs. Signed-off-by: Sangho Yi antir...@gmail.com --- drivers/staging/csr/mlme.c | 598 ++-- 1 file changed, 299

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread Yinghai Lu
On Mon, Oct 22, 2012 at 2:00 PM, H. Peter Anvin h...@zytor.com wrote: On 10/22/2012 01:50 PM, Yinghai Lu wrote: We should not map a partial page at the end of RAM; it is functionally lost. Now we did not, we have max_low_pfn, and max_pfn to cap out end partial page. Well, it is not just

Re: [PATCH 1/2] staging: csr: Fixed indentation errors on csr_wifi_vif_utils.h

2012-10-22 Thread Greg KH
On Wed, Oct 17, 2012 at 01:48:29AM +0900, Sangho Yi wrote: There were 4 spaces indented lines, so I fixed using tabs. Signed-off-by: Sangho Yi antir...@gmail.com --- drivers/staging/csr/csr_wifi_vif_utils.h | 58 -- 1 file changed, 31 insertions(+), 27

Re: Tree for linux-next

2012-10-22 Thread Stephen Rothwell
Hi Kees, On Mon, 22 Oct 2012 08:44:26 -0700 Kees Cook keesc...@google.com wrote: Now that we're past rc1, can you please add my tree to your linux-next pulls? drop-experimental git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git#linux-next Thanks for the reminder. It will be

[RESEND PATCH v3] USB: usb-skeleton.c: fix compilation error and restored kref_put on fail in skel_open

2012-10-22 Thread Constantine Shulyupin
From: Constantine Shulyupin co...@makelinux.com Fixing compilaton error. Incrementing usage counter only on successful execution of skel_open. Removing redundant locking Some last changes in function skel_open and finally commit 52a7499 Revert USB: usb-skeleton.c: fix open/disconnect race

[PATCH v2 4/4] zynq: remove use of CLKDEV_LOOKUP

2012-10-22 Thread Josh Cartwright
The Zynq support in mainline does not (yet) make use of any of the generic clk or clk lookup functionality. Remove what is upstream for now, until the out-of-tree implementation is in suitable form for merging. An important side effect of this patch is that it allows the building of a Zynq

Re: [PATCH 2/7] freezer: add missing mb's to freezer_count() and freezer_should_skip()

2012-10-22 Thread Tejun Heo
Hello, Oleg. On Mon, Oct 22, 2012 at 07:44:04PM +0200, Oleg Nesterov wrote: static inline void freezer_count(void) { current-flags = ~PF_FREEZER_SKIP; + /* +* If freezing is in progress, the following paired with smp_mb() +* in freezer_should_skip() ensures that either

[PATCH v2 0/4] zynq subarch cleanups

2012-10-22 Thread Josh Cartwright
Hey all- Things have been relatively quiet on the Zynq front lately. This patchset does a bit of cleanup of the Zynq subarchitecture. It was the necessary set of things I had to do to get a zynq target booting with the upstream qemu model. It removes some unused clock infrastructure, adds DT

[PATCH v2 1/4] ARM: annotate VMALLOC_END definition with _AC

2012-10-22 Thread Josh Cartwright
This makes the definition of VMALLOC_END suitable for use within assembly code. This is necessary to allow the use of VMALLOC_END in defining where the early uart is mapped for use with DEBUG_LL. Signed-off-by: Josh Cartwright josh.cartwri...@ni.com --- arch/arm/include/asm/pgtable.h | 2 +- 1

[PATCH v2 2/4] zynq: move static peripheral mappings

2012-10-22 Thread Josh Cartwright
Shifting them up into the vmalloc region prevents the following warning, when booting a zynq qemu target with more than 512mb of RAM: BUG: mapping for 0xe000 at 0xe000 out of vmalloc space In addition, it allows for reuse of these mappings when the proper drivers issue requests via

[PATCH v2 3/4] zynq: use GIC device tree bindings

2012-10-22 Thread Josh Cartwright
The Zynq uses the cortex-a9-gic. This eliminates the need to hardcode register addresses. Signed-off-by: Josh Cartwright josh.cartwri...@ni.com --- arch/arm/boot/dts/zynq-ep107.dts | 8 +--- arch/arm/mach-zynq/common.c| 7 ++-

Re: [PATCH 1/7] cgroup: cgroup_subsys-fork() should be called after the task is added to css_set

2012-10-22 Thread Tejun Heo
Hey, On Mon, Oct 22, 2012 at 08:04:45PM +0200, Oleg Nesterov wrote: * Clear -cgroup to %NULL during copy_process(). I completely agree. new_child-cgroups copied from parent looks simply strange until post_fork. If nothing else, the new task is still under construction by the time

Re: [PATCH 3/3 v3] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-10-22 Thread Tabi Timur-B04825
On Wed, Oct 17, 2012 at 12:32 PM, Varun Sethi varun.se...@freescale.com wrote: + * Copyright (C) 2012 Freescale Semiconductor, Inc. Copyright 2012 Freescale Semiconductor, Inc. + * + */ + +#include linux/init.h +#include linux/iommu.h +#include linux/slab.h +#include linux/module.h

Re: [PATCH 4/7] cgroup_freezer: don't stall transition to FROZEN for PF_NOFREEZE or PF_FREEZER_SKIP tasks

2012-10-22 Thread Tejun Heo
Hey, On Mon, Oct 22, 2012 at 08:34:53PM +0200, Oleg Nesterov wrote: On 10/16, Tejun Heo wrote: cgroup_freezer doesn't transition from FREEZING to FROZEN if the cgroup contains PF_NOFREEZE tasks or tasks sleeping with PF_FREEZER_SKIP set. And thus the patch looks like another bugfix to

Re: [PATCH resend] genalloc: stop crashing the system when destroying a pool

2012-10-22 Thread Andrew Morton
On Sun, 21 Oct 2012 09:52:59 -0200 Thadeu Lima de Souza Cascardo casca...@linux.vnet.ibm.com wrote: A gen_pool_chunk uses a bitmap to find what addresses ranges it has allocated and bugs when we destroy the pool and a chunk has some bits set. There is a problem when it allocates the bitmap.

Re: [PATCH 5/7] cgroup_freezer: allow moving tasks in and out of a frozen cgroup

2012-10-22 Thread Tejun Heo
Hello, On Mon, Oct 22, 2012 at 09:25:06PM +0200, Oleg Nesterov wrote: @@ -190,12 +201,12 @@ static void freezer_fork(struct task_struct *task) goto out; spin_lock_irq(freezer-lock); - BUG_ON(freezer-state == CGROUP_FROZEN); - - /* Locking avoids race with

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread Yinghai Lu
On Mon, Oct 22, 2012 at 1:52 PM, H. Peter Anvin h...@linux.intel.com wrote: On 10/22/2012 01:50 PM, Yinghai Lu wrote: ok, let's see if we can meet this extreme corner case except user specify not page aligned memmap= If it is *only* memmap= there is a very simple solution: if the memmap is

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 02:25 PM, Yinghai Lu wrote: On Mon, Oct 22, 2012 at 1:52 PM, H. Peter Anvin h...@linux.intel.com wrote: On 10/22/2012 01:50 PM, Yinghai Lu wrote: ok, let's see if we can meet this extreme corner case except user specify not page aligned memmap= If it is *only* memmap= there is

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread Eric W. Biederman
H. Peter Anvin h...@zytor.com writes: On 10/22/2012 01:43 PM, Eric W. Biederman wrote: The reason the BIOSen go wonky is the INIT cause the cpu to go to the reset vector at 4G-16 bytes. So it is very much expected that the BIOSen start acting like you just came out of reset. If you can

Re: [rfc 0/2] Introducing VmFlags field into smaps output

2012-10-22 Thread Cyrill Gorcunov
On Tue, Oct 23, 2012 at 12:56:41AM +0400, Cyrill Gorcunov wrote: On Tue, Oct 23, 2012 at 12:50:48AM +0400, Pavel Emelyanov wrote: On 10/22/2012 11:29 PM, Andrew Morton wrote: On Mon, 22 Oct 2012 23:14:52 +0400 Cyrill Gorcunov gorcu...@openvz.org wrote: Hi guys, during c/r sessions

[patch] x86, apic: use tsc deadline for oneshot when available

2012-10-22 Thread Suresh Siddha
Thomas, You wanted to run some tests with this, right? Please give it a try and see if this is ok to be pushed to the -tip. thanks, suresh --8-- From: Suresh Siddha suresh.b.sid...@intel.com Subject: x86, apic: use tsc deadline for oneshot when available If the TSC deadline mode is supported,

Re: [PATCH] MM: Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB v6

2012-10-22 Thread Andrew Morton
On Mon, 22 Oct 2012 15:27:33 +0200 Andi Kleen a...@firstfloor.org wrote: BTW seriously MAP_UNINITIALIZED? Who came up with that? MAP_COMPLETELY_INSECURE or MAP_INSANE would have been more appropiate. heh. It's a NOMMU-only thing. config MMAP_ALLOW_UNINITIALIZED bool Allow mmapped

Re: [RESEND][PATCH] prctl: update seccomp sections for mode 2 (BPF)

2012-10-22 Thread Michael Kerrisk (man-pages)
If the CONFIG_SECCOMP_FILTER permits fork(), is the seccomp setting inherited across fork()? Similar question for execve(). Yes for both. Additionally, the filters are cumulative. (If the filters allows prctl, additional filters can be appended; they are run in order until the first

Re: [PATCH] [staging][zram] Fix handling of incompressible pages

2012-10-22 Thread Nitin Gupta
On Mon, Oct 22, 2012 at 1:43 PM, Greg KH g...@kroah.com wrote: On Wed, Oct 10, 2012 at 05:42:18PM -0700, Nitin Gupta wrote: Change 130f315a (staging: zram: remove special handle of uncompressed page) introduced a bug in the handling of incompressible pages which resulted in memory allocation

Re: [PATCH v2] staging: csr: Replace wakelocks with wakeup interface

2012-10-22 Thread Greg Kroah-Hartman
On Wed, Oct 03, 2012 at 09:12:30PM +0300, Priit Laes wrote: Wakelocks are an Android-specific API that never made into mainline. Eventually power management wakeup interface appeared, therefore use this interface instead. Signed-off-by: Priit Laes pl...@plaes.org ---

Re: [rfc 0/2] Introducing VmFlags field into smaps output

2012-10-22 Thread Andrew Morton
On Tue, 23 Oct 2012 01:34:49 +0400 Cyrill Gorcunov gorcu...@openvz.org wrote: ... +VmFlags: rd ex mr mw me de ho hum OK, let's do that. +static void show_smap_vma_flags(struct seq_file *m, struct vm_area_struct *vma) +{ + /* + * Don't forget to update Documentation/ on

Re: [Intel-gfx] drm_kms_helper problems

2012-10-22 Thread Mark Hounschell
Hi Bruno, On 10/22/2012 01:40 PM, Mark Hounschell wrote: On 10/22/2012 07:42 AM, Mark Hounschell wrote: On 10/21/2012 03:18 PM, Bruno Prémont wrote: Hi Mark, On Sun, 21 October 2012 Mark Hounschell dma...@cfl.rr.com wrote: On 10/21/2012 10:58 AM, Bruno Prémont wrote: On Sun, 21 October

Re: [ANNOUNCE] 3.6.2-rt4

2012-10-22 Thread Paul Gortmaker
On Sat, Oct 20, 2012 at 3:40 PM, Thomas Gleixner t...@linutronix.de wrote: Dear RT Folks, I'm pleased to announce the 3.6.2-rt4 release. rt4 is just an update to 3.6.2. The not announced 3.6.1-rt3 is an intermediate release with a single change. I've updated the repo of patches to have rt3

Re: [PATCH] rbtree: include linux/compiler.h for definition of __always_inline

2012-10-22 Thread Michel Lespinasse
On Mon, Oct 22, 2012 at 10:01 AM, Will Deacon will.dea...@arm.com wrote: rb_erase_augmented is a static function annotated with __always_inline. This causes a compile failure when attempting to use the rbtree implementation as a library (e.g. kvm tool): rbtree_augmented.h:125:24: error:

Re: [RFC PATCH 02/06] input/rmi4: Core files

2012-10-22 Thread Christopher Heiny
On 10/10/2012 08:06 PM, Joe Perches wrote: On Thu, 2012-10-11 at 02:49 +, Christopher Heiny wrote: Joe Perches wrote: [] + list_for_each_entry(entry, data-rmi_functions.list, list) + if (entry-irq_mask) + process_one_interrupt(entry, irq_status, +

Re: [PATCH v2 2/3] virtio: 9p: correctly pass physical address to userspace for high pages

2012-10-22 Thread Andrew Morton
On Fri, 19 Oct 2012 14:03:32 +0100 Will Deacon will.dea...@arm.com wrote: When using a virtio transport, the 9p net device may pass the physical address of a kernel buffer to userspace via a scatterlist inside a virtqueue. If the kernel buffer is mapped outside of the linear mapping (e.g.

Re: [PATCH 2/3 v3] iommu/fsl: Add iommu domain attributes required by fsl PAMU driver.

2012-10-22 Thread Scott Wood
On 10/17/2012 12:32:49 PM, Varun Sethi wrote: Added the following domain attributes required by FSL PAMU driver: 1. Subwindows field added to the iommu domain geometry attribute. 2. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU

Re: [PATCH v2 1/3] mm: highmem: export kmap_to_page for modules

2012-10-22 Thread Andrew Morton
On Fri, 19 Oct 2012 14:03:31 +0100 Will Deacon will.dea...@arm.com wrote: Some virtio device drivers (9p) need to translate high virtual addresses to physical addresses, which are inserted into the virtqueue for processing by userspace. This patch exports the kmap_to_page symbol, so that

Re: [PATCH v2] gpiolib: Refactor gpio_export

2012-10-22 Thread Linus Walleij
On Mon, Oct 22, 2012 at 2:39 AM, Ryan Mallon rmal...@gmail.com wrote: The gpio_export function uses nested if statements and the status variable to handle the failure cases. This makes the function logic difficult to follow. Refactor the code to abort immediately on failure using goto. This

Re: [PATCH v2] gpiolib: Refactor gpio_export

2012-10-22 Thread Ryan Mallon
On 23/10/12 09:13, Linus Walleij wrote: On Mon, Oct 22, 2012 at 2:39 AM, Ryan Mallon rmal...@gmail.com wrote: The gpio_export function uses nested if statements and the status variable to handle the failure cases. This makes the function logic difficult to follow. Refactor the code to abort

Re: [PATCH V3] gpio: samsung: use pr_* instead of printk

2012-10-22 Thread Linus Walleij
On Mon, Oct 22, 2012 at 3:02 AM, Jingoo Han jg1@samsung.com wrote: On Friday, October 19, 2012 7:09 PM Linus Walleij wrote On Wed, Oct 17, 2012 at 3:52 AM, Jingoo Han jg1@samsung.com wrote: This patch uses pr_* instead of printk. Also, gpio_dbg is replaced with pr_debug.

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:50 PM, Yinghai Lu wrote: ok, let's see if we can meet this extreme corner case except user specify not page aligned memmap= If it is *only* memmap= there is a very simple solution: if the memmap is RAM then we round up the starting address and round down the end address; if the

Re: [RFC PATCH] gpiolib: add gpio get direction support

2012-10-22 Thread Linus Walleij
On Mon, Oct 22, 2012 at 3:44 PM, Mathias Nyman mathias.ny...@linux.intel.com wrote: Add gpio_get_direction() for checking the current direction of a gpio. Returns 1 for input, 0 for output, or negative error. Gpio drivers need to set the gpio_chip .get_direction callback for this

[GIT PULL] jfs bug fix for 3.7

2012-10-22 Thread Dave Kleikamp
The following changes since commit 8d2b6b3ae280dcf6f6c7a95623670a57cdf562ed: Merge tag 'sh-for-linus' of git://github.com/pmundt/linux-sh (2012-10-16 19:24:00 -0700) are available in the git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-3.7-2 for you to fetch changes

Re: [PATCH] arm: sched: stop sched_clock() during suspend

2012-10-22 Thread Linus Walleij
On Mon, Oct 22, 2012 at 7:05 PM, Kevin Hilman khil...@deeprootsystems.com wrote: However, in light of RT throttling, this a correctness issue for process accounting, so I agree that this should be done for all platforms instead of providing an optional 'needs suspend' version of the API, even

Re: [PATCH 1/2] lp855x_bl: use generic PWM functions

2012-10-22 Thread Andrew Morton
On Fri, 19 Oct 2012 08:45:14 + Kim, Milo milo@ti.com wrote: Generally this looks good. Obviously you'll need to update any users of this driver as well. It might make sense to include those changes in this patch to avoid interim build failures. Thanks for your review. So far no

fs: page cache wrongly left invalidated after revalidate_disk

2012-10-22 Thread MITSUNARI Shigeo
Hi, We found that bdev-bd_invalidated was left set once revalidate_disk() is called, which results in page cache flush every time that device is open. Specifically, we found this problem in MD block device. Once we resize a MD device, mdadm --monitor periodically flush all page cache for

Re: [PATCH] ledtrig-cpu: use spin_lock to replace mutex lock

2012-10-22 Thread Rafael J. Wysocki
On Monday 22 of October 2012 11:59:19 Bryan Wu wrote: Hiya, Can I get some Acked or Tested-by from Rafael or Miles before I put it in my linux-leds tree? Well, I just explained why the current code didn't work. :-) Anyway, please feel free to add Acked-by: Rafael J. Wysocki r...@sisk.pl

Re: [PATCH] ledtrig-cpu: use spin_lock to replace mutex lock

2012-10-22 Thread Nathan Lynch
Hi Bryan, On Thu, 2012-10-18 at 11:18 -0700, Bryan Wu wrote: @@ -117,14 +117,14 @@ static int __init ledtrig_cpu_init(void) for_each_possible_cpu(cpu) { struct led_trigger_cpu *trig = per_cpu(cpu_trig, cpu); - mutex_init(trig-lock); +

Re: [PATCH v3 0/9] bugfix for memory hotplug

2012-10-22 Thread Andrew Morton
On Fri, 19 Oct 2012 18:39:45 +0900 Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com wrote: 2012/10/19 17:45, Wen Congyang wrote: At 10/19/2012 04:19 PM, Yasuaki Ishimatsu Wrote: 2012/10/19 17:06, Yasuaki Ishimatsu wrote: Hi Wen, Some bug fix patches have been merged into linux-next.

Re: [PATCH] Support for OWI/Maplin USB Robotic Arm

2012-10-22 Thread Greg KH
On Mon, Oct 08, 2012 at 11:52:56PM -0400, Maxin B John wrote: Hi Greg, On Mon, Oct 8, 2012 at 7:55 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Oct 08, 2012 at 05:29:43PM -0400, Maxin B. John wrote: Hi Greg, This driver helps us to control the OWI/Maplin USB Robotic Arm

Re: [PATCH 0/1] staging: Add firewire-serial driver

2012-10-22 Thread Greg Kroah-Hartman
On Thu, Oct 18, 2012 at 08:56:55AM -0400, Peter Hurley wrote: Please consider this serial driver for review for submission to staging. The firewire-serial driver implements TTY over IEEE 1394. In its default configuration, it creates 4 TTY devices and one loopback device per firewire card

Re: [PATCH v3 2/9] suppress Device nodeX does not have a release() function warning

2012-10-22 Thread Andrew Morton
On Fri, 19 Oct 2012 14:46:35 +0800 we...@cn.fujitsu.com wrote: From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com When calling unregister_node(), the function shows following message at device_release(). Device 'node2' does not have a release() function, it is broken and must be

Re: [PATCHv3 3/6] staging: rts_pstor: reuse kbasename()

2012-10-22 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2012 at 02:48:11PM +0300, Andy Shevchenko wrote: The custom filename function mostly repeats the kernel's kbasename. This patch simplifies it. The updated filename() will not check for the '\' in the filenames. It seems redundant in Linux. The __FILE__ macro always defined if

Re: [PATCH v3 2/9] suppress Device nodeX does not have a release() function warning

2012-10-22 Thread Greg KH
On Mon, Oct 22, 2012 at 03:52:24PM -0700, Andrew Morton wrote: On Fri, 19 Oct 2012 14:46:35 +0800 we...@cn.fujitsu.com wrote: From: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com When calling unregister_node(), the function shows following message at device_release(). Device

Re: [PATCH] ledtrig-cpu: use spin_lock to replace mutex lock

2012-10-22 Thread Bryan Wu
On Mon, Oct 22, 2012 at 3:28 PM, Nathan Lynch n...@pobox.com wrote: Hi Bryan, On Thu, 2012-10-18 at 11:18 -0700, Bryan Wu wrote: @@ -117,14 +117,14 @@ static int __init ledtrig_cpu_init(void) for_each_possible_cpu(cpu) { struct led_trigger_cpu *trig = per_cpu(cpu_trig,

Re: [PATCH] perf: Build install-man target when installing

2012-10-22 Thread Borislav Petkov
On Mon, Oct 22, 2012 at 07:03:39AM -0700, Arnaldo Carvalho de Melo wrote: Em Mon, Oct 22, 2012 at 12:07:19PM +0200, Borislav Petkov escreveu: On Mon, Oct 22, 2012 at 04:25:24PM +0900, Namhyung Kim wrote: It will add additional dependencies of asciidoc, docbook-xsl and/or something to

Re: [PATCH] ledtrig-cpu: use spin_lock to replace mutex lock

2012-10-22 Thread Bryan Wu
On Mon, Oct 22, 2012 at 3:38 PM, Rafael J. Wysocki r...@sisk.pl wrote: On Monday 22 of October 2012 11:59:19 Bryan Wu wrote: Hiya, Can I get some Acked or Tested-by from Rafael or Miles before I put it in my linux-leds tree? Well, I just explained why the current code didn't work. :-)

Re: [PATCH 1/2] brw_mutex: big read-write mutex

2012-10-22 Thread Mikulas Patocka
On Fri, 19 Oct 2012, Oleg Nesterov wrote: On 10/19, Mikulas Patocka wrote: synchronize_rcu() is way slower than msleep(1) - This depends, I guess. but this doesn't mmatter, so I don't see a reason why should it be complicated to avoid msleep(1). I don't think this really needs

Re: 3.7 RC1

2012-10-22 Thread Greg KH
On Mon, Oct 22, 2012 at 04:37:45PM -0700, K. Y. Srinivasan wrote: While testing 3.7 RC1 I discovered that invoking the function orderly_poweroff() from an interrupt context will trigger an ASSERT(). This was not the case till recently. The comment preceding the orderly_poweroff() function

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-22 Thread Yinghai Lu
On Mon, Oct 22, 2012 at 2:27 PM, H. Peter Anvin h...@zytor.com wrote: We never know that bios guys will not let bios produce crazy e820 map. Yeah, well, that just *will* happen... that's a given. We can trim those ranges, though. Who cares if we lose some RAM. please check attached two

[PATCH 0/2] fix and improvements for percpu-rw-semaphores (was: brw_mutex: big read-write mutex)

2012-10-22 Thread Mikulas Patocka
Ooooh. And I just noticed include/linux/percpu-rwsem.h which does something similar. Certainly it was not in my tree when I started this patch... percpu_down_write() doesn't allow multiple writers, but the main problem it uses msleep(1). It should not, I think. But. It seems that

Re: [PATCH 09/12] tty/console: fix warnings in drivers/tty/serial/kgdboc.c

2012-10-22 Thread Greg Kroah-Hartman
On Fri, Sep 28, 2012 at 04:45:37PM -0500, Jason Wessel wrote: On 09/28/2012 04:36 PM, Arnd Bergmann wrote: The con_debug_leave/con_debug_enter functions are stubbed out by defining them to (0), which causes harmless build warnings. Using proper inline functions is the normal way to deal

[PATCH 2/2] percpu-rw-semaphores: use rcu_read_lock_sched

2012-10-22 Thread Mikulas Patocka
Use rcu_read_lock_sched / rcu_read_unlock_sched / synchronize_sched instead of rcu_read_lock / rcu_read_unlock / synchronize_rcu. This is an optimization. The RCU-protected region is very small, so there will be no latency problems if we disable preempt in this region. So we use

[PATCH 1/2] percpu-rw-semaphores: use light/heavy barriers

2012-10-22 Thread Mikulas Patocka
This patch introduces new barrier pair light_mb() and heavy_mb() for percpu rw semaphores. This patch fixes a bug in percpu-rw-semaphores where a barrier was missing in percpu_up_write. This patch improves performance on the read path of percpu-rw-semaphores: on non-x86 cpus, there was a

Re: [PATCH 2/5] ACPI: Reorder IPMI driver before any other ACPI drivers

2012-10-22 Thread Andrew Morton
On Tue, 16 Oct 2012 15:53:37 -0500 miny...@acm.org wrote: From: Matthew Garrett m...@redhat.com Drivers may make calls that require the ACPI IPMI driver to have been initialised already, so make sure that it appears earlier in the build order. ... index 47199e2..82422fe 100644 ---

Re: [PATCH 4/5] IPMI: Fix some uninitialized warning

2012-10-22 Thread Andrew Morton
On Tue, 16 Oct 2012 15:53:39 -0500 miny...@acm.org wrote: From: Corey Minyard cminy...@mvista.com There was a spot where the compiler couldn't tell some variables would be set. So initialize them to make the warning go away. Signed-off-by: Corey Minyard cminy...@mvista.com ---

Re: [PATCH 3/3 v3] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-10-22 Thread Scott Wood
On 10/22/2012 04:18:07 PM, Tabi Timur-B04825 wrote: On Wed, Oct 17, 2012 at 12:32 PM, Varun Sethi varun.se...@freescale.com wrote: +} + +static unsigned long pamu_get_fspi_and_allocate(u32 subwin_cnt) +{ subwin_cnt should probably be an unsigned int. This function needs to be documented.

Re: [PATCH] remove untouched code in kfifo_in

2012-10-22 Thread Andrew Morton
On Fri, 19 Oct 2012 09:34:43 +0200 (CEST) Jiri Kosina jkos...@suse.cz wrote: On Fri, 19 Oct 2012, Stefani Seibold wrote: In kfifo_in marco, one piece of code is arounded by if(0). This code in introduced by Stefani Seibold stef...@seibold.net to suppress a compiler warning.

<    1   2   3   4   5   6   7   8   9   10   >