Re: [PATCH -next] pinctrl: fix build, PINCTRL_CYGNUS_MUX depends on OF

2016-07-22 Thread Ray Jui
rs/pinctrl/bcm/Kconfig |1 + 1 file changed, 1 insertion(+) --- linux-next-20160722.orig/drivers/pinctrl/bcm/Kconfig +++ linux-next-20160722/drivers/pinctrl/bcm/Kconfig @@ -60,6 +60,7 @@ config PINCTRL_IPROC_GPIO config PINCTRL_CYGNUS_MUX bool "Broadcom Cygnus IOMUX driver"

Re: [PATCH 2/3] x86: add some better documentation for probe_kernel_address()

2016-07-22 Thread Andy Lutomirski
On Jul 22, 2016 11:03 AM, "Dave Hansen" wrote: > > > From: Dave Hansen > > probe_kernel_address() has an unfortunate name since it is used > to probe kernel *and* userspace addresses. Add a comment > explaining some of the situation to help the next developer who > might make the silly assumptio

Re: [PATCH -next] pinctrl: fix build, PINCTRL_CYGNUS_MUX depends on OF

2016-07-22 Thread Randy Dunlap
t;> Cc: Ray Jui >> Cc: bcm-kernel-feedback-l...@broadcom.com >> Cc: linux-arm-ker...@lists.infradead.org >> Cc: Linus Walleij >> Cc: linux-g...@vger.kernel.org >> --- >> drivers/pinctrl/bcm/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >>

Re: [PATCH 2/3] x86: add some better documentation for probe_kernel_address()

2016-07-22 Thread Dave Hansen
On 07/22/2016 11:10 AM, Andy Lutomirski wrote: > On Jul 22, 2016 11:03 AM, "Dave Hansen" wrote: >> From: Dave Hansen >> >> probe_kernel_address() has an unfortunate name since it is used >> to probe kernel *and* userspace addresses. Add a comment >> explaining some of the situation to help the n

Re: [v6 PATCH 1/6] extcon: Add Type-C and DP support

2016-07-22 Thread Guenter Roeck
Hi, On Fri, Jul 22, 2016 at 2:29 AM, Chanwoo Choi wrote: > Hi Chris, > > I'm sorry for late reply. I finished the first draft to support the extcon > property. > You can check the patches[1]. But, I need more time to test it. After tested > it, > I'll send the patches. > > [1] > https://git.ke

Re: [PATCH resend v2 3/5] libata-scsi: use u8 array to store mode page copy

2016-07-22 Thread Tom Yan
Strange. I merely changed the two "char" to "u8". I wonder how the tab became spaces. Anyway, sorry about that, resending soon. On 22 July 2016 at 17:59, Sergei Shtylyov wrote: > Hello. > > > On 7/22/2016 2:29 AM, tom.t...@gmail.com wrote: > >> From: Tom Yan >> >> ata_mselect_*() would initializ

Re: [kernel-hardening] [PATCH v5 03/32] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-07-22 Thread Andy Lutomirski
On Fri, Jul 22, 2016 at 3:21 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> On 07/21/2016 09:43 PM, valdis.kletni...@vt.edu wrote: >> >On Mon, 11 Jul 2016 13:53:36 -0700, Andy Lutomirski said: >> >>This avoids pointless races in which another CPU or task might see a >> >>partially popul

Re: [PATCH 2/3] x86: add some better documentation for probe_kernel_address()

2016-07-22 Thread Andy Lutomirski
On Fri, Jul 22, 2016 at 11:18 AM, Dave Hansen wrote: > On 07/22/2016 11:10 AM, Andy Lutomirski wrote: >> On Jul 22, 2016 11:03 AM, "Dave Hansen" wrote: >>> From: Dave Hansen >>> >>> probe_kernel_address() has an unfortunate name since it is used >>> to probe kernel *and* userspace addresses. Ad

tigon tg3 firmware missing

2016-07-22 Thread David Niklas
Hello, My network driver does not crash like some have reported. I did an internet search for this and found that it is due to the firmware in kernel not being set. Isn't there a way for loading of the tg3 firmware without it needing to be builtin to the kernel? Please CC. Thanks, David -

Re: [PATCH V2 3/6] perf tools: add infrastructure for PMU specific configuration

2016-07-22 Thread Mathieu Poirier
On 21 July 2016 at 08:54, Jiri Olsa wrote: > On Thu, Jul 21, 2016 at 08:44:53AM -0600, Mathieu Poirier wrote: > > SNIP > >> >> diff --git a/tools/perf/util/parse-events.l >> >> b/tools/perf/util/parse-events.l >> >> index 7a2519435da0..1f7e11a6c5b3 100644 >> >> --- a/tools/perf/util/parse-events.

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-22 Thread Andrey Vagin
On Thu, Jul 21, 2016 at 11:48 PM, Michael Kerrisk (man-pages) wrote: > Hi Andrey, > > > On 07/21/2016 11:06 PM, Andrew Vagin wrote: >> >> On Thu, Jul 21, 2016 at 04:41:12PM +0200, Michael Kerrisk (man-pages) >> wrote: >>> >>> Hi Andrey, >>> >>> On 07/14/2016 08:20 PM, Andrey Vagin wrote: >> >> >>

Re: [RFC] Avoid mutex starvation when optimistic spinning is disabled

