Re: [PATCH] Set bounds on what /proc/self/make-it-fail accepts.

2014-02-19 Thread Andrew Morton
On Tue, 18 Feb 2014 17:06:06 -0500 Dave Jones wrote: > /proc/self/make-it-fail is a boolean, but accepts any number, including > negative ones. Change variable to unsigned, and cap upper bound at 1. > > Signed-off-by: Dave Jones > > diff --git a/fs/proc/base.c b/fs/proc/base.c > index

Re: [PATCH] atm: solos-pci: make solos_bh() as static

2014-02-19 Thread David Miller
From: Daeseok Youn Date: Wed, 19 Feb 2014 14:13:54 +0900 > From 6297aabeff748777b520cc0ee835af0a3ddc79e2 Mon Sep 17 00:00:00 2001 > From: Daeseok Youn > Date: Wed, 19 Feb 2014 10:49:12 +0900 > Subject: [PATCH] atm: solos-pci: make solos_bh() as static > > sparse says: > >

Re: [PATCH] atm: nicstar: use NULL instead of 0 for pointer

2014-02-19 Thread David Miller
From: Daeseok Youn Date: Wed, 19 Feb 2014 14:12:46 +0900 > From c320d2ea1ed51c88255c33a50c74fa3598ab7be6 Mon Sep 17 00:00:00 2001 > From: Daeseok Youn > Date: Wed, 19 Feb 2014 10:10:11 +0900 > Subject: [PATCH] atm: nicstar: use NULL instead of 0 for pointer > > sparse says: > >

Re: [PATCH] atm: ambassador: use NULL instead of 0 for pointer

2014-02-19 Thread David Miller
From: Daeseok Youn Date: Wed, 19 Feb 2014 14:11:15 +0900 > From 932e928d53b1e588dc17019e7f9fa7a61b8b7468 Mon Sep 17 00:00:00 2001 > From: Daeseok Youn > Date: Wed, 19 Feb 2014 10:35:41 +0900 > Subject: [PATCH] atm: ambassador: use NULL instead of 0 for pointer > > sparse says: > >

Re: [PATCH v2] ARM: dts: remove bcm11351-brt.dts

2014-02-19 Thread Christian Daudt
On Wed, Feb 19, 2014 at 1:31 PM, Matt Porter wrote: > The BCM11351 BRT board will never see the light of day. Remove the BRT > dts since it is not maintainable. > > Reviewed-by: Alex Elder > Signed-off-by: Matt Porter > --- > Changes since v1: > - remove bcm11351-brt from Makefile > >

Re: [PATCH] Set bounds on what /proc/self/make-it-fail accepts.

2014-02-19 Thread David Rientjes
On Wed, 19 Feb 2014, Akinobu Mita wrote: > I don't have any plans to extend /proc/self/make-it-fail to support > other than 0 or 1. So I have no objection against this change. > > Reviewed-by: Akinobu Mita > Ok, thanks. I hoped that the simple_strtol() would have been replaced by

Re: [PATCH v2] net: ethoc: document OF bindings

2014-02-19 Thread David Miller
From: Max Filippov Date: Wed, 19 Feb 2014 02:46:50 +0400 > Signed-off-by: Max Filippov Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [RFC] mm:prototype for the updated swapoff implementation

2014-02-19 Thread Andrew Morton
On Tue, 18 Feb 2014 16:35:22 -0800 Kelley Nielsen wrote: > The function try_to_unuse() is of quadratic complexity, with a lot of > wasted effort. It unuses swap entries one by one, potentially iterating > over all the page tables for all the processes in the system for each > one. > > This new

[PATCH v2] ARM: dts: remove bcm11351-brt.dts

2014-02-19 Thread Matt Porter
The BCM11351 BRT board will never see the light of day. Remove the BRT dts since it is not maintainable. Reviewed-by: Alex Elder Signed-off-by: Matt Porter --- Changes since v1: - remove bcm11351-brt from Makefile arch/arm/boot/dts/Makefile | 3 +--

Re: [PATCH] ARM: dts: remove bcm11351-brt.dts

2014-02-19 Thread Matt Porter
On Wed, Feb 19, 2014 at 03:21:29PM -0600, Alex Elder wrote: > On 02/19/2014 02:13 PM, Matt Porter wrote: > > The BCM11351 BRT board will never see the light of day. Remove the BRT > > dts since it is not maintainable. > > > > Signed-off-by: Matt Porter > > Please remove the line in the Makefile

Re: [PATCH v4 0/3] qspinlock: Introducing a 4-byte queue spinlock

2014-02-19 Thread H. Peter Anvin
On 02/19/2014 11:24 AM, Waiman Long wrote: > On 02/19/2014 03:51 AM, Peter Zijlstra wrote: >> On Tue, Feb 18, 2014 at 07:42:20PM -0500, Waiman Long wrote: >>> On 02/18/2014 04:28 PM, Peter Zijlstra wrote: On Tue, Feb 18, 2014 at 02:30:12PM -0500, Waiman Long wrote: > I will start looking

Re: [PATCH net-next] hyperv: Add latest NetVSP versions to auto negotiation

