[PATCH 09/14] MIPS: OCTEON: Add ability to used an initrd from a named memory block.

2014-12-15 Thread Aleksey Makarov
From: David Daney If 'rd_name=xxx' is passed to the kernel, the named block with name 'xxx' is used for the initrd. Signed-off-by: David Daney Signed-off-by: Leonid Rosenboim [aleksey.maka...@auriga.com: conflict resolution] Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/setup.c

Re: [RFC PATCH 2/2] iommu: rockchip: Handle system-wide and runtime PM

2014-12-15 Thread Kevin Hilman
Geert Uytterhoeven writes: > On Fri, Dec 12, 2014 at 9:04 PM, Kevin Hilman wrote: >> An even more exciting problem exists when a CPU is in the same domain as >> other peripherals, those peripherals are all idle and the power domain >> is gated. :) > > We do have pm_genpd_attach_cpuidle() and

[PATCH 13/14] MIPS: OCTEON: Add register definitions for OCTEON III reset unit.

2014-12-15 Thread Aleksey Makarov
From: David Daney Needed by follow-on patches. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/include/asm/octeon/cvmx-rst-defs.h | 441 +++ 1 file changed, 441 insertions(+) create mode 100644 arch/mips/include/asm/octeon/cvmx-rst-defs.h

[PATCH 12/14] MIPS: OCTEON: Update octeon-model.h code for new SoCs.

2014-12-15 Thread Aleksey Makarov
From: David Daney Add coverage for OCTEON III models. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/include/asm/octeon/octeon-model.h | 65 - 1 file changed, 63 insertions(+), 2 deletions(-) diff --git

[PATCH 14/14] MIPS: OCTEON: Handle OCTEON III in csrc-octeon.

2014-12-15 Thread Aleksey Makarov
From: David Daney The clock divisors are kept in different registers on OCTEON III. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/csrc-octeon.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/cavium-octeon/csrc-octeon.c

[PATCH 10/14] MIPS: OCTEON: Add little-endian support to asm/octeon/octeon.h

2014-12-15 Thread Aleksey Makarov
From: David Daney Also update union octeon_cvmemctl with new OCTEON II fields. Signed-off-by: David Daney [aleksey.maka...@auriga.com: use __BITFIELD_FIELD] Signed-off-by: Aleksey Makarov --- arch/mips/include/asm/octeon/octeon.h | 135 ++ 1 file changed, 105

[PATCH 08/14] MIPS: OCTEON: Don't do acknowledge operations for level triggered irqs.

2014-12-15 Thread Aleksey Makarov
From: David Daney The acknowledge bits don't exist for level triggered irqs, so setting them causes the simulator to terminate. Signed-off-by: David Daney Signed-off-by: Leonid Rosenboim Signed-off-by: Aleksey Makarov --- arch/mips/cavium-octeon/octeon-irq.c | 45

[PATCH 05/14] MIPS: OCTEON: Delete unused COP2 saving code

2014-12-15 Thread Aleksey Makarov
Commit 2c952e06e4f5 ("MIPS: Move cop2 save/restore to switch_to()") removes assembler code to store COP2 registers. Commit a36d8225bceb ("MIPS: OCTEON: Enable use of FPU") mistakenly restores it Fixes: a36d8225bceb ("MIPS: OCTEON: Enable use of FPU") Signed-off-by: Aleksey Makarov ---

[PATCH 03/14] MIPS: OCTEON: Save and restore CP2 SHA3 state

2014-12-15 Thread Aleksey Makarov
From: David Daney Allocate new save space, and then save/restore the registers if OCTEON III. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/include/asm/processor.h | 2 ++ arch/mips/kernel/asm-offsets.c| 1 + arch/mips/kernel/octeon_switch.S | 43

[PATCH 02/14] MIPS: OCTEON: Fix FP context save.

2014-12-15 Thread Aleksey Makarov
From: David Daney It wasn't being saved on task switch. Signed-off-by: David Daney Signed-off-by: Aleksey Makarov --- arch/mips/kernel/octeon_switch.S | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/arch/mips/kernel/octeon_switch.S

[PATCH 01/14] MIPS: OCTEON: Save/Restore wider multiply registers in OCTEON III CPUs

