[PATCH 01/16] mm: sl[au]b: Add knowledge of PFMEMALLOC reserve pages

2012-07-11 Thread Mel Gorman
Allocations of pages below the min watermark run a risk of the machine hanging due to a lack of memory. To prevent this, only callers who have PF_MEMALLOC or TIF_MEMDIE set and are not processing an interrupt are allowed to allocate with ALLOC_NO_WATERMARKS. Once they are allocated to a slab though

[PATCH 02/16] mm: slub: Optimise the SLUB fast path to avoid pfmemalloc checks

2012-07-11 Thread Mel Gorman
From: Christoph Lameter This patch removes the check for pfmemalloc from the alloc hotpath and puts the logic after the election of a new per cpu slab. For a pfmemalloc page we do not use the fast path but force the use of the slow path which is also used for the debug case. This has the side-ef

[PATCH 04/16] mm: allow PF_MEMALLOC from softirq context

2012-07-11 Thread Mel Gorman
This is needed to allow network softirq packet processing to make use of PF_MEMALLOC. Currently softirq context cannot use PF_MEMALLOC due to it not being associated with a task, and therefore not having task flags to fiddle with - thus the gfp to alloc flag mapping ignores the task flags when in

[PATCH 07/16] net: Introduce sk_gfp_atomic() to allow addition of GFP flags depending on the individual socket

2012-07-11 Thread Mel Gorman
Introduce sk_gfp_atomic(), this function allows to inject sock specific flags to each sock related allocation. It is only used on allocation paths that may be required for writing pages back to network storage. [da...@davemloft.net: Use sk_gfp_atomic only when necessary] Signed-off-by: Peter Zijls

[PATCH 08/16] netvm: Allow the use of __GFP_MEMALLOC by specific sockets

2012-07-11 Thread Mel Gorman
Allow specific sockets to be tagged SOCK_MEMALLOC and use __GFP_MEMALLOC for their allocations. These sockets will be able to go below watermarks and allocate from the emergency reserve. Such sockets are to be used to service the VM (iow. to swap over). They must be handled kernel side, exposing su

[PATCH 09/16] netvm: Allow skb allocation to use PFMEMALLOC reserves

2012-07-11 Thread Mel Gorman
Change the skb allocation API to indicate RX usage and use this to fall back to the PFMEMALLOC reserve when needed. SKBs allocated from the reserve are tagged in skb->pfmemalloc. If an SKB is allocated from the reserve and the socket is later found to be unrelated to page reclaim, the packet is dro

[PATCH 10/16] netvm: Propagate page->pfmemalloc to skb

2012-07-11 Thread Mel Gorman
The skb->pfmemalloc flag gets set to true iff during the slab allocation of data in __alloc_skb that the the PFMEMALLOC reserves were used. If the packet is fragmented, it is possible that pages will be allocated from the PFMEMALLOC reserve without propagating this information to the skb. This patc

[PATCH 2/2] udf: avoid info leak on export

2012-07-11 Thread Mathias Krause
For type 0x51 the udf.parent_partref member in struct fid gets copied uninitialized to userland. Fix this by initializing it to 0. Signed-off-by: Mathias Krause --- fs/udf/namei.c |1 + 1 file changed, 1 insertion(+) diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 1802417..c31deb3 100644

[PATCH 0/2] Fix info leaks on export for udf and isofs

2012-07-11 Thread Mathias Krause
Al, Jan, this patch set fixes info leaks in isofs and udf. Both file systems fail to initialize all bytes of the f_handle byte array when creating a handle for a path pointing to a directory. This memory gets copied to userland and that for is a leak of uninitialized heap data to userland that sho

[PATCH 1/2] isofs: avoid info leak on export

2012-07-11 Thread Mathias Krause
For type 1 the parent_offset member in struct isofs_fid gets copied uninitialized to userland. Fix this by initializing it to 0. Signed-off-by: Mathias Krause --- fs/isofs/export.c |1 + 1 file changed, 1 insertion(+) diff --git a/fs/isofs/export.c b/fs/isofs/export.c index aa4356d..1d38044

[PATCH 13/16] mm: Micro-optimise slab to avoid a function call

2012-07-11 Thread Mel Gorman
Getting and putting objects in SLAB currently requires a function call but the bulk of the work is related to PFMEMALLOC reserves which are only consumed when network-backed storage is critical. Use an inline function to determine if the function call is required. Signed-off-by: Mel Gorman --- m

[PATCH 06/16] mm: Ignore mempolicies when using ALLOC_NO_WATERMARK

2012-07-11 Thread Mel Gorman
The reserve is proportionally distributed over all !highmem zones in the system. So we need to allow an emergency allocation access to all zones. In order to do that we need to break out of any mempolicy boundaries we might have. In my opinion that does not break mempolicies as those are user ori

[PATCH 14/16] nbd: Set SOCK_MEMALLOC for access to PFMEMALLOC reserves

2012-07-11 Thread Mel Gorman
Set SOCK_MEMALLOC on the NBD socket to allow access to PFMEMALLOC reserves so pages backed by NBD, particularly if swap related, can be cleaned to prevent the machine being deadlocked. It is still possible that the PFMEMALLOC reserves get depleted resulting in deadlock but this can be resolved by t

[PATCH 15/16] mm: Throttle direct reclaimers if PF_MEMALLOC reserves are low and swap is backed by network storage