2014-02-19 Thread David Miller
From: Haiyang Zhang Date: Tue, 18 Feb 2014 12:28:54 -0800 > + u32 ver_list[] = {NVSP_PROTOCOL_VERSION_1, NVSP_PROTOCOL_VERSION_2, > + NVSP_PROTOCOL_VERSION_4, NVSP_PROTOCOL_VERSION_5}; Please put a space after "{" and before "}". > + int i, num_ver = 4; /* number of

Re: [PATCH] Drivers: net: ethernet: 3com: 3c589_cs fixed coding style issues

2014-02-19 Thread Justin van Wijngaarden
Thanks for the feedback, I'll try to be less cryptic next time. Also got some good feedback from Joe Perches, so expect a few more patches! :) Justin On Wed, Feb 19, 2014 at 12:13:51PM -0500, Paul Gortmaker wrote: > On 14-02-17 05:58 PM, Justin van Wijngaarden wrote: > > checkpatch.pl clean-up,

Re: [PATCH] ARM: dts: remove bcm11351-brt.dts

2014-02-19 Thread Alex Elder
On 02/19/2014 02:13 PM, Matt Porter wrote: > The BCM11351 BRT board will never see the light of day. Remove the BRT > dts since it is not maintainable. > > Signed-off-by: Matt Porter Please remove the line in the Makefile that refers to this file. Provided you make that change, it looks good to

Re: [ARCH question] Do syscall_get_nr and syscall_get_arguments always work?

2014-02-19 Thread Eric Paris
On Tue, 2014-02-18 at 19:09 -0800, Andy Lutomirski wrote: > On Tue, Feb 18, 2014 at 11:39 AM, Eric Paris wrote: > > Al just indicated to me that on at least ia64, syscall_get_arguments() > > is really expensive. So maybe not a deal breaker, but sounds like we'd > > lose a lot of performance

Re: [PATCH] drivers/tty/serial: deal with 8250_core.c uninitialized warning for good

2014-02-19 Thread Paul Gortmaker
On 14-02-19 03:51 PM, Alan Cox wrote: > On Wed, 2014-02-19 at 15:00 -0500, Paul Gortmaker wrote: >> Every couple of months, someone sends a patch to fix: >> >> drivers/tty/serial/8250/8250_core.c: In function 'serial_unlink_irq_chain': >> drivers/tty/serial/8250/8250_core.c:1712:2: warning: 'i'

Re: [PATCH 2/2] misc: add missing minor nodes

2014-02-19 Thread Lucas De Marchi
On Wed, Feb 19, 2014 at 07:46:02PM +, Mark Jackson wrote: > On 18/02/14 18:52, Greg Kroah-Hartman wrote: > > On Tue, Feb 18, 2014 at 02:27:25AM -0300, Lucas De Marchi wrote: > >> From: Lucas De Marchi > >> > >> Signed-off-by: Lucas De Marchi > >> --- > >> Documentation/devices.txt | 3 +++ >

Re: [BISECTED] Xen HVM guest hangs since 3.12-rc5

2014-02-19 Thread Steven Noonan
On Wed, Feb 19, 2014 at 9:41 AM, Konrad Rzeszutek Wilk wrote: > On Tue, Feb 18, 2014 at 11:16:05PM -0800, Steven Noonan wrote: >> I've been running into problems on an Xen HVM domU. I've got a guest with >> NUMA >> enabled, 60GB of RAM, and 3 disks attached (including root volume). 2 of the >>

[PATCH 1/5] pid: get pid_t ppid of task in init_pid_ns

2014-02-19 Thread Richard Guy Briggs
Added the functions task_ppid_nr_ns() and task_ppid_nr() to abstract the lookup of the PPID (real_parent's pid_t) of a process, including rcu locking, in the arbitrary and init_pid_ns. This provides an alternative to sys_getppid(), which is relative to the child process' pid namespace. (informed

[PATCH 3/5] audit: store audit_pid as a struct pid pointer

2014-02-19 Thread Richard Guy Briggs
- PID will be reported in the relevant querying PID namespace. - Refuse to change the current audit_pid if the new value does not point to an existing process. - Refuse to set the current audit_pid if the new value is not its own PID (unless it is being unset). - Convert audit_pid into the

[PATCH 2/5] audit: convert PPIDs to the inital PID namespace.

2014-02-19 Thread Richard Guy Briggs
sys_getppid() returns the parent pid of the current process in its own pid namespace. Since audit filters are based in the init pid namespace, a process could avoid a filter or trigger an unintended one by being in an alternate pid namespace or log meaningless information. Switch to

[PATCH 5/5] audit: allow user processes to log from another PID namespace

2014-02-19 Thread Richard Guy Briggs
Still only permit the audit logging daemon and control to operate from the initial PID namespace, but allow processes to log from another PID namespace. Cc: "Eric W. Biederman" (informed by ebiederman's c776b5d2) Signed-off-by: Richard Guy Briggs --- kernel/audit.c | 10 +++--- 1 files

[PATCH 4/5] audit: anchor all pid references in the initial pid namespace

2014-02-19 Thread Richard Guy Briggs
Store and log all PIDs with reference to the initial PID namespace and use the access functions task_pid_nr() and task_tgid_nr() for task->pid and task->tgid. Cc: "Eric W. Biederman" (informed by ebiederman's c776b5d2) Signed-off-by: Richard Guy Briggs --- drivers/tty/tty_audit.c

[PATCH 0/5][RFC][v3] steps to make audit pid namespace-safe

2014-02-19 Thread Richard Guy Briggs
This patchset is a revival of some of Eric Biederman's work to make audit pid-namespace-safe. In a couple of places, audit was printing PIDs in the task's pid namespace rather than relative to the audit daemon's pid namespace, which currently is init_pid_ns. It also allows processes to log audit

Re: [PATCH] drivers/tty/serial: deal with 8250_core.c uninitialized warning for good

2014-02-19 Thread Alan Cox
On Wed, 2014-02-19 at 15:00 -0500, Paul Gortmaker wrote: > Every couple of months, someone sends a patch to fix: > > drivers/tty/serial/8250/8250_core.c: In function 'serial_unlink_irq_chain': > drivers/tty/serial/8250/8250_core.c:1712:2: warning: 'i' may be used > uninitialized in this function

Re: [PATCH 1/1] sys_sysfs: Add CONFIG_SYSFS_SYSCALL

2014-02-19 Thread Fabian Frederick
On Thu, 13 Feb 2014 14:43:19 -0800 Andrew Morton wrote: > On Thu, 13 Feb 2014 17:31:41 -0500 Dave Jones wrote: > > > On Thu, Feb 13, 2014 at 10:09:42PM +0800, Fabian Frederick wrote: > > > sys_sysfs is an obsolete system call no longer supported by libc ... > > > -This patch adds a default

[PATCH] ARM: qcom: Copyright marking changes

2014-02-19 Thread Kumar Gala
Code Aurora Forum (CAF) is part of Linux Foundation Labs. Signed-off-by: Kumar Gala --- arch/arm/mach-qcom/platsmp.c | 3 +-- arch/arm/mach-qcom/scm-boot.c | 2 +- arch/arm/mach-qcom/scm-boot.h | 2 +- arch/arm/mach-qcom/scm.c | 2 +- arch/arm/mach-qcom/scm.h | 2 +- 5 files changed,

Re: [PATCH net-next 0/3] bonding: More ether_addr_copy and neatenings.

2014-02-19 Thread David Miller
From: Ding Tianhong Date: Wed, 19 Feb 2014 09:44:54 +0800 > On 2014/2/19 1:42, Joe Perches wrote: >> Joe Perches (3): >> bonding: More use of ether_addr_copy >> bonding: Remove unnecessary else >> bonding: Invert test >> >> drivers/net/bonding/bond_3ad.c | 21 ++--- >>

Re: [PATCH 4/5] audit: anchor all pid references in the initial pid namespace

2014-02-19 Thread Richard Guy Briggs
On 13/12/30, Oleg Nesterov wrote: > On 12/23, Richard Guy Briggs wrote: > > > > Store and log all PIDs with reference to the initial PID namespace and > > use the access functions task_pid_nr() and task_tgid_nr() for task->pid > > and task->tgid rather than access them directly. > > At first

Re: [PATCH 0/4] clk: mvebu: fix clk init order

2014-02-19 Thread Emilio López
Hi Gregory, El 18/02/14 06:47, Gregory CLEMENT escribió: (snip) (...) what would be an acceptable version would be the something like the patch attached. There will be still an issue if old dtb is used with recent kernel, but at least the user will be warned. The patch you attached is similar

Re: Perf Oops on 3.14-rc2

2014-02-19 Thread Peter Zijlstra
On Wed, Feb 19, 2014 at 08:59:08PM +0100, Stephane Eranian wrote: > On Wed, Feb 19, 2014 at 7:36 PM, Peter Zijlstra wrote: > > On Wed, Feb 19, 2014 at 07:03:13PM +0100, Stephane Eranian wrote: > >> I am trying to understand the context here. > >> Are you saying, we may call an offline CPU? > > >

[PATCH 1/1] befs: Replace kmalloc/memset 0 by kzalloc

2014-02-19 Thread Fabian Frederick
Use kzalloc for clean fs_info allocation like other filesystems. Signed-off-by: Fabian Frederick --- fs/befs/linuxvfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 845d2d6..e0002e0 100644 --- a/fs/befs/linuxvfs.c +++

Re: locking changes in tty broke low latency feature

2014-02-19 Thread Peter Hurley
On 02/19/2014 02:17 PM, One Thousand Gnomes wrote: How can the requirement be for both must-handle-in-minimum-time data (low_latency) and the-userspace-reader-isn't-reading-fast-enough- so-its-ok-to-halt-transmission ? Because low latency is about *turn around* time. There are plenty of

Re: [GIT PULL] qcom cleanups for v3.15

2014-02-19 Thread Stephen Boyd
On 02/19/14 11:30, Kumar Gala wrote: > On Feb 19, 2014, at 12:56 PM, Stephen Boyd wrote: > >> Yes the copyright one. > Was going to send that as a separate patch. So no reason to hold up this > pull request on it. > > Ok sounds good. -- Qualcomm Innovation Center, Inc. is a member of Code

[PATCH] ARM: dts: remove bcm11351-brt.dts

2014-02-19 Thread Matt Porter
The BCM11351 BRT board will never see the light of day. Remove the BRT dts since it is not maintainable. Signed-off-by: Matt Porter --- arch/arm/boot/dts/bcm11351-brt.dts | 54 -- 1 file changed, 54 deletions(-) delete mode 100644

Re: [PATCH v4 0/3] qspinlock: Introducing a 4-byte queue spinlock

2014-02-19 Thread Linus Torvalds
On Wed, Feb 19, 2014 at 11:24 AM, Waiman Long wrote: > > We do have a CONFIG_PARAVIRT macro that turns on or off PV support. The > queue spinlock can be easily changed into an unfair lock which allows lock > stealing. We could have a config option to make it unfair in the PARAVIRT > environment,

Re: [PATCH] clk: qcom: Add missing clock at index GCC_XO_CLK for MSM8974

2014-02-19 Thread Stephen Boyd
On 02/19, Ivan T. Ivanov wrote: > From: "Ivan T. Ivanov" > > Accessing GCC on MSM8974 trough < GCC_XO_CLK> lead to NULL s/trough/through/ > pointer dereference. Fix this. > I think you want to get the XO clock from the not yet upstreamed RPM clock driver. This #define is for a gate that is

Re: [PATCH] drivers/tty/serial: deal with 8250_core.c uninitialized warning for good

2014-02-19 Thread Jiri Slaby
On 02/19/2014 09:00 PM, Paul Gortmaker wrote: > Every couple of months, someone sends a patch to fix: > > drivers/tty/serial/8250/8250_core.c: In function 'serial_unlink_irq_chain': > drivers/tty/serial/8250/8250_core.c:1712:2: warning: 'i' may be used > uninitialized in this function

Re: [PATCH 2/2] misc: add missing minor nodes

2014-02-19 Thread Mark Jackson
On 18/02/14 18:52, Greg Kroah-Hartman wrote: > On Tue, Feb 18, 2014 at 02:27:25AM -0300, Lucas De Marchi wrote: >> From: Lucas De Marchi >> >> Signed-off-by: Lucas De Marchi >> --- >> Documentation/devices.txt | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git

[PATCH] drivers/tty/serial: deal with 8250_core.c uninitialized warning for good

2014-02-19 Thread Paul Gortmaker
Every couple of months, someone sends a patch to fix: drivers/tty/serial/8250/8250_core.c: In function 'serial_unlink_irq_chain': drivers/tty/serial/8250/8250_core.c:1712:2: warning: 'i' may be used uninitialized in this function [-Wuninitialized] and they in turn get a NACK for their efforts,

Re: Perf Oops on 3.14-rc2

2014-02-19 Thread Stephane Eranian
On Wed, Feb 19, 2014 at 7:36 PM, Peter Zijlstra wrote: > On Wed, Feb 19, 2014 at 07:03:13PM +0100, Stephane Eranian wrote: >> I am trying to understand the context here. >> Are you saying, we may call an offline CPU? > > Yes, that is what's happening. > >> I saw that sometimes you retry,

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-19 Thread Zoltan Kiss
On 19/02/14 10:05, Ian Campbell wrote: On Tue, 2014-02-18 at 20:36 +, Zoltan Kiss wrote: On 18/02/14 17:06, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: This patch contains the new definitions necessary for grant mapping. Is this just adding a bunch of

[PATCH v2] rcu: ensure kernel/rcu/rcu.h can be sourced/used stand-alone

2014-02-19 Thread Paul Gortmaker
The kbuild test bot uncovered an implicit dependence on the trace header being present before rcu.h in ia64 allmodconfig that looks like this: In file included from kernel/ksysfs.c:22:0: kernel/rcu/rcu.h: In function '__rcu_reclaim': kernel/rcu/rcu.h:107:3: error: implicit declaration of function

Re: [PATCH Resend] Expose do_timer CPU via sysctl to userspace as R/W

2014-02-19 Thread Peter Zijlstra
On Wed, Feb 19, 2014 at 08:43:55PM +0100, Henrik Austad wrote: > The online-part should be taken care of by the cpu_present(), no? No, cpu_present() only means there is a physical CPU present. It might be offline. See the comment in include/linux/cpumask.h -- To unsubscribe from this list: send

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-19 Thread Linus Torvalds
On Wed, Feb 19, 2014 at 6:40 AM, Torvald Riegel wrote: > > If all those other threads written in whichever way use the same memory > model and ABI for synchronization (e.g., choice of HW barriers for a > certain memory_order), it doesn't matter whether it's a hardware thread, > microcode,

Re: [PATCH v4 0/3] qspinlock: Introducing a 4-byte queue spinlock

2014-02-19 Thread Peter Zijlstra
On Wed, Feb 19, 2014 at 02:24:49PM -0500, Waiman Long wrote: > On 02/19/2014 03:51 AM, Peter Zijlstra wrote: > >On Tue, Feb 18, 2014 at 07:42:20PM -0500, Waiman Long wrote: > >>On 02/18/2014 04:28 PM, Peter Zijlstra wrote: > >>>On Tue, Feb 18, 2014 at 02:30:12PM -0500, Waiman Long wrote: > I

Re: [PATCH Resend] Expose do_timer CPU via sysctl to userspace as R/W

2014-02-19 Thread Henrik Austad
On Wed, Feb 19, 2014 at 05:42:07PM +0100, Thomas Gleixner wrote: > On Wed, 19 Feb 2014, hen...@austad.us wrote: > > From: Henrik Austad > > > > Looks like this got dropped by vger a few days ago, resending. > > > > This allows everybody in a system to read which core is currently > > running

Re: [PATCH 3/5] audit: add netlink audit protocol bind to check capabilities on multicast join

2014-02-19 Thread Richard Guy Briggs
On 14/02/19, Eric Paris wrote: > On Wed, 2014-02-19 at 13:08 -0500, Richard Guy Briggs wrote: > > Register a netlink per-protocol bind fuction for audit to check userspace > > process capabilities before allowing a multicast group connection. > > > > Signed-off-by: Richard Guy Briggs > > --- > >

Re: [RFC PATCH] mm: exclude memory less nodes from zone_reclaim

2014-02-19 Thread Michal Hocko
On Wed 19-02-14 09:49:41, Nishanth Aravamudan wrote: > On 19.02.2014 [18:32:59 +0100], Michal Hocko wrote: > > On Wed 19-02-14 09:16:28, Nishanth Aravamudan wrote: [...] > > > I don't think this will work, because what sets N_HIGH_MEMORY (and > > > shouldn't it be N_MEMORY?) > > > > This should

Re: Perf Oops on 3.14-rc2

2014-02-19 Thread Drew Richardson
On Wed, Feb 19, 2014 at 04:28:19PM +, Peter Zijlstra wrote: > On Tue, Feb 18, 2014 at 10:18:31AM +, Will Deacon wrote: > > On Mon, Feb 10, 2014 at 10:17:59PM +, Drew Richardson wrote: > > > While adding CPU on/offlining support during perf captures I get an > > > Oops both on ARM as

Re: [PATCH] audit: add arch field to seccomp event log

2014-02-19 Thread Richard Guy Briggs
On 14/02/18, Richard Guy Briggs wrote: > On 14/02/18, Steve Grubb wrote: > > On Tuesday, February 18, 2014 03:50:44 PM Richard Guy Briggs wrote: > > > > missing '=' but this isn't what audit_get_context() does... it's > > > > crappy naming...I'd think a combo of audit_dummy_context() and >

Re: [ovs-dev] [PATCH net-next] openvswitch: Use ether_addr_copy

2014-02-19 Thread Pravin Shelar
Jesse is on vacation. So I applied it to ovs master. Thanks. On Tue, Feb 18, 2014 at 3:15 PM, David Miller wrote: > From: Joe Perches > Date: Tue, 18 Feb 2014 11:15:45 -0800 > >> It's slightly smaller/faster for some architectures. >> >> Signed-off-by: Joe Perches > > I'll let Jesse take this

Re: [PATCH v4 1/3] qspinlock: Introducing a 4-byte queue spinlock implementation

2014-02-19 Thread Waiman Long
On 02/19/2014 03:55 AM, Peter Zijlstra wrote: On Tue, Feb 18, 2014 at 07:58:49PM -0500, Waiman Long wrote: On 02/18/2014 04:37 PM, Peter Zijlstra wrote: On Tue, Feb 18, 2014 at 02:39:31PM -0500, Waiman Long wrote: + /* +* At the head of the wait queue now +*/ +

