Re: cgroups and nice

2016-11-30 Thread Marat Khalili
On 29/11/16 00:13, Dhaval Giani wrote: This is an old version of the kernel. Do you see the same behavior on a newer version of the kernel? (4.8 is the latest stable kernel) Sadly, RedHat is not very keen on updating their kernels. I did a quick experiment on Ubuntu box with kernel 4.4, and

Re: [PATCH 0/2] USB: serial: kl5kusb105: fix open error paths

2016-11-30 Thread Johan Hovold
On Tue, Nov 29, 2016 at 04:55:00PM +0100, Johan Hovold wrote: > Pan Bian found an issue with the kl5kusb105 open error handling, which > would not abort an open attempt when a vendor command to "enable read" > failed. > > Turns out there were more issues with this function, specifically any >

RE: [patch net / RFC] net: fec: increase frame size limitation to actually available buffer

2016-11-30 Thread Andy Duan
From: Nikita Yushchenko Sent: Wednesday, November 30, 2016 2:35 AM >To: David S. Miller ; Andy Duan >; Troy Kisky ; >Andrew Lunn ; Eric Nelson ; Philippe

Re: [PATCH] iio: misc: add a generic regulator driver

2016-11-30 Thread Lars-Peter Clausen
On 11/29/2016 04:35 PM, Bartosz Golaszewski wrote: > 2016-11-29 16:30 GMT+01:00 Lars-Peter Clausen : >> On 11/29/2016 04:22 PM, Bartosz Golaszewski wrote: >> [...] >>> diff --git a/Documentation/devicetree/bindings/iio/misc/iio-regulator.txt >>>

Re: stmmac ethernet in kernel 4.4: coalescing related pauses?

2016-11-30 Thread Pavel Machek
On Mon 2016-11-28 07:31:43, Eric Dumazet wrote: > On Mon, 2016-11-28 at 09:54 -0500, David Miller wrote: > > From: Lino Sanfilippo > > Date: Mon, 28 Nov 2016 14:07:51 +0100 > > > > > Calling skb_orphan() in the xmit handler made this issue disappear. > > > > This is not the

Re: [PATCH 2/2] Synopsys USB 2.0 Device Controller (UDC) Driver

2016-11-30 Thread Felipe Balbi
Hi, Raviteja Garimella writes: > This is driver for Synopsys Designware Cores USB Device > Controller (UDC) Subsystem with the AMBA Advanced High-Performance > Bus (AHB). This driver works with Synopsys UDC20 products. > > Signed-off-by: Raviteja Garimella

Re: [PATCH] watchdog: meson: Remove unneeded platform MODULE_ALIAS

2016-11-30 Thread Guenter Roeck
On 11/29/2016 06:57 AM, Javier Martinez Canillas wrote: Hello Wim, On 10/20/2016 07:28 PM, Guenter Roeck wrote: On Wed, Oct 19, 2016 at 04:49:42PM -0300, Javier Martinez Canillas wrote: The Amlogic Meson is a DT-only platform, which means the devices are registered via OF and not using the

Re: [PATCH 4/6] net: ethernet: ti: cpts: add ptp pps support

2016-11-30 Thread Jan Lübbe
On Mo, 2016-11-28 at 17:04 -0600, Grygorii Strashko wrote: > --- a/Documentation/devicetree/bindings/net/keystone-netcp.txt > +++ b/Documentation/devicetree/bindings/net/keystone-netcp.txt > @@ -127,6 +127,16 @@ Optional properties: > The number of external time stamp channels. >

Re: net: GPF in rt6_get_cookie

2016-11-30 Thread Hannes Frederic Sowa
Hi On 30.11.2016 11:39, Andrey Konovalov wrote: > On Sat, Nov 26, 2016 at 5:23 PM, 'Dmitry Vyukov' via syzkaller > wrote: >> Hello, >> >> I got several GPFs in rt6_get_cookie while running syzkaller: >> >> general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-30 Thread Peter Zijlstra
On Wed, Nov 30, 2016 at 11:01:29AM +0100, Petr Mladek wrote: > On Tue 2016-11-29 18:10:38, Peter Zijlstra wrote: > > In any case, as long as printk has a globally serialized 'log', it, per > > design, will be worse than the console drivers its build upon. And them > > being shit precludes the

Re: [PATCH v3 1/5] KVM: nVMX: generate non-true VMX MSRs based on true versions

2016-11-30 Thread Paolo Bonzini
On 30/11/2016 03:14, David Matlack wrote: > The "non-true" VMX capability MSRs can be generated from their "true" > counterparts, by OR-ing the default1 bits. The default1 bits are fixed > and defined in the SDM. > > Since we can generate the non-true VMX MSRs from the true versions, > there's

Re: [PATCH v3 0/5] VMX Capability MSRs

2016-11-30 Thread Paolo Bonzini
On 30/11/2016 03:14, David Matlack wrote: > This patchset adds support setting the VMX capability MSRs from userspace. > This is required for migration of nested-capable VMs to different CPUs and > KVM versions. > > Patch 1 generates the non-true VMX MSRs using the true MSRs, which allows >

Re: [PATCH] soc: ti: qmss: fix the case when !SMP