2012-07-11 Thread Mel Gorman
If swap is backed by network storage such as NBD, there is a risk that a large number of reclaimers can hang the system by consuming all PF_MEMALLOC reserves. To avoid these hangs, the administrator must tune min_free_kbytes in advance which is a bit fragile. This patch throttles direct reclaimers

[PATCH 01/12] netvm: Prevent a stream-specific deadlock

2012-07-11 Thread Mel Gorman
It could happen that all !SOCK_MEMALLOC sockets have buffered so much data that we're over the global rmem limit. This will prevent SOCK_MEMALLOC buffers from receiving data, which will prevent userspace from running, which is needed to reduce the buffered data. Fix this by exempting the SOCK_MEMA

[PATCH 02/12] selinux: tag avc cache alloc as non-critical

2012-07-11 Thread Mel Gorman
Failing to allocate a cache entry will only harm performance not correctness. Do not consume valuable reserve pages for something like that. Signed-off-by: Peter Zijlstra Signed-off-by: Mel Gorman Acked-by: Eric Paris Acked-by: Rik van Riel --- security/selinux/avc.c |2 +- 1 file change

[PATCH 04/12] mm: Add support for a filesystem to activate swap files and use direct_IO for writing swap pages

2012-07-11 Thread Mel Gorman
Currently swapfiles are managed entirely by the core VM by using ->bmap to allocate space and write to the blocks directly. This effectively ensures that the underlying blocks are allocated and avoids the need for the swap subsystem to locate what physical blocks store offsets within a file. If th

[PATCH 05/12] mm: swap: Implement generic handler for swap_activate

2012-07-11 Thread Mel Gorman
The version of swap_activate introduced is sufficient for swap-over-NFS but would not provide enough information to implement a generic handler. This patch shuffles things slightly to ensure the same information is available for aops->swap_activate() as is available to the core. No functionality c

[PATCH 06/12] mm: Add get_kernel_page[s] for pinning of kernel addresses for I/O

2012-07-11 Thread Mel Gorman
This patch adds two new APIs get_kernel_pages() and get_kernel_page() that may be used to pin a vector of kernel addresses for IO. The initial user is expected to be NFS for allowing pages to be written to swap using aops->direct_IO(). Strictly speaking, swap-over-NFS only needs to pin one page for

[PATCH 07/12] mm: Add support for direct_IO to highmem pages

2012-07-11 Thread Mel Gorman
The patch "mm: Add support for a filesystem to activate swap files and use direct_IO for writing swap pages" added support for using direct_IO to write swap pages but it is insufficient for highmem pages. To support highmem pages, this patch kmaps() the page before calling the direct_IO() handler.

[PATCH 10/12] nfs: enable swap on NFS

2012-07-11 Thread Mel Gorman
Implement the new swapfile a_ops for NFS and hook up ->direct_IO. This will set the NFS socket to SOCK_MEMALLOC and run socket reconnect under PF_MEMALLOC as well as reset SOCK_MEMALLOC before engaging the protocol ->connect() method. PF_MEMALLOC should allow the allocation of struct socket and re

[PATCH 11/12] nfs: Prevent page allocator recursions with swap over NFS.

2012-07-11 Thread Mel Gorman
GFP_NOFS is _more_ permissive than GFP_NOIO in that it will initiate IO, just not of any filesystem data. The problem is that previously NOFS was correct because that avoids recursion into the NFS code. With swap-over-NFS, it is no longer correct as swap IO can lead to this recursion. Signed-off-

[PATCH 03/12] mm: Methods for teaching filesystems about PG_swapcache pages

2012-07-11 Thread Mel Gorman
In order to teach filesystems to handle swap cache pages, three new page functions are introduced: pgoff_t page_file_index(struct page *); loff_t page_file_offset(struct page *); struct address_space *page_file_mapping(struct page *); page_file_index() - gives the offset of this page in the

[PATCH 00/12] Swap-over-NFS without deadlocking V9

2012-07-11 Thread Mel Gorman
Changelog since V8 o Rebase to linux-next 20120710 Changelog since V7 o Rebase to linux-next 20120629 o bi->page_dma instead of bi->page in intel driver o Build fix for !CONFIG_NET (sebastian) o Restore PF_MEMALLOC flags correctly in all cases

[PATCH 12/16] netvm: Set PF_MEMALLOC as appropriate during SKB processing

2012-07-11 Thread Mel Gorman
In order to make sure pfmemalloc packets receive all memory needed to proceed, ensure processing of pfmemalloc SKBs happens under PF_MEMALLOC. This is limited to a subset of protocols that are expected to be used for writing to swap. Taps are not allowed to use PF_MEMALLOC as these are expected to

[PATCH 11/16] netvm: Propagate page->pfmemalloc from skb_alloc_page to skb

2012-07-11 Thread Mel Gorman
The skb->pfmemalloc flag gets set to true iff during the slab allocation of data in __alloc_skb that the the PFMEMALLOC reserves were used. If page splitting is used, it is possible that pages will be allocated from the PFMEMALLOC reserve without propagating this information to the skb. This patch

[PATCH 12/12] Avoid dereferencing bd_disk during swap_entry_free for network storage

2012-07-11 Thread Mel Gorman
Commit [b3a27d: swap: Add swap slot free callback to block_device_operations] dereferences p->bdev->bd_disk but this is a NULL dereference if using swap-over-NFS. This patch checks SWP_BLKDEV on the swap_info_struct before dereferencing. With reference to this callback, Christoph Hellwig stated "P