2016-07-22 Thread Imre Deak
On Fri, 2016-07-22 at 11:03 -0700, Davidlohr Bueso wrote: > On Fri, 22 Jul 2016, Waiman Long wrote: > > > I think making mutex_trylock() fail maybe a bit too far. Do we > > really > > have any real workload that cause starvation problem  because of > > that. > > Code that does mutex_trylock() in

Adding linux-sh (arch/sh) to linux-next

2016-07-22 Thread Rich Felker
Hi Stephen, Can you please add the linux-sh tree's for-next branch to be pulled for linux-next? git://git.libc.org/linux-sh for-next Let me know if anything's wrong with how it's set up. I'm new to linux-next (and still fairly new to arch maintainership) so apologies if I missed anything

Re: [PATCH v3 3/8] Input: synaptics-rmi4: Add dribble and palm gesture parameters to device tree

2016-07-22 Thread Andrew Duggan
On 07/22/2016 09:52 AM, Dmitry Torokhov wrote: On Wed, Jul 13, 2016 at 11:08:42PM -0700, Andrew Duggan wrote: Signed-off-by: Andrew Duggan --- This version includes Nick's suggestion of adding force to the device tree parameters so make it obvious that these parameters overwrite the default val

[PATCH resend v3 3/5] libata-scsi: use u8 array to store mode page copy

2016-07-22 Thread tom . ty89
From: Tom Yan ata_mselect_*() would initialize a char array for storing a copy of the current mode page. However, char could be signed char. In that case, bytes larger than 127 would be converted to negative number. For example, 0xff from def_control_mpage[] would become -1. This prevented ata_m

Re: [kernel-hardening] [PATCH v5 03/32] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-07-22 Thread Andy Lutomirski
On Fri, Jul 22, 2016 at 11:21 AM, Andy Lutomirski wrote: > On Fri, Jul 22, 2016 at 3:21 AM, Ingo Molnar wrote: >> >> * Andy Lutomirski wrote: >> >>> On 07/21/2016 09:43 PM, valdis.kletni...@vt.edu wrote: >>> >On Mon, 11 Jul 2016 13:53:36 -0700, Andy Lutomirski said: >>> >>This avoids pointless r

Re: [RFC] Avoid mutex starvation when optimistic spinning is disabled

2016-07-22 Thread Jason Low
On Fri, 2016-07-22 at 12:34 +0300, Imre Deak wrote: > On to, 2016-07-21 at 15:29 -0700, Jason Low wrote: > > On Wed, 2016-07-20 at 14:37 -0400, Waiman Long wrote: > > > On 07/20/2016 12:39 AM, Jason Low wrote: > > > > On Tue, 2016-07-19 at 16:04 -0700, Jason Low wrote: > > > > > Hi Imre, > > > > >

Re: [PATCH v2 00/10] userns: sysctl limits for namespaces

2016-07-22 Thread Eric W. Biederman
Colin Walters writes: > On Thu, Jul 21, 2016, at 12:39 PM, Eric W. Biederman wrote: >> >> This patchset addresses two use cases: >> - Implement a sane upper bound on the number of namespaces. >> - Provide a way for sandboxes to limit the attack surface from >> namespaces. > > Perhaps this is o

Re: linux-next: error fetching the y2038 tree

2016-07-22 Thread Arnd Bergmann
On Friday, July 22, 2016 10:01:59 AM CEST Stephen Rothwell wrote: > Hi Arnd, > > Fetching the y2038 > (git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git#y2038) > this morning produces this error: > > fatal: Couldn't find remote ref refs/heads/y2038 > > I am still using the last v

[PATCH v2] [media] Documentation: Fix V4L2_CTRL_FLAG_VOLATILE

2016-07-22 Thread Ricardo Ribalda Delgado
V4L2_CTRL_FLAG_VOLATILE behaviour when V4L2_CTRL_FLAG_EXECUTE_ON_WRITE is set was not properly explained. Also set some hyperlink to ease the Documentation browsing. Reported-by: Dimitrios Katsaros Credit-to: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- v2: By Hans Verkuil -Fix so

Re: [PATCH RFC] coccinelle: tests: if and else branch should probably not be identical

2016-07-22 Thread Nicholas Mc Guire
On Fri, Jul 22, 2016 at 06:56:47PM +0200, Julia Lawall wrote: > > +virtual context > > +virtual org > > +virtual report > > + > > +@cond@ > > +statement S1; > > +position p; > > +@@ > > + > > +<+... > > +* if@p (...) S1 else S1 > > +...+> > > You don't need the <+... ...+>. Just put the if by its

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-22 Thread Josh Poimboeuf
On Fri, Jul 22, 2016 at 11:37:39AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 21, 2016 at 10:41:18PM -0500, Josh Poimboeuf escreveu: > > On Fri, Jul 22, 2016 at 09:23:02AM +1000, Stephen Rothwell wrote: > > > It just looks like objtool was not written with cross compilation in > > > mind?

[PATCH] block: Delete an unnecessary check before the function call "kmem_cache_destroy"

2016-07-22 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 22 Jul 2016 21:07:37 +0200 The kmem_cache_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH v4 00/12] allow BFLT executables on systems with a MMU

2016-07-22 Thread Russell King - ARM Linux
On Fri, Jul 22, 2016 at 05:28:13PM +1000, Greg Ungerer wrote: > On 22/07/16 00:48, Nicolas Pitre wrote: > > On Thu, 21 Jul 2016, Greg Ungerer wrote: > >> Hi Nicolas, > >> > >> On 21/07/16 05:22, Nicolas Pitre wrote: > >>> This series provides the necessary changes to allow "flat" executable > >>> b

