linux-next: Tree for Aug 10

2015-08-09 Thread Stephen Rothwell
Hi all, Changes since 20150807: The arm-soc tree still had its build failure so I used the version from next-20150806. The net-next tree gained a conflict against the net tree. The wireless-drivers-next tree lost its build failure. The trivial tree gained a conflict against the regulator tree.

Re: [PATCH v2 2/6] mailbox: dt-bindings: Add shared [driver <=> device tree] defines

2015-08-09 Thread Jassi Brar
On Mon, Jul 27, 2015 at 3:14 PM, Lee Jones wrote: > This header is currently only used for defines pertaining to data > direction i.e. Rx, Tx or Loopback. > > Signed-off-by: Lee Jones > --- > include/dt-bindings/mailbox/mailbox.h | 14 ++ > 1 file changed, 14 insertions(+) > create

Re: [RFC PATCH 0/3] New Atmel PIO4 pinctrl/gpio driver

2015-08-09 Thread Ludovic Desroches
Hi Sascha, On Wed, Aug 05, 2015 at 09:31:17AM +0200, Sascha Hauer wrote: > On Fri, Jul 31, 2015 at 05:08:07PM +0200, Ludovic Desroches wrote: > > Hi, > > > > Following our discussion, I send an RFC version of my driver. RFC because > > it is > > not totally achieved, some cleanup and feature add

[PATCH 1/2] mm/hwpoison: fix fail to split THP w/ refcount held

2015-08-09 Thread Wanpeng Li
THP pages will get a refcount in madvise_hwpoison() w/ MF_COUNT_INCREASED flag, however, the refcount is still held when fail to split THP pages. Fix it by reducing the refcount of THP pages when fail to split THP. Signed-off-by: Wanpeng Li --- mm/memory-failure.c |2 ++ 1 files changed, 2

[PATCH 2/2] mm/hwpoison: fix refcount of THP head page in no-injection case

2015-08-09 Thread Wanpeng Li
Hwpoison injection takes a refcount of target page and another refcount of head page of THP if the target page is the tail page of a THP. However, current code doesn't release the refcount of head page if the THP is not supported to be injected wrt hwpoison filter. Fix it by reducing the refcoun

Re: [PATCH v2 5/6] mailbox: Add generic mechanism for testing Mailbox Controllers

2015-08-09 Thread Jassi Brar
On Mon, Jul 27, 2015 at 3:14 PM, Lee Jones wrote: > This particular Client implementation uses shared memory in order > to pass messages between Mailbox users; however, it can be easily > hacked to support any type of Controller. > > Signed-off-by: Lee Jones > --- > drivers/mailbox/Kconfig

Re: [PATCH] thermal: rockhip: fix setting thermal shutdown polarity

2015-08-09 Thread Caesar Wang
Dear Dmitry, Thanks to work for it. 在 2015年08月08日 05:00, Dmitry Torokhov 写道: When requested thermal shutdown signal polarity is low we need to make sure that the bit representing high level of signal is reset, and not set all other bits in that register. Also rename TSADCV2_INT_PD_CLEAR to TSA

Re: [PATCH] eventfd: implementation of EFD_MASK flag

2015-08-09 Thread Martin Sustrik
On 2015-08-10 08:23, Damian Hobson-Garcia wrote: Replying to my own post, but I had the following comments/questions. Martin, if you have any response to my comments I would be very happy to hear them. On 2015-08-10 2:51 PM, Damian Hobson-Garcia wrote: From: Martin Sustrik [snip] write(2

Re: [PATCH v2] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-09 Thread maitysanchayan
Hello, On 15-08-08 19:46:00, Jonathan Cameron wrote: > On 08/08/15 18:22, maitysancha...@gmail.com wrote: > > Hello Jonathan, > > > > On 15-08-08 15:29:47, Jonathan Cameron wrote: > >> On 05/08/15 13:10, Sanchayan Maity wrote: > >>> This patch adds support for IIO buffer to the Vybrid ADC driver.

Re: [PATCH] thermal: rockhip: fix setting thermal shutdown polarity

2015-08-09 Thread Caesar Wang
Sorry, forgot it! \s 'rockhip' to 'rockchip' :-) 在 2015年08月10日 14:34, Caesar Wang 写道: Dear Dmitry, Thanks to work for it. 在 2015年08月08日 05:00, Dmitry Torokhov 写道: When requested thermal shutdown signal polarity is low we need to make sure that the bit representing high level of signal is rese

Re: [3/5] drivers/tty: make hvc_console.c explicitly non-modular

