[PATCH 20/25] serial: sh-sci: Add support for optional BRG on (H)SCIF

2015-11-19 Thread Geert Uytterhoeven
Add support for the Baud Rate Generator for External Clock (BRG), as found on some SCIF and HSCIF variants, which can improve baud rate range and accuracy. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 82 ++--- 1 file changed, 77

[PATCH 06/25] serial: sh-sci: Don't overwrite clock selection in serial_console_write()

2015-11-19 Thread Geert Uytterhoeven
Blindly writing the default configuration value into the SCSCR register may change the clock selection bits, breaking the serial console if the current driver settings differ from the default settings. Keep the current clock selection bits to prevent this from happening on e.g. r8a7791/koelsch

[PATCH 03/25] serial: sh-sci: Drop useless check for zero sampling_rate

2015-11-19 Thread Geert Uytterhoeven
sci_port.sampling_rate is always non-zero, except for HSCIF, which uses sci_baud_calc_hscif() instead of sci_scbrr_calc(). Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c

[PATCH 16/25] serial: sh-sci: Correct SCIF type on RZ/A1H

2015-11-19 Thread Geert Uytterhoeven
The "renesas,scif" compatible value is currently used for the SCIF variant in all Renesas SoCs of the R-Car and RZ families. However, the variant used in the RZ family is not the common "SH-4(A)" variant, but the "SH-2(A) with FIFO data count register" variant, as it has the "Serial Extension

[PATCH 17/25] serial: sh-sci: Correct SCIF type on R-Car for BRG

2015-11-19 Thread Geert Uytterhoeven
The "renesas,scif" compatible value is currently used for the SCIF variant in all Renesas SoCs of the R-Car family. However, the variant used in the R-Car family is not the common "SH-4(A)" variant, but a derivative with added "Baud Rate Generator for External Clock" (BRG), which is also present

[PATCH 19/25] serial: sh-sci: Add support for optional external (H)SCK input

2015-11-19 Thread Geert Uytterhoeven
Add support for using the SCIx clock pin "(H)SCK" as an external clock input on (H)SCI(F). Note that this feature is not yet supported on the select SCIFA variants that also have it (e.g. sh7723, sh7724, and r8a7740). On (H)SCIF variants with an External Baud Rate Generator (BRG), the BRG Clock

[PATCH 05/25] serial: sh-sci: Drop unused frame_len parameter for sci_baud_calc_hscif()

2015-11-19 Thread Geert Uytterhoeven
As F is assumed to be zero in the receive margin formula, frame_len is not used. Remove it, together with the sci_baud_calc_frame_len() helper function. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 24 +++- 1 file changed, 3 insertions(+), 21

[PATCH 14/25] serial: sh-sci: Add BRG register definitions

2015-11-19 Thread Geert Uytterhoeven
Add register definitions for the Baud Rate Generator for External Clock (BRG), as found in some SCIF and in HSCIF, including a new regtype for the "SH-4(A)"-derived SCIF variant with BRG. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 46

[PATCH 07/25] serial: sh-sci: Convert from clk_get() to devm_clk_get()

2015-11-19 Thread Geert Uytterhoeven
Transfer clock cleanup handling to the core device management code. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index

[PATCH 24/25] arm64: renesas: salvator-x dts: Enable SCIF_CLK frequency and pins

2015-11-19 Thread Geert Uytterhoeven
Add and enable the external crystal for the SCIF_CLK and its pinctrl, to be used by the Baud Rate Generator for External Clock (BRG) on (H)SCIF. This increases the range and accuracy of supported baud rates: - SCIF: - Supports now 50, 230400, 460800, 50, and 921600 bps, -

[PATCH 21/25] ARM: shmobile: r8a7791 dtsi: Add BRG support for (H)SCIF

2015-11-19 Thread Geert Uytterhoeven
Add the device node for the external SCIF_CLK. The presence of the SCIF_CLK crystal and its clock frequency depends on the actual board. Add the two optional clock sources (ZS_CLK and SCIF_CLK for the internal resp. external clock) for the Baud Rate Generator for External Clock (BRG) to all SCIF

[PATCH 22/25] ARM: shmobile: koelsch dts: Enable SCIF_CLK frequency and pins

2015-11-19 Thread Geert Uytterhoeven
Add and enable the external crystal for the SCIF_CLK and its pinctrl, to be used by the Baud Rate Generator for External Clock (BRG) on (H)SCIF. This increases the range and accuracy of supported baud rates: - SCIF: - Supports now 50, 75, 110, 1152000, 150, 200, and

[PATCH 18/25] serial: sh-sci: Prepare for multiple clocks and baud rate generators