2014-12-15 Thread Aleksey Makarov
From: David Daney The wide multiplier is twice as wide, so we need to save twice as much state. Detect the multiplier type (CPU type) at start up and install model specific handlers. Signed-off-by: David Daney Signed-off-by: Leonid Rosenboim [aleksey.maka...@auriga.com: conflict

[PATCH 04/14] MIPS: OCTEON: Use correct instruction to read 64-bit COP0 register

2014-12-15 Thread Aleksey Makarov
From: Chandrakala Chavva Use dmfc0/dmtc0 instructions for reading CvmMemCtl COP0 register, its a 64-bit wide. Signed-off-by: Chandrakala Chavva Signed-off-by: Aleksey Makarov --- arch/mips/kernel/octeon_switch.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[GIT PULL] xen: additional features for 3.19-rc0

2014-12-15 Thread David Vrabel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git stable/for-linus-3.19-rc0b-tag xen: additional features for 3.19-rc0 - - Linear p2m for x86 PV guests which simplifies the p2m code, improves

[PATCH 00/14] MIPS: OCTEON: Some partial support for Octeon III

2014-12-15 Thread Aleksey Makarov
These patches fix some issues in the Cavium Octeon code and introduce some partial support for Octeon III and little-endian. Aleksey Makarov (1): MIPS: OCTEON: Delete unused COP2 saving code Chandrakala Chavva (1): MIPS: OCTEON: Use correct instruction to read 64-bit COP0 register David

Re: [PATCH 2/6] bitops.h: add sign_extend16 function

2014-12-15 Thread Martin Kepplinger
Am 2014-12-15 um 17:18 schrieb Martin Kepplinger: > This adds sign_exten16 to sign extend any signed value shorter than 16 bits > to a s16. > > Signed-off-by: Martin Kepplinger > --- if you feel motivated, you can add this to the commit message: Suggested-by: Christoph Muellner -- To

[PATCH] bitops.h: add sign_extend64() function

2014-12-15 Thread Martin Kepplinger
This adds sign_exten64 to sign extend any signed value shorter than 64 bits to a s64. Signed-off-by: Martin Kepplinger Suggested-by: Christoph Muellner --- Without looking for it's users yet: This applies on top of it's 8 and 16 bit friends. This reminded me of giving credit for the initial

Re: [PATCH v5 1/3] gpio: Cygnus: define Broadcom Cygnus GPIO binding

2014-12-15 Thread Arnd Bergmann
On Friday 12 December 2014 22:05:37 Alexandre Courbot wrote: > On Fri, Dec 12, 2014 at 9:08 PM, Arnd Bergmann wrote: > > On Thursday 11 December 2014 16:05:04 Ray Jui wrote: > >> + > >> +- linux,gpio-base: > >> +Base GPIO number of this controller > >> + > >> > > > > We've NAK'ed properties

Re: [PATCH v2 2/4] PCI: iproc: Add Broadcom iProc PCIe driver

2014-12-15 Thread Arnd Bergmann
On Friday 12 December 2014 09:08:48 Ray Jui wrote: > > On 12/12/2014 4:29 AM, Arnd Bergmann wrote: > > On Thursday 11 December 2014 18:36:55 Ray Jui wrote: > >> Add initial version of the Broadcom iProc PCIe driver. This driver > >> has been tested on NSP and Cygnus and is expected to work on all

Re: [PATCH v3 1/8] soc: mediatek: Add PMIC wrapper for MT8135 and MT6397 SoC

2014-12-15 Thread Arnd Bergmann
On Thursday 11 December 2014 18:04:15 Flora Fu wrote: > On Tue, 2014-12-09 at 12:20 +0100, Arnd Bergmann wrote: > > On Tuesday 09 December 2014 11:30:15 Matthias Brugger wrote: > > > 2014-12-09 11:13 GMT+01:00 Sascha Hauer : > > > > On Tue, Dec 09, 2014 at 09:23:18AM +0100, Arnd Bergmann wrote: >

[PATCH 1/1] exit: fix race between wait_consider_task() and wait_task_zombie()

2014-12-15 Thread Oleg Nesterov
wait_consider_task() checks EXIT_ZOMBIE after EXIT_DEAD/EXIT_TRACE and both checks can fail if we race with EXIT_ZOMBIE -> EXIT_DEAD/EXIT_TRACE change in between, gcc needs to reload p->exit_state after security_task_wait(). In this case ->notask_error will be wrongly cleared and do_wait() can

[PATCH 0/1] exit: fix race between wait_consider_task() and wait_task_zombie()

2014-12-15 Thread Oleg Nesterov
Andrew, I think this is v3.19/stable material. Just in case, this bug is old, it wasn't introduced by the recent changes. Oleg. -- 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: [PATCH] arm64: psci: Fix build breakage without PM_SLEEP

2014-12-15 Thread Catalin Marinas
On Fri, Dec 12, 2014 at 03:06:08PM +, Lorenzo Pieralisi wrote: > On Tue, Dec 09, 2014 at 04:15:11PM +, Catalin Marinas wrote: > > On Tue, Dec 09, 2014 at 12:38:09PM +, Krzysztof Kozlowski wrote: > > > On wto, 2014-12-09 at 13:29 +0100, Arnd Bergmann wrote: > > > > On Tuesday 09

[PATCH v3 2/2] KVM: arm/arm64: vgic: add init entry to VGIC KVM device

2014-12-15 Thread Eric Auger
Since the advent of VGIC dynamic initialization, this latter is initialized quite late on the first vcpu run or "on-demand", when injecting an IRQ or when the guest sets its registers. This initialization could be initiated explicitly much earlier by the users-space, as soon as it has provided

[PATCH v3 0/2] VGIC early initialization initiated by user-space

2014-12-15 Thread Eric Auger
Since the advent of VGIC dynamic initialization, this latter is initialized quite late on the first vcpu run or "on-demand", when injecting an IRQ or when the guest sets its registers. This series now allows the user space to explicitly request the VGIC init, when the dimensioning parameters have

[PATCH v3 1/2] KVM: arm/arm64: vgic: vgic_init returns -ENODEV when no online vcpu

2014-12-15 Thread Eric Auger
To be more explicit on vgic initialization failure, -ENODEV is returned by vgic_init when no online vcpus can be found at init. Signed-off-by: Eric Auger --- v2 -> v3: vgic_init_maps was renamed into vgic_init --- virt/kvm/arm/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[git pull] FireWire (IEEE 1394) updates post v3.18

2014-12-15 Thread Stefan Richter
Linus, please pull from the tag "firewire-updates" at git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git firewire-updates to receive the following IEEE 1394 subsystem updates: Clean up firewire-ohci's longlived vm-mapping; use target instance lock instead of core lock in

Re: [PATCH] regmap:change spinlock_flags into the union

2014-12-15 Thread Mark Brown
On Mon, Dec 15, 2014 at 04:05:50PM +0800, Wang, Yalin wrote: > This patch move struct regmap.spinlock_flags into the union of > spinlock, so that we can shrink struct regmap size. Applied, thanks. Please always remember to CC your posts to the relevant mailing lists - in the case of regmap

Re: [PATCH -next] platform/x86/acerhdf: still depends on THERMAL

2014-12-15 Thread Darren Hart
On Mon, Dec 15, 2014 at 09:00:13AM -0800, Randy Dunlap wrote: > From: Randy Dunlap > > acerhdf uses thermal interfaces so it should depend on THERMAL. > It also should not select a thermal driver without checking that > THERMAL is enabled. > > This fixes the following build errors when

Re: [LKP] [userns] BUG: unable to handle kernel NULL pointer dereference at (null)

2014-12-15 Thread Eric W. Biederman
Huang Ying writes: > FYI, we noticed the below changes on > > git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > for-testing > commit bbea5f5532501fdd67f46442ba7b1122d7ff3123 > ("userns: Add a knob to disable setgroups on a per user namespace basis") Thank you. I am

Re: [PATCH] sched/fair: change where we report sched stats V2

2014-12-15 Thread Peter Zijlstra
On Mon, Dec 15, 2014 at 06:21:29PM +0100, Peter Zijlstra wrote: > On Mon, Dec 15, 2014 at 10:37:09AM -0500, Josef Bacik wrote: > > > >Yeah, so I don't like this, it adds overhead for everyone. > > > > > > > Only if SCHEDSTATS is enabled tho, and it's no more overhead in the > > SCHEDSTATS case

Re: [PATCH] Staging: rtl8712: removed an unnecessary else statement

2014-12-15 Thread Joe Perches
On Mon, 2014-12-15 at 11:12 -0600, Larry Finger wrote: > On 12/15/2014 10:39 AM, Joe Perches wrote: > > On Mon, 2014-12-15 at 20:55 +0530, Karthik Nayak wrote: > >> As per checkpatch warning, removed an unnecessary else statement > >> proceeding an if statement with a return. > > > > This is not a

Re: [PATCH v3 1/8] soc: mediatek: Add PMIC wrapper for MT8135 and MT6397 SoC

2014-12-15 Thread Mark Brown
On Thu, Dec 11, 2014 at 06:04:15PM +0800, Flora Fu wrote: > On Tue, 2014-12-09 at 12:20 +0100, Arnd Bergmann wrote: > > If it looks like i2c messages, would it be more appropriate to make > > it appear as an i2c controller then? > Although the message looks like I2C command, it is not I2C. >

Re: [PATCH] sched/fair: change where we report sched stats V2

2014-12-15 Thread Peter Zijlstra
On Mon, Dec 15, 2014 at 10:37:09AM -0500, Josef Bacik wrote: > >Yeah, so I don't like this, it adds overhead for everyone. > > > > Only if SCHEDSTATS is enabled tho, and it's no more overhead in the > SCHEDSTATS case than before. Would it be more acceptable to move the entire > callback under

Re: add sign-extend functions for 8 and 16 bit values

2014-12-15 Thread Peter Zijlstra
On Mon, Dec 15, 2014 at 05:18:31PM +0100, Martin Kepplinger wrote: > This adds sign_extend8() and sign_extend16() for the quite many cases > where this is needed, like sign_extend32(). We're still missing sign_extend64() after this. -- To unsubscribe from this list: send the line "unsubscribe

[PATCH 2/2] task_mmu: Add user-space support for resetting mm->hiwater_rss (peak RSS)

2014-12-15 Thread Petr Cermak
Peak resident size of a process can be reset by writing "5" to /proc/pid/clear_refs. The driving use-case for this would be getting the peak RSS value, which can be retrieved from the VmHWM field in /proc/pid/status, per benchmark iteration or test scenario. Cc: linux...@kvack.org Cc: Andrew

[GIT PULL] nfsd changes for 3.19

2014-12-15 Thread J. Bruce Fields
Please pull nfsd changes for 3.19 from git://linux-nfs.org/~bfields/linux.git for-3.19 A comparatively quieter cycle for nfsd this time, but still with two larger changes: - RPC server scalability improvements from Jeff Layton (using RCU instead of a spinlock to find idle

[PATCH 1/2] task_mmu: Reduce excessive indentation in clear_refs_write

2014-12-15 Thread Petr Cermak
This is a purely cosmetic fix for clear_refs_write(). It removes excessive indentation as suggested by Bjorn Helgaas . This is to make upcoming changes to the file more readable. Cc: linux...@kvack.org Cc: Andrew Morton Cc: Bjorn Helgaas Cc: Primiano Tucci Cc: Petr Cermak Signed-off-by: Petr

Re: [PATCH] Staging: rtl8712: removed an unnecessary else statement

2014-12-15 Thread Larry Finger
On 12/15/2014 10:39 AM, Joe Perches wrote: On Mon, 2014-12-15 at 20:55 +0530, Karthik Nayak wrote: As per checkpatch warning, removed an unnecessary else statement proceeding an if statement with a return. This is not a correct change. The checkpatch message said "generally". You still have

Re: [PATCH -next] platform/x86/acerhdf: still depends on THERMAL

2014-12-15 Thread Peter Feuerer
: Darren Hart --- drivers/platform/x86/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20141215.orig/drivers/platform/x86/Kconfig +++ linux-next-20141215/drivers/platform/x86/Kconfig @@ -38,8 +38,8 @@ config ACER_WMI config ACERHDF tristate "Acer A

Re: [PATCH] ASoC: Intel: fix possible acpi enumeration panic

2014-12-15 Thread Mark Brown
On Thu, Dec 11, 2014 at 09:55:38PM +, Strasser, Kevin wrote: Please fix your mailer to word wrap comfortably under 80 colums so that your mails are easily legible. > > This changes the check from verifying if a codec_id is present to verifying > > if > > the first character in the codec_id

[RCU] kernel hangs in wait_rcu_gp during suspend path

2014-12-15 Thread Arun KS
Hi, Here is the backtrace of the process hanging in wait_rcu_gp, PID: 247TASK: e16e7380 CPU: 4 COMMAND: "kworker/u16:5" #0 [] (__schedule) from [] #1 [] (schedule_timeout) from [] #2 [] (wait_for_common) from [] #3 [] (wait_rcu_gp) from [] #4 [] (atomic_notifier_chain_unregister)

i.MX6 CSC and scaler

2014-12-15 Thread Jean-Michel Hautbois
Hi Steve, Philipp, I see in the kernel sources you created a ipu-ic.c file which helps working with the Color Space Converter on i.MX6. We would like to use it on our board with GStreamer, as the conversion done by the CPU is not very efficient :). What is the easiest/best approach to this ?

