[PATCH 47/64] perf stat: Change metrics context calculation

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Changing metrics context calculation to allow more than 2 types of context. Following patches will add support for the rest of the exclude_* bits so we need separate array element for all context combinations. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Andi Kleen

[PATCH 20/64] perf session: Add hooks to allow transparent decoding of AUX area tracing data

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Hook into session processing so that AUX area decoding can synthesize events transparently to the tools. The advantages of transparent decoding are that tools can be used directly with perf.data files containing AUX area tracing data, which is easier for the user and more

[PATCH 31/64] perf script: Add field option 'flags' to print sample flags

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Instruction tracing will typically have access to information about the instruction being executed for a particular ip sample. Some of that information will be available in the 'flags' member of struct perf_sample. With the addition of transactions events synthesis to

[PATCH 29/64] perf inject: Re-pipe AUX area tracing events

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter New AUX area tracing events must be re-piped by default. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

[PATCH 39/64] perf tools: Add static terms support for parse_events_error

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Allowing static terms like 'name,period,config,config1..' processing to report back error. $ perf record -e 'cpu/event=1,name=1/' ls event syntax error: '..=1,name=1/' \___ expected string value $ perf record -e 'cpu/event=1,period=krava/'

[PATCH 30/64] perf inject: Add Instruction Tracing support

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add support for decoding an AUX area assuming it contains instruction tracing data. The AUX area tracing events are stripped and replaced by synthesized events. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc:

[PATCH 41/64] perf tools: Add symbolic events support for parse_events_error

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Allowing symbolic events processing to report back error. $ perf record -e 'cycles/period=krava/' ls event syntax error: '../period=krava/' \___ expected numeric value $ perf record -e 'cycles/name=1/' ls event syntax error:

[PATCH 27/64] perf tools: Add member to struct dso for an instruction cache

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add a member to struct dso that can be used by Instruction Trace implementations to hold a cache for decoded instructions. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

[PATCH 21/64] perf session: Add instruction tracing options

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter It is assumed that AUX area decoding will synthesize events for consumption by other tools. At this time, the main use of AUX area tracing will be to capture instruction trace (aka processor trace) data. The nature of instruction tracing suggests the initial inclusion of

[PATCH 37/64] perf tools: Add location to pmu event terms

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Saving the terms location within term struct, so it could be used later for report. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1429729824-13932-6-git-send-email-jo...@kernel.org

[PATCH 48/64] perf stat: Add metrics support for exclude_hv

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Separating metrics values for exclude_hv bit. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Andi Kleen Cc: David Ahern Cc: Paul Mackerras Cc: Peter Zijlstra Cc: William Cohen Link: http://lkml.kernel.org/r/1428441919-23099-5-git-send-email-jo...@kernel.org

[PATCH 50/64] perf stat: Add metrics support for exclude_idle

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Separating metrics values for exclude_idle bit. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Andi Kleen Cc: David Ahern Cc: Paul Mackerras Cc: Peter Zijlstra Cc: William Cohen Link: http://lkml.kernel.org/r/1428441919-23099-7-git-send-email-jo...@kernel.org

[PATCH 52/64] perf tools: Move TUI-specific fields into unnamed union

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Since perf diff only supports stdio output, TUI fields are only accessed from perf report (or perf top). So add a new unnamed union and move struct hist_entry_tui and those TUI-specific fields. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc: David Ahern Cc: Peter

[PATCH 56/64] perf hists browser: Save pstack in the hist_browser

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The struct pstack is to save currently applied thread and/or dso filters in the browser. So it'd be better to keep in the struct hist_browser. This is a preparation to later change. Suggested-by: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc:

[PATCH 54/64] perf hists browser: Fix possible memory leak

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The options array saves strings for each popup menu item. The number of items can be vary according to the currently selected item. So it can leak some memory if it's exited from a small item. Fix it by freeing all items when loop terminates. Signed-off-by: Namhyung Kim

[PATCH 63/64] perf tools: Use getconf to determine number of online CPUs

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Will Deacon Parsing /proc/cpuinfo is a fiddly, arch-dependent business and a recent change to get it working for Sparc broke arm and arm64 platforms. Use sysconf to determine the number of online CPUs only parsing /proc/cpuinfo when sysconf is not available. Signed-off-by: Will Deacon

[PATCH 64/64] perf bench numa: Show more stats of particular threads in verbose mode

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Petr Holasek In verbose mode perf bench numa shows also GB/s speed, system and user cpu time for each particular thread. Using of getrusage() can provide much more per process or per thread stats in future. Signed-off-by: Petr Holasek Reviewed-by: Ingo Molnar Cc: Jiri Olsa Link:

