Re: [PATCH v4 02/13] usb: otg-fsm: support multiple instances

2015-09-06 Thread Peter Chen
On Mon, Aug 24, 2015 at 04:21:13PM +0300, Roger Quadros wrote: > Move the state_changed variable into struct otg_fsm > so that we can support multiple instances. > > Signed-off-by: Roger Quadros > --- > drivers/usb/common/usb-otg-fsm.c | 10 -- > include/linux/usb/otg-fsm.h | 1 + >

[PATCH] x86/head_32.S: Remove unused macros

2015-09-06 Thread Alexander Kuleshov
This patch removes two unused macros: X86_VENDOR and X86_HARD_MATH from the arch/x86/kernel/head_32.S. Also as CPUINFO_x86_vendor not used anywhere, we can safely remove it from asm-offsets_32.c Signed-off-by: Alexander Kuleshov --- arch/x86/kernel/asm-offsets_32.c | 1 - arch/x86/kernel/head_32

[PATCH 10/27] perf tools: Allow BPF placeholder dummy events to collect --filter options

2015-09-06 Thread Wang Nan
This patch improves collection and setting of filters, allows --filter be set to BPF placeholder events (which is a software dummy event). perf_evsel__is_dummy(), perf_evsel__is_bpf_placeholder() and perf_evsel__can_filter() are introduced for this. Test result: # perf record --event dummy --ex

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

2015-09-06 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 15/27] perf test: Add 'perf test BPF'

2015-09-06 Thread Wang Nan
This patch adds BPF testcase for testing BPF event filtering. By utilizing the result of 'perf test LLVM', this patch compiles the eBPF sample program then test it ability. The BPF script in 'perf test LLVM' collects half of execution of epoll_pwait(). This patch runs 111 times of it, so the resul

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

2015-09-06 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. Functions in bpf-loader.c should not report er

[PATCH 27/27] perf test: Test BPF prologue

2015-09-06 Thread Wang Nan
This patch introduces a new BPF script to test BPF prologue. The new script probes at null_lseek, which is the function pointer when we try to lseek on '/dev/null'. null_lseek is chosen because it is a function pointer, so we don't need to consider inlining and LTP. By extracting file->f_mode, bp

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

2015-09-06 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

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

2015-09-06 Thread Wang Nan
(I forget to CC mailing list when sending previous pull req. Sorry for the noisy.) Hi Arnaldo, I rebased my code on your perf/core and send a new pull request. You can find main changes in the tag message. The most biggest changes are the resesigning of dummy placeholder and the new testcase

[PATCH 19/27] perf tools: Introduce regs_query_register_offset() for x86

2015-09-06 Thread Wang Nan
regs_query_register_offset() 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. Since the function is identical, try to reuse the code in arch/x86/kernel/ptrace.c. Comment inside dwarf-regs.c list

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

2015-09-06 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.o 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 01/27] perf tools: Don't write to evsel if parser doesn't collect evsel

2015-09-06 Thread Wang Nan
If parse_events__scanner() collects no entry, perf_evlist__last(evlist) is invalid. Although it shouldn't happen at this point, before calling perf_evlist__last(), we should ensure the list is not empty for safety reason. There are 3 places need this checking: 1. Before setting cmdline_group_bo

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

2015-09-06 Thread Wang Nan
From: He Kuang 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

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

2015-09-06 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 05/27] perf record, bpf: Parse and create probe points for BPF programs

2015-09-06 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

[PATCH 26/27] perf test: Enforce LLVM test, add kbuild test

2015-09-06 Thread Wang Nan
This patch enforces existing LLVM test, makes it compile more than one BPF source file. The compiled results are stored, can be used for other testcases. Except the first testcase (named LLVM_TESTCASE_BASE), failures of other test cases are not considered as failure of the whole test. Adds a kbuil

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

2015-09-06 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, pev_ready is used to mark whet

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

2015-09-06 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 21/27] perf tools: Generate prologue for BPF programs

2015-09-06 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 02/27] perf tools: Make perf depend on libbpf

2015-09-06 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 23/27] perf record: Support custom vmlinux path

2015-09-06 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 25/27] perf tools: Allow BPF program attach to uprobe events

2015-09-06 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 18/27] perf tools: Add BPF_PROLOGUE config options for further patches

2015-09-06 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_REGS_QUERY_REGISTER_OFFSET indicates an architecture supports converting name

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

2015-09-06 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

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

2015-09-06 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 11/27] perf tools: Sync setting of real bpf events with placeholder