2015-08-09 Thread Michael Ellerman
On Sun, 2015-09-08 at 00:51:35 UTC, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/tty/hvc/Kconfig:config HVC_DRIVER > drivers/tty/hvc/Kconfig:bool > > ...meaning that it currently is not being built as a module by anyone. > > Lets remo

[PATCH 6/6] PM / OPP: Add debugfs support

2015-08-09 Thread Viresh Kumar
This patch adds debugfs support to OPP layer to export OPPs and their properties for all the devices. This creates a top level directory: /sys/kernel/debug/opp and then device specific directories (based on device names) inside it. For example: 'cpu0', 'cpu1', etc.. If multiple devices share the

[PATCH 5/6] PM / OPP: Move cpu specific code to opp/cpu.c

2015-08-09 Thread Viresh Kumar
Move cpu device specific code out of generic opp library, and add it to cpu.c. Along with that, create a core-internal opp.h header, which will be used to share structures and function prototypes within opp core. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 276 +-

Re: [PATCH RT 2/7] mm/slub: move slab initialization into irq enabled region

2015-08-09 Thread Mike Galbraith
On Tue, 2015-08-04 at 21:18 -0400, Steven Rostedt wrote: > @@ -1310,6 +1317,8 @@ static struct page *allocate_slab(struct > kmem_cache *s, gfp_t flags, int node) > struct kmem_cache_order_objects oo = s->oo; > gfp_t alloc_gfp; > bool enableirqs; > + void *start, *p; >

[PATCH 1/6] PM / OPP: reuse of_parse_phandle()

2015-08-09 Thread Viresh Kumar
We already have a better API to get the opp descriptor block's node from cpu-node. Lets reuse that instead of creating our own routines for the same stuff. That cleans the code a lot. Signed-off-by: Viresh Kumar --- drivers/base/power/opp.c | 70 +---

[PATCH 4/6] PM / OPP: Move opp core to its own directory

2015-08-09 Thread Viresh Kumar
OPP code is expanding and is already present in multiple directories (cpufreq and power). Lets move it to its own directory, to manage it better. This also moves/renames the cpufreq_opp file to cpu.c, as it will contain helpers for cpu device. Its not just about cpufreq, other frameworks can use O

[PATCH 2/6] PM / OPP: restructure _of_init_opp_table_v2()

2015-08-09 Thread Viresh Kumar
'dev_opp' will always be NULL in _of_init_opp_table_v2() after creating OPPs for a device. There is no point comparing it against NULL there. Restructure code a bit to make it more efficient. Signed-off-by: Viresh Kumar --- drivers/base/power/opp.c | 21 ++--- 1 file changed, 10

[PATCH 3/6] PM / OPP: Prefix exported opp routines with dev_pm_opp_

2015-08-09 Thread Viresh Kumar
That's the naming convention followed in most of opp core, but few recent additions didn't follow this, fix them. Signed-off-by: Viresh Kumar --- drivers/base/power/opp.c | 18 +- drivers/cpufreq/cpufreq-dt.c | 10 +- include/linux/pm_opp.h | 16

Re: [PATCH] thermal: rockchip: fix handling of invalid readings

2015-08-09 Thread Caesar Wang
Dear Dmitry, Thanks your patch. The code looks like fine,but I don't think the TS-ADC will work on rk3288 SoC. 在 2015年08月08日 04:59, Dmitry Torokhov 写道: We attempted to signal invalid code by returning -EAGAIN from rk_tsadcv2_code_to_temp(), unfortunately the return value was stuffed directly

[PATCH 10/27] perf tools: Suppress probing messages when probing by BPF loading

2015-08-09 Thread Wang Nan
This patch suppresses message output by add_perf_probe_events() and del_perf_probe_events() if they are triggered by BPF loading. Before this patch, when using 'perf record' with BPF object/source as event selector, following message will be output: Added new event: perf_bpf_probe:

[PATCH 12/27] perf tools: Infrastructure for compiling scriptlets when passing '.c' to --event

2015-08-09 Thread Wang Nan
This patch provides infrastructure for passing source files to --event directly using: # perf record --event bpf-file.c command This patch does following works: 1) Allow passing '.c' file to '--event'. parse_events_load_bpf() is expanded to allow caller tell it whether the passed file is s

[PATCH 4/6] staging: android: allow building sync and sw_sync as a module

2015-08-09 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- drivers/staging/android/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig index 00f7894..93b65bd 100644 --- a/drivers/staging/android/Kconfig +++ b/drivers/staging/andr

[PATCH 5/6] mm: export shmem_zero_setup for modules

