[RFC PATCH 2/3] lib/vsprintf.c: append "..." if the *pb[l] output has been truncated.

2015-09-16 Thread Maurizio Lombardi
The *pb[l] format may generate a very long string that could exaust the output buffer capacity; when such event happens the output could be misleading, it may appear valid but part of it has been truncated. This patch modifies the bitmap_*_string() functions so they will append "..." to the output

[RESEND PATCH] NFC: trf7970a: Add OF match table

2015-09-16 Thread Javier Martinez Canillas
The Documentation/devicetree/bindings/net/nfc/trf7970a.txt DT binding doc lists "ti,trf7970a" as a compatible string but the corresponding driver does not have an OF match table. Add the table to the driver so the SPI core can do an OF style match. Signed-off-by: Javier Martinez Canillas --- d

Re: [PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-16 Thread Archit Taneja
Hi, On 09/16/2015 02:04 PM, Xinwei Kong wrote: hi architt On 2015/9/16 2:11, Rob Herring wrote: On 09/15/2015 04:37 AM, Xinwei Kong wrote: This adds documentation of device tree bindings for the Graphics Processing Unit of hi6220 SOC. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong

[RESEND PATCH] net: ks8851: Export OF module alias information

2015-09-16 Thread Javier Martinez Canillas
Drivers needs to export the OF id table and this be built into the module or udev won't have the necessary information to autoload the driver module when the device is registered via OF. Signed-off-by: Javier Martinez Canillas --- drivers/net/ethernet/micrel/ks8851.c | 1 + 1 file changed, 1 i

Re: [PATCH] coccinelle: tests: unsigned value cannot be lesser than zero

2015-09-16 Thread Andrzej Hajda
On 09/15/2015 03:57 PM, Julia Lawall wrote: > > > On Tue, 15 Sep 2015, Andrzej Hajda wrote: > >> On 09/15/2015 03:31 PM, Julia Lawall wrote: >>> On Tue, 15 Sep 2015, SF Markus Elfring wrote: >>> >> v@p >> ( >> *< 0 >> | >> *<= 0 >> ) > It does not, and is not intende

[RESEND PATCH] OMAPDSS: panel-sony-acx565akm: Export OF module alias information

2015-09-16 Thread Javier Martinez Canillas
Drivers needs to export the OF id table and this be built into the module or udev won't have the necessary information to autoload the driver module when the device is registered via OF. Signed-off-by: Javier Martinez Canillas --- drivers/video/fbdev/omap2/displays-new/panel-sony-acx565akm.c |

[RESEND PATCH] mmc: mmc_spi: Export OF module alias information

2015-09-16 Thread Javier Martinez Canillas
Drivers needs to export the OF id table and this be built into the module or udev won't have the necessary information to autoload the driver module when the device is registered via OF. Signed-off-by: Javier Martinez Canillas --- drivers/mmc/host/mmc_spi.c | 1 + 1 file changed, 1 insertion(+

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 10:57, Christian Borntraeger wrote: > Am 16.09.2015 um 10:32 schrieb Paolo Bonzini: >> >> >> On 15/09/2015 19:38, Paul E. McKenney wrote: >>> Excellent points! >>> >>> Other options in such situations include the following: >>> >>> o Rework so that the code uses call_rcu*() instea

[RESEND PATCH 1/1] ASoC: fsl_ssi: Fix checking of dai format for AC97 mode

2015-09-16 Thread Adam Thomson
Current code incorrectly treats dai format for AC97 as bit mask whereas it's actually an integer value. This causes DAI formats other than AC97 (e.g. DSP_B) to trigger AC97 related code, which is incorrect and breaks functionality. This patch fixes the code to correctly compare values to determine

Re: [PATCH v4 1/2] KVM: nVMX: enhance allocate/free_vpid to handle shadow vpid

2015-09-16 Thread Jan Kiszka
On 2015-09-16 09:19, Wanpeng Li wrote: > Enhance allocate/free_vid to handle shadow vpid. > > Signed-off-by: Wanpeng Li > --- > arch/x86/kvm/vmx.c | 23 +++ > 1 file changed, 11 insertions(+), 12 deletions(-) > > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > index 9

Re: [PATCH v4 1/2] KVM: nVMX: enhance allocate/free_vpid to handle shadow vpid

2015-09-16 Thread Wanpeng Li
On 9/16/15 5:11 PM, Jan Kiszka wrote: On 2015-09-16 09:19, Wanpeng Li wrote: Enhance allocate/free_vid to handle shadow vpid. Signed-off-by: Wanpeng Li --- arch/x86/kvm/vmx.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/a

[PATCH v8 02/13] KVM: Add some helper functions for Posted-Interrupts

2015-09-16 Thread Feng Wu
This patch adds some helper functions to manipulate the Posted-Interrupts Descriptor. Signed-off-by: Feng Wu Reviewed-by: Paolo Bonzini --- arch/x86/kvm/vmx.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 271dd70..3

[PATCH v8 05/13] KVM: make kvm_set_msi_irq() public

2015-09-16 Thread Feng Wu
Make kvm_set_msi_irq() public, we can use this function outside. Signed-off-by: Feng Wu Reviewed-by: Paolo Bonzini --- v8: - Export kvm_set_msi_irq() so we can use it in vmx code arch/x86/include/asm/kvm_host.h | 4 arch/x86/kvm/irq_comm.c | 5 +++-- 2 files changed, 7 insertions(

[PATCH v8 03/13] KVM: Define a new interface kvm_intr_is_single_vcpu()

2015-09-16 Thread Feng Wu
This patch defines a new interface kvm_intr_is_single_vcpu(), which can returns whether the interrupt is for single-CPU or not. It is used by VT-d PI, since now we only support single-CPU interrupts, For lowest-priority interrupts, if user configures it via /proc/irq or uses irqbalance to make it

[PATCH v8 01/13] KVM: Extend struct pi_desc for VT-d Posted-Interrupts

2015-09-16 Thread Feng Wu
Extend struct pi_desc for VT-d Posted-Interrupts. Signed-off-by: Feng Wu --- arch/x86/kvm/vmx.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 83b7b5c..271dd70 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/

Re: [PATCH] clk: readd refcounting for struct clk instances [when used in pm_clk_add_clk(), genpd]

2015-09-16 Thread Heiko Stübner
Hi Stephen, Am Dienstag, 15. September 2015, 17:39:31 schrieb Stephen Boyd: > On 09/15, Heiko Stübner wrote: > > With the split into struct clk and struct clk_core, clocks lost the > > ability for nested __clk_get clkdev calls. While it stays possible to > > call __clk_get, the first call to (__)c

Re: [PATCH] barriers: introduce smp_mb__release_acquire and update documentation

2015-09-16 Thread Peter Zijlstra
On Tue, Sep 15, 2015 at 10:47:24AM -0700, Paul E. McKenney wrote: > > diff --git a/arch/powerpc/include/asm/barrier.h > > b/arch/powerpc/include/asm/barrier.h > > index 0eca6efc0631..919624634d0a 100644 > > --- a/arch/powerpc/include/asm/barrier.h > > +++ b/arch/powerpc/include/asm/barrier.h > > @

Re: [PATCH v8 03/13] KVM: Define a new interface kvm_intr_is_single_vcpu()

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 10:49, Feng Wu wrote: > This patch defines a new interface kvm_intr_is_single_vcpu(), > which can returns whether the interrupt is for single-CPU or not. > > It is used by VT-d PI, since now we only support single-CPU > interrupts, For lowest-priority interrupts, if user configures

[linux-next] oops in ip_route_input_noref

2015-09-16 Thread Sergey Senozhatsky
Hi, 4.3.0-rc1-next-20150916 oops after removal of rndis usb device ... 8146c052: 00 8146c053: 0f b6 55 8a movzbl -0x76(%rbp),%edx 8146c057: 49 8b bf e8 01 00 00mov0x1e8(%r15),%rdi 8146c05e: 45 89 d1mov

Re: [RFC 08/14] sched/tune: add detailed documentation

2015-09-16 Thread Juri Lelli
Hi Steve, thanks a lot for this interesting discussion. On 16/09/15 00:55, Steve Muckle wrote: > On 09/15/2015 08:00 AM, Patrick Bellasi wrote: >>> Agreed, though I also think those tunable values might also change for a >>> given set of tasks in different circumstances. >> >> Could you provide a

Re: [PATCH] coccinelle: tests: unsigned value cannot be lesser than zero

2015-09-16 Thread Julia Lawall
On Wed, 16 Sep 2015, Andrzej Hajda wrote: > On 09/15/2015 03:57 PM, Julia Lawall wrote: > > > > > > On Tue, 15 Sep 2015, Andrzej Hajda wrote: > > > >> On 09/15/2015 03:31 PM, Julia Lawall wrote: > >>> On Tue, 15 Sep 2015, SF Markus Elfring wrote: > >>> > >> v@p > >> ( > >> *< 0 > >>

Re: [PATCH v8 09/13] KVM: Add an arch specific hooks in 'struct kvm_kernel_irqfd'

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 10:50, Feng Wu wrote: > +int kvm_arch_update_irqfd_routing(struct kvm *kvm, unsigned int host_irq, > +uint32_t guest_irq, bool set) > +{ > + return !kvm_x86_ops->update_pi_irte ? -EINVAL : > + kvm_x86_ops->update_pi_irte(kvm, host_irq,

Re: [PATCH] mmc: pxamci: fix card detect threaded interrupt

2015-09-16 Thread Robert Jarzmik
Ulf Hansson writes: > On 12 September 2015 at 11:03, Robert Jarzmik wrote: >> Change the interrupt flavor of the card detection, from a hard interrupt >> to a threaded interrupt. There is no strong requirement for a hard >> interrupt. >> >> It fixes the case where the card detection is on a gpio

Re: [PATCH v8 10/13] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 10:50, Feng Wu wrote: > + > + if (!irq_remapping_cap(IRQ_POSTING_CAP) || > + (!kvm_arch_has_assigned_device(vcpu->kvm))) > + return; > + Better: if (!arch_has_assigned_device(vcpu->kvm)) || !irq_remapping_cap(IRQ_POSTING_CAP))

Re: [PATCH 3.12 00/33] 3.12.48-stable review

2015-09-16 Thread Jiri Slaby
On 09/15/2015, 06:12 PM, Shuah Khan wrote: > On 09/15/2015 08:22 AM, Jiri Slaby wrote: >> This is the start of the stable review cycle for the 3.12.48 release. >> There are 33 patches in this series, all will be posted as a response >> to this one. If anyone has any issues with these being applied

[PATCH 2/2] mmc: vub300: Remove unneded semicolons

2015-09-16 Thread Javier Martinez Canillas
They aren't needed and are just creating null statements so remove it. Signed-off-by: Javier Martinez Canillas --- drivers/mmc/host/vub300.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c index fbabbb82b354..1e819

[PATCH v5 1/2] KVM: nVMX: enhance allocate/free_vpid to handle shadow vpid

2015-09-16 Thread Wanpeng Li
Enhance allocate/free_vid to handle shadow vpid. Signed-off-by: Wanpeng Li --- arch/x86/kvm/vmx.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 9ff6a3f..f8d704d 100644 --- a/arch/x86/kvm/vmx.c +++ b/a

[PATCH v5 2/2] KVM: nVMX: nested VPID emulation

2015-09-16 Thread Wanpeng Li
VPID is used to tag address space and avoid a TLB flush. Currently L0 use the same VPID to run L1 and all its guests. KVM flushes VPID when switching between L1 and L2. This patch advertises VPID to the L1 hypervisor, then address space of L1 and L2 can be separately treated and avoid TLB flus

[PATCH v5 0/2] KVM: nested VPID emulation

2015-09-16 Thread Wanpeng Li
v4 -> v5: * add vpid == 0 check v3 -> v4: * return 0 if vpid == VMX_NR_VPIDs * skip vpid != 0 check v2 -> v3: * enhance allocate/free_vpid as Jan's suggestion * add more comments to 2/2 v1 -> v2: * enhance allocate/free_vpid to handle shadow vpid * drop empty space * allocate shadow vpid

[PATCH 1/2] mmc: wbsd: Remove unneded semicolon

2015-09-16 Thread Javier Martinez Canillas
It's not needed an is just creating a null statement, so remove it. Signed-off-by: Javier Martinez Canillas --- drivers/mmc/host/wbsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c index ca183ea767b3..c3fd16d997ca 100644 -

Re: [PATCH v8 12/13] KVM: Warn if 'SN' is set during posting interrupts by software

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 10:50, Feng Wu wrote: > Currently, we don't support urgent interrupt, all interrupts > are recognized as non-urgent interrupt, so we cannot post > interrupts when 'SN' is set. > > If the vcpu is in guest mode, it cannot have been scheduled out, > and that's the only case when SN is

Re: [PATCH v8 11/13] KVM: Update Posted-Interrupts Descriptor when vCPU is blocked

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 10:50, Feng Wu wrote: >* are two possible cases: > - * 1. After running 'pi_pre_block', context switch > + * 1. After running 'pre_block', context switch Please fold this in the previous patch. >*happened. For this case

Re: [PATCH v8 00/13] Add VT-d Posted-Interrupts support

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 10:49, Feng Wu wrote: > VT-d Posted-Interrupts is an enhancement to CPU side Posted-Interrupt. > With VT-d Posted-Interrupts enabled, external interrupts from > direct-assigned devices can be delivered to guests without VMM > intervention when guest is running in non-root mode. > >

[PATCHv2] SUNRPC: Fix a race in xs_reset_transport

2015-09-16 Thread Suzuki K. Poulose
From: "Suzuki K. Poulose" Ignore the previous patch, which was really v1. --- Encountered the following BUG() with 4.3-rc1 on a fast model for arm64 with NFS root filesystem. [ cut here ] kernel BUG at fs/inode.c:1493! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Mod

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Dave Young
Cc kexec list. On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > call parse_crash_elf64_headers() or parse_crash_elf32_headers(). > But this happens in run time, not compile time. So com

Re: [PATCH v2 1/3] net: irda: pxaficp_ir: use sched_clock() for time management

2015-09-16 Thread Robert Jarzmik
David Miller writes: > From: Robert Jarzmik > Date: Sat, 12 Sep 2015 13:45:22 +0200 > >> Instead of using directly the OS timer through direct register access, >> use the standard sched_clock(), which will end up in OSCR reading >> anyway. >> >> This is a first step for direct access register r

[PATCH] drm/mgag200: Fix calling drm_fb_helper_fini() twice

2015-09-16 Thread Ingo Molnar
* Archit Taneja wrote: > From: Archit Taneja > Date: Mon, 14 Sep 2015 20:11:43 +0530 > Subject: [PATCH] drm/mgag200: Prevent calling drm_fb_helper_fini twice > > mgag200_fbdev_init's error handling path calls drm_fb_helper_fini before > bailing out. The error handling path of mgag200_driver_lo

Re: [PATCH] net: smc91x: convert pxa dma to dmaengine

2015-09-16 Thread Robert Jarzmik
David Miller writes: > From: Robert Jarzmik > Date: Thu, 10 Sep 2015 21:26:04 +0200 > >> Convert the dma transfers to be dmaengine based, now pxa has a dmaengine >> slave driver. This makes this driver a bit more PXA agnostic. >> >> The driver was tested on pxa27x (mainstone) and pxa310 (zyloni

Re: [PATCHv2] SUNRPC: Fix a race in xs_reset_transport

2015-09-16 Thread Marc Zyngier
On 16/09/15 10:35, Suzuki K. Poulose wrote: > From: "Suzuki K. Poulose" > > Ignore the previous patch, which was really v1. > > --- > > Encountered the following BUG() with 4.3-rc1 on a fast model > for arm64 with NFS root filesystem. > > [ cut here ] > kernel BUG at fs

Re: [PATCH 05/26] usb: gadget: f_ecm: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
On 09/15/2015 05:45 PM, Krzysztof Opasiak wrote: > > > On 09/15/2015 04:26 PM, Robert Baldyga wrote: >> Since ep->driver_data is not used for endpoint claiming, neither for >> enabled/disabled state storing, we can reduce number of places where >> we read or modify it's value, as now it has no pa

Re: PowerPC: massive "scheduling while atomic" reports

2015-09-16 Thread Thomas Gleixner
On Tue, 15 Sep 2015, Juergen Borleis wrote: > On Tuesday 15 September 2015 00:05:31 Thomas Gleixner wrote: > > If you encounter such a 'confusing' problem the next time, then look > > out for commonalities, AKA patterns. 99% of all problems can be > > decoded via patterns. And if you look at the ot

Re: [PATCH v4 RESEND] x86/asm/entry/32, selftests: Add 'test_syscall_vdso' test

2015-09-16 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Sep 14, 2015 11:00 PM, "Ingo Molnar" wrote: > > > > > > * Andy Lutomirski wrote: > > > > > On Sep 14, 2015 1:15 AM, "Ingo Molnar" wrote: > > > > > > > > > > > > * Denys Vlasenko wrote: > > > > > > > > > >> + /* INT80 syscall entrypoint can

Re: vhost: build failure

2015-09-16 Thread Sudip Mukherjee
On Wed, Sep 16, 2015 at 11:36:45AM +0300, Michael S. Tsirkin wrote: > On Wed, Sep 16, 2015 at 01:50:08PM +0530, Sudip Mukherjee wrote: > > Hi, > > While crosscompiling the kernel for openrisc with allmodconfig the build > > failed with the error: > > drivers/vhost/vhost.c: In function 'vhost_vring_

Re: [PATCH 02/31] arch/ia64/tioce: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > arch/ia64/sn/pci/

[PATCH] mmc: sdhci-bcm-kona: fix logic to check for 8-bit data width

2015-09-16 Thread Javier Martinez Canillas
The driver prints if the data width is 8-bit but it's using a binary OR instead of a binary AND so it will always report as "is_8bit=Y" regardless of the flags in host->mmc->caps. Signed-off-by: Javier Martinez Canillas --- drivers/mmc/host/sdhci-bcm-kona.c | 2 +- 1 file changed, 1 insertion(

Re: [PATCH 01/31] arch/arm/mach-lpc32xx: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > arch/arm/mach-lpc

Re: [PATCH 08/31] arch/x86/intel-mid: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > arch/x86/platform

[PATCH v4] add stealth mode

2015-09-16 Thread Matteo Croce
Add option to disable any reply not related to a listening socket, like RST/ACK for TCP and ICMP Port-Unreachable for UDP. Also disables ICMP replies to echo request and timestamp. The stealth mode can be enabled selectively for a single interface. Signed-off-by: Matteo Croce --- rebased on 4.3-r

Re: [PATCH 12/31] drm/amdgpu: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > drivers/gpu/drm/a

Re: [PATCH 13/31] memstick: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > drivers/memstick

Re: [PATCH 14/31] message/fusion: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > drivers/message/f

Re: [PATCH v2 4/4] iio: bmc150: Add SPI driver

2015-09-16 Thread Markus Pargmann
On Tue, Sep 01, 2015 at 07:10:57AM -0700, Srinivas Pandruvada wrote: > On Mon, 2015-08-31 at 17:18 +0100, Jonathan Cameron wrote: > > On 20/08/15 13:49, Markus Pargmann wrote: > > > Add a simple SPI driver which initializes the spi regmap for the > > > bmc150 > > > core driver. > > > > > > Signed

Re: [PATCH 15/31] misc/vmw_vmci: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > drivers/misc/vmw_

Re: [PATCH 2/3] regulators: axp20x: Rename supply names for AXP221 DC1SW and DC5LDO

2015-09-16 Thread Maxime Ripard
On Wed, Sep 16, 2015 at 11:05:31AM +0800, Chen-Yu Tsai wrote: > The DC1SW and DC5LDO regulators in the AXP221 are internally chained > to DCDC1 and DCDC5, hence the names. The original bindings used the > parent regulator names for the supply regulator property. This causes > some confusion when we

Re: [PATCH 21/31] fs/dlm: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > fs/dlm/lowcomms.c

Re: [RFC 08/14] sched/tune: add detailed documentation

2015-09-16 Thread Patrick Bellasi
On Wed, Sep 16, 2015 at 12:55:12AM +0100, Steve Muckle wrote: > On 09/15/2015 08:00 AM, Patrick Bellasi wrote: > >> Agreed, though I also think those tunable values might also change for a > >> given set of tasks in different circumstances. > > > > Could you provide an example? > > > > In my view

Re: [PATCH 1/3] mfd: axp20x: Rename supply names for AXP221 DC1SW and DC5LDO regulators

2015-09-16 Thread Maxime Ripard
On Wed, Sep 16, 2015 at 11:05:30AM +0800, Chen-Yu Tsai wrote: > The DC1SW and DC5LDO regulators in the AXP221 are internally chained > to DCDC1 and DCDC5, hence the names. The original bindings used the > parent regulator names for the supply regulator property. This causes > some confusion when we

Re: [PATCH 18/31] scsi/aic7xxx: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > drivers/scsi/aic7

Re: [PATCH 20/31] fs/cifs: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > fs/cifs/smb2pdu.c

Re: [PATCH 16/31] net/cavium/liquidio: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > drivers/net/ether

Re: [PATCH 17/31] scsi/aacraid: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > drivers/scsi/aacr

Re: [PATCH 24/31] fs/omfs: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > fs/omfs/inode.c |

Re: [PATCH 23/31] fs/ocfs2: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > fs/ocfs2/localall

[PATCH v4 1/2] powerpc32: memcpy: only use dcbz once cache is enabled

2015-09-16 Thread Christophe Leroy
memcpy() uses instruction dcbz to speed up copy by not wasting time loading cache line with data that will be overwritten. Some platform like mpc52xx do no have cache active at startup and can therefore not use memcpy(). Allthough no part of the code explicitly uses memcpy(), GCC makes calls to it.

Re: [PATCH v5 1/2] KVM: nVMX: enhance allocate/free_vpid to handle shadow vpid

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 11:30, Wanpeng Li wrote: > Enhance allocate/free_vid to handle shadow vpid. Adjusting the commit message: KVM: nVMX: adjust interface to allocate/free_vpid Adjust allocate/free_vid so that they can be reused for the nested vpid. and committing to kvm/queue. Paolo >

[PATCH v4 2/2] powerpc32: memset: only use dcbz once cache is enabled

2015-09-16 Thread Christophe Leroy
memset() uses instruction dcbz to speed up clearing by not wasting time loading cache line with data that will be overwritten. Some platform like mpc52xx do no have cache active at startup and can therefore not use memset(). Allthough no part of the code explicitly uses memset(), GCC may make calls

Re: [PATCH v5 2/2] KVM: nVMX: nested VPID emulation

2015-09-16 Thread Paolo Bonzini
On 16/09/2015 11:30, Wanpeng Li wrote: > VPID is used to tag address space and avoid a TLB flush. Currently L0 use > the same VPID to run L1 and all its guests. KVM flushes VPID when switching > between L1 and L2. > > This patch advertises VPID to the L1 hypervisor, then address space of L1

[PATCH] mtd: spi-nor: Add support for sst25wf040b

2015-09-16 Thread Yuan Yao
It is a 512KiB flash with 4 KiB erase sectors. Signed-off-by: Yuan Yao --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index f59aedf..cd02934 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drive

[PATCH 6/9] extcon: arizona: Additional settings to improve accuracy of HP detect

2015-09-16 Thread Charles Keepax
If the TST_CAP_SEL bits aren't set correctly on wm5110/8280 there will be a 100k load along side the headphones, which will affect the accurary towards the very top of the detection range. This patch sets those bits. Signed-off-by: Charles Keepax Acked-by: Chanwoo Choi --- drivers/extcon/extcon

RE: [PATCH v2] futex: lower the lock contention on the HB lock during wake up

2015-09-16 Thread Zhu Jefferry
> > I assume your pseudo code set_waiter_bit is mapped to the real code > > "futex_lock_pi_atomic", It's possible for futex_lock_pi_atomic to > > successfully set FUTEX_WAITERS bit, but return with Page fault, for > > example, like fail in lookup_pi_state(). > > No. It's not. lookup_pi_state() can

Re: [PATCH 27/31] net/tipc: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Andrzej Hajda
Ping. Regards Andrzej On 08/07/2015 09:59 AM, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > net/tipc/server.c

Re: [PATCH 3/5] mtd: devices: m25p80: add support for mmap read request

2015-09-16 Thread Vignesh R
On 09/14/2015 11:57 PM, Mark Brown wrote: > On Fri, Sep 04, 2015 at 02:00:00PM +0530, Vignesh R wrote: > >> +if (spi->master->spi_mtd_mmap_read) { >> +return spi->master->spi_mtd_mmap_read(spi, from, len, >> + retlen, buf, >> +

Re: [PATCH 01/31] arch/arm/mach-lpc32xx: use kmemdup rather than duplicating its implementation

2015-09-16 Thread Arnd Bergmann
On Wednesday 16 September 2015 11:52:37 Andrzej Hajda wrote: > > @@ -87,7 +87,8 @@ static int lpc32xx_pm_enter(suspend_state_t state) > > void *iram_swap_area; > > > > /* Allocate some space for temporary IRAM storage */ > > - iram_swap_area = kmalloc(lpc32xx_sys_suspend_sz, GFP_K

Re: [PATCH 2/5] spi: spi-ti-qspi: add mmap mode read support

2015-09-16 Thread Vignesh R
On 09/14/2015 11:56 PM, Mark Brown wrote: > On Fri, Sep 04, 2015 at 01:59:59PM +0530, Vignesh R wrote: > >> +static int ti_qspi_spi_mtd_mmap_read(struct spi_device *spi, >> + loff_t from, size_t len, >> + size_t *retlen, u_char *bu

Re: [PATCH] x86/efi: Map EFI memmap entries in-order at runtime

2015-09-16 Thread Borislav Petkov
On Wed, Sep 09, 2015 at 12:21:23PM +0100, Matt Fleming wrote: > On Wed, 09 Sep, at 08:33:07AM, joeyli wrote: > > > > Yes, the machine on my hand has EFI_PROPERTIES_TABLE enabled, and it doesn't > > boot without your patch. > > Awesome. Could you test the following patch instead? > > --- > > Fro

[PATCH 9/9] extcon: arizona: Don't disable debounce for inverted jacks

2015-09-16 Thread Charles Keepax
Whilst the jack is connected we disable the jack detection debounce to ensure as quick as possible a detection of jack removal. However, it is only safe to disable the jack debounce whilst the jack is connected if using the micd clamp or the jack is not inverted. Otherwise spurious interrupts might

[PATCH 1/9] mfd: arizona: Add registers for ADC microphone detection

2015-09-16 Thread Charles Keepax
The newer devices support using a software comparison to determine whether a 3/4 pole jack is present. Add the registers necessary for this. Signed-off-by: Charles Keepax Acked-by: Lee Jones --- drivers/mfd/wm5110-tables.c |2 ++ include/dt-bindings/mfd/arizona.h |2 ++ in

[PATCH 3/9] mfd: arizona: Add TST_CAP bits for headphone detection

2015-09-16 Thread Charles Keepax
On wm5110/8280 some additional settings are required to get accurate measurements at the top end of the headphone detection range. This patch adds the bits required for this. Signed-off-by: Charles Keepax --- drivers/mfd/wm5110-tables.c |2 ++ include/linux/mfd/arizona/registers.h

[PATCH 4/9] extcon: arizona: Add support for new ADC value mic detect

2015-09-16 Thread Charles Keepax
Newer devices give users the option to make the 3/4 pole jack determination using a software comparison rather than a hardware one. This patch adds support for this functionality. Signed-off-by: Charles Keepax Acked-by: Chanwoo Choi --- drivers/extcon/extcon-arizona.c | 64 +++

Re: [PATCH 1/5] spi: introduce mmap read support for spi flash devices

2015-09-16 Thread Vignesh R
On 09/15/2015 12:05 AM, Mark Brown wrote: > On Fri, Sep 04, 2015 at 04:55:33PM +0530, Jagan Teki wrote: >> On 4 September 2015 at 13:59, Vignesh R wrote: > >>> + * @spi_mtd_mmap_read: some spi-controller hardwares provide memory >>> + * mapped interface to communicate with m

[PATCH 5/9] extcon: arizona: Add support for general purpose switch

2015-09-16 Thread Charles Keepax
The switch is typically used in conjunction with the MICDET clamp in order to suppress pops and clicks associated with jack insertion. Signed-off-by: Charles Keepax Acked-by: Chanwoo Choi --- drivers/extcon/extcon-arizona.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --g

Re: [PATCH 1/5] spi: introduce mmap read support for spi flash devices

2015-09-16 Thread Vignesh R
On 09/15/2015 12:07 AM, Mark Brown wrote: > On Fri, Sep 04, 2015 at 01:59:58PM +0530, Vignesh R wrote: >> In addition to providing direct access to SPI bus, some spi controller >> hardwares (like ti-qspi) provide special memory mapped port >> to accesses SPI flash devices in order to increase rea

[PATCH 2/9] mfd: arizona: Add register bits for general purpose switch

2015-09-16 Thread Charles Keepax
The switch is typically used in conjunction with the MICDET clamp in order to suppress pops and clicks associated with jack insertion. Signed-off-by: Charles Keepax Acked-by: Lee Jones --- drivers/mfd/wm5110-tables.c |2 ++ include/linux/mfd/arizona/pdata.h |3 +++ 2 files changed

[PATCH 0/9] Arizona Extcon Bug Fixes and Improvements

2015-09-16 Thread Charles Keepax
Hi, Ok I have split these patches out into 2 chains; this chain contains no device tree changes so that should let us merge these now and at least get the benefit of the bug fixes etc. whilst we work on getting the necessary ACKs for the DT changes. The DT changes themselves should be simpler to m

[PATCH v2 14/26] usb: gadget: f_phonet: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_phonet we only need to store in ep->driver_data

[PATCH v2 05/26] usb: gadget: f_ecm: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_ecm, ep->driver_data was used only for endpoint

Re: [PATCH v5 1/2] KVM: nVMX: enhance allocate/free_vpid to handle shadow vpid

2015-09-16 Thread Wanpeng Li
On 9/16/15 6:04 PM, Paolo Bonzini wrote: On 16/09/2015 11:30, Wanpeng Li wrote: Enhance allocate/free_vid to handle shadow vpid. Adjusting the commit message: KVM: nVMX: adjust interface to allocate/free_vpid Adjust allocate/free_vid so that they can be reused for the nested v

[PATCH v2 13/26] usb: gadget: f_obex: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_obex, ep->driver_data was used only for endpoint

[PATCH v2 11/26] usb: gadget: f_midi: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_midi we only need to store in ep->driver_data po

[PATCH v2 12/26] usb: gadget: f_ncm: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_ncm, ep->driver_data was used only for endpoint

[PATCH v2 00/26] usb: gadget: encapsulate ep enable/disable

2015-09-16 Thread Robert Baldyga
Hello, There is my next patches series containing few fixes and slightly reworking USB gadget function API. It introduces ep->enabled flag which indicates whether endpointis enabled or not, and encapsulates its checking and setting into usb_ep_enable() and usb_ep_disable() functions. So now these

[PATCH v2 06/26] usb: gadget: f_acm: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_acm we only need to store in ep->driver_data poi

[PATCH v2 01/26] usb: gadget: fix few outdated comments

2015-09-16 Thread Robert Baldyga
Fix comments in code to make them up to date. composite: claiming endpoint is now done by setting ep->claimed flag, not ep->driver_data. epautoconf: usb_ep_autoconfig() and usb_ep_autoconfig_ss() return claimed endpoint with ep->claimed flag already set. Signed-off-by: Robert Baldyga --- drive

[PATCH 8/9] extcon: arizona: Use the micd_clamp for interrupts if it is available

2015-09-16 Thread Charles Keepax
Currently we only use the microphone clamp IRQ if GPIO5 is being used as a second jack detection pin. But we should be using it on any system where the clamp is available. This patch updates the driver to do so. Signed-off-by: Charles Keepax --- drivers/extcon/extcon-arizona.c |6 +++--- 1 f

[PATCH v2 07/26] usb: gadget: f_eem: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_ecm, ep->driver_data was used only for endpoint

[PATCH v2 03/26] usb: gadget: epautoconf: add usb_ep_autoconfig_release() function

2015-09-16 Thread Robert Baldyga
This patch introduces usb_ep_autoconfig_release() function which allows to release endpoint previously obtained from usb_ep_autoconfig() during USB function bind. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 17 + include/linux/usb/gadget.h | 2 ++ 2

[PATCH v2 25/26] usb: gadget: legacy: dbgp: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of dbgp, ep->driver_data was used only for endpoint c

[PATCH v2 18/26] usb: gadget: f_sourcesink: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_sourcesink we only need to store in ep->driver_d

[PATCH v2 24/26] usb: gadget: u_serial: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of u_serial ep->driver_data stores pointer to struct

[PATCH v2 19/26] usb: gadget: f_subset: eliminate abuse of ep->driver data

2015-09-16 Thread Robert Baldyga
Since ep->driver_data is not used for endpoint claiming, neither for enabled/disabled state storing, we can reduce number of places where we read or modify it's value, as now it has no particular meaning for function or framework logic. In case of f_subset, ep->driver_data was used only for endpoi

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