2015-09-06 Thread Wang Nan
In this patch, when adding real events described in BPF objects, sync filter and tracking settings with previous dummy placeholder. After this patch, command like: # perf record --test-filter.o --exclude-perf ls work as we expect. After all settings are synced, we remove those placeholder from

[PATCH 13/27] perf tools: Compile scriptlets to BPF objects when passing '.c' to --event

2015-09-06 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 07/27] perf record: Load all eBPF object into kernel

2015-09-06 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 14/27] perf test: Enforce LLVM test for BPF test

2015-09-06 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

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

2015-09-06 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

Re: [PATCH] ARM: ls1021a: add platform notifier for dma-coherent requirement

2015-09-06 Thread Shawn Guo
On Fri, Aug 07, 2015 at 06:01:59PM +0800, Alison Wang wrote: > This patch adds platform notifier for dma-coherent requirement. > Structure arm_coherent_dma_ops is used instead of arm_dma_ops. > > Signed-off-by: Alison Wang > --- > arch/arm/mach-imx/mach-ls1021a.c | 30 +++

Re: [PATCH v6 4/6] ARM: dts: imx7d-sdb: add eMMC5.0 support

2015-09-06 Thread Shawn Guo
On Tue, Aug 11, 2015 at 07:38:29PM +0800, Haibo Chen wrote: > imx7d-sdb board has a eMMC5.0 on usdhc3. This eMMC support HS400. > This patch add usdhc3 support for HS400 > > Signed-off-by: Haibo Chen Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Re: [PATCH] kvm: fix maybe-uninitialized compiler warning

2015-09-06 Thread Xiao Guangrong
On 09/05/2015 05:07 AM, Clemens Gruber wrote: Fixes the following compiler warning, occuring with GCC 5.2.0: arch/x86/kvm/mmu.c: In function ‘handle_mmio_page_fault_common’: arch/x86/kvm/mmu.c:3332:9: warning: ‘leaf’ may be used uninitialized in this function [-Wmaybe-uninitialized] while

Re: [PATCH v2 1/5] perf probe: Split add_perf_probe_events()

2015-09-06 Thread Wangnan (F)
Hi Namhyung, Thanks for this patchset. Could you plase have a look at patch 5/27 and 6/27 in my newest pull request? These 2 patches utilize new probing API to create probe point and collect probe_trace_events. I'm not very sure I fully understand your design principle, especially the cleanup

Re: [PATCH v4 03/16] drm: bridge: analogix/dp: split exynos dp driver to bridge dir

2015-09-06 Thread Yakir Yang
Hi Krzysztof, 在 09/04/2015 08:41 AM, Krzysztof Kozlowski 写道: On 03.09.2015 14:30, Yakir Yang wrote: Hi Krzysztof, 在 09/03/2015 08:58 AM, Krzysztof Kozlowski 写道: On 01.09.2015 14:49, Yakir Yang wrote: Split the dp core driver from exynos directory to bridge directory, and rename the core driv

Re: [PATCH] net: tipc: fix stall during bclink wakeup procedure

2015-09-06 Thread Ying Xue
On 09/03/2015 10:39 PM, Kolmakov Dmitriy wrote: > From: Dmitry S Kolmakov > > If an attempt to wake up users of broadcast link is made when there is > no enough place in send queue than it may hang up inside the > tipc_sk_rcv() function since the loop breaks only after the wake up > queue become

Re: [RFC PATCH v1 0/4] arm/arm64: fix a migrating irq bug when hotplug cpu

2015-09-06 Thread Jiang Liu
On 2015/9/6 12:23, Yang Yingliang wrote: > Hi All, > > There is a bug: > > When cpu is disabled, all irqs will be migratged to another cpu. > In some cases, a new affinity is different, it needed to be coppied > to irq's affinity. But if the type of irq is LPI, it's affinity will > not be coppied

[PATCH] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2015-09-06 Thread Andreas Gruenbacher
[This replaces v7 of this patch; MAY_DELETE_SELF now properly overrides the sticky check.] Normally, deleting a file requires MAY_WRITE access to the parent directory. With richacls, a file may be deleted with MAY_DELETE_CHILD access to the parent directory or with MAY_DELETE_SELF access to the f

Re: [PATCH v9 4/4] nvmem: Add DT binding documentation for Vybrid OCOTP driver