Re: [PATCH] Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

2016-07-22 Thread Linda Knippers
On 7/22/2016 11:36 AM, Viresh Kumar wrote: > On 22-07-16, 17:14, Andreas Herrmann wrote: >> diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c >> index a7ecb9a..3f0ce2a 100644 >> --- a/drivers/cpufreq/pcc-cpufreq.c >> +++ b/drivers/cpufreq/pcc-cpufreq.c >> @@ -555,8 +555,6

Re: [PATCH v2 3/4] drivers: reset: Add STM32 reset driver

2016-07-22 Thread Arnd Bergmann
On Thursday, July 21, 2016 7:16:02 PM CEST Paul Gortmaker wrote: > > > ...we probably don't need module.h here or any of the other > > > MODULE_ tags/macros either. Use the builtin for the > > > register and all should be good. > > > > I wonder if we should have separate symbols for each reset d

Re: [RFC] Avoid mutex starvation when optimistic spinning is disabled

2016-07-22 Thread Davidlohr Bueso
On Fri, 22 Jul 2016, Imre Deak wrote: On Fri, 2016-07-22 at 11:03 -0700, Davidlohr Bueso wrote: On Fri, 22 Jul 2016, Waiman Long wrote: > I think making mutex_trylock() fail maybe a bit too far. Do we > really > have any real workload that cause starvation problem  because of > that. > Code th

Re: [PATCH v2 2/2] Input: synaptics-rmi4 - add support for F34 device reflash

2016-07-22 Thread Andrew Duggan
Hi Nick, Here are some initial comments on your firmware update patch. The biggest issue I noticed is that this driver only supports F43 version 0. RMI functions can actually have different versions of functions with different register layouts. Our newer devices use F34 version 1. The functio

Re: linux-next: Tree for Jul 22

2016-07-22 Thread Paul Gortmaker
. Fix definition of struct input_device_id in mod_devicetable.h make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error 2 make: *** [sub-make] Error 2 paul@builder:~/git/linux-head$ git describe next-20160722 Nothing has touched drivers/input/evbug.c for years... Paul. -- > > ---

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-22 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 22, 2016 at 02:19:20PM -0500, Josh Poimboeuf escreveu: > On Fri, Jul 22, 2016 at 11:37:39AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Jul 21, 2016 at 10:41:18PM -0500, Josh Poimboeuf escreveu: > > > On Fri, Jul 22, 2016 at 09:23:02AM +1000, Stephen Rothwell wrote: > > > > It ju

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-22 Thread Josh Poimboeuf
On Fri, Jul 22, 2016 at 04:36:55PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jul 22, 2016 at 02:19:20PM -0500, Josh Poimboeuf escreveu: > > On Fri, Jul 22, 2016 at 11:37:39AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Thu, Jul 21, 2016 at 10:41:18PM -0500, Josh Poimboeuf escreveu: > > >

Re: [RFC PATCH 1/2] mempool: do not consume memory reserves from the reclaim path

2016-07-22 Thread Andrew Morton
On Fri, 22 Jul 2016 14:26:19 +0200 Vlastimil Babka wrote: > On 07/22/2016 08:37 AM, Michal Hocko wrote: > > On Thu 21-07-16 16:53:09, Michal Hocko wrote: > >> From d64815758c212643cc1750774e2751721685059a Mon Sep 17 00:00:00 2001 > >> From: Michal Hocko > >> Date: Thu, 21 Jul 2016 16:40:59 +0200

Re: [PATCH v4 00/12] allow BFLT executables on systems with a MMU

2016-07-22 Thread Nicolas Pitre
On Fri, 22 Jul 2016, Russell King - ARM Linux wrote: > On Fri, Jul 22, 2016 at 05:28:13PM +1000, Greg Ungerer wrote: > > On 22/07/16 00:48, Nicolas Pitre wrote: > > > On Thu, 21 Jul 2016, Greg Ungerer wrote: > > >> Hi Nicolas, > > >> > > >> On 21/07/16 05:22, Nicolas Pitre wrote: > > >>> This seri

Re: [PATCH 2/3] staging/rtl8192e: use s8 instead of char

2016-07-22 Thread Arnd Bergmann
On Friday, July 22, 2016 7:55:36 AM CEST Jes Sorensen wrote: > Stefan Lippers-Hollmann writes: > > Hi > > > > On 2016-07-20, Arnd Bergmann wrote: > >> On Wednesday, July 20, 2016 11:33:43 AM CEST Jes Sorensen wrote: > >> > Arnd Bergmann writes: > >> > > On Wednesday, July 20, 2016 7:25:19 AM CE

[PATCH] sched/core: add taint on "BUG: sleeping function called from invalid context"

2016-07-22 Thread Vegard Nossum
Seeing this, it occurs to me that we should probably add a taint here: BUG: sleeping function called from invalid context at mm/slab.h:388 in_atomic(): 0, irqs_disabled(): 0, pid: 32211, name: trinity-c3 Preemption disabled at:[] console_unlock+0x2f7/0x930 CPU: 3 PID: 32211 Comm:

[PATCH] block: Delete unnecessary checks before the function call "mempool_destroy"

2016-07-22 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 22 Jul 2016 21:45:26 +0200 The mempool_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [RFC] Avoid mutex starvation when optimistic spinning is disabled