RE: [RFC PATCH 5/5] GHES: Make NMI handler have a single reader

2015-04-28 Thread Zheng, Lv
Hi, I was talking about this patch. > From: Borislav Petkov [mailto:b...@alien8.de] > Sent: Friday, March 27, 2015 5:23 PM > Subject: [RFC PATCH 5/5] GHES: Make NMI handler have a single reader > > From: Jiri Kosina > > Since GHES sources are global, we theoretically need only a single CPU >

[PATCH 61/64] perf hists browser: Simplify zooming code using pstack_peek()

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Now LEFT key press action can just use do_zoom_dso/thread() code to get out of the current filter. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc: David Ahern Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1429838133-14001-2-git-send-email-namhy...@kernel.org

[PATCH 59/64] perf hists browser: Split popup menu actions - part 2

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Currently perf_evsel__hists_browse() function spins on a huge loop and handles many key actions. Since it's hard to read and modify, let's split it out into small helper functions. The add_XXX_opt() functions are to register popup menu item on the selected entry. When it

[PATCH 55/64] perf hists browser: Save hist_browser_timer pointer in hist_browser

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The struct hist_browser_timer is to carry perf-top related info throughout the hist browser code. So it'd be better to keep in the struct hist_browser. This is a preparation to later change. Suggested-by: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim Acked-by: Jiri

Re: [PATCH] mlx4: Fix tx ring affinity_mask creation

2015-04-28 Thread Ido Shamay
On 4/28/2015 6:26 AM, Benjamin Poirier wrote: On 2015/04/13 17:22, Benjamin Poirier wrote: On 2015/04/12 10:03, Ido Shamay wrote: Hi Benjamin, On 4/10/2015 7:27 PM, Benjamin Poirier wrote: By default, the number of tx queues is limited by the number of online cpus in mlx4_en_get_profile().

[PATCH 62/64] perf tools: Move TUI-specific fields out of map_symbol

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The has_children and unfolded fields don't belong to struct map_symbol since they're used by TUI only. Move those fields out of map_symbol since the struct is also used by other places. This will also help to compact the sizeof struct hist_entry. Signed-off-by: Namhyung Kim

[PATCH 53/64] perf tools: Move init_have_children field to the unnamed union

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The init_have_children is used to init callchain info only for TUI. So it'd be better to move it to the TUI-specific unnamed union member. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc: David Ahern Cc: Peter Zijlstra Link:

[PATCH 58/64] perf hists browser: Split popup menu actions

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Currently perf_evsel__hists_browse() function spins on a huge loop and handles many key actions. Since it's hard to read and modify, let's split it out into small helper functions. This patch introduces do_XXX() functions which corresponds to each goto label. This way we

Re: [PATCH v8 2/2] Documentation: Add device tree bindings document for max77843

2015-04-28 Thread Lee Jones
DT Ack please. > From: Jaewon Kim > > Add document describing device tree bindings for max77843 MFD. > Drivers: MFD core, regulator, extcon, charger and fuelgauge. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Ian Campbell > Cc: Kumar Gala > Cc: Lee Jones > Cc: Sebastian

[PATCH v3 2/3] tty: serial: 8250_mtk: Add earlycon

2015-04-28 Thread Eddie Huang
Add 8250 MTK UART driver to support earlycon device tree. Earlycon take effect by add "earlycon" in kernel boot argument add "linux,sdtout-path" property in device tree file Signed-off-by: Eddie Huang --- drivers/tty/serial/8250/8250_mtk.c | 13 + 1 file changed, 13

[PATCH v3 3/3] arm64: dts: Add mediatek MT8173 earlycon support

2015-04-28 Thread Eddie Huang
Add earlycon support to mediatek MT8173 evaluation board dts. Signed-off-by: Eddie Huang --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts

Re: [PATCH] x86_64, asm: Work around AMD SYSRET SS descriptor attribute issue

2015-04-28 Thread Borislav Petkov
On Mon, Apr 27, 2015 at 09:45:12PM +0200, Borislav Petkov wrote: > > Maybe you are measuring random noise. > > Yeah. Last exercise tomorrow. Let's see what those numbers would look > like. Right, so with Mel's help, I did a simple microbenchmark to measure how many cycles a syscall (getpid())

[PATCH 49/64] perf stat: Add metrics support for exclude_(host|guest)

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Separating metrics values for guest and host, so we get proper values. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Andi Kleen Cc: David Ahern Cc: Paul Mackerras Cc: Peter Zijlstra Cc: William Cohen Link:

[PATCH v3 0/3] tty: serial: Add earlycon support to MT8173 SoC