2016-11-30 Thread Arnd Bergmann
On Tuesday, November 29, 2016 4:15:08 PM CET Grygorii Strashko wrote: > range->num_irqs++; > > - if (oirq.args_count == 3) > + if (IS_ENABLED(SMP) && oirq.args_count == 3) > range->irqs[i].cpu_map = >

Re: [PATCH 4/7] time: alarmtimer: Add the tracepoints for alarmtimer

2016-11-30 Thread Baolin Wang
On 29 November 2016 at 20:06, Thomas Gleixner wrote: > On Mon, 28 Nov 2016, John Stultz wrote: > >> From: Baolin Wang >> >> For system debugging, we sometimes want to know who sets one >> alarm timer, the time of the timer, when the timer started and

[PATCH] usb:hub: readibility and consistency in coding style

2016-11-30 Thread Atul Raj
It is suggested to keep braces if there is a comment in if case as comment also takes a line. --- drivers/usb/core/hub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 82059f26..f43e6302 100644 ---

Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node`

2016-11-30 Thread Paul E. McKenney
On Wed, Nov 30, 2016 at 03:53:20AM -0800, Paul E. McKenney wrote: > On Wed, Nov 30, 2016 at 12:09:44PM +0100, Michal Hocko wrote: > > [CCing Paul] > > > > On Wed 30-11-16 11:28:34, Donald Buczek wrote: > > [...] > > > shrink_active_list gets and releases the spinlock and calls > > >

Re: [char-misc-next 4/4 V2] mei: bus: enable non-blocking RX

2016-11-30 Thread 'Greg Kroah-Hartman'
On Tue, Nov 29, 2016 at 08:09:38PM +, Winkler, Tomas wrote: > > > On Mon, Nov 28, 2016 at 11:03:20PM +, Winkler, Tomas wrote: > > > > > > > > > > > > > > > > > > On Sat, Nov 19, 2016 at 02:16:11PM +0200, Tomas Winkler wrote: > > > > > > From: Alexander Usyskin

Re: RE: [PATCH v2] usb: core:hub.c: do not print error log on -enomem

2016-11-30 Thread gre...@linuxfoundation.org
On Wed, Nov 30, 2016 at 11:40:28AM +, Atul Raj wrote: > changes in v2 > - added braces as suggested. Why is this here? > > drivers/usb/core/hub.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) No signed off? You didn't cc: linux-usb@vger? Come on, please step back

[PATCH 1/2] net: rfkill: Cleanup error handling in rfkill_init()

2016-11-30 Thread Michał Kępień
Use a separate label per error condition in rfkill_init() to make it a bit cleaner and easier to extend. Signed-off-by: Michał Kępień --- net/rfkill/core.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/net/rfkill/core.c

Re: next: Commit 'mm: Prevent __alloc_pages_nodemask() RCU CPU stall ...' causing hang on sparc32 qemu

2016-11-30 Thread Paul E. McKenney
On Wed, Nov 30, 2016 at 02:52:11AM -0800, Guenter Roeck wrote: > On 11/29/2016 11:02 PM, Paul E. McKenney wrote: > >On Tue, Nov 29, 2016 at 08:32:51PM -0800, Guenter Roeck wrote: > >>On 11/29/2016 05:28 PM, Paul E. McKenney wrote: > >>>On Tue, Nov 29, 2016 at 01:23:08PM -0800, Guenter Roeck wrote:

[PATCH 2/2] net: rfkill: Add rfkill-any LED trigger

2016-11-30 Thread Michał Kępień
This patch adds a new "global" (i.e. not per-rfkill device) LED trigger, rfkill-any, which may be useful for laptops with a single "radio LED" and multiple radio transmitters. The trigger is meant to turn a LED on whenever there is at least one radio transmitter active and turn it off otherwise.

Re: [PATCH 2/2] ACPI: Ignore Consumer/Producer for QWord/DWord/Word Address Space

2016-11-30 Thread Lorenzo Pieralisi
On Tue, Nov 29, 2016 at 12:43:34PM -0600, Bjorn Helgaas wrote: > Per ACPI spec r6.0, sec 6.4.3.5.1, 2, 3, Bit [0] of General Flags (the > Consumer/Producer bit) should be ignored for QWord/DWord/Word Address Space > descriptors. The Consumer/Producer bit is defined only for the Extended > Address

[PATCH net] vhost_net: don't continue to call the recvmsg when meet errors

2016-11-30 Thread Yunjian Wang
When we meet an error(err=-EBADFD) recvmsg, the error handling in vhost handle_rx() will continue. This will cause a soft CPU lockup in vhost thread. Signed-off-by: Yunjian Wang --- drivers/vhost/net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH 00/11] locking/ww_mutex: Keep sorted wait list to avoid stampedes

2016-11-30 Thread Chris Wilson
On Wed, Nov 30, 2016 at 12:52:28PM +0100, Nicolai Hähnle wrote: > On 30.11.2016 10:40, Chris Wilson wrote: > >On Mon, Nov 28, 2016 at 01:20:01PM +0100, Nicolai Hähnle wrote: > >>I've included timings taken from a contention-heavy stress test to some of > >>the patches. The stress test performs

Re: [PATCH] mm: page_alloc: High-order per-cpu page allocator v3

2016-11-30 Thread Jesper Dangaard Brouer
On Sun, 27 Nov 2016 13:19:54 + Mel Gorman wrote: [...] > SLUB has been the default small kernel object allocator for quite some time > but it is not universally used due to performance concerns and a reliance > on high-order pages. The high-order concerns has

Re: [PATCH v2 0/9] openrisc: Misc fixes from backlog

2016-11-30 Thread Stafford Horne
On Tue, 29 Nov 2016, Guenter Roeck wrote: On Mon, Nov 14, 2016 at 10:30:30PM +0900, Stafford Horne wrote: Hello, This patch is a small set of fixes from the openrisc backlog. These changes fix several issues with the openrisc build on modern tool chains and address other issues which have

Re: [RFC] pinctrl: imx: use radix trees for groups and functions

2016-11-30 Thread Linus Walleij
On Fri, Nov 25, 2016 at 12:38 AM, Gary Bisson wrote: > This change is inspired from the pinctrl-single architecture. > > The problem with current implementation is that it isn't possible > to add/remove functions and/or groups dynamically. The radix tree > offers

Re: [PATCH v2 1/3] devicetree: bindings: pinctrl: Add binding for ti,da850-pupd

2016-11-30 Thread Linus Walleij
On Mon, Nov 28, 2016 at 5:40 PM, David Lechner wrote: > Device-tree bindings for TI DA850/OMAP-L138/AM18XX pullup/pulldown > pinconf controller. > > Signed-off-by: David Lechner > Reviewed-by: Sekhar Nori Totally uncontroversial

Re: [PATCH v2 3/3] ARM: dts: da850: Add node for pullup/pulldown pinconf

2016-11-30 Thread Linus Walleij
On Mon, Nov 28, 2016 at 5:40 PM, David Lechner wrote: > This SoC has a separate pin controller for configuring pullup/pulldown > bias on groups of pins. > > Signed-off-by: David Lechner > --- > > v2 changes: > * Moved pin-controller@22c00c device node

[PATCH v3 0/2] Support for Axentia TSE-850

2016-11-30 Thread Peter Rosin
Hi! changes v2 -> v3 - document the new compatible strings prefixed with "axentia,". changes v1 -> v2 - squash the fixup into the correct patch, sorry for the noise. After finally having all essintial drivers upstreamed (the last ones are currently in -next) I would like to have the dts and the

[PATCH v3 2/2] ARM: tse850_defconfig: add Axentia TSE-850

2016-11-30 Thread Peter Rosin
Signed-off-by: Peter Rosin --- MAINTAINERS | 1 + arch/arm/configs/tse850_defconfig | 223 ++ 2 files changed, 224 insertions(+) create mode 100644 arch/arm/configs/tse850_defconfig diff --git a/MAINTAINERS

Re: [PATCH 3/3] iio: st_pressure: Support i2c probe using acpi

2016-11-30 Thread Linus Walleij
On Tue, Nov 29, 2016 at 5:25 AM, Shrirang Bagul wrote: > Thank you Jonathan. I'll follow-up on Linus's suggestion and try and identify > more of these sensors on some of the hardware we have in the lab. and try to > add > support for some more devices. Thanks

Re: [PATCH net] tipc: check minimum bearer MTU

2016-11-30 Thread Michal Kubecek
On Wed, Nov 30, 2016 at 06:28:14PM +0800, Ying Xue wrote: ... > >diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h > >index 78892e2f53e3..1a0b7434ec24 100644 > >--- a/net/tipc/bearer.h > >+++ b/net/tipc/bearer.h > >@@ -39,6 +39,7 @@ > > > > #include "netlink.h" > > #include "core.h" > >+#include

Re: [lkp] [mm] e7c1db75fe: BUG:sleeping_function_called_from_invalid_context_at_mm/page_alloc.c

2016-11-30 Thread Sudeep Holla
st enabled at (508052): xprt_end_transmit+0x4c/0x60 softirqs last disabled at (508053): do_softirq.part.4+0x7c/0x98 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-rc7-next-20161130-00010-ga0f9af725c5d #218 Hardware name: ARM LTD ARM Juno Development Platform/ARM Juno Development Platform, BIOS EDK II

Re: [PATCH 4/4] locking: Add kselftests for ww_mutex stress

2016-11-30 Thread Maarten Lankhorst
Op 30-11-16 om 01:35 schreef Chris Wilson: > Signed-off-by: Chris Wilson > Cc: Peter Zijlstra > Cc: Maarten Lankhorst > Cc: Nicolai Hähnle > --- > kernel/locking/test-ww_mutex.c | 134 >

Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node`

