Re: [PATCH] perf, tools, report: Add srcline_from/to branch sort keys

2016-05-23 Thread Arnaldo Carvalho de Melo
Em Sat, May 21, 2016 at 02:01:51PM +0200, Jiri Olsa escreveu: > On Fri, May 20, 2016 at 01:15:08PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > Acked-by: Jiri Olsa Thanks, applied

Re: v4.6 kernel BUG at mm/rmap.c:1101!

2016-05-23 Thread Kirill A. Shutemov
On Mon, May 23, 2016 at 05:06:38PM +0300, Mika Westerberg wrote: > Hi, > > After upgrading kernel of my desktop system from v4.6-rc7 to v4.6, I've > started seeing following: > > [176611.093747] page:ea36 count:1 mapcount:0 > mapping:880034d2e0a1 index:0x1f9b06600

Re: [PATCH V2 2/2] usb: musb: Stop bulk endpoint while queue is rotated

2016-05-23 Thread Sergei Shtylyov
On 05/23/2016 04:40 PM, Sergei Shtylyov wrote: Ensure that the endpoint is stopped by clearing REQPKT before clearing DATAERR_NAKTIMEOUT before rotating the queue on the dedicated bulk endpoint. This addresses an issue where a race could result in the endpoint receiving data before it was

Re: [PATCH 17/54] MAINTAINERS: Add file patterns for fpga device tree bindings

2016-05-23 Thread atull
On Sun, 22 May 2016, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Cc: Alan Tull > Cc: Moritz Fischer

[PATCH 1/4] isa: Allow ISA-style drivers on modern systems

2016-05-23 Thread William Breathitt Gray
Several modern devices, such as PC/104 cards, are expected to run on modern systems via an ISA bus interface. Since ISA is a legacy interface for most modern architectures, ISA support should remain disabled in general. Support for ISA-style drivers should be enabled on a per driver basis. To

[PATCH 0/4] Allow ISA-style drivers on modern systems

2016-05-23 Thread William Breathitt Gray
Several modern devices, such as PC/104 cards, are expected to run on modern systems via an ISA bus interface. Since ISA is a legacy interface for most modern architectures, ISA support should remain disabled in general. Support for ISA-style drivers should be enabled on a per driver basis. To

[GIT PULL] libata ZAC changes for v4.7-rc1

2016-05-23 Thread Tejun Heo
Hello, Linus. This pull request contains Zone ATA Command support for Shingled Magnetic Recording devices. In addition to sending the new commands down to the device, as ZAC commands depend on getting a lot of responses from the device, piping up responses is beefed up too. However, it doesn't

Re: [PATCH V5 5/6] vfio: platform: call _RST method when using ACPI

2016-05-23 Thread Eric Auger
Hi Sinan, On 05/16/2016 04:13 AM, Sinan Kaya wrote: > The device tree code checks for the presence of a reset driver and calls > the of_reset function pointer by looking up the reset driver as a module. > > ACPI defines _RST method to perform device level reset. After the _RST > method is

[PATCH v3 1/9] powerpc/kvm: make hypervisor state restore a function

2016-05-23 Thread Shreyas B. Prabhu
In the current code, when the thread wakes up in reset vector, some of the state restore code and check for whether a thread needs to branch to kvm is duplicated. Reorder the code such that this duplication is avoided. At a higher level this is what the change looks like- Before this patch -

Re: [PATCH 4/4] x86: Pass kernel thread parameters in fork_frame

2016-05-23 Thread Andy Lutomirski
On Mon, May 23, 2016 at 8:23 AM, Josh Poimboeuf wrote: > On Sat, May 21, 2016 at 12:04:51PM -0400, Brian Gerst wrote: >> --- a/arch/x86/entry/entry_64.S >> +++ b/arch/x86/entry/entry_64.S >> @@ -405,37 +405,29 @@ END(__switch_to_asm) >> * A newly forked process directly

[RFC PATCH 1/2] livepatch: Extend the livepatch-sample patch

2016-05-23 Thread Petr Mladek
We are going to play with the livepatch API when fixing the use of kobjects. This change makes the livepatch more complex and better see the effects of the new API. But it might be useful on its own. Anyway, it adds alternative output also for: /proc/uptime /proc/consoles and for the

[RFC PATCH 2/2] livepatch: Use kobjects the right way

2016-05-23 Thread Petr Mladek
There is the following note in Documentation/kobject/txt: One important point cannot be overstated: every kobject must have a release() method, and the kobject must persist (in a consistent state) until that method is called. If these constraints are not met, the code is flawed. The

Re: [PATCHv3] rcu: tree: correctly handle sparse possible cpus

2016-05-23 Thread Paul E. McKenney
On Mon, May 23, 2016 at 11:42:59AM +0100, Mark Rutland wrote: > In many cases in the RCU tree code, we iterate over the set of cpus for > a leaf node described by rcu_node::grplo and rcu_node::grphi, checking > per-cpu data for each cpu in this range. However, if the set of possible > cpus is

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-23 Thread Guenter Roeck
On 05/23/2016 06:58 AM, Oliver Neukum wrote: On Mon, 2016-05-23 at 06:27 -0700, Guenter Roeck wrote: Good question. I originally added a sysfs attribute 'preferred-mode' to my code, but then concluded that this is supposed to be provided by the platform and added it as platform data instead,