2015-04-28 Thread Eddie Huang
This patch add earlycon support to MT8173 SoC platform. To use earlycon, need 1. Add earlycon in boot parameters 2. Add "linux,sdtout-path" property in device tree file This patch based on 4.1-rc1. Change in v3: Remove noinit options, not necessary, because 8250_early.c will not init hardware

Re: [PATCH 07/13] mm: meminit: Initialise a subset of struct pages if CONFIG_DEFERRED_STRUCT_PAGE_INIT is set

2015-04-28 Thread Andrew Morton
On Tue, 28 Apr 2015 10:53:23 +0100 Mel Gorman wrote: > > > +#ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT > > > +#define __defermem_init __meminit > > > +#define __defer_init__meminit > > > +#else > > > +#define __defermem_init > > > +#define __defer_init __init > > > +#endif > > > > Could we get

[PATCH 51/64] perf tools: Document --children option in more detail

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim As the --children option changes the output of perf report (and perf top) it sometimes confuses users. Add more words and examples to help understanding of the option's behavior - and how to disable it ;-). Signed-off-by: Namhyung Kim Reviewed-by: Ingo Molnar Cc: David

[PATCH v3 1/3] tty: serial: 8250: export early_serial8250_setup function

2015-04-28 Thread Eddie Huang
8250-like uart driver may call early_serial8250_setup to reuse 8250_early.c character output function. Signed-off-by: Eddie Huang --- drivers/tty/serial/8250/8250_early.c | 2 +- include/linux/serial_8250.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 46/64] perf stat: Fix metrics calculation with event qualifiers

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Currently in perf IPC and other metrics cannot be directly shown separately for both user and kernel in a single run. The problem was that the metrics matching code did not check event qualifiers. With this patch the following case works correctly. % perf stat -e

[PATCH 33/64] perf tools: Add parse_events_error interface

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding support to return error information from parse_events function. Following struct will be populated by parse_events function on return: struct parse_events_error { int idx; char *str; char *help; }; where 'idx' is the position in the string where the

[PATCH 42/64] perf probe: Make --funcs option exclusive

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu The --funcs option should be given exclusively. This adds PARSE_OPT_EXCUSIVE flag on --funcs (-F) option. Without this, 'perf probe --funcs -l' just shows the list of probes. With this, it shows error message correctly. This also fixes the help message and the

[PATCH 35/64] perf tools: Always bail out when config_attr function fails

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Not sure why we allowed the fail state, but it's wrong. Wrong type for 'name' term can cause segfault, and there's probably more fun hidden. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Link:

[PATCH 34/64] perf tools: Add flex support for parse_events_error

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Allowing flex parser to report back event parsing error, like: $ perf record -e cycles,cache-mises ls event syntax error: '..es,cache-mises' \___ parser error ... Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Paul

[PATCH 40/64] perf tools: Add tracepoint support for parse_events_error

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Allowing tracepoint events processing to report back error. $ perf record -e 'sched:krava' ls event syntax error: 'sched:krava' \___ unknown tracepoint ... Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung

[PATCH 38/64] perf tools: Add term support for parse_events_error

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Allowing event's term processing to report back error, like: $ perf record -e 'cpu/even=0x1/' ls event syntax error: 'cpu/even=0x1/' \___ unknown term valid terms:

[PATCH 57/64] perf hists browser: Save perf_session_env in the hist_browser

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The perf_session_env is to save system informantion at the recording time to be refered in the hist browser. So it'd be better to keep in the struct hist_browser. This is a preparation to later change. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc: David Ahern Cc:

[PATCH 60/64] perf tools: Introduce pstack_peek()

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The pstack_peek() is to get the topmost entry without removing it. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc: David Ahern Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1429838133-14001-1-git-send-email-namhy...@kernel.org Signed-off-by: Arnaldo Carvalho de

[PATCH 28/64] perf script: Add Instruction Tracing support

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add support for decoding an AUX area assuming it contains instruction tracing data. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-28 Thread Havoc Pennington
On Mon, Apr 27, 2015 at 6:14 PM, Linus Torvalds wrote: > The real problems seem to be in dbus memory management (suggestion: > keep a small per-thread cache of those message allocations) and to a > smaller degree in the crazy utf8 validation (why the f*ck does it do > that anyway?), with some

[PATCH 32/64] perf tools: Add aux_watermark member of struct perf_event_attr

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add new AUX area member (aux_watermark) of struct perf_event_attr to debug prints and byte swapping. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

[PATCH 25/64] perf auxtrace: Add processing for AUX area tracing events

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Provide hooks so that an AUX area decoder can process AUX area tracing events. Signed-off-by: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