[PATCH 09/12] nfs: disable data cache revalidation for swapfiles

2012-07-11 Thread Mel Gorman
The VM does not like PG_private set on PG_swapcache pages. As suggested by Trond in http://lkml.org/lkml/2006/8/25/348, this patch disables NFS data cache revalidation on swap files. as it does not make sense to have other clients change the file while it is being used as swap. This avoids setting

RE: 82571EB: Detected Hardware Unit Hang

2012-07-11 Thread Dave, Tushar N
>On 07/12/12 13:57, Dave, Tushar N wrote: >>> -Original Message- >>> From: Joe Jin [mailto:joe@oracle.com] >>> Sent: Wednesday, July 11, 2012 8:13 PM >>> To: Dave, Tushar N >>> Cc: e1000-de...@lists.sf.net; net...@vger.kernel.org; linux- >>> ker...@vger.kernel.org >>> Subject: Re: 82571

[PATCH 08/12] nfs: teach the NFS client how to treat PG_swapcache pages

2012-07-11 Thread Mel Gorman
Replace all relevant occurences of page->index and page->mapping in the NFS client with the new page_file_index() and page_file_mapping() functions. Signed-off-by: Peter Zijlstra Signed-off-by: Mel Gorman Acked-by: Rik van Riel --- fs/nfs/file.c |6 +++--- fs/nfs/internal.h |7

[PATCH 16/16] mm: Account for the number of times direct reclaimers get throttled

2012-07-11 Thread Mel Gorman
Under significant pressure when writing back to network-backed storage, direct reclaimers may get throttled. This is expected to be a short-lived event and the processes get woken up again but processes do get stalled. This patch counts how many times such stalling occurs. It's up to the administra

[PATCH 05/16] mm: Only set page->pfmemalloc when ALLOC_NO_WATERMARKS was used

2012-07-11 Thread Mel Gorman
__alloc_pages_slowpath() is called when the number of free pages is below the low watermark. If the caller is entitled to use ALLOC_NO_WATERMARKS then the page will be marked page->pfmemalloc. This protects more pages than are strictly necessary as we only need to protect pages allocated below the

[PATCH 03/16] mm: Introduce __GFP_MEMALLOC to allow access to emergency reserves

2012-07-11 Thread Mel Gorman
__GFP_MEMALLOC will allow the allocation to disregard the watermarks, much like PF_MEMALLOC. It allows one to pass along the memalloc state in object related allocation flags as opposed to task related flags, such as sk->sk_allocation. This removes the need for ALLOC_PFMEMALLOC as callers using __G

[PATCH 00/16] Swap-over-NBD without deadlocking V15

2012-07-11 Thread Mel Gorman
This is a rebase onto current linux-next due to a minor collision with some NFS changes. Changelog since V14 o Rebase to linux-next 20120710 Changelog since V13 o Rebase to linux-next 20120629 Changelog since V12 o Rebase to linux-next-20120622 o Do not alter coalesce handling in the inp

Re: [PATCH v3] panel: Use pr_err(...) rather than printk(KERN_ERR ...)

2012-07-11 Thread Toshiaki Yamane
Ryan-san, Joe-san, Thanks for your advice. I will try re-create the patch again. On Thu, Jul 12, 2012 at 2:43 PM, Joe Perches wrote: > On Thu, 2012-07-12 at 15:22 +1000, Ryan Mallon wrote: >> On 12/07/12 12:35, Toshiaki Yamane wrote: >> > This change is inspired by checkpatch. >> >> Your changel

Re: linux-next: manual merge of the kvm-ppc tree with the powerpc tree

2012-07-11 Thread Stephen Rothwell
Hi Alex, On Thu, 12 Jul 2012 07:56:46 +0200 Alexander Graf wrote: > > On 12.07.2012, at 05:57, Stephen Rothwell wrote: > > > Today's linux-next merge of the kvm-ppc tree got a conflict in > > arch/powerpc/kvm/booke_interrupts.S between commit c75df6f96c59 > > ("powerpc: Fix usage of register mac

Re: [PATCH] mmc: omap_hsmmc: ensure probe returns error upon resource failure

2012-07-11 Thread S, Venkatraman
On Wed, Jul 11, 2012 at 5:10 AM, Kevin Hilman wrote: > If platform_get_resource_by_name() fails, driver probe is aborted an > should return an error so the driver is not bound to the device. > > However, in the current error path of platform_get_resource_by_name(), > probe returns zero since the r

Re: 82571EB: Detected Hardware Unit Hang

2012-07-11 Thread Joe Jin
On 07/12/12 13:57, Dave, Tushar N wrote: >> -Original Message- >> From: Joe Jin [mailto:joe@oracle.com] >> Sent: Wednesday, July 11, 2012 8:13 PM >> To: Dave, Tushar N >> Cc: e1000-de...@lists.sf.net; net...@vger.kernel.org; linux- >> ker...@vger.kernel.org >> Subject: Re: 82571EB: Dete

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-11 Thread Rusty Russell
On Wed, 11 Jul 2012 11:53:35 +0100, Catalin Marinas wrote: > Hi Rusty, Hi Catalin, This is fun! > On Wed, Jul 11, 2012 at 06:26:49AM +0100, Rusty Russell wrote: > > I know it's a crazy idea, but why don't we try some actual analysis? > > This kind of analysis is not relevant. It's not

[PATCH 5/5] staging/gdm72xx: coding style fixes gdm_qos.c