Re: [PATCH V5 5/6] vfio: platform: call _RST method when using ACPI

2016-05-23 Thread Eric Auger
On 05/16/2016 04:13 AM, Sinan Kaya wrote: > The device tree code checks for the presence of a reset driver and calls > the of_reset function pointer by looking up the reset driver as a module. > > ACPI defines _RST method to perform device level reset. After the _RST > method is executed, the OS

Re: [PATCH v2] cpufreq: stats: Walk online CPUs with CPU offline/online locked

2016-05-23 Thread Viresh Kumar
On 23-05-16, 15:40, Rafael J. Wysocki wrote: > On Monday, May 23, 2016 09:27:03 AM Viresh Kumar wrote: > > On 20-05-16, 23:33, Rafael J. Wysocki wrote: > > > The policy rwsem is really only needed in cpufreq_stats_create_table(), > > > because > > > the policy notifier is gone when _free_table()

[PATCH v3 5/9] powerpc/powernv: abstraction for saving SPRs before entering deep idle states

2016-05-23 Thread Shreyas B. Prabhu
Create a function for saving SPRs before entering deep idle states. This function can be reused for POWER9 deep idle states. Signed-off-by: Shreyas B. Prabhu --- New in v3 arch/powerpc/kernel/idle_power_common.S | 54 +++-- 1 file

[PATCH v3 9/9] powerpc/powernv: Use deepest stop state when cpu is offlined

2016-05-23 Thread Shreyas B. Prabhu
If hardware supports stop state, use the deepest stop state when the cpu is offlined. Reviewed-by: Gautham R. Shenoy Signed-off-by: Shreyas B. Prabhu --- arch/powerpc/platforms/powernv/idle.c| 15 +--

RE: [PATCH V2 2/2] usb: musb: Stop bulk endpoint while queue is rotated

2016-05-23 Thread Andrew Goodbody
> From: Sergei Shtylyov [mailto:sergei.shtyl...@cogentembedded.com] > On 05/23/2016 04:40 PM, Sergei Shtylyov wrote: > > Ensure that the endpoint is stopped by clearing REQPKT before > clearing DATAERR_NAKTIMEOUT before rotating the queue on the > dedicated bulk endpoint. >

Re: [PATCH] blk: remove NULL check before freeing functions

2016-05-23 Thread Jeff Moyer
Mike Danese writes: > Coccinelle complains: > > WARNING: NULL check before freeing functions like kfree, debugfs_remove, > debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider > reorganizing relevant code to avoid passing NULL values. > > Signed-off-by:

[PATCH v3 8/9] cpuidle/powernv: Add support for POWER ISA v3 idle states

2016-05-23 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. b) new per thread SPR named PSSCR is added which controls the behavior of stop instruction. Supported idle states and value to be written to PSSCR register to enter any idle

[PATCH v3 6/9] powerpc/powernv: set power_save func after the idle states are initialized

2016-05-23 Thread Shreyas B. Prabhu
pnv_init_idle_states discovers supported idle states from the device tree and does the required initialization. Set power_save function pointer only after this initialization is done Reviewed-by: Gautham R. Shenoy Signed-off-by: Shreyas B. Prabhu

Re: [PATCH] soc: qcom: provide mechanism for drivers to access L2 registers

2016-05-23 Thread Neil Leeder
On 5/20/2016 05:19 PM, Stephen Boyd wrote: > On 05/20/2016 12:13 PM, Neil Leeder wrote: >> diff --git a/drivers/soc/qcom/l2-accessors.c >> b/drivers/soc/qcom/l2-accessors.c >> new file mode 100644 >> index 000..fbb69bd >> --- /dev/null >> +++ b/drivers/soc/qcom/l2-accessors.c >> @@ -0,0

Re: [PATCH v3 0/2] kbuild: Remove stale asm-generic wrappers

