[PATCH 1/2] dmaengine: edma: Document variables used for residue accounting

2014-04-28 Thread Joel Fernandes
The granular residue accounting code uses certain variables specifically for residue accounting. Document these in the structure declaration. Also move around some elements and group them together. Cc: Thomas Gleixner Signed-off-by: Joel Fernandes --- drivers/dma/edma.c | 26

[PATCH 2/2] dmaengine: edma: update DMA memcpy to use new param element

2014-04-28 Thread Joel Fernandes
edma param struct is now within an edma_pset struct introduced in Thomas Gleixner's edma tx status series. Update memcpy function for the same. Cc: Thomas Gleixner Signed-off-by: Joel Fernandes --- drivers/dma/edma.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] genirq: Sanitize spurious interrupt detection of threaded irqs

2014-04-28 Thread Thomas Gleixner
On Mon, 28 Apr 2014, Austin Schuh wrote: > On Mon, Apr 7, 2014 at 1:08 PM, Austin Schuh wrote: > > On Mon, Apr 7, 2014 at 1:07 PM, Thomas Gleixner wrote: > >> On Mon, 7 Apr 2014, Austin Schuh wrote: > >>> You originally sent the patch out. I could send your patch out back > >>> to you, but that

Re: [PATCH V5 02/12] PNPACPI: use whilte list for pnpacpi device enumeration

2014-04-28 Thread Rafael J. Wysocki
On 4/28/2014 3:40 AM, Zhang Rui wrote: On Mon, 2014-04-28 at 00:01 +0200, Rafael J. Wysocki wrote: On Tuesday, April 08, 2014 12:06:49 AM Zhang Rui wrote: [...] + +static int acpi_pnp_scan_handler_attach(struct acpi_device *adev, + const struct

Re: [PATCH V5 12/12] ACPI: introduce .handle_children flag for acpi scan handler

2014-04-28 Thread Rafael J. Wysocki
On 4/28/2014 4:07 AM, Zhang Rui wrote: On Mon, 2014-04-28 at 00:26 +0200, Rafael J. Wysocki wrote: On Tuesday, April 08, 2014 12:06:59 AM Zhang Rui wrote: For some devices with scan handler attached, their children devices are enumerated by the scan handler, indirectly. This isn't the case

Re: [PATCH V5 09/12] ACPI: introduce acpi platform exclude id list

2014-04-28 Thread Rafael J. Wysocki
On 4/28/2014 3:57 AM, Zhang Rui wrote: On Mon, 2014-04-28 at 00:21 +0200, Rafael J. Wysocki wrote: On Tuesday, April 08, 2014 12:06:56 AM Zhang Rui wrote: For ACPI PIC (PNP) and Timer (PNP0100) device objects, although they have _HID control method, but they should not be enumerated to

Re: mmotm 2014-04-24-13-07 uploaded

2014-04-28 Thread Randy Dunlap
t; This is due to Rik's "#include " getting lost somehow. > This #include is needed in drivers/tty/sysrq.c. > > But maybe I need to be using some other branch of linux-next. Am currently > on 5bd4e10b96ce20271688aa31d8bd739441249152, which is origin/master. And > is also

[PATCH] pci: Allow very large resource windows

2014-04-28 Thread Alan
From: Alan This is needed for some of the Xeon Phi type systems. Signed-off-by: Alan Cox --- drivers/pci/setup-bus.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 138bdd6..5679ec2 100644 ---

Re: [PATCH v2 3/5] ACPICA: Add to remove mis-ordered inclusion of from .

2014-04-28 Thread Rafael J. Wysocki
On 4/28/2014 5:02 AM, Zheng, Lv wrote: Hi, Rafael From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Rafael J. Wysocki Sent: Monday, April 28, 2014 5:37 AM To: Zheng, Lv On Wednesday, April 23, 2014 02:54:06 PM Lv Zheng wrote: There is a mis-order

Re: linux-next: manual merge of the net-next tree with the net tree

2014-04-28 Thread Richard Guy Briggs
On 14/04/28, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in > net/netlink/af_netlink.c between commit 5187cd055b6e ("netlink: Rename > netlink_capable netlink_allowed") from the net tree and commit > 4f520900522f ("netlink: have netlink

Re: [PATCH] uprobes: use BX register for rip-relative fixups, not AX

2014-04-28 Thread Oleg Nesterov
Thanks... Again, the change in riprel_analyze() needs the review from someone who understands the instruction decoding/encoding. On 04/28, Denys Vlasenko wrote: > > Otherwise, instructions such as cmpxchg and div will be mishandled. It seems that you are right. But it would be really great if

Re: [PATCH v2 5/5] ACPICA: Remove deprecated _LINUX definitions for ACPICA.

2014-04-28 Thread Rafael J. Wysocki
On 4/28/2014 6:10 AM, Zheng, Lv wrote: Hi, Rafael From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] Sent: Monday, April 28, 2014 5:39 AM On Wednesday, April 23, 2014 02:54:22 PM Lv Zheng wrote: There are _LINUX defined so that when Linux kernel is compiled using broken compilers that

[PATCH 1/1] mm/memory_hotplug.c: use PFN_DOWN()

2014-04-28 Thread Fabian Frederick
Replace ((x) >> PAGE_SHIFT) by pfn macro. Cc: Andrew Morton Signed-off-by: Fabian Frederick --- mm/memory_hotplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index a650db2..b756740 100644 --- a/mm/memory_hotplug.c +++

[PATCH 1/1] mm/memblock.c: use PFN_DOWN

2014-04-28 Thread Fabian Frederick
Replace ((x) >> PAGE_SHIFT) by pfn macro. Cc: Andrew Morton Signed-off-by: Fabian Frederick --- mm/memblock.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index e9d6ca9..b459009 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -1329,9

[PATCH 1/1] MM: make vmpressure_win dynamic

2014-04-28 Thread Fabian Frederick
Initialize vmpressure_win in vmstat using calculate_normal_threshold() based on each zone/cpu * SWAP_CLUSTER_SIZE Value refreshed through cpu notifier Cc: Tejun Heo Cc: Andrew Morton Signed-off-by: Fabian Frederick --- mm/vmpressure.c | 16 +--- mm/vmstat.c | 24

Re: [PATCH] genirq: Sanitize spurious interrupt detection of threaded irqs

2014-04-28 Thread Austin Schuh
On Mon, Apr 7, 2014 at 1:08 PM, Austin Schuh wrote: > On Mon, Apr 7, 2014 at 1:07 PM, Thomas Gleixner wrote: >> On Mon, 7 Apr 2014, Austin Schuh wrote: >>> You originally sent the patch out. I could send your patch out back >>> to you, but that feels a bit weird ;) >> >> Wheee. Let me dig in my