2012-07-11 Thread Devendra Naga
following warnings were fixed drivers/staging/gdm72xx/gdm_qos.c:198: ERROR: "foo* bar" should be "foo *bar" drivers/staging/gdm72xx/gdm_qos.c:198: ERROR: "foo* bar" should be "foo *bar" drivers/staging/gdm72xx/gdm_qos.c:244: WARNING: quoted string split across lines Signed-off-by: Devendra Naga

[PATCH 4/5] staging/gdm72xx: use kzalloc for phydev and sdev

2012-07-11 Thread Devendra Naga
in sdio probe function we are doing kmalloc which can be done using kzalloc. Signed-off-by: Devendra Naga --- drivers/staging/gdm72xx/gdm_sdio.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/gdm72xx/gdm_sdio.c b/drivers/staging/gdm72xx/gdm_sdio.c

Re: [fuse-devel] [RFC PATCH 0/5] fuse: make maximum read/write request size tunable

2012-07-11 Thread Liu Yuan
On 07/12/2012 01:58 PM, HAYASAKA Mitsuo wrote: > Hi Yuan and Han-Wen, > > Thank you for your comments. > > (2012/07/06 22:58), Han-Wen Nienhuys wrote: >> On Fri, Jul 6, 2012 at 2:53 AM, Liu Yuan wrote: >>> On 07/05/2012 06:50 PM, Mitsuo Hayasaka wrote: One of the ways to solve this is to ma

[PATCH 3/5] staging/gdm72xx: cleanup little at gdm_wimax_event_rcv

2012-07-11 Thread Devendra Naga
the event sock check is done at the netlink_init itself. Signed-off-by: Devendra Naga --- drivers/staging/gdm72xx/gdm_wimax.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c index e616de1..0

[PATCH v2] thermal: add Renesas R-Car thermal sensor support

2012-07-11 Thread Kuninori Morimoto
This patch add basic Renesas R-Car thermal sensor support. It was tested on R-Car H1 Marzen board. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - used spin_lock - added explain of udelay(300) - used a single space before "=" drivers/thermal/Kconfig|8 ++ drivers/thermal/Makefil

[PATCH 2/5] staging/gdm72xx: use kzalloc for phydev and udev

2012-07-11 Thread Devendra Naga
we are doing kmalloc and memset, can be done using kzalloc itself. Signed-off-by: Devendra Naga --- drivers/staging/gdm72xx/gdm_usb.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/gdm72xx/gdm_usb.c b/drivers/staging/gdm72xx/gdm_usb.c index 126150d

[PATCH 1/5] staging/gdm72xx: return PTR_ERR rather -ENOENT

2012-07-11 Thread Devendra Naga
return the error of filp_open rather returning -ENOENT. Signed-off-by: Devendra Naga --- drivers/staging/gdm72xx/usb_boot.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm72xx/usb_boot.c b/drivers/staging/gdm72xx/usb_boot.c index c163bcc..fef290c 10064

[PATCH 2/2] staging/et131x: remove memset for the TCB

2012-07-11 Thread Devendra Naga
TCB has kcalloc' ed so no need to call memset again on it. Signed-off-by: Devendra Naga --- drivers/staging/et131x/et131x.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 227fca9..5010894 100644 --- a/drivers/stagin

[PATCH 1/2] staging/et131x: use SET_ETHTOOL_OPS directly

2012-07-11 Thread Devendra Naga
using a wrapper around SET_ETHTOOL_OPS macro is not actually required, remove and use SET_ETHTOOL_OPS directly. Signed-off-by: Devendra Naga --- drivers/staging/et131x/et131x.c |8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/driver

Re: [PATCH 0/7] PM / I2C: Convert platform I2C drivers to PM handling based on struct dev_pm_ops

2012-07-11 Thread Laxman Dewangan
On Thursday 12 July 2012 12:51 AM, Rafael J. Wysocki wrote: [7/7] i2c-tegra: Use struct dev_pm_ops for power management I did not get the 7/7 on my inbox and hence responding here. Looked change from link https://lkml.org/lkml/2012/7/11/467 This is same as which I sent some days ago: https:/

[PATCH 2/2] charger-manager: Set current limit of regulator for over current protection

2012-07-11 Thread Chanwoo Choi
This patch support the protection of host device from over current. The Charger-manager set proper current limit of charger(regulator) for charging according to type of charger cable when external connector is attached. Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham Signed-off-by: Kyung

[PATCH 1/2] charger-manager: Use EXTCON Subsystem to detect charger cables for charging

2012-07-11 Thread Chanwoo Choi
This patch support that charger-manager use EXTCON(External Connector) Subsystem to detect the state of charger cables for enabling or disabling charger(regulator) and select the charger cable for charging among a number of external cable according to policy of H/W board. Signed-off-by: Chanwoo Ch

linux-next: Tree for July 12

2012-07-11 Thread Stephen Rothwell
Hi all, Changes since 20120710: New tree: spi-mb The ext4 tree still has its build failure so I used the version from next-20120709. The pci tree lost its conflicts. The v4l-dvb tree lost its build failure after I applied a supplied merge fix patch. The scsi tree gained a conflict against the

[PATCH 0/2] charger-manager: Use EXTCON Subsystem to control charger cable

2012-07-11 Thread Chanwoo Choi
This patchset add support EXTCON Subsystem in which charger-manager identify the type of external connector and enable/disable charger(regulator) according to the state of charger cable(external connector). First patch control charger(regulator) of charger-manager when external connector is attach