Re: [PATCH 05/12] tile: use {cpu|node}mask pr_cont and seq output functions

2014-12-15 Thread Chris Metcalf
On 12/10/2014 10:52 AM, Tejun Heo wrote: Convert the existing user of cpu{mask|list}_scnprintf() and node{mask|list}_scnprintf() which use them just to printk or seq_printf() the resulting buffer to use the following functions instead respectively. * For printk: cpu{mask|list}_pr_cont() and

Re: linux-next: manual merge of the driver-core tree with the watchdog tree

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 04:09:09PM +1100, Stephen Rothwell wrote: > Hi Greg, > > On Sun, 14 Dec 2014 20:35:06 -0800 Greg KH wrote: > > > > How is this happening, nothing has changed in my trees, did something > > new get added to the watchdog tree? > > Yep. > > It would have been much easier

Re: [PATCH] mcb: mcb-pci: Only remap the 1st 0x200 bytes of BAR 0

2014-12-15 Thread Greg Kroah-Hartman
On Mon, Dec 15, 2014 at 02:23:37PM +0100, Johannes Thumshirn wrote: > On Tue, Oct 28, 2014 at 05:11:32PM +0100, Johannes Thumshirn wrote: > > Currently it is not possible to have a kernel with built-in MCB attached > > devices. This results out of the fact that mcb-pci requests PCI BAR 0, then > >

