[PATCH] x86/vsyscall: allow seccomp filter in vsyscall=emulate

2012-07-12 Thread Will Drewry
If a seccomp filter program is installed, older static binaries and distributions with older libc implementations (glibc 2.13 and earlier) that rely on vsyscall use will be terminated regardless of the filter program policy when executing time, gettimeofday, or getcpu. This is only the case when

[PATCH 0/8] Time fixes and cleanups for 3.6

2012-07-12 Thread John Stultz
Hey Thomas, Since you're offline next week, I wanted to send you my updated queue for the 3.6 merge window. These are mostly the same changes I sent you with my earlier 3.6 pull request mid-last month, but reordered and trimmed down to focus on cleanups (no new features). There is one

[PATCH 3/8] time: Explicitly use u32 instead of int for shift values

2012-07-12 Thread John Stultz
Ingo noted that using a u32 instead of int for shift values would be better to make sure the compiler doesn't unnecessarily use complex signed arithmetic. CC: Ingo Molnar mi...@kernel.org CC: Peter Zijlstra a.p.zijls...@chello.nl CC: Richard Cochran richardcoch...@gmail.com CC: Prarit Bhargava

[PATCH 1/8] ntp: Fix STA_INS/DEL clearing bug

2012-07-12 Thread John Stultz
From: John Stultz johns...@us.ibm.com In commit 6b43ae8a619d17c4935c3320d2ef9e92bdeed05d, I introduced a bug that kept the STA_INS or STA_DEL bit from being cleared from time_status via adjtimex() without forcing STA_PLL first. Usually once the STA_INS is set, it isn't cleared until the leap

[PATCH 2/8] time: Whitespace cleanups per Ingo's requests

2012-07-12 Thread John Stultz
Ingo noted a number of places where there is inconsistent use of whitespace. This patch tries to address the main culprits. CC: Ingo Molnar mi...@kernel.org CC: Peter Zijlstra a.p.zijls...@chello.nl CC: Richard Cochran richardcoch...@gmail.com CC: Prarit Bhargava pra...@redhat.com CC: Thomas

[PATCH 8/8] time: Rework timekeeping functions to take timekeeper ptr as argument

2012-07-12 Thread John Stultz
As part of cleaning up the timekeeping code, this patch converts a number of internal functions to takei a timekeeper ptr as an argument, so that the internal functions don't access the global timekeeper structure directly. This allows for further optimizations to reduce lock hold time later.

[PATCH 6/8] time: Move arch_gettimeoffset() usage into timekeeping_get_ns()

2012-07-12 Thread John Stultz
Since we call arch_gettimeoffset() in all the accessor functions, move arch_gettimeoffset() calls into timekeeping_get_ns() and timekeeping_get_ns_raw() to simplify the code. This also makes the code easier to maintain as we don't have to worry about forgetting the arch_gettimeoffset() as has

[PATCH 5/8] time: Refactor accumulation of nsecs to secs

2012-07-12 Thread John Stultz
We do the exact same logic moving nsecs to secs in the timekeeper in multiple places, so condense this into a single function. CC: Ingo Molnar mi...@kernel.org CC: Peter Zijlstra a.p.zijls...@chello.nl CC: Richard Cochran richardcoch...@gmail.com CC: Prarit Bhargava pra...@redhat.com CC: Thomas

[PATCH 4/8] time: Condense timekeeper.xtime into xtime_sec

2012-07-12 Thread John Stultz
The timekeeper struct has a xtime_nsec, which keeps the sub-nanosecond remainder. This ends up being somewhat duplicative of the timekeeper.xtime.tv_nsec value, and we have to do extra work to keep them apart, copying the full nsec portion out and back in over and over. This patch simplifies

[PATCH 7/8] time: Move xtime_nsec adjustment underflow handling timekeeping_adjust

2012-07-12 Thread John Stultz
When we make adjustments speeding up the clock, its possible for xtime_nsec to underflow. We already handle this properly, but we do so from update_wall_time() instead of the more logical timekeeping_adjust(), where the possible underflow actually occurs. Thus, move the correction logic to the

Re: [RFC][PATCH V2 3/3] tegra: add pwm backlight device tree nodes

