Re: [PATCH RESEND] remove the queue unlock in scsi_requset_fn

2012-08-14 Thread James Bottomley
On Tue, 2012-08-14 at 18:48 +0900, Chanho Min wrote: We don't need to unlock the queue before put_device in scsi_request_fn() If we trigger the -remove() function, It occur a oops from the caller. So sdev reference count should not be dropped to zero here. Also It was added before

Re: [PATCH 2/5] mm: replace vma prio_tree with an interval tree

2012-08-14 Thread Hillf Danton
On Tue, Aug 7, 2012 at 3:25 PM, Michel Lespinasse wal...@google.com wrote: +#define ITSTRUCT struct vm_area_struct +#define ITSTART(n) ((n)-vm_pgoff) +#define ITLAST(n) ((n)-vm_pgoff + \ + (((n)-vm_end - (n)-vm_start) PAGE_SHIFT) - 1) [...] @@ -1547,7 +1545,6 @@

Re: [alsa-devel] [PATCH 08/22] ASoC: codecs: Enable AB8500 CODEC for Device Tree

2012-08-14 Thread Takashi Iwai
At Thu, 9 Aug 2012 16:47:34 +0100, Lee Jones wrote: @@ -2407,6 +2464,30 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec) /* Setup AB8500 according to board-settings */ pdata = (struct ab8500_platform_data *)dev_get_platdata(dev-parent); + if (np) { +

Re: [alsa-devel] [PATCH 03/22] ASoC: ab8500: Inform SoC Core that we have our own I/O arrangements

2012-08-14 Thread Takashi Iwai
At Thu, 9 Aug 2012 16:47:29 +0100, Lee Jones wrote: If codec-control_data is not populated SoC Core assumes we want to use regmap, which fails catastrophically, as we don't have one: Unable to handle kernel NULL pointer dereference at virtual address 0080 pgd = c0004000 [0080]

[PATCH] cpuidle: Prevent null pointer dereference in cpuidle_coupled_cpu_notify

2012-08-14 Thread Jon Medhurst (Tixy)
When a kernel is built to support multiple hardware types it's possible that CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is set but the hardware the kernel is run on doesn't support cpuidle and therefore doesn't load a driver for it. In this case, when the system is shut down, cpuidle_coupled_cpu_notify()

Re: [patch net-next 01/16] net: introduce upper device lists

2012-08-14 Thread Jiri Pirko
Mon, Aug 13, 2012 at 07:52:17PM CEST, f...@redhat.com wrote: On Mon, 13 Aug 2012 17:27:00 +0200 Jiri Pirko j...@resnulli.us wrote: This lists are supposed to serve for storing pointers to all upper devices. Eventually it will replace dev-master pointer which is used for bonding, bridge, team

Re: [PATCH 2/4] fsl_pmc: Add API to enable device as wakeup event source

2012-08-14 Thread Tabi Timur-B04825
Zhao Chenhui wrote: +#ifdef CONFIG_FSL_PMC +extern int mpc85xx_pmc_set_wake(struct device *dev, bool enable); +extern void mpc85xx_pmc_set_lossless_ethernet(int enable); Don't use 'extern' for functions. Why? I think there is no difference. It's unnecessary, and it makes the line

Re: mmotm 2012-08-13-16-55 uploaded

2012-08-14 Thread Glauber Costa
On 08/14/2012 02:53 PM, Michal Hocko wrote: On Mon 13-08-12 16:56:50, Andrew Morton wrote: The mm-of-the-moment snapshot 2012-08-13-16-55 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ -mm git tree has been updated as well. You can find the tree at

Re: How to hack syscall-table, in kernel 2.6+ ?

2012-08-14 Thread Alan Cox
I have already tried extracting the address of the sys_call_table from System.Map; however, I am still not able to replace the function-pointers with mine. Correct. Trying to do gives me page-faults, apparently meaning that the syscall-table memory area is read-only. Correct. The kernel

Q: Seeing the microcode revision in /proc/cpuinfo

2012-08-14 Thread Ulrich Windl
Hi! After several reboots due to memory errors after excellent power-saving of Linux on a HP DL380G7 with Intel Xeon 5650 processors (all in on memory bank), I found out the errate BD104 and BD123. The former should be fixed in a microcode revision 15H. Now I wonder what microcode revision my

RE: [PATCH 3/5] net/mlx4_en: Call netif_carrier_off() after register_netdev()

2012-08-14 Thread Sathya.Perla
-Original Message- From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On Behalf Of Ilya Shchepetkov For carrier detection to work properly when binding the driver with a cable unplugged, netif_carrier_off() should be called after register_netdev(), not before.

Re: [GIT PULL] gpio fixes for v3.6-rc1

2012-08-14 Thread Linus Walleij
On Mon, Aug 13, 2012 at 4:36 PM, Arnd Bergmann a...@arndb.de wrote: On Friday 10 August 2012, Linus Walleij wrote: Daniel Mack (1): GPIO: gpio-pxa: fix devicetree functions Unfortunately, this one caused a build regression, see the fix below. I also wonder why pxa_irq_domain_ops isn't

Re: [PATCH] gpio: Fix debug message in of_get_named_gpio_flags()

2012-08-14 Thread Linus Walleij
On Thu, Aug 9, 2012 at 8:38 AM, Thierry Reding thierry.red...@avionic-design.de wrote: This was probably missed in the conversion done in commit 3d0f7cf (gpio: Adjust of_xlate API to support multiple GPIO chips). Signed-off-by: Thierry Reding thierry.red...@avionic-design.de Applied to my

Re: [GIT PULL] Update LZO compression

2012-08-14 Thread Johannes Stezenbach
On Tue, Aug 14, 2012 at 01:44:02AM +0200, Markus F.X.J. Oberhumer wrote: On 2012-07-16 20:30, Markus F.X.J. Oberhumer wrote: As stated in the README this version is significantly faster (typically more than 2 times faster!) than the current version, has been thoroughly tested on

Re: [PATCH v7 2/2] kvm: KVM_EOIFD, an eventfd for EOIs

2012-08-14 Thread Avi Kivity
On 08/12/2012 12:33 PM, Michael S. Tsirkin wrote: Michael, would the interface be more acceptable to you if we added separate ioctls to allocate and free some representation of an irq source ID, gsi pair? For instance, an ioctl might return an idr entry for an irq source ID/gsi object which

Re: [PATCH] preempt/hardirq.h: Clarify PREEMPT_ACTIVE bit location

2012-08-14 Thread Steven Rostedt
On Tue, 2012-08-14 at 12:18 +0200, Thomas Gleixner wrote: On Tue, 14 Aug 2012, Srivatsa S. Bhat wrote: By default, the PREEMPT_ACTIVE flag is bit 27, but different architectures can override that. Update the comment to reflect this fact. Is there any sensible reason why

Re: [PATCH V6 4/5] USB: Add EHCI bus glue for Loongson1x SoCs (UPDATED)

2012-08-14 Thread Florian Fainelli
Hello Kelvin, On Wednesday 18 January 2012 14:41:16 Kelvin Cheung wrote: Use ehci_setup() in ehci_ls1x_reset(). The Loongson1x SoCs have a built-in EHCI controller. This patch adds the necessary glue code to make the generic EHCI driver usable for them. Signed-off-by: Kelvin Cheung

Re: [PATCH 1/1] boot: Put initcall_debug into its own Kconfig option DEBUG_INITCALL

2012-08-14 Thread Josh Triplett
On Tue, Aug 14, 2012 at 08:03:41AM -0400, Josh Boyer wrote: On Mon, Aug 13, 2012 at 9:18 PM, Josh Triplett j...@joshtriplett.org wrote: On Mon, Aug 13, 2012 at 03:39:54PM -0700, Randy Dunlap wrote: On 08/13/2012 03:08 PM, Thai Bui wrote: Hi all, I am as part of a capstone group at

Re: [PATCH 1/1] [RFC] uartclk from serial_core exposed to sysfs

2012-08-14 Thread Marek Vasut
Dear Tomas Hlavacek, Support for read/modify of uartclk via sysfs added. It may prove useful with some no-name cards that has different oscillator speeds and no distinguishing PCI IDs to allow autodetection. It allows better integration with udev and/or init scripts. Signed-off-by: Tomas

Re: [PATCH RFC] Fix /usr/bin/xargs: rm: Argument list too long during make distclean

2012-08-14 Thread David Cullen
On 8/13/2012 5:01 PM, H. Peter Anvin wrote: On 08/13/2012 01:56 PM, David Cullen wrote: That sounds like a bug in xargs... In my specific case, qemu-arm-static calls xargs (In fact, in my cross chroot, qemu-arm-static is used to run every user mode process). Do you mean that

Re: [net PATCH v2 2/2] net: netprio: fd passed in SCM_RIGHTS datagram not set correctly

2012-08-14 Thread Neil Horman
On Mon, Aug 13, 2012 at 07:43:27PM -0700, John Fastabend wrote: A socket fd passed in a SCM_RIGHTS datagram was not getting updated with the new tasks cgrp prioidx. This leaves IO on the socket tagged with the old tasks priority. To fix this add a check in the scm recvmsg path to update the

Re: [net PATCH v2 1/2] net: netprio: fix files lock and remove useless d_path bits

2012-08-14 Thread Neil Horman
On Mon, Aug 13, 2012 at 07:43:21PM -0700, John Fastabend wrote: Add lock to prevent a race with a file closing and also remove useless and ugly sscanf code. The extra code was never needed and the case it supposedly protected against is in fact handled correctly by sock_from_file as pointed

[PATCH 2/5] drivers/dma/amba-pl08x.c: fix error return code

2012-08-14 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Convert a 0 error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ identifier ret; expression e,e1,e2,e3,e4,x;

[PATCH 3/5] drivers/net/ethernet/freescale/fs_enet: fix error return code

2012-08-14 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Convert a 0 error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ identifier ret; expression e,e1,e2,e3,e4,x;

[PATCH 0/5] fix error return code

2012-08-14 Thread Julia Lawall
These patches fix cases where the return code appears to be unintentially 0. The complete semantic match that finds the problem is as follows: (http://coccinelle.lip6.fr/) // smpl @r@ identifier f; expression ret,e; constant C; @@ f(...) { +... ( return -C; | ret = -C ... when != ret = e return

[PATCH 5/5] drivers/infiniband/hw/qib/qib_iba7322.c: fix error return code

2012-08-14 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Convert a 0 error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ identifier ret; expression e,e1,e2,e3,e4,x;

[PATCH 4/5] drivers/net/ethernet/mellanox/mlx4/mcg.c: fix error return code

2012-08-14 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Convert a 0 error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ identifier ret; expression e,e1,e2,e3,e4,x;

[PATCH 1/5] drivers/cdrom/gdrom.c: fix error return code

2012-08-14 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Convert a 0 error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ identifier ret; expression e,e1,e2,e3,e4,x;

Re: DT GPIO numbering?

2012-08-14 Thread Johannes Stezenbach
On Tue, Aug 14, 2012 at 12:00:23PM +0200, Linus Walleij wrote: On Fri, Aug 10, 2012 at 11:34 AM, Johannes Stezenbach j...@sig21.net wrote: Actually I think the kernel internal GPIO numbers shouldn't be in the sysfs API, instead userspace should use the names. This is true, but we cannot

Re: Q: Seeing the microcode revision in /proc/cpuinfo

2012-08-14 Thread Borislav Petkov
On Tue, Aug 14, 2012 at 02:35:40PM +0200, Ulrich Windl wrote: Hi! After several reboots due to memory errors after excellent power-saving of Linux on a HP DL380G7 with Intel Xeon 5650 processors (all in on memory bank), I found out the errate BD104 and BD123. The former should be fixed

RE: [PATCH 5/5] drivers/infiniband/hw/qib/qib_iba7322.c: fix error return code

2012-08-14 Thread Marciniszyn, Mike
Subject: [PATCH 5/5] drivers/infiniband/hw/qib/qib_iba7322.c: fix error return code From: Julia Lawall julia.law...@lip6.fr Acked-by: Mike Marciniszyn mike.marcinis...@intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [patch net-next 01/16] net: introduce upper device lists

2012-08-14 Thread Flavio Leitner
On Tue, 14 Aug 2012 14:24:33 +0200 Jiri Pirko j...@resnulli.us wrote: Mon, Aug 13, 2012 at 07:52:17PM CEST, f...@redhat.com wrote: On Mon, 13 Aug 2012 17:27:00 +0200 Jiri Pirko j...@resnulli.us wrote: + /* + * To prevent loops, check if dev is not upper device to upper_dev. + */ +

Antw: Re: Q: Seeing the microcode revision in /proc/cpuinfo

2012-08-14 Thread Ulrich Windl
Hi Borislav, probably my edge is not bleeding that much than yours ;-) I don't see microcode in 3.0.34-0.7-default for an AMD Opteron, and not in 2.6.32.59-0.3-default for the Intel Xeon. Both are kernels of SLES11 xon x86_64. The first one is the latest you can get for SLES11 SP2. In

Re: [PATCH] drivers/media/video/mx2_emmaprp.c: use devm_kzalloc and devm_clk_get

2012-08-14 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Using devm_kzalloc simplifies the code and ensures that the use of devm_request_irq is safe. When kzalloc and kfree were used, the interrupt could be triggered after the handler's data argument had been freed. This also introduces some missing

Re: [PATCH] UDF: During mount free lvid_bh before rescanning with different blocksize

2012-08-14 Thread Jan Kara
On Sat 21-07-12 16:35:17, Ashish Sangwan wrote: If s_lvid_bh is not freed and set to NULL before re-scanning partition with default block size, we might end up using wrong lvid in case s_lvid_bh is not updated in udf_load_logicalvolint during rescan. Signed-off-by: Ashish Sangwan

Re: [PATCH RFC] tick: Emphasize tck_broadcast_on_off could only be called for host cpu

2012-08-14 Thread Feng Tang
On Tue, 31 Jul 2012 15:57:21 +0800 Feng Tang feng.t...@intel.com wrote: With current tick_do_broadcast_on_off() and tick_broadcast_on_off(), it only cares host cpu, and doesn't really support to make the on/off for another target CPU as it seems to be. So remove the unneeded online check and

Re: Antw: Re: Q: Seeing the microcode revision in /proc/cpuinfo

2012-08-14 Thread Borislav Petkov
On Tue, Aug 14, 2012 at 03:20:53PM +0200, Ulrich Windl wrote: Hi Borislav, probably my edge is not bleeding that much than yours ;-) I don't see microcode in 3.0.34-0.7-default for an AMD Opteron, and not in 2.6.32.59-0.3-default for the Intel Xeon. Both are kernels of SLES11 xon