2015-08-09 Thread Mike Rapoport
to allow building Android ASHMEM as module Signed-off-by: Mike Rapoport --- mm/shmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/shmem.c b/mm/shmem.c index 4caf8ed..80b4098 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -3411,6 +3411,7 @@ int shmem_zero_setup(struct vm_area_struct *vma

[PATCH 2/6] staging: android: sync_debug.c: add include for linux/module.h

2015-08-09 Thread Mike Rapoport
Otherwise an apptempt to build sync_debug.o as modules results in compiler errors: CC [M] drivers/staging/android/sync_debug.o drivers/staging/android/sync_debug.c:226:1: warning: data definition has no type or storage class [enabled by default] late_initcall(sync_debugfs_init); drivers/staging

[PATCH 6/6] staging: android: allow building ashmem as a module

2015-08-09 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- drivers/staging/android/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig index 93b65bd..5907e07 100644 --- a/drivers/staging/android/Kconfig +++ b/drivers/staging/android/

[PATCH 0/6] staging: android: allow building some drivers as a module

2015-08-09 Thread Mike Rapoport
Hi, These patches enable building of timed_gpio, sync* and ashmem as a module Mike Rapoport (6): staging: android: allow building timed_gpio as a module staging: android: sync_debug.c: add include for linux/module.h staging: android: combine sync.o and sync_debug.o into sync-core.o stagin

[PATCH 1/6] staging: android: allow building timed_gpio as a module

2015-08-09 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- drivers/staging/android/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/Kconfig b/drivers/staging/android/Kconfig index 6830712..00f7894 100644 --- a/drivers/staging/android/Kconfig +++ b/drivers/staging/android/

[PATCH 3/6] staging: android: combine sync.o and sync_debug.o into sync-core.o

2015-08-09 Thread Mike Rapoport
to avoid cross dependencies when building sync as module Signed-off-by: Mike Rapoport --- drivers/staging/android/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/Makefile b/drivers/staging/android/Makefile index c7b6c99..d9ebca6 100644 ---

[PATCH 05/27] perf record, bpf: Parse and probe eBPF programs probe points

2015-08-09 Thread Wang Nan
This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names of BPF programs. It parses the section names of each eBPF program and creates corresponding 'struct perf_probe_event' structures. The parse_perf_probe_command() function is used to do

[GIT PULL 00/27] perf tools: filtering events using eBPF programs

2015-08-09 Thread Wang Nan
Hi Arnaldo, This is patches needs to be reviewed after Ingo's pull. In this series, I made following improvements: 1. Remove all pr_err and introduce bpf__strerror_{prepare_load,probe,load}. All callers are switched to strerror style; 2. Avoid the global 'struct perf_probe_event' arr

[PATCH 02/27] perf ebpf: Add the libbpf glue

2015-08-09 Thread Wang Nan
The 'bpf-loader.[ch]' files are introduced in this patch. Which will be the interface between perf and libbpf. bpf__prepare_load() resides in bpf-loader.c. Dummy functions should be used because bpf-loader.c is available only when CONFIG_LIBBPF is on. Signed-off-by: Wang Nan Acked-by: Alexei Star

[PATCH 08/27] perf tools: Add bpf_fd field to evsel and config it

2015-08-09 Thread Wang Nan
This patch adds a bpf_fd field to 'struct evsel' then introduces method to config it. In bpf-loader, a bpf__foreach_tev() function is added, which calls the callback function for each 'struct probe_trace_event' events for each bpf program with their file descriptors. In evlist.c, perf_evlist__add_b

[PATCH 07/27] perf record: Load all eBPF object into kernel

2015-08-09 Thread Wang Nan
This patch utilizes bpf_object__load() provided by libbpf to load all objects into kernel. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkmann Cc: David Ahern Cc: He Kuang Cc: Jiri Olsa Cc: Kaixu Xia Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Paul Mackerra

[PATCH 04/27] perf probe: Attach trace_probe_event with perf_probe_event

2015-08-09 Thread Wang Nan
This patch drops struct __event_package structure. Instead, it adds trace_probe_event into 'struct perf_probe_event'. trace_probe_event information gives further patches a chance to access actual probe points and actual arguments. Using them, bpf_loader will be able to attach one bpf program to di

Re: [PATCH] eventfd: implementation of EFD_MASK flag

2015-08-09 Thread Damian Hobson-Garcia
Replying to my own post, but I had the following comments/questions. Martin, if you have any response to my comments I would be very happy to hear them. On 2015-08-10 2:51 PM, Damian Hobson-Garcia wrote: > From: Martin Sustrik > [snip] > > write(2): > > User is allowed to write only buffers co

[PATCH 16/27] bpf tools: Load a program with different instances using preprocessor

2015-08-09 Thread Wang Nan
In this patch, caller of libbpf is able to control the loaded programs by installing a preprocessor callback for a BPF program. With preprocessor, different instances can be created from one BPF program. This patch will be used by perf to generate different prologue for different 'struct probe_tra

[PATCH 01/27] perf tools: Make perf depend on libbpf

2015-08-09 Thread Wang Nan
By adding libbpf into perf's Makefile, this patch enables perf to build libbpf during building if libelf is found and neither NO_LIBELF nor NO_LIBBPF is set. The newly introduced code is similar to libapi and libtraceevent building in Makefile.perf. MANIFEST is also updated for 'make perf-*-src-pk

[PATCH 09/27] perf tools: Attach eBPF program to perf event

2015-08-09 Thread Wang Nan
This is the final patch which makes basic BPF filter work. After applying this patch, users are allowed to use BPF filter like: # perf record --event ./hello_world.c ls In this patch PERF_EVENT_IOC_SET_BPF ioctl is used to attach eBPF program to a newly created perf event. The file descriptor of

[PATCH 11/27] perf record: Add clang options for compiling BPF scripts

2015-08-09 Thread Wang Nan
Although previous patch allows setting BPF compiler related options in perfconfig, on some ad-hoc situation it still requires passing options through cmdline. This patch introduces 2 options to 'perf record' for this propose: --clang-path and --clang-opt. Signed-off-by: Wang Nan Cc: Alexei Starov

[PATCH 13/27] perf tests: Enforce LLVM test for BPF test

2015-08-09 Thread Wang Nan
This patch replaces the original toy BPF program with previous introduced bpf-script-example.c. Dynamically embedded it into 'llvm-src.c'. The newly introduced BPF program attaches a BPF program at 'sys_epoll_pwait()', and collect half samples from it. perf itself never use that syscall, so furthe

Linux 3.12.46

2015-08-09 Thread Jiri Slaby
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 I'm announcing the release of the 3.12.46 kernel. All users of the 3.12 kernel series must upgrade. The updated 3.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y and can be

[PATCH 18/27] perf probe: Reset args and nargs for probe_trace_event when failure

2015-08-09 Thread Wang Nan
When failure occures in add_probe_trace_event(), args in probe_trace_event is incomplete. Since information in it may be used in further, this patch frees the allocated memory and set it to NULL to avoid dangling pointer. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Dani

[PATCH 25/27] perf record: Support custom vmlinux path

2015-08-09 Thread Wang Nan
From: He Kuang Make perf-record command support --vmlinux option if BPF_PROLOGUE is on. 'perf record' needs vmlinux as the source of DWARF info to generate prologue for BPF programs, so path of vmlinux should be specified. Short name 'k' has been taken by 'clockid'. This patch skips the short o

[PATCH 20/27] perf tools: Add BPF_PROLOGUE config options for further patches

2015-08-09 Thread Wang Nan
If both LIBBPF and DWARF are detected, it is possible to create prologue for eBPF programs to help them accessing kernel data. HAVE_BPF_PROLOGUE and CONFIG_BPF_PROLOGUE is added as flags for this feature. PERF_HAVE_ARCH_GET_REG_OFFSET indicates an architecture supports converting name of a registe

[PATCH 15/27] perf test: Add 'perf test BPF'

2015-08-09 Thread Wang Nan
This patch adds BPF testcase for testing BPF event filtering. By utilizing the result of 'perf test LLVM', this patch further forks a 'perf record' to load and use it. The BPF script in 'perf test LLVM' collect half of execution of epoll_pwait(), 'perf test TESTTARGET_EPOLL_PWAIT_LOOP' run 111 ti

[PATCH 14/27] perf test: Enable 'perf test' run as test targets

2015-08-09 Thread Wang Nan
This patch introduce test target support which allows 'perf test' work as program be traced by test cases. One test target 'testtarget__epoll_pwait_loop' is added, which calls epoll_pwait() 111 times with different invalid fd. Further test cases can use it to test result of reacing and filtering. B

[PATCH 24/27] perf tools: Use same BPF program if arguments are identical

2015-08-09 Thread Wang Nan
This patch allows creating only one BPF program for different 'probe_trace_event'(tev) generated by one 'perf_probe_event'(pev), if their prologues are identical. This is done by comparing argument list of different tev, and maps type of prologue and tev using a mapping array. This patch utilizes

[PATCH 22/27] perf tools: Add prologue for BPF programs for fetching arguments

2015-08-09 Thread Wang Nan
This patch generates prologue for a BPF program which fetch arguments for it. With this patch, the program can have arguments as follow: SEC("lock_page=__lock_page page->flags") int lock_page(struct pt_regs *ctx, int err, unsigned long flags) { return 1; } This patch passes at most 3

[PATCH 19/27] perf tools: Move linux/filter.h to tools/include

2015-08-09 Thread Wang Nan
From: He Kuang This patch moves filter.h from include/linux/kernel.h to tools/include/linux/filter.h to enable other libraries use macros in it, like libbpf which will be introduced by further patches. Currenty, the moved filter.h only contains the useful macros needed by libbpf for not introduci

[PATCH 21/27] perf tools: Introduce arch_get_reg_info() for x86

2015-08-09 Thread Wang Nan
From: He Kuang arch_get_reg_info() is a helper function which converts register name like "%rax" to offset of a register in 'struct pt_regs', which is required by BPF prologue generator. This patch replaces original string table by a 'struct reg_info' table, which records offset of registers acc

[PATCH 23/27] perf tools: Generate prologue for BPF programs

2015-08-09 Thread Wang Nan
This patch generates prologue for each 'struct probe_trace_event' for fetching arguments for BPF programs. After bpf__probe(), iterate over each programs to check whether prologue is required. If none of 'struct perf_probe_event' a program will attach to has at least one argument, simply skip prep

[PATCH 17/27] perf tools: Fix probe-event.h include

2015-08-09 Thread Wang Nan
Commit 7b6ff0bdbf4f7f429c2116cca92a6d171217449e ("perf probe ppc64le: Fixup function entry if using kallsyms lookup") adds 'struct map' into probe-event.h but not include "util/map.h" in it. This patch fixes it. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkman

[PATCH 27/27] perf tools: Support attach BPF program on uprobe events

2015-08-09 Thread Wang Nan
This patch appends new syntax to BPF object section name to support probing at uprobe event. Now we can use BPF program like this: SEC( "target=/lib64/libc.so.6\n" "libcwrite=__write" ) int libcwrite(void *ctx) { return 1; } Where, in section name of a program, before the main config

[PATCH 06/27] perf bpf: Collect 'struct perf_probe_event' for bpf_program

2015-08-09 Thread Wang Nan
This patch utilizes bpf_program__set_private(), binding perf_probe_event with bpf program by private field. Saving those information so 'perf record' knows which kprobe point a program should be attached. Since data in 'struct perf_probe_event' is build by 2 stages, tev_ready is used to mark whet

[PATCH 03/27] perf tools: Enable passing bpf object file to --event

2015-08-09 Thread Wang Nan
By introducing new rules in tools/perf/util/parse-events.[ly], this patch enables 'perf record --event bpf_file.o' to select events by an eBPF object file. It calls parse_events_load_bpf() to load that file, which uses bpf__prepare_load() and finally calls bpf_object__open() for the object files.

[PATCH 26/27] perf probe: Init symbol as kprobe

2015-08-09 Thread Wang Nan
Before this patch, add_perf_probe_events() init symbol maps only for uprobe if the first 'struct perf_probe_event' passed to it is a uprobe event. This is a trick because 'perf probe''s command line syntax constrains the first elements of the probe_event arrays must be kprobes if there is one kprob

Re: [PATCH] i2c: allow specifying separate wakeup interrupt in device tree

2015-08-09 Thread Wolfram Sang
> > I think it is a useful addition. Can someone add a paragraph describing > > this handling on top of the new generic i2c binding docs? > > > > http://patchwork.ozlabs.org/patch/505368/ > > Yes, I will. Great, thanks! > > > > > > @@ -659,20 +662,47 @@ static int i2c_device_probe(struct dev

[PATCH V1 Resend 11/11] net: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar --- net/openvswitch/datapath.c | 2 +- net/sctp/socket.c | 2 +- net/socket.c | 6 +++--- 3 files changed, 5 insertions

[PATCH V1 Resend 10/11] mm: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Acked-by: Kirill A. Shutemov Signed-off-by: Viresh Kumar --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/h

[PATCH V1 Resend 09/11] blk-cgroup: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Acked-by: Tejun Heo Signed-off-by: Viresh Kumar --- include/linux/blk-cgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/blk-cgro

[PATCH V1 Resend 08/11] fs: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Reviewed-by: David Howells Signed-off-by: Viresh Kumar --- fs/cifs/readdir.c| 2 +- fs/ecryptfs/inode.c | 2 +- fs/ext4/extents.c| 6 +++

[PATCH V1 Resend 06/11] drivers: net: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Acked-by: Murali Karicheri Signed-off-by: Viresh Kumar --- drivers/net/ethernet/ti/netcp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH V1 Resend 05/11] drivers: misc: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar --- drivers/misc/c2port/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/c2port/core.c b/drivers/misc/c

