[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 mino

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. > > Signed-

[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 un

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 be

[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 under

[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 un

[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 cont

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 underst

[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 socket...

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 a

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 http://fre

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 > --- > drivers/vfio/platform/Mak

[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 | FOL

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 >> cpufreq_freq_transition_begin

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 SMM

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 int

Re: [PATCHv3 6/7] ARM: sun7i: dt: add PWM support

2014-04-28 Thread Maxime Ripard
On Mon, Apr 28, 2014 at 06:17:13PM +0200, Alexandre Belloni wrote: > Add the PWM bindings for the Allwinner A20. > > Signed-off-by: Alexandre Belloni Applied, thanks -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Descri

Re: [PATCHv3 4/7] ARM: sun4i: dt: add PWM support

2014-04-28 Thread Maxime Ripard
On Mon, Apr 28, 2014 at 06:17:11PM +0200, Alexandre Belloni wrote: > Add the PWM bindings for the Allwinner A10. > > Signed-off-by: Alexandre Belloni Applied, thanks -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Descri

Re: [PATCH] net: bonding: Fix format string mismatch in bond_sysfs.c

2014-04-28 Thread David Miller
From: Masanari Iida Date: Tue, 29 Apr 2014 00:41:21 +0900 > Fix format string mismatch in bonding_show_min_links(). > > Signed-off-by: Masanari Iida Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: [PATCHv3 1/7] pwm: Add Allwinner SoC support

2014-04-28 Thread Maxime Ripard
Hi, On Mon, Apr 28, 2014 at 06:17:08PM +0200, Alexandre Belloni wrote: > This adds a generic PWM framework driver for the PWM controller > found on Allwinner SoCs. > > Signed-off-by: Alexandre Belloni > Acked-by: Maxime Ripard > --- > drivers/pwm/Kconfig | 9 ++ > drivers/pwm/Makefile

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

2014-04-28 Thread Marc Zyngier
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 to use set_fixmap_io. A side effect of this conversion is that my

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

2014-04-28 Thread Felipe Balbi
On Mon, Apr 28, 2014 at 07:30:26PM +0200, Apelete Seketeli wrote: > 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 > > mo

Re: [PATCH] ARM: OMAP5: Switch to THUMB mode if needed on secondary CPU

2014-04-28 Thread Joel Fernandes
On 04/28/2014 12:20 PM, Joel Fernandes wrote: > On 04/28/2014 11:43 AM, Dave Martin wrote: >> On Tue, Apr 22, 2014 at 01:31:46PM -0500, Joel Fernandes wrote: >>> On my DRA7 system, when the kernel is built in THUMB mode, the secondary CPU >>> (Cortex A15) fails to come up causing SMP boot on second

Re: [PATCH] rwsem: Support optimistic spinning

2014-04-28 Thread Davidlohr Bueso
On Mon, 2014-04-28 at 09:52 +0200, Peter Zijlstra wrote: > On Tue, Apr 22, 2014 at 03:19:26PM -0700, Davidlohr Bueso wrote: > > --- > > include/linux/rwsem.h | 9 +- > > kernel/locking/rwsem-xadd.c | 213 > > +++- > > kernel/locking/rwsem.c |

LOAN

2014-04-28 Thread Bakker, K.
Dear valued customer, Do you need an urgent loan to pay of your bills, invest more on your business, if yes PREMIUM CAPITAL LOAN offer loan at 3% interest rate. We are fast and reliable when it comes to loan lending contact email: premiumcapitall...@hotmail.co.uk for more information. Contact

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

2014-04-28 Thread Felipe Balbi
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 05:34 PM, Ivan T. Ivanov wrote: > > > > > > >From: "Ivan T. Ivanov"

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

2014-04-28 Thread Christian Engelmayer
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. Signed-off-by: Christian Engelmayer --- v2: Added changes requested by Dan Carpenter:

Re: [RFC] power_supply: Introduce generic psy charging driver

2014-04-28 Thread Pavel Machek
On Mon 2014-04-28 22:24:36, Jenny Tc wrote: > Dmitry/Pavel, > > Request your feedback on this. Fixed the comments from Pavel and waiting for > your feedback on the changes IIRC, my latest comments were "this is completely misdesigned, it is using strings and table searches where it should use po

Re: [PATCH v12 11/31] documentation: iommu: add binding document of Exynos System MMU

2014-04-28 Thread Stephen Warren
On 04/28/2014 05:18 AM, Thierry Reding wrote: > On Mon, Apr 28, 2014 at 12:56:03PM +0200, Arnd Bergmann wrote: ... >> A lot of drivers probably only support one >> master, so they can just set #iommu-cells=<0>, others might require >> IDs that do not fit into one cell. > > You mean "#iommu-cells =

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

2014-04-28 Thread Richard Weinberger
Am 28.04.2014 19:17, schrieb Randy Dunlap: > > uml defconfig on x86_64: > > CC arch/um/kernel/asm-offsets.s > In file included from include/linux/sem.h:5:0, > from include/linux/sched.h:35, > from arch/x86/um/shared/sysdep/kernel-offsets.h:2, >

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:03 -0500, Felipe Balbi wrote: > On Mon, Apr 28, 2014 at 09:00:43PM +0400, Sergei Shtylyov wrote: > > Hello. > > > > On 04/28/2014 05:34 PM, Ivan T. Ivanov wrote: > > > > >From: "Ivan T. Ivanov" > > > > >This fixes following: > > > > >WARNING: drivers/usb/phy/built-in.o

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

2014-04-28 Thread Chen-Yu Tsai
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 provides several clock >>> devices: >>> - AR100 clk: used to

Re: [PATCHv3 3/7] ARM: sun4i: dt: add pinmux configuration for the PWM

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

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

2014-04-28 Thread Greg Kroah-Hartman
On Mon, Apr 28, 2014 at 01:50:13PM -0400, Jeff Layton wrote: > 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; >

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

2014-04-28 Thread Rob Herring
On Mon, Apr 28, 2014 at 12:57 PM, 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 architecture > or by platform-specific code. > > There are situation

Re: [PATCH] ARM: OMAP5: Switch to THUMB mode if needed on secondary CPU

2014-04-28 Thread Joel Fernandes
On 04/28/2014 11:43 AM, Dave Martin wrote: > On Tue, Apr 22, 2014 at 01:31:46PM -0500, Joel Fernandes wrote: >> On my DRA7 system, when the kernel is built in THUMB mode, the secondary CPU >> (Cortex A15) fails to come up causing SMP boot on second CPU to timeout. This >> seems to be because the CP

Re: [PATCH] arm64: add OProfile support

2014-04-28 Thread Will Deacon
On Mon, Apr 28, 2014 at 03:32:04AM +0100, Ding Tianhong wrote: > On 2014/4/26 18:22, Ding Tianhong wrote: > > On 2014/4/26 17:23, Catalin Marinas wrote: > >> On 26 Apr 2014, at 09:38, Ding Tianhong wrote: > >>> Add OProfile support for arm64, using the perf backend, and failing back > >>> to gene

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

2014-04-28 Thread Pawel Moll
On Mon, 2014-04-28 at 18:37 +0100, Pawel Moll wrote: > 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, exec

Re: [PATCH] ARM: OMAP5: Switch to THUMB mode if needed on secondary CPU

2014-04-28 Thread Dave Martin
On Tue, Apr 22, 2014 at 01:31:46PM -0500, Joel Fernandes wrote: > On my DRA7 system, when the kernel is built in THUMB mode, the secondary CPU > (Cortex A15) fails to come up causing SMP boot on second CPU to timeout. This > seems to be because the CPU is in ARM mode once the ROM hands over control

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 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 SMMU, or ARM SMMU driver with VFIO_IOMMU_TYPE1. > > Signed-off-by: Antonios Motakis

Re: [PATCH RFC 1/2] mm/swap.c: split put_compound_page function

2014-04-28 Thread Khalid Aziz
On 04/27/2014 07:35 AM, Jianyu Zhan wrote: Currently, put_compound_page should carefully handle tricky case to avoid racing with compound page releasing or spliting, which makes it growing quite lenthy(about 200+ lines) and need deep tab indention, which makes it quite hard to follow and maintain

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

2014-04-28 Thread Jason Low
On Sat, 2014-04-26 at 16:50 +0200, Peter Zijlstra wrote: > On Fri, Apr 25, 2014 at 12:54:14PM -0700, Jason Low wrote: > > Preeti mentioned that sd->balance_interval is changed during load_balance(). > > Should we also consider updating the interval in rebalance_domains() after > > calling load_bala

Re: [PATCH 07/10] ARM: dts: DRA7: Add DT node for DES IP

2014-04-28 Thread Joel Fernandes
On 04/26/2014 11:36 AM, Sergei Shtylyov wrote: > Hello. > > On 26-04-2014 3:02, Joel Fernandes wrote: > >> DRA7xx SoCs have a DES3DES IP. Add DT data for the same. > >> Signed-off-by: Joel Fernandes >> --- >> arch/arm/boot/dts/dra7.dtsi | 11 +++ >> 1 file changed, 11 insertions(+)

[PATCH v4] kvm/irqchip: Speed up KVM_SET_GSI_ROUTING

2014-04-28 Thread Paolo Bonzini
From: Christian Borntraeger When starting lots of dataplane devices the bootup takes very long on Christian's s390 with irqfd patches. With larger setups he is even able to trigger some timeouts in some components. Turns out that the KVM_SET_GSI_ROUTING ioctl takes very long (strace claims up to

Re: [sched,rcu] 9234566d3a3: +1.6% will-it-scale.scalability, +1302.6% time.involuntary_context_switches

2014-04-28 Thread Paul E. McKenney
On Tue, Apr 22, 2014 at 10:41:12AM +0800, Jet Chen wrote: > On 04/22/2014 09:59 AM, Paul E. McKenney wrote: > >On Mon, Apr 21, 2014 at 02:28:21PM +0800, Jet Chen wrote: > >>Hi Paul, > >> > >>we noticed the below changes on > >>git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > >

Re: [RESEND PATCH v3 3/5] mfd: tps65090: Stop caching most registers

2014-04-28 Thread Doug Anderson
Lee, On Mon, Apr 28, 2014 at 4:57 AM, Lee Jones wrote: >> >> > Nearly all of the registers in tps65090 combine control bits and >> >> > status bits. Turn off caching of all registers except the select few >> >> > that can be cached. >> >> >> >> Lee, I don't mind if I apply this and send a pull r

lockdep warning after recent cleanup in console code

2014-04-28 Thread Shevchenko, Andriy
recursive locking detected ] [0.00] 3.15.0-rc2-next-20140428-00030-gd3550d8 #38 Not tainted [0.00] - [0.00] swapper/0 is trying to acquire lock: [0.00] (console_lock){..}, at: [] register_console+0x15e/0x295 [0.00

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

2014-04-28 Thread Ondrej Zary
On Monday 28 April 2014 17:50:29 Jiang, Dave wrote: > On Mon, 2014-04-28 at 13:03 +0200, Ondrej Zary wrote: > > Hello, > > just upgraded a server running 3.2.54-2 to 3.2.57-3 (Debian Wheezy) and > > it does not boot anymore because of isci driver breakage. > > I would not run anything less than 3.8

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

2014-04-28 Thread Jianyu Zhan
On Mon, Apr 28, 2014 at 11:55 PM, Peter Zijlstra wrote: > What version, the code snipt in question is extracted from v3.15-rc3. for the (1) check in previous email, its assembled code looks like: --- (1) snipt --- mov(%rdi),%rax (a) test

[PATCH 3.15-rc3] cpufreq: ppc-corenet-cpufreq: Fix __udivdi3 modpost error

2014-04-28 Thread Tim Gardner
bfa709bc823fc32ee8dd5220d1711b46078235d8 (cpufreq: powerpc: add cpufreq transition latency for FSL e500mc SoCs) introduced a modpost error: ERROR: "__udivdi3" [drivers/cpufreq/ppc-corenet-cpufreq.ko] undefined! make[1]: *** [__modpost] Error 1 Fix this by avoiding 64 bit integer division. gcc ve

[PATCHv3 6/7] ARM: sun7i: dt: add PWM support

2014-04-28 Thread Alexandre Belloni
Add the PWM bindings for the Allwinner A20. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index c6eb881a3ced..19d1f60209c5 100644 --- a/arch/arm

Re: [linux-sunxi] Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-28 Thread Chen-Yu Tsai
On Wed, Apr 23, 2014 at 9:49 AM, Alexandre Courbot wrote: > On Wed, Apr 23, 2014 at 12:02 AM, Linus Walleij > wrote: >> On Tue, Apr 15, 2014 at 8:41 AM, Chen-Yu Tsai wrote: >> >>> This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO >>> phandles by name only, through gpios/gpio-

[PATCHv3 7/7] ARM: sunxi: dt: add PWM support for the cubietruck

2014-04-28 Thread Alexandre Belloni
Enable the PWM for both PWM channels on the cubietruck. They can be found on connector CN8. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/su

Re: [PATCH 5/6] ARM: AM43xx: clk: Change the cpts ref clock source to dpll_core_m5 clk

2014-04-28 Thread Richard Cochran
On Mon, Apr 28, 2014 at 06:25:56PM +0530, George Cherian wrote: > In beagle bone white (AM335x) CPTS has a choice of 2 clocksource > -dpll_core_m5_ck > -dpll_core_m4_ck > and by default dpll_core_m5_ck is used. Where as in AM437x the > default clocksource used is dpll_core_m4_ck . Is your patch

[PATCHv3 3/7] ARM: sun4i: dt: add pinmux configuration for the PWM

2014-04-28 Thread Alexandre Belloni
Add the pinctrl descriptions for both PWM channels of the Allwinner A10. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sun4i-a10.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 9174724571e

[PATCHv3 1/7] pwm: Add Allwinner SoC support

2014-04-28 Thread Alexandre Belloni
This adds a generic PWM framework driver for the PWM controller found on Allwinner SoCs. Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- drivers/pwm/Kconfig | 9 ++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-sunxi.c | 345

[PATCHv3 2/7] pwm: sunxi: document OF bindings

2014-04-28 Thread Alexandre Belloni
This is the documentation for the Allwinner Socs PWM bindings. Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- Documentation/devicetree/bindings/pwm/pwm-sunxi.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/p

[PATCHv3 4/7] ARM: sun4i: dt: add PWM support

2014-04-28 Thread Alexandre Belloni
Add the PWM bindings for the Allwinner A10. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sun4i-a10.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 109e796e4a69..bb11c422526b 100644 --- a/arch/arm

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

2014-04-28 Thread Alexandre Belloni
Add the pinctrl descriptions for both PWM channels of the Allwinner A20. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sun7i-a20.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 32efc105df8

[PATCHv3 0/7] Add Allwinner SoCs PWM support

2014-04-28 Thread Alexandre Belloni
Hi, This patch set adds support for the PWM controller found on the Allwinner SoCs. The first patch adds the driver itself. The second patch adds the DT binding documentation The third patch adds the bindings to the sun7i-a20 DTS include. And finally, the la patch adds support for the PWMs to the

Re: [PATCH 1/4] ARM: dts: am335x-bone-common: use phandles for USB and DMA refs

2014-04-28 Thread Guido Martínez
On Mon, Apr 28, 2014 at 08:11:33PM +0530, George Cherian wrote: > On 4/28/2014 7:28 PM, Guido Martínez wrote: > >Use phandles instead of unit adresses to reference usb and dma nodes. > >This makes the DT more robust and readable. > The series will give dtb build errors > Error: arch/arm/boot/dts/am

Re: linux-next: manual merge of the usb-gadget tree with the usb tree

2014-04-28 Thread Felipe Balbi
On Mon, Apr 28, 2014 at 03:20:44PM +1000, Stephen Rothwell wrote: > Hi Felipe, > > Today's linux-next merge of the usb-gadget tree got a conflict in > drivers/usb/phy/phy-mv-u3d-usb.c between commit 543cab640279 ("usb: phy: > mv_u3d: Remove usb phy driver for mv_u3d") from the usb tree and commit

Re: [RFC 2/5] clk: berlin: add berlin clock groups DT bindings documentation

2014-04-28 Thread Maxime Ripard
On Fri, Apr 25, 2014 at 10:00:21PM +0200, Alexandre Belloni wrote: > Document the device tree for the clocks sharing a common set of registers > > Signed-off-by: Alexandre Belloni > --- > Cc: devicet...@vger.kernel.org > .../devicetree/bindings/clock/berlin-clock.txt | 29 >

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

2014-04-28 Thread Antonios Motakis
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 SMMU, or ARM SMMU driver with VFIO_IOMMU_TYPE1. Signed-off-by: Antonios Motakis --- drivers/vfio/Kconfig| 2 +- drivers/vfio/vfio_iommu_

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

2014-04-28 Thread Chen-Yu Tsai
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 | 49 > > 1 fi

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

2014-04-28 Thread Boris BREZILLON
On 28/04/2014 17:25, Emilio López wrote: > Hi Boris, > > El 28/04/14 11:58, Boris BREZILLON escribió: >> The PRCM (Power/Reset/Clock Management) unit provides several clock >> devices: >> - AR100 clk: used to clock the Power Management co-processor >> - AHB0 clk: used to clock the AHB0 bus >> - AP

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

2014-04-28 Thread Antonios Motakis
The ARM SMMU can take an IOMMU_EXEC protection flag in addition to IOMMU_READ and IOMMU_WRITE. Expose this as an IOMMU capability. Signed-off-by: Antonios Motakis --- drivers/iommu/arm-smmu.c | 2 ++ include/linux/iommu.h| 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git

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

2014-04-28 Thread Chen-Yu Tsai
Hi, On Mon, Apr 28, 2014 at 10:58 PM, Boris BREZILLON wrote: > The PRCM (Power/Reset/Clock Management) unit provides several clock > devices: > - AR100 clk: used to clock the Power Management co-processor > - AHB0 clk: used to clock the AHB0 bus > - APB0 clk and gates: used to clk > > Add support

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

2014-04-28 Thread Antonios Motakis
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. This patch enables the IOCTLs: - VFIO_DEVICE_GET_INFO - VFIO_DEV

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

2014-04-28 Thread Antonios Motakis
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 changed, 39 insertions(+), 1 deletion(-) diff --git a/drivers/vfio/platform/vfio_p

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

2014-04-28 Thread Antonios Motakis
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. Signed-off-by: Antonios Motakis --- drivers/vfio/platform/vfio_plat

[RFC PATCH v5 10/11] VFIO_PLATFORM: Initial interrupts support

2014-04-28 Thread Antonios Motakis
This patch allows to set an eventfd for a patform device's interrupt, and also to trigger the interrupt eventfd from userspace for testing. Signed-off-by: Antonios Motakis --- drivers/vfio/platform/vfio_platform.c | 36 +++- drivers/vfio/platform/vfio_platform_irq.c | 123 ++

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

2014-04-28 Thread Felipe Balbi
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. you need to explain what are you trying to provide to our users here. What "problem" are you trying to solve ? > As ep0 requests are more complex than others.

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

2014-04-28 Thread Peter Zijlstra
On Mon, Apr 28, 2014 at 11:53:28PM +0800, Jianyu Zhan wrote: > Actually, I checked the assembled code, the compiler is _not_ > so smart to recognize this case. It just does optimization as > the hint unlikely() told it. What version, and why didn't your changelog include this useful information? -

Re: [PATCH RFC 1/2] mm/swap.c: split put_compound_page function

2014-04-28 Thread Jianyu Zhan
On Mon, Apr 28, 2014 at 11:00 PM, Michal Hocko wrote: > This is a big change and really hard to review to be honest. Maybe a > split up would make it easier to follow. Ok, actually it is quite simple, but the diff looks messy, I will try to split up this patch to several phases. Thanks, Jianyu

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

2014-04-28 Thread Antonios Motakis
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 --- drivers/vfio/platform/Makefile| 2 +- drivers/vfio/platform/vfio_platform.c

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

2014-04-28 Thread Antonios Motakis
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 --- drivers/vfio/platform/vfio_platform_irq.c | 117 +

[RFC PATCH v5 05/11] VFIO_PLATFORM: Initial skeleton of VFIO support for platform devices

2014-04-28 Thread Antonios Motakis
This patch forms the skeleton for platform devices support with VFIO. Signed-off-by: Antonios Motakis --- drivers/vfio/Kconfig | 1 + drivers/vfio/Makefile | 1 + drivers/vfio/platform/Kconfig | 9 ++ drivers/vfio/platform/Ma

[RFC PATCH v5 04/11] VFIO_IOMMU_TYPE1: Introduce the VFIO_DMA_MAP_FLAG_EXEC flag

2014-04-28 Thread Antonios Motakis
The ARM SMMU driver expects the IOMMU_EXEC flag, otherwise it will set the page tables for a device as XN (execute never). This affects devices such as the ARM PL330 DMA Controller, which fails to operate if the XN flag is set on the memory it tries to fetch its instructions from. We introduce the

[RFC PATCH v5 01/11] driver core: platform: add device binding path 'driver_override'

2014-04-28 Thread Antonios Motakis
From: Kim Phillips Needed by platform device drivers, such as the vfio-platform driver [1], in order to bypass the existing OF, ACPI, id_table and name string matches, and successfully be able to be bound to any device, like so: echo vfio-platform > /sys/bus/platform/devices/fff51000.ethernet/dr

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

2014-04-28 Thread Jianyu Zhan
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 but this looks like it only adds a code > without any goo

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

2014-04-28 Thread Hannes Frederic Sowa
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 socket... > [] sock_sendmsg+0x84/0x9e > [] SyS_sendto+0x10e/0x13f > [] system_

Re: [PATCH v2 0/4] memcg: Low-limit reclaim

2014-04-28 Thread Roman Gushchin
28.04.2014, 16:27, "Michal Hocko" : > The series is based on top of the current mmotm tree. Once the series > gets accepted I will post a patch which will mark the soft limit as > deprecated with a note that it will be eventually dropped. Let me know > if you would prefer to have such a patch a par

[PATCH V3 16/20] bus: omap_l3_noc: add information about the type of operation

2014-04-28 Thread Nishanth Menon
Today we get error such as L3 Custom Error: MASTER MPU TARGET L4PER2 But since the actual instruction triggerring the error Vs the point at which we report error may not be aligned, it makes sense to try and provide additional information - example the type of operation that was attempted to being

[PATCH V3 09/20] bus: omap_l3_noc: Add support for discountinous flag mux input numbers

2014-04-28 Thread Nishanth Menon
From: Rajendra Nayak On DRA7, unlike on OMAP4 and OMAP5, the flag mux input numbers used to indicate the source of errors are not continous. Have a way in the driver to catch these and WARN the user of the flag mux input thats either undocumented or wrong. In the similar vein, Timeout errors in

Re: [PATCH v3 3/4] usb: ohci-exynos: Add facility to use phy provided by the generic phy framework

2014-04-28 Thread Alan Stern
On Mon, 28 Apr 2014, Vivek Gautam wrote: > Add support to consume phy provided by Generic phy framework. > Keeping the support for older usb-phy intact right now, in order > to prevent any functionality break in absence of relevant > device tree side change for ohci-exynos. > Once we move to new p

[PATCH] net: bonding: Fix format string mismatch in bond_sysfs.c

2014-04-28 Thread Masanari Iida
Fix format string mismatch in bonding_show_min_links(). Signed-off-by: Masanari Iida --- drivers/net/bonding/bond_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 431892f..cb95ee4 100644 --- a/dr

[PATCH V3 02/20] bus: omap_l3_noc: rename functions and data to omap_l3

2014-04-28 Thread Nishanth Menon
From: Sricharan R Since omap_l3_noc driver is now being used for OMAP5 and reusable with DRA7 and AM437x, using omap4 specific naming is misleading. Signed-off-by: Sricharan R Signed-off-by: Nishanth Menon Acked-by: Santosh Shilimkar Acked-by: Peter Ujfalusi Tested-by: Darren Etheridge ---

[PATCH V3 19/20] bus: omap_l3_noc: Add DRA7 interconnect error data

2014-04-28 Thread Nishanth Menon
From: Rajendra Nayak DRA7 is distinctly different from OMAP4 in terms of masters and clock domain organization. There two main clock domains which is divided as follows: <0x4400 0x100> is clk1 and clk2 is the sub clock domain <0x4500 0x1000> is clk3 Add all the data needed

<    1   2   3   4   5   6   7   8   9   >