Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Andrea Arcangeli
On Tue, May 24, 2016 at 12:49:42AM +0300, Kirill A. Shutemov wrote: > That's what we do now and that's not enough. > > We would need to serialize against pmd_lock() during normal page-fault > path (and other pte manipulation), which we don't do now if pmd points to > page table. Yes, mmap_sem for

x86: A process doesn't stop on hw breakpoints sometimes

2016-05-23 Thread Andrei Vagin
Hi, We use breakpoints on CRIU to stop a processes before calling rt_sigreturn and we found that sometimes a process runs through a break-point without stopping on it. https://github.com/xemul/criu/issues/162 A small reproducer is attached. It forks a child, stops it, sets a breakpoint, execute

Re: [PATCH] bcache: bch_writeback_thread() is not freezable

2016-05-23 Thread Jiri Kosina
On Wed, 18 May 2016, Jiri Kosina wrote: > > > bch_writeback_thread() is calling try_to_freeze(), but that's just an > > > expensive no-op given the fact that the thread is not marked freezable. > > > > > > I/O helper kthreads, exactly such as the bcache writeback thread, > > > actually > > > s

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

2016-05-23 Thread Timur Tabi
Christopher Covington wrote: They ended up calling the pinctrl file qcom/pinctrl/qdf2xxx.c. http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=8f1338cd80648adf5434798f5393ad7c55d10848 To be fair, none of the other drivers in drivers/soc/ specify any specific SOCs. They

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-05-23 Thread Gabriele Mazzotta
On 24/05/2016 00:22, Pali Rohár wrote: > On Tuesday 24 May 2016 00:17:15 Darren Hart wrote: >> On Tue, May 24, 2016 at 12:06:03AM +0200, Pali Rohár wrote: >>> On Monday 23 May 2016 23:26:55 Darren Hart wrote: I've queued this. Thanks for your patience. >>> >>> Ok, In that case I would update c

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-05-23 Thread Jiri Kosina
On Fri, 20 May 2016, Andy Lutomirski wrote: > I think it would be negligible, at least for interrupts, since > interrupts are already extremely expensive. But I don't love adding > assembly code that makes them even slower. The real thing I dislike > about this approach is that it's not a normal

Re: [PATCH] Input: tc3589x-keypad - remove stray ')'

2016-05-23 Thread Dmitry Torokhov
On Mon, May 23, 2016 at 03:26:56PM +0200, Linus Walleij wrote: > On Sun, May 22, 2016 at 4:20 PM, Clifton Barnes > wrote: > > > The end ')' needs to be removed if the macro is ever used or there > > would be a compiler error as it does not have a matching '('. > > > > Signed-off-by: Clifton Barne

Re: [PATCH 21/54] MAINTAINERS: Add file patterns for serio device tree bindings

2016-05-23 Thread Dmitry Torokhov
On Sun, May 22, 2016 at 11:05:58AM +0200, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Cc: Dmitry Torokhov > Cc: linux-in...@vger.kernel.org Acked-by: Dmitry To

Re: [PATCH 01/54] MAINTAINERS: Add file patterns for ion device tree bindings

2016-05-23 Thread Laura Abbott
On 05/22/2016 02:05 AM, Geert Uytterhoeven wrote: Submitters of device tree binding documentation may forget to CC the subsystem maintainer if this is missing. Signed-off-by: Geert Uytterhoeven Cc: Laura Abbott Cc: Sumit Semwal Cc: de...@driverdev.osuosl.org --- Please apply this patch direct

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

2016-05-23 Thread William Breathitt Gray
On Tue, May 24, 2016 at 08:29:12AM +1000, Stephen Rothwell wrote: >Hi William, > >Just a small question ... > >On Mon, 23 May 2016 17:20:01 -0400 William Breathitt Gray > wrote: >> >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index 0a7b885..6601912 100644 >> --- a/arch/x86/Kconfig >> +++

Re: [PATCH v2] ION: Sys_heap: Add cached pool to spead up cached buffer alloc

2016-05-23 Thread Laura Abbott
On 05/18/2016 08:03 PM, Chen Feng wrote: Add ion cached pool in system heap. This patch add a cached pool in system heap. It has a great improvement of alloc for cached buffer. With memory pressue alloc test 800MB in userspace used iontest. The result avg is 577ms. Without patch it's avg is abou

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

2016-05-23 Thread Stephen Rothwell
Hi William, Just a small question ... On Mon, 23 May 2016 17:20:01 -0400 William Breathitt Gray wrote: > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 0a7b885..6601912 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -2439,6 +2439,16 @@ config PCI_CNB20LE_QUIRK > >

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