Re: [RFC PATCH v5 02/11] ARM SMMU: Add capability IOMMU_CAP_DMA_EXEC

2014-04-28 Thread Alex Williamson
On Mon, 2014-04-28 at 20:37 +0100, Will Deacon wrote: > On Mon, Apr 28, 2014 at 04:52:42PM +0100, Antonios Motakis wrote: > > The ARM SMMU can take an IOMMU_EXEC protection flag in addition to > > IOMMU_READ and IOMMU_WRITE. Expose this as an IOMMU capability. > > The other way of handling this

Re: [PATCH] uprobes: Refuse to insert a probe into MAP_SHARED vma

2014-04-28 Thread Oleg Nesterov
And of course, I forgot to add Hugh ;) Fix that. On 04/28, Oleg Nesterov wrote: > > valid_vma() rejects the VM_SHARED vmas, but this still allows to insert > a probe into the MAP_SHARED but not VM_MAYWRITE vma. > > Currently this is fine, such a mapping doesn't really differ from the > private

[PATCH 1/1] FS/BEFS: kernel-doc fixes

2014-04-28 Thread Fabian Frederick
Fixing some comment errors. Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/befs/btree.c | 4 ++-- fs/befs/datastream.c | 2 +- fs/befs/linuxvfs.c | 16 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/fs/befs/btree.c b/fs/befs/btree.c index

[PATCH] random: Add "initialized" variable to proc

2014-04-28 Thread Florian Weimer
Before this change, you had to check kernel log messages to see if the non-blocking pool had been properly initialized. With this change, you can consult the file /proc/sys/kernel/random/intialized instead. Signed-off-by: Florian Weimer --- drivers/char/random.c | 19 +++ 1

Re: lockdep warning after recent cleanup in console code

2014-04-28 Thread Jan Kara
On Mon 28-04-14 15:36:42, Steven Rostedt wrote: > On Mon, 28 Apr 2014 21:24:16 +0200 > Jan Kara wrote: > > > > So I had a look and we are missing mutex_release() in > > console_trylock_for_printk() if we don't have a console to print to. > > Attached patch should fix the problem. > > > >

Re: [PATCH] rcutorture: don't mark torture_init_{begin,end} with __init

2014-04-28 Thread Paul E. McKenney
On Mon, Apr 28, 2014 at 08:03:35PM +0100, Will Deacon wrote: > By the time rcutorture is initialised via its module_init callback, the > .init.text section of torture.ko has already been freed, so the calls to > torture_init{begin,end} end up branching to junk. > > This patch removes the __init

Re: [RFC v3 1/9] sysrq: Implement __handle_sysrq_nolock to avoid recursive locking in kdb

2014-04-28 Thread Daniel Thompson
On 28/04/14 18:44, Colin Cross wrote: >>> Is that case documented somewhere in the code comments? >> >> Perhaps not near enough to the _nolock but the primary bit of comment is >> here (and in same file as kdb_sr). >> --- cut here --- >> * kdb_main_loop - After initial setup and assignment of the

Re: [PATCH 1/3] driver core & of: Mark of_nodes of added device as populated

2014-04-28 Thread Pawel Moll
On Tue, 2014-02-11 at 12:32 -0500, Christopher Covington wrote: > Hi Pawel, > > On 02/11/2014 11:53 AM, Pawel Moll wrote: > > This patch tries to solve that issue in a generic way, > > adding a "populated" flag which is set in the device_node > > structure when a device is being created in the

Re: [RFC PATCH v5 03/11] VFIO_IOMMU_TYPE1 for platform bus devices on ARM

2014-04-28 Thread Alex Williamson
On Mon, 2014-04-28 at 20:19 +0100, Will Deacon wrote: > Hi Alex, > > On Mon, Apr 28, 2014 at 05:43:41PM +0100, Alex Williamson wrote: > > On Mon, 2014-04-28 at 17:52 +0200, Antonios Motakis wrote: > > > This allows to make use of the VFIO_IOMMU_TYPE1 driver with platform > > > devices on ARM in

Re: mmotm 2014-04-24-13-07 uploaded