Re: [PATCH 1/5] uprobes: uprobe_mmap/munmap needs list_for_each_entry_safe()

2012-07-11 Thread Srikar Dronamraju
* Oleg Nesterov [2012-07-08 22:30:01]: > The bug was introduced by me in 449d0d7c "uprobes: Simplify the > usage of uprobe->pending_list". > > Yes, we do not care about uprobe->pending_list after return and > nobody can remove the current list entry, but put_uprobe(uprobe) > can actually free it

Re: [fuse-devel] [RFC PATCH 0/5] fuse: make maximum read/write request size tunable

2012-07-11 Thread HAYASAKA Mitsuo
Hi Yuan and Han-Wen, Thank you for your comments. (2012/07/06 22:58), Han-Wen Nienhuys wrote: On Fri, Jul 6, 2012 at 2:53 AM, Liu Yuan wrote: On 07/05/2012 06:50 PM, Mitsuo Hayasaka wrote: One of the ways to solve this is to make them tunable. In this series, the new sysfs parameter max_page

Re: [PATCH 2/5] uprobes: suppress uprobe_munmap() from mmput()

2012-07-11 Thread Srikar Dronamraju
* Oleg Nesterov [2012-07-08 22:30:03]: > uprobe_munmap() does get_user_pages() and it is also called from > the final mmput()->exit_mmap() path. This slows down exit/mmput() > for no reason, and I think it is simply dangerous/wrong to try to > fault-in a page into the dying mm. If nothing else,

Re: linux-next: manual merge of the kvm-ppc tree with the powerpc tree

2012-07-11 Thread Alexander Graf
On 12.07.2012, at 05:57, Stephen Rothwell wrote: > Hi Alexander, > > Today's linux-next merge of the kvm-ppc tree got a conflict in > arch/powerpc/kvm/booke_interrupts.S between commit c75df6f96c59 > ("powerpc: Fix usage of register macros getting ready for %r0 change") > from the powerpc tree a

RE: 82571EB: Detected Hardware Unit Hang

2012-07-11 Thread Dave, Tushar N
>-Original Message- >From: Joe Jin [mailto:joe@oracle.com] >Sent: Wednesday, July 11, 2012 8:13 PM >To: Dave, Tushar N >Cc: e1000-de...@lists.sf.net; net...@vger.kernel.org; linux- >ker...@vger.kernel.org >Subject: Re: 82571EB: Detected Hardware Unit Hang > >On 07/12/12 11:07, Dave, Tus

[PATCH] bootmem: Make ___alloc_bootmem_node_nopanic() to be real nopanic

2012-07-11 Thread Yinghai Lu
after | From 99ab7b19440a72ebdf225f99b20f8ef40decee86 Mon Sep 17 00:00:00 2001 | Date: Wed, 11 Jul 2012 14:02:53 -0700 | Subject: [PATCH] mm: sparse: fix usemap allocation above node descriptor section Johannes said: | while backporting the below patch, I realised that your fix busted | f5bf18fa2

Re: [PATCH 3/5] uprobes: fix overflow in vma_address/find_active_uprobe

2012-07-11 Thread Srikar Dronamraju
* Oleg Nesterov [2012-07-09 12:54:45]: > On 07/08, Joe Perches wrote: > > > > On Sun, 2012-07-08 at 22:30 +0200, Oleg Nesterov wrote: > > > @@ -1450,7 +1450,7 @@ static struct uprobe *find_active_uprobe(unsigned > > > long bp_vaddr, int *is_swbp) > > > > > > inode = vma->vm_fil

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

2012-07-11 Thread Stephen Rothwell
Hi all, After merging the slab tree, today's linux-next build (i386_defconfig) produced this warning: mm/slab_common.c: In function 'kmem_cache_create': mm/slab_common.c:101:1: warning: label 'oops' defined but not used [-Wunused-label] Introduced by commit 20cea9683ecc ("mm, sl[aou]b: Move kme

3.4.4-rt13: btrfs + xfstests 006 = BOOM.. and a bonus rt_mutex deadlock report for absolutely free!

2012-07-11 Thread Mike Galbraith
Greetings, I'm chasing btrfs critters in an enterprise 3.0-rt kernel, and just checked to see if they're alive in virgin latest/greatest rt kernel. Both are indeed alive and well, ie I didn't break it, nor did the zillion patches in enterprise base kernel, so others may have an opportunity to m

[PATCH 1/2 v2] USB: dwc3-exynos: Add support for device tree

2012-07-11 Thread Vivek Gautam
This patch adds support to parse probe data for dwc3 driver for exynos using device tree Signed-off-by: Praveen Paneri Signed-off-by: Vivek Gautam diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index d190301..9ae91b7 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++

[PATCH 2/2 v2] USB: dwc3-exynos: Add vbus setup function to the exynos dwc3 glue layer

2012-07-11 Thread Vivek Gautam
From: Abhilash Kesavan This patch retrieves and configures the vbus control gpio via the device tree. The suspend/resume callbacks will be later modified for vbus control. Signed-off-by: Abhilash Kesavan Signed-off-by: Vivek Gautam diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc

[PATCH 0/2 v2] USB: host: Add Device tree support for dwc3-exynos

2012-07-11 Thread Vivek Gautam
Changes from v1: 1) Added comment to explain inclusion of dma_mask through pdata. 2) Replaced gpio_request() with gpio_request_one() 3) Removed gpio_set_value() This patchset is based and tested on 3.5 rc5. Abhilash Kesavan (1): USB: dwc3-exynos: Add vbus setup function to the exynos dwc3 glue