[PATCH V1 Resend 07/11] drivers: rtc: Drop (un)likely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. gemini driver was using likely() for a failure case while the rtc driver is getting registered. That looks wrong and it should really be unlikely. But because we are killin

[PATCH V1 Resend 04/11] drivers: md: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar --- drivers/md/dm-snap-persistent.c | 2 +- drivers/md/dm-verity.c| 2 +- drivers/md/persistent-data/dm-

[PATCH V1 Resend 03/11] drivers: devfreq: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar --- drivers/devfreq/devfreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devf

[PATCH V1 Resend 01/11] err.h: add (missing) unlikely() to IS_ERR_OR_NULL()

2015-08-09 Thread Viresh Kumar
IS_ERR_VALUE() already contains it and so we need to add this only to the !ptr check. That will allow users of IS_ERR_OR_NULL(), to not add this compiler flag. Signed-off-by: Viresh Kumar --- include/linux/err.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/er

[PATCH V1 Resend 02/11] PM / OPP: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar --- drivers/base/power/opp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/power/opp.c b/drivers/base

[PATCH V1 Resend 00/11] vial: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-09 Thread Viresh Kumar
Hi Andrew, This cleans up the usage of IS_ERR(_OR_NULL)(), where the callers have added additional unlikely compiler flag to them. It also fixes the definition of IS_ERR_OR_NULL(), to use unlikely for all checks it does. V1->V2: - Some of the patches are already applied - Dropped input subsystem