Re: [PATCH v3 1/7] perf probe: Improve detection of file/function name in the probe pattern

2015-04-28 Thread Arnaldo Carvalho de Melo
Em Tue, Apr 28, 2015 at 05:35:34PM +0530, Naveen N. Rao escreveu: > Currently, perf probe considers patterns including a '.' to be a file. > However, this causes problems on powerpc ABIv1 where all functions have > a leading '.': > > $ perf probe -F | grep schedule_timeout_interruptible >

[PATCH 23/64] perf auxtrace: Add helpers for queuing AUX area tracing data

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Provide functions to queue AUX area tracing data buffers for processing. A AUX area decoder need not use the queues, however Intel BTS and Intel PT will use them. There is one queue for each of the mmap buffers that were used for recording. Because those mmaps were

[PATCH 24/64] perf auxtrace: Add a heap for sorting AUX area tracing queues

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In order to process AUX area tracing data in time order, the queue with data with the lowest timestamp must be processed first. Provide a heap to keep track of which queue that is. As with the queues, a decoder does not have to use the heap, but Intel BTS and Intel PT will

Re: [PATCH v1 3/3] mfd: Add support for Intel Sunrisepoint LPSS devices

2015-04-28 Thread Lee Jones
On Tue, 31 Mar 2015, Andy Shevchenko wrote: > The new coming Intel platforms such as Skylake will contain Sunrisepoint PCH. > The main difference to the previous platforms is that the LPSS devices are > compound devices where usually main (SPI, HSUART, or I2C) and DMA IPs are > present. > > This

[PATCH 26/64] perf auxtrace: Add a hashtable for caching

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Decoding AUX area data may involve walking object code. Rather than repetitively decoding the same instructions, a cache can be used to cache the results. This patch implements a fairly generic hashtable with a 32-bit key that could be used for other purposes as well.

[PATCH 18/64] perf record: Extend -m option for AUX area tracing mmap pages

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Extend the -m option so that the number of mmap pages for AUX area tracing can be specified by adding a comma followed by the number of pages. Signed-off-by: Adrian Hunter Acked-by: Jiri Olsa Cc: David Ahern Cc: Frederic Weisbecker Cc: Namhyung Kim Cc: Peter Zijlstra

[PATCH 16/64] perf auxtrace: Add support for AUX area recording

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add support for reading from the AUX area tracing mmap and synthesizing AUX area tracing events. This patch introduces an abstraction for recording AUX area data. Recording is initialized by auxtrace_record__init() which is a weak function to be implemented by the

[PATCH 17/64] perf record: Add basic AUX area tracing support

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Amend the perf record tool to read the AUX area tracing mmap and synthesize AUX area tracing events. Signed-off-by: Adrian Hunter Acked-by: Jiri Olsa Cc: David Ahern Cc: Frederic Weisbecker Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

[PATCH 15/64] perf tools: Add user events for AUX area tracing

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add two user events for AUX area tracing. PERF_RECORD_AUXTRACE_INFO contains metadata, consisting primarily the type of the AUX area tracing data plus some amount of architecture-specific information. There should be only one PERF_RECORD_AUXTRACE_INFO event.

Re: [PATCH v3 2/7] perf probe/ppc: Fix symbol fixup issues due to ELF type

2015-04-28 Thread Arnaldo Carvalho de Melo
Em Tue, Apr 28, 2015 at 05:35:35PM +0530, Naveen N. Rao escreveu: > If using the symbol table, symbol addresses are not being fixed up > properly, resulting in probes being placed at wrong addresses: > > # perf probe do_fork > Added new event: > probe:do_fork(on do_fork) > >

Re: [PATCH v1 3/3] mfd: Add support for Intel Sunrisepoint LPSS devices

2015-04-28 Thread Mika Westerberg
On Tue, Apr 28, 2015 at 02:32:59PM +0100, Lee Jones wrote: > On Tue, 31 Mar 2015, Andy Shevchenko wrote: > > > The new coming Intel platforms such as Skylake will contain Sunrisepoint > > PCH. > > The main difference to the previous platforms is that the LPSS devices are > > compound devices

Re: simple framebuffer slower by factor of 20, on socfpga (arm) platform

2015-04-28 Thread Russell King - ARM Linux
On Fri, Apr 24, 2015 at 03:46:56PM +0200, Geert Uytterhoeven wrote: > On Fri, Apr 24, 2015 at 3:40 PM, Tomi Valkeinen wrote: > > On 24/04/15 16:29, Pavel Machek wrote: > >> On Fri 2015-04-10 12:35:52, Archit Taneja wrote: > That said, if the fb is in RAM, and is only written by the CPU, I

