[PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

2016-08-11 Thread Vitaly Kuznetsov
We reset vf_inject on VF going down (netvsc_vf_down()) but we don't on VF removal (netvsc_unregister_vf()) so vf_inject stays 'true' while vf_netdev is already NULL and we're trying to inject packets into NULL net device in netvsc_recv_callback() causing kernel to crash. Signed-off-by: Vitaly Kuzn

[PATCH net 4/4] hv_netvsc: avoid deadlocks between rtnl lock and netvsc_inject_disable()

2016-08-11 Thread Vitaly Kuznetsov
Here is a deadlock scenario: - netvsc_vf_up() schedules netvsc_notify_peers() work and quits. - netvsc_vf_down() runs before netvsc_notify_peers() gets executed. As it is being executed from netdev notifier chain we hold rtnl lock when we get here. - we enter netvsc_inject_disable() and loop an

[PATCH net 3/4] hv_netvsc: protect module refcount by checking net_device_ctx->vf_netdev

2016-08-11 Thread Vitaly Kuznetsov
We're not guaranteed to see NETDEV_REGISTER/NETDEV_UNREGISTER notifications only once per VF but we increase/decrease module refcount unconditionally. Check vf_netdev to make sure we don't take/release it twice. We presume that only one VF per netvsc device may exist. Signed-off-by: Vitaly Kuznets

[PATCH net 0/4] hv_netvsc: fixes for VF removal path

2016-08-11 Thread Vitaly Kuznetsov
Kernel crash is reported after VF is removed and detached from netvsc device. My investigation led me to PATCH2 of this series but PATCH1 is required to support the change. I also noticed a couple of other issues while debugging and I fix them with PATCH3 and PATCH4. Please review. Vitaly Kuznets

Re: [PATCH 1/2] ahci: st: Add ports-implemented property in support

2016-08-11 Thread Sergei Shtylyov
On 8/10/2016 6:37 PM, patrice.chot...@st.com wrote: From: Patrice Chotard Despite ST AHCI version = 1.3, reading HOST_PORTS_IMPL returns 0. So force_port_map to 1 by using ports-implemented DT property. Signed-off-by: Patrice Chotard --- drivers/ata/ahci_st.c | 4 1 file changed, 4 ins

Re: [PATCH 4/4] befs: remove unnecessary initialization

2016-08-11 Thread Luis de Bethencourt
On 10/08/16 23:12, Salah Triki wrote: > There is no need to init block, since it will be overwitten later by > iaddr2blockno(). > > Signed-off-by: Salah Triki > --- > fs/befs/io.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/befs/io.c b/fs/befs/io.c > index f9790f

Re: [PATCH] powerpc: move hmi.c to arch/powerpc/kvm/

2016-08-11 Thread Michael Ellerman
Michael Ellerman writes: > Radim Krčmář writes: > >> 2016-08-03 13:36+0200, Paolo Bonzini: >>> hmi.c functions are unused unless sibling_subcore_state is nonzero, and >>> that in turn happens only if KVM is in use. So move the code to >>> arch/powerpc/kvm/, putting it under CONFIG_KVM_BOOK3S_64

Re: [PATCH 2/8] [media] v4l2-async: call registered_async after subdev registration

2016-08-11 Thread Sakari Ailus
Hi Javier, On Fri, Feb 05, 2016 at 04:09:52PM -0300, Javier Martinez Canillas wrote: > V4L2 sub-devices might need to do initialization that depends on being > registered with a V4L2 device. As an example, sub-devices with Media > Controller support may need to register entities and create pad lin

Re: [PATCH] PM / Domains: Always enable debugfs support if available

2016-08-11 Thread Geert Uytterhoeven
On Thu, Aug 11, 2016 at 12:40 PM, Jon Hunter wrote: > Debugfs support for PM domains is only enabled if both CONFIG_PM_DEBUG > and CONFIG_PM_ADVANCED_DEBUG are enabled. CONFIG_PM_ADVANCED_DEBUG is > described as "extra PM attributes in sysfs for low-level > debugging/testing" which does not seem r

[PATCH] byteswap: don't use __builtin_bswap*() with sparse

2016-08-11 Thread Johannes Berg
From: Johannes Berg Although sparse declares __builtin_bswap*(), it can't actually do constant folding inside them (yet). As such, things like switch (protocol) { case htons(ETH_P_IP): break; } which we do all over the place cause sparse to warn that it expects a constant instea

Re: [PATCHv6] support for AD5820 camera auto-focus coil

2016-08-11 Thread Sakari Ailus
On Tue, Aug 09, 2016 at 01:23:23AM +0200, Pavel Machek wrote: > On Wed 2016-08-10 15:01:05, Sakari Ailus wrote: > > On Mon, Aug 08, 2016 at 11:41:32PM +0200, Pavel Machek wrote: > > > On Mon 2016-08-08 11:09:56, Sakari Ailus wrote: > > > > On Fri, Aug 05, 2016 at 12:26:11PM +0200, Pavel Machek wrot

Re: [PATCH 2/8] [media] v4l2-async: call registered_async after subdev registration

2016-08-11 Thread Sakari Ailus
On Thu, Aug 11, 2016 at 02:10:43PM +0300, Sakari Ailus wrote: > Hi Javier, > > On Fri, Feb 05, 2016 at 04:09:52PM -0300, Javier Martinez Canillas wrote: > > V4L2 sub-devices might need to do initialization that depends on being > > registered with a V4L2 device. As an example, sub-devices with Med

Re: [PATCH 0/7] ima: carry the measurement list across kexec

2016-08-11 Thread Mimi Zohar
On Thu, 2016-08-11 at 17:38 +1000, Balbir Singh wrote: > > On 09/08/16 22:36, Mimi Zohar wrote: > > On Tue, 2016-08-09 at 15:19 +1000, Balbir Singh wrote: > >> > >> On 04/08/16 22:24, Mimi Zohar wrote: > >>> The TPM PCRs are only reset on a hard reboot. In order to validate a > >>> TPM's quote af

Re: [RFC PATCH v3 05/13] drivers: iommu: make iommu_fwspec OF agnostic

2016-08-11 Thread Lorenzo Pieralisi
On Mon, Jul 25, 2016 at 04:51:00PM +0100, Robin Murphy wrote: > On 25/07/16 16:41, Lorenzo Pieralisi wrote: > [...] > >>> diff --git a/include/linux/of_iommu.h b/include/linux/of_iommu.h > >>> index 308791f..2362232 100644 > >>> --- a/include/linux/of_iommu.h > >>> +++ b/include/linux/of_iommu.h >

Re: [PATCH v7] gpio: add Intel WhiskeyCove PMIC GPIO driver

2016-08-11 Thread Linus Walleij
On Mon, Jul 25, 2016 at 11:59 PM, Bin Gao wrote: > This patch introduces a separate GPIO driver for Intel WhiskeyCove PMIC. > This driver is based on gpio-crystalcove.c. > > Signed-off-by: Ajay Thomas > Signed-off-by: Bin Gao > Reviewed-by: Andy Shevchenko > Reviewed-by: Mika Westerberg > ---

[PATCH v2 0/2] bq32000 fixes

2016-08-11 Thread Daniel Romell
Changes since v1: * Return -EINVAL instead of -EIO when failure flag is set. Jan Östlund (2): rtc: bq32k: Use correct mask name for 'minutes' register. rtc: bq32k: Fix handling of oscillator failure flag drivers/rtc/rtc-bq32k.c | 16 ++-- 1 file changed, 10 insertions(+), 6 delet

[PATCH v2 1/2] rtc: bq32k: Use correct mask name for 'minutes' register.

2016-08-11 Thread Daniel Romell
From: Jan Östlund The BQ32K_SECONDS_MASK and BQ32K_MINUTES_MASK both has the same value. This is no functional change. Signed-off-by: Daniel Romell --- drivers/rtc/rtc-bq32k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c

[PATCH v2 2/2] rtc: bq32k: Fix handling of oscillator failure flag

2016-08-11 Thread Daniel Romell
From: Jan Östlund While the oscillator failure flag is set, the RTC registers should be considered invalid. bq32k_rtc_read_time() now returns an error instead of an invalid time. The failure flag is cleared the next time the clock is set. Signed-off-by: Daniel Romell --- drivers/rtc/rtc-bq32k

Re: c6x linker issue on linux-next-20160808 + some linker table work

2016-08-11 Thread Mark Salter
On Thu, 2016-08-11 at 07:56 +0200, Luis R. Rodriguez wrote: > On Wed, Aug 10, 2016 at 07:04:09PM -0400, Mark Salter wrote: > > > > On Wed, 2016-08-10 at 23:30 +0200, Luis R. Rodriguez wrote: > > > > > > On Tue, Aug 09, 2016 at 11:04:07PM -0400, Mark Salter wrote: > > > > > > > > > > > > On Tue,

Re: [alsa-devel] [PATCH] ASoC: rt5659: Add mclk controls

2016-08-11 Thread Mark Brown
On Wed, Aug 10, 2016 at 04:59:03PM -0500, Pierre-Louis Bossart wrote: > On 8/10/16 12:52 PM, Mark Brown wrote: > > I'm not just hinting at that, I've openly stated it quite a few times > > now! :P For the simpler CODECs it's kind of marginal if you need to > > bother but for anything more comple

Re: [PATCH 1/2] dt: bindings: add binding for Allwinner A64 R_PIO pinctrl

2016-08-11 Thread Linus Walleij
On Mon, Aug 1, 2016 at 4:59 PM, Icenowy Zheng wrote: > Signed-off-by: Icenowy Zheng (...) > + "allwinner,sun50i-a64-r-pinctrl" Maxime, can you look at these two patches from Icenowy? Yours, Linus Walleij

Re: [PATCH] gpio: Add GPIO support for the Diamond Systems GPIO-MM

2016-08-11 Thread Linus Walleij
On Tue, Aug 2, 2016 at 3:57 PM, William Breathitt Gray wrote: > The Diamond Systems GPIO-MM device features 48 lines of digital I/O via > the emulation of dual 82C55A PPI chips. This driver provides GPIO > support for these 48 channels of digital I/O. The base port addresses > for the devices may

Re: [PATCH] xfrm: constify xfrm_replay structures

2016-08-11 Thread Steffen Klassert
On Tue, Aug 09, 2016 at 06:27:08PM +0200, Julia Lawall wrote: > The xfrm_replay structures are never modified, so declare them as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Applied to the ipsec-next tree, thanks!

RE: [PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

2016-08-11 Thread Yuval Mintz
> +static void netvsc_inject_enable(struct net_device_context > +*net_device_ctx) { > + net_device_ctx->vf_inject = true; > +} > + > +static void netvsc_inject_disable(struct net_device_context > +*net_device_ctx) { > + net_device_ctx->vf_inject = false; > + > + /* Wait for currently ac

Re: [RFC 3/4] Documentation: move dma-buf documentation to rst

2016-08-11 Thread Jani Nikula
On Thu, 11 Aug 2016, Sumit Semwal wrote: > diff --git a/Documentation/dma-buf/guide.rst b/Documentation/dma-buf/guide.rst > new file mode 100644 > index ..fd3534fdccb3 > --- /dev/null > +++ b/Documentation/dma-buf/guide.rst > @@ -0,0 +1,503 @@ > + > +.. _dma-buf-guide: > + > +=

Re: [PATCH v2 1/2] gpio: dt-bindings: add brcm,bcm6345-gpio bindings

2016-08-11 Thread Linus Walleij
All devicetree binding patches must be sent to the devicet...@vger.kernel.org mailing list so include them on subsequent posts of this patch. On Wed, Aug 3, 2016 at 2:05 PM, Álvaro Fernández Rojas wrote: > This patch adds the device tree bindings for the Broadcom's BCM6345 > memory-mapped GPIO c

Re: [PATCH RESEND] net: can: Introduce MEN 16Z192-00 CAN controller driver

2016-08-11 Thread Oliver Hartkopp
On 08/11/2016 10:58 AM, Andreas Werner wrote: On Thu, Aug 11, 2016 at 10:45:00AM +0200, Oliver Hartkopp wrote: When you still have the possibility to change the IP core I would suggest to create some kind of 16/32 bit value which you can pass to the CAN controller along with the CAN frame t

Re: [PATCH 2/2] perf ppc64le: Fix probe location when using DWARF

2016-08-11 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 11, 2016 at 10:01:04AM +0530, Ravi Bangoria escreveu: > > > On Thursday 11 August 2016 05:24 AM, Anton Blanchard wrote: > > Hi, > > > > > Powerpc has Global Entry Point and Local Entry Point for functions. > > > LEP catches call from both the GEP and the LEP. Symbol table of ELF > >

Re: [PATCH v2 2/2] gpio: mmio: add brcm,bcm6345 support

2016-08-11 Thread Linus Walleij
On Wed, Aug 3, 2016 at 2:05 PM, Álvaro Fernández Rojas wrote: > From: Christian Lamparter > > This patch adds support for the GPIO found in Broadcom's bcm63xx-gpio > chips. > This GPIO controller is used in the following Broadcom SoCs: BCM6338, BCM6345. > It can be used in newer SoCs, without th

Re: [PATCH] perf tools mem: Fix -t store option for record command

2016-08-11 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 11, 2016 at 10:50:57AM +0200, Jiri Olsa escreveu: > Michael reported 'perf mem -t store record' being broken. > The reason is latest rework of this area: > commit acbe613e0c03 ("perf tools: Add monitored events array") > > We don't mark perf_mem_events store record when -t store > op

kmemleak: Cannot insert 0xff7f1000 into the object search tree (overlaps existing)

2016-08-11 Thread Vignesh R
Hi, I see the below message from kmemleak when booting linux-next on AM335x GP EVM and DRA7 EVM [0.803934] kmemleak: Cannot insert 0xff7f1000 into the object search tree (overlaps existing) [0.803950] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-next-20160809 #497 [0.803958] H

Re: [PATCH 03/11] pinctrl: nomadik: use of_property_read_bool

2016-08-11 Thread Linus Walleij
On Fri, Aug 5, 2016 at 10:56 AM, Julia Lawall wrote: > Use of_property_read_bool to check for the existence of a property. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression e1,e2; > statement S2,S1; > @@ > - if (of_get_prop

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-11 Thread Marc Zyngier
On 11/08/16 12:45, Marc Zyngier wrote: > On 11/08/16 10:47, Jon Hunter wrote: >> >> On 11/08/16 09:37, Marc Zyngier wrote: >>> On 08/08/16 22:48, Linus Walleij wrote: On Sat, Aug 6, 2016 at 1:45 AM, John Stultz wrote: > @@ -614,7 +615,11 @@ unsigned int irq_create_fwspec_mapping(stru

Re: [PATCH] powerpc: sysdev: cpm: fix gpio save_regs functions

2016-08-11 Thread Linus Walleij
On Thu, Aug 11, 2016 at 10:50 AM, Christophe Leroy wrote: > of_mm_gpiochip_add_data() calls mm_gc->save_regs() before > setting the data. Therefore ->save_regs() cannot use > gpiochip_get_data() > > [0.275940] Unable to handle kernel paging request for data at address > 0x0130 > [0.2

[PATCH 4.8-rc1 v23 0/4] irq/arm: Use FIQ for NMI backtrace (when possible)

2016-08-11 Thread Daniel Thompson
This patchset modifies the GIC driver to allow it, on supported platforms, to route IPI interrupts to FIQ. It then uses this feature to allow the NMI backtrace code on arm to be implemented using FIQ. Other than the rebase the patchset is unchanged since previous posting. The patches have been ru

[PATCH 4.8-rc1 v23 4/4] ARM: Allow IPI_CPU_BACKTRACE to exploit FIQ

2016-08-11 Thread Daniel Thompson
The GIC (v1 & v2) driver allows its implementation of handle_arch_irq() to be called from the FIQ handler but currently the ARM code is not able to exploit this. Extend handle_fiq_as_nmi() to call handle_arch_irq(). This will affect all interrupt controllers, including ones that do not support FIQ

Re: [PATCH] byteswap: don't use __builtin_bswap*() with sparse

2016-08-11 Thread Arnd Bergmann
On Thursday, August 11, 2016 1:15:02 PM CEST Johannes Berg wrote: > From: Johannes Berg > > Although sparse declares __builtin_bswap*(), it can't actually > do constant folding inside them (yet). As such, things like > > switch (protocol) { > case htons(ETH_P_IP): > break; > } >

[PATCH 4.8-rc1 v23 2/4] irqchip: gic: Make gic_raise_softirq FIQ-safe

2016-08-11 Thread Daniel Thompson
It is currently possible for FIQ handlers to re-enter gic_raise_softirq() and lock up. gic_raise_softirq() lock(x); -~-> FIQ handle_fiq() gic_raise_softirq() lock(x); <-- Lockup arch/arm/ uses IPIs to implement arch_irq_work_raise(), th

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-11 Thread Marc Zyngier
On 11/08/16 10:47, Jon Hunter wrote: > > On 11/08/16 09:37, Marc Zyngier wrote: >> On 08/08/16 22:48, Linus Walleij wrote: >>> On Sat, Aug 6, 2016 at 1:45 AM, John Stultz wrote: >>> @@ -614,7 +615,11 @@ unsigned int irq_create_fwspec_mapping(struct irq_fwspec *fwspec)

[PATCH 4.8-rc1 v23 1/4] irqchip: gic: Optimize locking in gic_raise_softirq

2016-08-11 Thread Daniel Thompson
Currently gic_raise_softirq() is locked using irq_controller_lock. This lock is primarily used to make register read-modify-write sequences atomic but gic_raise_softirq() uses it instead to ensure that the big.LITTLE migration logic can figure out when it is safe to migrate interrupts between physi

[PATCH 4.8-rc1 v23 3/4] irqchip: gic: Introduce plumbing for IPI FIQ

2016-08-11 Thread Daniel Thompson
Currently it is not possible to exploit FIQ for systems with a GIC, even on systems that are capable of it. This patch makes it possible for IPIs to be delivered using FIQ. To do so it modifies the register state so that normal interrupts are placed in group 1 and specific IPIs are placed into gro

Re: [RFC 3/4] Documentation: move dma-buf documentation to rst

2016-08-11 Thread Markus Heiser
Hi Sumit, I haven't compiled your patch yet, just my 2cent about the reStructuredText (reST) ASCII markup ... Here are some handy links about reST and the Sphinx markup constructs, we have not yet added to the documentation (sorry): * reST primer:http://www.sphinx-doc.org/en/stable/rest.htm

[tip:sched/urgent] sched/cputime: Fix steal time accounting

2016-08-11 Thread tip-bot for Wanpeng Li
Commit-ID: f9bcf1e0e0145323ba2cf72ecad5264ff3883eb1 Gitweb: http://git.kernel.org/tip/f9bcf1e0e0145323ba2cf72ecad5264ff3883eb1 Author: Wanpeng Li AuthorDate: Thu, 11 Aug 2016 13:36:35 +0800 Committer: Ingo Molnar CommitDate: Thu, 11 Aug 2016 11:02:14 +0200 sched/cputime: Fix steal time

[tip:x86/urgent] x86/boot: Run reserve_bios_regions() after we initialize the memory map

2016-08-11 Thread tip-bot for Andy Lutomirski
Commit-ID: 007b756053386af079ba963a8f5817ac651c7c59 Gitweb: http://git.kernel.org/tip/007b756053386af079ba963a8f5817ac651c7c59 Author: Andy Lutomirski AuthorDate: Wed, 10 Aug 2016 02:29:13 -0700 Committer: Ingo Molnar CommitDate: Thu, 11 Aug 2016 11:14:59 +0200 x86/boot: Run reserve_bi

[tip:x86/urgent] x86/boot: Synchronize trampoline_cr4_features and mmu_cr4_features directly

2016-08-11 Thread tip-bot for Andy Lutomirski
Commit-ID: 18bc7bd523e0fc5be8d76bf84bde733a97a8c375 Gitweb: http://git.kernel.org/tip/18bc7bd523e0fc5be8d76bf84bde733a97a8c375 Author: Andy Lutomirski AuthorDate: Wed, 10 Aug 2016 02:29:14 -0700 Committer: Ingo Molnar CommitDate: Thu, 11 Aug 2016 11:15:00 +0200 x86/boot: Synchronize tr

[tip:x86/urgent] x86/mm/kaslr: Fix -Wformat-security warning

2016-08-11 Thread tip-bot for Nicolas Iooss
Commit-ID: 62d16b5a3fca4d186e13215e0d7d2f6d36191796 Gitweb: http://git.kernel.org/tip/62d16b5a3fca4d186e13215e0d7d2f6d36191796 Author: Nicolas Iooss AuthorDate: Sat, 6 Aug 2016 12:20:39 +0200 Committer: Ingo Molnar CommitDate: Thu, 11 Aug 2016 10:58:12 +0200 x86/mm/kaslr: Fix -Wformat-

[tip:x86/urgent] x86/irq: Do not substract irq_tlb_count from irq_call_count

2016-08-11 Thread tip-bot for Aaron Lu
Commit-ID: 82ba4faca1bffad429f15c90c980ffd010366c25 Gitweb: http://git.kernel.org/tip/82ba4faca1bffad429f15c90c980ffd010366c25 Author: Aaron Lu AuthorDate: Thu, 11 Aug 2016 15:44:30 +0800 Committer: Ingo Molnar CommitDate: Thu, 11 Aug 2016 11:14:59 +0200 x86/irq: Do not substract irq_t

[tip:x86/urgent] x86/mm: Fix swap entry comment and macro

2016-08-11 Thread tip-bot for Dave Hansen
Commit-ID: ace7fab7a6cdd363a615ec537f2aa94dbc761ee2 Gitweb: http://git.kernel.org/tip/ace7fab7a6cdd363a615ec537f2aa94dbc761ee2 Author: Dave Hansen AuthorDate: Wed, 10 Aug 2016 10:23:25 -0700 Committer: Ingo Molnar CommitDate: Thu, 11 Aug 2016 11:04:10 +0200 x86/mm: Fix swap entry comme

[tip:x86/urgent] x86/boot: Rework reserve_real_mode() to allow multiple tries

2016-08-11 Thread tip-bot for Andy Lutomirski
Commit-ID: 5ff3e2c3c3eebe13967d81ad1f23b9468fefea81 Gitweb: http://git.kernel.org/tip/5ff3e2c3c3eebe13967d81ad1f23b9468fefea81 Author: Andy Lutomirski AuthorDate: Wed, 10 Aug 2016 02:29:16 -0700 Committer: Ingo Molnar CommitDate: Thu, 11 Aug 2016 11:15:01 +0200 x86/boot: Rework reserve

Re: clocksource_watchdog causing scheduling of timers every second (was [v13] support "task_isolation" mode)

2016-08-11 Thread Frederic Weisbecker
On Thu, Aug 11, 2016 at 10:40:02AM +0200, Peter Zijlstra wrote: > On Thu, Aug 11, 2016 at 12:16:58AM +0200, Frederic Weisbecker wrote: > > I had similar issues, this seems to happen when the tsc is considered not > > reliable > > (which doesn't necessarily mean unstable. I think it has to do with

[tip:x86/urgent] x86/boot: Defer setup_real_mode() to early_initcall time

2016-08-11 Thread tip-bot for Andy Lutomirski
Commit-ID: d0de0f685db7faf2ae4597a39a59996dd84e18c7 Gitweb: http://git.kernel.org/tip/d0de0f685db7faf2ae4597a39a59996dd84e18c7 Author: Andy Lutomirski AuthorDate: Wed, 10 Aug 2016 02:29:15 -0700 Committer: Ingo Molnar CommitDate: Thu, 11 Aug 2016 11:15:00 +0200 x86/boot: Defer setup_re

Re: [PATCH] perf tools mem: Fix -t store option for record command

2016-08-11 Thread Jiri Olsa
On Thu, Aug 11, 2016 at 08:51:38AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Aug 11, 2016 at 10:50:57AM +0200, Jiri Olsa escreveu: > > Michael reported 'perf mem -t store record' being broken. > > The reason is latest rework of this area: > > commit acbe613e0c03 ("perf tools: Add monitored

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-11 Thread Linus Walleij
On Thu, Aug 11, 2016 at 10:37 AM, Marc Zyngier wrote: > On 08/08/16 22:48, Linus Walleij wrote: >> On Sat, Aug 6, 2016 at 1:45 AM, John Stultz wrote: >> >>> @@ -614,7 +615,11 @@ unsigned int irq_create_fwspec_mapping(struct >>> irq_fwspec *fwspec) >>> * it now and return the inte

RE: [PATCH 04/21] net: thunderx: Set queue count based on number of CPUs

2016-08-11 Thread Yuval Mintz
> 81xx has only 4 CPUs, so it doesn't make sense to initialize entire Qset i.e 8 > queues by default. Made changes to queue initialization to init queues equal > to > number of CPUs or > 8 queues whichever is lesser. Also this will be applicable to VMs with VNIC VF > attached and having less VCPUs

[PATCH][RFC] Documentation/: update hibernation debug documentation

2016-08-11 Thread Chen Yu
Update the description of test_resume mode for hibernation. Signed-off-by: Chen Yu --- Documentation/power/basic-pm-debugging.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/power/basic-pm-debugging.txt b/Documentation/power/basic-pm-debugging.txt index b96098c..5f1

Re: [PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

2016-08-11 Thread Vitaly Kuznetsov
Yuval Mintz writes: >> +static void netvsc_inject_enable(struct net_device_context >> +*net_device_ctx) { >> +net_device_ctx->vf_inject = true; >> +} >> + >> +static void netvsc_inject_disable(struct net_device_context >> +*net_device_ctx) { >> +net_device_ctx->vf_inject = false; >> + >>

Re: [PATCH v7 1/5] mfd: tps65218: Remove redundant read wrapper

2016-08-11 Thread Linus Walleij
On Wed, Aug 10, 2016 at 2:52 PM, Keerthy wrote: > Currently read directly calls the repmap read function. Hence > remove the redundant wrapper and use regmap read wherever > needed. > > Signed-off-by: Keerthy > Acked-by: Lee Jones Acked-by: Linus Walleij I assume an immutable branch will not

Re: [PATCH 3/4] clk: hix5hd2: change ethernet clock type

2016-08-11 Thread kbuild test robot
Hi Dongpo, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.8-rc1 next-20160811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dongpo-Li/net-hix5hd2_gmac-add-tx-sg-feature

Re: [RFC 3/4] Documentation: move dma-buf documentation to rst

2016-08-11 Thread Markus Heiser
Am 11.08.2016 um 13:58 schrieb Markus Heiser : >> +.. note:: Until this stage, the buffer-exporter has the option to choose >> not to >> + actually allocate the backing storage for this buffer, but wait for the >> + first buffer-user to request use of buffer for allocation. > > Use newlines

[PATCH] X.509: Fix double free in x509_cert_parse().

2016-08-11 Thread Artem Savkov
Patch "crypto: KEYS: convert public key and digsig asym to the akcipher api" introduced double freeing of cert->pub->key. There is no need to free it in error_decode label as it is later freed in x509_free_certificate(). Signed-off-by: Artem Savkov --- crypto/asymmetric_keys/x509_cert_parser.c |

[PATCH v5 0/2] mfd: dm355evm_msp: Improve implementation of add_child()

2016-08-11 Thread SF Markus Elfring
From: Markus Elfring Adjust jump targets together with three error messages. Markus Elfring (2): Refactoring Change error messages drivers/mfd/dm355evm_msp.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) -- 2.9.2

[PATCH v5 1/2] mfd: dm355evm_msp: Refactoring for add_child()

2016-08-11 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 11 Aug 2016 13:30:32 +0200 Adjust jump targets according to the Linux coding style convention. Another check for the variable "status" can be omitted then at the end. Link: https://lkml.kernel.org/g/<20160628163146.GG29166@dell> Signed-off-by: Markus Elfring ---

[PATCH v6 4/5] crypto: LRNG - enable compile

2016-08-11 Thread Stephan Mueller
Add LRNG compilation support. Signed-off-by: Stephan Mueller --- crypto/Kconfig | 11 +++ crypto/Makefile | 2 ++ 2 files changed, 13 insertions(+) diff --git a/crypto/Kconfig b/crypto/Kconfig index 84d7148..71df7fc 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1665,6 +1665,17

[PATCH v5 2/2] mfd: dm355evm_msp: Change error messages in add_child()

2016-08-11 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 11 Aug 2016 14:00:43 +0200 Delete an error message at the end while increasing the importance of related information. Link: https://lkml.kernel.org/g/<20160809153615.GU5243@dell> Suggested-by: Lee Jones Signed-off-by: Markus Elfring --- v5: Rebased on the sourc

[PATCH v6 0/5] /dev/random - a new approach

2016-08-11 Thread Stephan Mueller
Hi Herbert, Ted, The following patch set provides a different approach to /dev/random which I call Linux Random Number Generator (LRNG) to collect entropy within the Linux kernel. The main improvements compared to the legacy /dev/random is to provide sufficient entropy during boot time as well as

Re: [PATCH] perf/core: Fix the mask in perf_output_sample_regs

2016-08-11 Thread Peter Zijlstra
Sorry, found it in my inbox while clearing out backlog.. On Sun, Jul 03, 2016 at 11:31:58PM +0530, Madhavan Srinivasan wrote: > When decoding the perf_regs mask in perf_output_sample_regs(), > we loop through the mask using find_first_bit and find_next_bit functions. > While the exisitng code wor

[PATCH v6 5/5] crypto: LRNG - add ChaCha20 support

2016-08-11 Thread Stephan Mueller
In case the kernel crypto API is not compiled, use ChaCha20 stream cipher as DRNG. The LRNG ChaCha20 support provides the DRNG implementation with the generate and update functions. Th DRNG implements enhanced backward secrecy by re-creating the entire internal state after generating random number

[PATCH v6 2/5] random: conditionally compile code depending on LRNG

2016-08-11 Thread Stephan Mueller
When selecting the LRNG for compilation, disable the legacy /dev/random implementation. The LRNG is a drop-in replacement for the legacy /dev/random which implements the same in-kernel and user space API. Only the hooks of /dev/random into other parts of the kernel need to be disabled. Signed-off

[PATCH v6 3/5] crypto: Linux Random Number Generator

2016-08-11 Thread Stephan Mueller
The LRNG with the following properties: * noise source: interrupts timing with fast boot time seeding * lockless LFSR to collect raw entropy * use of kernel crypto API DRBG * in case kernel crypto API is not compiled, use standalone ChaCha20 based RNG * used cipher types for hashes and DRBG

[PATCH v6 1/5] crypto: DRBG - externalize DRBG functions for LRNG

2016-08-11 Thread Stephan Mueller
This patch allows several DRBG functions to be called by the LRNG kernel code paths outside the drbg.c file. Signed-off-by: Stephan Mueller --- crypto/drbg.c | 11 +-- include/crypto/drbg.h | 7 +++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/crypto/drbg.

Re: [PATCH RESEND v2 0/8] Cache-coherent DMA access using UIO

2016-08-11 Thread Alex Williamson
On Thu, 11 Aug 2016 10:06:19 +0530 Anup Patel wrote: > Hi Alex, > > On Thu, Aug 11, 2016 at 9:46 AM, Alex Williamson > wrote: > > On Thu, 11 Aug 2016 09:30:19 +0530 > > Anup Patel wrote: > > > >> Hi Arnd, > >> > >> On Wed, Aug 10, 2016 at 9:25 PM, Arnd Bergmann wrote: > >> > On Monday, Au

Re: [RFC 3/4] Documentation: move dma-buf documentation to rst

2016-08-11 Thread Sumit Semwal
Hello Jani, On 11 August 2016 at 17:17, Jani Nikula wrote: > On Thu, 11 Aug 2016, Sumit Semwal wrote: >> diff --git a/Documentation/dma-buf/guide.rst >> b/Documentation/dma-buf/guide.rst >> new file mode 100644 >> index ..fd3534fdccb3 >> --- /dev/null >> +++ b/Documentation/dma-buf/

Re: [PATCH 3/5] mm/page_owner: move page_owner specific function to page_owner.c

2016-08-11 Thread Vlastimil Babka
On 08/10/2016 08:16 AM, js1...@gmail.com wrote: + page_mt = gfpflags_to_migratetype(page_ext->gfp_mask); + if (pageblock_mt != page_mt) { + count[pageblock_mt]++; + + pfn = block_end_pfn; +

Re: [RFC PATCH 0/9][V3] Overlayfs SELinux Support

2016-08-11 Thread Paul Moore
On Wed, Aug 10, 2016 at 8:52 AM, Daniel J Walsh wrote: > On 08/10/2016 08:32 AM, Paul Moore wrote: >> On Wed, Aug 10, 2016 at 5:11 AM, Miklos Szeredi wrote: >>> On Tue, Aug 9, 2016 at 3:19 AM, Paul Moore wrote: Okay, I just merged these patches into selinux#next. With the exception of

Re: [RFC PATCH 0/9][V3] Overlayfs SELinux Support

2016-08-11 Thread Daniel J Walsh
On 08/11/2016 08:36 AM, Paul Moore wrote: > On Wed, Aug 10, 2016 at 8:52 AM, Daniel J Walsh wrote: >> On 08/10/2016 08:32 AM, Paul Moore wrote: >>> On Wed, Aug 10, 2016 at 5:11 AM, Miklos Szeredi wrote: On Tue, Aug 9, 2016 at 3:19 AM, Paul Moore wrote: > Okay, I just merged these patc

Re: [PATCH v2] drivers: net: cpsw: fix kmemleak false-positive reports for sk buffers

2016-08-11 Thread Grygorii Strashko
On 08/11/2016 04:00 AM, David Miller wrote: From: Grygorii Strashko Date: Wed, 10 Aug 2016 20:02:53 +0300 diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 0805855..5caef77 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -732

Re: [PATCH v5 2/2] mfd: dm355evm_msp: Change error messages in add_child()

2016-08-11 Thread Julia Lawall
On Thu, 11 Aug 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 11 Aug 2016 14:00:43 +0200 > > Delete an error message at the end while increasing the importance of > related information. > > Link: https://lkml.kernel.org/g/<20160809153615.GU5243@dell> > Suggested-by: Lee Jone

[PATCH v2 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-11 Thread Vitaly Kuznetsov
I'm observing the following hot add requests from the WS2012 host: hot_add_req: start_pfn = 0x108200 count = 330752 hot_add_req: start_pfn = 0x158e00 count = 193536 hot_add_req: start_pfn = 0x188400 count = 239616 As the host doesn't specify hot add regions we're trying to create 128Mb-aligned re

[PATCH v2 4/4] Drivers: hv: balloon: replace ha_region_mutex with spinlock

2016-08-11 Thread Vitaly Kuznetsov
lockdep reports possible circular locking dependency when udev is used for memory onlining: systemd-udevd/3996 is trying to acquire lock: ((memory_chain).rwsem){.+}, at: [] __blocking_notifier_call_chain+0x4e/0xc0 but task is already holding lock: (&dm_device.ha_region_mutex){+.+.+.},

[PATCH v2 0/4] Drivers: hv: balloon: fix WS2012 memory hotplug issues and do some cleanup

2016-08-11 Thread Vitaly Kuznetsov
Changes since v1: - Keep ol_waitevent and wait when kernel memory onlining is disabled [Alex Ng] Crashes with Hyper-V balloon driver are reported with WS2012 (non-R2), hosts I was able to identify two issues which I fix with first two patches of this series. Patches 3 removes wait on ol_waitevent

[PATCH v2 1/4] Drivers: hv: balloon: keep track of where ha_region starts

2016-08-11 Thread Vitaly Kuznetsov
Windows 2012 (non-R2) does not specify hot add region in hot add requests and the logic in hot_add_req() is trying to find a 128Mb-aligned region covering the request. It may also happen that host's requests are not 128Mb aligned and the created ha_region will start before the first specified PFN.

Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures

2016-08-11 Thread Nicholas Piggin
On Wed, 03 Aug 2016 22:13:28 +0200 Arnd Bergmann wrote: > On Wednesday, August 3, 2016 2:44:29 PM CEST Segher Boessenkool wrote: > > Hi Arnd, > > > > On Wed, Aug 03, 2016 at 08:52:48PM +0200, Arnd Bergmann wrote: > > > From my first look, it seems that all of lib/*.o is now getting linked > >

[PATCH v2 3/4] Drivers: hv: balloon: don't wait for ol_waitevent when memhp_auto_online is enabled

2016-08-11 Thread Vitaly Kuznetsov
With the recently introduced in-kernel memory onlining (MEMORY_HOTPLUG_DEFAULT_ONLINE) these is no point in waiting for pages to come online in the driver and we can get rid of the waiting. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_balloon.c | 14 -- 1 file changed, 8 inserti

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-11 Thread Marc Zyngier
On 11/08/16 10:47, Jon Hunter wrote: > > On 11/08/16 09:37, Marc Zyngier wrote: >> On 08/08/16 22:48, Linus Walleij wrote: >>> On Sat, Aug 6, 2016 at 1:45 AM, John Stultz wrote: >>> @@ -614,7 +615,11 @@ unsigned int irq_create_fwspec_mapping(struct irq_fwspec *fwspec)

[PATCH v2 RESEND 0/4] Drivers: hv: balloon: fix WS2012 memory hotplug issues and do some cleanup

2016-08-11 Thread Vitaly Kuznetsov
Changes since v2: - I'm sorry, I screwed up Alex's address, this is just a resend. Changes since v1: - Keep ol_waitevent and wait when kernel memory onlining is disabled [Alex Ng] Crashes with Hyper-V balloon driver are reported with WS2012 (non-R2), hosts I was able to identify two issues which

[PATCH v2 RESEND 3/4] Drivers: hv: balloon: don't wait for ol_waitevent when memhp_auto_online is enabled

2016-08-11 Thread Vitaly Kuznetsov
With the recently introduced in-kernel memory onlining (MEMORY_HOTPLUG_DEFAULT_ONLINE) these is no point in waiting for pages to come online in the driver and we can get rid of the waiting. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_balloon.c | 14 -- 1 file changed, 8 inserti

Re: [PATCH] x86/smp: Fix __max_logical_packages value setup

2016-08-11 Thread Peter Zijlstra
On Wed, Aug 10, 2016 at 06:14:18PM +0200, Jiri Olsa wrote: > > Maybe one nit, the variable is no longer used for a max, so maybe rename > > it too? > diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h > index cf75871d2f81..c28010088651 100644 > --- a/arch/x86/include/as

[RESEND PATCH v2 3/3] dt-bindings: clock: Update bindings for MDM9615 GCC and LCC

2016-08-11 Thread Neil Armstrong
Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/clock/qcom,gcc.txt | 1 + Documentation/devicetree/bindings/clock/qcom,lcc.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc.txt b/Documentation/dev

[RESEND PATCH v2 2/3] clk: mdm9615: Add support for MDM9615 Clock Controllers

2016-08-11 Thread Neil Armstrong
In order to support the Qualcomm MDM9615 SoC, add support for the Global and LPASS Clock Controllers. Signed-off-by: Neil Armstrong --- drivers/clk/qcom/Kconfig | 17 + drivers/clk/qcom/Makefile |2 + drivers/clk/qcom/gcc-mdm9615.c | 1727

[RESEND PATCH v2 0/3] clk: Add MDM9615 Clock Controllers driver and bindings

2016-08-11 Thread Neil Armstrong
In order to support the Qualcomm MDM9615 in the Sierra Wireless WP8548 Modules, add the MDM9615 Clock Controllers drivers and bindings. This patchset is part of a global SoC + Module + Board support for the Sierra Wireless mangOH Board support with the WP8548 module. Changes since v1 at http://l

[PATCH v2 RESEND 4/4] Drivers: hv: balloon: replace ha_region_mutex with spinlock

2016-08-11 Thread Vitaly Kuznetsov
lockdep reports possible circular locking dependency when udev is used for memory onlining: systemd-udevd/3996 is trying to acquire lock: ((memory_chain).rwsem){.+}, at: [] __blocking_notifier_call_chain+0x4e/0xc0 but task is already holding lock: (&dm_device.ha_region_mutex){+.+.+.},

[PATCH v2 RESEND 1/4] Drivers: hv: balloon: keep track of where ha_region starts

2016-08-11 Thread Vitaly Kuznetsov
Windows 2012 (non-R2) does not specify hot add region in hot add requests and the logic in hot_add_req() is trying to find a 128Mb-aligned region covering the request. It may also happen that host's requests are not 128Mb aligned and the created ha_region will start before the first specified PFN.

Re: [RFC 3/4] Documentation: move dma-buf documentation to rst

2016-08-11 Thread Sumit Semwal
Hi Markus, On 11 August 2016 at 17:28, Markus Heiser wrote: > Hi Sumit, > > I haven't compiled your patch yet, just my 2cent about the > reStructuredText (reST) ASCII markup ... > Thanks very much for your detailed review comments - highly appreciated! > Here are some handy links about reST and

[PATCH v2 RESEND 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-11 Thread Vitaly Kuznetsov
I'm observing the following hot add requests from the WS2012 host: hot_add_req: start_pfn = 0x108200 count = 330752 hot_add_req: start_pfn = 0x158e00 count = 193536 hot_add_req: start_pfn = 0x188400 count = 239616 As the host doesn't specify hot add regions we're trying to create 128Mb-aligned re

[RESEND PATCH v2 1/3] dt-bindings: Add MDM9615 DT bindings include files for GCC and LCC

2016-08-11 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- include/dt-bindings/clock/qcom,gcc-mdm9615.h | 327 +++ include/dt-bindings/clock/qcom,lcc-mdm9615.h | 52 + include/dt-bindings/reset/qcom,gcc-mdm9615.h | 136 +++ 3 files changed, 515 insertions(+) create mode 100644 includ

Re: [PATCH 4/5] mm/page_ext: support extra space allocation by page_ext user

2016-08-11 Thread Vlastimil Babka
On 08/10/2016 08:16 AM, js1...@gmail.com wrote: From: Joonsoo Kim Until now, if some page_ext users want to use it's own field on page_ext, it should be defined in struct page_ext by hard-coding. It has a problem that wastes memory in following situation. struct page_ext { #ifdef CONFIG_A

Re: [tip:smp/hotplug] cpu/hotplug: Prevent alloc/free of irq descriptors during CPU up/down (again)

2016-08-11 Thread Boris Ostrovsky
On 08/10/2016 02:10 PM, tip-bot for Boris Ostrovsky wrote: > Commit-ID: aa877175e7a9982233ed8f10cb4bfddd78d82741 > Gitweb: http://git.kernel.org/tip/aa877175e7a9982233ed8f10cb4bfddd78d82741 > Author: Boris Ostrovsky > AuthorDate: Wed, 3 Aug 2016 13:22:28 -0400 > Committer: Ingo Molnar >

Re: [PATCH] vfio: Enable VFIO device for powerpc

2016-08-11 Thread Paolo Bonzini
On 26/08/2015 20:54, Paul Mackerras wrote: > On Wed, Aug 26, 2015 at 11:34:26AM +0200, Alexander Graf wrote: >> On 13.08.15 03:15, David Gibson wrote: >>> ec53500f "kvm: Add VFIO device" added a special KVM pseudo-device which is >>> used to handle any necessary interactions between KVM and VFIO.

[PATCH] cputime: Fix omitted ticks passed in parameter (was: Re: [tip:sched/urgent] sched/cputime: Fix steal time accounting)

2016-08-11 Thread Frederic Weisbecker
Commit f9bcf1e0e0145323ba2cf72ecad5264ff3883eb1 ("sched/cputime: Fix steal time accounting") fixes a leak on steal time accounting but forgets to account the ticks passed in parameters, assuming there is only one to take into account. Let's consider that parameter back. Cc: Wanpeng Li Cc: Linus

Re: [PATCH] treewide: fix a bunch of typos

2016-08-11 Thread Masahiro Yamada
Hi Linus, 2016-08-09 3:03 GMT+09:00 Linus Torvalds : > On Sun, Aug 7, 2016 at 6:56 AM, Masahiro Yamada > wrote: >> >> Sorry for chiming in at the last minute of the MW. >> >> I am not sure if you like this, but here is a bunch of typo fixes. >> All of them are very trivial, but I am afraid this

<    1   2   3   4   5   6   7   8   9   >