2016-07-22 Thread Imre Deak
On Fri, 2016-07-22 at 12:26 -0700, Davidlohr Bueso wrote: > On Fri, 22 Jul 2016, Imre Deak wrote: > > > On Fri, 2016-07-22 at 11:03 -0700, Davidlohr Bueso wrote: > > > On Fri, 22 Jul 2016, Waiman Long wrote: > > > > > > > I think making mutex_trylock() fail maybe a bit too far. Do we > > > > real

[GIT PULL] overlayfs fixes for 4.7-final

2016-07-22 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-linus This contains a fix for a potential crash/corruption issue and another where the suid/sgid bits weren't cleared on write. Thanks, Miklos --- Maxim Patlasov (1): ovl: verify upper

Re: [PATCH] of: fdt: mark unflattened tree as detached

2016-07-22 Thread Rob Herring
On Mon, Jul 18, 2016 at 5:01 PM, Michal Suchanek wrote: > The tree returned from of_fdt_unflatten_tree cannot be attached to the > live tree because it is not marked as detached so mark it as such. The > dt resolver checks the flag and refuses to process the tree otherwise. > > Signed-off-by: Mich

Re: [PATCH] [media] vb2: move dma-buf unmap from __vb2_dqbuf() to vb2_buffer_done()

2016-07-22 Thread Luis de Bethencourt
On 20/07/16 19:22, Javier Martinez Canillas wrote: > Currently the dma-buf is unmapped when the buffer is dequeued by userspace > but it's not used anymore after the driver finished processing the buffer. > > So instead of doing the dma-buf unmapping in __vb2_dqbuf(), it can be made > in vb2_buffe

Re: [PATCH V2 4/6] perf tools: pushing driver configuration down to the kernel

2016-07-22 Thread Mathieu Poirier
On 21 July 2016 at 01:47, Jiri Olsa wrote: > On Wed, Jul 20, 2016 at 02:38:18PM -0600, Mathieu Poirier wrote: >> Now that PMU specific driver configuration are queued in >> evsel::drv_config_terms, all we need to do is re-use the current >> ioctl() mechanism to push down the information to the ker

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-22 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 22, 2016 at 02:44:17PM -0500, Josh Poimboeuf escreveu: > On Fri, Jul 22, 2016 at 04:36:55PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Fri, Jul 22, 2016 at 02:19:20PM -0500, Josh Poimboeuf escreveu: > > > On Fri, Jul 22, 2016 at 11:37:39AM -0300, Arnaldo Carvalho de Melo wrote: > > >

Re: [PATCH v3] of: fix memory leak related to safe_name()

2016-07-22 Thread Rob Herring
On Wed, Jul 20, 2016 at 1:03 AM, Mathieu Malaterre wrote: > On Fri, Jun 24, 2016 at 10:38 PM, Rob Herring wrote: >> On Fri, Jun 17, 2016 at 2:51 AM, Mathieu Malaterre >> wrote: >>> v3 tested here multiple times ! memleak is now gone. >>> >>> Tested-by: Mathieu Malaterre >>> >>> Thanks >>> >>> O

[tip:smp/hotplug] leds/trigger/cpu: Move from CPU_STARTING to ONLINE level

2016-07-22 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: cd894f149732a06ba4b2ccdc4cb86edf7ff68620 Gitweb: http://git.kernel.org/tip/cd894f149732a06ba4b2ccdc4cb86edf7ff68620 Author: Sebastian Andrzej Siewior AuthorDate: Wed, 20 Jul 2016 17:24:55 +0200 Committer: Thomas Gleixner CommitDate: Fri, 22 Jul 2016 21:53:18 +0200 leds/trigg

[tip:smp/hotplug] powerpc/numa: Convert to hotplug state machine

2016-07-22 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: bdab88e006504cd83fac98705814485cbe3ef5b4 Gitweb: http://git.kernel.org/tip/bdab88e006504cd83fac98705814485cbe3ef5b4 Author: Sebastian Andrzej Siewior AuthorDate: Mon, 18 Jul 2016 16:07:28 +0200 Committer: Thomas Gleixner CommitDate: Fri, 22 Jul 2016 21:53:17 +0200 powerpc/nu

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

2016-07-22 Thread tip-bot for Boris Ostrovsky
Commit-ID: 484afa6961eb9409ea120b38397e6883696d8aa6 Gitweb: http://git.kernel.org/tip/484afa6961eb9409ea120b38397e6883696d8aa6 Author: Boris Ostrovsky AuthorDate: Thu, 17 Mar 2016 09:33:33 -0400 Committer: Thomas Gleixner CommitDate: Fri, 22 Jul 2016 21:53:18 +0200 hotplug: Prevent all

[tip:smp/hotplug] xen/x86: Move irq allocation from Xen smp_op.cpu_up()

2016-07-22 Thread tip-bot for Boris Ostrovsky
Commit-ID: 4c90758355117d2b6343ec6d0d37e10842ede11f Gitweb: http://git.kernel.org/tip/4c90758355117d2b6343ec6d0d37e10842ede11f Author: Boris Ostrovsky AuthorDate: Thu, 17 Mar 2016 09:33:32 -0400 Committer: Thomas Gleixner CommitDate: Fri, 22 Jul 2016 21:53:18 +0200 xen/x86: Move irq al

Re: [PATCH V2] ARM: BCM5301X: Specify PHY of USB 2.0 in DT