2012-07-12 Thread Alex Courbot
On 07/12/2012 11:27 PM, Simon Glass wrote I agree the type strings are a problem in the current form - if we could get constants in the device tree, that would be much better. Your way of representing the sequences is interesting though, if we can solve the type issue (and also evaluate its cost

[PATCH net-next 0/8] etherdevice: Rename random_ether_addr to eth_random_addr

2012-07-12 Thread Joe Perches
net-next commit ad7eee98be (etherdevice: introduce eth_broadcast_addr) added a new style API. Rename random_ether_addr to eth_random_addr to create some API symmetry. Joe Perches (8): etherdevice: Rename random_ether_addr to eth_random_addr ethernet: Use eth_random_addr net: usb: Use

[PATCH net-next 1/8] etherdevice: Rename random_ether_addr to eth_random_addr

2012-07-12 Thread Joe Perches
Add some API symmetry to eth_broadcast_addr and add a #define to the old name for backward compatibility. Signed-off-by: Joe Perches j...@perches.com --- include/linux/etherdevice.h | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/linux/etherdevice.h

[PATCH net-next 2/8] ethernet: Use eth_random_addr

2012-07-12 Thread Joe Perches
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches j...@perches.com --- drivers/net/ethernet/atheros/atl1c/atl1c_hw.c |2 +- drivers/net/ethernet/atheros/atlx/atl1.c |2 +- drivers/net/ethernet/atheros/atlx/atl2.c |

[PATCH net-next 3/8] net: usb: Use eth_random_addr

2012-07-12 Thread Joe Perches
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches j...@perches.com --- drivers/net/usb/smsc75xx.c |2 +- drivers/net/usb/smsc95xx.c |2 +- drivers/net/usb/usbnet.c |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH net-next 4/8] wireless: Use eth_random_addr

2012-07-12 Thread Joe Perches
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches j...@perches.com --- drivers/net/wireless/adm8211.c |2 +- drivers/net/wireless/p54/eeprom.c |2 +- drivers/net/wireless/rt2x00/rt2400pci.c|2 +-

[PATCH net-next 5/8] drivers/net: Use eth_random_addr

2012-07-12 Thread Joe Perches
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches j...@perches.com --- drivers/net/tun.c |2 +- drivers/net/wimax/i2400m/driver.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/tun.c

[PATCH net-next 6/8] s390: Use eth_random_addr

2012-07-12 Thread Joe Perches
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches j...@perches.com --- drivers/s390/net/qeth_l2_main.c |2 +- drivers/s390/net/qeth_l3_main.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH net-next 7/8] usb: Use eth_random_addr

2012-07-12 Thread Joe Perches
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches j...@perches.com --- drivers/usb/atm/xusbatm.c|4 ++-- drivers/usb/gadget/u_ether.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/atm/xusbatm.c

[PATCH net-next 8/8] arch: Use eth_random_addr

2012-07-12 Thread Joe Perches
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches j...@perches.com --- arch/blackfin/mach-bf537/boards/stamp.c |2 +- arch/c6x/kernel/soc.c |2 +- arch/mips/ar7/platform.c|4 ++--

Re: [Xen-devel] [PATCH] xen: populate correct number of pages when across mem boundary

2012-07-12 Thread zhenzhong.duan
于 2012-07-12 22:55, David Vrabel 写道: On 04/07/12 07:49, zhenzhong.duan wrote: When populate pages across a mem boundary at bootup, the page count populated isn't correct. This is due to mem populated to non-mem region and ignored. Pfn range is also wrongly aligned when mem boundary isn't

Re: [PATCH 0/3] fs/ufs: stop using write_supers and s_dirt

2012-07-12 Thread Artem Bityutskiy
On Thu, 2012-07-12 at 15:58 -0700, Andrew Morton wrote: Just fix them up as you go - the code is already a mixture of right and wrong (a consequence of a lot of it being wrong) - we might as well tip it further in the right direction. Yeah, but I'd say 80% of it has its own wrong coding

Re: [PATCH 0/3] fs/ufs: stop using write_supers and s_dirt

2012-07-12 Thread Andrew Morton
On Fri, 13 Jul 2012 08:34:44 +0300 Artem Bityutskiy dedeki...@gmail.com wrote: On Thu, 2012-07-12 at 15:58 -0700, Andrew Morton wrote: Just fix them up as you go - the code is already a mixture of right and wrong (a consequence of a lot of it being wrong) - we might as well tip it further

RE: [PATCH v2 1/3] regulator: tps65217: Add device tree support