2015-09-06 Thread Shawn Guo
On Wed, Aug 12, 2015 at 06:49:21PM +0530, Sanchayan Maity wrote: > Add the devicetree bindings for the Freescale Vybrid On-Chip > OTP driver. > > Signed-off-by: Sanchayan Maity > Acked-by: Srinivas Kandagatla > --- > .../devicetree/bindings/nvmem/vf610-ocotp.txt | 21 > ++

Re: [PATCH v9 1/4] clk: clk-vf610: Add clock for Vybrid OCOTP controller

2015-09-06 Thread Shawn Guo
On Wed, Aug 12, 2015 at 06:49:18PM +0530, Sanchayan Maity wrote: > Add clock support for Vybrid On-Chip One Time Programmable > (OCOTP) controller. > > While the OCOTP block does not require explicit clock gating, > for programming the OCOTP timing register the clock rate of > ipg clock is require

Re: [PATCH v4 00/13] USB: OTG/DRD Core functionality

2015-09-06 Thread Peter Chen
On Mon, Aug 24, 2015 at 04:21:11PM +0300, Roger Quadros wrote: > Hi, > > This series centralizes OTG/Dual-role functionality in the kernel. > As of now I've got Dual-role functionality working pretty reliably on > dra7-evm and am437x-gp-evm. > > DWC3 controller and platform related patches will b

Re: [PATCH v4 14/16] drm: bridge: analogix/dp: try force hpd after plug in lookup failed

2015-09-06 Thread Yakir Yang
Hi Rob, 在 09/05/2015 05:46 AM, Rob Herring 写道: On Wed, Sep 2, 2015 at 11:27 PM, Yakir Yang wrote: Hi Rob, 在 09/03/2015 04:17 AM, Rob Herring 写道: On Tue, Sep 1, 2015 at 1:14 AM, Yakir Yang wrote: Some edp screen do not have hpd signal, so we can't just return failed when hpd plug in detect

Re: [PATCH block/for-linus] block: blkg_destroy_all() should clear q->root_blkg and ->root_rl.blkg

2015-09-06 Thread Richard W.M. Jones
On Sat, Sep 05, 2015 at 03:47:36PM -0400, Tejun Heo wrote: > While making the root blkg unconditional, ec13b1d6f0a0 ("blkcg: always > create the blkcg_gq for the root blkcg") removed the part which clears > q->root_blkg and ->root_rl.blkg during q exit. This leaves the two > pointers dangling afte