Query: consistent method for identifying watchdog driver

2015-08-09 Thread Pratyush Anand
Hi Watchdog Folks, I need some way to identify the driver/module for a given watchdog node say /dev/watchdog0. Documentation/watchdog/watchdog-api.txt says: identitya string identifying the watchdog driver However, all the watchdog driver does not define identity as DRV_NAME. Ot

[PATCH] sched: sync with the prev cfs when changing cgroup within a cpu

2015-08-09 Thread byungchul . park
From: Byungchul Park current code seems to be wrong with cfs_rq->blocked_load_avg when changing a task's cgroup(=cfs_rq) to another. i tested with "echo pid > cgroup" and found that cfs_rq->blocked_load_avg became larger and larger whenever i changed a cgroup to another again and again. it is po

Re: [PATCH v4 2/7] mm: kasan: introduce generic kasan_populate_zero_shadow()

2015-08-09 Thread Aneesh Kumar K.V
Andrey Ryabinin writes: > Introduce generic kasan_populate_zero_shadow(start, end). > This function maps kasan_zero_page to the [start, end] addresses. > > In follow on patches it will be used for ARMv8 (and maybe other > architectures) and will replace x86_64 specific populate_zero_shadow(). > >

Re: [PATCH] i2c: allow specifying separate wakeup interrupt in device tree