[PATCH -next] platform/x86/acerhdf: still depends on THERMAL

2014-12-15 Thread Randy Dunlap
/platform/x86/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20141215.orig/drivers/platform/x86/Kconfig +++ linux-next-20141215/drivers/platform/x86/Kconfig @@ -38,8 +38,8 @@ config ACER_WMI config ACERHDF tristate "Acer Aspire One temperature an

Re: [PATCH] sched/fair: tiny clearup of -1

2014-12-15 Thread Peter Zijlstra
On Fri, Dec 05, 2014 at 02:02:45PM +0800, jun.zh...@intel.com wrote: > From: zhang jun > > find_idlest_cpu don't return -1, so clearup it. 'clean it up' perhaps? > Signed-off-by: zhang jun > Signed-off-by: Chuansheng Liu > Signed-off-by: Changcheng Liu Invalid SoB chain. -- To unsubscribe

Re: [PATCH] sched/fair: fix find_idlest_cpu return -1

2014-12-15 Thread Peter Zijlstra
On Fri, Dec 05, 2014 at 01:58:01PM +0800, jun.zh...@intel.com wrote: > From: zhang jun > > find_idlest_cpu return -1 is not reasonable, set default value to this_cpu. This fails to explain why. > Signed-off-by: zhang jun > Signed-off-by: Chuansheng Liu > Signed-off-by: Changcheng Liu This

Re: [PATCH 2/8] swap: lock i_mutex for swap_writepage direct_IO

2014-12-15 Thread Christoph Hellwig
On Mon, Dec 15, 2014 at 05:27:05PM +0100, Jan Kara wrote: > On Sun 14-12-14 21:26:56, Omar Sandoval wrote: > > The generic write code locks i_mutex for a direct_IO. Swap-over-NFS > > doesn't grab the mutex because nfs_direct_IO doesn't expect i_mutex to > > be held, but most direct_IO

Re: [PATCH 0/2] net/macb: fix multiqueue support patch up