2012-07-12 Thread AnilKumar, Chimata
Hi Mark, On Thu, Jul 12, 2012 at 22:58:37, Mark Brown wrote: On Tue, Jul 10, 2012 at 04:39:42PM +0530, AnilKumar Ch wrote: This commit adds device tree support for tps65217 pmic. And usage details are added to device tree documentation. Driver is tested by using kernel module with

Re: [PATCH 2/2] dma: tegra: fix residual calculation for cyclic case

2012-07-12 Thread Laxman Dewangan
On Friday 13 July 2012 08:45 AM, Vinod Koul wrote: On Mon, 2012-07-02 at 10:02 -0600, Stephen Warren wrote: On 07/02/2012 02:22 AM, Laxman Dewangan wrote: In cyclic mode of DMA, the byte transferred can be more than the requested size and in this case, calculating residuals based on the

Re: [PATCHv3 0/4] hfsplus: stop using write_supers and s_dirt

2012-07-12 Thread Artem Bityutskiy
On Thu, 2012-07-12 at 16:09 -0700, Andrew Morton wrote: I really do dislike dropping patches and replacing them. For a whole bunch of reasons. One of which is that a wholesale replacement requires a full re-review. Another is that wholesale replacement makes it hard to see what was changed.

Re: How to use the generic thermal sysfs.

2012-07-12 Thread Alex Courbot
On 07/12/2012 07:54 PM, R, Durgadoss wrote: We are working on a notification API from any generic sensor driver to the thermal framework. Please have a look at the 'notify_thermal_framework' API in the patch here: http://www.spinics.net/lists/linux-acpi/msg36049.html At first sight these

linux-next: Tree for July 13

2012-07-12 Thread Stephen Rothwell
Hi all, Changes since 20120712: The ext4 tree still has its build failure so I used the version from next-20120709. The tty tree gained a build failure, so I used the version from next-20120712. I have still reverted 3 commits from the signal tree at the request of the arm maintainer. The arm

Re: [PATCH 0/3] fs/ufs: stop using write_supers and s_dirt

2012-07-12 Thread Artem Bityutskiy
On Thu, 2012-07-12 at 22:45 -0700, Andrew Morton wrote: checkpatch does not report on context lines - only on added lines. Hmm, I think I saw it ding this in the past. Anyway, I have no problems cleaning at lease white-spaces in UFS globally separately. -- Best Regards, Artem Bityutskiy

Re: [PATCH net-next 4/8] wireless: Use eth_random_addr

2012-07-12 Thread Hin-Tak Leung
--- On Fri, 13/7/12, Joe Perches j...@perches.com wrote: From: Joe Perches j...@perches.com Subject: [PATCH net-next 4/8] wireless: Use eth_random_addr To: David Miller da...@davemloft.net, John W. Linville linvi...@tuxdriver.com, Christian Lamparter chunk...@googlemail.com, Ivo van Doorn

RE: How to use the generic thermal sysfs.

2012-07-12 Thread R, Durgadoss
-Original Message- From: Alex Courbot [mailto:acour...@nvidia.com] Sent: Friday, July 13, 2012 11:19 AM To: R, Durgadoss Cc: Wei Ni; Zhang, Rui; Brown, Len; a...@linux-foundation.org; khali@linux- fr.org; j...@perches.com; linux-kernel@vger.kernel.org; linux- te...@ger.kernel.org

Re: [PATCH 5/8] time: Refactor accumulation of nsecs to secs

2012-07-12 Thread Ingo Molnar
* John Stultz john.stu...@linaro.org wrote: We do the exact same logic moving nsecs to secs in the timekeeper in multiple places, so condense this into a single function. CC: Ingo Molnar mi...@kernel.org CC: Peter Zijlstra a.p.zijls...@chello.nl CC: Richard Cochran

Re: [PATCH 1/8] ntp: Fix STA_INS/DEL clearing bug

2012-07-12 Thread Ingo Molnar
* John Stultz john.stu...@linaro.org wrote: From: John Stultz johns...@us.ibm.com In commit 6b43ae8a619d17c4935c3320d2ef9e92bdeed05d, I introduced a bug that kept the STA_INS or STA_DEL bit from being cleared from time_status via adjtimex() without forcing STA_PLL first. Usually once

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