[PATCH 19/64] perf tools: Add a user event for AUX area tracing errors

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Errors encountered when decoding an AUX area trace need to be reported to the user. However the "user" might be a script or another tool, so provide a new user event to capture those errors. Signed-off-by: Adrian Hunter Acked-by: Jiri Olsa Cc: David Ahern Cc: Frederic

Re: [PATCH 16/20] sched/idle: Use explicit broadcast oneshot control function

2015-04-28 Thread Rafael J. Wysocki
On Tuesday, April 28, 2015 03:37:44 PM Rafael J. Wysocki wrote: > On Tuesday, April 28, 2015 03:31:54 PM Rafael J. Wysocki wrote: > > On Tuesday, April 28, 2015 02:37:10 PM Linus Walleij wrote: > > > On Tue, Apr 28, 2015 at 2:19 PM, Rafael J. Wysocki > > > wrote: > > > > Sudeep: > > > >>

[PATCH 10/64] perf data: Add support for setting ordered_events queue size

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding support to limit the size of ordered_events queue, so we could control allocation size of perf data files without proper finished round events. Reviewed-by: David Ahern Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: David Ahern Cc: Frederic Weisbecker Cc: He

[PATCH 07/64] perf tests: Add build tests for building perf from kernel source root and tools

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding build tests for following make commands: $ make -C tools/perf $ make -C /tools perf Signed-off-by: Jiri Olsa Cc: Borislav Petkov Cc: Brian Norris Cc: David Ahern Cc: David Howells Cc: Michal Marek Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc:

[PATCH 08/64] perf data: Switch to multiple cpu stream files

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Sebastian Andrzej Siewior Currently we store the data into single data strea/file. The cpu if data is stored within the event sample. The lttng puts the CPU number that belongs to the event into the packet context instead into the event. This patch makes sure that the trace produce by

[PATCH 12/64] perf data: Fix signedness of value

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Wang Nan When converting int values, perf first extractes it to a ulonglong, then feeds it to babeltrace as a signed value. For negative 32 bit values (for example, return values of failed syscalls), the extracted data should be something like 0xfffe (-2). It becomes a large int64

[PATCH 11/64] perf data: Fix duplicate field names and avoid reserved keywords

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Wang Nan Some parameters of syscall tracepoints named as 'nr', 'event', etc. When dealing with them, perf convert to ctf meets some problem: 1. If a parameter with name 'nr', it will duplicate syscall's common field 'nr'. One such syscall is io_submit(). 2. If a parameter with name

[PATCH 05/64] tools build: No need to make libapi for perf explicitly

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The perf build handles its dependencies by itself. Also renaming libapi libapikfs to libapi as it got changed just recently. Signed-off-by: Jiri Olsa Cc: Borislav Petkov Cc: Brian Norris Cc: David Ahern Cc: David Howells Cc: Michal Marek Cc: Namhyung Kim Cc: Paul

[PATCH 04/64] tools lib traceevent: Add alias field to struct format_field

2015-04-28 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Introduce an 'alias' field to 'struct format_field' to be able to use alternative name for the field. It is initialized with same string pointer as 'name' field. The free logic checks the 'alias' pointer being reset by user and frees it. This will be handy when converting data

Re: [PATCH v3 0/7] Fixes for perf probe issues on ppc

2015-04-28 Thread Arnaldo Carvalho de Melo
Em Tue, Apr 28, 2015 at 05:35:33PM +0530, Naveen N. Rao escreveu: > This patchset fixes various issues with perf probe on powerpc across ABIv1 and > ABIv2: > - in the presence of DWARF debug-info, > - in the absence of DWARF, but with the symbol table, and > - in the absence of debug-info, but

Re: [PATCH 1/4] mailbox: add support for System Control and Power Interface(SCPI) protocol

2015-04-28 Thread Jon Medhurst (Tixy)
On Mon, 2015-04-27 at 12:40 +0100, Sudeep Holla wrote: > This patch adds support for System Control and Power Interface (SCPI) > Message Protocol used between the Application Cores(AP) and the System > Control Processor(SCP). The MHU peripheral provides a mechanism for > inter-processor

Re: [PATCH 0/9] mm: improve OOM mechanism v2

2015-04-28 Thread Michal Hocko
On Tue 28-04-15 19:34:47, Tetsuo Handa wrote: [...] > [PATCH 8/9] makes the speed of allocating __GFP_FS pages extremely slow (5 > seconds / page) because out_of_memory() serialized by the oom_lock sleeps for > 5 seconds before returning true when the OOM victim got stuck. This throttling > also