2015-11-19 Thread Geert Uytterhoeven
Refactor the clock and baud rate parameter code to ease adding support for multiple clocks and baud rate generators later. sci_scbrr_calc() now returns the bit rate error, so it can be compared to the bit rate error for other baud rate generators. Signed-off-by: Geert Uytterhoeven ---

[PATCH 23/25] arm64: renesas: r8a7795 dtsi: Add BRG support for (H)SCIF

2015-11-19 Thread Geert Uytterhoeven
Add the device node for the external SCIF_CLK. The presence of the SCIF_CLK crystal and its clock frequency depend on the actual board. Add the two optional clock sources (ZS_CLK and SCIF_CLK for the internal resp. external clock) for the Baud Rate Generator for External Clock (BRG) to all SCIF

[PATCH 04/25] serial: sh-sci: Grammar s/Get ... for/Get ... from/

2015-11-19 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index ae136a1632e6298d..676f9d1354943a1b 100644 --- a/drivers/tty/serial/sh-sci.c +++

[PATCH 25/25] sh: sh7734: Correct SCIF type for BRG

2015-11-19 Thread Geert Uytterhoeven
The SCIF variant in the sh7734 SoC is not the common "SH-4(A)" variant, but a derivative with added "Baud Rate Generator for External Clock" (BRG). Correct the regtype value in platform data to fix this. Signed-off-by: Geert Uytterhoeven --- Untested due to lack of hardware and platform clock

[PATCH 08/25] serial: sh-sci: Make unsigned values in sci_baud_calc_hscif() unsigned

2015-11-19 Thread Geert Uytterhoeven
Move the -1 offset of br to the assignment to *brr, so br cannot become negative anymore, and update the clamp() call. Now all unsigned values in sci_baud_calc_hscif() can become unsigned. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 11 ++- 1 file changed, 6

[PATCH 09/25] serial: sh-sci: Avoid overflow in sci_baud_calc_hscif()

2015-11-19 Thread Geert Uytterhoeven
If bps >= 1048576, the multiplication of "(sr * (1 << (2 * c + 1))" and "bps" will overflow, and both br and err will contain bogus values. Skip the current and all higher clock select predividers when overflow is detected. Simplify the calculations using intermediates while we're at it.

Re: [kbuild-all] [patch -mm] mm, vmalloc: remove VM_VPAGES

2015-11-19 Thread Johannes Weiner
Hi Fengguang, On Thu, Nov 19, 2015 at 08:35:46PM +0800, Fengguang Wu wrote: > > git://git.cmpxchg.org/linux-mmotm.git > > I'll teach the robot to use it instead of linux-next for [-mm] patches. Yup, that seems like a more suitable base. But you might even consider putting them on top

[PATCH 15/25] serial: sh-sci: Replace struct sci_port_info by type/regtype encoding

2015-11-19 Thread Geert Uytterhoeven
Store the encoded port and register types directly in of_device_id.data, instead of using a pointer to a structure. This saves memory and simplifies the source code, especially when adding more compatible entries later. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 40