Re: [PATCH 0/7] zram/zsmalloc promotion

2012-08-14 Thread Konrad Rzeszutek Wilk
On Tue, Aug 14, 2012 at 03:22:47PM +0900, Minchan Kim wrote: Hi Greg, On Mon, Aug 13, 2012 at 07:35:30PM -0700, Greg Kroah-Hartman wrote: On Wed, Aug 08, 2012 at 03:12:13PM +0900, Minchan Kim wrote: This patchset promotes zram/zsmalloc from staging. Both are very clean and zram is used

Re: [patch net-next 01/16] net: introduce upper device lists

2012-08-14 Thread Jiri Pirko
Tue, Aug 14, 2012 at 03:14:00PM CEST, f...@redhat.com wrote: On Tue, 14 Aug 2012 14:24:33 +0200 Jiri Pirko j...@resnulli.us wrote: Mon, Aug 13, 2012 at 07:52:17PM CEST, f...@redhat.com wrote: On Mon, 13 Aug 2012 17:27:00 +0200 Jiri Pirko j...@resnulli.us wrote: + /* + * To prevent loops,

Re: [Xen-devel] [PATCH] netvm: check for page == NULL when propogating the skb-pfmemalloc flag

2012-08-14 Thread Konrad Rzeszutek Wilk
On Tue, Aug 14, 2012 at 11:05:22AM +0100, Mel Gorman wrote: On Mon, Aug 13, 2012 at 11:41:44AM -0400, Konrad Rzeszutek Wilk wrote: On Wed, Aug 08, 2012 at 03:50:46PM -0700, David Miller wrote: From: Mel Gorman mgor...@suse.de Date: Tue, 7 Aug 2012 09:55:55 +0100 Commit [c48a11c7:

Re: [PATCH] m68k: select CONFIG_GENERIC_ATOMIC64 for all m68k CPU types

2012-08-14 Thread Greg Ungerer
On 08/14/2012 03:15 PM, Fengguang Wu wrote: On Tue, Aug 14, 2012 at 02:45:33PM +1000, g...@snapgear.com wrote: From: Greg Ungerer g...@uclinux.org There is no specific atomic64 support code for any m68k CPUs, so we should select CONFIG_GENERIC_ATOMC64 for all. Remove the existing per CPU

Re: [PATCH v5 00/12] KVM: introduce readonly memslot

2012-08-14 Thread Avi Kivity
On 08/10/2012 09:14 PM, Marcelo Tosatti wrote: On Tue, Aug 07, 2012 at 05:47:15PM +0800, Xiao Guangrong wrote: Changelog: - introduce KVM_PFN_ERR_RO_FAULT instead of dummy page - introduce KVM_HVA_ERR_BAD and optimize error hva indicators The test case can be found at:

[patch 0/8] procfs fdinfo providers updated

2012-08-14 Thread Cyrill Gorcunov
Hi guys, in this series I tried to address concerns on code duplication at seq_fdinfo_open and proc_fd_link, thus fdinfo_open_helper() is used in both routines. Also series updated to be appliable on top of v3.6-rc1. Please review, comments are highly appreciated. Cyrill -- To

[patch 8/8] fdinfo: Show sigmask for signalfd fd

2012-08-14 Thread Cyrill Gorcunov
Signed-off-by: Pavel Emelyanov xe...@parallels.com Signed-off-by: Cyrill Gorcunov gorcu...@openvz.org --- fs/proc/array.c |2 - fs/signalfd.c | 63 include/linux/proc_fs.h |3 ++ 3 files changed, 67 insertions(+), 1

[patch 6/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-14 Thread Cyrill Gorcunov
To provide fsnotify object inodes being watched without binding to alphabetical path we need to encode them with exportfs help. This patch adds a helper which operates with plain inodes directly. This feature is CONFIG_CHECKPOINT_RESTORE only. Signed-off-by: Cyrill Gorcunov gorcu...@openvz.org

[patch 7/8] fs, notify: Add procfs fdinfo helper v3

2012-08-14 Thread Cyrill Gorcunov
This allow us to print out fsnotify details such as watchee inode, device, mask and file handle. For example for inotify objects the output is | pos: 0 | flags: 0200 | inotify wd:3 ino: 9e7e sdev: 800013 mask: 800afce ignored_mask:0 fhandle-bytes:

[patch 5/8] fs, epoll: Add procfs fdinfo helper v2

2012-08-14 Thread Cyrill Gorcunov
This allow us to print out eventpoll target file descriptor, events and data, the /proc/pid/fdinfo/fd consists of | pos: 0 | flags: 02 | tfd:5 events: 1d data: This feature is CONFIG_CHECKPOINT_RESTORE only. v2: - don't walk over all rb nodes on

[patch 1/8] procfs: Move /proc/pid/fd[info] handling code to fd.[ch]

2012-08-14 Thread Cyrill Gorcunov
This patch prepares the ground for further extension of /proc/pid/fd[info] handling code by moving fdinfo handling code into fs/proc/fd.c. I think such move makes both fs/proc/base.c and fs/proc/fd.c easier to read. Signed-off-by: Cyrill Gorcunov gorcu...@openvz.org CC: Al Viro

[patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-14 Thread Cyrill Gorcunov
This patch brings ability to plug in auxiliary fdinfo providers. For example in further patches eventfd, evenpoll and fsnotify will print out information associated with files. This feature is CONFIG_CHECKPOINT_RESTORE guarded to eliminate overhead for those who don't need it at all (this

[patch 4/8] fs, eventfd: Add procfs fdinfo helper

2012-08-14 Thread Cyrill Gorcunov
This allow us to print out raw counter value. The /proc/pid/fdinfo/fd output is | pos: 0 | flags: 04002 | eventfd-count: 5a This feature is CONFIG_CHECKPOINT_RESTORE only. Signed-off-by: Cyrill Gorcunov gorcu...@openvz.org CC: Al Viro v...@zeniv.linux.org.uk CC: Alexey

Re: [PATCH] MIPS: fix module.c build for 32 bit

2012-08-14 Thread David Howells
Rusty Russell ru...@rustcorp.com.au wrote: Yep, thanks. And might as well sent them straight to Linus; since linux-next didn't catch this, there's little point baking them there if we have some acks. If he misses it, I'll grab them. It might have to wait for the next merge window. David

[patch 2/8] procfs: Convert /proc/pid/fdinfo/ handling routines to seq-file

2012-08-14 Thread Cyrill Gorcunov
This patch converts /proc/pid/fdinfo/ handling routines to seq-file which is needed to extend seq operations and plug in auxiliary fdinfo provides from subsystems like eventfd/eventpoll/fsnotify. Note the proc_fd_link no longer call for proc_fd_info, simply because proc_fd_info is converted to

[PATCH 0/4] cputime: Virtual cputime accounting small cleanups and consolidation v2

2012-08-14 Thread Frederic Weisbecker
Hi, No fundamental change in this release but a rebase to solve conflicts against latest tip:/sched/core commits. Thanks. Frederic Weisbecker (4): cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING sched: Move cputime code to its own file cputime: Consolidate vtime handling on context switch

[PATCH 1/4] cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING

2012-08-14 Thread Frederic Weisbecker
S390, ia64 and powerpc all define their own version of CONFIG_VIRT_CPU_ACCOUNTING. Generalize the config and its description to a single place to avoid duplication. Signed-off-by: Frederic Weisbecker fweis...@gmail.com Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc:

[PATCH 3/4] cputime: Consolidate vtime handling on context switch

2012-08-14 Thread Frederic Weisbecker
The archs that implement virtual cputime accounting all flush the cputime of a task when it gets descheduled and sometimes set up some ground initialization for the next task to account its cputime. These archs all put their own hooks in their context switch callbacks and handle the off-case

[PATCH 2/4] sched: Move cputime code to its own file

2012-08-14 Thread Frederic Weisbecker
Extract cputime code from the giant sched/core.c and put it in its own file. This make it easier to deal with this particular area and de-bloat a bit more core.c Signed-off-by: Frederic Weisbecker fweis...@gmail.com Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc:

[PATCH 4/4] s390: Remove leftover account_tick_vtime() header

2012-08-14 Thread Frederic Weisbecker
The function doesn't seem to exist anymore. Signed-off-by: Frederic Weisbecker fweis...@gmail.com Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: Martin Schwidefsky

Re: [RFC 2/2] cma: support MIGRATE_DISCARD

2012-08-14 Thread Michal Nazarewicz
Minchan Kim minc...@kernel.org writes: This patch introudes MIGRATE_DISCARD mode in migration. It drop clean cache pages instead of migration so that migration latency could be reduced. Of course, it could evict code pages but latency of big contiguous memory is more important than some

Re: [patch 1/8] procfs: Move /proc/pid/fd[info] handling code to fd.[ch]

2012-08-14 Thread Pavel Emelyanov
On 08/14/2012 06:03 PM, Cyrill Gorcunov wrote: This patch prepares the ground for further extension of /proc/pid/fd[info] handling code by moving fdinfo handling code into fs/proc/fd.c. I think such move makes both fs/proc/base.c and fs/proc/fd.c easier to read. Signed-off-by: Cyrill

Re: [patch 2/8] procfs: Convert /proc/pid/fdinfo/ handling routines to seq-file

2012-08-14 Thread Pavel Emelyanov
On 08/14/2012 06:03 PM, Cyrill Gorcunov wrote: This patch converts /proc/pid/fdinfo/ handling routines to seq-file which is needed to extend seq operations and plug in auxiliary fdinfo provides from subsystems like eventfd/eventpoll/fsnotify. Note the proc_fd_link no longer call for

Re: [patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-14 Thread Pavel Emelyanov
On 08/14/2012 06:03 PM, Cyrill Gorcunov wrote: This patch brings ability to plug in auxiliary fdinfo providers. For example in further patches eventfd, evenpoll and fsnotify will print out information associated with files. This feature is CONFIG_CHECKPOINT_RESTORE guarded to eliminate

[PATCH v2 00/14] MFD/ASoC/Input: twl4030-audio submodule DT support

2012-08-14 Thread Peter Ujfalusi
Hello, Changes since v1: - Get the MCLK frequencey from twl-core driver (via new API) - hs_extmute_disable_level parameter has been removed - empty of_find_node_by_name() in of.h for !CONFIG_OF builds Mark: the extmute GPIO handling (when it is used) remained in the codec driver for now. I can

[PATCH v2 01/14] MFD: twl4030-audio: Clean up MODULE_* and platform_driver part

2012-08-14 Thread Peter Ujfalusi
Place the MODULE_* lines in the same block and add MODULE_DESCRIPTION. Rearange the platform_driver structure at the same time. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [patch 4/8] fs, eventfd: Add procfs fdinfo helper

2012-08-14 Thread Pavel Emelyanov
On 08/14/2012 06:03 PM, Cyrill Gorcunov wrote: This allow us to print out raw counter value. The /proc/pid/fdinfo/fd output is | pos: 0 | flags: 04002 | eventfd-count: 5a This feature is CONFIG_CHECKPOINT_RESTORE only. Signed-off-by: Cyrill Gorcunov

[PATCH v2 02/14] MFD: twl4030-audio: Convert to use devm_kzalloc

2012-08-14 Thread Peter Ujfalusi
Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 15 ++- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c index ac04b4f..efa2d42 100644 --- a/drivers/mfd/twl4030-audio.c +++

[PATCH v2 04/14] MFD: twl-core: Add API to query the HFCLK rate

2012-08-14 Thread Peter Ujfalusi
CFG_BOOT register's HFCLK_FREQ field hold information about the used HFCLK frequency. Add possibility for users to get the configured rate based on this register. This register was configured during boot, without it the chip would not operate correctly, so we can trust on this information.

Re: [PATCH 1/5] sgi-xp: Call netif_carrier_off() after register_netdev()

2012-08-14 Thread Robin Holt
On Tue, Aug 14, 2012 at 02:28:51PM +0400, Ilya Shchepetkov wrote: For carrier detection to work properly when binding the driver with a cable unplugged, netif_carrier_off() should be calle after register_netdev(), not before. Calling netif_carrier_off() before register_netdev() was causing

[PATCH v2 10/14] ARM: OMAP/ASoC: Zoom2: Let the codec to handle the hs_extmute GPIO

2012-08-14 Thread Peter Ujfalusi
Remove the use of set_hs_extmute callback and let the codec driver to handle the extmute GPIO. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-omap2/board-zoom-peripherals.c |9 ++--- arch/arm/mach-omap2/include/mach/board-zoom.h |2 -- sound/soc/omap/zoom2.c

[PATCH v2 11/14] ASoC/MFD: twl4030: Remove set_hs_extmute callback from platform data

2012-08-14 Thread Peter Ujfalusi
We no longer have users for the set_hs_extmute callback which has been replaced by hs_extmute_gpio so the codec driver can handle the external mute if it is needed by the board. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/i2c/twl.h|2 --

Re: [patch 6/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-14 Thread Pavel Emelyanov
On 08/14/2012 06:03 PM, Cyrill Gorcunov wrote: To provide fsnotify object inodes being watched without binding to alphabetical path we need to encode them with exportfs help. This patch adds a helper which operates with plain inodes directly. This feature is CONFIG_CHECKPOINT_RESTORE only.

[PATCH v2 14/14] ASoC: twl4030: Support for DT booted kernel

2012-08-14 Thread Peter Ujfalusi
When the kernel has been booted with DT blob the platform data is NULL for the driver. We need to construct the pdata based on the DT information for runtime use. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 57 +--

Re: [patch 7/8] fs, notify: Add procfs fdinfo helper v3

2012-08-14 Thread Pavel Emelyanov
On 08/14/2012 06:03 PM, Cyrill Gorcunov wrote: This allow us to print out fsnotify details such as watchee inode, device, mask and file handle. For example for inotify objects the output is | pos: 0 | flags: 0200 | inotify wd:3 ino: 9e7e sdev: 800013

Re: [PATCH V2] MIPS: Fix poweroff failure when HOTPLUG_CPU configured.

2012-08-14 Thread Huacai Chen
On Tue, Aug 14, 2012 at 7:48 PM, Ralf Baechle r...@linux-mips.org wrote: On Mon, Aug 13, 2012 at 08:52:24PM +0800, Huacai Chen wrote: When poweroff machine, kernel_power_off() call disable_nonboot_cpus(). And if we have HOTPLUG_CPU configured, disable_nonboot_cpus() is not an empty function

Re: [RFC PATCH] mm: introduce N_LRU_MEMORY to distinguish between normal and movable memory

2012-08-14 Thread Christoph Lameter
On Tue, 14 Aug 2012, Hanjun Guo wrote: N_NORMAL_MEMORY means !LRU allocs possible. Ok. I am fine with that change. However this is a significant change that needs to be mentioned prominently in the changelog and there need to be some comments explaining the meaning of these flags clearly in the

[PATCH v2 13/14] ASoC: twl4030: Add pointer to pdata within the private data

2012-08-14 Thread Peter Ujfalusi
Access the pdata via a pointer within the twl4030_priv structure. In preparation for DeviceTree support. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git

[GIT PULL] (xen) stable/for-linus-3.6-rc1-tag

2012-08-14 Thread Konrad Rzeszutek Wilk
Hey Linus, Please pull this tag: git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git stable/for-linus-3.6-rc1-tag which has just one tiny fix - way back in v3.5 we added a mechanism to populate back pages that were released (they overlapped with MMIO regions), but neglected to

[PATCH v2 07/14] MFD: twl4030-audio: Add DT support

2012-08-14 Thread Peter Ujfalusi
Support for loading the twl4030 audio module via devicetree. Sub devices for codec and vibra will be created as mfd devices once the core MFD driver is loaded when the kernel is booted with a DT blob. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

[PATCH v2 08/14] Input: twl4030-vibra: Support for DT booted kernel

2012-08-14 Thread Peter Ujfalusi
Add support when the kernel has been booted with DT blob. In this case the pdata is NULL, we need to reach up to the core node and check if the codec part has been enabled to determine if we need to coexist with the codec or not. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

[PATCH v2 12/14] ASoC: twl4030: Convert to use devm_kzalloc

2012-08-14 Thread Peter Ujfalusi
Allocate the private data with devm_kzalloc. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 27ccea4..413e698 100644 ---

Re: [patch 5/8] fs, epoll: Add procfs fdinfo helper v2

2012-08-14 Thread Pavel Emelyanov
On 08/14/2012 06:03 PM, Cyrill Gorcunov wrote: This allow us to print out eventpoll target file descriptor, events and data, the /proc/pid/fdinfo/fd consists of | pos: 0 | flags: 02 | tfd:5 events: 1d data: This feature is

[PATCH v2 09/14] ASoC: twl4030: Move hs_extmute GPIO handling to driver

2012-08-14 Thread Peter Ujfalusi
The external mute (if it is in use) is handled by a GPIO line. Prepare to remove the set_hs_extmute callback and replace it with: hs_extmute_gpio: the GPIO number to use for external mute When the users of set_hs_extmute has been converted the callback can be removed. Signed-off-by: Peter

Re: [rfc patch] fs,reiserfs: unlock superblock before callling reiserfs_quota_on_mount()

2012-08-14 Thread Steven Rostedt
On Tue, 2012-08-14 at 15:06 +0200, Mike Galbraith wrote: Greetings, Using openSUSE's partitioner gizmo to set up a reiserfs partition with quotas and whatnot enabled rewarded me with a deadlock. Is this just a -rt bug? Can't this deadlock also in mainline? -- Steve In reiserfs/lock.c we

Re: [PATCH v3 3/6] floppy: avoid leaking extra reference to queue on do_floppy_init error handling

2012-08-14 Thread Herton Ronaldo Krzesinski
On Tue, Aug 14, 2012 at 11:03:30AM +0200, Stanislaw Gruszka wrote: On Tue, Aug 14, 2012 at 04:20:39AM +0100, Ben Hutchings wrote: It's totally ridiculous that a driver should have to do this. Any registered disk should have the GENHD_FL_UP flag set... so why can't genhd check it? It

Re: linux-next: Tree for July 26 (uml)

2012-08-14 Thread David Howells
Rusty Russell ru...@rustcorp.com.au wrote: CC arch/x86/um/../kernel/module.o arch/x86/um/../kernel/module.c:96:5: error: redefinition of 'apply_relocate_add' include/linux/moduleloader.h:64:19: note: previous definition of 'apply_relocate_add' was here make[2]: ***

[PATCH v2 06/14] dt: Add empty of_find_node_by_name() function

2012-08-14 Thread Peter Ujfalusi
This commit adds an empty of_find_node_by_name() function for !CONFIG_OF builds. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/of.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/of.h b/include/linux/of.h index 5919ee3..c90e59a

Re: [PATCH v3 3/6] floppy: avoid leaking extra reference to queue on do_floppy_init error handling

2012-08-14 Thread Ben Hutchings
On Tue, 2012-08-14 at 11:03 +0200, Stanislaw Gruszka wrote: On Tue, Aug 14, 2012 at 04:20:39AM +0100, Ben Hutchings wrote: On Mon, 2012-08-13 at 15:16 -0300, Herton Ronaldo Krzesinski wrote: After commit 3f9a5aa (floppy: Cleanup disk-queue before caling put_disk() if add_disk() was never

[PATCH v2 05/14] MFD: twl4030-audio: Get audio MCLK via twl-core API instead of pdata

2012-08-14 Thread Peter Ujfalusi
twl-core has API to get the boot time configured HFCLK rate which has the same rate as the audio MCLK. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mfd/twl4030-audio.c

[PATCH v2 03/14] MFD: twl4030-audio: Rearange and clean-up the probe function

2012-08-14 Thread Peter Ujfalusi
To facilitate the device tree support the probe function need to be rearanged. Small cleanup in the APLL frequency selection part as well. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 34 -- 1 files changed, 16

Using random in interrupts for RT

2012-08-14 Thread Steven Rostedt
Thomas, Ben Hutchings asked me if we still need genirq: Disable random call on preempt-rt for -rt? With commit 902c098a366 random: use lockless techniques in the interrupt path there is no more locks used. But does it still produce high latencies? -- Steve -- To unsubscribe from this list:

Re: [PATCH v2 2/5] x86/uprobes: implement x86 specific arch_uprobe_*_step

2012-08-14 Thread Oleg Nesterov
On 08/14, Sebastian Andrzej Siewior wrote: On 08/13/2012 03:24 PM, Oleg Nesterov wrote: this patch still adds restore_flags into arch_uprobe_task. Yes, but OOPS. Yes, we need a new member in -utask now to record the state of TIF_SINGLESTEP (X86_EFLAGS_TF actually). I meant that, since the

Re: linux-next: Tree for July 26 (uml)

2012-08-14 Thread Richard Weinberger
Am 14.08.2012 16:26, schrieb David Howells: Rusty Russell ru...@rustcorp.com.au wrote: CC arch/x86/um/../kernel/module.o arch/x86/um/../kernel/module.c:96:5: error: redefinition of 'apply_relocate_add' include/linux/moduleloader.h:64:19: note: previous definition of

Re: [PATCH v3 3/6] floppy: avoid leaking extra reference to queue on do_floppy_init error handling

2012-08-14 Thread Herton Ronaldo Krzesinski
On Tue, Aug 14, 2012 at 04:20:39AM +0100, Ben Hutchings wrote: It's totally ridiculous that a driver should have to do this. Any registered disk should have the GENHD_FL_UP flag set... so why can't genhd check it? It doesn't look like floppy is the only driver affected by this problem,

Re: [PATCH] net: Checking usb_register() return value

2012-08-14 Thread Kalle Valo
On 08/14/2012 11:11 AM, Marina Makienko wrote: ath6kl_usb_init() does not check usb_register() return value. As a result it may incorrectly report success of driver initialization. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Marina Makienko

Re: [net PATCH v2 2/2] net: netprio: fd passed in SCM_RIGHTS datagram not set correctly

2012-08-14 Thread John Fastabend
On 8/14/2012 5:55 AM, Neil Horman wrote: On Mon, Aug 13, 2012 at 07:43:27PM -0700, John Fastabend wrote: A socket fd passed in a SCM_RIGHTS datagram was not getting updated with the new tasks cgrp prioidx. This leaves IO on the socket tagged with the old tasks priority. To fix this add a check

[PATCH] mtd: kill MTD_NAND_VERIFY_WRITE

2012-08-14 Thread Huang Shijie
Just as Artem suggested: Both UBI and JFFS2 are able to read verify what they wrote already. There are also MTD tests which do this verification. So I think there is no reason to keep this in the NAND layer, let alone wasting RAM in the driver to support this feature. So kill

Re: [rfc patch] fs,reiserfs: unlock superblock before callling reiserfs_quota_on_mount()

2012-08-14 Thread Mike Galbraith
On Tue, 2012-08-14 at 10:23 -0400, Steven Rostedt wrote: On Tue, 2012-08-14 at 15:06 +0200, Mike Galbraith wrote: Greetings, Using openSUSE's partitioner gizmo to set up a reiserfs partition with quotas and whatnot enabled rewarded me with a deadlock. Is this just a -rt bug? Can't

[PATCH] Powerpc 8xx CPM_UART delay in receive

2012-08-14 Thread Christophe Leroy
Hello, I'm not sure who to address this Patch to either It fixes a delay issue with CPM UART driver on Powerpc MPC8xx. The problem is that with the actual code, the driver waits 32 IDLE patterns before returning the received data to the upper level. It means for instance about 1 second at 300

[PATCH] Powerpc 8xx CPM_UART desynchronisation

2012-08-14 Thread Christophe Leroy
Hello, I'm not sure who to address this Patch to. It fixes a desynchronisation problem with CPM UART driver on Powerpc MPC8xx. The problem happens if data is received before the device is open by the user application. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr ---

Re: [PATCH v3 4/6] floppy: properly handle failure on add_disk loop

2012-08-14 Thread Herton Ronaldo Krzesinski
On Tue, Aug 14, 2012 at 04:31:23AM +0100, Ben Hutchings wrote: On Mon, 2012-08-13 at 15:16 -0300, Herton Ronaldo Krzesinski wrote: On do_floppy_init, if something failed inside the loop we call add_disk, there was no cleanup of previous iterations in the error handling. Cc:

Re: bisected regression: v3.6-rc1: resume from s2ram does not restore ata_piix (v3.5 worked)

2012-08-14 Thread Aaron Lu
On Tue, Aug 14, 2012 at 11:44:20AM +0300, Sergei Trofimovich wrote: The only problem I can see is the offending commit didn't do a gtm for IDE channel during init. It was used to be done in ata_acpi_associate_ide_port. So can you please test if the following code fix your problem?

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