Re: [GIT PULL] qcom cleanups for v3.15

2014-02-19 Thread Kumar Gala
On Feb 19, 2014, at 12:56 PM, Stephen Boyd wrote: > On 02/19/14 07:20, Kumar Gala wrote: >> On Feb 18, 2014, at 6:06 PM, Stephen Boyd wrote: >> >>> On 02/10/14 15:23, Kumar Gala wrote: Kumar Gala (6): ARM: dts: msm: split out msm8660 and msm8960 soc into dts include

Re: [PATCH -mm 0/3] fix numa vs kvm scalability issue

2014-02-19 Thread Andrew Morton
On Wed, 19 Feb 2014 09:59:17 +0100 Peter Zijlstra wrote: > On Tue, Feb 18, 2014 at 05:12:43PM -0500, r...@redhat.com wrote: > > The NUMA scanning code can end up iterating over many gigabytes > > of unpopulated memory, especially in the case of a freshly started > > KVM guest with lots of

Re: [PATCH v6 4/4] i2c, i2c_imc: Add DIMM bus code

2014-02-19 Thread One Thousand Gnomes
> example, lots of graphics drivers provide i2c busses, and those busses > often contain eeproms, and, in theory, things should know that the > eeprom is associated with a particular graphics port, for example. > Unfortunately, the i2c core does not know that, things like > decode-dimms will try