2016-05-23 Thread Christopher Covington
On 05/23/2016 02:22 PM, Neil Leeder wrote: > > On 5/23/2016 01:25 PM, Mark Rutland wrote: >> On Fri, May 20, 2016 at 03:13:07PM -0400, Neil Leeder wrote: >>> L2 registers are accessed using a select register and data >>> register pair. To prevent multiple concurrent writes to the >>> select regist

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-05-23 Thread Pali Rohár
On Tuesday 24 May 2016 00:17:15 Darren Hart wrote: > On Tue, May 24, 2016 at 12:06:03AM +0200, Pali Rohár wrote: > > On Monday 23 May 2016 23:26:55 Darren Hart wrote: > > > I've queued this. Thanks for your patience. > > > > Ok, In that case I would update comments in patch to try it more > > clea

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-05-23 Thread Darren Hart
On Tue, May 24, 2016 at 12:06:03AM +0200, Pali Rohár wrote: > On Monday 23 May 2016 23:26:55 Darren Hart wrote: > > I've queued this. Thanks for your patience. > > Ok, In that case I would update comments in patch to try it more clear > what code is doing. I thought I had your approval on this o

Re: bpf: use-after-free in array_map_alloc

2016-05-23 Thread Alexei Starovoitov
On Mon, May 23, 2016 at 05:35:01PM -0400, Tejun Heo wrote: > Hello, > > Can you please test whether this patch resolves the issue? While > adding support for atomic allocations, I reduced alloc_mutex covered > region too much. after the patch the use-after-free is no longer seen. Tested-by: Alex

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

2016-05-23 Thread David Miller
From: Vitaly Kuznetsov Date: Mon, 23 May 2016 17:50:33 +0200 > After we made traveling through our internal structures explicit it became > obvious that some functions take arguments they don't need just to do > redundant pointer travel and get to what they really need while their > callers alrea

Re: [PATCH 8/8] af_unix: charge buffers to kmemcg

2016-05-23 Thread David Miller
Networking changes should be CC:'d net...@vger.kernel.org

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

2016-05-23 Thread Mark Brown
On Mon, May 23, 2016 at 04:29:38PM -0400, Rich Felker wrote: > On Mon, May 23, 2016 at 04:30:37PM +0100, Mark Brown wrote: > > One question here is why this is even part of a series - it's adding a > > new controller driver which wouldn't normally have any sort of direct > > build or other depende

[PATCH v1 3/3] Add the extra_latent_entropy kernel parameter

2016-05-23 Thread Emese Revfy
When extra_latent_entropy is passed on the kernel command line, entropy will be extracted from up to the first 4GB of RAM while the runtime memory allocator is being initialized. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- Documentation/kernel-parameters.txt | 5 +

[PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-23 Thread Emese Revfy
These functions have been selected because they are init functions or are called at random times or they have variable loops. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- block/blk-softirq.c | 2 +- drivers/char/random.c| 6 +++--- fs/namespace.c

[PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-23 Thread Emese Revfy
This plugin mitigates the problem of the kernel having too little entropy during and after boot for generating crypto keys. It creates a local variable in every marked function. The value of this variable is modified by randomly chosen operations (add, xor and rol) and random values (gcc generate

[PATCH v1 0/3] Introduce the latent_entropy gcc plugin

2016-05-23 Thread Emese Revfy
I would like to introduce the latent_entropy gcc plugin. This plugin mitigates the problem of the kernel having too little entropy during and after boot for generating crypto keys. This plugin mixes random values into the latent_entropy global variable in functions marked by the __latent_entropy a

Re: [PATCH 32/54] MAINTAINERS: Add file patterns for net device tree bindings

2016-05-23 Thread David Miller
From: Geert Uytterhoeven Date: Sun, 22 May 2016 11:06:09 +0200 > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven Applied.

[PATCH 4/9] perf trace: Use the fd->name beautifier as default for "fd" args

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Noticed when the 'setsockopt' 'fd' arg wasn't being formatted via the SCA_FD beautifier, so just remove the setting of "fd" args to SCA_FD and do it when reading the syscall info, like we do for args of type "pid_t", i.e. "fd" as the name should be enough as the dec

[PATCH 9/9] perf record: Read from backward ring buffer

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Wang Nan Introduce rb_find_range() to find start and end position from a backward ring buffer. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com Link: http://lkml.kernel.org/r/1463987628-163563-5-git-send-email-wangn...@huaw

[PATCH 6/9] perf evlist: Add API to pause/resume

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Wang Nan perf_evlist__toggle_{pause,resume}() are introduced to pause/resume events in an evlist. Utilize PERF_EVENT_IOC_PAUSE_OUTPUT ioctl. Following commits use them to ensure overwrite ring buffer is paused before reading. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Masami Hiramatsu C

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-05-23 Thread Pali Rohár
On Monday 23 May 2016 23:26:55 Darren Hart wrote: > I've queued this. Thanks for your patience. Ok, In that case I would update comments in patch to try it more clear what code is doing. -- Pali Rohár pali.ro...@gmail.com signature.asc Description: This is a digitally signed message part.

[PATCH 7/9] perf record: Prevent reading invalid data in record__mmap_read

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Wang Nan When record__mmap_read() requires data more than the size of ring buffer, drop those data to avoid accessing invalid memory. This can happen when reading from overwritable ring buffer, which should be avoided. However, check this for robustness. Signed-off-by: Wang Nan Cc: Jiri

[PATCH 1/9] perf evsel: Add overwrite attribute and check write_backward

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Wang Nan Add 'overwrite' attribute to evsel to mark whether this event is overwritable. The following commits will support syntax like: # perf record -e cycles/overwrite/ ... An overwritable evsel requires kernel support for the perf_event_attr.write_backward ring buffer feature. Add i

[GIT PULL 0/9] perf/core improvements

2016-05-23 Thread Arnaldo Carvalho de Melo
available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160523 for you to fetch changes up to 3a62a7b8200a177ad96161e4f2678514e6ee301e: perf record: Read from backward ring buffer (2016-05-23 18:2

[PATCH v9 4/4] Add sancov plugin

2016-05-23 Thread Emese Revfy
The sancov gcc plugin inserts a __sanitizer_cov_trace_pc() call at the start of basic blocks. This plugin is a helper plugin for the kcov feature. It supports all gcc versions with plugin support (from gcc-4.5 on). It is based on the gcc commit "Add fuzzing coverage support" by Dmitry Vyukov (http

[PATCH 2/9] perf evsel: Record fd into perf_mmap

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Wang Nan Add a fd field into struct perf_mmap so that perf can track the mmap fd. This feature will be used for toggling overwrite ring buffers. Signed-off-by: Wang Nan Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com Link: http://l

[PATCH 3/9] perf report: Add srcline_from/to branch sort keys

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add "srcline_from" and "srcline_to" branch sort keys that allow to show the source lines of a branch. That makes it much easier to track down where particular branches happen in the program, for example to examine branch mispredictions, or to associate it with cycle counts: %

[PATCH 8/9] perf record: Rename variable to make code clear

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Wang Nan record__mmap_read() writes data from ring buffer into perf.data. 'head' is maintained by the kernel, points to the last written record. 'old' is maintained by perf, points to the record read in previous round. record__mmap_read() saves data from 'old' to 'head' to perf.data. The

[PATCH 5/9] perf trace: Use the ptr->name beautifier as default for "filename" args

2016-05-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Auto-attach the ptr->name beautifier to syscall args "filename", "path" and "pathname" if they are of type "const char *". Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-jxii4q

[PATCH v9 3/4] Add Cyclomatic complexity GCC plugin

2016-05-23 Thread Emese Revfy
Add a very simple plugin to demonstrate the GCC plugin infrastructure. This GCC plugin computes the cyclomatic complexity of each function. The complexity M of a function's control flow graph is defined as: M = E - N + 2P where E = the number of edges N = the number of nodes P = the number of conn

[PATCH v9 2/4] GCC plugin infrastructure

2016-05-23 Thread Emese Revfy
This patch allows to build the whole kernel with GCC plugins. It was ported from grsecurity/PaX. The infrastructure supports building out-of-tree modules and building in a separate directory. Cross-compilation is supported too. Currently the x86, arm, arm64 and uml architectures enable plugins. Th

Re: [patch] mm, migrate: increment fail count on ENOMEM

2016-05-23 Thread Andrew Morton
On Fri, 20 May 2016 15:31:21 +0200 Michal Hocko wrote: > On Fri 20-05-16 15:19:12, Vlastimil Babka wrote: > > On 05/20/2016 03:06 PM, Michal Hocko wrote: > [...] > > > Why don't we need also to count also retries? > > > > We could, but not like you suggest. > > > > > --- > > > diff --git a/mm/m

[PATCH v9 1/4] Shared library support

2016-05-23 Thread Emese Revfy
Infrastructure for building independent shared library targets. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- scripts/Makefile.build | 2 +- scripts/Makefile.clean | 4 +++- scripts/Makefile.host | 55 +- 3 files changed

[PATCH v9 0/4] Introduce GCC plugin infrastructure

2016-05-23 Thread Emese Revfy
This patch set introduce the GCC plugin infrastructure with examples for testing and documentation. GCC plugins are loadable modules that provide extra features to the compiler. They are useful for runtime instrumentation and static analysis. The infrastructure supports all gcc versions from 4.5

Re: [PATCH] locking/mutex: Set and clear owner using WRITE_ONCE()

2016-05-23 Thread Jason Low
On Mon, 2016-05-23 at 14:31 -0700, Davidlohr Bueso wrote: > On Mon, 23 May 2016, Jason Low wrote: > > >On Fri, 2016-05-20 at 18:00 -0700, Davidlohr Bueso wrote: > >> On Fri, 20 May 2016, Waiman Long wrote: > >> > >> >I think mutex-debug.h also needs similar changes for completeness. > >> > >> Mayb

Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Kirill A. Shutemov
On Mon, May 23, 2016 at 04:13:03PM -0400, Rik van Riel wrote: > On Mon, 2016-05-23 at 23:02 +0300, Kirill A. Shutemov wrote: > > On Mon, May 23, 2016 at 03:26:47PM -0400, Rik van Riel wrote: > > > > > > On Mon, 2016-05-23 at 22:01 +0300, Kirill A. Shutemov wrote: > > > > > > > > On Mon, May 23, 2

Re: [PATCH] autofs: don't stuck in a loop if vfs_write returns an error

2016-05-23 Thread Andrei Vagin
Hi Ian, When are you going to apply this patch? We can't test linux-next without it. Thanks, Andrew On Fri, Apr 1, 2016 at 12:37 AM, Ian Kent wrote: > On Thu, 2016-03-31 at 22:12 -0700, Andrey Vagin wrote: >> From: Andrey Vagin >> >> __vfs_write() returns a negative value in a error case. > >

Re: [PATCH 1/4] dt-bindings: rng: Northstar Plus SoC rng bindings

2016-05-23 Thread Rob Herring
On Mon, May 23, 2016 at 12:20:48PM -0400, Yendapally Reddy Dhananjaya Reddy wrote: > Document the bindings used by Northstar Plus(NSP) SoC random number > generator. > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > > --- > Documentation/devicetree/bindings/rng/brcm,bcm2835.txt | 7 ++

Re: __napi_alloc_skb failures locking up the box

2016-05-23 Thread Aaro Koskinen
Hi, On Sat, Apr 30, 2016 at 12:54:12PM -0700, Eric Dumazet wrote: > On Sat, 2016-04-30 at 22:24 +0300, Aaro Koskinen wrote: > > Hi, > > > > I have old NAS box (Thecus N2100) with 512 MB RAM, where rsync from NFS -> > > disk reliably results in temporary out-of-memory conditions. > > > > When thi

Re: [PATCH] intel_menlow: reduce code duplication

2016-05-23 Thread Darren Hart
On Sat, Mar 26, 2016 at 10:40:26PM +0100, Rasmus Villemoes wrote: > aux0_show and aux1_show consists of almost identical code. Pull that > into a common helper and make them thin wrappers. Similarly for > _store. > > Signed-off-by: Rasmus Villemoes This one fell off my queue, apologies. Now queu

Re: [PATCH 4/4] dt-bindings: add Samsung LSN122DL01-C01 panel binding

2016-05-23 Thread Rob Herring
On Mon, May 23, 2016 at 08:55:37PM +0800, Yakir Yang wrote: > The Samsung LSN122DL01-C01 is an 12.2" 2560x1600 (WQXGA) TFT-LCD > panel connected using eDP interfaces. > > Signed-off-by: Yakir Yang > --- > .../devicetree/bindings/display/panel/samsung,lsn122dl01-c01.txt | 7 > +++ > 1 file

Re: [PATCH 2/4] dt-bindings: add LG LP097QX1-SPA1 panle binding

2016-05-23 Thread Rob Herring
On Mon, May 23, 2016 at 08:55:15PM +0800, Yakir Yang wrote: > The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel > connected using eDP interfaces. > > Signed-off-by: Yakir Yang > --- > .../devicetree/bindings/display/panel/lg,lp097qx1-spa1.txt | 7 > +++ > 1 file change

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-05-23 Thread Andy Lutomirski
On Thu, May 19, 2016 at 4:15 PM, Josh Poimboeuf wrote: > On Mon, May 02, 2016 at 08:52:41AM -0700, Andy Lutomirski wrote: >> On Mon, May 2, 2016 at 6:52 AM, Josh Poimboeuf wrote: >> > On Fri, Apr 29, 2016 at 05:08:50PM -0700, Andy Lutomirski wrote: >> >> On Apr 29, 2016 3:41 PM, "Josh Poimboeuf"

Re: livepatch: Avoid possible race when releasing the patch

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

Re: bpf: use-after-free in array_map_alloc

2016-05-23 Thread Tejun Heo
Hello, Can you please test whether this patch resolves the issue? While adding support for atomic allocations, I reduced alloc_mutex covered region too much. Thanks. diff --git a/mm/percpu.c b/mm/percpu.c index 0c59684..bd2df70 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -162,7 +162,7 @@ stat

Re: [PATCH 4/4 v7] ASoC: dwc: Add irq parameter to DOCUMENTATION

2016-05-23 Thread Rob Herring
On Mon, May 23, 2016 at 11:02:25AM +0100, Jose Abreu wrote: > A parameter description for the interruptions of the > I2S controller was added. This interrupt parameter > should only be set when I2S does not have DMA support. > > Signed-off-by: Jose Abreu > Cc: Carlos Palminha > Cc: Mark Brown >

Re: [PATCH] locking/mutex: Set and clear owner using WRITE_ONCE()

2016-05-23 Thread Davidlohr Bueso
On Mon, 23 May 2016, Jason Low wrote: On Fri, 2016-05-20 at 18:00 -0700, Davidlohr Bueso wrote: On Fri, 20 May 2016, Waiman Long wrote: >I think mutex-debug.h also needs similar changes for completeness. Maybe, but given that with debug the wait_lock is unavoidable, doesn't this send the wron

Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-23 Thread Larry Finger
The mainline kernels past 4.6.0 fail hang when logging in. There are no error messages, and the machine seems to be waiting for some event that never happens. The problem has been bisected to commit dd254f5a382c ("fold checks into iterate_and_advance()"). The bisection has been verified. The

Re: [char-misc-next 1/2] mei: don't use wake_up_interruptible for wr_ctrl

2016-05-23 Thread Greg Kroah-Hartman
On Mon, May 23, 2016 at 01:07:53PM +, Winkler, Tomas wrote: > > > > From: Alexander Usyskin > > > > wr_ctrl waiters are none interruptible, so should be waken up with call to > > wake_up and not to wake_up_interruptible. > > > > This fixes commit: > > 7ff4bdd ("mei: fix waiting for wr_ctrl

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-05-23 Thread Darren Hart
On Thu, May 19, 2016 at 03:30:32PM +0200, Pali Rohár wrote: > On Monday 25 April 2016 22:06:11 Gabriele Mazzotta wrote: > > 2016-04-18 14:35 GMT+02:00 Pali Rohár : > > > On Tuesday 29 March 2016 15:11:35 Rafael J. Wysocki wrote: > > >> On Monday, March 28, 2016 10:33:09 AM Darren Hart wrote: > > >>

Re: [PATCH v3 01/11] perf tools: Add API to pause/resume a evlist

2016-05-23 Thread Arnaldo Carvalho de Melo
Em Mon, May 23, 2016 at 07:13:38AM +, Wang Nan escreveu: > +++ b/tools/perf/util/evlist.c > @@ -679,6 +679,38 @@ static struct perf_evsel > *perf_evlist__event2evsel(struct perf_evlist *evlist, > return NULL; > } > > +static int perf_evlist__set_paused(struct perf_evlist *evlist, bool

Re: [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option

2016-05-23 Thread Paul E. McKenney
On Thu, May 19, 2016 at 01:24:12PM -0700, Josh Triplett wrote: > On Thu, May 19, 2016 at 12:38:47PM -0700, Paul E. McKenney wrote: > > On Thu, May 19, 2016 at 09:23:39AM -0700, Paul E. McKenney wrote: > > > On Thu, May 19, 2016 at 08:40:42AM -0700, Josh Triplett wrote: > > > > On Thu, May 19, 2016

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

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

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

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

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

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

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

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

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

2016-05-23 Thread William Breathitt Gray
Changes in v2: - Adjusted preprocessor compilation conditional in include/linux/isa.h to use CONFIG_ISA_BUS_API in order to link the correct ISA bus driver function definitions when available - Move ISA_BUS_API Kconfig option to arch/Kconfig, thus making it available to all architec

Re: [PATCH v3 4/4] soc: Add SoC driver for Freescale Vybrid platform

2016-05-23 Thread Rob Herring
On Fri, May 20, 2016 at 03:32:05PM +0530, Sanchayan Maity wrote: > This adds a SoC driver to be used by Freescale Vybrid SoC's. > Driver utilises syscon and nvmem consumer API's to get the > various register values needed and expose the SoC specific > properties via sysfs. > > A sample output from

Re: [PATCH] f2fs: introduce on-disk layout version checking functionality

2016-05-23 Thread Jaegeuk Kim
Hi Slava, On Thu, May 19, 2016 at 10:46:06AM -0700, Viacheslav Dubeyko wrote: ... > > +#ifdef CONFIG_F2FS_16TB_VOLUME_SUPPORT > +#define F2FS_MAX_SUPP_MAJOR_VERSION (2) > +#define F2FS_MIN_16TB_VOLUME_SUPPORT_VERSION (2) > +#else > +#define F2FS_MAX_SUPP_MAJOR_VERSION (1) > +#e

Re: [PATCH v2 03/12] of: add J-Core interrupt controller bindings

2016-05-23 Thread Rich Felker
On Mon, May 23, 2016 at 03:53:20PM -0500, Rob Herring wrote: > On Fri, May 20, 2016 at 02:53:04AM +, Rich Felker wrote: > > Signed-off-by: Rich Felker > > --- > > .../bindings/interrupt-controller/jcore,aic.txt| 28 > > ++ > > 1 file changed, 28 insertions(+) > > cre

Re: [PATCH 2/3] dt-bindings: reset: Add bindings for the Meson GXBB Reset Controller

2016-05-23 Thread Rob Herring
On Fri, May 20, 2016 at 10:27:54AM +0200, Neil Armstrong wrote: > Add DT bindings for the Meson GXBB SoC Reset Controller documentation and the > associated include file. > > Signed-off-by: Neil Armstrong > --- > .../bindings/reset/amlogic,meson-gxbb-reset.txt| 18 ++ > .../dt-bindings/rese

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

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

Re: [PATCH] wan: cosa: use memdup_user().

2016-05-23 Thread David Miller
From: Muhammad Falak R Wani Date: Fri, 20 May 2016 17:50:06 +0530 > Use memdup_user to duplicate a memory region from user-space to > kernel-space, instead of open coding using kmalloc & copy_from_user. > > Signed-off-by: Muhammad Falak R Wani > --- > drivers/net/wan/cosa.c | 11 +++ >

[PATCH] console: Add persistent scrollback buffers for all VGA consoles

2016-05-23 Thread Manuel Schölling
Add a scrollback buffers for each VGA console. The benefit is that the scrollback history is not flushed when switching between consoles but is persistent. The buffers are allocated on demand when a new console is opened. This breaks tools like clear_console that rely on flushing the scrollback hi

Re: [PATCH v9 10/14] usb: otg: add hcd companion support

2016-05-23 Thread Rob Herring
On Fri, May 20, 2016 at 12:32:27PM +0300, Roger Quadros wrote: > Since some host controller (e.g. EHCI) needs a companion host controller > (e.g. OHCI), this patch adds such a configuration to use it in the OTG > core. > > Signed-off-by: Yoshihiro Shimoda > Signed-off-by: Roger Quadros > Acked-b

Re: [PATCH v2 05/12] of: add J-Core SPI master bindings

2016-05-23 Thread Rich Felker
On Mon, May 23, 2016 at 04:00:20PM -0500, Rob Herring wrote: > On Fri, May 20, 2016 at 02:53:04AM +, Rich Felker wrote: > > Signed-off-by: Rich Felker > > --- > > .../devicetree/bindings/spi/jcore,spi.txt | 23 > > ++ > > 1 file changed, 23 insertions(+) > > cre

Re: [PATCH v9 09/14] usb: of: add an API to get OTG device from USB controller node

2016-05-23 Thread Rob Herring
On Fri, May 20, 2016 at 12:29:59PM +0300, Roger Quadros wrote: > The OTG controller and the USB controller can be linked via the > 'otg-controller' property in the USB controller's device node. > > of_usb_get_otg() can be used to get the OTG controller device > from the USB controller's device nod

Re: [PATCH] ptp: use memdup_user().

2016-05-23 Thread David Miller
From: Muhammad Falak R Wani Date: Fri, 20 May 2016 17:51:02 +0530 > Use memdup_user to duplicate a memory region from user-space to > kernel-space, instead of open coding using kmalloc & copy_from_user. > > Signed-off-by: Muhammad Falak R Wani Applied.

Re: [PATCH v4 2/5] locking/rwsem: Protect all writes to owner by WRITE_ONCE

2016-05-23 Thread Davidlohr Bueso
On Mon, 23 May 2016, Paul E. McKenney wrote: But rcu_read_lock() does not exclude updates, which is one reason why pointer reads use rcu_dereference() rather than normal assignments. Yes, I was referring to readers. With updates, otoh, are done holding a number of locks. So I do not believ

Re: [PATCH] powerpc: inline current_stack_pointer()

2016-05-23 Thread Segher Boessenkool
On Mon, May 23, 2016 at 10:46:02AM +0200, Christophe Leroy wrote: > +static inline unsigned long current_stack_pointer(void) > +{ > + register unsigned long *ptr asm("r1"); > + > + return *ptr; > +} Register asm is only guaranteed to work as input to inline asm. NAK. Segher

Re: [PATCH v2 02/12] of: add J-Core cpu bindings

2016-05-23 Thread Rich Felker
On Mon, May 23, 2016 at 03:48:46PM -0500, Rob Herring wrote: > On Fri, May 20, 2016 at 02:53:03AM +, Rich Felker wrote: > > Signed-off-by: Rich Felker > > --- > > Documentation/devicetree/bindings/jcore/cpus.txt | 91 > > > > 1 file changed, 91 insertions(+) > > cre

Re: [Patch v5 5/8] firmware: qcom: scm: Convert to streaming DMA APIS

2016-05-23 Thread Andy Gross
This patch has landed in linux-next in the form of commit a551c3dbd689 > (firmware: qcom: scm: Convert to streaming DMA APIS), and kernelci.org > found some boot breakage in next-20160523 on apq8064[1] which was > bisected down to this commit. > > I reverted this commit on top o

Re: [PATCH v5 5/5] mmc: sdhci-of-arasan: implement enhanced strobe callback

2016-05-23 Thread Doug Anderson
Shawn, On Sun, May 22, 2016 at 9:14 PM, Shawn Lin wrote: > Currently sdhci-arasan 5.1 can support enhanced strobe function, > and we now limit it just for "arasan,sdhci-5.1". Add > mmc-hs400-enhanced-strobe in DT to enable the function if we're > sure our controller can support it. > > Signed-off

Re: [PATCH v2 05/12] of: add J-Core SPI master bindings

2016-05-23 Thread Rob Herring
On Fri, May 20, 2016 at 02:53:04AM +, Rich Felker wrote: > Signed-off-by: Rich Felker > --- > .../devicetree/bindings/spi/jcore,spi.txt | 23 > ++ > 1 file changed, 23 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt > > di

Re: [PATCH net-next v2 0/7] Driver: Vmxnet3: Version 3

2016-05-23 Thread David Miller
From: Shrikrishna Khare Date: Thu, 19 May 2016 23:53:05 -0700 > This patchset upgrades Vmxnet3 to Version 3. net-next is closed, therefore is it inappropriate to submit new features at this time. Thank you.

Re: [PATCH v2] doc: clarify that trace_events= takes a comma-separated list

2016-05-23 Thread Jonathan Corbet
On Mon, 23 May 2016 16:54:51 -0400 Steven Rostedt wrote: > This version looks good to me. Jonathan, you want to take this patch? Sure, I'll take it. Thanks, jon

Re: [PATCH v5 4/5] mmc: debugfs: add HS400 enhanced strobe description

2016-05-23 Thread Doug Anderson
Shawn, On Sun, May 22, 2016 at 9:14 PM, Shawn Lin wrote: > We introduce HS400 with enhanced strobe function, so we need > to add it for debug show. > > Signed-off-by: Shawn Lin > --- > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: None > > drivers/mmc/core/d

Re: [PATCH v2 1/1] net: hns: avoid null pointer dereference

2016-05-23 Thread David Miller
From: Heinrich Schuchardt Date: Thu, 19 May 2016 21:20:55 +0200 > In the statement > assert(priv || priv->ae_handle); > the right side of || is only evaluated if priv is null. > > v2: > As suggested by David Leight and David Miller the assert > statements are removed. > > Signed-o

Re: [PATCH v2] doc: clarify that trace_events= takes a comma-separated list

2016-05-23 Thread Steven Rostedt
On Mon, 23 May 2016 13:37:58 -0700 Brian Norris wrote: > It took me browsing through the source code to determine that I was, > indeed, using the wrong delimiter in my command lines. So I might as > well document it for the next person. > This version looks good to me. Jonathan, you want to tak

Re: [PATCH v5 2/5] mmc: core: add mmc-hs400-enhanced-strobe support

2016-05-23 Thread Doug Anderson
Shawn, On Sun, May 22, 2016 at 9:13 PM, Shawn Lin wrote: > This patch introduce mmc-hs400-enhanced-strobe for platforms > which want to enable enhanced strobe function from DT if the > mmc host controller claims to support enhanced strobe. > > Signed-off-by: Shawn Lin > > --- > > Changes in v5:

Re: [PATCH net-next] tools: hv: Add a script for bonding synthetic and VF NICs

2016-05-23 Thread David Miller
From: Haiyang Zhang Date: Thu, 19 May 2016 10:23:38 -0700 > This example script creates bonding network devices based on synthetic NIC > (the virtual network adapter usually provided by Hyper-V) and the matching > VF NIC (SRIOV virtual function). So the synthetic NIC and VF NIC can > function as

Re: [PATCH v2 03/12] of: add J-Core interrupt controller bindings

2016-05-23 Thread Rob Herring
On Fri, May 20, 2016 at 02:53:04AM +, Rich Felker wrote: > Signed-off-by: Rich Felker > --- > .../bindings/interrupt-controller/jcore,aic.txt| 28 > ++ > 1 file changed, 28 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/interrupt-controller/j

Re: [PATCH v5 1/5] Documentation: mmc: add mmc-hs400-enhanced-strobe

2016-05-23 Thread Doug Anderson
Shawn, On Sun, May 22, 2016 at 9:13 PM, Shawn Lin wrote: > mmc-hs400-enhanced-strobe is used to claim that the > host can support hs400 mode with enhanced strobe > introduced by emmc 5.1 spec. > > Signed-off-by: Shawn Lin > Acked-by: Rob Herring > --- > > Changes in v5: None > Changes in v4: No

Re: [PATCH v5 2/2] skb_array: ring test

2016-05-23 Thread Michael S. Tsirkin
On Mon, May 23, 2016 at 03:09:18PM +0200, Jesper Dangaard Brouer wrote: > On Mon, 23 May 2016 13:43:46 +0300 > "Michael S. Tsirkin" wrote: > > > Add ringtest based unit test for skb array. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > tools/virtio/ringtest/skb_array.c | 167 > > +++

Re: [PATCH v2 01/12] of: add vendor prefix for J-Core

2016-05-23 Thread Rob Herring
On Fri, May 20, 2016 at 02:53:03AM +, Rich Felker wrote: > The J-Core project (j-core.org) produces open source cpu and SoC > peripheral cores synthesizable as FPGA bitstreams or ASICs. > > Signed-off-by: Rich Felker > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 fi

Re: [PATCH v2 02/12] of: add J-Core cpu bindings

2016-05-23 Thread Rob Herring
On Fri, May 20, 2016 at 02:53:03AM +, Rich Felker wrote: > Signed-off-by: Rich Felker > --- > Documentation/devicetree/bindings/jcore/cpus.txt | 91 > > 1 file changed, 91 insertions(+) > create mode 100644 Documentation/devicetree/bindings/jcore/cpus.txt > > diff

Re: [PATCH 1/1] net: pegasus: simplify logical constraint

2016-05-23 Thread David Miller
From: Heinrich Schuchardt Date: Wed, 18 May 2016 20:40:51 +0200 > If !count is true, count < 4 is also true. > > Signed-off-by: Heinrich Schuchardt Applied.

Re: [mm] 23047a96d7: vm-scalability.throughput -23.8% regression

2016-05-23 Thread Johannes Weiner
Hi, thanks for your report. On Tue, May 17, 2016 at 12:58:05PM +0800, kernel test robot wrote: > FYI, we noticed vm-scalability.throughput -23.8% regression due to commit: > > commit 23047a96d7cfcfca1a6d026ecaec526ea4803e9e ("mm: workingset: per-cgroup > cache thrash detection") > https://git.k

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

2016-05-23 Thread Rafael J. Wysocki
On Mon, May 23, 2016 at 5:19 PM, Viresh Kumar wrote: > On 23-05-16, 15:40, Rafael J. Wysocki wrote: >> On Monday, May 23, 2016 09:27:03 AM Viresh Kumar wrote: >> > On 20-05-16, 23:33, Rafael J. Wysocki wrote: >> > > The policy rwsem is really only needed in cpufreq_stats_create_table(), >> > > be

Re: [PATCH] locking/mutex: Set and clear owner using WRITE_ONCE()

2016-05-23 Thread Jason Low
On Fri, 2016-05-20 at 18:00 -0700, Davidlohr Bueso wrote: > On Fri, 20 May 2016, Waiman Long wrote: > > >I think mutex-debug.h also needs similar changes for completeness. > > Maybe, but given that with debug the wait_lock is unavoidable, doesn't > this send the wrong message? The mutex_set_owne

[PATCH v2] doc: clarify that trace_events= takes a comma-separated list

2016-05-23 Thread Brian Norris
It took me browsing through the source code to determine that I was, indeed, using the wrong delimiter in my command lines. So I might as well document it for the next person. Signed-off-by: Brian Norris --- v2: remove language about /sys/kernel/debug/tracing/set_event, to avoid implying it a

Re: [PATCH 3/4] uio: introduce devicetree bindings for uio_dmem_genirq

2016-05-23 Thread Rob Herring
On Thu, May 19, 2016 at 10:45:56AM +0200, Jan Viktorin wrote: > Hello Rob, > > thank you for your opinion... > > On Wed, 18 May 2016 12:01:05 -0500 > Rob Herring wrote: > > > On Tue, May 17, 2016 at 11:22:19AM +0200, Jan Viktorin wrote: > > > Signed-off-by: Jan Viktorin > > > --- > > > .../de

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-23 Thread Arnd Bergmann
On Monday, May 23, 2016 6:14:08 PM CEST Sudip Mukherjee wrote: > We have been getting build warning about: > drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng_read': > drivers/char/hw_random/stm32-rng.c:82:19: warning: 'sr' may be used > uninitialized

<    1   2   3   4   5   6   7   8   9   >