2014-12-15 Thread David Miller
From: Cyrille Pitchen Date: Mon, 15 Dec 2014 15:13:30 +0100 > This series of patches is a fixup for the multiqueue support patch. > > The first patch fixes a bug introduced by the multiqueue support patch. > The second one doesn't fix a bug but simplify the source code by removing > useless

Re: [PATCH] rds: Fix min() warning in rds_message_inc_copy_to_user()

2014-12-15 Thread David Miller
From: Geert Uytterhoeven Date: Mon, 15 Dec 2014 13:21:42 +0100 > net/rds/message.c: In function ‘rds_message_inc_copy_to_user’: > net/rds/message.c:328: warning: comparison of distinct pointer types lacks a > cast > > Use min_t(unsigned long, ...) like is done in >

Re: [PATCH] net: stmmac: sti: Fix uninitialized pointer dereference if !OF

2014-12-15 Thread David Miller
From: Geert Uytterhoeven Date: Mon, 15 Dec 2014 12:25:51 +0100 > If CONFIG_OF is not set: > > drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c: In function > ‘sti_dwmac_parse_data’: > drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:318: warning: ‘rs’ is used > uninitialized in this function >

[PATCH v2 1/2] tracing: Add array printing helpers

2014-12-15 Thread Javi Merino
From: Dave Martin If a trace event contains an array, there is currently no standard way to format this for text output. Drivers are currently hacking around this by a) local hacks that use the trace_seq functionailty directly, or b) just not printing that information. For fixed size arrays,

[PATCH v2 2/2] tools lib traceevent: Add support for __print_array()

2014-12-15 Thread Javi Merino
Trace can now generate traces with variable element size arrays. Add support to parse them. Cc: Namhyung Kim Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: Jiri Olsa Signed-off-by: Javi Merino --- tools/lib/traceevent/event-parse.c | 127 +

Re: [RFC PATCH net-next 1/1] net: Support for switch port configuration

2014-12-15 Thread Roopa Prabhu
On 12/15/14, 6:40 AM, Thomas Graf wrote: On 12/15/14 at 02:29pm, Varlese, Marco wrote: All of these are highly generic and should *not* be passed through from user space to the driver directly but rather be properly abstracted as Roopa proposed. The value of this API is abstraction. How would

Re: [PATCH] cirrus: cs89x0: fix time comparison

2014-12-15 Thread David Miller
From: Asaf Vertz Date: Sun, 14 Dec 2014 10:34:18 +0200 > To be future-proof and for better readability the time comparisons are > modified to use time_before, time_after, and time_after_eq instead of > plain, error-prone math. > > Signed-off-by: Asaf Vertz Applied. -- To unsubscribe from this

[GIT PULL] Single revert/fix for core block bits for 3.19

2014-12-15 Thread Jens Axboe
Hi Linus, Jan reported a problem this morning with a crash in blk-mq, and after looking over the recent changes, it's obvious that the blk-mq-tag waitqueue handling change is buggy. We could end up _not_ doing finish_wait() before switching to a new waitqueue, thus corrupting the wait task list.

Re: [PATCH v2 1/5] uaccess: add pagefault_count to thread_info

2014-12-15 Thread David Hildenbrand
> On Wed, Dec 10, 2014 at 10:23 PM, David Hildenbrand > wrote: > > This patch adds the pagefault_count to the thread_info of all > > architectures. It will be used to count the pagefault_disable() levels > > on a per-thread basis. > > > > We are not reusing the preempt_count as this is per cpu on

selftests: standardized results output?

2014-12-15 Thread Young, David
Hi, I'm looking into what sorts of tools can consume the selftest output, and found this on the wikipage: https://kselftest.wiki.kernel.org/standardize_the_test_output The current suggestion (as of the last-modified date on that wiki page for October) is to use the Test Anything Protocol [TAP]

Re: [PATCH v2 0/5] Reenable might_sleep() checks for might_fault()

2014-12-15 Thread David Hildenbrand
> On Wed, Dec 10, 2014 at 03:23:29PM +0100, David Hildenbrand wrote: > > Did you look at the -rt patches where this comes from? > > https://git.kernel.org/cgit/linux/kernel/git/clrkwllms/rt-linux.git/commit/?h=v3.14.21-rt9=b389ced19ab649438196d132768fe6522d2f052b >

Re: [PATCH] Staging: rtl8712: removed an unnecessary else statement

2014-12-15 Thread Joe Perches
On Mon, 2014-12-15 at 20:55 +0530, Karthik Nayak wrote: > As per checkpatch warning, removed an unnecessary else statement > proceeding an if statement with a return. This is not a correct change. The checkpatch message said "generally". You still have to verify the code. > diff --git

Re: blk-mq oops with today's Linus' kernel

2014-12-15 Thread Jens Axboe
On 12/15/2014 09:37 AM, Jan Kara wrote: On Mon 15-12-14 16:35:15, Jan Kara wrote: On Mon 15-12-14 08:30:05, Jens Axboe wrote: On 12/15/2014 08:20 AM, Jens Axboe wrote: On 12/15/2014 08:19 AM, Jan Kara wrote: Hello, when running xfstests with today's Linus' kernel I've got the

Re: [PATCH 3.18 15/19] move d_rcu from overlapping d_child to overlapping d_alias