2016-07-22 Thread Florian Fainelli
On 06/01/2016 01:07 PM, Rafał Miłecki wrote: > Driver for Northstar USB 2.0 PHY was added in 4.7-rc1 by: > commit d3feb4067335 ("phy: bcm-ns-usb2: new driver for USB 2.0 PHY on > Northstar"). > It should be used to let EHCI platform driver init PHY. > > Signed-off-by: Rafał Miłecki Applied, than

[PATCH] dell-wmi: Add events created by Dell Rugged 2-in-1s

2016-07-22 Thread Mario Limonciello
The Dell Rugged 7202 has 3 programmable buttons (labeled P1, P2, P3) and a detachable magnetic keyboard/mouse. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x

Re: [kernel-hardening] [PATCH v5 03/32] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-07-22 Thread Ingo Molnar
* Andy Lutomirski wrote: > This garbage (as evidenced by my bug and my failed attempt to fix it) > only works if you never have a low-level page table that isn't linked > into a higher-level page table, and it mostly requires you to do > everything exactly the way it was originally done so all t

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-22 Thread Andrew Morton
On Fri, 22 Jul 2016 10:57:48 +0800 Xishi Qiu wrote: > Memory offline could happen on both movable zone and non-movable zone. > We can offline the whole node if the zone is movable zone, and if the > zone is non-movable zone, we cannot offline the whole node, because > some kernel memory can't be

Re: [PATCH v3 6/7] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-07-22 Thread Paul Gortmaker
On Fri, Jul 22, 2016 at 5:07 AM, Lin Huang wrote: > base on dfi result, we do ddr frequency scaling, register > dmc driver to devfreq framework, and use simple-ondemand > policy. > > Signed-off-by: Lin Huang > --- > Changes in v3: > - operate dram setting through sip call > - imporve set rate flo

Re: [PATCH v3 5/7] PM / devfreq: event: support rockchip dfi controller

2016-07-22 Thread Paul Gortmaker
On Fri, Jul 22, 2016 at 5:07 AM, Lin Huang wrote: > on rk3399 platform, there is dfi conroller can monitor > ddr load, base on this result, we can do ddr freqency > scaling. > > Signed-off-by: Lin Huang > Acked-by: Chanwoo Choi > --- > Changes in v3: > - None > > Changes in v2: > - use clk_disab

Re: [PATCH] PM-wakeup: Delete unnecessary checks before two function calls

2016-07-22 Thread SF Markus Elfring
Am 28.06.2015 um 12:21 schrieb SF Markus Elfring: > From: Markus Elfring > Date: Sun, 28 Jun 2015 12:14:43 +0200 > > The functions dev_pm_disarm_wake_irq() and wakeup_source_unregister() test > whether their argument is NULL and then return immediately. > Thus the test around the calls is not nee

[PATCH v4 2/5] fsnotify: Simplify inode iteration on umount

2016-07-22 Thread Waiman Long
From: Jan Kara fsnotify_unmount_inodes() played complex tricks to pin next inode in the sb->s_inodes list when iterating over all inodes. If we switch to keeping current inode pinned somewhat longer, we can make the code much simpler and standard. Signed-off-by: Jan Kara Signed-off-by: Waiman L

[PATCH v4 0/5] vfs: Use dlock list for SB's s_inodes list

2016-07-22 Thread Waiman Long
v3->v4: - As suggested by Al, encapsulate the dlock list mechanism into the dlist_for_each_entry() and dlist_for_each_entry_safe() which are the equivalent of list_for_each_entry() and list_for_each_entry_safe() for regular linked list. That simplifies the changes in the call sites tha

[PATCH v4 5/5] lib/dlock-list: Allow cacheline alignment of percpu head

2016-07-22 Thread Waiman Long
Christoph Lameter had raised the concern that the spinlock in the dlock_list_head_percpu structure may cause undesirable cacheline contention in the percpu area that normally shouldn't have contention of this kind. This patch addresses this issue by allowing an option to force the dlock_list_head_

[PATCH v4 4/5] vfs: Use dlock list for superblock's inode list

2016-07-22 Thread Waiman Long
When many threads are trying to add or delete inode to or from a superblock's s_inodes list, spinlock contention on the list can become a performance bottleneck. This patch changes the s_inodes field to become a dlock list which is a distributed set of lists with per-list spinlocks. As a result,

[PATCH v4 1/5] lib/dlock-list: Distributed and lock-protected lists

2016-07-22 Thread Waiman Long
Linked list is used everywhere in the Linux kernel. However, if many threads are trying to add or delete entries into the same linked list, it can create a performance bottleneck. This patch introduces a new list APIs that provide a set of distributed lists (one per CPU), each of which is protecte

[PATCH v4 3/5] vfs: Remove unnecessary list_for_each_entry_safe() variants

2016-07-22 Thread Waiman Long
From: Jan Kara evict_inodes() and invalidate_inodes() use list_for_each_entry_safe() to iterate sb->s_inodes list. However, since we use i_lru list entry for our local temporary list of inodes to destroy, the inode is guaranteed to stay in sb->s_inodes list while we hold sb->s_inode_list_lock. So

Re: [RFC PATCH v1 2/2] drivers: soc: Add support for Hisilicon Djtag driver

2016-07-22 Thread Paul Gortmaker
On Fri, Jul 22, 2016 at 4:48 AM, Tan Xiaojun wrote: > The Hisilicon Djtag is an independent module which connects with some modules > in the SoC by Debug Bus. This module can be configured to access the registers > of connecting modules (like L3 cache) during real time debugging. > > This patch ad