Re: [Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2015-11-19 Thread Simon Wood
On Thu, November 19, 2015 11:31 am, Dmitry Torokhov wrote: > On Thu, Nov 19, 2015 at 02:50:51PM +0100, Jiri Kosina wrote: > >> On Thu, 12 Nov 2015, Simon Wood wrote: >> >> >>> When plugged in the Logitech G920 wheel starts with USBID 046d:c261 >>> and behaviors as a vendor specific class. If a

[PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller

2015-11-19 Thread Mans Rullgard
This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- drivers/irqchip/Kconfig | 5 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-tangox.c | 232 +++

[PATCH 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller

2015-11-19 Thread Mans Rullgard
This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- .../interrupt-controller/sigma,smp8642-intc.txt| 47 ++ 1 file changed, 47 insertions(+) create mode 100644

[PATCH 0/2] Support for Sigma Designs SMP86xx interrupt controller

2015-11-19 Thread Mans Rullgard
The Sigma Designs SMP86xx and SMP87xx chips use a secondary interrupt controller with 64 inputs. The inputs go to an edge/level detector, the outputs of which are replicated to three mask blocks, each with a separate primary IRQ. These patches add a device tree binding and an irqchip driver for

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2015-11-19 Thread Borislav Petkov
On Tue, Oct 27, 2015 at 03:38:12PM -0500, dingu...@opensource.altera.com wrote: > From: Thor Thayer > > Adding L2 Cache and On-Chip RAM EDAC support for the > Altera SoCs using the EDAC device model. The SDRAM > controller is using the Memory Controller model. > > Each type of ECC is

Re: [Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2015-11-19 Thread Dmitry Torokhov
On Thu, Nov 19, 2015 at 02:50:51PM +0100, Jiri Kosina wrote: > On Thu, 12 Nov 2015, Simon Wood wrote: > > > When plugged in the Logitech G920 wheel starts with USBID 046d:c261 > > and behaviors as a vendor specific class. If a 'magic' byte sequence > > is sent the wheel will detach and reconnect

Re: [PATCH v3 2/2] ASoC: codecs: Add da7218 codec driver

2015-11-19 Thread kbuild test robot
Hi Adam, [auto build test WARNING on: asoc/for-next] [also build test WARNING on: v4.4-rc1 next-20151119] url: https://github.com/0day-ci/linux/commits/Adam-Thomson/ASoC-da7218-Add-bindings-documentation-for-DA7218-audio-codec/20151120-014315 base: https://git.kernel.org/pub/scm/linux

Re: linux-next: manual merge of the audit tree with Linus' tree

2015-11-19 Thread Richard Guy Briggs
On 15/11/19, Paul Moore wrote: > On Wed, Nov 18, 2015 at 8:06 PM, Stephen Rothwell > wrote: > > Hi Paul, > > > > Today's linux-next merge of the audit tree got a conflict in: > > > > kernel/audit.c > > > > between commit: > > > > d0164adc89f6 ("mm, page_alloc: distinguish between being

Re: [PATCH v11 4/8] Input: goodix - add power management support

2015-11-19 Thread Dmitry Torokhov
On Thu, Nov 19, 2015 at 02:26:37PM +0200, Irina Tirdea wrote: > Implement suspend/resume for goodix driver. > > The suspend and resume process uses the gpio pins. > If the device ACPI/DT information does not declare gpio pins, > suspend/resume will not be available for these devices. > > This is

Re: [PATCH v11 3/8] Input: goodix - write configuration data to device

2015-11-19 Thread Dmitry Torokhov
On Thu, Nov 19, 2015 at 02:26:36PM +0200, Irina Tirdea wrote: > + if (ts->gpiod_int && ts->gpiod_rst) { > + /* update device config */ > + ts->cfg_name = kasprintf(GFP_KERNEL, "goodix_%d_cfg.bin", > + ts->id); devm_kasprintf maybe

Re: [PATCH] SCSI-libfc: Delete an unnecessary check before the function call "kmem_cache_destroy"

2015-11-19 Thread Vasu Dev
On Mon, 2015-11-16 at 09:45 +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 16 Nov 2015 09:39:12 +0100 > > The kmem_cache_destroy() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > This issue was

Re: [PATCH v2 2/2] usb: dwc2: host: Clear interrupts before handling them

2015-11-19 Thread Felipe Balbi
Hi, Doug Anderson writes: isn't this a regression ? You're first clearing the interrupts and only then reading to check what's pending, however, what's pending has just been cleared. Seems like this should be: hprt0 = dwc2_readl(HPRT0); dwc2_writeal(PRTINT,

[PATCH v3] pci: Limit VPD length for megaraid_sas adapter

2015-11-19 Thread Babu Moger
Reading or Writing of PCI VPD data causes system panic. We saw this problem by running "lspci -vvv" in the beginning. However this can be easily reproduced by running cat /sys/bus/devices/XX../vpd VPD length has been set as 32768 by default. Accessing vpd will trigger read/write of 32k. This

Re: ptrace() hangs on attempt to seize/attach stopped & frozen task

2015-11-19 Thread Pedro Alves
On 11/19/2015 05:47 PM, Oleg Nesterov wrote: > Thanks Pedro for your email, > >> 918 /* We need to wait for SIGSTOP before being able to make the next >> 919 ptrace call on this LWP. */ >> 920 new_lwp->must_set_ptrace_flags = 1; >> 921 >> 922 if (linux_proc_pid_is_stopped

[PATCH 26/37] perf tools: Fix __dsos__addnew to put dso after adding it to the list

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu __dsos__addnew should drop the constructor reference to dso after adding it to the list, because __dsos__add() will get a reference that will be kept while it is in the list. This fixes DSO leaks when entries are removed to the list and the refcount never gets to zero.

[PATCH 20/37] perf probe: Fix to free temporal Dwarf_Frame

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Since dwarf_cfi_addrframe returns malloc'd Dwarf_Frame object, it has to be freed after it is used. Signed-off-by: Masami Hiramatsu Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 13/37] perf test: Test the BPF prologue adding infrastructure

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch introduces a new BPF script to test the BPF prologue adding routines. The new script probes at null_lseek, which is the function pointer used when we try to lseek on '/dev/null'. The null_lseek function is chosen because it is used by function pointers, so we don't

[PATCH 12/37] perf bpf: Generate prologue for BPF programs

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch generates a prologue for each 'struct probe_trace_event' for fetching arguments for BPF programs. After bpf__probe(), iterate over each program to check whether prologues are required. If none of the 'struct perf_probe_event' programs will attach to have at least one

[PATCH 08/37] perf bpf: Allow BPF program attach to uprobe events

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch adds a new syntax to the BPF object section name to support probing at uprobe event. Now we can use BPF program like this: SEC( "exec=/lib64/libc.so.6;" "libcwrite=__write" ) int libcwrite(void *ctx) { return 1; } Where, in section name of a

[PATCH 11/37] perf bpf: Add prologue for BPF programs for fetching arguments

2015-11-19 Thread Arnaldo Carvalho de Melo
From: He Kuang This patch generates a prologue for a BPF program which fetches 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; }

[PATCH 04/37] tools: Clone the kernel's strtobool function

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan Copying it to tools/lib/string.c, the counterpart to the kernel's lib/string.c. This is preparation for enhancing BPF program configuration, which will allow config string like 'inlines=yes'. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Jonathan Cameron Cc: Masami

[PATCH 14/37] perf test: Fix 'perf test BPF' when it fails to find a suitable vmlinux

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan Two bugs in 'perf test BPF' are found when testing BPF prologue without vmlinux: # mv /lib/modules/4.3.0-rc4+/build/vmlinux{,.bak} # ./perf test BPF 37: Test BPF filter :Failed to find the path for kernel: No such file or directory Ok Test BPF should fail in

[PATCH 25/37] perf tools: Fix to put new map after inserting to map_groups in dso__load_sym

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix dso__load_sym to put the map object which is already insterted to kmaps. Refcnt debugger shows [0] Unreclaimed map: 0x39113e0 Refcount +1 => 1 at ./perf(map__new2+0xb5) [0x4be155] ./perf(dso__load_sym+0xee1) [0x503461]

[PATCH 05/37] bpf tools: Load a program with different instances using preprocessor

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch is a preparation for BPF prologue support which allows generating a series of BPF bytecode for fetching kernel data before calling program code. With the newly introduced multiple instances support, perf is able to create different prologues for different kprobe points.

[PATCH 23/37] perf machine: Fix to destroy kernel maps when machine exits

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Actually machine__exit forgot to call machine__destroy_kernel_maps. This fixes some memory leaks on map as below. Without this fix. ./perf probe vfs_read Added new event: probe:vfs_read (on vfs_read) You can now use it in all perf tools, such as:

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-19 Thread Will Deacon
On Wed, Nov 18, 2015 at 11:25:14AM +, Will Deacon wrote: > On Tue, Nov 17, 2015 at 01:01:09PM -0800, Paul E. McKenney wrote: > > On Tue, Nov 17, 2015 at 11:51:10AM +, Will Deacon wrote: > > > On Mon, Nov 16, 2015 at 01:58:49PM -0800, Linus Torvalds wrote: > > > > On Mon, Nov 16, 2015 at

[PATCH 28/37] perf machine: Fix machine__findnew_module_map to put dso

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix machine__findnew_module_map to drop the reference to the dso because it is already referenced by both machine__findnew_module_dso() and map__new2(). Refcnt debugger shows: [1] Unreclaimed dso: 0x1ffd980 Refcount +1 => 1 at ./perf(dso__new+0x1ff)

[PATCH 16/37] perf tests: Pass the subtest index to each test routine

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Some tests have sub-tests we want to run, so allow passing this. Wang tried to avoid having to touch all tests, but then, having the test.func in an anonymous union makes the build fail on older compilers, like the one in RHEL6, where: test a = { .func

[PATCH 22/37] perf machine: Fix machine__destroy_kernel_maps to drop vmlinux_maps references

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix machine__destroy_kernel_maps() to drop vmlinux_maps references before filling it with NULL. Refcnt debugger shows [1] Unreclaimed map: 0x36b1070 Refcount +1 => 1 at ./perf(map__new2+0xb5) [0x4bdec5] ./perf(machine__create_kernel_maps+0x72)

[PATCH 21/37] perf machine: Fix machine__findnew_module_map to put registered map

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix machine object to drop the reference to the map object after it inserted it into machine->kmaps. refcnt debugger shows what happened: [2] Unreclaimed map: 0x346f750 Refcount +1 => 1 at ./perf(map__new2+0xb5) [0x4bdea5] ./perf()

Re: [PATCH v5 0/4] mfd: sec: add S2MPS15 PMIC support

2015-11-19 Thread Alim Akhtar
Hi Lee, Do I need to resend this series? This series still apply cleanly on top of v4.4-rc1. I can see 1/4 is already applied. Thanks & Regards, Alim On Fri, Oct 30, 2015 at 11:55 AM, Alim Akhtar wrote: > Samsung's S2MPS15 PMIC is targetted to be used with Samsung's Exynos7 SoC. > The S2MPS15

[PATCH 19/37] perf test: Mute test cases error messages if verbose == 0

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan Sometimes error messages in breaks the pretty output of 'perf test'. For example: # mv /lib/modules/4.3.0-rc4+/build/vmlinux{,.bak} # perf test LLVM BPF 35: Test LLVM searching and compiling: 35.1: Basic BPF llvm compiling test

[PATCH 18/37] perf test: Print result for each BPF subtest

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch prints each sub-tests results for BPF testcases. Before: # ./perf test BPF 37: Test BPF filter : Ok After: # ./perf test BPF 37: Test BPF filter : 37.1: Test basic BPF

[PATCH 27/37] perf tools: Fix machine__create_kernel_maps to put kernel dso refcount

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix machine__create_kernel_maps() to put kernel dso because the dso has been gotten via __machine__create_kernel_maps(). Refcnt debugger shows: [0] Unreclaimed dso: 0x3036ab0 Refcount +1 => 1 at ./perf(dso__new+0x1ff) [0x4a62df]

Re: [V2 PATCH] arm64: restore bogomips information in /proc/cpuinfo

2015-11-19 Thread Catalin Marinas
On Wed, Nov 18, 2015 at 10:48:55AM -0800, Yang Shi wrote: > As what Pavel Machek reported [1], some userspace applications depend on > bogomips showed by /proc/cpuinfo. > > Although there is much less legacy impact on aarch64 than arm, but it does > break libvirt. > > Basically, this patch

[PATCH 35/37] perf hists browser: Support folded callchains

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The folded callchain mode prints all chains in a single line. Currently perf report --tui doesn't support folded callchains. Like flat callchains, only leaf nodes are added to the final rbtree so it should show entries in parent nodes. To do that, add flat_val list to

[PATCH 15/37] perf bpf: Use same BPF program if arguments are identical

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch allows creating only one BPF program for different 'probe_trace_event'(tev) entries generated by one 'perf_probe_event'(pev) if their prologues are identical. This is done by comparing the argument list of different tev instances, and the maps type of prologue and tev

[PATCH 30/37] perf callchain: Abstract callchain print function

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim This is a preparation to support for printing other type of callchain value like count or period. Signed-off-by: Namhyung Kim Tested-by: Brendan Gregg Cc: Andi Kleen Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Kan Liang Cc: Peter Zijlstra Link:

[PATCH 17/37] perf test: Print result for each LLVM subtest

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan Currently 'perf test llvm' and 'perf test BPF' have multiple sub-tests, but the result is provided in only one line: # perf test LLVM 35: Test LLVM searching and compiling: Ok This patch introduces sub-tests support, allowing 'perf test' to report

[PATCH 24/37] perf tools: Make perf_exec_path() always return malloc'd string

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Since system_path() returns malloc'd string if given path is not an absolute path, perf_exec_path() sometimes returns a static string and sometimes returns a malloc'd string depending on the environment variables or command options. This may cause a memory leak because

[PATCH 33/37] perf hists browser: Factor out hist_browser__show_callchain_list()

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim This function is to print a single callchain list entry. As this function will be used by other function, factor out to a separate function. Signed-off-by: Namhyung Kim Cc: Andi Kleen Cc: Brendan Gregg Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Kan Liang

[PATCH 32/37] perf report: Add callchain value option

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Now -g/--call-graph option supports how to display callchain values. Possible values are 'percent', 'period' and 'count'. The percent is same as before and it's the default behavior. The period displays the raw period value rather than the percentage. The count displays the

[PATCH 29/37] perf report: Support folded callchain mode on --stdio

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Add new call chain option (-g) 'folded' to print callchains in a line. The callchains are separated by semicolons, and preceded by (absolute) percent values and a space. For example, the following 20 lines can be printed in 3 lines with the folded output mode: $ perf

[PATCH 36/37] perf ui/gtk: Support flat callchains

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The flat callchain mode is to print all chains in a simple flat hierarchy so make it easy to see. Currently perf report --gtk doesn't show flat callchains properly. With flat callchains, only leaf nodes are added to the final rbtree so it should show entries in parent nodes.

[PATCH 02/37] tools: Fix selftests_install Makefile rule

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Kevin Hilman Fix copy/paste error in selftests_install rule which was copy-pasted from the clean rule but not properly changed. Signed-off-by: Kevin Hilman Cc: Bamvor Jian Zhang Cc: Jiri Olsa Cc: Jonathan Cameron Cc: Michael Ellerman Cc: Pali Rohar Cc: Pavel Machek Cc: Roberta

[PATCH 37/37] perf ui/gtk: Support folded callchains

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The folded callchain mode is to print all chains in a single line. Currently perf report --gtk doesn't support folded callchains. Like flat callchains, only leaf nodes are added to the final rbtree so it should show entries in parent nodes. Signed-off-by: Namhyung Kim

[PATCH 34/37] perf hists browser: Support flat callchains

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The flat callchain mode is to print all chains in a single, simple hierarchy so make it easy to see. Currently perf report --tui doesn't show flat callchains properly. With flat callchains, only leaf nodes are added to the final rbtree so it should show entries in parent

[PATCH 31/37] perf callchain: Add count fields to struct callchain_node

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim It's to track the count of occurrences of the callchains. Signed-off-by: Namhyung Kim Acked-by: Brendan Gregg Acked-by: Jiri Olsa Cc: Andi Kleen Cc: David Ahern Cc: Frederic Weisbecker Cc: Kan Liang Cc: Peter Zijlstra Link:

[PATCH 09/37] perf bpf: Allow attaching BPF programs to modules symbols

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan By extending the syntax of BPF object section names, this patch allows users to attach BPF programs to symbols in modules. For example: SEC("module=i915;" "parse_cmds=i915_parse_cmds") int parse_cmds(void *ctx) { return 1; } The implementation is very simple:

[PATCH v3] watchdog: add support for Sigma Designs SMP86xx/SMP87xx

2015-11-19 Thread Mans Rullgard
This adds support for the Sigma Designs SMP86xx/SMP87xx family built-in watchdog. Signed-off-by: Mans Rullgard --- Changes: - deactivate initially if disable bit is set so as to avoid accidentally resetting if the counter is expired --- drivers/watchdog/Kconfig | 10 ++

[PATCH 07/37] perf bpf: Compile dwarf-regs.c if CONFIG_BPF_PROLOGUE is on

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan regs_query_register_offset() in dwarf-regs.c is required by BPF prologue. This patch compiles it if CONFIG_BPF_PROLOGUE is on to avoid build failure when CONFIG_BPF_PROLOGUE is on but CONFIG_DWARF is not set. Signed-off-by: He Kuang Acked-by: Masami Hiramatsu Cc: Alexei

[GIT PULL 00/37] perf/core improvements and fixes

2015-11-19 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, this was based on tip/perf/urgent and I did a test merge of tip/perf/core with tip/perf/urgent and then with this branch, haven't noticed problems, Best regards, - Arnaldo The following changes since commit e15bf88a44d1fcb685754b2868b1cd28927af3aa:

[PATCH 06/37] perf bpf: Add BPF_PROLOGUE config options for further patches

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan If both LIBBPF and DWARF are detected, it is possible to create prologue for eBPF programs to help them access kernel data. HAVE_BPF_PROLOGUE and CONFIG_BPF_PROLOGUE are added as flags for this feature. PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET is introduced in commit

[PATCH 01/37] perf test: Fix build of BPF and LLVM on older glibc libraries

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo $ rpm -q glibc glibc-2.12-1.166.el6_7.1.x86_64 CC /tmp/build/perf/tests/llvm.o cc1: warnings being treated as errors tests/llvm.c: In function ‘test_llvm__fetch_bpf_obj’: tests/llvm.c:53: error: declaration of ‘index’ shadows a global

[PATCH 10/37] perf bpf: Allow BPF program config probing options

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan By extending the syntax of BPF object section names, this patch allows users to config probing options like what they can do in 'perf probe'. The error message in 'perf probe' is also updated. Test result: For following BPF file test_probe_glob.c: # cat test_probe_glob.c

[PATCH 03/37] tools: Adopt memdup() from tools/perf, moving it to tools/lib/string.c

2015-11-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo That will contain more string functions with counterparts, sometimes verbatim copies, in the kernel. Acked-by: Wang Nan Cc: Adrian Hunter Cc: Alexey Dobriyan Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Link:

Re: ptrace() hangs on attempt to seize/attach stopped & frozen task

2015-11-19 Thread Oleg Nesterov
Thanks Pedro for your email, I'll recheck tomorrow, but at first glance: On 11/19, Pedro Alves wrote: > > Both GDB and gdbserver have special processing for attaching to > already-stopped > processes. Yes, I am starting to recall that I have looked at this code years ago ;) > 907

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-19 Thread Jacob Pan
On Mon, 16 Nov 2015 16:09:10 -0800 Jacob Pan wrote: > > > For the second case, which is much more rare, I think we do have > > > next timer exactly one tick away. Just don't know why tick will > > > continue into idle loop. > > > > Well, it should not be hard to figure that out. There are

Re: [GIT PULL] at91: fixes for 4.4 #1

2015-11-19 Thread Nicolas Ferre
Le 19/11/2015 16:22, Arnd Bergmann a écrit : > On Tuesday 17 November 2015 12:35:58 Nicolas Ferre wrote: >> Arnd, Olof, Kevin, >> >> This is the first "fixes" pull-request for AT91. I tried to collect little >> patches that didn't make it for -rc1. >> It can be due to synchronization between trees

RE: [PATCH 0/8] staging: comedi: some comedi_write() changes

2015-11-19 Thread Hartley Sweeten
On Wednesday, November 18, 2015 10:55 AM, Ian Abbott wrote: > Tidy up the "write" file operation handler, `comedi_write()` a bit and > improve the error handling. > > 1) staging: comedi: rearrange comedi_write() code > 2) staging: comedi: do extra checks for becoming non-busy for "write" > 3)

Re: [PATCH] staging: android: ion: Fixing NULL comparison style

2015-11-19 Thread Greg KH
On Thu, Nov 19, 2015 at 10:29:53PM +0530, Anjali Menon wrote: > Using checkpatch.pl fixed the check. > > CHECK: Comparison to NULL could be written "!data" > > Signed-off-by: Anjali Menon > --- > drivers/staging/android/ion/compat_ion.c | 6 +++--- > 1 file changed, 3 insertions(+), 3

RE: [PATCH 0/2] staging: comedi: s526: add counter register macros

2015-11-19 Thread Hartley Sweeten
On Thursday, November 19, 2015 7:49 AM, Ian Abbott wrote: > Add macros to describe the counter mode and counter control/status > registers. In patch 1, the macros for the counter mode register replace > the use of bitfield structure and union types. > > 1) staging: comedi: s526: replace counter

Re: [PATCH v2 2/5] Documentation: devicetree: Add DT bindings to eeprom_93xx46 driver.

2015-11-19 Thread Cory Tusar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/19/2015 09:59 AM, Rob Herring wrote: > On Wed, Nov 18, 2015 at 10:29:38PM -0500, Cory Tusar wrote: >> This commit documents bindings to be added to the eeprom_93xx46 driver >> which will allow: >> >> - Device word size and read-only attributes

Re: [RFC] In-kernel fuzz testing for apps

2015-11-19 Thread Laura Abbott
On 11/18/2015 03:39 PM, Andrey Utkin wrote: Me and my friend have once talked about careful application development, which includes awareness about all possible error conditions. So we have collected ideas about making kernel (or, in some cases, libc) "hostile" to careless application, and we

Re: [PATCH 3/4] sched: introduce synchronized idle injection

2015-11-19 Thread Morten Rasmussen
On Wed, Nov 18, 2015 at 07:51:47AM -0800, Arjan van de Ven wrote: > On 11/18/2015 7:44 AM, Morten Rasmussen wrote: > >I would not necessarily want to punish all cpus > >system-wide if we have local overheating in one corner. If would rather > >have it apply to only the overheating socket in a

Re: [PATCH v3 11/12] drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree binding

2015-11-19 Thread Rob Herring
On Thu, Nov 19, 2015 at 11:35:29AM +0800, Chris Zhong wrote: > This binding specifies a set of common properties for display panels. It > can be used as a basis by bindings for specific panels. > Bindings for three specific panels are provided to show how the > simple panel binding can be used. >

Re: [PATCH v3 08/12] Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver

2015-11-19 Thread Rob Herring
On Thu, Nov 19, 2015 at 11:35:26AM +0800, Chris Zhong wrote: > add device tree bindings for rk3288 specific Synopsys DW MIPI DSI driver > > Signed-off-by: Chris Zhong Acked-by: Rob Herring > > --- > > Changes in v3: > move dw_mipi_dsi_rockchip.txt to bindings/display/rockchip/ > > Changes

Re: [PATCH RESEND_2] scsi_sysfs: protect against double execution of __scsi_remove_device()

2015-11-19 Thread Martin K. Petersen
> "Vitaly" == Vitaly Kuznetsov writes: Vitaly> On some host errors storvsc module tries to remove sdev by Vitaly> scheduling a job which does the following: Applied to 4.4. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v2 5/5] misc: eeprom_93xx46: Add support for a GPIO 'select' line.

2015-11-19 Thread Andrew Lunn
On Thu, Nov 19, 2015 at 06:52:57PM +0200, Vladimir Zapolskiy wrote: > On 19.11.2015 16:18, Andrew Lunn wrote: > >>> #ifdef CONFIG_OF > >>> +static void select_assert(void *context) > >>> +{ > >>> + struct eeprom_93xx46_dev *edev = context; > >>> + > >>> +

Re: [PATCH RESEND] arm64: berlin: add the pinctrl dependency for Marvell Berlin SoCs

2015-11-19 Thread Jisheng Zhang
On Tue, 17 Nov 2015 13:41:54 + Catalin Marinas wrote: > On Mon, Nov 16, 2015 at 06:36:10PM +0800, Jisheng Zhang wrote: > > This is to add the pinctrl dependency for Marvell Berlin SoCs. > > > > Signed-off-by: Jisheng Zhang > > Acked-by: Sebastian Hesselbarth > > Acked-by: Antoine Tenart >

RE: [PATCH 1/8] staging: comedi: rearrange comedi_write() code

2015-11-19 Thread Hartley Sweeten
On Wednesday, November 18, 2015 10:55 AM, Ian Abbott wrote: > Rearrange the code in `comedi_write()` to reduce the amount of > indentation. The code never reiterates the `while` loop once `count` > has become non-zero, so we can check that in the `while` condition to > save an indentation level.

[PATCH] mfd: wm8994: Ensure that the whole MFD is built into a single module

2015-11-19 Thread Charles Keepax
The MFD part of wm8994 consists of three files wm8994-core.c, wm8994-irq.c and wm8994-regmap.c only wm8994-core.c has a MODULE_DESCRIPTION / LICENSE. These were clearly intended to be built as a single module, but currently are not. This will lead to a tainted kernel when loading modules for

[PATCH] staging: android: ion: Fixing NULL comparison style

2015-11-19 Thread Anjali Menon
Using checkpatch.pl fixed the check. CHECK: Comparison to NULL could be written "!data" Signed-off-by: Anjali Menon --- drivers/staging/android/ion/compat_ion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/ion/compat_ion.c

[PATCH v3] arm64: Add support for PTE contiguous bit.

2015-11-19 Thread David Woods
The arm64 MMU supports a Contiguous bit which is a hint that the TTE is one of a set of contiguous entries which can be cached in a single TLB entry. Supporting this bit adds new intermediate huge page sizes. The set of huge page sizes available depends on the base page size. Without using

Re: [PATCH 1/2] ARM: hisi: do not export smp_operations structures

2015-11-19 Thread Wei Xu
Hi Masahiro, On 15/11/2015 01:39, Masahiro Yamada wrote: > These three structures are only defined and referenced in > mach-hisi/platsmp.c. > > Drop the declarations from the header and add static qualifier > to the definitions. > > Signed-off-by: Masahiro Yamada > --- Thanks! Acked-by: Wei

Re: [Intel-gfx] [PATCH 0/1] async: export current_is_async()

2015-11-19 Thread Daniel Vetter
On Thu, Nov 19, 2015 at 11:10:16AM -0500, Tejun Heo wrote: > Hello, Lukas. > > On Thu, Nov 19, 2015 at 04:31:11PM +0100, Lukas Wunner wrote: > > Hi Tejun, > > > > when you introduced current_is_async() with 84b233adcca3, was it a > > deliberate decision not to export it? All other non-static

Re: [PATCH v2 5/5] misc: eeprom_93xx46: Add support for a GPIO 'select' line.

2015-11-19 Thread Vladimir Zapolskiy
On 19.11.2015 16:18, Andrew Lunn wrote: >>> #ifdef CONFIG_OF >>> +static void select_assert(void *context) >>> +{ >>> + struct eeprom_93xx46_dev *edev = context; >>> + >>> + gpiod_set_value_cansleep(gpio_to_desc(edev->pdata->select_gpio), 1); >> >> I would suggest to use gpio_set_value() > >

Re: [PATCH 13/14] mm: memcontrol: account socket memory in unified hierarchy memory controller

2015-11-19 Thread Johannes Weiner
On Thu, Nov 19, 2015 at 02:50:24PM +0100, Michal Hocko wrote: > On Wed 18-11-15 16:48:22, Johannes Weiner wrote: > [...] > > So I ran perf record -g -a netperf -t TCP_STREAM multiple times inside > > a memory-controlled cgroup, but mostly mem_cgroup_charge_skmem() does > > not show up in the

Re: [PATCH 5/5] ARM: asm/div64.h: adjust to generic codde

2015-11-19 Thread Måns Rullgård
Nicolas Pitre writes: > On Thu, 19 Nov 2015, Måns Rullgård wrote: > >> Nicolas Pitre writes: >> >> > +static inline uint64_t __arch_xprod_64(uint64_t m, uint64_t n, bool bias) >> > +{ >> > + unsigned long long res; >> > + unsigned int tmp = 0; >> > + >> > + if (!bias) { >> > + asm

Re: ptrace() hangs on attempt to seize/attach stopped & frozen task

2015-11-19 Thread Pedro Alves
On 11/17/2015 07:34 PM, Oleg Nesterov wrote: > On 11/16, Tejun Heo wrote: >>> And perhaps we can simply remove this logic? I forgot why do we hide this >>> STOPPED -> RUNNING -> TRACED transition from the attaching thread. But the >>> vague feeling tells me that we discussed this before and

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