Re: [PATCH v4 1/3] qspinlock: Introducing a 4-byte queue spinlock implementation

2014-02-19 Thread Waiman Long
On 02/19/2014 03:52 AM, Peter Zijlstra wrote: On Tue, Feb 18, 2014 at 07:50:13PM -0500, Waiman Long wrote: On 02/18/2014 04:34 PM, Peter Zijlstra wrote: On Tue, Feb 18, 2014 at 02:39:31PM -0500, Waiman Long wrote: The #ifdef is harder to take away here. The point is that doing a 32-bit

Re: [PATCH v4 0/3] qspinlock: Introducing a 4-byte queue spinlock

2014-02-19 Thread Waiman Long
On 02/19/2014 03:51 AM, Peter Zijlstra wrote: On Tue, Feb 18, 2014 at 07:42:20PM -0500, Waiman Long wrote: On 02/18/2014 04:28 PM, Peter Zijlstra wrote: On Tue, Feb 18, 2014 at 02:30:12PM -0500, Waiman Long wrote: I will start looking at how to make it work with paravirt. Hopefully, it won't

Re: [PATCH v2 2/3] usb: chipidea: msm: Add device tree support

2014-02-19 Thread Sergei Shtylyov
Hello. On 02/19/2014 06:48 PM, Ivan T. Ivanov wrote: From: "Ivan T. Ivanov" Allows controller to be specified via device tree. Pass PHY phandle specified in DT to core driver. Signed-off-by: Ivan T. Ivanov --- drivers/usb/chipidea/ci_hdrc_msm.c | 23 ++- 1