Re: [PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-06 Thread Changsheng Liu
On 9/1/2015 23:37, Yasuaki Ishimatsu wrote: On Mon, 31 Aug 2015 01:58:40 -0400 Changsheng Liu wrote: From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including

[PATCH v2] virtio-blk: Allow extended partitions

2015-09-06 Thread Fam Zheng
This will allow up to DISK_MAX_PARTS (256) partitions, with for example GPT in the guest. Otherwise, the partition scan code will only discover the first 15 partitions. Signed-off-by: Fam Zheng --- drivers/block/virtio_blk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/virti

[PATCH] power: bq24261_charger: Add support for TI BQ24261 charger

2015-09-06 Thread Ramakrishna Pallala
Add new charger driver support for BQ24261 charger IC. BQ24261 charger driver relies on extcon notifications to get the charger cable type and based on that it will set the charging parameters. Signed-off-by: Ramakrishna Pallala Signed-off-by: Jennt TC --- .../devicetree/bindings/power/bq24261

Re: [PATCH] ftrace: allow dumping traces without tracking trace started cpus

2015-09-06 Thread Minfei Huang
On 09/04/15 at 12:45pm, Sasha Levin wrote: > We don't init iter->started when dumping the ftrace buffer, and there's no > real need to do so - so allow skipping that check if the iter doesn't have > an initialized ->started cpumask. > > Signed-off-by: Sasha Levin > --- > kernel/trace/trace.c |

[PATCH] btrfs: memset cur_trans->delayed_refs to zero

2015-09-06 Thread Alexandru Moise
Use memset() to null out the btrfs_delayed_ref_root of btrfs_transaction instead of setting all the members to 0 by hand. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/transaction.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/fs/btrf

[GIT PULL] RTC for 4.3

2015-09-06 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC susbsystem for 4.3. I rebased on your tree yesterday to be able to take a patch fixing a warning that appeared following a patch that went through GKH's tree. Tell me if this wasn't the proper course of action. The main drawback is that this hides a

[PATCH v3 1/2] arm64: hip05-d02: Document devicetree bindings for Hisilicon Hip05-D02 Board

2015-09-06 Thread Ding Tianhong
This patch adds documentation for the devicetree bindings used by the DT files of Hisilicon Hip05-D02 development board. Signed-off-by: Ding Tianhong --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree

[PATCH v3 2/2] arm64: dts: add dts files for Hisilicon Hip05-D02 Development Board

2015-09-06 Thread Ding Tianhong
Add initial dtsi file to support Hisilicon Hip05-D02 Board with support of CPUs in four clusters and each cluster has quard Cortex-A57. Also add dts file to support Hip05-D02 development board. Signed-off-by: Ding Tianhong Signed-off-by: Kefeng Wang --- arch/arm64/boot/dts/hisilicon/Makefile

RE: [PATCH] f2fs:Fix locking requirements in the function recover_dentry

2015-09-06 Thread Chao Yu
> -Original Message- > From: Nicholas Krause [mailto:xerofo...@gmail.com] > Sent: Sunday, September 06, 2015 1:27 AM > To: jaeg...@kernel.org > Cc: cm224@samsung.com; chao2...@samsung.com; > linux-f2fs-de...@lists.sourceforge.net; > linux-kernel@vger.kernel.org > Subject: [PATCH] f2fs:

Re: [PATCH 1/2] ASoC: atmel-classd: add the Audio Class D Amplifier code

2015-09-06 Thread Wu, Songjun
On 9/3/2015 19:37, Mark Brown wrote: On Tue, Sep 01, 2015 at 01:41:40PM +0800, Songjun Wu wrote: +static const char * const mono_text[] = { + "stereo", "mono" +}; + +static SOC_ENUM_SINGLE_DECL(classd_mono_enum, + CLASSD_INTPMR, CLASSD_INTPMR_MONO_SHIFT, +

Re: [PATCH 2/2] ASoC: atmel-classd: DT binding for Class D audio amplifier driver

2015-09-06 Thread Wu, Songjun
On 9/3/2015 19:43, Mark Brown wrote: On Tue, Sep 01, 2015 at 01:41:41PM +0800, Songjun Wu wrote: +classd: classd@fc048000 { + compatible = "atmel,sama5d2-classd"; + reg = <0xfc048000 0x100>; + interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>; + d

[PATCH v3 0/2] arm64: Support Hisilicon Hip05-D02 board

2015-09-06 Thread Ding Tianhong
Hip05-D02 Development Board is based on Cortex-A57, this patchset contains initial support for Hip05-D02 Soc and Board. Initial support is minimal and includes just the arch configuration, device tree configuration. PSCI is enabled in device tree and there is no problem to boot all the 16 cores, a

[PATCH] f2fs: trace in batches extent info update

2015-09-06 Thread Chao Yu
Rename trace_f2fs_update_extent_tree to trace_f2fs_update_extent_tree_range, then expand and enable it to trace in batches extent info updates. Signed-off-by: Chao Yu --- fs/f2fs/extent_cache.c | 2 ++ include/trace/events/f2fs.h | 15 ++- 2 files changed, 12 insertions(+), 5 d

[PATCH 1/2] [RFC] m68k: Wire up direct socket calls

2015-09-06 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- arch/m68k/include/asm/unistd.h | 2 +- arch/m68k/include/uapi/asm/unistd.h | 15 +++ arch/m68k/kernel/syscalltable.S | 16 +++- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/arch/m68k/include/asm/unistd.h b/

[PATCH 2/2] m68k: Wire up userfaultfd

2015-09-06 Thread Geert Uytterhoeven
$ ./userfaultfd 10 99 nr_pages: 2560, nr_pages_per_cpu: 2560 bounces: 98, mode: racing, userfaults: 1121 bounces: 97, mode: rnd, userfaults: 977 bounces: 96, mode:, userfaults: 1119 bounces: 95, mode: rnd racing ver poll, userfaults: 1040 bounces: 94, mode: racing ver poll, userfaults: 1022 bounces

[PATCH] [media] atmel-isi:

2015-09-06 Thread Geert Uytterhoeven
If CONFIG_PM=n: drivers/media/platform/soc_camera/atmel-isi.c:1044: warning: ‘atmel_isi_runtime_suspend’ defined but not used drivers/media/platform/soc_camera/atmel-isi.c:1054: warning: ‘atmel_isi_runtime_resume’ defined but not used Protect the unused functions by #ifdef CONFIG_PM to

[PATCH] [media] atmel-isi: Protect PM-only functions to kill warning

2015-09-06 Thread Geert Uytterhoeven
If CONFIG_PM=n: drivers/media/platform/soc_camera/atmel-isi.c:1044: warning: ‘atmel_isi_runtime_suspend’ defined but not used drivers/media/platform/soc_camera/atmel-isi.c:1054: warning: ‘atmel_isi_runtime_resume’ defined but not used Protect the unused functions by #ifdef CONFIG_PM to

[PATCH] selftests/userfaultfd: Fix compiler warnings on 32-bit

2015-09-06 Thread Geert Uytterhoeven
On 32-bit: userfaultfd.c: In function 'locking_thread': userfaultfd.c:152: warning: left shift count >= width of type userfaultfd.c: In function 'uffd_poll_thread': userfaultfd.c:295: warning: cast to pointer from integer of different size userfaultfd.c: In function 'uffd_read_

Re: [PATCH v17 1/4] dt-bindings: add document of Rockchip power domains

2015-09-06 Thread Caesar Wang
Kevin, 在 2015年09月03日 02:12, Kevin Hilman 写道: Caesar Wang writes: This add the necessary binding documentation for the power domains found on Rockchip SoCs. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v17: - add the decription in detail for RK3288 SoCs. Changes i

[PATCH] [media] VIDEO_RENESAS_JPU should depend on HAS_DMA

2015-09-06 Thread Geert Uytterhoeven
If NO_DMA=y: warning: (VIDEO_STI_BDISP && VIDEO_RENESAS_JPU && VIDEO_DM365_VPFE && VIDEO_OMAP4) selects VIDEOBUF2_DMA_CONTIG which has unmet direct dependencies (MEDIA_SUPPORT && HAS_DMA) drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_mmap’: drivers/media/v4l2-c

Re: [PATCH v9 1/4] clk: clk-vf610: Add clock for Vybrid OCOTP controller

2015-09-06 Thread maitysanchayan
On 15-09-06 16:15:26, Shawn Guo wrote: > On Wed, Aug 12, 2015 at 06:49:18PM +0530, Sanchayan Maity wrote: > > Add clock support for Vybrid On-Chip One Time Programmable > > (OCOTP) controller. > > > > While the OCOTP block does not require explicit clock gating, > > for programming the OCOTP timin

Re: [PATCH v9 4/4] nvmem: Add DT binding documentation for Vybrid OCOTP driver

2015-09-06 Thread maitysanchayan
On 15-09-06 16:13:35, Shawn Guo wrote: > On Wed, Aug 12, 2015 at 06:49:21PM +0530, Sanchayan Maity wrote: > > Add the devicetree bindings for the Freescale Vybrid On-Chip > > OTP driver. > > > > Signed-off-by: Sanchayan Maity > > Acked-by: Srinivas Kandagatla > > --- > > .../devicetree/bindings

Re: [PATCH v4] pinctrl: mediatek: Implement wake handler and suspend resume

2015-09-06 Thread maoguang meng
On Wed, 2015-09-02 at 14:02 +0800, Daniel Kurtz wrote: > Hi maoguang, > > On Tue, Aug 25, 2015 at 12:27 AM, Sudeep Holla wrote: > > > > > > On 14/08/15 09:38, maoguang.m...@mediatek.com wrote: > >> > >> From: Maoguang Meng > >> > >> This patch implement irq_set_wake to get who is wakeup source a

[PATCH 3/3] dmaengine: pxa_dma: declare transfer are reusable

2015-09-06 Thread Robert Jarzmik
As this driver provides a mechanism to reuse transfers, declare it in its probe function. Signed-off-by: Robert Jarzmik --- drivers/dma/pxa_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/pxa_dma.c b/drivers/dma/pxa_dma.c index ddcbbf5cd9e9..bb85cd7b5b70 100644 --- a/driver

[PATCH 1/3] dmaengine: virt-dma: don't always free descriptor upon completion

2015-09-06 Thread Robert Jarzmik
This patch attempts to enhance the case of a transfer submitted multiple times, and where the cost of creating the descriptors chain is not negligible. This happens with big video buffers (several megabytes, ie. several thousands of linked descriptors in one scatter-gather list). In these cases, a

[PATCH 2/3] dmaengine: enable DMA_CTRL_REUSE

2015-09-06 Thread Robert Jarzmik
In the current state, the capability of transfer reuse can neither be set by a slave dmaengine driver, nor used by a client driver, because the capability is not available to dma_get_slave_caps(). Fix this by adding a way to declare the capability. Fixes: 272420214d26 ("dmaengine: Add DMA_CTRL_RE

[PATCH v5 2/4] media: pxa_camera: move interrupt to tasklet

2015-09-06 Thread Robert Jarzmik
In preparation for dmaengine conversion, move the camera interrupt handling into a tasklet. This won't change the global flow, as this interrupt is only used to detect the end of frame and activate DMA fifos handling. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera

[PATCH v5 1/4] media: pxa_camera: fix the buffer free path

2015-09-06 Thread Robert Jarzmik
Fix the error path where the video buffer wasn't allocated nor mapped. In this case, in the driver free path don't try to unmap memory which was not mapped in the first place. Signed-off-by: Robert Jarzmik --- Since v3: take into account the 2 paths possibilities to free_buffer() --- drivers/med

[PATCH v5 3/4] media: pxa_camera: trivial move of dma irq functions

2015-09-06 Thread Robert Jarzmik
This moves the dma irq handling functions up in the source file, so that they are available before DMA preparation functions. It prepares the conversion to DMA engine, where the descriptors are populated with these functions as callbacks. Signed-off-by: Robert Jarzmik --- Since v1: fixed prototyp

[PATCH v5 4/4] media: pxa_camera: conversion to dmaengine

2015-09-06 Thread Robert Jarzmik
Convert pxa_camera to dmaengine. This removes all DMA registers manipulation in favor of the more generic dmaengine API. The functional level should be the same as before. The biggest change is in the videobuf_sg_splice() function, which splits a videobuf-dma into several scatterlists for 3 planes

RE: [PATCH] serial: core: prevent softlockups on slow consoles

2015-09-06 Thread Dexuan Cui
> -Original Message- > From: Greg Kroah-Hartman > Sent: Saturday, September 5, 2015 0:10 > On Fri, Sep 04, 2015 at 09:19:38AM +0200, Vitaly Kuznetsov wrote: > > Greg Kroah-Hartman writes: > > > > > On Mon, Aug 31, 2015 at 04:34:16PM +0200, Vitaly Kuznetsov wrote: > > >> Hyper-V serial port

RE: [PATCH] serial: core: prevent softlockups on slow consoles

2015-09-06 Thread KY Srinivasan
> -Original Message- > From: Dexuan Cui > Sent: Sunday, September 6, 2015 4:48 AM > To: Greg Kroah-Hartman ; Vitaly Kuznetsov > > Cc: Jiri Slaby ; linux-ser...@vger.kernel.org; linux- > ker...@vger.kernel.org; KY Srinivasan ; Peter Hurley > > Subject: RE: [PATCH] serial: core: prevent s

Re: [PATCH] drm/msm/dsi: Parse lane swap information from DT

2015-09-06 Thread Archit Taneja
Hi, On 9/4/2015 12:00 AM, Hai Li wrote: Lane swap configuration is based on the board design. This change allows the DSI host to get this information from device tree, instead of hardcoding in driver. Signed-off-by: Hai Li --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 13 ++ d

Re: [PATCH V3 2/6] PM / OPP: Rename opp init/free table routines

2015-09-06 Thread Shawn Guo
On Fri, Sep 04, 2015 at 01:47:23PM +0530, Viresh Kumar wrote: > free-table routines are opposite of init-table ones, and must be named > to make that clear. Opposite of 'init' is 'exit', but those doesn't suit > really well. > > Replace 'init' with 'add' and 'free' with 'remove'. > > Reported-by:

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

2015-09-06 Thread Shawn Guo
On Fri, Sep 04, 2015 at 01:47:24PM +0530, Viresh Kumar wrote: > That's the naming convention followed in most of opp core, but few > routines didn't follow this, fix them. > > Reviewed-by: Stephen Boyd > Signed-off-by: Viresh Kumar > --- > arch/arm/mach-imx/mach-imx6q.c | 2 +- ... > dri

[PATCH v2] mtd: nand: pxa3xx-nand: switch to dmaengine

2015-09-06 Thread Robert Jarzmik
Now pxa architecture has a dmaengine driver, remove the access to direct dma registers in favor of the more generic dmaengine code. This should be also applicable for mmp and orion, provided they work in device-tree environment. This patch also removes the previous hack which was necessary to mak

[PATCH] kvm: compile process_smi_save_seg_64() only for x86_64

2015-09-06 Thread Alexander Kuleshov
The process_smi_save_seg_64() function called only in the process_smi_save_state_64() if the CONFIG_X86_64 is set. This patch adds #ifdef CONFIG_X86_64 around process_smi_save_seg_64() to prevent following warning message: arch/x86/kvm/x86.c:5946:13: warning: ‘process_smi_save_seg_64’ defined but

Re: [PATCH] x86/efi: Map EFI memmap entries in-order at runtime

2015-09-06 Thread Ard Biesheuvel
On 4 September 2015 at 20:53, Ard Biesheuvel wrote: > On 4 September 2015 at 20:23, Matt Fleming wrote: >> On Fri, 04 Sep, at 03:24:21PM, Ard Biesheuvel wrote: >>> >>> Since the UEFI spec does not mandate an enumeration order for >>> GetMemoryMap(), it seems to me that you still need to sort its

[PATCH] net/core/sysctl_net_core.c unused variable

2015-09-06 Thread Nick Warne
gcc version 4.8.2 (GCC) warns that 'static int one = 1;' is declared but not used in file net/core/sysctl_net_core.c. Reading the file, that is the case. Attached is a patch to remove it. Signed-off-by: Nick Warne Nick -- Gosh that takes me back... or is it forward? That's the trouble wit

Re: [PATCH] kvm: compile process_smi_save_seg_64() only for x86_64

2015-09-06 Thread Paolo Bonzini
On 06/09/2015 15:35, Alexander Kuleshov wrote: > The process_smi_save_seg_64() function called only in the > process_smi_save_state_64() if the CONFIG_X86_64 is set. This > patch adds #ifdef CONFIG_X86_64 around process_smi_save_seg_64() > to prevent following warning message: > > arch/x86/kvm/x

Re: [PATCH] ftrace: allow dumping traces without tracking trace started cpus

2015-09-06 Thread Sasha Levin
On 09/06/2015 05:20 AM, Minfei Huang wrote: > On 09/04/15 at 12:45pm, Sasha Levin wrote: >> > We don't init iter->started when dumping the ftrace buffer, and there's no >> > real need to do so - so allow skipping that check if the iter doesn't have >> > an initialized ->started cpumask. >> > >> >

Re: [PATCH v7 2/3] KVM: dynamic halt-polling

2015-09-06 Thread Paolo Bonzini
On 05/09/2015 00:38, Wanpeng Li wrote: >> >> @@ -1940,11 +1975,16 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu) >>* arrives. >>*/ >> if (kvm_vcpu_check_block(vcpu) < 0) { >> +polled = true; >> ++vcpu->stat.halt_succes

Re: [PATCH v7 1/3] KVM: make halt_poll_ns per-vCPU

2015-09-06 Thread Paolo Bonzini
On 03/09/2015 16:07, Wanpeng Li wrote: > Change halt_poll_ns into per-VCPU variable, seeded from module parameter, > to allow greater flexibility. > > Signed-off-by: Wanpeng Li > --- > include/linux/kvm_host.h | 1 + > virt/kvm/kvm_main.c | 5 +++-- > 2 files changed, 4 insertions(+), 2 d

Re: [PATCH v7 0/3] KVM: Dynamic Halt-Polling

2015-09-06 Thread Paolo Bonzini
On 03/09/2015 16:07, Wanpeng Li wrote: > v6 -> v7: > * explicit signal (set a bool) > * fix the tracepoint > > v5 -> v6: > * fix wait_ns and poll_ns > > v4 -> v5: > * set base case 10us and max poll time 500us > * handle short/long halt, idea from David, many thanks David > > v3 -> v4:

Re: [PATCH] net/core/sysctl_net_core.c unused variable

2015-09-06 Thread Joe Perches
On Sun, 2015-09-06 at 15:13 +0100, Nick Warne wrote: > gcc version 4.8.2 (GCC) warns that 'static int one = 1;' is declared but > not used in file net/core/sysctl_net_core.c. Only when CONFIG_NET isn't set. > Reading the file, that is > the case. Attached is a patch to remove it. $ git grep -

Re: [PATCH] net/core/sysctl_net_core.c unused variable

2015-09-06 Thread Nick Warne
On 06/09/15 15:52, Joe Perches wrote: On Sun, 2015-09-06 at 15:13 +0100, Nick Warne wrote: gcc version 4.8.2 (GCC) warns that 'static int one = 1;' is declared but not used in file net/core/sysctl_net_core.c. Only when CONFIG_NET isn't set. CONFIG_NET=y Peculiar indeed. Reading the file,

[PATCH] block: Fix compiler warnings in blk-merge.c

2015-09-06 Thread Geliang Tang
Fix the following warnings: CC block/blk-merge.o In file included from block/blk-merge.c:7:0: block/blk-merge.c: In function ‘blk_queue_split’: include/linux/blkdev.h:1368:21: warning: ‘bvprv.bv_offset’ may be used uninitialized in this function [-Wmaybe-uninitialized] ((bprv->bv_offset

[PATCH v7] pci: quirk to skip msi disable on shutdown

2015-09-06 Thread Michael S. Tsirkin
On some hypervisors, virtio devices tend to generate spurious interrupts when switching between MSI and non-MSI mode. Normally, either MSI or non-MSI is used and all is well, but during shutdown, linux disables MSI which then causes an "irq %d: nobody cared" message, with irq being subsequently di

Re: [PATCH] net/core/sysctl_net_core.c unused variable

2015-09-06 Thread Nick Warne
On 06/09/15 16:28, Joe Perches wrote: On Sun, 2015-09-06 at 16:16 +0100, Nick Warne wrote: On 06/09/15 15:52, Joe Perches wrote: > On Sun, 2015-09-06 at 15:13 +0100, Nick Warne wrote: >> gcc version 4.8.2 (GCC) warns that 'static int one = 1;' is declared but >> not used in file net/core/sysctl_

[PATCH] net: stmmac: Use msleep rather then udelay for reset delay

2015-09-06 Thread Sjoerd Simons
The reset delays used for stmmac are in the order of 10ms to 1 second, which is far too long for udelay usage, so switch to using msleep. Practically this fixes the PHY not being reliably detected in some cases as udelay wouldn't actually delay for long enough to let the phy reliably be reset. Si

Re: [PATCH] net/core/sysctl_net_core.c unused variable

2015-09-06 Thread Joe Perches
On Sun, 2015-09-06 at 16:36 +0100, Nick Warne wrote: > On 06/09/15 16:28, Joe Perches wrote: > > On Sun, 2015-09-06 at 16:16 +0100, Nick Warne wrote: > >> On 06/09/15 15:52, Joe Perches wrote: > >> > On Sun, 2015-09-06 at 15:13 +0100, Nick Warne wrote: > >> >> gcc version 4.8.2 (GCC) warns that 'st

[PATCH RFC 0/0] drivers: android: binder crash issue

2015-09-06 Thread Victor Chong
From: Puck Chen We find that the binder aborts when doing some asynchronous transferring, e.g. when a phone call comes in. If there are asynchronous requests in binder system, and new requests coming, the asynchronous requests may insert into the new requests queue. In this scene, the asynchron

Re: [PATCH] net/core/sysctl_net_core.c unused variable

2015-09-06 Thread Nick Warne
On 06/09/15 16:51, Joe Perches wrote: On Sun, 2015-09-06 at 16:36 +0100, Nick Warne wrote: On 06/09/15 16:28, Joe Perches wrote: > On Sun, 2015-09-06 at 16:16 +0100, Nick Warne wrote: >> On 06/09/15 15:52, Joe Perches wrote: >> > On Sun, 2015-09-06 at 15:13 +0100, Nick Warne wrote: >> >> gcc v

Loan Offer At 3% Per - Annum

2015-09-06 Thread LONG TERM LOANS
Long Term International Loan Service New Delhi, India Apply today for any type of local/international loans. For more detailed explanation of our Terms & Conditions feel free to email us today. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to m

Re: [PATCH RESEND] ARM: dts: Fix Makefile target for sun4i-a10-itead-iteaduino-plus

2015-09-06 Thread Maxime Ripard
On Fri, Sep 04, 2015 at 08:49:34AM -0400, Josh Boyer wrote: > Commit 79ae3e66f8d (ARM: dts: sun4i: Add Iteaduino Plus A10) added a new > make target for the sun4i-a10-itead-iteaduino-plus dts file, but mistakenly > used .dts instead of the correct .dtb suffix. This resulted in a build error > like

usually 3000 customers/Where 100,000+ customers worldwide?

2015-09-06 Thread iSayor
Hi   Are you still develop foreign customers with alibaba, exhibition?  You out of!!!   Are you looking other channel beside exhibition/B2B when you feel difficult to find foreign customers?   Industry hundreds of thousands of customers worldwide, usually we can only contact three thousand, d

usually 3000 customers/Where 100,000+ customers worldwide?

2015-09-06 Thread iSayor
Hi   Are you still develop foreign customers with alibaba, exhibition?  You out of!!!   Are you looking other channel beside exhibition/B2B when you feel difficult to find foreign customers?   Industry hundreds of thousands of customers worldwide, usually we can only contact three thousand, d

  1   2   3   >