Re: [RFC v2 1/4] fs: Add generic file system event notifications

2015-04-28 Thread Jan Kara
On Mon 27-04-15 17:37:11, Greg KH wrote: > On Mon, Apr 27, 2015 at 05:08:27PM +0200, Beata Michalska wrote: > > On 04/27/2015 04:24 PM, Greg KH wrote: > > > On Mon, Apr 27, 2015 at 01:51:41PM +0200, Beata Michalska wrote: > > >> Introduce configurable generic interface for file > > >> system-wide

Re: [PATCH v2] context_tracking: remove local_irq_save from __acct_update_integrals

2015-04-28 Thread Peter Zijlstra
On Tue, Apr 28, 2015 at 08:53:18AM -0400, Rik van Riel wrote: > So what can I do to move forward with this patch? > > It speeds up syscall entry / exit by 7% when nohz_full > is enabled on a CPU... > > Should I have the irq block compiled in only when > sizeof(cputime_t) > sizeof(long) ? So I'm

Re: [PATCH v3 01/13] of: earlycon: Fix 'stdout-path' with ':' path terminator

2015-04-28 Thread Peter Hurley
On 04/28/2015 09:28 AM, Greg Kroah-Hartman wrote: > On Tue, Apr 28, 2015 at 09:07:54AM -0400, Peter Hurley wrote: >> On 04/08/2015 05:24 PM, Rob Herring wrote: >>> On Wed, Apr 8, 2015 at 12:45 PM, Peter Hurley >>> wrote: stdout-path defines ':' as a path terminator and commit 75c28c09af99a

Re: [PATCH 16/20] sched/idle: Use explicit broadcast oneshot control function

2015-04-28 Thread Sudeep Holla
On 28/04/15 15:14, Rafael J. Wysocki wrote: On Tuesday, April 28, 2015 03:37:44 PM Rafael J. Wysocki wrote: On Tuesday, April 28, 2015 03:31:54 PM Rafael J. Wysocki wrote: On Tuesday, April 28, 2015 02:37:10 PM Linus Walleij wrote: On Tue, Apr 28, 2015 at 2:19 PM, Rafael J. Wysocki wrote:

Re: [RFC PATCH 5/5] GHES: Make NMI handler have a single reader

2015-04-28 Thread Borislav Petkov
On Tue, Apr 28, 2015 at 01:38:41PM +, Zheng, Lv wrote: > > - raw_spin_lock(_nmi_lock); > > + if (!atomic_add_unless(_in_nmi, 1, 1)) > > + return ret; > > + > > if (atomic_cmpxchg(_in_nmi, 0, 1)) > return ret; Ok, now I understand what you mean. We absolutely want to use

[PATCH] KVM: x86: cancel delayed EOI work on vm shutdown

2015-04-28 Thread Radim Krčmář
kvm_ioapic_eoi_inject_work() can be called after ioapic has been freed, fix it by cancelling its delayed work via a slightly better freeing. (Could have been a one-liner.) Signed-off-by: Radim Krčmář --- I noticed it while reviewing the "KVM: x86: drop unneeded null test", so it applies after.

Re: Stricter module param and sysfs permission checks

2015-04-28 Thread Gobinda Charan Maji
Robert Jarzmik free.fr> writes: As per the newly added restriction (User perms >= group perms >= other perms) is concerned, there is an inconsistency in the permission. Say for example, permission value is "0432". Here User has only READ permission whereas Group has both WRITE and EXECUTE

Re: [PATCH v3 01/13] of: earlycon: Fix 'stdout-path' with ':' path terminator

2015-04-28 Thread Rob Herring
On Tue, Apr 28, 2015 at 8:58 AM, Peter Hurley wrote: > On 04/28/2015 09:28 AM, Greg Kroah-Hartman wrote: >> On Tue, Apr 28, 2015 at 09:07:54AM -0400, Peter Hurley wrote: >>> On 04/08/2015 05:24 PM, Rob Herring wrote: On Wed, Apr 8, 2015 at 12:45 PM, Peter Hurley wrote: >

Re: [PATCH 1/3] mtd: nand: Add on-die ECC support

2015-04-28 Thread Josh Cartwright
On Tue, Apr 28, 2015 at 09:14:26AM +0530, punnaiah choudary kalluri wrote: > On Tue, Apr 28, 2015 at 8:52 AM, Brian Norris > wrote: > > On Tue, Apr 28, 2015 at 08:18:12AM +0530, punnaiah choudary kalluri wrote: > >> On Tue, Apr 28, 2015 at 4:53 AM, Brian Norris > >> wrote: [..] > >> Agree that