Re: [PATCH] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-19 Thread Alexander Gordeev
On Wed, Feb 19, 2014 at 11:09:27AM -0700, Jon Mason wrote: > > diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c > > index 170e8e6..fda37eb 100644 > > --- a/drivers/ntb/ntb_hw.c > > +++ b/drivers/ntb/ntb_hw.c > > @@ -1085,21 +1085,15 @@ static int ntb_setup_msix(struct ntb_device *ndev) > >

Re: [PATCH net-next v5 1/9] xen-netback: Introduce TX grant map definitions

2014-02-19 Thread Zoltan Kiss
On 18/02/14 17:24, Ian Campbell wrote: On Mon, 2014-01-20 at 21:24 +, Zoltan Kiss wrote: + spinlock_t dealloc_lock; + spinlock_t response_lock; Please add comments to both of these describing what bits of the datastructure they are locking. You might find it is clearer to

Re: [PATCH] of_mdio: fix phy interrupt passing

2014-02-19 Thread Sergei Shtylyov
Hello. On 02/17/2014 08:48 PM, Florian Fainelli wrote: The of_mdiobus_register_phy() is not setting phy->irq this causing some drivers to incorrectly assume that the PHY does not have an IRQ associated with it or install an interrupt handler for the PHY. Simplify the code setting irq and