Re: [PATCH] sched: remove useless code in yield_to

2012-07-11 Thread Michael Wang
On 07/03/2012 02:34 PM, Michael Wang wrote: > From: Michael Wang > > it's impossible to enter else branch if we have set skip_clock_update > in task_yield_fair(), as yield_to_task_fair() will directly return > true after invoke task_yield_fair(). > > Signed-off-by: Michael Wang > --- > kernel/

Re: [PATCH v3] panel: Use pr_err(...) rather than printk(KERN_ERR ...)

2012-07-11 Thread Joe Perches
On Thu, 2012-07-12 at 15:22 +1000, Ryan Mallon wrote: > On 12/07/12 12:35, Toshiaki Yamane wrote: > > This change is inspired by checkpatch. > > Your changelog needs to describe all of the changes you are making. The > subject line only describes one. This patch is doing the following: > > - Con

[PATCH 3/3 v2] USB: ehci-s5p: Add vbus setup function to the s5p ehci glue layer

2012-07-11 Thread Vivek Gautam
From: Abhilash Kesavan This patch retrieves and configures the vbus control gpio via the device tree. The suspend/resume callbacks will be later modified for vbus control. Signed-off-by: Abhilash Kesavan Signed-off-by: Vivek Gautam diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/e

[PATCH 1/3 v2] USB: ohci-exynos: Add support for device tree

2012-07-11 Thread Vivek Gautam
This patch adds support to parse probe data for ohci driver for exynos using device tree. Signed-off-by: Thomas Abraham Signed-off-by: Abhilash Kesavan Signed-off-by: Vivek Gautam diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c index 2909621..c4ad60f 100644 --- a/d

[PATCH 2/3 v2] USB: ehci-s5p: Add support for device tree

2012-07-11 Thread Vivek Gautam
This patch adds support to parse probe data for ehci driver for exynos using device tree Signed-off-by: Thomas Abraham Signed-off-by: Abhilash Kesavan Signed-off-by: Vivek Gautam diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/ehci-s5p.c index c474cec..52d0049 100644 --- a/drivers/

[PATCH 0/3 v2] USB: host: Add Device tree support for ohci-exynos & ehci-s5p

2012-07-11 Thread Vivek Gautam
From: Ajay Kumar Changes from v1: 1) Added comment to explain inclusion of dma_mask through pdata. 2) Replaced gpio_request() with gpio_request_one() 3) Removed gpio_set_value() This patchset is based and tested on 3.5 rc5. Abhilash Kesavan (1): USB: ehci-s5p: Add vbus setup function to the s5

[PATCH V2] checkpatch: Add check for use of sizeof without parenthesis

2012-07-11 Thread Joe Perches
Kernel style uses parenthesis around sizeof. Signed-off-by: Joe Perches --- Add check that works for sizeof *foo as well as sizeof foo scripts/checkpatch.pl |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7190f95.

Re: [PATCH v3] panel: Use pr_err(...) rather than printk(KERN_ERR ...)