2012-07-12 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [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

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

2012-07-12 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

linux-next: Tree for July 12

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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 cw00.c...@samsung.com Signed-off-by: Myungjoo Ham

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

2012-07-12 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:

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

2012-07-12 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 devendra.a...@gmail.com --- drivers/staging/et131x/et131x.c |8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git

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

2012-07-12 Thread Devendra Naga
TCB has kcalloc' ed so no need to call memset again on it. Signed-off-by: Devendra Naga devendra.a...@gmail.com --- 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

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

2012-07-12 Thread Devendra Naga
return the error of filp_open rather returning -ENOENT. Signed-off-by: Devendra Naga devendra.a...@gmail.com --- 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

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

2012-07-12 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 kuninori.morimoto...@renesas.com --- v1 - v2 - used spin_lock - added explain of udelay(300) - used a single space before = drivers/thermal/Kconfig|

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

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

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

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

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

2012-07-12 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 Yuannamei.u...@gmail.com wrote: On 07/05/2012 06:50 PM, Mitsuo Hayasaka wrote: One of the ways to solve this

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

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

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

2012-07-12 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

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

2012-07-12 Thread Rusty Russell
On Wed, 11 Jul 2012 11:53:35 +0100, Catalin Marinas catalin.mari...@arm.com 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

Re: 82571EB: Detected Hardware Unit Hang

2012-07-12 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: Detected Hardware

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

2012-07-12 Thread S, Venkatraman
On Wed, Jul 11, 2012 at 5:10 AM, Kevin Hilman khil...@ti.com 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

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

2012-07-12 Thread Stephen Rothwell
Hi Alex, On Thu, 12 Jul 2012 07:56:46 +0200 Alexander Graf ag...@suse.de 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

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

2012-07-12 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 j...@perches.com 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

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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 16/16] mm: Account for the number of times direct reclaimers get throttled

2012-07-12 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

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

2012-07-12 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 a.p.zijls...@chello.nl Signed-off-by: Mel Gorman mgor...@suse.de Acked-by: Rik van Riel r...@redhat.com ---

RE: 82571EB: Detected Hardware Unit Hang

2012-07-12 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: 82571EB: Detected Hardware

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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/16] netvm: Set PF_MEMALLOC as appropriate during SKB processing

2012-07-12 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 00/12] Swap-over-NFS without deadlocking V9

2012-07-12 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 03/12] mm: Methods for teaching filesystems about PG_swapcache pages

2012-07-12 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

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

2012-07-12 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.

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

2012-07-12 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

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

2012-07-12 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 06/12] mm: Add get_kernel_page[s] for pinning of kernel addresses for I/O

2012-07-12 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 05/12] mm: swap: Implement generic handler for swap_activate

2012-07-12 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

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

2012-07-12 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 a.p.zijls...@chello.nl Signed-off-by: Mel Gorman mgor...@suse.de Acked-by: Eric Paris epa...@redhat.com Acked-by: Rik van

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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 mini...@googlemail.com --- fs/isofs/export.c |1 + 1 file changed, 1 insertion(+) diff --git a/fs/isofs/export.c b/fs/isofs/export.c

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

2012-07-12 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

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

2012-07-12 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 mini...@googlemail.com --- fs/udf/namei.c |1 + 1 file changed, 1 insertion(+) diff --git a/fs/udf/namei.c b/fs/udf/namei.c index

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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

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

2012-07-12 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 08/16] netvm: Allow the use of __GFP_MEMALLOC by specific sockets

2012-07-12 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

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

2012-07-12 Thread Mel Gorman
From: Christoph Lameter c...@linux.com 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

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

2012-07-12 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

[PATCH] sched: Fix spacing issues in coding style

2012-07-12 Thread Ying Xue
Delete redudant spaces between type name and data name or operators. Signed-off-by: Ying Xue ying.x...@gmail.com --- kernel/sched/cpupri.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c index d72586f..23aa789 100644

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

2012-07-12 Thread Michal Hocko
On Wed 11-07-12 18:57:43, Hugh Dickins wrote: Hi Michal, Hi, On Wed, 20 Jun 2012, Michal Hocko wrote: Hi Andrew, here is an updated version if it is easier for you to drop the previous one. changes since v1 * added Mel's Reviewed-by * updated changelog as per Andrew * updated

[PATCH] powerpc: remove rejected merge file from arch/powerpc/kernel in linux-next

