[PATCH v4 01/11] mfd: add atmel-hlcdc driver

2014-07-22 Thread Boris BREZILLON
The HLCDC IP available on some Atmel SoCs (i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) exposes 2 subdevices: - a display controller (controlled by a DRM driver) - a PWM chip The MFD device provides a regmap and several clocks (those connected to this hardware block) to its subdevices.

Re: [PATCH] Fix issues reported by checkpatch

2014-07-22 Thread Dan Carpenter
On Sat, Jul 19, 2014 at 11:55:39AM +0200, LABBE Corentin wrote: > Hello > > The drivers/staging/sep/sep_main.c have lots of checkpatch issue. > This patch series solves them and since there are many, I have splitted > corrections in 4 patch. > > Note that this work is done for the Eudyptulla Cha

Re: [PATCH 1/6] ARM: dts: vf610: add USB PHY and controller

2014-07-22 Thread Shawn Guo
On Tue, Jul 22, 2014 at 11:57:31AM +0200, Stefan Agner wrote: > Am 2014-07-22 04:22, schrieb Shawn Guo: > > On Fri, Jul 18, 2014 at 07:01:37PM +0200, Stefan Agner wrote: > >> This adds USB PHY and USB controller nodes. Vybrid SoCs have two > >> independent USB cores which each supports DR (dual rol

[PATCH 02/52] perf tools: Identify which comms are from exec

2014-07-22 Thread Adrian Hunter
Signed-off-by: Adrian Hunter --- tools/perf/util/comm.c| 7 +-- tools/perf/util/comm.h| 6 -- tools/perf/util/machine.c | 4 +++- tools/perf/util/thread.c | 24 +++- tools/perf/util/thread.h | 10 +- 5 files changed, 40 insertions(+), 11 deletions(

[PATCH 00/52] perf tools: More preparation for call graph from Intel BTS

2014-07-22 Thread Adrian Hunter
Hi Here is the next selection of patches based on tip/perf/core. They can also be found here: http://git.infradead.org/users/ahunter/linux-perf.git/shortlog/refs/heads/for-acme Adrian Hunter (52): perf tools: Fix jump label always changing during tracing perf tools: Identi

[PATCH 03/52] perf tools: Add machine__thread_exec_comm()

2014-07-22 Thread Adrian Hunter
Add machine__thread_exec_comm() to return the comm that matches the last exec, if the comm_exec flag is present, or the last comm otherwise. Signed-off-by: Adrian Hunter --- tools/perf/util/machine.c | 26 ++ tools/perf/util/machine.h | 4 tools/perf/util/session.c

[PATCH 04/52] perf tools: Fix missing label symbols

2014-07-22 Thread Adrian Hunter
label symbols are missing because elf_sec__is_a() fails to find the section because the section strings do not match the section headers because the sections headers are from the 'runtime' object and the sections strings are from the 'symbol source' object. Fix by getting the section strings from

[PATCH 01/52] perf tools: Fix jump label always changing during tracing

2014-07-22 Thread Adrian Hunter
Intel PT decoding walks the object code to reconstruct the trace. A jump label change during tracing causes decoding errors. The "Enable close-on-exec flag on perf file descriptor" patch caused there to be always a jump label change. It was found that using a per-cpu context instead of a per-thr

[PATCH 48/52] perf tools: Separate the VDSO map name from the VDSO dso name

2014-07-22 Thread Adrian Hunter
This is in preparation for supporting 32-bit compatibility VDSOs. Signed-off-by: Adrian Hunter --- tools/perf/util/header.c | 10 +- tools/perf/util/symbol-elf.c | 2 +- tools/perf/util/vdso.c | 11 --- tools/perf/util/vdso.h | 6 ++ 4 files changed, 20 inse

[PATCH 49/52] perf tools: Build programs to copy 32-bit compatibility VDSOs

2014-07-22 Thread Adrian Hunter
perf tools copy VDSO out of memory. However, on 64-bit machines there may be 32-bit compatibility VDOs also. To copy those requires separate 32-bit executables. This patch adds to the build additional programs perf-read-vdso32 and perf-read-vdsox32 for 32-bit and x32 respectively. Signed-off-by

[PATCH 40/52] perf tools: Add call information to Python export

2014-07-22 Thread Adrian Hunter
Add the ability to export detailed information about paired calls and returns to Python db export and the export-to-postgresql.py script. Signed-off-by: Adrian Hunter --- .../scripts/python/bin/export-to-postgresql-report | 15 ++-- tools/perf/scripts/python/export-to-postgresql.py | 66 +++

[PATCH 47/52] perf tools: Add vdso__new()

2014-07-22 Thread Adrian Hunter
This is preparation for adding support for compat VDSOs. Signed-off-by: Adrian Hunter --- tools/perf/util/vdso.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tools/perf/util/vdso.c b/tools/perf/util/vdso.c index fdaccaf..946d927 100644 --- a/tools/per

[PATCH 51/52] perf tools: Add thread parameter to vdso__dso_findnew()

2014-07-22 Thread Adrian Hunter
The thread will be needed to determine the VDSO type. Signed-off-by: Adrian Hunter --- tools/perf/util/machine.c | 4 ++-- tools/perf/util/map.c | 4 ++-- tools/perf/util/map.h | 3 ++- tools/perf/util/vdso.c| 3 ++- tools/perf/util/vdso.h| 3 ++- 5 files changed, 10 insertions(+

[PATCH 34/52] perf tools: Add Python script to export to postgresql

2014-07-22 Thread Adrian Hunter
Add a Python script to export to a postgresql database. The script requires the Python psycopg2 module. The caller of the script must be able to create postgresql databases. The script takes the database name as a parameter. The database and database tables are created. Data is written to flat

[PATCH 50/52] perf tools: Add dso__type()

2014-07-22 Thread Adrian Hunter
dso__type() determines wheather a dso is 32-bit, x32 (32-bit with 64-bit registers) or 64-bit. dso__type() will be used to determine the VDSO a program maps. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c| 11 +++ tools/perf/util/dso.h| 10 ++ tool

[PATCH 28/52] perf script: Allow callchains if any event samples them

2014-07-22 Thread Adrian Hunter
perf script was not displaying callchains if any selected event did not have PERF_SAMPLE_CALLCHAIN. Change this to disable callchains only if all selected events do not have PERF_SAMPLE_CALLCHAIN. Signed-off-by: Adrian Hunter --- tools/perf/builtin-script.c | 17 + 1 file change

[PATCH 52/52] perf tools: Add support for 32-bit compatibility VDSOs

2014-07-22 Thread Adrian Hunter
'perf record' post-processes the event stream to create a list of build-ids for object files for which sample events have been recorded. That results in those object files being recorded in the build-id cache. In the case of VDSO, perf tools reads it from memory and copies it into a temporary fi

[PATCH 31/52] perf tools: Add facility to export data in database-friendly way

2014-07-22 Thread Adrian Hunter
This patch introduces an abstraction for exporting sample data in a database-friendly way. The abstraction does not implement the actual output. A subsequent patch takes this facility into use for extending the script interface. The abstraction is needed because static data like symbols, dsos, c

[PATCH 39/52] perf tools: Add call information to the database export API

2014-07-22 Thread Adrian Hunter
Make it possible for the database export API to use the enhanced thread stack and export detailed information about paired calls and returns. Signed-off-by: Adrian Hunter --- tools/perf/util/db-export.c | 52 - tools/perf/util/db-export.h | 12

[PATCH 41/52] perf tools: Add 'flush' callback to scripting API

2014-07-22 Thread Adrian Hunter
In order to defer some output via the scripting API, there needs to be a callback after session processing but before the session is deleted. Signed-off-by: Adrian Hunter --- tools/perf/builtin-script.c| 12 tools/perf/util/scripting-engines/trace-event-p

[PATCH 46/52] perf tools: Fix the lifetime of the VDSO temporary file

2014-07-22 Thread Adrian Hunter
The VDSO temporary file is unlinked when a session is deleted. That precludes the possibilities that there is no session or there is more than one session. Correctly the vdso belongs to the machine so put the information on 'struct machine' and get rid of the global variables. Signed-off-by: Adri

Re: [PATCH V3] perf tools: Record whether a dso has data

2014-07-22 Thread Adrian Hunter
On 07/22/2014 10:55 AM, Jiri Olsa wrote: > On Thu, Jul 17, 2014 at 11:58:30AM +0300, Adrian Hunter wrote: >> Add 'data_status' to record whether a dso has data >> (i.e. an object file) > > I might have seen it in your last patsent, but forgot.. what is > this data_status going to be used for? I h

[PATCH 45/52] perf tools: Group VDSO global variables into a structure

2014-07-22 Thread Adrian Hunter
This is preparation for removing the global variables used in vdso.c and thereby fixing the lifetime of the VDSO temporary file. Also allowance is made for the later addition of support for compat VDSOs. Signed-off-by: Adrian Hunter --- tools/perf/util/vdso.c | 44 ++

[PATCH 38/52] perf tools: Enhance the thread stack to output call/return data

2014-07-22 Thread Adrian Hunter
Enhance the thread stack to output detailed information about paired calls and returns. Signed-off-by: Adrian Hunter --- tools/perf/util/thread-stack.c | 547 - tools/perf/util/thread-stack.h | 47 2 files changed, 590 insertions(+), 4 deletions(-)

[PATCH 43/52] perf tools: Add perf-with-kcore script

2014-07-22 Thread Adrian Hunter
Decoding an Intel PT trace of the kernel requires an accurate kernel object image. This is provided by making a copy of kcore. However the copy needs to be made under the same conditions as the original recording, and then it needs to be associated with the perf.data file. The perf-with-kcore scr

[PATCH 42/52] perf tools: Defer export of comms that were not 'set'

2014-07-22 Thread Adrian Hunter
Tracing for a workload begins before the comm event is seen, which results in the initial comm having a string of the form ":" (e.g. ":12345"). In order to export the correct string, defer the export until the new script 'flush' callback. Signed-off-by: Adrian Hunter --- tools/perf/util/db-expo

[PATCH 44/52] perf tools: Pass machine to vdso__dso_findnew()

2014-07-22 Thread Adrian Hunter
This is preparation for removing the global variables used in vdso.c and thereby fixing the lifetime of the VDSO temporary file. Signed-off-by: Adrian Hunter --- tools/perf/util/machine.c | 4 ++-- tools/perf/util/map.c | 7 --- tools/perf/util/map.h | 2 +- tools/perf/util/vdso.c

[PATCH 35/52] perf tools: Add flags and insn_len to struct sample

2014-07-22 Thread Adrian Hunter
Add flags and insn_len to struct sample. The flags will be used to export branch type and transaction status. insn_len is preparation for pairing calls and returns because the return address equals the call address plus the instruction length (insn_len). Signed-off-by: Adrian Hunter --- tools/

[PATCH 29/52] perf inject: Add --kallsyms parameter

2014-07-22 Thread Adrian Hunter
Let perf inject take --kallsyms parameter the same as perf script and perf report do. That is needed for decoding Instruction Trace data using a copy of /proc/kcore for the kernel object because the kallsyms path is used to locate that copy. Signed-off-by: Adrian Hunter --- tools/perf/Documenta

[PATCH 32/52] perf tools: Add helpers for calling Python objects

2014-07-22 Thread Adrian Hunter
The Python script API repeatedly uses the same lines of code to get and call objects. Make that into helper functions instead. A side-effect is that some reference counting bugs disappear because the new call_object() function always decrements the reference count of 'retval'. Signed-off-by: Adr

[PATCH 27/52] perf tools: Add a thread stack for synthesizing call chains

2014-07-22 Thread Adrian Hunter
Add a thread stack for synthesizing call chains from call and return events. Signed-off-by: Adrian Hunter --- tools/perf/Makefile.perf | 2 + tools/perf/util/event.h| 26 +++ tools/perf/util/thread-stack.c | 151 + tools/perf/util/thre

[PATCH 30/52] perf tools: Expose 'addr' functions so they can be reused

2014-07-22 Thread Adrian Hunter
Move some functions and functionality related to the use of 'addr' out of builtin-script so they can be reused. The moved functions are: is_bts_event() and sample_addr_correlates_sym() and a new function perf_event__preprocess_sample_addr() is created from bits of print_sample_addr(). perf_event__

[PATCH 24/52] perf evlist: Add perf_evlist__enable_event_idx()

2014-07-22 Thread Adrian Hunter
Add a function to enable a specific event within a specific perf event buffer. Signed-off-by: Adrian Hunter --- tools/perf/util/evlist.c | 47 +++ tools/perf/util/evlist.h | 2 ++ 2 files changed, 49 insertions(+) diff --git a/tools/perf/util/evlist.

[PATCH 33/52] perf tools: Extend Python script interface to export data in a database-friendly way

2014-07-22 Thread Adrian Hunter
Use the new db_export facility to export data in a database-friendly way. A Python script selects the db_export mode by setting a global variable 'perf_db_export_mode' to True. The script then optionally implements functions to receive table rows. The functions are: evsel_table

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Daniel Vetter
On Tue, Jul 22, 2014 at 02:19:57PM +0200, Christian König wrote: > Am 22.07.2014 13:57, schrieb Daniel Vetter: > >On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel Vetter wrote: > >>On Tue, Jul 22, 2014 at 10:43:13AM +0200, Christian König wrote: > >>>Am 22.07.2014 06:05, schrieb Dave Airlie: >

Re: [PATCH 2/5] sched: Teach scheduler to understand ONRQ_MIGRATING state

2014-07-22 Thread Kirill Tkhai
В Вт, 22/07/2014 в 08:25 -0400, Steven Rostedt пишет: > On Tue, 22 Jul 2014 13:45:42 +0200 > Peter Zijlstra wrote: > > > > > @@ -1491,10 +1491,14 @@ static void ttwu_activate(struct rq *rq, struct > > > task_struct *p, int en_flags) > > > static void > > > ttwu_do_wakeup(struct rq *rq, struc

[PATCH 20/52] perf pmu: Let pmu's with no events show up on perf list

2014-07-22 Thread Adrian Hunter
perf list only lists PMUs with events. Add a flag to cause a PMU to be also listed separately. Signed-off-by: Adrian Hunter --- tools/perf/util/pmu.c | 13 +++-- tools/perf/util/pmu.h | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/p

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-22 Thread Peter Zijlstra
On Tue, Jul 22, 2014 at 03:03:43PM +0200, Peter Zijlstra wrote: > Oh, of course we do SMP detection and setup after the cache setup... > lovely. > > /me goes bang head against wall hpa, could we move the legacy cpuid1/cpuid4 topology detection muck up, preferably right after detect_extended_topol

[PATCH 26/52] perf tools: Add dso__data_size()

2014-07-22 Thread Adrian Hunter
Add a function to return the dso data size, for use in estimating the size an instruction cache. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c | 22 ++ tools/perf/util/dso.h | 2 ++ 2 files changed, 24 insertions(+) diff --git a/tools/perf/util/dso.c b/tools/perf/u

[PATCH 37/52] perf tools: Add branch_type and in_tx to Python export

2014-07-22 Thread Adrian Hunter
Add branch_type and in_tx to Python db export and the export-to-postgresql.py script. Signed-off-by: Adrian Hunter --- tools/perf/scripts/python/export-to-postgresql.py | 32 ++ .../util/scripting-engines/trace-event-python.c| 30 +++- 2 files changed, 55

[PATCH 25/52] perf session: Add perf_session__peek_event()

2014-07-22 Thread Adrian Hunter
Add a function to peek at other events in the event stream. Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 55 +++ tools/perf/util/session.h | 5 + 2 files changed, 60 insertions(+) diff --git a/tools/perf/util/session.c b/tools/per

[PATCH 22/52] perf session: Add perf_session__deliver_synth_event()

2014-07-22 Thread Adrian Hunter
Add a function to deliver synthesized events from within a session. Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 14 ++ tools/perf/util/session.h | 5 + 2 files changed, 19 insertions(+) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 70

[PATCH 23/52] perf tools: Move rdtsc() function

2014-07-22 Thread Adrian Hunter
Move the rdtsc() function so it can be reusued. Signed-off-by: Adrian Hunter --- tools/perf/arch/x86/util/tsc.c | 9 + tools/perf/tests/perf-time-to-tsc.c | 9 - tools/perf/util/tsc.c | 5 + tools/perf/util/tsc.h | 1 + 4 files changed, 15 ins

[PATCH 36/52] perf tools: Add branch type to db export

2014-07-22 Thread Adrian Hunter
Add the ability to export branch types through the database export facility. Signed-off-by: Adrian Hunter --- tools/perf/util/db-export.c | 48 + tools/perf/util/db-export.h | 6 ++ 2 files changed, 54 insertions(+) diff --git a/tools/perf/util/d

[PATCH 19/52] perf tools: Add id index

2014-07-22 Thread Adrian Hunter
Add an index of the event identifiers. This is needed to queue Instruction Trace samples according to the mmap buffer from which they were recorded. Signed-off-by: Adrian Hunter --- tools/perf/builtin-inject.c | 1 + tools/perf/util/event.c | 1 + tools/perf/util/event.h | 15 +

[PATCH 15/52] perf tools: Add cpu to struct thread

2014-07-22 Thread Adrian Hunter
Tools may wish to track on which cpu a thread is running. Add 'cpu' to struct thread for that purpose. This will be used to determine the cpu when decoding a per-thread Instruction Trace. Signed-off-by: Adrian Hunter --- tools/perf/util/thread.c | 1 + tools/perf/util/thread.h | 1 + 2 files c

[PATCH 11/52] perf tools: Let a user specify a PMU event without any config terms

2014-07-22 Thread Adrian Hunter
This enables a PMU event to be specified in the form: pmu// which is effectively the same as: pmu/config=0/ This patch is a precursor to defining default config for a PMU. Signed-off-by: Adrian Hunter --- tools/perf/util/parse-events.c | 6 ++ tools/perf/util/parse-event

[PATCH 16/52] perf tools: Add ability to record the current tid for each cpu

2014-07-22 Thread Adrian Hunter
Add an array to struct machine to store the current tid running on each cpu. Add machine functions to get / set the tid for a cpu. This will be used to determine the tid when decoding a per-cpu Instruction Trace. Signed-off-by: Adrian Hunter --- tools/perf/util/machine.c | 46 ++

[PATCH 12/52] perf tools: Let default config be defined for a PMU

2014-07-22 Thread Adrian Hunter
This allows default config terms to be provided for a PMU. So, for example, when the Intel PT PMU is added, it will be possible to specify: intel_pt// which will be the same as: intel_pt/tsc=1,noretcomp=0/ meaning that the trace should contain TSC timestamps and perform 'return

[PATCH 06/52] perf script: Improve srcline display for BTS

2014-07-22 Thread Adrian Hunter
Change the order of the output to put the srcline last. e.g. old format: 4028fc main+0x2c (/bin/ls) /build/buildd/coreutils-8.20/src/ls.c:1269 => 40d8a0 set_program_name+0x0 (/bin/ls) new format: 4028fc main+0x2c (/bin/ls) => 40d8a0 set_program_name+0x0

[PATCH] staging: init: main: fix sparse warning Fix sparse warning "should it be static"

2014-07-22 Thread Matei Oprea
Signed-off-by: Matei Oprea Cc: ROSEdu Kernel Community --- init/main.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index e8ae1fe..25cc270 100644 --- a/init/main.c +++ b/init/main.c @@ -160,7 +160,8 @@ static int __init set_reset_devices(char

[PATCH 10/52] perf tools: Add dso__data_status_seen()

2014-07-22 Thread Adrian Hunter
Add a function to track whether a caller has seen the data status of a dso. This is needed to enable callers to report the error exactly once only per dso. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c | 12 tools/perf/util/dso.h | 6 ++ 2 files changed, 18 insertions

[PATCH 17/52] perf evlist: Add perf_evlist__set_tracking_event()

2014-07-22 Thread Adrian Hunter
Add a function to change which event is used to track mmap, comm and task events. This is needed with Instruction Tracing because the Instruction Tracing event must come first but cannot be used for tracking because it will be disabled under some circumstances. Signed-off-by: Adrian Hunter ---

Re: [RFC] perf to ctf converter

2014-07-22 Thread Sebastian Andrzej Siewior
On 07/22/2014 01:31 PM, Sebastian Andrzej Siewior wrote: >> [jolsa@krava perf]$ LD_LIBRARY_PATH=/opt/libbabeltrace/lib >> /opt/libbabeltrace/bin/babeltrace ./ctf-data/ >> >> [04:41:11.445378840] (+?.?) sched:sched_switch: { }, { pid = 5782, >> comm = "ls", prev_comm = [ [0] = "ls", [1] =

[PATCH 08/52] perf tools: Fix incorrect fd error comparison

2014-07-22 Thread Adrian Hunter
Zero is a valid fd. Error comparison should check for negative fd. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index fc006fe..28cf747 100644 --- a/tools/perf/util/dso.c +

[PATCH 05/52] perf tools: Add machine__kernel_ip()

2014-07-22 Thread Adrian Hunter
Add a function to determine if an address is in the kernel. This is based on the kernel function kernel_ip(). Signed-off-by: Adrian Hunter --- tools/perf/util/event.c | 6 +++--- tools/perf/util/machine.c | 23 +++ tools/perf/util/machine.h | 17 + 3 files

[PATCH 07/52] perf script: Do not print dangling '=>' for BTS

2014-07-22 Thread Adrian Hunter
When using: perf record -e branches:u -c1 perf script -f ip lines are displayed like: 813b23d5 => Change so that the dangling '=>' does not appear. Signed-off-by: Adrian Hunter --- tools/perf/builtin-script.c | 6 +++--- 1 file changed, 3 insertions(+), 3 dele

[PATCH 14/52] perf tools: Add dsos__hit_all()

2014-07-22 Thread Adrian Hunter
Add ability to mark all dsos as hit. This is needed in the case of Instruction Tracing. It takes so long to decode an Instruction Trace that it is not worth doing just to determine which dsos are hit. A later patch takes this into use. Signed-off-by: Adrian Hunter --- tools/perf/util/header.c

[PATCH 18/52] perf evlist: Add 'system_wide' option

2014-07-22 Thread Adrian Hunter
Add an option to cause a selected event to be opened always without a pid when configured by perf_evsel__config(). This is needed when using the sched_switch tracepoint to follow object code execution. sched_switch occurs before the task switch and so it cannot record it in a context limited to th

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-22 Thread Peter Zijlstra
On Tue, Jul 22, 2014 at 03:26:03PM +0200, Peter Zijlstra wrote: > On Tue, Jul 22, 2014 at 03:03:43PM +0200, Peter Zijlstra wrote: > > Oh, of course we do SMP detection and setup after the cache setup... > > lovely. > > > > /me goes bang head against wall > > hpa, could we move the legacy cpuid1/c

Re: [PATCH 00/12] drm/exynos/ipp: image post processing improvements, part three

2014-07-22 Thread Inki Dae
On 2014년 07월 03일 22:10, Andrzej Hajda wrote: > This set of independent patches contains various improvement and fixes > for exynos_drm ipp framework. > The patchset is based on exynos-drm-next branch. Applied. Thanks, Inki Dae > > Regards > Andrzej > > > Andrzej Hajda (12): > drm/exynos/ipp

[PATCH 09/52] perf tools: Record whether a dso has data

2014-07-22 Thread Adrian Hunter
Add 'data.status' to record whether a dso has data (i.e. an object file). This is used to avoid repeatedly creating the file name and attempting to open a file that is not present. Signed-off-by: Adrian Hunter --- tools/perf/util/dso.c | 23 +++ tools/perf/util/dso.h | 7 ++

[PATCH 21/52] perf session: Add ability to skip 4GiB or more

2014-07-22 Thread Adrian Hunter
A session can be made to skip portions of the input file. Do not limit that size to 32-bits. Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c

[PATCH 13/52] perf tools: Add perf_pmu__scan_file()

2014-07-22 Thread Adrian Hunter
Add a function to scan a sysfs file within the pmu device directory. This will be used to read capability values from the PMU 'caps' subdirectory. Signed-off-by: Adrian Hunter --- tools/perf/util/pmu.c | 37 + tools/perf/util/pmu.h | 3 +++ 2 files changed,

Re: [PATCH 09/19] mfd: ezx-pcap: Repair coding style errors picked up with checkpatch

2014-07-22 Thread Joe Perches
On Tue, 2014-07-22 at 12:11 +0100, Lee Jones wrote: > This is part of an effort to clean-up the MFD subsystem. > > WARNING: Missing a blank line after declarations > + u32 flags; > + void (*callback)(void *, u16[]); False positive from an old version of checkpatch. The one in -next d

[PATCH 1/5] mm, shmem: Add shmem resident memory accounting

2014-07-22 Thread Jerome Marchand
Currently looking at /proc//status or statm, there is no way to distinguish shmem pages from pages mapped to a regular file (shmem pages are mapped to /dev/zero), even though their implication in actual memory use is quite different. This patch adds MM_SHMEMPAGES counter to mm_rss_stat. It keeps tr

[PATCH RESEND 0/5] mm, shmem: Enhance per-process accounting of shared memory

2014-07-22 Thread Jerome Marchand
There are several shortcomings with the accounting of shared memory (sysV shm, shared anonymous mapping, mapping to a tmpfs file). The values in /proc//status and statm don't allow to distinguish between shmem memory and a shared mapping to a regular file, even though theirs implication on memory u

[PATCH 5/5] mm, shmem: Show location of non-resident shmem pages in smaps

2014-07-22 Thread Jerome Marchand
Adds ShmOther, ShmOrphan, ShmSwapCache and ShmSwap lines to /proc//smaps for shmem mappings. ShmOther: amount of memory that is currently resident in memory, not present in the page table of this process but present in the page table of an other process. ShmOrphan: amount of memory that is current

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
Am 22.07.2014 15:26, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 02:19:57PM +0200, Christian König wrote: Am 22.07.2014 13:57, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel Vetter wrote: On Tue, Jul 22, 2014 at 10:43:13AM +0200, Christian König wrote: Am 22.07.201

[PATCH 3/5] mm, shmem: Add shmem_vma() helper

2014-07-22 Thread Jerome Marchand
Add a simple helper to check if a vm area belongs to shmem. Signed-off-by: Jerome Marchand --- include/linux/mm.h | 6 ++ mm/shmem.c | 8 2 files changed, 14 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 34099fa..04a58d1 100644 --- a/include/linux

[PATCH 4/5] mm, shmem: Add shmem swap memory accounting

2014-07-22 Thread Jerome Marchand
Adds get_mm_shswap() which compute the size of swaped out shmem. It does so by pagewalking the mm and using the new shmem_locate() function to get the physical location of shmem pages. The result is displayed in the new VmShSw line of /proc//status. Use mm_walk an shmem_locate() to account paged ou

[PATCH 2/5] mm, shmem: Add shmem_locate function

2014-07-22 Thread Jerome Marchand
The shmem subsytem is kind of a black box: the generic mm code can't always know where a specific page physically is. This patch adds the shmem_locate() function to find out the physical location of shmem pages (resident, in swap or swapcache). If the optional argument count isn't NULL and the page

Re: [PATCH 09/19] mfd: ezx-pcap: Repair coding style errors picked up with checkpatch

2014-07-22 Thread Lee Jones
On Tue, 22 Jul 2014, Joe Perches wrote: > On Tue, 2014-07-22 at 12:11 +0100, Lee Jones wrote: > > This is part of an effort to clean-up the MFD subsystem. > > > > WARNING: Missing a blank line after declarations > > + u32 flags; > > + void (*callback)(void *, u16[]); > > False positi

Re: [PATCH 4/4] aio: use iovec array rather than the single one

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > use an iovec array rather than the single one, so that we can avoid > to alloc more iovecs buffer in small(< 8) PREADV/PWRITEV cases. It would be helpful to know what motivated this change and how you tested it. Thanks, Jeff -- To unsubscribe from this list: send the line "un

Re: [PATCH 0/5] Input - wacom: battery enhancements and unifying hid-wacom and wacom

2014-07-22 Thread Benjamin Tissoires
Hi Przemo, On Jul 19 2014 or thereabouts, Przemo Firszt wrote: > Dnia 2014-07-10, czw o godzinie 14:44 -0400, Benjamin Tissoires pisze: > > Hi guys, > > > > Continuing on the Wacom cleanup, here are 5 patches. > > > > The first two enhance the battery reporting for the Wireless receiver by > > a

Re: [PATCH] scripts: coccinelle: kfree with TRACE_RET before ref is ok (resent)

2014-07-22 Thread Bjørn Mork
Nicholas Mc Guire writes: > kfree.cocci currently triggers on constructs like > (resending with proper CC list and subject line) > > drivers/staging/rts5208/spi.c > 596if (retval < 0) { > 597kfree(buf); > 598rtsx_clear_spi_error(chip); > 599spi_set_err_code

Re: [PATCH 1/4] aio: remove the needless registration of ring file's private_data

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > Remove the registration of ring file's private_data, we do not use > it. > > Signed-off-by: Gu Zheng Reviewed-by: Jeff Moyer > --- > fs/aio.c |1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 955947e..ad35876 100644 >

Re: [PATCH 2/4] aio: use the macro rather than the inline magic number

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > Signed-off-by: Gu Zheng Reviewed-by: Jeff Moyer > --- > fs/aio.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index ad35876..1dc6158 100644 > --- a/fs/aio.c > +++ b/fs/aio.c > @@ -201,7 +201,7 @@ static struct dentry

Re: [PATCH 3/4] aio: fix some comments

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > Signed-off-by: Gu Zheng Reviewed-by: Jeff Moyer > --- > fs/aio.c |7 +++ > 1 files changed, 3 insertions(+), 4 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index 1dc6158..0cd0479 100644 > --- a/fs/aio.c > +++ b/fs/aio.c > @@ -1037,7 +1037,7 @@ void aio_compl

Re: [RFC PATCH] usb: dwc3: core: allow vendor drivers to check probe status

2014-07-22 Thread Peter Griffin
Hi Felipe, Sorry for the delay in replying. I've been trying to get to the root cause of this problem so I could reply which took longer than I had hoped. The problem manifested itself as a hang on register read/write access if dwc3-st probed before the usb3 phy. Even though dwc3 core would bai

Re: [PATCH 1/3] usb: host: st-hcd: Add USB HCD support for STi SoCs

2014-07-22 Thread Peter Griffin
Hi Alan, > > > > Most platform drivers have already been moved. > > Okay, I grant the point. Objections withdrawn. Fix up the spelling > error and the other stuff in the Kconfig help text, and this will be > acceptable. Thanks, I intend to send a new version shortly. regards, Peter. -- T

Re: 3.10.y regression caused by: lockd: ensure we tear down any live sockets when socket creation fails during lockd_up

2014-07-22 Thread Nikita Yushchenko
>> With current 3.10.y, if kernel is booted with init=/bin/sh and then nfs mount >> is attempted (without portmap or rpcbind running) using busybox mount, >> following >> OOPS happen: >> >> # mount -t nfs 10.30.130.21:/opt /mnt >> svc: failed to register lockdv1 RPC service (errno 111). >> lockd_u

Re: [PATCH 01/52] perf tools: Fix jump label always changing during tracing

2014-07-22 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 22, 2014 at 04:17:10PM +0300, Adrian Hunter escreveu: > Intel PT decoding walks the object code to reconstruct > the trace. A jump label change during tracing causes > decoding errors. > > The "Enable close-on-exec flag on perf file descriptor" > patch caused there to be always a jump

[PATCH v2 2/2] printk: improve some commentary; tidy up

2014-07-22 Thread Alex Elder
Add some comments to explain how the log flags are used to control how records get formatted. Also add and refine some comments in vprintk_emit(). Now that we're done fixing up log record flags, simplify how they're used in computing some local variable values in msg_print_text(). Use a local va

[PATCH v2 0/2] printk: more log flag simplification

2014-07-22 Thread Alex Elder
This series eliminates the LOG_CONT entirely from the printk/log code. It builds on another series, posted earlier today: http://www.spinics.net/lists/kernel/msg1791665.html This series was originally longer, but in review I was reminded that some of the simplifications I had done were not vali

[PATCH v2 1/2] printk: kill LOG_CONT

2014-07-22 Thread Alex Elder
The LOG_CONT and LOG_NEWLINE flags are mutually exclusive, i.e., the presence of LOG_NEWLINE implies the absense of LOG_CONT, and vice-versa. As a result, wherever LOG_CONT is used, we can equivalently substitute !LOG_NEWLINE; and we can use LOG_NEWLINE wherever !LOG_CONT is used. Switch to using

Re: [PATCH] edac: Remove fixmes in e7xxx_edac.c

2014-07-22 Thread Bjørn Mork
Nicholas Krause writes: > This removes two Page shift fixs me in this file and not checking > if row is -1 in process_ce as it cannot be this value or be must > exit this function by returning. > > Signed-off-by: Nicholas Krause > --- > drivers/edac/e7xxx_edac.c | 10 +- > 1 file change

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
op 22-07-14 14:19, Christian König schreef: > Am 22.07.2014 13:57, schrieb Daniel Vetter: >> On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel Vetter wrote: >>> On Tue, Jul 22, 2014 at 10:43:13AM +0200, Christian König wrote: Am 22.07.2014 06:05, schrieb Dave Airlie: > On 9 July 2014 22:29,

Re: [PATCH] mfd: max8925-i2c: Add some blank lines before return

2014-07-22 Thread Lee Jones
On Tue, 22 Jul 2014, pramod.gurav@gmail.com wrote: > From: Pramod Gurav > > Signed-off-by: Pramod Gurav > --- > Lee, This is what I was referring to when I said there are more such > changes needed. Hope they are ok. > > Sending just to you as I could not send it on that mail chain. I can

[PATCH] ARM: at91/dt: sam9x5: fix ADC compatible string

2014-07-22 Thread Alexandre Belloni
Use the correct compatible string for the ADC of the at91sam9x5 family of SoCs. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9x5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index

Re: Bug_ON with patch: bio: modify __bio_add_page() to accept pages that don't start a new segment

2014-07-22 Thread Maurizio Lombardi
Hi Jens, On 07/16/2014 09:53 AM, Jens Axboe wrote: > > Sure, we can try again, hopefully this will be the last of them. > I sent it, it must be applied on top of "bio: modify __bio_add_page() to accept pages that don't start a new segment" http://marc.info/?l=linux-kernel&m=140558697215009&w=2

Re: [PATCH] mfd: max8925-i2c: Add some blank lines before return

2014-07-22 Thread pramod gurav
On Tue, Jul 22, 2014 at 7:36 PM, Lee Jones wrote: > On Tue, 22 Jul 2014, pramod.gurav@gmail.com wrote: > I can't accept any patch which hasn't been on the list. Please find a > way to do so. > >> Please add these with your changes if ok. >> >> drivers/mfd/max8925-i2c.c |5 + >> 1 fil

Re: [PATCH 02/19] mfd: max8925-i2c: Fix 'blank line after declarations' warning

2014-07-22 Thread Lee Jones
On Tue, 22 Jul 2014, pramod gurav wrote: > On Tue, Jul 22, 2014 at 5:45 PM, Lee Jones wrote: > > On Tue, 22 Jul 2014, pramod gurav wrote: > >> There are more such changes required in this file. If they could go > >> with this, will be good. > > > > Checkpatch only found this one: > Yes, there is

Re: [PATCH 2/4] aio: use the macro rather than the inline magic number

2014-07-22 Thread Benjamin LaHaise
On Tue, Jul 22, 2014 at 10:40:02AM +0800, Gu Zheng wrote: > Signed-off-by: Gu Zheng You're missing a commit message here. The patch is otherwise fine. -ben > --- > fs/aio.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > in

Re: [PATCH 3/4] aio: fix some comments

2014-07-22 Thread Benjamin LaHaise
On Tue, Jul 22, 2014 at 10:40:03AM +0800, Gu Zheng wrote: > Signed-off-by: Gu Zheng Again, you're missing a commit message here. Please resubmit with a commit message. -ben > --- > fs/aio.c |7 +++ > 1 files changed, 3 insertions(+), 4 deletions(-) > > diff --git a/f

[PATCH 1/3] bebob: Fix a missing to unlock mutex in error handling case

2014-07-22 Thread Takashi Sakamoto
In error handling case, special_clk_ctl_put() returns without unlock_mutex(), therefore the mutex is still locked. This commit moves mutex_lock() after the error handling case. This commit is my solution for this post. [PATCH -next] ALSA: bebob: Fix missing unlock on error in special_clk_ctl_put(

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-22 Thread Bruno Wolff III
On Tue, Jul 22, 2014 at 15:35:14 +0200, Peter Zijlstra wrote: On Tue, Jul 22, 2014 at 03:26:03PM +0200, Peter Zijlstra wrote: Something like so.. anything obviously broken? Do you want me to test this change instead of, or combined with the other patch you wanted tested earlier? --- arc

Re: [PATCH 01/52] perf tools: Fix jump label always changing during tracing

2014-07-22 Thread Peter Zijlstra
On Tue, Jul 22, 2014 at 11:00:34AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 22, 2014 at 04:17:10PM +0300, Adrian Hunter escreveu: > > Intel PT decoding walks the object code to reconstruct > > the trace. A jump label change during tracing causes > > decoding errors. You'd better fix t

Re: Scheduler regression from caffcdd8d27ba78730d5540396ce72ad022aff2c

2014-07-22 Thread Peter Zijlstra
On Tue, Jul 22, 2014 at 09:09:12AM -0500, Bruno Wolff III wrote: > On Tue, Jul 22, 2014 at 15:35:14 +0200, > Peter Zijlstra wrote: > >On Tue, Jul 22, 2014 at 03:26:03PM +0200, Peter Zijlstra wrote: > > > >Something like so.. anything obviously broken? > > Do you want me to test this change inste

[PATCH] ahci: st: Make of_device_id array const

2014-07-22 Thread Kiran Padwal
Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Kiran Padwal --- drivers/ata/ahci_st.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 2595598..29821b9 100644 --- a/drivers/ata/a

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