2016-11-30 Thread Paul Menzel
On 11/30/16 12:54, Paul E. McKenney wrote: > On Wed, Nov 30, 2016 at 03:53:20AM -0800, Paul E. McKenney wrote: >> On Wed, Nov 30, 2016 at 12:09:44PM +0100, Michal Hocko wrote: >>> [CCing Paul] >>> >>> On Wed 30-11-16 11:28:34, Donald Buczek wrote: >>> [...] shrink_active_list gets and

RE: Re: [PATCH] usb:hub: readibility and consistency in coding style

2016-11-30 Thread Atul Raj
Hi Greg, I am so happy to get a mail from you and I am really sorry Greg that I disappointed you. I will take utmost care in future. I will send you correct patch in sometime. for your ques "Also, why are you including a ton of people who have nothing to do with usb patches on this one?" I got

Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group

2016-11-30 Thread Morten Rasmussen
On Fri, Nov 25, 2016 at 04:34:33PM +0100, Vincent Guittot wrote: > find_idlest_group() only compares the runnable_load_avg when looking for > the least loaded group. But on fork intensive use case like hackbench > where tasks blocked quickly after the fork, this can lead to selecting the > same

Re: [PATCH 4/4] locking: Add kselftests for ww_mutex stress

2016-11-30 Thread Chris Wilson
On Wed, Nov 30, 2016 at 01:29:39PM +0100, Maarten Lankhorst wrote: > > +static void stress_work(struct work_struct *work) > > +{ > > + struct stress *stress = container_of(work, typeof(*stress), work); > > + const int nlocks = stress->nlocks; > > + struct ww_mutex *locks = stress->locks; > >

[PATCH v3 1/2] ARM: dts: add devicetree for the Axentia TSE-850

2016-11-30 Thread Peter Rosin
Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/arm/axentia.txt | 19 ++ MAINTAINERS | 7 + arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/axentia-linea.dtsi | 53 +

Re: [PATCH v11 0/8] powerpc: Implement kexec_file_load()

2016-11-30 Thread Mimi Zohar
On Wed, 2016-11-30 at 15:52 +1100, Michael Ellerman wrote: > Andrew Morton writes: > > > On Tue, 29 Nov 2016 23:45:46 +1100 Michael Ellerman > > wrote: > > > >> This is v11 of the kexec_file_load() for powerpc series. > >> > >> I've stripped

Re: [PATCH] mm: page_alloc: High-order per-cpu page allocator v3

2016-11-30 Thread Michal Hocko
On Sun 27-11-16 13:19:54, Mel Gorman wrote: [...] > @@ -2588,18 +2594,22 @@ struct page *buffered_rmqueue(struct zone > *preferred_zone, > struct page *page; > bool cold = ((gfp_flags & __GFP_COLD) != 0); > > - if (likely(order == 0)) { > + if (likely(order <=

Re: [RFC] pinctrl: imx: use radix trees for groups and functions

2016-11-30 Thread Fabio Estevam
Hi Gary, On Thu, Nov 24, 2016 at 9:38 PM, Gary Bisson wrote: > This change is inspired from the pinctrl-single architecture. > > The problem with current implementation is that it isn't possible > to add/remove functions and/or groups dynamically. The radix tree

Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node`

2016-11-30 Thread Michal Hocko
On Wed 30-11-16 03:53:20, Paul E. McKenney wrote: > On Wed, Nov 30, 2016 at 12:09:44PM +0100, Michal Hocko wrote: > > [CCing Paul] > > > > On Wed 30-11-16 11:28:34, Donald Buczek wrote: > > [...] > > > shrink_active_list gets and releases the spinlock and calls > > > cond_resched(). > > > This

Re: [PATCH] x86/boot: Fail the boot if !M486 and CPUID is missing

2016-11-30 Thread One Thousand Gnomes
> Rather than trying to work around these issues, just have the kernel > fail loudly if it's running on a CPUID-less 486, doesn't have CPUID, > and doesn't have CONFIG_M486 set. NAK This still breaks the Geode at the very least and I think the ELAN and some of the other older socket 7 devices.

[PATCH v2] ACPI / APEI: Fix NMI notification handling

2016-11-30 Thread Prarit Bhargava
When removing and adding cpu 0 on a system with GHES NMI the following stack trace is seen when re-adding the cpu: WARNING: CPU: 0 PID: 0 at arch/x86/kernel/apic/apic.c:1349 setup_local_APIC+ Modules linked in: nfsv3 rpcsec_gss_krb5 nfsv4 nfs fscache coretemp intel_ra CPU: 0 PID: 0 Comm:

Add openrisc for-next branch to linux-next

2016-11-30 Thread Stafford Horne
Hi Stephen, I have been working on getting the OpenRISC backlog of fixes sorted out for upstream. Can this branch be added to linux-next? git://github.com/openrisc/linux.git for-next These have been through a few reviews and we plan to ask Linus to pull in the next merge window.

Re: [PATCH 1/1] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-11-30 Thread Russell King - ARM Linux
On Wed, Nov 30, 2016 at 04:10:28PM +0530, Maninder Singh wrote: > variable name can have Non NULL terminated string after cropping > which may result strcat to fail, and cropping is not > required if (strlen(oh->name) + 8 < MOD_CLK_MAX_NAME_LEN). > > Issue caught with static analysis tool: >

Re: [PATCH] IIO: Change msleep to usleep_range for small msecs

2016-11-30 Thread Lars-Peter Clausen
On 11/27/2016 11:51 AM, Jonathan Cameron wrote: > On 26/11/16 03:47, Aniroop Mathur wrote: >> msleep(1~20) may not do what the caller intends, and will often sleep longer. >> (~20 ms actual sleep for any value given in the 1~20ms range) >> This is not the desired behaviour for many cases like

Re: [PATCH 00/11] locking/ww_mutex: Keep sorted wait list to avoid stampedes

2016-11-30 Thread Nicolai Hähnle
On 30.11.2016 13:20, Chris Wilson wrote: On Wed, Nov 30, 2016 at 12:52:28PM +0100, Nicolai Hähnle wrote: On 30.11.2016 10:40, Chris Wilson wrote: On Mon, Nov 28, 2016 at 01:20:01PM +0100, Nicolai Hähnle wrote: I've included timings taken from a contention-heavy stress test to some of the

Re: [PATCH] IIO: Change msleep to usleep_range for small msecs

2016-11-30 Thread Linus Walleij
On Sun, Nov 27, 2016 at 11:51 AM, Jonathan Cameron wrote: > On 26/11/16 03:47, Aniroop Mathur wrote: [bmp280.c] >> /* Wait to make sure we started up properly */ >> - mdelay(data->start_up_time); >> + usleep_range(data->start_up_time, data->start_up_time + 100);

Re: [patch V2 00/12] thermal/x86_pkg_temp: Sanitize hotplug and locking

2016-11-30 Thread Zhang Rui
On Tue, 2016-11-22 at 12:51 -0700, Pandruvada, Srinivas wrote: > On Tue, 2016-11-22 at 17:57 +, Thomas Gleixner wrote: > > > > Changes vs. V1: Fix the package removal wreckage reported by > > Srinivas > > > I haven't looked at individual patch but tested the series as a > whole.  > > So

Re: [PATCH 2/2] Synopsys USB 2.0 Device Controller (UDC) Driver

2016-11-30 Thread Raviteja Garimella
Hi Balbi, On Wed, Nov 30, 2016 at 4:10 PM, Felipe Balbi wrote: > > Hi, > > Raviteja Garimella writes: >> This is driver for Synopsys Designware Cores USB Device >> Controller (UDC) Subsystem with the AMBA Advanced High-Performance >> Bus (AHB).

Re: [PATCH] watchdog: meson: Remove unneeded platform MODULE_ALIAS

2016-11-30 Thread Javier Martinez Canillas
Hello Guenter, On 11/30/2016 07:59 AM, Guenter Roeck wrote: > On 11/29/2016 06:57 AM, Javier Martinez Canillas wrote: >> Hello Wim, >> >> On 10/20/2016 07:28 PM, Guenter Roeck wrote: >>> On Wed, Oct 19, 2016 at 04:49:42PM -0300, Javier Martinez Canillas wrote: The Amlogic Meson is a DT-only

Re: [PATCH 2/2] Synopsys USB 2.0 Device Controller (UDC) Driver

2016-11-30 Thread Felipe Balbi
Hi, Raviteja Garimella writes: > Hi Balbi, > > On Wed, Nov 30, 2016 at 4:10 PM, Felipe Balbi wrote: >> >> Hi, >> >> Raviteja Garimella writes: >>> This is driver for Synopsys Designware Cores USB Device >>>

Re: [PATCH v3] Documentation: pinctrl: palmas: Add ti,palmas-powerhold-override property definition

2016-11-30 Thread Linus Walleij
On Mon, Nov 28, 2016 at 5:01 AM, Keerthy wrote: > GPIO7 is configured in POWERHOLD mode which has higher priority > over DEV_ON bit and keeps the PMIC supplies on even after the DEV_ON > bit is turned off. This property enables driver to over ride the > POWERHOLD value to GPIO7

Re: [PATCH v2 2/3] pinctrl: New driver for TI DA850/OMAP-L138/AM18XX pinconf

2016-11-30 Thread Linus Walleij
On Mon, Nov 28, 2016 at 5:40 PM, David Lechner wrote: > This adds a new driver for pinconf on TI DA850/OMAP-L138/AM18XX. These > SoCs have a separate controller for controlling pullup/pulldown groups. > > Signed-off-by: David Lechner > Reviewed-by:

Re: PROBLEM-PERSISTS: dmesg spam: alloc_contig_range: [XX, YY) PFNs busy

2016-11-30 Thread Michal Nazarewicz
On Wed, Nov 30 2016, Michal Hocko wrote: > [Let's CC linux-mm and Michal] > > On Tue 29-11-16 22:43:08, Robin H. Johnson wrote: >> I didn't get any responses to this. >> >> git bisect shows that the problem did actually exist in 4.5.0-rc6, but >> has gotten worse by many orders of magnitude (<

Re: [PATCH net] vhost_net: don't continue to call the recvmsg when meet errors

2016-11-30 Thread Jason Wang
On 2016年11月30日 20:10, Yunjian Wang wrote: When we meet an error(err=-EBADFD) recvmsg, the error handling in vhost handle_rx() will continue. This will cause a soft CPU lockup in vhost thread. Signed-off-by: Yunjian Wang --- drivers/vhost/net.c | 3 +++ 1 file

Re: [PATCH] mmc: pwrseq: add support for Marvell SD8787 chip

2016-11-30 Thread Javier Martinez Canillas
Hello Matt, On Tue, Nov 29, 2016 at 10:20 PM, Matt Ranostay wrote: > On Tue, Nov 29, 2016 at 9:13 AM, Javier Martinez Canillas [snip] > > >>> +- pwndn-gpio: contains a power down GPIO specifier. >>> +- reset-gpio: contains a reset GPIO specifier. >>> + >> >> I wonder

Re: [PATCHv5 22/36] mm, hugetlb: switch hugetlbfs to multi-order radix-tree entries

2016-11-30 Thread Kirill A. Shutemov
On Wed, Nov 30, 2016 at 05:48:05PM +0800, Hillf Danton wrote: > On Tuesday, November 29, 2016 7:23 PM Kirill A. Shutemov wrote: > > @@ -607,10 +605,10 @@ static long hugetlbfs_fallocate(struct file *file, > > int mode, loff_t offset, > > } > > > > /* Set numa allocation

Re: PROBLEM-PERSISTS: dmesg spam: alloc_contig_range: [XX, YY) PFNs busy

2016-11-30 Thread Michal Hocko
On Wed 30-11-16 14:08:00, Michal Nazarewicz wrote: > On Wed, Nov 30 2016, Michal Hocko wrote: > > [Let's CC linux-mm and Michal] > > > > On Tue 29-11-16 22:43:08, Robin H. Johnson wrote: > >> I didn't get any responses to this. > >> > >> git bisect shows that the problem did actually exist in

Re: [PATCH net] vhost_net: don't continue to call the recvmsg when meet errors

2016-11-30 Thread Michael S. Tsirkin
On Wed, Nov 30, 2016 at 08:10:57PM +0800, Yunjian Wang wrote: > When we meet an error(err=-EBADFD) recvmsg, How do you get EBADFD? Won't vhost_net_rx_peek_head_len return 0 in this case, breaking the loop? > the error handling in vhost > handle_rx() will continue. This will cause a soft CPU

Re: [PATCH 1/1] usb: return error code when platform_get_irq fails

2016-11-30 Thread Matthias Brugger
On 29/11/16 13:57, Pan Bian wrote: In function xhci_mtk_probe(), variable ret takes the return value. Its value should be negative on failures. However, when the call to function platform_get_irq() fails, it does not set the error code, and 0 will be returned. 0 indicates no error. As a

Re: [PATCH 07/13] Input: synaptics-rmi4 - add support for F03

2016-11-30 Thread Dmitry Torokhov
Hi Benjamin, On Tue, Nov 29, 2016 at 11:08:18AM +0100, Benjamin Tissoires wrote: > From: Lyude Paul > > This adds basic functionality for PS/2 passthrough on Synaptics > Touchpads using RMI4 through smbus. > > Reviewed-by: Andrew Duggan >

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

2016-11-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/cadence/macb.c between commit: a0b44eea372b ("net: macb: fix the RX queue reset in macb_rx()") from the net tree and commit: b410d13e10db ("net: macb: Use variables with defaults for tx/rx

linux-next: manual merge of the net-next tree with the arm-soc tree

2016-11-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: arch/arm64/boot/dts/broadcom/ns2.dtsi between commit: e79249143f46 ("arm64: dts: Add Broadcom Northstar2 device tree entries for PDC driver.") from the arm-soc tree and commit: dddc3c9d7d02 ("arm64: dts: NS2: add

Re: linux-next: build warning after merge of the kbuild tree

2016-11-30 Thread Nicholas Piggin
On Thu, 1 Dec 2016 10:06:08 +1100 Stephen Rothwell wrote: > Hi Michal, > > After merging the kbuild tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > WARNING: EXPORT symbol "__sw_hweight32" [vmlinux] version generation failed, > symbol

Re: [RFC][PATCHv4 4/6] printk: report lost messages in printk safe/nmi contexts

2016-11-30 Thread Sergey Senozhatsky
On (11/25/16 12:07), Petr Mladek wrote: [..] > > +static void report_message_lost(atomic_t *num_lost, char *fmt) > > +{ > > + int lost = atomic_xchg(num_lost, 0); > > + > > + if (lost) { > > + char msg[56]; > > I would really like to avoid a hard coded buffer size. Such things > are

Re: [RFC][PATCHv4 6/6] printk: remove zap_locks() function

2016-11-30 Thread Sergey Senozhatsky
On (11/25/16 16:17), Peter Zijlstra wrote: > On Fri, Nov 25, 2016 at 04:01:13PM +0100, Petr Mladek wrote: > > On Fri 2016-10-28 00:49:33, Sergey Senozhatsky wrote: > > > 2) Since commit cf9b1106c81c ("printk/nmi: flush NMI messages on the > > >system panic") panic attempts to zap the

Re: [PATCH 4/7] time: alarmtimer: Add the tracepoints for alarmtimer

2016-11-30 Thread Baolin Wang
On 29 November 2016 at 20:06, Thomas Gleixner wrote: > On Mon, 28 Nov 2016, John Stultz wrote: > >> From: Baolin Wang >> >> For system debugging, we sometimes want to know who sets one >> alarm timer, the time of the timer, when the timer started and

Re: linker-tables v5 testing

2016-11-30 Thread Nicholas Piggin
On Wed, 30 Nov 2016 18:38:16 +0100 "Luis R. Rodriguez" wrote: > On Wed, Nov 30, 2016 at 02:09:47PM +1100, Nicholas Piggin wrote: > > On Wed, 30 Nov 2016 02:33:49 +0100 > > "Luis R. Rodriguez" wrote: > > > > > On Thu, Nov 24, 2016 at 08:18:40AM -0800,

[PATCH 1/1] block: nbd: fix bugs in nbd_init

2016-11-30 Thread Pan Bian
Fix bug https://bugzilla.kernel.org/show_bug.cgi?id=188441. Fix 3 bugs in function nbd_init: (1) set error code (-ENOMEM) when the call to alloc_disk() fails; (2) function blk_mq_init_queue() returns an ERR_PTR pointer rather than NULL on failures, so use IS_ERR to check the return value; (3) set

[PATCH 1/1] block: rsxx: set error code on exception path

2016-11-30 Thread Pan Bian
Fix bug https://bugzilla.kernel.org/show_bug.cgi?id=188541. In function rsxx_pci_probe(), variable st takes the return value. Its value should be negative on failures. However, the value of st is 0 even if the call to create_singlethread_workqueue() returns a NULL pointer. This patch fixes the bug

Re: [PATCHv5 22/36] mm, hugetlb: switch hugetlbfs to multi-order radix-tree entries

2016-11-30 Thread Hillf Danton
On Wednesday, November 30, 2016 9:16 PM Kirill A. Shutemov wrote: > On Wed, Nov 30, 2016 at 05:48:05PM +0800, Hillf Danton wrote: > > On Tuesday, November 29, 2016 7:23 PM Kirill A. Shutemov wrote: > > > @@ -607,10 +605,10 @@ static long hugetlbfs_fallocate(struct file *file, > > > int mode,

Re: [PATCH net] vhost_net: don't continue to call the recvmsg when meet errors

2016-11-30 Thread Jason Wang
On 2016年12月01日 11:27, Michael S. Tsirkin wrote: On Thu, Dec 01, 2016 at 11:26:21AM +0800, Jason Wang wrote: > > >On 2016年12月01日 11:21, Michael S. Tsirkin wrote: > >On Thu, Dec 01, 2016 at 02:48:59AM +, wangyunjian wrote: > > > >-Original Message- > > > >From: Michael S. Tsirkin

[PATCH v2 1/2] mmc: sdhci: continue normal tuning if unsupported by platform tuning

2016-11-30 Thread Masahiro Yamada
Some SDHCI-compat controllers support not only SD, but also eMMC, but they use different commands for tuning: CMD19 for SD, CMD21 for eMMC. Due to the difference of the underlying mechanism, some controllers (at least, the Cadence IP is the case) provide their own registers for the eMMC tuning.

Re: linker-tables v5 testing

2016-11-30 Thread Nicholas Piggin
On Thu, 1 Dec 2016 16:04:30 +1100 Nicholas Piggin wrote: > On Wed, 30 Nov 2016 19:15:27 -0800 > "Luis R. Rodriguez" wrote: > > > On Wed, Nov 30, 2016 at 6:51 PM, Nicholas Piggin wrote: > > > On Wed, 30 Nov 2016 18:38:16 +0100 > > >

Re: [PATCH v3 3/5] KVM: nVMX: fix checks on CR{0,4} during virtual VMX operation

2016-11-30 Thread Paolo Bonzini
- Original Message - > From: "Radim Krčmář" > To: "David Matlack" > Cc: k...@vger.kernel.org, linux-kernel@vger.kernel.org, jmatt...@google.com, > pbonz...@redhat.com > Sent: Wednesday, November 30, 2016 10:52:35 PM > Subject: Re: [PATCH v3

linux-next: problems fetching the drm-intel, etc trees

2016-11-30 Thread Stephen Rothwell
Hi all, There is something seriaously wrong with anongit.freedesktop.org this morning. Fething trees from there takes an enormous amount of time - so long that I had to abort the fetches ... -- Cheers, Stephen Rothwell

[PATCH 2/2] net: ethernet: altera: TSE: do not use tx queue lock in tx completion handler

2016-11-30 Thread Lino Sanfilippo
The driver already uses its private lock for synchronization between xmit and xmit completion handler making the additional use of the xmit_lock unnecessary. Furthermore the driver does not set NETIF_F_LLTX resulting in xmit to be called with the xmit_lock held and then taking the private lock

[PATCH net-next 3/6] net: dsa: mv88e6xxx: add a software reset op

2016-11-30 Thread Vivien Didelot
Marvell chips have different way to issue a software reset. Old chips (such as 88E6060) have a reset bit in an ATU control register. Newer chips moved this bit in a Global control register. Chips with controllable PPU should reset the PPU when resetting the switch. Add a new reset operation to

[PATCH net-next 2/6] net: dsa: mv88e6xxx: add helper to hardware reset

2016-11-30 Thread Vivien Didelot
Add an helper to toggle the eventual GPIO connected to the reset pin. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git

Re: [PATCH 4.4 00/21] 4.4.36-stable review

2016-11-30 Thread Guenter Roeck
On Wed, Nov 30, 2016 at 10:27:16AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.36 release. > There are 21 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH] crypto: arm/aesbs - Select SIMD in Kconfig

2016-11-30 Thread Arnd Bergmann
Commit 585b5fa63da9 ("crypto: arm/aes - Select SIMD in Kconfig") added the dependency for CRYPTO_AES_ARM_CE, but missed the same change for CRYPTO_AES_ARM_BS: arch/arm/crypto/aes-arm-bs.o: In function `aesbs_mod_init': aesbs-glue.c:(.init.text+0x38): undefined reference to

[PATCH v3] PCI/ACPI: xgene: Add ECAM quirk for X-Gene PCIe controller

2016-11-30 Thread Duc Dang
PCIe controllers in X-Gene SoCs is not ECAM compliant: software needs to configure additional controller's register to address device at bus:dev:function. The quirk will only be applied for X-Gene PCIe MCFG table with OEM revison 1, 2, 3 or 4 (PCIe controller v1 and v2 on X-Gene SoCs). The quirk

Re: [PATCH V1 1/2] PCI: thunder: Enable ACPI PCI controller for ThunderX pass2.x silicon version

2016-11-30 Thread Bjorn Helgaas
Hi Tomasz, On Tue, Nov 15, 2016 at 10:14:57AM +0100, Tomasz Nowicki wrote: > ThunderX PCIe controller to off-chip devices (so-called PEM) is not fully > compliant with ECAM standard. It uses non-standard configuration space > accessors (see pci_thunder_pem_ops) and custom configuration space

Re: [RESEND PATCH] pinctrl: mt8173: set GPIO16 to usb iddig mode

2016-11-30 Thread Hongzhou Yang
On Wed, 2016-11-30 at 10:21 +0800, Chunfeng Yun wrote: > the default mode of GPIO16 pin is gpio, when set EINT16 to > IRQ_TYPE_LEVEL_HIGH, no interrupt is triggered, it can be > fixed when set its default mode as usb iddig. > > Signed-off-by: Chunfeng Yun > --- >

Re: [PATCH 9/9] arm64: Documentation - Expose CPU feature registers

2016-11-30 Thread Suzuki K Poulose
On 30/11/16 11:14, Siddhesh Poyarekar wrote: On Thursday 24 November 2016 07:10 PM, Suzuki K Poulose wrote: + d) CPU Identification : +MIDR_EL1 is exposed to help identify the processor. On a +heterogeneous system, this could be racy (just like getcpu()). The +process could be

RE: CPU stall with TP-Link wifi PCIe card

2016-11-30 Thread Bharat Kumar Gogada
After further debugging found that irq_enable is not being invoked by kernel in kernel/irq/chip.c after the few interrupts when we do wlan scan. In ARM64, when an interrupt arises who invokes irq_disable(struct irq_desc *desc)/irq_enable(struct irq_desc *desc) functions. >From my debugging

Re: [RFC][PATCHv4 2/6] printk: rename nmi.c and exported api

2016-11-30 Thread Sergey Senozhatsky
On (11/24/16 17:35), Petr Mladek wrote: [..] > > #ifdef CONFIG_PRINTK_NMI > > -extern void printk_nmi_init(void); > > -extern void printk_nmi_enter(void); > > -extern void printk_nmi_exit(void); > > -extern void printk_nmi_flush(void); > > -extern void printk_nmi_flush_on_panic(void); > > +extern

[PATCH v8 09/10] ima: define a canonical binary_runtime_measurements list format

2016-11-30 Thread Mimi Zohar
The IMA binary_runtime_measurements list is currently in platform native format. To allow restoring a measurement list carried across kexec with a different endianness than the targeted kernel, this patch defines little-endian as the canonical format. For big endian systems wanting to

[PATCH v8 06/10] ima: on soft reboot, save the measurement list

2016-11-30 Thread Mimi Zohar
The TPM PCRs are only reset on a hard reboot. In order to validate a TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list of the running kernel must be saved and restored on boot. This patch uses the kexec buffer passing mechanism to pass the serialized IMA

[PATCH v8 10/10] ima: platform-independent hash value

2016-11-30 Thread Mimi Zohar
From: Andreas Steffen For remote attestion it is important for the ima measurement values to be platform-independent. Therefore integer fields to be hashed must be converted to canonical format. Changelog: - Define canonical format as little endian (Mimi)

[PATCH v8 08/10] ima: support restoring multiple template formats

2016-11-30 Thread Mimi Zohar
The configured IMA measurement list template format can be replaced at runtime on the boot command line, including a custom template format. This patch adds support for restoring a measuremement list containing multiple builtin/custom template formats. Changelog v7: - remove unnecessary

[PATCH v8 07/10] ima: store the builtin/custom template definitions in a list

2016-11-30 Thread Mimi Zohar
The builtin and single custom templates are currently stored in an array. In preparation for being able to restore a measurement list containing multiple builtin/custom templates, this patch stores the builtin and custom templates as a linked list. This will permit defining more than one custom

[PATCH v8 05/10] powerpc: ima: Send the kexec buffer to the next kernel

2016-11-30 Thread Mimi Zohar
From: Thiago Jung Bauermann The IMA kexec buffer allows the currently running kernel to pass the measurement list via a kexec segment to the kernel that will be kexec'd. This is the architecture-specific part of setting up the IMA kexec buffer for the next kernel.

Re: [RFC][PATCH 0/3] Try to connect hikey's usb phy to dwc2 driver

2016-11-30 Thread John Stultz
On Tue, Nov 22, 2016 at 7:46 PM, John Stultz wrote: > After earlier attempts[1] at submitting somewhat hackish fixes > to the dwc2 driver, I realized the core issue seemed to be the > overly simplistic phy driver. > > I've connected the phy-hi6220-usb.c driver to extcon so

[git pull] Input updates for 4.9-rc3

2016-11-30 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. We are disabling automatic probing of BYD touchpads as it results in too many false positives, and the hardware is not terribly popular and

[PATCH 1/1] block: mtip32xx: set error code on failure

2016-11-30 Thread Pan Bian
Fix bug https://bugzilla.kernel.org/show_bug.cgi?id=188531. In function mtip_block_initialize(), variable rv takes the return value, and its value should be negative on errors. rv is initialized as 0 and is not reset when the call to ida_pre_get() fails. So 0 may be returned. The return value 0

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