2012-07-12 Thread Gerard Snitselaar
Commit 9778b696 (powerpc: Use CURRENT_THREAD_INFO instead of open coded assembly) got a rejected merge file iommu.c.rej committed with it. Signed-off-by: Gerard Snitselaar d...@snitselaar.org --- arch/powerpc/kernel/iommu.c.rej | 22 -- 1 file changed, 22 deletions(-) delete

Re: linux-next: Early crashed kernel on CONFIG_SLOB

2012-07-12 Thread Pekka Enberg
On Tue, 10 Jul 2012, Christoph Lameter wrote: Here is the patch: Subject: slob: Undo slob hunk Commit fd3142a59af2012a7c5dc72ec97a4935ff1c5fc6 broke slob since a piece of a change for a later patch slipped into it. Signed-off-by: Christoph Lameter c...@linux.com --- mm/slob.c |

[RESEND PATCH 1/1] clk: add DT support for clock gating control

2012-07-12 Thread Sebastian Hesselbarth
As Rob's clock binding support patch is now up on clk-next, I'd like to draw attention on this patch again. -- This patch adds support for using clock gates (clk-gate) from DT based on Rob Herrings DT clk binding support for 3.6. It adds a helper function to clk-gate to allocate all resources

UIO: missing resource mapping

2012-07-12 Thread Andreas Schallenberg
Hello, I'm doing experiments with the Userspace IO driver (UIO_PCI_GENERIC) and a set of PCIe cards. The kernel version is 3.4.4, CPU is a Marvell MV78200 (ARMv5te). Example with an Intel ethernet card: This makes /dev/uio0 appear echo -n 8086 10d3 /sys/bus/pci/drivers/uio_pci_generic/new_id

[RESEND PATCH v1 1/2] mmc: sdhci-dove: Add SDHCI_QUIRK_NO_HISPD_BIT

2012-07-12 Thread Sebastian Hesselbarth
Bump. There has been no discussion on this patch nor on patch 2/2. Is there anybody out there willing to test and confirm these patches? -- The sdio controller on dove doesn't have a bit to indicate high-speed. With the quirk set it fixes accessing high-speed sdcards. Signed-off-by: Sebastian

Re: [PATCH v3 1/8] bluetooth: /proc/net/ entries for bluetooth protocols

2012-07-12 Thread Andrei Emeltchenko
Hi Masatake, On Wed, Jul 11, 2012 at 09:19:06PM +0900, Masatake YAMATO wrote: I've tested the patch and it creates entries in /proc/net Thanks. BTW: Shall lsof be able to identify l2cap protocol? for l2test it prints: can't identify protocol No. I'll work on lsof side after the

Re: [PATCH 1/6] hrtimer: Provide clock_was_set_delayed()

2012-07-12 Thread Jan Ceuleers
On 07/11/2012 06:47 PM, John Stultz wrote: I'll see if my worry is unfounded, but it might be a bit too clever for rare events. Full ACK. There is an unfortunate history of critical-to-moderately-serious bugs in the leap second handling, so I submit that what is needed is a simple,

[PATCH v4] net: cgroup: fix access the unallocated memory in netprio cgroup

2012-07-12 Thread Gao feng
there are some out of bound accesses in netprio cgroup. now before accessing the dev-priomap.priomap array,we only check if the dev-priomap exist.and because we don't want to see additional bound checkings in fast path, so we should make sure that dev-priomap is null or array size of

[RFC PATCH] sched: add load balance cpumask pointer into lb_env

2012-07-12 Thread Michael Wang
From: Michael Wang wang...@linux.vnet.ibm.com with this patch, ld_env will have a pointer of load balance cpumask, and we don't need to pass cpus anymore. Signed-off-by: Michael Wang wang...@linux.vnet.ibm.com --- kernel/sched/fair.c | 34 -- 1 files changed,

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

2012-07-12 Thread Avi Kivity
On 07/12/2012 08:11 AM, Raghavendra K T wrote: Ah, I thouht you objected to the CONFIG var. Maybe call it cpu_relax_intercepted since that's the linuxy name for the instruction. Ok, just to be on same page. 'll have : 1. cpu_relax_intercepted instead of pause_loop_exited. 2.

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

2012-07-12 Thread Avi Kivity
On 07/12/2012 05:17 AM, Benjamin Herrenschmidt wrote: ARM doesn't have an instruction for cpu_relax(), so it can't intercept it. Given ppc's dislike of overcommit, and the way it implements cpu_relax() by adjusting hw thread priority, I'm guessing it doesn't intercept those either, but I'm

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