Re: [PATCH v3 0/6] Add support for privileged mappings

2016-07-22 Thread Mitchel Humpherys
On Fri, Jul 22 2016 at 05:51:07 PM, Will Deacon wrote: > On Tue, Jul 19, 2016 at 01:36:49PM -0700, Mitchel Humpherys wrote: >> The following patch to the ARM SMMU driver: >> >> commit d346180e70b91b3d5a1ae7e5603e65593d4622bc >> Author: Robin Murphy >> Date: Tue Jan 26 18:06:34 2016

Re: [PATCH v7 1/2] Documentation: bindings: add dt doc for Rockchip PCIe controller

2016-07-22 Thread Brian Norris
On Mon, Jul 18, 2016 at 08:42:12AM +0800, Shawn Lin wrote: > This patch adds a binding that describes the Rockchip PCIe controller > found on Rockchip SoCs PCIe interface. > > Signed-off-by: Shawn Lin > > Acked-by: Rob Herring Reviewed-by: Brian Norris

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-22 Thread Thiago Jung Bauermann
Am Freitag, 22 Juli 2016, 12:54:28 schrieb Michael Ellerman: > Thiago Jung Bauermann writes: > > So even if not ideal, the solution above is desirable for powerpc. We > > would like to preserve the ability of allowing userspace to pass > > parameters to the OS via the DTB, even if secure boot is e

Re: [PATCH v3 1/7] firmware: rockchip: sip: Add rockchip SIP runtime service

2016-07-22 Thread Heiko Stübner
Hi again, one bigger thing I noticed only now. Am Freitag, 22. Juli 2016, 17:07:14 schrieben Sie: > diff --git a/drivers/firmware/rockchip_sip.c > b/drivers/firmware/rockchip_sip.c new file mode 100644 > index 000..7756af9 > --- /dev/null > +++ b/drivers/firmware/rockchip_sip.c > @@ -0,0 +1,6

Re: [PATCH 2/3] staging/rtl8192e: use s8 instead of char

2016-07-22 Thread Stefan Lippers-Hollmann
Hi On 2016-07-22, Arnd Bergmann wrote: > On Friday, July 22, 2016 7:55:36 AM CEST Jes Sorensen wrote: > > Stefan Lippers-Hollmann writes: > > > On 2016-07-20, Arnd Bergmann wrote: > > >> On Wednesday, July 20, 2016 11:33:43 AM CEST Jes Sorensen wrote: > > >> > Arnd Bergmann writes: > >

Re: [RESEND RFC PATCH 1/5] platform: x86: add driver for UP Board I/O CPLD

2016-07-22 Thread Darren Hart
On Mon, Jul 04, 2016 at 05:07:10PM +0100, Dan O'Donovan wrote: > The UP board utilises a CPLD between its Intel X5-Z8350 SoC and an > external 40-pin header, to provide buffered voltage level-shifting > of the I/O signals, mux switching and LED control, and programmable > pin mapping between the So

Re: [PATCH v3 1/4] lib/dlock-list: Distributed and lock-protected lists