2016-05-23 Thread Arnd Bergmann
On Monday, May 23, 2016 9:21:19 AM CEST James Hogan wrote: > This patchset attempts to fix kbuild to automatically remove stale > asm-generic wrappers, i.e. when files are removed from generic-y and > added directly into arch/*/include/uapi/asm/, but where the existing > wrapper in

Re: [PATCH 1/2] iio: generic_buffer: Cleanup when receiving signals

2016-05-23 Thread Crestez Dan Leonard
On 05/21/2016 07:28 PM, Jonathan Cameron wrote: > On 20/05/16 16:55, Peter Meerwald-Stadler wrote: >> >>> This also drops all the code freeing string buffers at the end of main. >>> Memory is freed when the process exits anyway so there's no point in >>> cluttering the code with all those gotos.

Re: [PATCH] s390: fix info leak in do_sigsegv

2016-05-23 Thread Martin Schwidefsky
On Mon, 23 May 2016 15:43:20 +0200 Michal Hocko wrote: > OK, Martin would prefer a simple patch so here we go. > --- > From de1ad037f3181e795ef0e66a61b8fbe1157f66cc Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Mon, 23 May 2016 15:35:51 +0200 >

[PATCH 3/4] iio: stx104: Allow build for X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the Apex Embedded Systems STX104 DAC driver to ISA_BUS_API, thus allowing it to build for X86_64 as it is expected to. Cc:

[PATCH 4/4] watchdog: ebc-c384_wdt: Allow build for X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the WinSystems EBC-C384 watchdog timer driver to ISA_BUS_API, thus allowing it to build for X86_64 as it is expected to. Cc:

[PATCH 2/4] gpio: Allow PC/104 devices on X86_64

2016-05-23 Thread William Breathitt Gray
With the introduction of the ISA_BUS_API Kconfig option, ISA-style drivers may be built for X86_64 architectures. This patch changes the ISA Kconfig option dependency of the PC/104 drivers to ISA_BUS_API, thus allowing them to build for X86_64 as they are expected to. Cc: Guenter Roeck

Re: [PATCH v2 1/3] coccinelle: also catch kzfree() issues

2016-05-23 Thread Julia Lawall
On Mon, 23 May 2016, Yann Droneaud wrote: > Since commit 3ef0e5ba4673 ('slab: introduce kzfree()'), > kfree() is no more the only function to be considered: > kzfree() should be recognized too. > > In particular, kzfree() must not be called on memory > allocated through devm_*() functions. > >

[PATCH v3 3/9] powerpc/powernv: Rename reusable idle functions to hardware agnostic names

2016-05-23 Thread Shreyas B. Prabhu
Functions like power7_wakeup_loss, power7_wakeup_noloss, power7_wakeup_tb_loss are used by POWER7 and POWER8 hardware. They can also be used by POWER9. Hence rename these functions hardware agnostic names. Suggested-by: Gautham R. Shenoy Signed-off-by: Shreyas B. Prabhu

Re: [PATCH 4/4] x86: Pass kernel thread parameters in fork_frame

2016-05-23 Thread Josh Poimboeuf
On Sat, May 21, 2016 at 12:04:51PM -0400, Brian Gerst wrote: > --- a/arch/x86/entry/entry_64.S > +++ b/arch/x86/entry/entry_64.S > @@ -405,37 +405,29 @@ END(__switch_to_asm) > * A newly forked process directly context switches into this address. > * > * rax: prev task we switched from > + *

[PATCH] m32r: fix build failure

2016-05-23 Thread Sudip Mukherjee
m32r allmodconfig build was failing with the error: ERROR: "smp_flush_cache_all" [drivers/misc/lkdtm.ko] undefined! lkdtm driver at drivers/misc is using flush_icache_range() which for m32r is defined as smp_flush_cache_all() if CONFIG_SMP is defined. But as smp_flush_cache_all() was not exported

Re: siginfo memory leak?

2016-05-23 Thread Oleg Nesterov
On 05/23, Michal Hocko wrote: > > x86 do_error_trap doesn't do any initialization at all! it actually does, please see fill_trap_info() although I'll try to re-check if it initializes everything we need. Oleg.

Re: [PATCH 03/16] sched/fair: Disregard idle task wakee_flips in wake_wide

2016-05-23 Thread Mike Galbraith
On Mon, 2016-05-23 at 15:10 +0100, Morten Rasmussen wrote: > On Mon, May 23, 2016 at 03:00:46PM +0200, Mike Galbraith wrote: > > On Mon, 2016-05-23 at 13:00 +0100, Morten Rasmussen wrote: > > > > > The problem then seems to be distinguishing truly idle and busy doing > > > interrupts. The issue

Re: [PATCH v7 00/10] Add error checking to spi-nor read and write

2016-05-23 Thread Cyrille Pitchen
Hi all, I've tested this series on a sama5d2 xplained board + Macronix mx25l25673g using the atmel-quadspi driver I'm about to submit (wihtout any additional patches of the spi-nor framework to enhance the support of QSPI memories). Best regards, Cyrille Tested-by Cyrille Pitchen

Re: [PATCH 03/16] sched/fair: Disregard idle task wakee_flips in wake_wide

2016-05-23 Thread Morten Rasmussen
On Mon, May 23, 2016 at 03:00:46PM +0200, Mike Galbraith wrote: > On Mon, 2016-05-23 at 13:00 +0100, Morten Rasmussen wrote: > > > The problem then seems to be distinguishing truly idle and busy doing > > interrupts. The issue that I observe is that wake_wide() likes pushing > > tasks around in

Re: [PATCH 41/54] MAINTAINERS: Add file patterns for remoteproc device tree bindings

2016-05-23 Thread Bjorn Andersson
On Sun 22 May 02:06 PDT 2016, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Cc: Ohad Ben-Cohen > Cc: Bjorn Andersson

Re: [PATCH] x86: fix potential memleak in do_error_trap

2016-05-23 Thread Oleg Nesterov
On 05/23, Michal Hocko wrote: > > @@ -271,6 +271,7 @@ static void do_error_trap(struct pt_regs *regs, long > error_code, char *str, > > if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) != > NOTIFY_STOP) { > + memset(, 0, sizeof(info)); >

Re: [PATCH] drm/mm: avoid possible null pointer dereference

2016-05-23 Thread Eric Engestrom
On Mon, May 23, 2016 at 02:46:59PM +0100, Chris Wilson wrote: > On Mon, May 23, 2016 at 02:38:29PM +0100, Eric Engestrom wrote: > > On Mon, May 23, 2016 at 02:02:26PM +0100, Chris Wilson wrote: > > > On Mon, May 23, 2016 at 02:56:45PM +0200, Daniel Vetter wrote: > > > > On Mon, May 23, 2016 at

Re: [PATCH v2] sched/completion: convert completions to use simple wait queues

2016-05-23 Thread Daniel Wagner
[Sorry for the late response. I was a few days on holiday] On 05/16/2016 10:38 PM, Luiz Capitulino wrote: > On Thu, 12 May 2016 16:08:34 +0200 > Daniel Wagner wrote: > >> In short, I haven't figured out yet why the kernel builds get slightly >> slower. > > You're doing make

Re: [PATCH 7/8] perf stat: Basic support for TopDown in perf stat

2016-05-23 Thread Arnaldo Carvalho de Melo
Em Thu, May 19, 2016 at 05:10:01PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Add basic plumbing for TopDown in perf stat > > Add a new --topdown options to enable events. > When --topdown is specified set up events for all topdown > events supported by the kernel.

[PATCH v2 1/3] coccinelle: also catch kzfree() issues

2016-05-23 Thread Yann Droneaud
Since commit 3ef0e5ba4673 ('slab: introduce kzfree()'), kfree() is no more the only function to be considered: kzfree() should be recognized too. In particular, kzfree() must not be called on memory allocated through devm_*() functions. Cc: Johannes Weiner Signed-off-by:

[PATCH v2 0/3] coccinelle: catchup on memory allocation functions

2016-05-23 Thread Yann Droneaud
Hi, Please find updated patches that remove coccicheck's blindness regarding the following functions: - kzfree() - krealloc() - __krealloc() - devm_kmalloc() - devm_kvasprintf() - devm_kasprintf() - devm_kmalloc_array() - devm_kcalloc() - devm_kstrdup() - devm_kmemdup() - devm_get_free_pages() -

Re: [PATCH] drm/mm: avoid possible null pointer dereference

2016-05-23 Thread Chris Wilson
On Mon, May 23, 2016 at 04:35:53PM +0100, Eric Engestrom wrote: > On Mon, May 23, 2016 at 02:46:59PM +0100, Chris Wilson wrote: > > It's a programming error, just as would be passing in mm == NULL. Mark up > > the function as requiring non-NULL parameters. > > Using `__attribute__((nonnull))`? I

[PATCH v2 3/3] coccinelle: catch krealloc() on devm_*() allocated memory

2016-05-23 Thread Yann Droneaud
krealloc() must not be used against devm_*() allocated memory regions: - if a bigger memory is to be allocated, krealloc() and __krealloc() could return a different pointer than the one given to them, creating a memory region which is not managed, thus it will not be automatically released

[PATCH net-next 5/5] hv_netvsc: pass struct net_device to rndis_filter_set_offload_params()

2016-05-23 Thread Vitaly Kuznetsov
The only caller rndis_filter_device_add() has 'struct net_device' pointer already. Signed-off-by: Vitaly Kuznetsov --- drivers/net/hyperv/rndis_filter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/hyperv/rndis_filter.c

[PATCH v2 2/3] coccinelle: recognize more devm_* memory allocation functions

2016-05-23 Thread Yann Droneaud
Updates free/devm_free.cocci to recognize functions added by: - commit 64c862a839a8 ('devres: add kernel standard devm_k.alloc functions') - commit e31108cad3de ('devres: introduce API "devm_kstrdup"') - commit 3046365bb470 ('devres: introduce API "devm_kmemdup') - commit 43339bed7010 ('devres:

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-23 Thread Oliver Neukum
On Mon, 2016-05-23 at 07:43 -0700, Guenter Roeck wrote: > On 05/23/2016 06:58 AM, Oliver Neukum wrote: > > Now I am confused. Are you saying that the choice of Alternate Mode does > > not belong into user space? > > > > No; sorry for the confusion. The above was meant to apply to my use > of

RE: UBSAN whinge in ihci-hub.c

2016-05-23 Thread David Laight
From: Andrey Ryabinin > Sent: 18 May 2016 13:21 ... > >> $ 6.5.6.8 > >>"If both the pointer operand and the result point to elements of > >> the same array object, > >> or one past the last element of the array object, the evaluation > >> shall not produce an overflow; > >>

v4.6 kernel BUG at mm/rmap.c:1101!

2016-05-23 Thread Mika Westerberg
Hi, After upgrading kernel of my desktop system from v4.6-rc7 to v4.6, I've started seeing following: [176611.093747] page:ea36 count:1 mapcount:0 mapping:880034d2e0a1 index:0x1f9b06600 compound_mapcount: 0 [176611.093751] flags:

Re: [PATCH] userns: Allow init_user_ns to be used from non-gpl modules

2016-05-23 Thread Serge Hallyn
Quoting Nikolay Borisov (n.borisov.l...@gmail.com): > This patch changes the export attributes of the init_user_ns from > GPL-only to any modules. This needed so that non-gpl modules, such as > ZFS, utilize functions like i_(uid|gid)_(read|write). > > Signed-off-by: Nikolay Borisov

Re: v4.6 kernel BUG at mm/rmap.c:1101!

2016-05-23 Thread Andrea Arcangeli
On Mon, May 23, 2016 at 05:24:59PM +0300, Kirill A. Shutemov wrote: > On Mon, May 23, 2016 at 05:06:38PM +0300, Mika Westerberg wrote: > > Hi, > > > > After upgrading kernel of my desktop system from v4.6-rc7 to v4.6, I've > > started seeing following: > > > > [176611.093747]

[PATCH v3 2/9] powerpc/powernv: Rename idle_power7.S to idle_power_common.S

2016-05-23 Thread Shreyas B. Prabhu
idle_power7.S handles idle entry/exit for POWER7, POWER8 and in next patch for POWER9. Rename the file to a non-hardware specific name. Signed-off-by: Shreyas B. Prabhu --- Changes in v3: == - Instead of moving few common functions from idle_power7.S to

[PATCH v3 0/9] powerpc/powernv/cpuidle: Add support for POWER ISA v3 idle states

2016-05-23 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. This instruction replaces instructions like nap, sleep, rvwinkle. b) new per thread SPR named PSSCR is added which controls the behavior of stop instruction.

[PATCH net-next 4/5] hv_netvsc: pass struct net_device to rndis_filter_set_device_mac()

2016-05-23 Thread Vitaly Kuznetsov
We unpack 'struct net_device' in netvsc_set_mac_addr() to get to 'struct hv_device' pointer which we use in rndis_filter_set_device_mac() to get back to 'struct net_device'. Signed-off-by: Vitaly Kuznetsov --- drivers/net/hyperv/hyperv_net.h | 2 +-

RE: [PATCH] RDMA/cxgb3: device driver frees DMA memory with different size

2016-05-23 Thread Steve Wise
> > Fixes: b955150ea784 ('RDMA/cxgb3: When a user QP is marked in error, also mark > the CQs in error') > Signed-off-by: Honggang Li Nice catch. Your fix looks correct. Reviewed-by: Steve Wise

Re: [PATCH 6/8] perf stat: Avoid fractional digits for integer scales

2016-05-23 Thread Arnaldo Carvalho de Melo
Em Thu, May 19, 2016 at 05:10:00PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > When the scaling factor is a full integer don't display fractional > digits. This avoids unnecessary .00 output for topdown metrics > with scale factors. > > v2: Remove redundant check. >

Re: [PATCH] PM / sleep: fix unbalanced pm runtime disable in __device_suspend_late()

2016-05-23 Thread Grygorii Strashko
On 05/21/2016 12:26 AM, Rafael J. Wysocki wrote: On Friday, May 20, 2016 07:21:03 PM Grygorii Strashko wrote: On 05/20/2016 03:18 PM, Rafael J. Wysocki wrote: On Thursday, May 19, 2016 08:11:34 PM Grygorii Strashko wrote: On 05/19/2016 04:38 PM, Rafael J. Wysocki wrote: On Fri, May 13, 2016

RE: [PATCH 2/2] pci: Add PCIe driver for Rockchip Soc

2016-05-23 Thread Bharat Kumar Gogada
> + > + irq = platform_get_irq_byname(pdev, "pcie-sys"); > + if (irq < 0) { > + dev_err(dev, "missing pcie_sys IRQ resource\n"); > + return -EINVAL; > + } > + err = devm_request_irq(dev, irq, rockchip_pcie_subsys_irq_handler, > +

Re: [PATCH v5 0/5] da8xx USB PHY platform devices and clocks (was "da8xx UBS clocks")

2016-05-23 Thread David Lechner
On 05/09/2016 06:46 PM, David Lechner wrote: v5 changes: renamed "usbphy" to "usb_phy" or "usb-phy" as appropriate David Lechner (5): ARM: davinci: da8xx: add usb phy clocks ARM: davinci: da8xx: Add CFGCHIP syscon platform declaration. ARM: davinci: da8xx: Add USB PHY platform

[PATCH] ARM: mach-imx6q: fix spelling mistake in error message

2016-05-23 Thread Jean Guyomarc'h
The compatible device tree node that is searched for is imx6q-iomuxc-gpr but was misspelled imx6q-iomux-gpr in the error handling message. Signed-off-by: Jean Guyomarc'h --- arch/arm/mach-imx/mach-imx6q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH V7 00/11] Support for generic ACPI based PCI host controller

2016-05-23 Thread Sinan Kaya
On 5/10/2016 11:19 AM, Tomasz Nowicki wrote: > From the functionality point of view this series may be split into the > following logic parts: > 1. New ECAM API and update for users of the pci-host-common API > 2. Necessary fixes as the preparation for using driver on ARM64. > 3. Use new MCFG

Re: [PATCH v2 1/5] dt-bindings: mediatek: add descriptions for mediatek mt2701 iommu and smi

2016-05-23 Thread Rob Herring
On Thu, May 19, 2016 at 07:49:14PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > This patch defines the local arbitor port IDs for mediatek SoC MT2701 and > add descriptions of binding for mediatek generation one iommu and smi. > > Signed-off-by:

[PATCH v2 2/2] iio: generic_buffer: Add --device-num option

2016-05-23 Thread Crestez Dan Leonard
This makes it possible to distinguish between iio devices with the same name. Signed-off-by: Crestez Dan Leonard --- tools/iio/generic_buffer.c | 69 ++ 1 file changed, 51 insertions(+), 18 deletions(-) diff --git

[PATCH v2 1/2] iio: generic_buffer: Cleanup when receiving signals

2016-05-23 Thread Crestez Dan Leonard
This will clean (disable buffer/trigger/channels) when doing something like a CTRL-C. Otherwise restarting generic_buffer requires a manual echo 0 > buffer/enable This also cleanup up all the code freeing string buffers at the end of main. We initialize all pointers to NULL so that cleanup can

[PATCH 0/2] mtd: spi-nor: add driver for Atmel QSPI controller

2016-05-23 Thread Cyrille Pitchen
Hi all, this series of patches add support to the Atmel QSPI controller. It was tested on a sama5d2 xplained board + Macronix mx25l25673g QSPI memory. The series is based on Michal and Brian series: "[PATCH v7 00/10] Add error checking to spi-nor read and write" Best regards, Cyrille Cyrille

Re: [PATCH v2] ASoC: rockchip: Add machine driver for MAX98357A/RT5514/DA7219

2016-05-23 Thread Heiko Stuebner
Hi Xing, Am Montag, 23. Mai 2016, 22:43:32 schrieb Xing Zheng: > There are multi codec devices on the RK3399 platform, we can use > this patch support and control these codecs. > > --- > > Changes in v2: > Signed-off-by: Xing Zheng something seems to have gone wrong

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-23 Thread jeffrey.lin
Hi Dmitry: >static int raydium_i2c_read_message(struct i2c_client *client, > u32 addr, void *data, size_t len) >{ > __le32 le_addr; > size_t xfer_len; > u32 shift_addr; > int error; > > while (len) { > xfer_len =

[PATCH v2] ASoC: rockchip: Add machine driver for MAX98357A/RT5514/DA7219

2016-05-23 Thread Xing Zheng
There are multi codec devices on the RK3399 platform, we can use this patch support and control these codecs. --- Changes in v2: Signed-off-by: Xing Zheng .../sound/rockchip-max98357a-rt5514-da7219.txt | 15 + sound/soc/rockchip/Kconfig

[PATCH] ASoC: kirkwood: fix build failure

2016-05-23 Thread Sudip Mukherjee
From: Sudip Mukherjee While building m32r allmodconfig the build failed with: ERROR: "bad_dma_ops" [sound/soc/kirkwood/snd-soc-kirkwood.ko] undefined! To satisfy the dependency CONFIG_SND_KIRKWOOD_SOC should depend on HAS_DMA. Signed-off-by: Sudip Mukherjee

[GIT PULL] libata sata_dwc_460ex changes for v4.7-rc1

2016-05-23 Thread Tejun Heo
Hello, Linus. Patches to bring sata_dwc_460ex up to snuff. It's a separate pull request because it depends on dmaengine dw platform changes which are now in mainline. Thanks. The following changes since commit 3a14c66d43d018baed96ceb74f9ab548878c09b8: dmaengine: dw: pass platform data via

Re: [PATCH V5 6/6] vfio, platform: make reset driver a requirement by default

2016-05-23 Thread Eric Auger
Hi Sinan, On 05/16/2016 04:13 AM, Sinan Kaya wrote: > The code was allowing platform devices to be used without a supporting > VFIO reset driver. The hardware can be left in some inconsistent state > after a guest machine abort. > > The reset driver will put the hardware back to safe state and

[PATCH v3 7/9] powerpc/powernv: Add platform support for stop instruction

2016-05-23 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. This instruction replaces instructions like nap, sleep, rvwinkle. b) new per thread SPR named PSSCR is added which controls the behavior of stop instruction. PSSCR has

Re: [PATCH v3] vfio-pci: Allow to mmap sub-page MMIO BARs if the mmio page is exclusive

2016-05-23 Thread Alex Williamson
On Mon, 23 May 2016 11:45:34 +0800 Yongji Xie wrote: > On 2016/5/20 6:33, Alex Williamson wrote: > > > On Thu, 12 May 2016 18:20:51 +0800 > > Yongji Xie wrote: > > > >> Current vfio-pci implementation disallows to mmap > >> sub-page(size

[PATCH v3 4/9] powerpc/powernv: Make power7_powersave_common more generic

2016-05-23 Thread Shreyas B. Prabhu
power7_powersave_common does common steps needed before entering idle state and eventually changes MSR to MSR_IDLE and does rfid to power7_enter_nap_mode. Move the updation of HSTATE_HWTHREAD_STATE to power7_powersave_common from power7_enter_nap_mode and make it more generic by passing the rfid

Re: [PATCH v2 10/12] spi: add driver for J-Core SPI controller

2016-05-23 Thread Mark Brown
On Fri, May 20, 2016 at 07:24:14PM -0400, Rich Felker wrote: > On Fri, May 20, 2016 at 11:23:17AM +0100, Mark Brown wrote: > > This is *extremely* late for a first posting of a driver for v4.7 (you > > missed the list as well as the maintainers). > I'm sorry for the mix-up. The kernel workflow

Re: [PATCH] MIPS: devicetree: fix cpu interrupt controller node-names

2016-05-23 Thread Rob Herring
On Mon, May 23, 2016 at 6:39 AM, Antony Pavlov wrote: > Here is the quote from [1]: > > The unit-address must match the first address specified > in the reg property of the node. If the node has no reg property, > the @ and unit-address must be omitted and the

[PATCH net-next 1/5] hv_netvsc: remove redundant assignment in netvsc_recv_callback()

2016-05-23 Thread Vitaly Kuznetsov
net_device_ctx is assigned in the very beginning of the function and 'net' pointer doesn't change. Signed-off-by: Vitaly Kuznetsov --- drivers/net/hyperv/netvsc_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/hyperv/netvsc_drv.c

[PATCH net-next 3/5] hv_netvsc: pass struct netvsc_device to rndis_filter_{open,close}()

2016-05-23 Thread Vitaly Kuznetsov
Both rndis_filter_open()/rndis_filter_close() use struct hv_device to reach to struct netvsc_device only and all callers have it already. While on it, rename net_device to nvdev in rndis_filter_open() as net_device is misleading. Signed-off-by: Vitaly Kuznetsov ---

[PATCH net-next 0/5] hv_netvsc: cleanup after untangling the pointer mess

2016-05-23 Thread Vitaly Kuznetsov
After we made traveling through our internal structures explicit it became obvious that some functions take arguments they don't need just to do redundant pointer travel and get to what they really need while their callers already have the required information. This is just a cleanup series with

[PATCH net-next 2/5] hv_netvsc: introduce {net,hv}_device_to_netvsc_device() helpers

2016-05-23 Thread Vitaly Kuznetsov
Make it easier to get 'struct netvsc_device' from 'struct net_device' and 'struct hv_device' by introducing inline helpers. Signed-off-by: Vitaly Kuznetsov --- drivers/net/hyperv/hyperv_net.h | 12 drivers/net/hyperv/netvsc.c | 11 +++

[RFC PATCH 0/2] livepatch: Avoid possible race when releasing the patch

2016-05-23 Thread Petr Mladek
There was a long discussion about a possible race with sysfs, kobjects when removing an unused livepatch, see https://lkml.kernel.org/g/%3c1462190242-24731-1-git-send-email-mbe...@suse.cz%3E This patch set tries to implement what looked the most preferred solution from the discussion. I did my

[PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-23 Thread Vladimir Davydov
mem_cgroup_oom may be invoked multiple times while a process is handling a page fault, in which case current->memcg_in_oom will be overwritten leaking the previously taken css reference. Signed-off-by: Vladimir Davydov --- mm/memcontrol.c | 2 +- 1 file changed, 1

[PATCH 1/1] scsi: storvsc: Filter out storvsc messages CD-ROM medium not present

2016-05-23 Thread Cathy Avery
When a virtual scsi DVD device is present with no image file attached the storvsc driver logs all resulting unnecessary sense errors whenever IO is issued to the device. [storvsc] Sense Key : Not Ready [current] [storvsc] Add. Sense: Medium not present - tray closed Signed-off-by: Cathy Avery

RE: [PATCH] Input: Change BTN_TOOL_FINGER flag when hover event trigger

2016-05-23 Thread 廖崇榮
Hi Dmitry, Thanks for your confirmation. I think the best and simplest way is to add below code to emit BTN_TOOL_FINGER if hover condition meets. input_report_key(dev, BTN_TOOL_FINGER, input_mt_get_value(dev, ABS_DISTANCE)); Is it ok for you? if (use_count) { if

Re: v4.6 kernel BUG at mm/rmap.c:1101!

2016-05-23 Thread Andrea Arcangeli
On Mon, May 23, 2016 at 05:06:38PM +0300, Mika Westerberg wrote: > Hi, > > After upgrading kernel of my desktop system from v4.6-rc7 to v4.6, I've > started seeing following: > > [176611.093747] page:ea36 count:1 mapcount:0 > mapping:880034d2e0a1 index:0x1f9b06600

Re: [PATCH 07/54] MAINTAINERS: Add file patterns for bcm2835 device tree bindings

2016-05-23 Thread Stephen Warren
On 05/22/2016 03:05 AM, Geert Uytterhoeven wrote: Submitters of device tree binding documentation may forget to CC the subsystem maintainer if this is missing. @@ -2505,6 +2505,7 @@ L:linux-arm-ker...@lists.infradead.org (moderated for non-subscribers) T: git

Re: zone_reclaimable() leads to livelock in __alloc_pages_slowpath()

2016-05-23 Thread Oleg Nesterov
On 05/23, Michal Hocko wrote: > > > nr_scanned = zone_page_state(zone, NR_PAGES_SCANNED); > > if (nr_scanned) > > __mod_zone_page_state(zone, NR_PAGES_SCANNED, -nr_scanned); > > > > and this doesn't look exactly right: zone_page_state() ignores the per-cpu > > ->vm_stat_diff[]

RE: [PATCH V7 00/11] Support for generic ACPI based PCI host controller

2016-05-23 Thread Gabriele Paoloni
Hi Lorenzo > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: 23 May 2016 11:57 > To: Ard Biesheuvel > Cc: Gabriele Paoloni; Jon Masters; Tomasz Nowicki; helg...@kernel.org; > a...@arndb.de; will.dea...@arm.com; catalin.mari...@arm.com; >

[PATCH 2/4] hwrng: bcm2835: Support Broadcom NSP SoC rng

2016-05-23 Thread Yendapally Reddy Dhananjaya Reddy
This supports the random number generator available in NSP SoC. Masks the rng interrupt for NSP. Signed-off-by: Yendapally Reddy Dhananjaya Reddy --- drivers/char/hw_random/Kconfig | 2 +- drivers/char/hw_random/bcm2835-rng.c | 34

[PATCH 1/2] Documentation: atmel-quadspi: add binding file for Atmel QSPI driver

2016-05-23 Thread Cyrille Pitchen
This patch documents the DT bindings for the driver of the Atmel QSPI controller embedded inside sama5d2x SoCs. Signed-off-by: Cyrille Pitchen Acked-by: Rob Herring Acked-by: Nicolas Ferre ---

Re: [RFC PATCH 0/2] livepatch: Avoid possible race when releasing the patch

2016-05-23 Thread Josh Poimboeuf
On Mon, May 23, 2016 at 05:54:06PM +0200, Petr Mladek wrote: > There was a long discussion about a possible race with sysfs, kobjects > when removing an unused livepatch, see > https://lkml.kernel.org/g/%3c1462190242-24731-1-git-send-email-mbe...@suse.cz%3E > > This patch set tries to implement

[PATCH] mm: kasan: remove unused 'reserved' field from struct kasan_alloc_meta

2016-05-23 Thread Andrey Ryabinin
Commit cd11016e5f52 ("mm, kasan: stackdepot implementation. Enable stackdepot for SLAB") added 'reserved' field, but never used it. Signed-off-by: Andrey Ryabinin --- mm/kasan/kasan.h | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/kasan/kasan.h

Re: [PATCH 3/4] x86: Rewrite switch_to() code

2016-05-23 Thread Josh Poimboeuf
On Mon, May 23, 2016 at 06:49:03AM -0500, Josh Poimboeuf wrote: > On Mon, May 23, 2016 at 06:47:22AM -0500, Josh Poimboeuf wrote: > > On Mon, May 23, 2016 at 07:14:14AM -0400, Brian Gerst wrote: > > > On Sun, May 22, 2016 at 10:34 PM, Josh Poimboeuf > > > wrote: > > > > On

[PATCH] mm: check the return value of lookup_page_ext for all call sites

2016-05-23 Thread Yang Shi
Per the discussion with Joonsoo Kim [1], we need check the return value of lookup_page_ext() for all call sites since it might return NULL in some cases, although it is unlikely, i.e. memory hotplug. Tested with ltp with "page_owner=0". [1]

Applied "regulator: mt6397: Add buck change mode regulator interface for mt6397" to the regulator tree

2016-05-23 Thread Mark Brown
The patch regulator: mt6397: Add buck change mode regulator interface for mt6397 has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

[PATCH 2/2] mtd: atmel-quadspi: add driver for Atmel QSPI controller

2016-05-23 Thread Cyrille Pitchen
This driver add support to the new Atmel QSPI controller embedded into sama5d2x SoCs. It expects a NOR memory to be connected to the QSPI controller. Signed-off-by: Cyrille Pitchen Acked-by: Nicolas Ferre --- drivers/mtd/spi-nor/Kconfig

Re: [v2 PATCH] mm: move page_ext_init after all struct pages are initialized

2016-05-23 Thread Shi, Yang
On 5/23/2016 12:31 AM, Michal Hocko wrote: On Fri 20-05-16 08:41:09, Shi, Yang wrote: On 5/20/2016 6:16 AM, Michal Hocko wrote: On Thu 19-05-16 15:13:26, Yang Shi wrote: [...] diff --git a/init/main.c b/init/main.c index b3c6e36..2075faf 100644 --- a/init/main.c +++ b/init/main.c @@ -606,7

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-23 Thread Guenter Roeck
On Mon, May 23, 2016 at 01:25:19PM +0200, Oliver Neukum wrote: > On Mon, 2016-05-23 at 12:57 +0300, Heikki Krogerus wrote: > > Hi Oliver, > > > > On Fri, May 20, 2016 at 04:19:59PM +0200, Oliver Neukum wrote: > > > On Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > > > > Like I've told

  1   2   3   4   5   6   7   8   9   10   >