2014-12-15 Thread Josh Boyer
On Mon, Dec 15, 2014 at 11:34 AM, Greg Kroah-Hartman wrote: > On Mon, Dec 15, 2014 at 10:46:50AM -0500, Josh Boyer wrote: >> On Sun, Dec 14, 2014 at 12:21:26PM -0800, Greg Kroah-Hartman wrote: >> >3.18-stable review patch. If anyone has any objections, please let me know. >> > >>

Re: [PATCH 0/2] usb: serial: handle -ENODEV and -EPROTO quietly

2014-12-15 Thread Greg Kroah-Hartman
On Mon, Dec 15, 2014 at 04:53:05AM -0800, Jeremiah Mahler wrote: > Johan, > > On Mon, Dec 15, 2014 at 11:23:21AM +0100, Johan Hovold wrote: > > On Thu, Dec 11, 2014 at 03:29:52PM -0800, Jeremiah Mahler wrote: > > > If a USB serial device (e.g. /dev/ttyUSB0) with an active program is > > >

Re: blk-mq oops with today's Linus' kernel

2014-12-15 Thread Jan Kara
On Mon 15-12-14 16:35:15, Jan Kara wrote: > On Mon 15-12-14 08:30:05, Jens Axboe wrote: > > On 12/15/2014 08:20 AM, Jens Axboe wrote: > > >On 12/15/2014 08:19 AM, Jan Kara wrote: > > >> Hello, > > >> > > >> when running xfstests with today's Linus' kernel I've got the > > >>following > >

Re: [PATCH 3.18 15/19] move d_rcu from overlapping d_child to overlapping d_alias

2014-12-15 Thread Greg Kroah-Hartman
On Mon, Dec 15, 2014 at 10:46:50AM -0500, Josh Boyer wrote: > On Sun, Dec 14, 2014 at 12:21:26PM -0800, Greg Kroah-Hartman wrote: > >3.18-stable review patch. If anyone has any objections, please let me know. > > > >-- > > > >From: Al Viro > > > >commit

Re: [PATCH RFC] Docs: Modernize SubmittingPatches

2014-12-15 Thread Randy Dunlap
Hi Jonathan, Overall this is good but it was difficult to review -- maybe too many varying types of changes. I have a few minor corrections below. Use them (or not) any way that you like. On 12/15/14 07:52, Jonathan Corbet wrote: > The SubmittingPatches file still shows a lot of its roots from

Re: [PATCH 2/2] sched: Pull resched loop to __schedule() callers

2014-12-15 Thread Frederic Weisbecker
On Sun, Dec 14, 2014 at 06:46:27PM -0800, Linus Torvalds wrote: > On Sun, Dec 14, 2014 at 6:24 PM, Frederic Weisbecker > wrote: > > -need_resched: > > preempt_disable(); > > cpu = smp_processor_id(); > > rq = cpu_rq(cpu); > > @@ -2821,8 +2824,6 @@ need_resched: > >

Re: [PATCH 02/02 resend] MIPS: IP32: Add platform data hooks to use DS1685 driver

2014-12-15 Thread Ralf Baechle
On Fri, Dec 12, 2014 at 05:13:46PM -0500, Joshua Kinard wrote: > This modifies the IP32 (SGI O2) platform and reset code to utilize the new > rtc-ds1685 driver. The old mc146818rtc.h header is removed and ip32_defconfig > is updated as well. > > Signed-off-by: Joshua Kinard > --- >

Re: [PATCH] mfd: cottula: add cottula board

2014-12-15 Thread Robert Jarzmik
Arnd Bergmann writes: >> Will that look correct ? > > I'd still prefer the platform data, but this seems good enough and I > see no serious problems with it. OK, so I'll try with the 2 resources. If I'm bitten afterwards and am forced to have a platform data, you'll tell me "I had warned you" ;)

Re: [PATCH 2/8] swap: lock i_mutex for swap_writepage direct_IO

2014-12-15 Thread Jan Kara
On Sun 14-12-14 21:26:56, Omar Sandoval wrote: > The generic write code locks i_mutex for a direct_IO. Swap-over-NFS > doesn't grab the mutex because nfs_direct_IO doesn't expect i_mutex to > be held, but most direct_IO implementations do. I think you are speaking about direct IO writes only,

Re: [PATCH 6/8] watchdog: st_wdt: Add new driver for ST's LPC Watchdog

2014-12-15 Thread Guenter Roeck
On Mon, Dec 15, 2014 at 11:25:36AM +, Lee Jones wrote: > Signed-off-by: David Paris > Signed-off-by: Lee Jones > --- > drivers/watchdog/Kconfig | 13 ++ > drivers/watchdog/Makefile | 1 + > drivers/watchdog/st_wdt.c | 312 > ++ > 3 files

[PATCH 5/6] rtc: use sign_extend8 instead of manual conversion

2014-12-15 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- drivers/rtc/rtc-x1205.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c index b1de58e..3ec0b95 100644 --- a/drivers/rtc/rtc-x1205.c +++ b/drivers/rtc/rtc-x1205.c @@ -22,6 +22,7 @@

add sign-extend functions for 8 and 16 bit values

2014-12-15 Thread Martin Kepplinger
In short: If you want the first 2 changes, please merge them and notify me. This adds sign_extend8() and sign_extend16() for the quite many cases where this is needed, like sign_extend32(). Sign-extending is done in a few different ways throughout the kernel and most of them look not very

Re: [PATCH 5/6] dt-bindings: Add documentation for Rockchip hdmi-audio