2015-08-09 Thread Dmitry Torokhov
On Sun, Aug 09, 2015 at 05:22:55PM +0200, Wolfram Sang wrote: > On Thu, Jul 30, 2015 at 01:14:31PM -0700, Dmitry Torokhov wrote: > > Instead of having each i2c driver individually parse device tree data in > > case it or platform supports separate wakeup interrupt, and handle > > enabling and disab

[PATCH] eventfd: implementation of EFD_MASK flag

2015-08-09 Thread Damian Hobson-Garcia
From: Martin Sustrik When implementing network protocols in user space, one has to implement fake file descriptors to represent the sockets for the protocol. Polling on such fake file descriptors is a problem (poll/select/epoll accept only true file descriptors) and forces protocol implementers

[RFC/PATCH] Generalize poll events from eventfd

2015-08-09 Thread Damian Hobson-Garcia
Hello all, eventfd is very useful for generating POLLIN/POLLOUT poll events from user space but some applications may want to generate POLLPRI/POLLERR events as well. This patch submission aims to generalize the events generated by an eventfd. This is a resubmission of a patch from Feb 2013[1]. Th

Re: [PATCH v7 0/5] bpf: Introduce the new ability of eBPF programs to access hardware PMU counter

2015-08-09 Thread David Miller
From: Kaixu Xia Date: Thu, 6 Aug 2015 07:02:31 + > The detail of patches is as follow: > > Patch 1/5 add the necessary core perf APIs perf_event_attrs(), > perf_event_get(),perf_event_read_local() when accessing events > counters in eBPF programs > > Patch 2/5 rewrites part of the bpf_prog_