2014-04-28 Thread Paul E. McKenney
k/public_git/linux-next/drivers/tty/sysrq.c:558: undefined reference to `rcu_sysrq_end' This is due to Rik's "#include " getting lost somehow. This #include is needed in drivers/tty/sysrq.c. But maybe I need to be using some other branch of linux-next. Am currently on 5bd4e10b96ce20271688a

Re: [PATCH RESEND 3/3] irqchip: orion: reverse irq handling priority

2014-04-28 Thread Sebastian Hesselbarth
On 04/28/2014 09:39 PM, Thomas Gleixner wrote: > On Sat, 26 Apr 2014, Sebastian Hesselbarth wrote: > >> Non-DT irq handlers were working through irq causes from most-significant >> to least-significant bit, while DT irqchip driver does it the other way >> round. This revealed some more HW issues

RE: [PATCH V1 net-next 1/1] hyperv: Properly handle checksum offload

2014-04-28 Thread KY Srinivasan
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, April 28, 2014 10:24 AM > To: KY Srinivasan > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com;

Re: lockdep warning after recent cleanup in console code

2014-04-28 Thread Jan Kara
gt; > > > [0.00] BIOS-e820: [mem 0xe000-0x] > > reserved > > [0.00] > > [0.00] = > > [0.00] [ INFO: possible recursive

RE: [PATCH] usb: dwc3: debugfs: add snapshot to dump requests trbs events

2014-04-28 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Felipe Balbi > Sent: Monday, April 28, 2014 8:56 AM > > On Mon, Apr 28, 2014 at 04:49:23PM -0400, Zhuang Jin Can wrote: > > Adds a debugfs file "snapshot" to dump dwc3 requests, trbs and events. <

Re: [PATCH V1 net-next 1/1] hyperv: Properly handle checksum offload

2014-04-28 Thread David Miller
From: "K. Y. Srinivasan" Date: Fri, 25 Apr 2014 20:55:23 -0700 > @@ -467,6 +467,9 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct > net_device *net) > if (skb_is_gso(skb)) > goto do_lso; > > + if (skb->ip_summed != CHECKSUM_PARTIAL) > + goto

[PATCH 01/10] of: Keep track of populated platform devices

2014-04-28 Thread Pawel Moll
In "Device Tree powered" systems, platform devices are usually massively populated with of_platform_populate() call, executed at some level of initcalls, either by generic architecture or by platform-specific code. There are situations though where certain devices must be created (and bound with

[PATCH 00/10] Versatile Express changes for 3.16

2014-04-28 Thread Pawel Moll
Greetings, What follows is the (hopefully) last take on the vexpress infrastructure changes. With the exception of the first patch, everything else has been discussed and acked (or at least not naked) in the past: http://thread.gmane.org/gmane.linux.kernel/1645586/

[PATCH 09/10] ARM: vexpress: move HBI check to sysreg driver

2014-04-28 Thread Pawel Moll
The last reason for static memory mapping is the HBI (board identification number) check early in the machine code. Moving the check to the sysreg driver makes it possible to completely remove the early mapping and init functions. Signed-off-by: Pawel Moll --- arch/arm/mach-vexpress/v2m.c |

[PATCH 08/10] ARM: vexpress: Simplify SMP operations for DT-powered system

2014-04-28 Thread Pawel Moll
As all cores must be properly described in the Device Tree, there is no point in getting their numbers from SCU on A5/A9 platforms. This significantly simplifies the code, removing the need for flat-tree scanning and early static mapping. Signed-off-by: Pawel Moll ---

Re: [RESEND PATCH v2] documentation: docbook: document process of writing an musb glue layer

2014-04-28 Thread Apelete Seketeli
Hi Felipe, On Mon, Apr-14-2014 at 10:12:56 PM +0200, Apelete Seketeli wrote: > Document the process of writing an musb glue layer by taking the > Ingenic JZ4740 glue layer as an example, as it seems more simple than > most glue layers due to the basic feature set of the JZ4740 USB device >

[PATCH 07/10] ARM: vexpress: remove redundant vexpress_dt_cpus_num to get cpu count

2014-04-28 Thread Pawel Moll
From: Sudeep KarkadaNagesha arm_dt_init_cpu_maps parses the device tree, validates and sets the cpu_possible_mask appropriately. It is unnecessary to do another DT parse to get the number of cpus, use num_possible_cpus instead. This patch also removes setting cpu_present_mask as platforms

[PATCH 04/10] mfd: vexpress: Define the device as MFD cells

2014-04-28 Thread Pawel Moll
This patch - finally, after over 6 months! :-( - addresses Samuel's request to split the vexpress-sysreg driver into smaller portions and define the device in a form of MFD cells: * LEDs code has been completely removed and replaced with "gpio-leds" nodes in the tree (referencing dedicated

[PATCH 02/10] mfd: vexpress: Convert custom func API to regmap

2014-04-28 Thread Pawel Moll
Components of the Versatile Express platform (configuration microcontrollers on motherboard and daughterboards in particular) talk to each other over a custom configuration bus. They provide miscellaneous functions (from clock generator control to energy sensors) which are represented as platform

[PATCH 05/10] clk: versatile: Split config options for sp810 and vexpress_osc

2014-04-28 Thread Pawel Moll
Move the Kconfig entry for Versatile (& Express) clock drivers into a separate file and add individual options for sp810 and vexpress_osc drivers, as they are optional in some configurations and may have separate dependencies. Cc: Mike Turquette Signed-off-by: Pawel Moll ---

Re: Updated asmlinkage patch v2

2014-04-28 Thread Andi Kleen
> BTW some of the functions have already lost their asmlinkage, see > commit 8783dd3a37a5853689e1a8fa728827a50905b912 ("irqchip: Remove > asmlinkage from static functions") in torvalds tree and also recent > thread https://lkml.org/lkml/2014/4/16/453 ("[PATCH] crypto: > sha{256,512}_ssse3 - remove

[PATCH 03/10] mfd: syscon: Add platform data with a regmap config name

2014-04-28 Thread Pawel Moll
Define syscon platform data structure that can be used to define a regmap config name. This is particularly useful in the regmap debugfs when there is more than one syscon device registered, to distinguish the register blocks. Signed-off-by: Pawel Moll Acked-by: Lee Jones ---

[PATCH 10/10] hwmon: vexpress: Use devm helper for hwmon device registration

2014-04-28 Thread Pawel Moll
Use devm_hwmon_device_register_with_groups instead of the old-style manual attributes and hwmon device registration. Also, unwind the attribute group macros for better code readability. Cc: Jean Delvare Cc: Guenter Roeck Cc: lm-sens...@lm-sensors.org Signed-off-by: Pawel Moll ---

[PATCH 06/10] clocksource: Sched clock source for Versatile Express

2014-04-28 Thread Pawel Moll
This patch adds a trival sched clock source using free running, 24MHz clocked counter present in the ARM Ltd. reference platforms (Versatile, RealView, Versatile Express) System Registers block. This code replaces the call in the VE machine code. Cc: Daniel Lezcano Cc: Thomas Gleixner

Re: [PATCH 7/7] ARM: sunxi: dt: add PRCM clk and reset controller subdevices

2014-04-28 Thread Chen-Yu Tsai
On Tue, Apr 29, 2014 at 1:27 AM, Boris BREZILLON wrote: > > On 28/04/2014 18:02, Chen-Yu Tsai wrote: >> Hi, >> >> On Mon, Apr 28, 2014 at 10:58 PM, Boris BREZILLON >> wrote: >>> Add DT definitions for PRCM (Power/Reset/Clock Management) clock and reset >>> controller subdevices. >>> >>>

[PATCH] spi: Force the registration of the spidev devices

2014-04-28 Thread Maxime Ripard
spidev device registration has always been a controversial subject since the move to DT. Obviously, a spidev node has nothing to do in the DT, and the position so far has been to add the compatible of the devices to drive through spidev to the list of the compatibles spidev can handle. While

[PATCH] goldfish bus: don't call request_mem_region

2014-04-28 Thread Alan Cox
This is a bug fix that has been lurking in the Google tree but not pushed upstream. From: Octavian Purdila The memory region is already reserved in goldfish_init() during platform init. Signed-off-by: Octavian Purdila Signed-off-by: Jun Tian Signed-off-by: Alan Cox ---

Re: [RFC,PATCH] mm,parisc: keep track of last mmap'ed address

2014-04-28 Thread Helge Deller
No objections? Then I assume this is OK... Helge On 04/17/2014 10:45 PM, Helge Deller wrote: > Would the following patch be acceptable? > It adds an additional field to struct address_space which will most likely > only > be used by the parisc arch. > > If it's acceptable, I would like to push

Re: [PATCHSET 00/17] perf report: Add -F option for specifying output fields (v4)

2014-04-28 Thread Don Zickus
On Thu, Apr 24, 2014 at 05:00:15PM -0400, Don Zickus wrote: > On Thu, Apr 24, 2014 at 10:41:39PM +0900, Namhyung Kim wrote: > > Hi Don, > > > > 2014-04-23 (수), 08:58 -0400, Don Zickus: > > > On Wed, Apr 23, 2014 at 03:15:35PM +0900, Namhyung Kim wrote: > > > > On Tue, 22 Apr 2014 17:16:47 -0400,

[tip:irq/urgent] irqchip: irq-crossbar: Not allocating enough memory

2014-04-28 Thread tip-bot for Dan Carpenter
Commit-ID: 3894e9e82dfdc87fa35dc7976e0472d220228826 Gitweb: http://git.kernel.org/tip/3894e9e82dfdc87fa35dc7976e0472d220228826 Author: Dan Carpenter AuthorDate: Thu, 3 Apr 2014 10:21:34 +0300 Committer: Thomas Gleixner CommitDate: Mon, 28 Apr 2014 21:43:24 +0200 irqchip: irq-crossbar:

Re: [PATCH] arm64: fixmap: fix missing sub-page offset for earlyprintk

2014-04-28 Thread Mark Salter
On Mon, 2014-04-28 at 19:50 +0100, Marc Zyngier wrote: > Commit d57c33c5daa4 (add generic fixmap.h) added (among other > similar things) set_fixmap_io to deal with early ioremap of devices. > > More recently, commit bf4b558eba92 (arm64: add early_ioremap support) > converted the arm64 earlyprintk

Re: [PATCH v8 02/20] usb: phy: msm: Remove __init macro from driver probe method

2014-04-28 Thread Ivan T. Ivanov
On Mon, 2014-04-28 at 12:54 -0500, Felipe Balbi wrote: > On Mon, Apr 28, 2014 at 08:52:48PM +0300, Ivan T. Ivanov wrote: > > On Mon, 2014-04-28 at 12:03 -0500, Felipe Balbi wrote: > > > On Mon, Apr 28, 2014 at 09:00:43PM +0400, Sergei Shtylyov wrote: > > > > Hello. > > > > > > > > On 04/28/2014

Re: [RFC PATCH v5 07/11] VFIO_PLATFORM: Read and write support for the device fd

2014-04-28 Thread Alex Williamson
On Mon, 2014-04-28 at 17:52 +0200, Antonios Motakis wrote: > VFIO returns a file descriptor which we can use to manipulate the memory > regions of the device. Since some memory regions we cannot mmap due to > security concerns, we also allow to read and write to this file descriptor > directly.

[PATCH] locks: ensure that fl_owner is always initialized properly in flock and lease codepaths

2014-04-28 Thread Jeff Layton
Currently, the fl_owner isn't set for flock locks. Some filesystems use byte-range locks to simulate flock locks and there is a common idiom in those that does: fl->fl_owner = (fl_owner_t)filp; fl->fl_start = 0; fl->fl_end = OFFSET_MAX; Since flock locks are generally "owned" by the

Re: [RFC PATCH v5 11/11] VFIO_PLATFORM: Support for maskable and automasked interrupts

2014-04-28 Thread Alex Williamson
On Mon, 2014-04-28 at 17:52 +0200, Antonios Motakis wrote: > Adds support to mask interrupts, and also for automasked interrupts. > Level sensitive interrupts are exposed as automasked interrupts and > are masked and disabled automatically when they fire. > > Signed-off-by: Antonios Motakis >

Re: [RFC PATCH v5 08/11] VFIO_PLATFORM: Support MMAP of MMIO regions

2014-04-28 Thread Alex Williamson
On Mon, 2014-04-28 at 17:52 +0200, Antonios Motakis wrote: > Allow to memory map the MMIO regions of the device so userspace can > directly access them. > > Signed-off-by: Antonios Motakis > --- > drivers/vfio/platform/vfio_platform.c | 40 > ++- > 1 file

Re: [RFC PATCH v5 02/11] ARM SMMU: Add capability IOMMU_CAP_DMA_EXEC

2014-04-28 Thread Will Deacon
On Mon, Apr 28, 2014 at 04:52:42PM +0100, Antonios Motakis wrote: > The ARM SMMU can take an IOMMU_EXEC protection flag in addition to > IOMMU_READ and IOMMU_WRITE. Expose this as an IOMMU capability. The other way of handling this would be to negate the capability and advertise a NOEXEC cap

Re: lockdep warning after recent cleanup in console code

2014-04-28 Thread Steven Rostedt
On Mon, 28 Apr 2014 21:24:16 +0200 Jan Kara wrote: > So I had a look and we are missing mutex_release() in > console_trylock_for_printk() if we don't have a console to print to. > Attached patch should fix the problem. > Note, your patch changes the logic a bit. It causes the

Re: [PATCH RESEND 3/3] irqchip: orion: reverse irq handling priority

2014-04-28 Thread Thomas Gleixner
On Sat, 26 Apr 2014, Sebastian Hesselbarth wrote: > Non-DT irq handlers were working through irq causes from most-significant > to least-significant bit, while DT irqchip driver does it the other way > round. This revealed some more HW issues on Kirkwood peripheral IP, where > spurious sdio irqs

Re: [PATCH] x86/mce: Improve mcheck_init_device() error handling.

2014-04-28 Thread Borislav Petkov
On Fri, Apr 25, 2014 at 07:40:04PM +0200, Mathieu Souchaud wrote: > Check return code of every function called. > > Signed-off-by: Mathieu Souchaud > --- > arch/x86/kernel/cpu/mcheck/mce.c | 30 +++--- > 1 file changed, 23 insertions(+), 7 deletions(-) > > diff --git

Re: [perf] more perf_fuzzer memory corruption

2014-04-28 Thread Vince Weaver
OK, this is my current theory as to what's going on. I'd appreciate any comments. We have an event, let's call it #16. Event #16 is a SW event created and running in the parent on CPU0. CPU0 (parent): calls fork() CPU6 (child): SW Event #16 is still running on CPU0 but is visible

Re: [RFC v3 1/9] sysrq: Implement __handle_sysrq_nolock to avoid recursive locking in kdb

2014-04-28 Thread Colin Cross
On Mon, Apr 28, 2014 at 3:24 AM, Daniel Thompson wrote: > On 25/04/14 17:45, Steven Rostedt wrote: >> On Fri, 25 Apr 2014 17:29:22 +0100 >> Daniel Thompson wrote: >> >>> If kdb is triggered using SysRq-g then any use of the sr command results >>> in the SysRq key table lock being recursively

Re: [Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.

2014-04-28 Thread Adam Williamson
On Mon, 2014-04-28 at 22:27 +0800, Lan Tianyu wrote: > From: Lv Zheng > > The size of the buffer allocated for generic_serial_bus region access > is not correct. This patch introduces acpi_ex_get_serial_access_length() > to be invoked to obtain correct data buffer length. Reported by > Lan

[tip:irq/urgent] irqchip: armanda: Sanitize set_irq_affinity()

2014-04-28 Thread tip-bot for Thomas Gleixner
Commit-ID: 8cc3cfc5ccf1680b7c88f874912b6bec2797b76b Gitweb: http://git.kernel.org/tip/8cc3cfc5ccf1680b7c88f874912b6bec2797b76b Author: Thomas Gleixner AuthorDate: Tue, 4 Mar 2014 20:43:41 + Committer: Thomas Gleixner CommitDate: Mon, 28 Apr 2014 21:27:15 +0200 irqchip: armanda:

Re: [PATCH 1/3] driver core & of: Mark of_nodes of added device as populated

2014-04-28 Thread Pawel Moll
On Thu, 2014-02-13 at 13:15 -0600, Rob Herring wrote: > On Tue, Feb 11, 2014 at 10:53 AM, Pawel Moll wrote: > > In "Device Tree powered" systems, platform devices are usually > > massively populated with of_platform_populate() call, executed > > at some level of initcalls, either by generic

Re: [PATCH 1/3] sched, balancing: Update rq->max_idle_balance_cost whenever newidle balance is attempted

2014-04-28 Thread Jason Low
On Sun, 2014-04-27 at 14:01 +0530, Preeti Murthy wrote: > Hi Jason, Peter, > > The below patch looks good to me except for one point. > > In idle_balance() the below code snippet does not look right: > > - if (pulled_task || time_after(jiffies, this_rq->next_balance)) { > - /* > - * We are

Re: [RESUBMIT RFC PATCH v2 3/3] drivers: mfd: Add support for Exynos PMU driver

2014-04-28 Thread Catalin Marinas
On Mon, Apr 28, 2014 at 01:26:46PM +0100, Lee Jones wrote: > > This patch moves Exynos PMU driver implementation from > > "arm/mach-exynos" to "drivers/mfd". > > This driver is mainly used for setting misc bits of register from PMU IP > > of Exynos SoC which will be required to configure before

Re: [PATCH 5/7] clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support

2014-04-28 Thread Boris BREZILLON
On 28/04/2014 20:03, Chen-Yu Tsai wrote: > On Tue, Apr 29, 2014 at 1:14 AM, Boris BREZILLON > wrote: >> Hi Chen-Yu, >> >> On 28/04/2014 17:59, Chen-Yu Tsai wrote: >>> Hi, >>> >>> On Mon, Apr 28, 2014 at 10:58 PM, Boris BREZILLON >>> wrote: The PRCM (Power/Reset/Clock Management) unit

Re: [PATCH v3 1/3] base: power: Add generic OF-based power domain look-up

2014-04-28 Thread Stephen Warren
On 04/23/2014 10:46 AM, Tomasz Figa wrote: > This patch introduces generic code to perform power domain look-up using > device tree and automatically bind devices to their power domains. > Generic device tree binding is introduced to specify power domains of > devices in their device tree nodes. >

Re: lockdep warning after recent cleanup in console code

2014-04-28 Thread Peter Zijlstra
On Mon, Apr 28, 2014 at 01:43:31PM -0400, Steven Rostedt wrote: > > Peter, > > Things have changed with regard to printk() in linux-next. Now it > appears that lockdep is going haywire over it. I don't understand the > exact reason for the lockdep_off() and lockdep_on() logic that is in >

Re: [patch 5/5] irqchip: armanda: Sanitize set_irq_affinity()

2014-04-28 Thread Thomas Gleixner
On Fri, 25 Apr 2014, Jason Cooper wrote: > On Thu, Apr 24, 2014 at 06:04:41PM +0200, Gregory CLEMENT wrote: > > > > I have just noticed that this patch was not merged in 3.15. > > Actually it is not in the core/irq branch of tip.git with > > the other patches of the same series. > > Is there any

Re: [perf] more perf_fuzzer memory corruption

2014-04-28 Thread Thomas Gleixner
On Thu, 24 Apr 2014, Vince Weaver wrote: > I got the bug to trigger again, this time it finally managed to hit a > debug_objects WARNING if that's any additional help. > > The bug followed the same pattern, software event > (PERF_TYPE_SOFTWARE / PERF_COUNT_SW_TASK_CLOCK) created, fork

Re: [PATCH] uprobes: use BX register for rip-relative fixups, not AX

2014-04-28 Thread Denys Vlasenko
On 04/28/2014 07:06 PM, Denys Vlasenko wrote: > + * Note: we can't use rax or rdx registers as scratch! > + * There are 3-operand insns which use rax or rdx:rax > + * as an implicit operand, _and_ they use modrm byte > + * whose reg field indicates third register or opcode

[PATCH 7/6] media: videobuf2-dma-sg: call find_vma with the mmap_sem held

2014-04-28 Thread Davidlohr Bueso
Performing vma lookups without taking the mm->mmap_sem is asking for trouble. While doing the search, the vma in question can be modified or even removed before returning to the caller. Take the lock in order to avoid races while iterating through the vmacache and/or rbtree. Also do some very

Re: [PATCH v2] staging: silicom: Remove unused pointer in bypass_init_module()

2014-04-28 Thread Dan Carpenter
On Mon, Apr 28, 2014 at 08:47:27PM +0200, Christian Engelmayer wrote: > Pointer 'pbpctl_dev_c' in function bypass_init_module() is unused. Thus remove > it. With the last variable declaration gone, there is no more need for an own > block. Remove it and adapt the indenting accordingly. > >

[PATCH v2 4/5] cpufreq, powernow-k7: Fix double invocation of cpufreq_freq_transition_begin/end

2014-04-28 Thread Srivatsa S. Bhat
During frequency transitions, the cpufreq core takes the responsibility of invoking cpufreq_freq_transition_begin() and cpufreq_freq_transition_end() for those cpufreq drivers that define the ->target_index callback but don't set the ASYNC_NOTIFICATION flag. The powernow-k7 cpufreq driver falls

Re: [Patch V2 1/9] ACPICA: Executer: Fix buffer allocation issue for generic_serial_bus region field accesses.

2014-04-28 Thread Adam Williamson
On Mon, 2014-04-28 at 10:52 -0700, Adam Williamson wrote: > On Mon, 2014-04-28 at 22:27 +0800, Lan Tianyu wrote: > > From: Lv Zheng > > > > The size of the buffer allocated for generic_serial_bus region access > > is not correct. This patch introduces acpi_ex_get_serial_access_length() > > to

[PATCH v2 1/5] cpufreq, longhaul: Fix double invocation of cpufreq_freq_transition_begin/end

2014-04-28 Thread Srivatsa S. Bhat
During frequency transitions, the cpufreq core takes the responsibility of invoking cpufreq_freq_transition_begin() and cpufreq_freq_transition_end() for those cpufreq drivers that define the ->target_index callback but don't set the ASYNC_NOTIFICATION flag. The longhaul cpufreq driver falls

[PATCH v2 3/5] cpufreq, powernow-k6: Fix double invocation of cpufreq_freq_transition_begin/end

2014-04-28 Thread Srivatsa S. Bhat
During frequency transitions, the cpufreq core takes the responsibility of invoking cpufreq_freq_transition_begin() and cpufreq_freq_transition_end() for those cpufreq drivers that define the ->target_index callback but don't set the ASYNC_NOTIFICATION flag. The powernow-k6 cpufreq driver falls

[PATCH v2 5/5] cpufreq: Catch double invocations of cpufreq_freq_transition_begin/end

2014-04-28 Thread Srivatsa S. Bhat
Some cpufreq drivers were redundantly invoking the _begin() and _end() APIs around frequency transitions, and this double invocation (one from the cpufreq core and the other from the cpufreq driver) used to result in a self-deadlock, leading to system hangs during boot. (The _begin() API makes

Re: [PATCH] uprobes: use BX register for rip-relative fixups, not AX

2014-04-28 Thread Denys Vlasenko
On 04/28/2014 07:34 PM, Oleg Nesterov wrote: > Thanks... > > Again, the change in riprel_analyze() needs the review from someone > who understands the instruction decoding/encoding. > > On 04/28, Denys Vlasenko wrote: >> >> Otherwise, instructions such as cmpxchg and div will be mishandled. > >

Re: lockdep warning after recent cleanup in console code

2014-04-28 Thread Jan Kara
On Mon 28-04-14 14:14:39, Steven Rostedt wrote: > On Mon, 28 Apr 2014 19:51:39 +0200 > Jan Kara wrote: > > > On Mon 28-04-14 13:43:31, Steven Rostedt wrote: > > > Things have changed with regard to printk() in linux-next. Now it > > > appears that lockdep is going haywire over it. I don't

[PATCH v2 2/5] cpufreq, powernow-k6: Fix incorrect comparison with max_multipler

2014-04-28 Thread Srivatsa S. Bhat
The value of 'max_multiplier' is meant to be used for comparison with clock_ratio[index].driver_data, not the index itself! Fix the code in powernow_k6_cpu_exit() that has this bug. Also, while at it, make the for-loop condition look for CPUFREQ_TABLE_END, instead of hard-coding the loop count to

[PATCH v2 0/5] Cpufreq frequency serialization fixes

2014-04-28 Thread Srivatsa S. Bhat
Hi, Meelis Roos reported hangs during boot in the longhaul cpufreq driver, after commit 12478cf0c55 (cpufreq: Make sure frequency transitions are serialized). The root-cause of this issue is the extra invocation of the cpufreq_freq_transition_begin() and cpufreq_freq_transition_end() APIs in the

Re: Unix-domain sockets hanging on 3.14.x (was Re: possible 3.14.1 lockd problem (?) causing nfsd hangs)

2014-04-28 Thread Nix
On 28 Apr 2014, Hannes Frederic Sowa uttered the following: > On Mon, Apr 28, 2014 at 04:35:38PM +0100, Nix wrote: >> /proc/$pid/stack of the two communicating ssh daemons was instructive: >> >> [] unix_wait_for_peer+0x9f/0xbc >> [] unix_dgram_sendmsg+0x41b/0x534 > > This one is a dgram

Re: X86: Impossible select Enhanced Real Time Clock Support (legacy PC RTC driver)

2014-04-28 Thread John Stultz
On Mon, Apr 21, 2014 at 10:58 AM, Randy Dunlap wrote: > [adding more patch committers] > > On 04/13/2014 12:05 PM, Stefani Seibold wrote: >> Since some kernel version it is impossible to select the Enhanced Real >> Time Clock Support (legacy PC RTC driver) because RTC_LIB is set by >> default in

Re: 3.2.57 regression: isci driver broken: Unable to reset I T nexus?

2014-04-28 Thread Dan Williams
[ adding Ben ] On Mon, Apr 28, 2014 at 10:22 AM, Ondrej Zary wrote: > On Monday 28 April 2014 18:51:44 Jiang, Dave wrote: >> On Mon, 2014-04-28 at 16:28 +, Ondrej Zary wrote: >> > On Monday 28 April 2014 17:50:29 Jiang, Dave wrote: >> > > On Mon, 2014-04-28 at 13:03 +0200, Ondrej Zary wrote:

Re: [PATCH] uprobes: use BX register for rip-relative fixups, not AX

2014-04-28 Thread Oleg Nesterov
On 04/28, Denys Vlasenko wrote: > > On 04/28/2014 07:34 PM, Oleg Nesterov wrote: > > > > It seems that you are right. But it would be really great if you also > > provide the test-case which proves the fix ;) > > Working on a testcase for this. So far covered div (test1) > and cmpxchg (test2). > >

Re: [PATCH RFC 2/2] mm: introdule compound_head_by_tail()

2014-04-28 Thread Michal Hocko
On Mon 28-04-14 23:53:28, Jianyu Zhan wrote: > Hi, Michal, > > On Mon, Apr 28, 2014 at 10:54 PM, Michal Hocko wrote: > > I really fail to see how that helps. compound_head is inlined and the > > compiler should be clever enough to optimize the code properly. I > > haven't tried that to be honest

Re: [PATCH 7/7] ARM: sunxi: dt: add PRCM clk and reset controller subdevices

2014-04-28 Thread Boris BREZILLON
On 28/04/2014 18:02, Chen-Yu Tsai wrote: > Hi, > > On Mon, Apr 28, 2014 at 10:58 PM, Boris BREZILLON > wrote: >> Add DT definitions for PRCM (Power/Reset/Clock Management) clock and reset >> controller subdevices. >> >> Signed-off-by: Boris BREZILLON >> --- >> arch/arm/boot/dts/sun6i-a31.dtsi

Re: [RFC 1/3] atmel: drm: added drm driver for the atmel hlcd controller

2014-04-28 Thread Boris BREZILLON
Hi, This is a first review, from someone who's clearly not a DRM/KMS expert but who already thought about this specific driver :-). I strongly recommend that you wait for DRM/KMS maintainers and/or experienced developers reviews before modifying anything ;-). On 18/04/2014 11:45, Jean-Jacques

[PATCH] rcutorture: don't mark torture_init_{begin,end} with __init

2014-04-28 Thread Will Deacon
By the time rcutorture is initialised via its module_init callback, the .init.text section of torture.ko has already been freed, so the calls to torture_init{begin,end} end up branching to junk. This patch removes the __init annotations from torture_init_{begin,end} to make sure the code is there

Re: [PATCHv3 5/7] ARM: sun7i: dt: add pinmux configuration for the PWM

2014-04-28 Thread Maxime Ripard
On Mon, Apr 28, 2014 at 06:17:12PM +0200, Alexandre Belloni wrote: > Add the pinctrl descriptions for both PWM channels of the Allwinner A20. > > Signed-off-by: Alexandre Belloni Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering

Re: [RFC PATCH v5 06/11] VFIO_PLATFORM: Return info for device and its memory mapped IO regions

2014-04-28 Thread Alex Williamson
On Mon, 2014-04-28 at 17:52 +0200, Antonios Motakis wrote: > A VFIO userspace driver will start by opening the VFIO device > that corresponds to an IOMMU group, and will use the ioctl interface > to get the basic device info, such as number of memory regions and > interrupts, and their properties.

Re: [RFC PATCH v5 09/11] VFIO_PLATFORM: Return IRQ info

2014-04-28 Thread Alex Williamson
On Mon, 2014-04-28 at 17:52 +0200, Antonios Motakis wrote: > Return information for the interrupts exposed by the device. > This patch extends VFIO_DEVICE_GET_INFO with the number of IRQs > and enables VFIO_DEVICE_GET_IRQ_INFO > > Signed-off-by: Antonios Motakis > --- >

[PATCH] uprobes: Refuse to insert a probe into MAP_SHARED vma

2014-04-28 Thread Oleg Nesterov
valid_vma() rejects the VM_SHARED vmas, but this still allows to insert a probe into the MAP_SHARED but not VM_MAYWRITE vma. Currently this is fine, such a mapping doesn't really differ from the private read-only mmap except mprotect(PROT_WRITE) won't work. However, get_user_pages(FOLL_WRITE |

Re: mmotm 2014-04-24-13-07 uploaded

2014-04-28 Thread Randy Dunlap
On 04/28/14 06:55, Paul E. McKenney wrote: > On Sat, Apr 26, 2014 at 11:26:50PM -0700, Paul E. McKenney wrote: >> On Fri, Apr 25, 2014 at 01:52:30PM -0700, Randy Dunlap wrote: >>> On 04/25/14 13:44, Randy Dunlap wrote: On 04/25/14 07:04, Rik van Riel wrote: > On Thu, 24 Apr 2014 15:40:29

Re: [PATCH 0/3] Cpufreq frequency serialization fixes

2014-04-28 Thread Srivatsa S. Bhat
On 04/25/2014 10:59 PM, Meelis Roos wrote: >> Meelis Roos reported hangs during boot in the longhaul cpufreq driver, after >> commit 12478cf0c55 (cpufreq: Make sure frequency transitions are serialized). >> The root-cause of this issue is the extra invocation of the >>

Re: [RFC PATCH v5 03/11] VFIO_IOMMU_TYPE1 for platform bus devices on ARM

2014-04-28 Thread Will Deacon
Hi Alex, On Mon, Apr 28, 2014 at 05:43:41PM +0100, Alex Williamson wrote: > On Mon, 2014-04-28 at 17:52 +0200, Antonios Motakis wrote: > > This allows to make use of the VFIO_IOMMU_TYPE1 driver with platform > > devices on ARM in addition to PCI. This is required in order to use the > > Exynos

Re: intel_rapl: No such device

2014-04-28 Thread Jacob Pan
On Sat, 26 Apr 2014 12:24:45 +0200 Pali Rohár wrote: > Hello, > > on intel haswell mobile cpu it is not possible to load intel_rapl > driver. Modprobe will show this error message: > > intel_rapl.ko': -1 No such device > intel_rapl: driver does not support CPU family 6 model 60 > > Is not

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