2012-07-11 Thread Ryan Mallon
On 12/07/12 12:35, Toshiaki Yamane wrote: > This change is inspired by checkpatch. Your changelog needs to describe all of the changes you are making. The subject line only describes one. This patch is doing the following: - Converting printk(KERN_ERR to pr_err - Adding __func__ prefixes to pri

[PATCH RFC] pci: ACS quirk for AMD southbridge

2012-07-11 Thread Alex Williamson
We've confirmed that peer-to-peer between these devices is not possible. We can therefore claim that they support a subset of ACS. Signed-off-by: Alex Williamson Cc: Joerg Roedel --- Two things about this patch make me a little nervous. The first is that I'd really like to have a pci_is_pcie(

Re: [PATCH RFC 0/2] kvm: Improving directed yield in PLE handler

2012-07-11 Thread Raghavendra K T
On 07/11/2012 05:09 PM, Avi Kivity wrote: On 07/11/2012 02:18 PM, Christian Borntraeger wrote: On 11/07/12 13:04, Avi Kivity wrote: On 07/11/2012 01:17 PM, Christian Borntraeger wrote: On 11/07/12 11:06, Avi Kivity wrote: [...] Almost all s390 kernels use diag9c (directed yield to a given gue

Re: [RFC PATCH v3 3/13] memory-hotplug : unify argument of firmware_map_add_early/hotplug

2012-07-11 Thread Yasuaki Ishimatsu
Hi Dave, 2012/07/12 0:30, Dave Hansen wrote: > On 07/09/2012 03:25 AM, Yasuaki Ishimatsu wrote: >> @@ -642,7 +642,7 @@ int __ref add_memory(int nid, u64 start, >> } >> >> /* create new memmap entry */ >> -firmware_map_add_hotplug(start, start + size, "System RAM"); >> +firmware_m

[RESEND PATCH] extcon: spelling of detach in function doc

2012-07-11 Thread Chanwoo Choi
From: Peter Meerwald Signed-off-by: Peter Meerwald Signed-off-by: MyungJoo Ham --- include/linux/extcon/extcon_gpio.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/extcon/extcon_gpio.h b/include/linux/extcon/extcon_gpio.h index a2129b7..2d8307f 100644

[PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break

2012-07-11 Thread Chanwoo Choi
This patch modify 'Kconfig' of EXTCON Subsystem to support either active or inactive of EXTCON Subsystem. The various subsystem refer to EXTCON subsystem for controlling external connector, so core class of EXTCON should be included in kernel image. If EXTCON subsystem is builded with MODULE, other

Re: [PATCH] ACPI / PCI: Make _SxD/_SxW check follow ACPI 4.0a spec

2012-07-11 Thread Ben Hutchings
On Wed, 2012-07-11 at 21:04 +0200, Rafael J. Wysocki wrote: > On Wednesday, July 11, 2012, Greg KH wrote: > > On Wed, Jul 11, 2012 at 11:07:56AM +0200, Rafael J. Wysocki wrote: > > > On Wednesday, July 11, 2012, Greg KH wrote: > > > > On Sun, Apr 29, 2012 at 10:44:16PM +0200, Rafael J. Wysocki wrot

Re: perf with precise attribute kills all KVM based VMs

2012-07-11 Thread Gleb Natapov
On Wed, Jul 11, 2012 at 10:11:57PM -0600, David Ahern wrote: > On 7/11/12 3:53 AM, Gleb Natapov wrote: > >On Wed, Jul 11, 2012 at 11:49:47AM +0200, Peter Zijlstra wrote: > >>On Wed, 2012-07-11 at 10:10 +0300, Gleb Natapov wrote: > >> > >>>Looks like Avi is right about the overshoot. Can you test so

[GIT PULL] sh fixes for 3.5-rc7

2012-07-11 Thread Paul Mundt
The following changes since commit ca24a145573124732152daff105ba68cc9a2b545: Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm (2012-07-01 11:02:25 -0700) are available in the git repository at: git://github.com/pmundt/linux-sh.git tags/sh-for-linus for you to fetch change

Re: [PATCH] SH: Convert out[bwl] macros to inline functions

2012-07-11 Thread Paul Mundt
On Mon, Jul 09, 2012 at 03:35:20PM -0500, miny...@acm.org wrote: > From: Corey Minyard > > The macros just called BUG(), but that results in unused variable > warnings all over the place, like in the IPMI driver. The build > regression emails were annoying me, so here's the fix. I have > not ev

Re: Deadlocks due to per-process plugging

2012-07-11 Thread Mike Galbraith
On Thu, 2012-07-12 at 00:12 +0200, Thomas Gleixner wrote: > On Wed, 11 Jul 2012, Jan Kara wrote: > > On Wed 11-07-12 12:05:51, Jeff Moyer wrote: > > > This eventually ends in a call to blk_run_queue_async(q) after > > > submitting the I/O from the plug list. Right? So is the question > > > reall

Re: perf with precise attribute kills all KVM based VMs

2012-07-11 Thread David Ahern
On 7/11/12 3:53 AM, Gleb Natapov wrote: On Wed, Jul 11, 2012 at 11:49:47AM +0200, Peter Zijlstra wrote: On Wed, 2012-07-11 at 10:10 +0300, Gleb Natapov wrote: Looks like Avi is right about the overshoot. Can you test something like this? diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/

Re: [PATCH 3/4] dma: sh: provide a migration path for slave drivers to stop using .private

2012-07-11 Thread Paul Mundt
On Thu, Jul 12, 2012 at 06:55:32AM +0900, Magnus Damm wrote: > Hi Guennadi, > > [CC Paul] > > On Thu, Jul 5, 2012 at 1:17 AM, Guennadi Liakhovetski > wrote: > > This patch extends the sh dmaengine driver to support the preferred channel > > selection and configuration method, instead of using th

linux-next: manual merge of the kvm-ppc tree with the powerpc tree

2012-07-11 Thread Stephen Rothwell
Hi Alexander, Today's linux-next merge of the kvm-ppc tree got a conflict in arch/powerpc/kvm/booke_interrupts.S between commit c75df6f96c59 ("powerpc: Fix usage of register macros getting ready for %r0 change") from the powerpc tree and commit fc372c0843b8 ("booke: Added crit/mc exception handler

Re: [PATCH] perf: fix perf-lock report coredump

2012-07-11 Thread David Ahern
On 7/10/12 11:14 PM, Jovi Zhang wrote: Does this fix it for you: http://lkml.org/lkml/2012/7/6/405 Yeah, same problem. But the question is if there have some sample event with raw data in perf.data, are we still just exit(1)? or let perf-lock only report those sample events with raw data? per

Re: [PATCH] irq_domain: Standardise legacy/linear domain selection

2012-07-11 Thread Grant Likely
On Thu, 5 Jul 2012 12:19:19 +0100, Mark Brown wrote: > A large proportion of interrupt controllers that support legacy mappings > do so because non-DT systems need to use fixed IRQ numbers when registering > devices via buses but can otherwise use a linear mapping. The interrupt > controller its

Re: [PATCH] devicetree: add helper inline for retrieving a node's full name

2012-07-11 Thread Grant Likely
On Thu, 05 Jul 2012 11:07:31 -0500, Rob Herring wrote: > Grant, > > On 06/15/2012 12:50 PM, Grant Likely wrote: > > The pattern (np ? np->full_name : "") is rather common in the > > kernel, but can also make for quite long lines. This patch adds a new > > inline function, of_node_full_name() so

Re: [PATCH V3 5/6] Avoid duplicate probe for of platform devices

2012-07-11 Thread Grant Likely
On Mon, 9 Jul 2012 07:58:31 -0700, Greg KH wrote: > On Mon, Jul 09, 2012 at 03:46:59AM +, Li Yang-R58472 wrote: > > > > I don't understand, why is this just showing up now? What changed to > > > > cause this? Couldn't that be the real problem here? > > > > > > > > > > The issue is showing u

Re: [PATCH 1/2] irqdomain: Fix up linear revmap for non-zero hwirq displacement.

2012-07-11 Thread Grant Likely
On Thu, 21 Jun 2012 10:19:40 +0900, Paul Mundt wrote: > On Sat, Jun 16, 2012 at 08:14:19AM +0900, Paul Mundt wrote: > > On Fri, Jun 15, 2012 at 12:25:40PM -0600, Grant Likely wrote: > > > On Wed, 13 Jun 2012 16:34:00 +0900, Paul Mundt > > > wrote: > > > > Presently the linear revmap code assumes

Re: [RFC PATCH 2/2] irq: add irq_desc_initialize to remove some duplicated lines

2012-07-11 Thread Dong Aisheng
Hi Thomas, Thanks for the review firstly. On Thu, Jul 12, 2012 at 06:19:18AM +0800, Thomas Gleixner wrote: > On Wed, 20 Jun 2012, Dong Aisheng wrote: > > From: Dong Aisheng > > > > There're two copies of irq_desc initialization code, reform them into > > an irq_desc_initialize function to call.

Re: [RFC PATCH 1/2] irq_domain: correct a minor wrong comment for linear revmap

2012-07-11 Thread Grant Likely
On Wed, 20 Jun 2012 17:00:30 +0800, Dong Aisheng wrote: > From: Dong Aisheng > > The revmap type should be linear for irq_domain_add_linear function. > > Signed-off-by: Dong Aisheng Applied, thanks. g. > --- > kernel/irq/irqdomain.c |2 +- > 1 files changed, 1 insertions(+), 1 deletion

Re: [PATCH 1/3] tmpfs: revert SEEK_DATA and SEEK_HOLE

2012-07-11 Thread Jeff Liu
On 07/12/2012 07:01 AM, Dave Chinner wrote: > On Wed, Jul 11, 2012 at 11:55:34AM -0700, Hugh Dickins wrote: >> On Wed, 11 Jul 2012, Cong Wang wrote: >>> On Mon, 09 Jul 2012 at 22:41 GMT, Hugh Dickins wrote: Revert 4fb5ef089b28 ("tmpfs: support SEEK_DATA and SEEK_HOLE"). I believe it's c

Re: [PATCH v4 1/5] thermal: Add generic cpufreq cooling implementation

2012-07-11 Thread amit kachhap
On Tue, Jul 10, 2012 at 12:31 PM, Hongbo Zhang wrote: > > > On 12 May 2012 17:40, Amit Daniel Kachhap wrote: >> >> This patch adds support for generic cpu thermal cooling low level >> implementations using frequency scaling up/down based on the registration >> parameters. Different cpu related co

Re: [PATCH v2 -mm] memcg: prevent from OOM with too many dirty pages

2012-07-11 Thread Hugh Dickins
On Wed, 11 Jul 2012, Andrew Morton wrote: > On Wed, 11 Jul 2012 18:57:43 -0700 (PDT) Hugh Dickins > wrote: > > > --- 3.5-rc6-mm1/mm/vmscan.c 2012-07-11 14:42:13.668335884 -0700 > > +++ linux/mm/vmscan.c 2012-07-11 16:01:20.712814127 -0700 > > @@ -726,7 +726,8 @@ static unsigned long shrink

Re: 82571EB: Detected Hardware Unit Hang

2012-07-11 Thread Joe Jin
On 07/12/12 11:07, Dave, Tushar N wrote: >> -Original Message- >> From: Joe Jin [mailto:joe@oracle.com] >> Sent: Wednesday, July 11, 2012 7:58 PM >> To: Dave, Tushar N >> Cc: e1000-de...@lists.sf.net; net...@vger.kernel.org; linux- >> ker...@vger.kernel.org >> Subject: Re: 82571EB: Dete

RE: 82571EB: Detected Hardware Unit Hang

2012-07-11 Thread Dave, Tushar N
>-Original Message- >From: Joe Jin [mailto:joe@oracle.com] >Sent: Wednesday, July 11, 2012 7:58 PM >To: Dave, Tushar N >Cc: e1000-de...@lists.sf.net; net...@vger.kernel.org; linux- >ker...@vger.kernel.org >Subject: Re: 82571EB: Detected Hardware Unit Hang > >On 07/12/12 10:52, Dave, Tus

Re: [PATCH v2] mm: Warn about costly page allocation

2012-07-11 Thread Minchan Kim
On Wed, Jul 11, 2012 at 07:33:41PM -0700, David Rientjes wrote: > On Thu, 12 Jul 2012, Minchan Kim wrote: > > > Agreed and that's why I suggested following patch. > > It's not elegant but at least, it could attract interest of configuration > > people and they could find a regression during test p

Re: [RFC PATCH 05/14] PCI: add access functions for PCIe capabilities to hide PCIe spec differences

2012-07-11 Thread Jiang Liu
On 2012-7-12 1:52, Bjorn Helgaas wrote: >> Hi Bjorn, >> Seems it would be better to return error code for unimplemented >> registers, otherwise following code will becomes more complex. A special >> error code for unimplemented registers, such as -EIO? > > I think you're asking about retur

  1   2   3   4   5   6   7   8   >