Re: [PATCH 1/2] x86, stackvalidate: Compile-time stack frame pointer validation

2015-04-28 Thread Josh Poimboeuf
On Tue, Apr 28, 2015 at 02:16:06PM +0200, Peter Zijlstra wrote: > On Mon, Apr 27, 2015 at 08:56:27AM -0500, Josh Poimboeuf wrote: > > Frame pointer based stack traces aren't always reliable. One big reason > > is that most asm functions don't set up the frame pointer. > > > > Fix that by

Re: [PATCH v2] spi: omap2-mcspi: Add support for GPIO chipselects

2015-04-28 Thread Ezequiel Garcia
On 04/27/2015 10:21 PM, Michael Welling wrote: > On Mon, Apr 27, 2015 at 08:55:50PM +0100, Mark Brown wrote: >> On Sun, Apr 26, 2015 at 10:44:30PM -0500, Michael Welling wrote: >> >>> + if (gpio_is_valid(spi->cs_gpio)) { >>> + gpio_set_value(spi->cs_gpio, (cs_active) ? >>> +

Re: [PATCH 1/2] clocksource: arm_arch_timer: add arch_timer_okay_for_vdso

2015-04-28 Thread Nathan Lynch
On 04/27/2015 05:55 AM, Will Deacon wrote: > On Fri, Apr 24, 2015 at 10:43:20PM +0100, Nathan Lynch wrote: >> The 32-bit ARM VDSO needs to know whether a generic timer is present >> and whether it is suitable for use by user space. The VDSO >> initialization code currently duplicates some of the

Re: [PATCH 1/2] x86, stackvalidate: Compile-time stack frame pointer validation

2015-04-28 Thread Peter Zijlstra
On Tue, Apr 28, 2015 at 09:04:54AM -0500, Josh Poimboeuf wrote: > On Tue, Apr 28, 2015 at 02:16:06PM +0200, Peter Zijlstra wrote: > > On Mon, Apr 27, 2015 at 08:56:27AM -0500, Josh Poimboeuf wrote: > > > Frame pointer based stack traces aren't always reliable. One big reason > > > is that most

Re: [RFC v2 1/4] fs: Add generic file system event notifications

2015-04-28 Thread Greg KH
On Tue, Apr 28, 2015 at 03:56:53PM +0200, Jan Kara wrote: > On Mon 27-04-15 17:37:11, Greg KH wrote: > > On Mon, Apr 27, 2015 at 05:08:27PM +0200, Beata Michalska wrote: > > > On 04/27/2015 04:24 PM, Greg KH wrote: > > > > On Mon, Apr 27, 2015 at 01:51:41PM +0200, Beata Michalska wrote: > > > >>

Re: [PATCH v8 1/3] scsi: ufs: add ioctl interface for query request

2015-04-28 Thread Dov Levenglick
Reviewed-by: Dov Levenglick > From: Dolev Raviv > > This patch exposes the ioctl interface for UFS driver via SCSI device > ioctl interface. As of now UFS driver would provide the ioctl for query > interface to connected UFS device. > > Signed-off-by: Dolev Raviv > Signed-off-by: Noa Rubens >

Re: [PATCH v8 2/3] scsi: ufs: add debugfs for ufs

2015-04-28 Thread Dov Levenglick
Reviewed-by: Dov Levenglick > From: Lee Susman > > Adding debugfs capability for ufshcd. > > debugfs attributes introduced in this patch: > - View driver/controller runtime data > - Command tag statistics for performance analisis > - Dump device descriptor info > - Track recoverable errors

Re: [PATCH 04/16] printk: implement support for extended console drivers

2015-04-28 Thread Tejun Heo
Hello, Petr. On Tue, Apr 28, 2015 at 11:42:44AM +0200, Petr Mladek wrote: > Note that cont buffer is only a memory optimization. You could put > every text snippet into the ring buffer and console immediately. > You need to set LOG_CONT instead of LOG_NEWLINE flag. This is > already used when the

Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.

2015-04-28 Thread Michal Suchanek
On 28 April 2015 at 16:03, Eric D. wrote: > Hi, > > I give Maxime's patch a try and got 4 spidev devices : > /dev/spidev32766.[0-3] > > root@bpi:~# ls -lh /dev/spidev* > crw--- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0 > crw--- 1 root root 153, 1 Apr 28 15:52 /dev/spidev32766.1 >

Re: [PATCH 1/3] wait: introduce wait_event_cmd_exclusive

2015-04-28 Thread Peter Zijlstra
On Mon, Apr 27, 2015 at 12:51:01PM +0800, Yuanhan Liu wrote: > It's just a variant of wait_event_cmd, with exclusive flag being set. > > For cases like RAID5, which puts many processes to sleep until 1/4 > resources are free, a wake_up wakes up all processes to run, but > there is one process

Re: [PATCH] KVM: x86: cancel delayed EOI work on vm shutdown

2015-04-28 Thread Paolo Bonzini
On 28/04/2015 16:00, Radim Krčmář wrote: > kvm_ioapic_eoi_inject_work() can be called after ioapic has been freed, > fix it by cancelling its delayed work via a slightly better freeing. > (Could have been a one-liner.) > > Signed-off-by: Radim Krčmář > --- > I noticed it while reviewing the

[PATCH] drivers/scsi/arm/acornscsi.c: rename CONFIG_ACORNSCSI_CONSTANTS

2015-04-28 Thread Valentin Rothberg
CONFIG_ACORNSCSI_CONSTANTS is a file local CPP identifier and thereby violates the naming convention of Kconfig options in Make and CPP syntax; only Kconfig options should carry the 'CONFIG_' prefix. This patch removes the 'CONFIG_' prefix to apply to this convention and to make static analysis

Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.

2015-04-28 Thread Mark Brown
On Tue, Apr 28, 2015 at 02:52:54PM +0200, Michal Suchanek wrote: > On 28 April 2015 at 14:15, Eric D. wrote: > > I was just seeking a way to make spidev device appear under mainline kernel > > and found this thread. > > Could someone explain the right way to do this ? > There is no approved

Re: [PATCH 1/4] extcon: Modify the device name as extcon[X] for sysfs

2015-04-28 Thread Charles Keepax
On Mon, Apr 27, 2015 at 09:13:35PM +0900, Chanwoo Choi wrote: > This patch modify the device name as extcon[X] for sysfs by using the 'extcon' > prefix word instead of separate device name. On user-space aspect, user would > find the some extcon drvier with extcon[X] pattern. So, this patch modify

Re: Interacting with coherent memory on external devices

2015-04-28 Thread Christoph Lameter
On Mon, 27 Apr 2015, Jerome Glisse wrote: > > is the mechanism that DAX relies on in the VM. > > Which would require fare more changes than you seem to think. First using > MIXED|PFNMAP means we loose any kind of memory accounting and forget about > memcg too. Seconds it means we would need to

Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.

2015-04-28 Thread Maxime Ripard
On Tue, Apr 28, 2015 at 07:03:16AM -0700, Eric D. wrote: > Hi, > > I give Maxime's patch a try and got 4 spidev devices : > /dev/spidev32766.[0-3] > > root@bpi:~# ls -lh /dev/spidev* > crw--- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0 > crw--- 1 root root 153, 1 Apr 28 15:52

Re: [PATCH 0/4] ARM64: add SCPI mailbox protocol, clock and CPUFreq support

2015-04-28 Thread Sudeep Holla
On 27/04/15 19:11, Jon Medhurst (Tixy) wrote: On Mon, 2015-04-27 at 12:40 +0100, Sudeep Holla wrote: Hi, This patch series adds support for: 1. SCPI(System Control and Power Interface) mailbox protocol driver. Is there a public document with the final protocol

Re: [PATCH 1/2] x86, stackvalidate: Compile-time stack frame pointer validation

2015-04-28 Thread Josh Poimboeuf
On Tue, Apr 28, 2015 at 04:08:42PM +0200, Peter Zijlstra wrote: > On Tue, Apr 28, 2015 at 09:04:54AM -0500, Josh Poimboeuf wrote: > > On Tue, Apr 28, 2015 at 02:16:06PM +0200, Peter Zijlstra wrote: > > > On Mon, Apr 27, 2015 at 08:56:27AM -0500, Josh Poimboeuf wrote: > > > > Frame pointer based

Re: [PATCH 04/16] printk: implement support for extended console drivers

2015-04-28 Thread Petr Mladek
On Tue 2015-04-28 10:10:14, Tejun Heo wrote: > Hello, Petr. > > On Tue, Apr 28, 2015 at 11:42:44AM +0200, Petr Mladek wrote: > > Note that cont buffer is only a memory optimization. You could put > > every text snippet into the ring buffer and console immediately. > > You need to set LOG_CONT

Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.

2015-04-28 Thread Michal Suchanek
On 28 April 2015 at 16:16, Mark Brown wrote: > On Tue, Apr 28, 2015 at 02:52:54PM +0200, Michal Suchanek wrote: >> On 28 April 2015 at 14:15, Eric D. wrote: > >> > I was just seeking a way to make spidev device appear under mainline kernel >> > and found this thread. >> > Could someone explain

<    8   9   10   11   12   13   14   15   16   17   >