2014-12-15 Thread Mark Brown
On Mon, Dec 15, 2014 at 09:10:26PM +0800, Kuankuan.Yang wrote: > Hi Mark & Russell: Please don't top post, that way people have some context for what you're saying - look at how people normally format their mails on thelist. > In that way, dt will only need compatible for creating sound device.

[PATCH 6/6] media: stb0899: use sign_extend8 instead of manual work

2014-12-15 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- drivers/media/dvb-frontends/stb0899_algo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/dvb-frontends/stb0899_algo.c b/drivers/media/dvb-frontends/stb0899_algo.c index 93596e0..7bbcfde 100644 ---

[PATCH 2/6] bitops.h: add sign_extend16 function

2014-12-15 Thread Martin Kepplinger
This adds sign_exten16 to sign extend any signed value shorter than 16 bits to a s16. Signed-off-by: Martin Kepplinger --- include/linux/bitops.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 3c2a539..70190f4 100644 ---

[PATCH 4/6] input: gtco: use bitops' sign_extend8

2014-12-15 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- drivers/input/tablet/gtco.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c index 8580456..25b3834 100644 --- a/drivers/input/tablet/gtco.c +++

[PATCH 3/6] hwmon: jc42: use bitops' sign_extend16

2014-12-15 Thread Martin Kepplinger
--- drivers/hwmon/jc42.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index 388f8bc..335a2de 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c @@ -31,6 +31,7 @@ #include #include #include +#include /*

[PATCH 1/6] bitops.h: add sign_extend8 function

2014-12-15 Thread Martin Kepplinger
This adds a helper function that extends any signed value smaller than 8 bits to a s8. Signed-off-by: Martin Kepplinger --- include/linux/bitops.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 5d858e0..3c2a539 100644 ---

Re: [RFC PATCH net-next 1/1] net: Support for switch port configuration

2014-12-15 Thread Roopa Prabhu
On 12/15/14, 1:39 AM, Varlese, Marco wrote: -Original Message- From: Roopa Prabhu [mailto:ro...@cumulusnetworks.com] Sent: Saturday, December 13, 2014 7:06 AM To: Varlese, Marco Cc: Jiri Pirko; John Fastabend; net...@vger.kernel.org; step...@networkplumber.org; Fastabend, John R;

Re: [PATCH] clocksource: sirf: Remove unused variable

2014-12-15 Thread Daniel Lezcano
On 12/15/2014 04:59 PM, Thierry Reding wrote: From: Thierry Reding Commit ef89af1f4380 ("clocksource: sirf: Remove hard-coded clock rate") removes all uses of the timer_div variable. Since the variable is no longer used it should be removed. Signed-off-by: Thierry Reding --- Applied to my

[PATCH 5/5] tty: serial: atmel: request IRQ with IRQF_SUSPEND_NOACTION

2014-12-15 Thread Boris Brezillon
The IRQ line connected to the DBGU UART is often shared with a timer device which request the IRQ with IRQF_NO_SUSPEND. Since the UART driver is correctly disabling IRQs when entering suspend we can safely request the IRQ with IRQF_SUSPEND_NOACTION so that irq core can suspend this specific

[PATCH 4/5] rtc: at91: request IRQs with IRQF_SUSPEND_NOACTION

2014-12-15 Thread Boris Brezillon
The IRQ line connected to RTC blocks are often shared with a timer device which request the IRQ with IRQF_NO_SUSPEND. Since the RTC drivers are correctly disabling IRQs when entering suspend we can safely request the IRQ with IRQF_SUSPEND_NOACTION so that irq core can suspend this specific

[PATCH 2/5] clk: at91: implement suspend/resume for the PMC irqchip

2014-12-15 Thread Boris Brezillon
The irq line used by the PMC block is shared with several peripherals including the init timer which is registering the irq with IRQF_NO_SUSPEND. To prevent the PMC irq handler from being called while suspended request the irq with the IRQF_SUSPEND_NOACTION flag and implement proper suspend

[PATCH 3/5] watchdog: at91sam9: request the irq with IRQF_NO_SUSPEND

2014-12-15 Thread Boris Brezillon
The watchdog interrupt (only used when activating software watchdog) shouldn't be suspended when entering suspend mode, because it is shared with a timer device (which request the line with IRQF_NO_SUSPEND) and once the watchdog "Mode Register" has been written, it cannot be changed (which means

[PATCH 0/5] ARM: at91: fix irq_pm_install_action WARNING

2014-12-15 Thread Boris Brezillon
Commit cab303be91dc47942bc25de33dc1140123540800 [1] introduced a WARN_ON test which triggers a WARNING backtrace on at91 platforms. While this WARN_ON is absolutely necessary to warn users that they should not mix request with and without IRQF_NO_SUSPEND flags on shared IRQs, there is no easy way

[PATCH 1/5] genirq: Support mixing IRQF_NO_SUSPEND/IRQF_SUSPEND on shared irqs

2014-12-15 Thread Boris Brezillon
The current implementation forbid sharing an irq line on devices that do not request the same behavior on suspend/resume (controlled via the IRQF_NO_SUSPEND/IRQF_FORCE_RESUME flags). Add a flag (IRQF_SUSPEND_NOACTION) to specify that you don't want to be called in suspend mode, and that you

Re: [PATCH] usb: gadget: udc-core: call udc_stop() before gadget unbind