Re: [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: support switchdev FDB objects

2015-08-09 Thread David Miller
From: Vivien Didelot Date: Thu, 6 Aug 2015 01:44:01 -0400 > This patchset refactors the DSA and mv88e6xxx code to use the switchdev FDB > objects. Series applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel

Re: linux-next: build failure after merge of the gpio tree

2015-08-09 Thread Dmitry Torokhov
Hi Stephen, On Mon, Aug 10, 2015 at 03:07:41PM +1000, Stephen Rothwell wrote: > Hi Linus, > > After merging the gpio tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/input/touchscreen/elants_i2c.c: In function 'elants_i2c_probe': > drivers/input/touchscreen/el

Re: [PATCH] [trivial] net:wimax: Fix doucble word "the the" in networking.xml

2015-08-09 Thread David Miller
From: Masanari Iida Date: Thu, 6 Aug 2015 12:52:47 +0900 > This patch fix a double word "the the" > in Documentation/DocBook/networking.xml and > Documentation/DocBook/networking/API-Wimax-report-rfkill-sw.html. > > These files are generated from comment in source, so I had to > fix the typo in

Re: [PATCH 4.1 000/123] 4.1.5-stable review

2015-08-09 Thread Sudip Mukherjee
On Sat, Aug 08, 2015 at 03:07:58PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.1.5 release. > There are 123 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 know.

Re: [PATCH] net: Unbreak resetting default values for tcp_wmem/udp_wmem_min

2015-08-09 Thread David Miller
From: Calvin Owens Date: Wed, 5 Aug 2015 13:26:54 -0700 > Commit 8133534c760d4083 ("net: limit tcp/udp rmem/wmem to > SOCK_{RCV,SND}BUF_MIN") modified four sysctls to enforce that the values > written to them are not less than SOCK_MIN_{RCV,SND}BUF. > > This change is fine for tcp_rmem and udp_r

linux-next: build failure after merge of the gpio tree

2015-08-09 Thread Stephen Rothwell
Hi Linus, After merging the gpio tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/input/touchscreen/elants_i2c.c: In function 'elants_i2c_probe': drivers/input/touchscreen/elants_i2c.c:1176:19: error: too few arguments to function 'devm_gpiod_get' ts->reset_gpio =

Re: [PATCH 3.14 00/29] 3.14.50-stable review

2015-08-09 Thread Sudip Mukherjee
On Sat, Aug 08, 2015 at 03:07:23PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.14.50 release. > There are 29 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 know

Re: [PATCH] Fix various coding style problem

2015-08-09 Thread Sudip Mukherjee
On Sun, Aug 09, 2015 at 11:48:34PM +0800, Swee Hua Law wrote: > 1) do not initialise globals to NULL > 2) improve readability of hlist_for_each_entry_safe() > 3) move */ to a separate line > 4) change symbol == NULL to !symbol These were many different changes in a single patch. Please break them

Re: [PATCH 3.10 00/26] 3.10.86-stable review

2015-08-09 Thread Sudip Mukherjee
On Sat, Aug 08, 2015 at 03:07:16PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.10.86 release. > There are 26 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 know

Re: [PATCH v2] staging: wilc1000: Remove pointer and integer comparision

2015-08-09 Thread Sudip Mukherjee
On Sun, Aug 09, 2015 at 09:05:11PM +0530, Chandra S Gorentla wrote: > Removed pointer check with integer; this fixes 'sparse' error - > error: incompatible types for operation (>) >left side has type unsigned char [usertype] *[usertype] pu8Tail >right side has type int > > Signed-off-by: C

Re: linux-next: manual merge of the trivial tree with the regulator tree

2015-08-09 Thread Krzysztof Kozłowski
2015-08-10 11:37 GMT+09:00 Stephen Rothwell : > Hi Jiri, > > Today's linux-next merge of the trivial tree got a conflict in: > > drivers/regulator/max77843.c > > between commit: > > 2a32b401a11f ("regulator: Remove the max77843 driver") > > from the regulator tree and commit: > > 971bd8fa369a

Re: [PATCH 5/8] serial: imx: save and restore context in the suspend path

2015-08-09 Thread Eduardo Valentin
On Mon, Aug 10, 2015 at 12:30:18AM -0300, Fabio Estevam wrote: > Hi Eduardo, > > On Sun, Aug 9, 2015 at 3:19 PM, Eduardo Valentin wrote: > > This change teaches the imx serial driver to save its > > context and restore it across suspend and resume path. > > To do so, it introduces serial_imx_rest

Re: [PATCH 5/8] serial: imx: save and restore context in the suspend path

2015-08-09 Thread Fabio Estevam
Hi Eduardo, On Sun, Aug 9, 2015 at 3:19 PM, Eduardo Valentin wrote: > This change teaches the imx serial driver to save its > context and restore it across suspend and resume path. > To do so, it introduces serial_imx_restore_context() > and serial_imx_save_context() functions. They use > a shado