2016-07-22 Thread Waiman Long
On 07/19/2016 02:42 PM, Waiman Long wrote: On 07/18/2016 07:38 PM, Tejun Heo wrote: +/* + * include/linux/dlock-list.h + * + * A distributed (per-cpu) set of lists each of which is protected by its + * own spinlock, but acts like a single consolidated list to the callers. + * + * The dlock_

Re: [PATCH v2 3/4] drivers: reset: Add STM32 reset driver

2016-07-22 Thread Paul Gortmaker
[Re: [PATCH v2 3/4] drivers: reset: Add STM32 reset driver] On 22/07/2016 (Fri 21:25) Arnd Bergmann wrote: > On Thursday, July 21, 2016 7:16:02 PM CEST Paul Gortmaker wrote: > > > > > ...we probably don't need module.h here or any of the other > > > > MODULE_ tags/macros either. Use the builtin

Re: [PATCH 0/2] PCI: altera: fix link retrain

2016-07-22 Thread Bjorn Helgaas
On Tue, Jun 21, 2016 at 04:53:11PM +0800, Ley Foon Tan wrote: > This 2 patches fix the issue before and after retrain link. > > Ley Foon Tan (2): > PCI: altera: check link status before retrain link > PCI: altera: Polling for link up status after retrain the link > > drivers/pci/host/pcie-al

Re: [PATCH V2] cpufreq: Disallow ->resolve_freq() for drivers providing ->target_index()

2016-07-22 Thread Rafael J. Wysocki
On Friday, July 22, 2016 08:13:27 AM Viresh Kumar wrote: > On 21-07-16, 17:34, Steve Muckle wrote: > > On Fri, Jul 22, 2016 at 02:18:54AM +0200, Rafael J. Wysocki wrote: > > > > My thinking was that one of these two would be preferable: > > > > > > > > - Forcing ->target() drivers to install a ->re

Re: strange Mac OSX RST behavior

2016-07-22 Thread Jason Baron
Hi, After looking at this further we found that there is actually a rate limit on 'rst' packets sent by OSX on a closed socket. Its set to 250 per second and controlled via: net.inet.icmp.icmplim. Increasing that limit resolves the issue, but the default is apparently 250. Thanks, -Jason On 07

Re: [PATCH V2] cpufreq: Disallow ->resolve_freq() for drivers providing ->target_index()

2016-07-22 Thread Viresh Kumar
On 22-07-16, 23:11, Rafael J. Wysocki wrote: > No, they aren't deprecated, not even sort of. > > Of course, stuff that can use frequency tables should implement > ->target_index, > because there's no valid reason for it not to do that. > > However, there are cases (and not legacy) where frequenc

[GIT PULL] libnvdimm regression fix for 4.7-final

2016-07-22 Thread Williams, Dan J
Hi Linus, please pull from:   git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm libnvdimm-fixes ...to receive a regression fix for a problem that was introduced in v4.7-rc6. In 4.7-rc1 we introduced auto-probing for the ACPI DSM (device- specific-method) format that the platform firmwa

Slicoss fixes and improvements

2016-07-22 Thread Lino Sanfilippo
Hi, this patch series tries to get the slicoss driver code closer to a state in which it is ready to be moved out of staging. Patch 1 is a resend of patch I sent a week ago and handles an allocation failure in slic_init_adapter(). Patch 2 fixes link state notification. Patch 3 turns the mapping

[PATCH 0/2] mm patches

2016-07-22 Thread Mikulas Patocka
Hi I'm submitting these two patches for the next merge window. The first patch adds cond_resched() to generic_swapfile_activate to avoid stall when activating unfragmented swapfile. The second patch removes useless code from copy_page_to_iter_iovec and copy_page_from_iter_iovec. Mikulas

[PATCH 3/9] staging: slicoss: ensure mapping of io-memory is uncached

2016-07-22 Thread Lino Sanfilippo
From: Lino Sanfilippo Writes to registers should be done uncached for various reasons. Ensure this by replacing ioremap() with ioremap_nocache(). Signed-off-by: Lino Sanfilippo --- drivers/staging/slicoss/slicoss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sta

[PATCH 6/9] staging: slicoss: avoid PCI write posting

2016-07-22 Thread Lino Sanfilippo
Introduce the function slic_flush_write() which reads from the HOSTID register and can be used to avoid PCI write posting. Use the function at several critical places in the code. Signed-off-by: Lino Sanfilippo --- drivers/staging/slicoss/slic.h| 5 + drivers/staging/slicoss/slicoss.c |

[PATCH 4/9] staging: slicoss: start tx queue when interface is brought up

2016-07-22 Thread Lino Sanfilippo
There is no reason to delay tx queue activation until a link is detected. So start the queue when the interface is brought up and stop it when the interface is brought down. Signed-off-by: Lino Sanfilippo --- drivers/staging/slicoss/slicoss.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletio

[PATCH 2/9] staging: slicoss: notifiy network stack about change in link state

2016-07-22 Thread Lino Sanfilippo
Notify the network stack about link states via netif_carrier_[off|on](). Also set the link state off initially and when the interface is brought down. Signed-off-by: Lino Sanfilippo --- drivers/staging/slicoss/slicoss.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/

[PATCH 1/9] staging: slicoss: handle allocation failure in slic_init_adapter

2016-07-22 Thread Lino Sanfilippo
The memory allocation in slic_init_adapter() can fail. Return an error in this case and unwind properly. Also make sure that the allocated memory is properly freed in case of an error in the calling probe() function. By doing this also replace the alloc() followed by memset to zero the memory with

[PATCH 1/2] mm: add cond_resched to generic_swapfile_activate

2016-07-22 Thread Mikulas Patocka
The function generic_swapfile_activate can take quite long time, it iterates over all blocks of a file, so add cond_resched to it. I observed about 1 second stalls when activating a swapfile that was almost unfragmented - this patch fixes it. Signed-off-by: Mikulas Patocka --- mm/page_io.c |

Re: [RESEND RFC PATCH 1/5] platform: x86: add driver for UP Board I/O CPLD

2016-07-22 Thread Paul Gortmaker
On Fri, Jul 22, 2016 at 4:52 PM, Darren Hart wrote: > On Mon, Jul 04, 2016 at 05:07:10PM +0100, Dan O'Donovan wrote: >> The UP board utilises a CPLD between its Intel X5-Z8350 SoC and an >> external 40-pin header, to provide buffered voltage level-shifting >> of the I/O signals, mux switching and

[PATCH 2/2] mm: optimize copy_page_to/from_iter_iovec

2016-07-22 Thread Mikulas Patocka
The functions copy_page_to_iter_iovec and copy_page_from_iter_iovec copy some data to userspace or from userspace. These functions have a fast path where they map a page using kmap_atomic and a slow path where they use kmap. kmap is slower than kmap_atomic, so the fast path is preferred. However,

[PATCH 7/9] staging: slicoss: dont use a structure but offsets for register accesses

2016-07-22 Thread Lino Sanfilippo
Use the new register accessors that use offsets instead of the slic_regs structure to read/write registers. Since not longer needed remove the structure completley. Signed-off-by: Lino Sanfilippo --- drivers/staging/slicoss/slic.h| 1 - drivers/staging/slicoss/slichw.h | 219 -

[PATCH 8/9] staging: slicoss: improve implementation concerning the shared memory

2016-07-22 Thread Lino Sanfilippo
Remove the volatile specifiers of struct slic_shmem. Furthermore store the bus addresses for the isr pointer, link status and statistics separately and access the upper and lower word of these addresses by means of [lower|upper]_32_bits(). By doing this take the endianness into account. Signed-off

[PATCH 5/9] staging: slicoss: introduce register accessors that use register offsets

2016-07-22 Thread Lino Sanfilippo
Introduce accessor functions that read and write registers by using a register offset. This is in preparation to replace the register addressing by means of the slic_regs struct with an addressing by means of offsets. Signed-off-by: Lino Sanfilippo --- drivers/staging/slicoss/slic.h| 24 +++

[PATCH 9/9] staging: slicoss: simplify struct for statistics

2016-07-22 Thread Lino Sanfilippo
Merge several structures for statistics to one structure and remove unnecessary union nesting. Signed-off-by: Lino Sanfilippo --- drivers/staging/slicoss/slic.h| 18 + drivers/staging/slicoss/slichw.h | 79 --- drivers/staging/slicoss/slicoss.c |

Re: [PATCH 04/32] x86/intel_rdt: Add L3 cache capacity bitmask management

2016-07-22 Thread Marcelo Tosatti
On Tue, Jul 12, 2016 at 06:02:37PM -0700, Fenghua Yu wrote: > From: Vikas Shivappa > > This patch adds different APIs to manage the L3 cache capacity bitmask. > The capacity bit mask(CBM) needs to have only contiguous bits set. The > current implementation has a global CBM for each class of servi

Re: [PATCH] Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

2016-07-22 Thread Linda Knippers
On 07/22/2016 03:25 PM, Linda Knippers wrote: > > > On 7/22/2016 11:36 AM, Viresh Kumar wrote: >> On 22-07-16, 17:14, Andreas Herrmann wrote: >>> diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c >>> index a7ecb9a..3f0ce2a 100644 >>> --- a/drivers/cpufreq/pcc-cpufreq.c >>

arch/mips/vdso/elf.S:1:0: error: '-march=r3000' requires '-mfp32'

2016-07-22 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 47ef4ad2684d380dd6d596140fb79395115c3950 commit: ebb5e78cc63417a35254a791de66e1cc84f963cc MIPS: Initial implementation of a VDSO date: 9 months ago config: mips-

Re: [PATCH] Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

2016-07-22 Thread Rafael J. Wysocki
On Friday, July 22, 2016 08:36:56 AM Viresh Kumar wrote: > On 22-07-16, 17:14, Andreas Herrmann wrote: > > diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c > > index a7ecb9a..3f0ce2a 100644 > > --- a/drivers/cpufreq/pcc-cpufreq.c > > +++ b/drivers/cpufreq/pcc-cpufreq.c > >

Re: [PATCH] Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

2016-07-22 Thread Viresh Kumar
On 22-07-16, 23:31, Rafael J. Wysocki wrote: > > cpufreq.c > > > > if (policy->governor->max_transition_latency && > > policy->cpuinfo.transition_latency > > > policy->governor->max_transition_latency) { > > > > - And this check will always fail, unless max_transition_latency

Re: [PATCH v2] Documentation/watchdog: check return value for magic close

2016-07-22 Thread Timur Tabi
Arnd Bergmann wrote: A recent commit added a write to the watchdog test code for doing the "magic close", but that caused a compile-time warning: Documentation/watchdog/src/watchdog-test.c: In function ‘main’: Documentation/watchdog/src/watchdog-test.c:94:5: warning: ignoring return value of ‘w

Re: [PATCH v3 1/7] firmware: rockchip: sip: Add rockchip SIP runtime service

2016-07-22 Thread kbuild test robot
Hi, [auto build test ERROR on next-20160722] [also build test ERROR on v4.7-rc7] [cannot apply to rockchip/for-next stable/master linux/master v4.7-rc7 v4.7-rc6 v4.7-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3000' requires '-mfp32'

2016-07-22 Thread kbuild test robot
Hi, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 47ef4ad2684d380dd6d596140fb79395115c3950 commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier date: 7 mo

Re: [v6 PATCH 1/6] extcon: Add Type-C and DP support

2016-07-22 Thread Guenter Roeck
On Fri, Jul 22, 2016 at 2:29 AM, Chanwoo Choi wrote: > Hi Chris, > > I'm sorry for late reply. I finished the first draft to support the extcon > property. > You can check the patches[1]. But, I need more time to test it. After tested > it, > I'll send the patches. > > [1] > https://git.kernel.

[zer0...@yahoo.com: [oss-security] panic at big_key_preparse #4.7-r6/rc7 & master]

2016-07-22 Thread Greg KH
David, here's a bug report with reproducer that was sent to the oss-security mailing list for some unknown reason earlier today. Any ideas? thanks, greg k-h - Forwarded message from zer0...@yahoo.com - Date: Fri, 22 Jul 2016 22:54:09 +0800 From: zer0...@yahoo.com To: "oss-secur...@lis

Re: [PATCH] Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

2016-07-22 Thread Rafael J. Wysocki
On Friday, July 22, 2016 02:28:52 PM Viresh Kumar wrote: > On 22-07-16, 23:31, Rafael J. Wysocki wrote: > > > cpufreq.c > > > > > > if (policy->governor->max_transition_latency && > > > policy->cpuinfo.transition_latency > > > > policy->governor->max_transition_latency) { > > > > >

Re: [PATCH 04/32] x86/intel_rdt: Add L3 cache capacity bitmask management

2016-07-22 Thread Luck, Tony
On Fri, Jul 22, 2016 at 04:12:04AM -0300, Marcelo Tosatti wrote: > How does this patchset handle the following condition: > > 6) Create reservations in such a way that the sum is larger than > total amount of cache, and CPU pinning (example from Karen Noel): > > VM-1 on socket-1 with 80% of reser

<    1   2   3   4   5   6   >