2014-12-15 Thread Alan Stern
On Fri, 12 Dec 2014, Robert Baldyga wrote: > As usb function drivers assumes that all usb request will be completed > before function unbind call, we should supply such behavior. In some > cases ep_disable() won't kill all request effectively, because some > IN requests can be in running state.

Re: [PATCH v4 3/6] iio: imu: kmx61: Add PM runtime support

2014-12-15 Thread Daniel Baluta
On Mon, Dec 15, 2014 at 12:55 AM, Hartmut Knaack wrote: > Daniel Baluta schrieb am 03.12.2014 um 14:31: >> By default both sensors are ACTIVE, in this way the driver >> will work even if CONFIG_PM_RUNTIME is not selected. >> > Since kmx61_set_power_state() can return error codes, wouldn't it be

Re: [PATCH] USB: serial: add nt124 usb to serial driver

2014-12-15 Thread George McCollister
On Mon, Dec 15, 2014 at 3:52 AM, Johan Hovold wrote: > On Sun, Dec 14, 2014 at 11:51:11AM -0600, George McCollister wrote: >> Johan, >> >> While working on the tx_empty changes you suggested it occurred to me >> that it might not be obvious to others that the firmware doesn't send >> a packet

Re: [PATCH v2 1/3] vt: fix check for system/busy console drivers when unregistering them

2014-12-15 Thread Imre Deak
On Mon, 2014-12-15 at 16:05 +0100, Daniel Vetter wrote: > This seems to partially revert > > commit d9c660e750fdf982e1e2bdd0e76c1e6c4db4217b > Author: Daniel Vetter > Date: Thu Jun 5 16:29:56 2014 +0200 > > vt: Fix up unregistration of vt drivers > > A bunch of issues: > - We

Re: [PATCH] mfd: cottula: add cottula board

2014-12-15 Thread Arnd Bergmann
On Monday 15 December 2014 16:45:03 Robert Jarzmik wrote: > Arnd Bergmann writes: > > > On Monday 15 December 2014 00:10:06 Robert Jarzmik wrote: > >> + > >> + platform_set_drvdata(pdev, cot); > >> + cot->gpio0 = gpiod_get(>dev, "lubbock_irq", 0); > >> + if (IS_ERR(cot->gpio0))

Re: [PATCH] usb: dwc2: gadget: kill requests with 'force' in s3c_hsotg_udc_stop()

2014-12-15 Thread Robert Baldyga
On 12/11/2014 08:34 PM, Paul Zimmerman wrote: >> From: Robert Baldyga [mailto:r.bald...@samsung.com] >> Sent: Tuesday, December 09, 2014 5:42 AM >> >> This makes us sure that all requests are completed before we unbind >> gadget. There are assumptions in gadget API that all requests have to >> be

Re: UBI: Add support for scatter gather and blk-mq

2014-12-15 Thread Ezequiel Garcia
On 12/14/2014 07:26 PM, Richard Weinberger wrote: > Am 14.12.2014 um 13:43 schrieb Ezequiel Garcia: >> Hey Richard, >> >> On 11/24/2014 01:04 PM, Richard Weinberger wrote: >>> This two patches implement blk-mq support for the UBI block driver. >>> As the scatter gather part is rather generic

[PATCH] clocksource: sirf: Remove unused variable

2014-12-15 Thread Thierry Reding
From: Thierry Reding Commit ef89af1f4380 ("clocksource: sirf: Remove hard-coded clock rate") removes all uses of the timer_div variable. Since the variable is no longer used it should be removed. Signed-off-by: Thierry Reding --- drivers/clocksource/timer-marco.c | 1 - 1 file changed, 1

Re: [PATCH 3/8] swap: don't add ITER_BVEC flag to direct_IO rw

2014-12-15 Thread Omar Sandoval
On Mon, Dec 15, 2014 at 06:16:02AM +, Al Viro wrote: > On Sun, Dec 14, 2014 at 09:26:57PM -0800, Omar Sandoval wrote: > > The rw argument to direct_IO has some ill-defined semantics. Some > > filesystems (e.g., ext4, FAT) decide whether they're doing a write with > > rw == WRITE, but others

[PATCH RFC] Docs: Modernize SubmittingPatches

2014-12-15 Thread Jonathan Corbet
The SubmittingPatches file still shows a lot of its roots from the era when we all sent stuff straight to Linus and hoped for the best. I've gone in and thrashed it up to reflect an age where few of us type our own "diff" commands anymore. Also added a section on preparing signed tags for pull

Re: Status of tip/x86/apic

2014-12-15 Thread Steven Rostedt
On Fri, 12 Dec 2014 21:35:14 +0100 (CET) Thomas Gleixner wrote: >2) Proper trace point support so we can actually track allocation > and the hardware access at the various domain levels because > some of these issues cannot be decoded by looking at a state > snapshot in

Re: [PATCH] staging: rtl8723au: os_dep: usb_intf.c: Fix for possible null pointer dereference

2014-12-15 Thread Jes Sorensen
Dan Carpenter writes: > On Sun, Dec 14, 2014 at 11:39:14PM +0100, Rickard Strandqvist wrote: >> There is otherwise a risk of a possible null pointer dereference. >> >> Was largely found by using a static code analysis program called cppcheck. >> >> Signed-off-by: Rickard Strandqvist >> --- >>

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