Re: locking changes in tty broke low latency feature

2014-02-19 Thread One Thousand Gnomes
> How can the requirement be for both must-handle-in-minimum-time data > (low_latency) and the-userspace-reader-isn't-reading-fast-enough- > so-its-ok-to-halt-transmission ? Because low latency is about *turn around* time. There are plenty of protocols that can flow control, do flow control and

Re: [PATCH 3/5] audit: add netlink audit protocol bind to check capabilities on multicast join

2014-02-19 Thread Eric Paris
On Wed, 2014-02-19 at 13:08 -0500, Richard Guy Briggs wrote: > Register a netlink per-protocol bind fuction for audit to check userspace > process capabilities before allowing a multicast group connection. > > Signed-off-by: Richard Guy Briggs > --- > kernel/audit.c | 10 ++ > 1 files

Re: [RFC v2 2/4] net: enables interface option to skip IP

2014-02-19 Thread Zoltan Kiss
On 19/02/14 17:20, Luis R. Rodriguez wrote: On Wed, Feb 19, 2014 at 8:45 AM, Dan Williams wrote: On Tue, 2014-02-18 at 13:19 -0800, Luis R. Rodriguez wrote: On Mon, Feb 17, 2014 at 12:23 PM, Dan Williams wrote: On Fri, 2014-02-14 at 18:59 -0800, Luis R. Rodriguez wrote: From: "Luis R.

Re: [PATCH RFC v1 3/3] ARM hibernation / suspend-to-disk

2014-02-19 Thread Russ Dill
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/19/2014 08:12 AM, Lorenzo Pieralisi wrote: + * https://patchwork.kernel.org/patch/96442/ I think the idea here is to get the CPU into a state so that later when we resume from the resume kernel, the actual CPU state matches the state we have

Re: [workqueue] BUG: unable to handle kernel paging request at ffff880000798f60

2014-02-19 Thread Tejun Heo
On Wed, Feb 19, 2014 at 01:46:14PM +0100, Peter Zijlstra wrote: > On Wed, Feb 19, 2014 at 08:41:22PM +0800, Fengguang Wu wrote: > > Greetings, > > > > I got the below dmesg and the first bad commit is > > > > git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git > > > > commit

RE: [PATCH v6 4/4] i2c, i2c_imc: Add DIMM bus code

2014-02-19 Thread Luck, Tony
> (I'm c/c Tony here, as he also shared the same concern that I had on a > previous feedback about using I2C to talk with the DIMM). Correct - I've heard the same issues that reads on I2C can be misinterpreted as writes ... and oops, you have a brick. What is the larger context/ What problem

Re: [PATCH] backing_dev: Fix hung task on sync

2014-02-19 Thread Tejun Heo
Hello, Jan. On Wed, Feb 19, 2014 at 10:27:31AM +0100, Jan Kara wrote: > You are the workqueue expert so you may know better ;) But the way I > understand it is that queue_delayed_work() does nothing if the timer is > already running. Since we queue flusher work to run either immediately or >

Re: [PATCH v6 4/4] i2c, i2c_imc: Add DIMM bus code