Re: [PATCH] misc: sram: extend usage of reserved partitions

2015-08-09 Thread Greg Kroah-Hartman
On Mon, Aug 10, 2015 at 12:40:02AM +0300, Vladimir Zapolskiy wrote: > This change adds functionality to operate on reserved SRAM partitions > described in device tree file. Two partition properties are added, > "pool" and "export", the first one allows to share a specific partition > for usage by a

[PATCH 1/3] nvmem: fix the out-of-range leak in read/write()

2015-08-09 Thread Shunqian Zheng
From: ZhengShunQian The position to read/write must be less than max register size. Signed-off-by: ZhengShunQian --- drivers/nvmem/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index d3c6676..f4af8e5 100644 --- a/driv

[PATCH 0/3] Add eFuse driver of Rockchip SoC

2015-08-09 Thread Shunqian Zheng
From: ZhengShunQian Base on nvmem framework, this three patches implement the eFuse driver of Rockchip SoC. The data from eFuse contains CPU leakage, chip code and version etc. The flow of reading data from eFuse is quite simple, config the CTRL register, write data address to CTRL register, the

[PATCH 3/3] clk: rockchip: do not gate the efuse256 clock

2015-08-09 Thread Shunqian Zheng
From: ZhengShunQian Always enable the clock of efuse256. Base on the nvmem framework, it seems like there is not a good way to enable the clock when actual needed. Signed-off-by: ZhengShunQian --- drivers/clk/rockchip/clk-rk3288.c | 2 +- include/dt-bindings/clock/rk3288-cru.h | 1 + 2 fi

[PATCH 2/3] nvmem: rockchip-efuse: implement eFuse driver

2015-08-09 Thread Shunqian Zheng
From: ZhengShunQian There are some SoC specified values store in eFuse, such as the cpu_leakage and cpu_version, this driver can expose these values to /sys base on nvmem. Also add the docs of efuse bindings and the rk3288's efuse config. Signed-off-by: Caesar Wang Signed-off-by: ZhengShunQian

Re: [PATCH v9 6/6] block: loop: support DIO & AIO

2015-08-09 Thread Ming Lei
On Sun, Aug 9, 2015 at 7:41 PM, Dave Chinner wrote: > On Sun, Aug 09, 2015 at 10:27:14AM -0400, Ming Lei wrote: >> On Sun, Aug 9, 2015 at 9:44 AM, Christoph Hellwig wrote: >> > On Sun, Aug 09, 2015 at 09:04:32AM -0400, Ming Lei wrote: >> >> Now the logical block size of loop is 512byte, but the s

Re: kdbus: to merge or not to merge?

2015-08-09 Thread David Lang
On Sun, 9 Aug 2015, Greg Kroah-Hartman wrote: The issue is with userspace clients opting in to receive all NameOwnerChanged messages on the bus, which is not a good idea as they constantly get woken up and process them, which is why the CPU was pegged.  This issue should now be fixed in Rawhide

Re: [PATCH v4 1/2] extcon: palmas: Support GPIO based USB ID detection

2015-08-09 Thread Chanwoo Choi
Hi Lee, This patch modified the header file in the MFD directory (include/linux/mfd/palmas.h). After you review this patch, I'll apply it on extcon-next and sent the pull request for Linux 4.3. Thanks, Chanwoo Choi On 08/07/2015 05:24 PM, Roger Quadros wrote: > Hi Lee / Samuel, > > On 03/08/

kdbus_proc_permission (Re: [GIT PULL] kdbus updates for Greg)

2015-08-09 Thread Andy Lutomirski
I spotted this: +/** + * kdbus_proc_permission() - check /proc permissions on target pid + * @pid_ns:namespace we operate in + * @cred: credentials of requestor + * @target:target process + * + * This checks whether a process with credentials @cred can access i

linux-next: manual merge of the trivial tree with the regulator tree

2015-08-09 Thread Stephen Rothwell
Hi Jiri, Today's linux-next merge of the trivial tree got a conflict in: drivers/regulator/max77843.c between commit: 2a32b401a11f ("regulator: Remove the max77843 driver") from the regulator tree and commit: 971bd8fa369a ("treewide: Fix typo in printk") from the trivial tree. I fixed

Re: [PATCH] zram: fix possible race when checking idle_strm

2015-08-09 Thread Sergey Senozhatsky
Hello Joonsoo, On (08/10/15 09:32), Joonsoo Kim wrote: > > on the other hand... it's actually > > > > wait_event() is > > > > if (condition) > > break; > > prepare_to_wait_event(&wq, &__wait, state) > > if (condition) > > break; > > schedule(); > > >

  1   2   3   >