2014-02-19 Thread Mauro Carvalho Chehab
(I'm c/c Tony here, as he also shared the same concern that I had on a previous feedback about using I2C to talk with the DIMM). Em Wed, 19 Feb 2014 09:30:46 -0800 Andy Lutomirski escreveu: > On Wed, Feb 19, 2014 at 7:16 AM, Wolfram Sang wrote: > > On Fri, Dec 20, 2013 at 05:45:13PM -0800,

Re: ppc: RECLAIM_DISTANCE 10?

2014-02-19 Thread Nishanth Aravamudan
On 18.02.2014 [17:43:38 -0800], David Rientjes wrote: > On Tue, 18 Feb 2014, Nishanth Aravamudan wrote: > > > How about the following? > > > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > index 5de4337..1a0eced 100644 > > --- a/mm/page_alloc.c > > +++ b/mm/page_alloc.c > > @@ -1854,7

Re: [GIT PULL] qcom cleanups for v3.15

2014-02-19 Thread Stephen Boyd
On 02/19/14 07:20, Kumar Gala wrote: > On Feb 18, 2014, at 6:06 PM, Stephen Boyd wrote: > >> On 02/10/14 15:23, Kumar Gala wrote: >>> Kumar Gala (6): >>> ARM: dts: msm: split out msm8660 and msm8960 soc into dts include >>> ARM: msm: kill off hotplug.c >>> clocksource: qcom: Move

Re: [PATCH RESEND v3] clk: return probe defer when DT clock not yet ready

2014-02-19 Thread Russell King - ARM Linux
On Wed, Feb 19, 2014 at 07:03:05PM +0100, Jean-Francois Moine wrote: > On Mon, 25 Nov 2013 19:47:04 +0100 > Jean-Francois Moine wrote: > > > At probe time, a clock device may not be ready when some other device > > wants to use it. > > > > This patch lets the functions clk_get/devm_clk_get

[PATCH] sched/deadline: Fix overflow to handle period==0 and deadline!=0

2014-02-19 Thread Steven Rostedt
While debugging the crash with the bad nr_running accounting, I hit another bug where, after running my sched deadline test, I was getting failures to take a CPU offline. It was giving me a -EBUSY error. Adding a bunch of trace_printk()s around, I found that the cpu notifier that called

Re: locking changes in tty broke low latency feature

2014-02-19 Thread Peter Hurley
On 02/19/2014 01:12 PM, Grant Edwards wrote: On 2014-02-19, Peter Hurley wrote: On 02/19/2014 11:55 AM, Grant Edwards wrote: setserial has low_latency option which should minimize receive latency (scheduler delay). AFAICT it is used if someone talk to external device via RS-485/RS-232 and

[PATCH] gpio: document polarity flag best practices

2014-02-19 Thread Stephen Warren
From: Stephen Warren Document what we (Laurent and I, following a mailing list dicussion) believe are best practices for the polarity flag in a GPIO specifier. While touching the doc, I made a few minor editing changes to other areas. Suggested-by: Laurent Pinchart Signed-off-by: Stephen

Re: sched: fair: NULL ptr deref in check_preempt_wakeup

2014-02-19 Thread Peter Zijlstra
On Wed, Feb 19, 2014 at 01:10:22PM -0500, Sasha Levin wrote: > On 02/17/2014 09:26 PM, Michael wang wrote: > >On 02/17/2014 05:20 PM, Peter Zijlstra wrote: > >[snip] > > static void switched_to_fair(struct rq *rq, struct task_struct *p) > > { > >-if (!p->se.on_rq) > >+

Re: Perf Oops on 3.14-rc2

2014-02-19 Thread Peter Zijlstra
On Wed, Feb 19, 2014 at 07:03:13PM +0100, Stephane Eranian wrote: > I am trying to understand the context here. > Are you saying, we may call an offline CPU? Yes, that is what's happening. > I saw that sometimes you retry, sometimes you don't. I tried to do exactly what we do for the task case

[PATCH v2] intel_pstate: Use LFM bus ratio as min ratio/P state

2014-02-19 Thread dirk . brandewie
From: Dirk Brandewie LFM (max efficiency ratio) is the max frequency at minimum voltage supported by the processor. Using LFM as the minimum P state increases performmance without affecting power. By not using P states below LFM we avoid using P states that are less power efficient.

Re: [PATCH v2 2/4] mei: Add include of

2014-02-19 Thread Bjorn Helgaas
On Wed, Feb 19, 2014 at 1:29 AM, Winkler, Tomas wrote: > > >> >> We currently include in , but I'm about to >> remove that from linux/pci.h, so add explicit includes where needed. >> >> Signed-off-by: Bjorn Helgaas >> --- >> drivers/misc/mei/hw-me.h |1 + >> 1 file changed, 1 insertion(+)

Re: [PATCH 0/5] intel_pstate updates for v3.14-rcX

2014-02-19 Thread Dirk Brandewie
On 02/18/2014 04:53 PM, Rafael J. Wysocki wrote: On Tuesday, February 18, 2014 04:35:26 PM Dirk Brandewie wrote: On 02/18/2014 04:43 PM, Rafael J. Wysocki wrote: On Tuesday, February 18, 2014 04:24:02 PM Dirk Brandewie wrote: On Tuesday, February 18, 2014, Rafael J. Wysocki wrote: On

[PATCH] softirq: stable v3.1[23] (others?) have screaming tasklet disease - ksoftirqd[random] eats 100% CPU

2014-02-19 Thread Mike Galbraith
I'm seeing ksoftirqd chewing 100% CPU on one or more CPUs in both 3.12 and 3.13, as below in a 40 core (+smt) box. It should look very familiar to CCs, especially Ingo. Below, tasklet is disabled by ioat2_free_chan_resources, and what I presume was systemd-udevd-1050 starts screaming when it

Re: [PATCH 0/7][RFC] pid: changes to support audit

2014-02-19 Thread Richard Guy Briggs
On 14/02/19, Oleg Nesterov wrote: > Richard, Hi Oleg, > I am sorry for delay, I'll try to review this series tomorrow. > > But at first glance, can't you send 2/7 first and join 1/7 and 3/7? Yes, Peter made the same observation. I thought it was more useful to have them seperated out, but

Re: locking changes in tty broke low latency feature

2014-02-19 Thread Grant Edwards
On 2014-02-19, Peter Hurley wrote: > On 02/19/2014 11:55 AM, Grant Edwards wrote: > setserial has low_latency option which should minimize receive latency > (scheduler delay). AFAICT it is used if someone talk to external device > via RS-485/RS-232 and need to have quick requests and

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-19 Thread Torvald Riegel
On Wed, 2014-02-19 at 07:23 -0800, David Lang wrote: > On Tue, 18 Feb 2014, Torvald Riegel wrote: > > > On Tue, 2014-02-18 at 22:40 +0100, Peter Zijlstra wrote: > >> On Tue, Feb 18, 2014 at 10:21:56PM +0100, Torvald Riegel wrote: > >>> Well, that's how atomics that aren't volatile are defined in

Re: [PATCH v5 2/2] memory: ti-aemif: add bindings for AEMIF driver

2014-02-19 Thread Mark Rutland
On Wed, Feb 19, 2014 at 01:40:10PM +, Ivan Khoronzhuk wrote: > Add bindings for TI Async External Memory Interface (AEMIF) controller. > > The Async External Memory Interface (EMIF16/AEMIF) controller is intended to > provide a glue-less interface to a variety of asynchronous memory devices

Re: sched: fair: NULL ptr deref in check_preempt_wakeup

2014-02-19 Thread Sasha Levin
On 02/17/2014 09:26 PM, Michael wang wrote: On 02/17/2014 05:20 PM, Peter Zijlstra wrote: [snip] >> static void switched_to_fair(struct rq *rq, struct task_struct *p) >> { >>- if (!p->se.on_rq) >>+ struct sched_entity *se = >se; >>+#ifdef CONFIG_FAIR_GROUP_SCHED >>+

[PATCH 1/5] audit: move kaudit thread start from auditd registration to kaudit init

2014-02-19 Thread Richard Guy Briggs
The kauditd_thread() task was started only after the auditd userspace daemon registers itself with kaudit. This was fine when only auditd consumed messages from the kaudit netlink unicast socket. With the addition of a multicast group to that socket it is more convenient to have the thread start

[PATCH 4/5] audit: add netlink multicast group for log read

2014-02-19 Thread Richard Guy Briggs
Add a netlink multicast socket with one group to kaudit for "best-effort" delivery to read-only userspace clients such as systemd, in addition to the existing bidirectional unicast auditd userspace client. Currently, auditd is intended to use the CAP_AUDIT_CONTROL and CAP_AUDIT_WRITE

Re: [PATCH] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-19 Thread Jon Mason
On Wed, Feb 19, 2014 at 11:15:21AM +0100, Alexander Gordeev wrote: > As result of deprecation of MSI-X/MSI enablement functions > pci_enable_msix() and pci_enable_msi_block() all drivers > using these two interfaces need to be updated to use the > new pci_enable_msi_range() and

[PATCH 2/5] netlink: have netlink per-protocol bind function return an error code.

2014-02-19 Thread Richard Guy Briggs
Have the netlink per-protocol optional bind function return an error code rather than void to signal a failure. This will enable netlink protocols to perform extra checks including capabilities and permissions verifications when updating memberships in multicast groups. Signed-off-by: Richard

sched: hang in migrate_swap

2014-02-19 Thread Sasha Levin
Hi all, While fuzzing with trinity inside a KVM tools guest, running latest -next kernel, I see to hit the following hang quite often. The initial spew is: [ 293.110057] BUG: soft lockup - CPU#8 stuck for 22s! [migration/8:258] [ 293.110057] Modules linked in: [ 293.110057] irq event

[PATCH 3/5] audit: add netlink audit protocol bind to check capabilities on multicast join

2014-02-19 Thread Richard Guy Briggs
Register a netlink per-protocol bind fuction for audit to check userspace process capabilities before allowing a multicast group connection. Signed-off-by: Richard Guy Briggs --- kernel/audit.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/kernel/audit.c

[PATCH 0/5] audit: add restricted capability read-only netlink multicast socket

2014-02-19 Thread Richard Guy Briggs
Hi, This patch set adds a restricted capability read-only netlink multicast socket to kaudit to enable userspace clients such as systemd to consume audit logs, in addition to the existing bidirectional auditd userspace client. Currently, auditd has the CAP_AUDIT_CONTROL and CAP_AUDIT_WRITE

[PATCH 5/5] audit: send multicast messages only if there are listeners

2014-02-19 Thread Richard Guy Briggs
Test first to see if there are any userspace multicast listeners bound to the socket before starting the multicast send work. Signed-off-by: Richard Guy Briggs --- kernel/audit.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index

Re: [PATCH 06/17] spi: pl022: Let runtime PM callbacks be available for CONFIG_PM

2014-02-19 Thread Ulf Hansson
On 19 February 2014 16:10, Mark Brown wrote: > On Wed, Feb 19, 2014 at 03:20:07PM +0100, Ulf Hansson wrote: > >> Also note that, Russell has already applied the corresponding part in >> the amba bus (patch 1) > > Why would this depend on an AMBA patch and if it does surely the two > need to be

Re: [PATCH 3/3] ahci: st: Add support for ST's SATA IP

2014-02-19 Thread Tejun Heo
On Wed, Feb 19, 2014 at 05:40:41PM +, Lee Jones wrote: > Have you listened to a word I've said? Or have you managed to get your > self all tangled up in what you _assumed_ was meant by the 3 words I > mentioned about fairness at the very start of this conversation? Me > thinks the latter might

Re: Perf Oops on 3.14-rc2

2014-02-19 Thread Stephane Eranian
Peter, On Wed, Feb 19, 2014 at 5:28 PM, Peter Zijlstra wrote: > On Tue, Feb 18, 2014 at 10:18:31AM +, Will Deacon wrote: >> On Mon, Feb 10, 2014 at 10:17:59PM +, Drew Richardson wrote: >> > While adding CPU on/offlining support during perf captures I get an >> > Oops both on ARM as well

Re: [PATCHv2 1/8] ARM: at91: Add at91sam9rl DT SoC support

2014-02-19 Thread Mark Rutland
On Wed, Feb 19, 2014 at 05:31:42PM +, Alexandre Belloni wrote: > On 19/02/2014 at 17:00:20 +, Mark Rutland wrote : > > On Wed, Feb 19, 2014 at 03:32:24PM +, Alexandre Belloni wrote: > > > This adds preliminary DT support for the at91sam9rl. > > > > > > Signed-off-by: Alexandre Belloni

Re: [PATCH RESEND v3] clk: return probe defer when DT clock not yet ready

2014-02-19 Thread Jean-Francois Moine
On Mon, 25 Nov 2013 19:47:04 +0100 Jean-Francois Moine wrote: > At probe time, a clock device may not be ready when some other device > wants to use it. > > This patch lets the functions clk_get/devm_clk_get return a probe defer > when the clock is defined in the DT but not yet available. Hi

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