[PATCH 05/14] mm, compaction: distinguish between full and partial COMPACT_COMPLETE

2016-04-20 Thread Michal Hocko
From: Michal Hocko COMPACT_COMPLETE now means that compaction and free scanner met. This is not very useful information if somebody just wants to use this feedback and make any decisions based on that. The current caller might be a poor guy who just happened to scan tiny portion of the zone and t

Re: [PATCH] char: Drop bogus dependency of DEVPORT on !M68K

2016-04-20 Thread Al Stone
On 04/11/2016 02:40 AM, Geert Uytterhoeven wrote: > According to full-history-linux commit d3794f4fa7c3edc3 ("[PATCH] M68k > update (part 25)"), port operations are allowed on m68k if CONFIG_ISA is > defined. > > However, commit 153dcc54df826d2f ("[PATCH] mem driver: fix conditional > on isa i/o s

Re: [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-04-20 Thread Tejun Heo
On Sun, Apr 17, 2016 at 03:04:31PM -0500, serge.hal...@ubuntu.com wrote: > From: Serge Hallyn > > We've calculated @len to be the bytes we need for '/..' entries from > @kn_from to the common ancestor, and calculated @nlen to be the extra > bytes we need to get from the common ancestor to @kn_to.

Re: [PATCH v2] ARM: dts: imx6: Add dts for Embest MarS Board

2016-04-20 Thread Sergio Prado
Hi Fabio, On 19-04-2016 08:34, Fabio Estevam wrote: On Mon, Apr 11, 2016 at 9:25 PM, Sergio Prado wrote: +&fec { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enet>; + phy-mode = "rgmii"; + phy-reset-gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>; Are you sure this is r

[for-next][PATCH 03/30] tracing: Add infrastructure to allow set_event_pid to follow children

2016-04-20 Thread Steven Rostedt
From: Steven Rostedt Add the infrastructure needed to have the PIDs in set_event_pid to automatically add PIDs of the children of the tasks that have their PIDs in set_event_pid. This will also remove PIDs from set_event_pid when a task exits This is implemented by adding hooks into the fork and

[for-next][PATCH 00/30] tracing: Add features for event-fork and histograms

2016-04-20 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: d50c744ecde7ee3ba4d7ffb0e1c55e7a2f6bbc8e Masami Hiramatsu (3): kselftests/ftrace : Add event trigger testcases kselftests/ftrace: Add hist trigger testcases kselftests/ftrace: Add a tes

[for-next][PATCH 10/30] tracing: Add hist trigger support for compound keys

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to specify multiple trace event fields to use in keys by allowing multiple fields in the 'keys=' keyword. With this addition, any unique combination of any of the fields named in the 'keys' keyword will result in a new entry being added to the hash table. Link: ht

Re: [RFC] arm64: Implement WFE based spin wait for MCS spinlocks

2016-04-20 Thread Jason Low
On Wed, 2016-04-20 at 12:30 +0200, Peter Zijlstra wrote: > On Thu, Apr 14, 2016 at 12:13:38AM -0700, Jason Low wrote: > > Use WFE to avoid most spinning with MCS spinlocks. This is implemented > > with the new cmpwait() mechanism for comparing and waiting for the MCS > > locked value to change usin

[for-next][PATCH 01/30] tracing: Rename check_ignore_pid() to ignore_this_task()

2016-04-20 Thread Steven Rostedt
From: Steven Rostedt The name "check_ignore_pid" is confusing in trying to figure out if the pid should be ignored or not. Rename it to "ignore_this_task" which is pretty straight forward, as a task (not a pid) is passed in, and should if true should be ignored. Signed-off-by: Steven Rostedt --

[for-next][PATCH 04/30] tracing: Update the documentation to describe "event-fork" option

2016-04-20 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add documentation to the ftrace.txt file in Documentation to describe the event-fork option. Also add the missing "display-graph" option now that it shows up in the trace_options file (from a previous commit). Signed-off-by: Steven Rostedt --- Documentation/tra

[for-next][PATCH 09/30] tracing: Add hist trigger support for multiple values (vals= param)

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to specify trace event fields to use in aggregated sums via a new 'vals=' keyword. Before this addition, the only aggregated sum supported was the implied value 'hitcount'. With this addition, 'hitcount' is also supported as an explicit value field, as is any numer

[for-next][PATCH 02/30] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-20 Thread Steven Rostedt
From: Steven Rostedt In order to add the ability to let tasks that are filtered by the events have their children also be traced on fork (and then not traced on exit), convert the array into a pid bitmask. Most of the time the number of pids is only 32768 pids or a 4k bitmask, which is the same s

[for-next][PATCH 06/30] tracing: Fix TRACING_MAP Kconfig

2016-04-20 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The config option for TRACING_MAP has "default n", which is not needed because the default of configs is 'n'. Also, since the TRACING_MAP has no config prompt, there's no reason to include "If in doubt, say N" in the help text. Fixed a typo in the comments of tr

[for-next][PATCH 18/30] tracing: Add hist trigger support for stacktraces as keys

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi It's often useful to be able to use a stacktrace as a hash key, for keeping a count of the number of times a particular call path resulted in a trace event, for instance. Add a special key named 'stacktrace' which can be used as key in a 'keys=' param for this purpose: # e

[for-next][PATCH 20/30] tracing: Remove restriction on string position in hist trigger keys

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi If we assume the maximum size for a string field, we don't have to worry about its position. Since we only allow two keys in a compound key and having more than one string key in a given compound key doesn't make much sense anyway, trading a bit of extra space instead of introd

[for-next][PATCH 24/30] tracing: Add support for named triggers

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Named triggers are sets of triggers that share a common set of trigger data. An example of functionality that could benefit from this type of capability would be a set of inlined probes that would each contribute event counts, for example, to a shared counter data structure. T

[for-next][PATCH 29/30] kselftests/ftrace: Add a test for log2 modifier of hist trigger

2016-04-20 Thread Steven Rostedt
From: Masami Hiramatsu Add a test for log2 modifier of hist trigger in hist_mod.tc. Here is the test result. # ./ftracetest test.d/trigger/trigger-hist-mod.tc === Ftrace unit tests === [1] event trigger - test histogram modifiers [PASS] # of passed: 1 # of failed: 0 # of u

[for-next][PATCH 19/30] tracing: Support string type key properly

2016-04-20 Thread Steven Rostedt
From: Namhyung Kim The string in a trace event is usually recorded as dynamic array which is variable length. But current hist code only support fixed length array so it cannot support most strings. This patch fixes it by checking filter_type of the field and get proper pointer with it. With t

[for-next][PATCH 26/30] kselftests/ftrace : Add event trigger testcases

2016-04-20 Thread Steven Rostedt
From: Masami Hiramatsu This adds simple event trigger testcases for ftracetest, which covers following triggers. - traceon-traceoff trigger - enable/disable_event trigger - snapshot trigger - stacktrace trigger - trigger filters Here is the test result. # ./ftracetest test.d/trigg

[for-next][PATCH 16/30] tracing: Add hist trigger execname modifier

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to have common_pid field values displayed as program names in the output by appending '.execname' to a common_pid field name: # echo hist:keys=common_pid.execname ... \ [ if filter] > event/trigger Link: http://lkml.kernel.org/r/e172e81f10f5b8d1f0

[for-next][PATCH 27/30] kselftests/ftrace: Add hist trigger testcases

2016-04-20 Thread Steven Rostedt
From: Masami Hiramatsu Add the hist trigger testcases for ftracetest. This checks the basic histogram trigger behaviors like as; - Histogram trigger itself - Histogram with string key - Histogram with compound keys - Histogram with sort key - Histogram trigger modifiers (execname, hex, sysca

Re: [RFC PATCH 07/13] bpf tools: Load ubpf program

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:47PM +, Wang Nan escreveu: > In bpf_program__load(), load ubpf program according to its engine type. > > API is improvemented to hold 'struct ubpf_vm *'. > > Signed-off-by: Wang Nan > Cc: Arnaldo Carvalho de Melo > Cc: Alexei Starovoitov > Cc: Brendan Gregg >

[for-next][PATCH 23/30] tracing: Add support for multiple hist triggers per event

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to define any number of hist triggers per trace event. Any number of hist triggers may be added for a given event, which may differ by key, value, or filter. Reading the event's 'hist' file will display the output of all the hist triggers defined on an event concate

Re: [PATCH 1/3] staging/android: remove redundant comments on sync_merge_data

2016-04-20 Thread Gustavo Padovan
I messed up with the subject prefix, but this is v11, adds typecheck() to patch 2. 2016-04-20 Gustavo Padovan : > From: Gustavo Padovan > > struct sync_merge_data already have documentation on top of the > struct definition. No need to duplicate it. > > Signed-off-by: Gustavo Padovan > Review

[for-next][PATCH 13/30] tracing: Add hist trigger support for clearing a trace

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to append 'clear' to an existing trigger in order to have the hash table cleared. This expands the hist trigger syntax from this: # echo hist:keys=xxx:vals=yyy:sort=zzz.descending:pause/cont \ [ if filter] >> event/trigger to this: # echo hist:k

[for-next][PATCH 30/30] tracing: Fix unsigned comparison to zero in hist trigger code

2016-04-20 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Fengguang Wu's bot found two comparisons of unsigned integers to zero. These were real bugs, as it would miss error conditions returned to zero. trace_events_hist.c:426:6-9: WARNING: Unsigned expression compared with zero: idx < 0 trace_events_hist.c:568:5-14: W

[for-next][PATCH 08/30] tracing: Add hist event trigger command

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi 'hist' triggers allow users to continually aggregate trace events, which can then be viewed afterwards by simply reading a 'hist' file containing the aggregation in a human-readable format. The basic idea is very simple and boils down to a mechanism whereby trace events, rather

[for-next][PATCH 25/30] tracing: Add support for named hist triggers

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to define 'named' hist triggers. All triggers created with the same 'name=xxx' option will update the same shared histogram data. This expands the hist trigger syntax from this: # echo hist:keys=xxx ... [ if filter] > event/trigger to this: # echo hist:n

[for-next][PATCH 12/30] tracing: Add hist trigger support for pausing and continuing a trace

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to append 'pause' or 'continue' to an existing trigger in order to have it paused or to have a paused trace continue. This expands the hist trigger syntax from this: # echo hist:keys=xxx:vals=yyy:sort=zzz.descending \ [ if filter] >> event/trigger to

[for-next][PATCH 21/30] tracing: Add enable_hist/disable_hist triggers

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Similar to enable_event/disable_event triggers, these triggers enable and disable the aggregation of events into maps rather than enabling and disabling their writing into the trace buffer. They can be used to automatically start and stop hist triggers based on a matching filte

[for-next][PATCH 14/30] tracing: Add hist trigger hex modifier for displaying numeric fields

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to have numeric fields displayed as hex values in the output by appending '.hex' to field names: # echo hist:keys=aaa,bbb.hex:vals=ccc.hex ... \ [ if filter] > event/trigger Link: http://lkml.kernel.org/r/67bd431edda2af5798d7694818f7e8d71b6b3463.1

[for-next][PATCH 05/30] tracing: Add lock-free tracing_map

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Add tracing_map, a special-purpose lock-free map for tracing. tracing_map is designed to aggregate or 'sum' one or more values associated with a specific object of type tracing_map_elt, which is associated by the map to a given key. It provides various hooks allowing per-trace

[for-next][PATCH 11/30] tracing: Add hist trigger support for user-defined sorting (sort= param)

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to specify keys and/or values to sort on. With this addition, keys and values specified using the 'keys=' and 'vals=' keywords can be used to sort the hist trigger output via a new 'sort=' keyword. If multiple sort keys are specified, the output will be sorted usin

[for-next][PATCH 15/30] tracing: Add hist trigger sym and sym-offset modifiers

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to have address fields displayed as symbols in the output by appending '.sym' or 'sym-offset' to field names: # echo hist:keys=aaa.sym,bbb.sym-offset ... \ [ if filter] > event/trigger Link: http://lkml.kernel.org/r/87d4935821491c0275513f0fbfb9bab

[for-next][PATCH 22/30] tracing: Add hist trigger Documentation

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Add documentation and usage examples for 'hist' triggers. Link: http://lkml.kernel.org/r/2e13f35f47fea6d647f0efefccfc9673ea84b29f.1457029949.git.tom.zanu...@linux.intel.com Signed-off-by: Tom Zanussi Tested-by: Masami Hiramatsu Reviewed-by: Namhyung Kim Signed-off-by: Stev

[for-next][PATCH 28/30] tracing: Add hist trigger log2 modifier

2016-04-20 Thread Steven Rostedt
From: Namhyung Kim Allow users to have numeric fields displayed as log2 values in case value range is very wide by appending '.log2' to field names. For example, # echo 'hist:key=bytes_req' > kmalloc/trigger # cat kmalloc/hist { bytes_req:504 } hitcount: 1 { bytes_req:

[for-next][PATCH 17/30] tracing: Add hist trigger syscall modifier

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to have syscall id fields displayed as syscall names in the output by appending '.syscall' to field names: # echo hist:keys=aaa.syscall ... \ [ if filter] > event/trigger Link: http://lkml.kernel.org/r/2bab1e59933d76a14b545bd2e02f80b8b08ac4d3.1457

[for-next][PATCH 07/30] tracing: Update some tracing_map constants and comments

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Make it clear exactly how many keys and values are supported through better defines, and add 1 to the vals count, since normally clients want support for at least a hitcount and two other values. Also, note the error return value for tracing_map_add_key/val_field() in the comme

Re: [RFC PATCH 06/13] bpf tools: Introduce ubpf_vm to program instance union

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:46PM +, Wang Nan escreveu: > Add 'struct ubpf_vm *' into prog_instance union. Introduce if_engine() > macro to merge common code. > > Signed-off-by: Wang Nan > Cc: Arnaldo Carvalho de Melo > Cc: Alexei Starovoitov > Cc: Brendan Gregg > Cc: Jiri Olsa > Cc: Li

Re: [RFC PATCH 05/13] bpf tools: Save engine type in bpf_program

2016-04-20 Thread pi3orama
发自我的 iPhone > 在 2016年4月21日,上午3:23,Arnaldo Carvalho de Melo 写道: > > Em Wed, Apr 20, 2016 at 06:01:45PM +, Wang Nan escreveu: >> [SNIP] >> >> +if (prog->engine == ENGINE_UNKNOWN) >> +prog->engine = ENGINE_KBPF; >> +if (prog->engine != ENGINE_KBPF) > >else if (prog->e

[PATCH v3] locking/pvqspinlock: Add lock holder CPU argument to pv_wait()

2016-04-20 Thread Waiman Long
Pan Xinhui was asking for a lock holder cpu argument in pv_wait() to help the porting of pvqspinlock to PPC. The new argument will can help hypervisor expediate the execution of the critical section by the lock holder, if its vCPU isn't running, so that it can release the lock sooner. The pv_wait(

Re: [PATCH v7 0/8]/[PULL REQUEST] Trim unused exported kernel symbols

2016-04-20 Thread Nicolas Pitre
On Wed, 20 Apr 2016, Nicolas Pitre wrote: > On Wed, 20 Apr 2016, Michal Marek wrote: > > > Dne 19.4.2016 v 05:32 Nicolas Pitre napsal(a): > > > Ping ! > > > > > > /me only hears back empty cave echoes ... > > > > Pulled now, sorry for the delay. > > Thanks! Looking at your kbuild branch, I se

Re: [RFC PATCH 05/13] bpf tools: Save engine type in bpf_program

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:45PM +, Wang Nan escreveu: > Add an 'engine' field in bpf_program to indicate whether a program is a > ubpf program or kernel bpf program. For compatibility, the default > engine is kernel bpf, unless explicitly set to ubpf using > bpf_program__set_ubpf(). > > Sig

Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

2016-04-20 Thread kbuild test robot
Hi, [auto build test ERROR on v4.6-rc4] [also build test ERROR on next-20160420] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-move-huge_pmd_set_accessed-out-of-huge_memory-c

Re: [RFC PATCH 04/13] bpf tools: Replace fd array to union array

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:44PM +, Wang Nan escreveu: > Following commits will add new types for instance of a bpf program. > For kernel bpf program, a program instance is fd. For ubpf program, > the instance of a program is a 'struct ubpf_vm'. This patch promote > original 'fds' array to 'u

Re: [PATCH 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:59, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:29PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, instead of b

[PATCH 2/3] kernel.h: add u64_to_user_ptr()

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan This function had copies in 3 different files. Unify them in kernel.h. Cc: Joe Perches Cc: Andrew Morton Cc: David Airlie Cc: Daniel Vetter Cc: Rob Clark Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 11 +++ drivers/gpu/drm

[PATCH 1/3] staging/android: remove redundant comments on sync_merge_data

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan Reviewed-by: Maarten Lankhorst --- drivers/staging/android/uapi/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 3/3] staging/android: refactor SYNC IOCTLs

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan Change SYNC_IOC_FILE_INFO (former SYNC_IOC_FENCE_INFO) behaviour to avoid future API breaks and optimize buffer allocation. Now num_fences can be filled by the caller to inform how many fences it wants to retrieve from the kernel. If the num_fences passed is greater than ze

Re: [PATCH 02/19] io-mapping: Specify mapping size for io_mapping_map_wc()

2016-04-20 Thread Chris Wilson
On Wed, Apr 20, 2016 at 08:58:44PM +0200, Luis R. Rodriguez wrote: > On Wed, Apr 20, 2016 at 07:42:13PM +0100, Chris Wilson wrote: > > The ioremap() hidden behind the io_mapping_map_wc() convenience helper > > can be used for remapping multiple pages. Extend the helper so that > > future callers ca

[PATCH] lib: make sg_pool explicitly non-modular

2016-04-20 Thread Paul Gortmaker
The recently added Kconfig controlling compilation of this code is: lib/Kconfig:config SG_POOL lib/Kconfig:def_bool n ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no

Re: [PATCH V6 09/13] pci, acpi: Support for ACPI based generic PCI host controller

2016-04-20 Thread Jayachandran C
On Fri, Apr 15, 2016 at 10:36 PM, Tomasz Nowicki wrote: > This patch is going to implement generic PCI host controller for > ACPI world, similar to what pci-host-generic.c driver does for DT world. > > All such drivers, which we have seen so far, were implemented within > arch/ directory since the

Re: [RFC PATCH 02/13] tools: Add ubpf feature test

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:42PM +, Wang Nan escreveu: > Add test-ubpf.c to find libubpf, which can be found from [1]. > > ubpf is user space BPF engine. Following commits will utilize ubpf > to make perf dynamically run some profiling scripts in user space. > > [1] https://github.com/iovis

Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

2016-04-20 Thread kbuild test robot
Hi, [auto build test ERROR on v4.6-rc4] [also build test ERROR on next-20160420] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-move-huge_pmd_set_accessed-out-of-huge_memory-c

Re: [PATCH v2 1/1] arm64: dts: NS2 secondary core enablement via PSCI

2016-04-20 Thread Scott Branden
Looks good while we are using PSCI-1.0 Acked-by: Scott Branden On 16-04-20 10:40 AM, Luke Starrett wrote: Declare PSCI-1.0 node and enable CPU_ON method via PSCI. Spin-table memreserve has been removed as well as syscon based reset, as PSCI-1.0 expects reset implementation in firmware. Signe

Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

2016-04-20 Thread kbuild test robot
Hi, [auto build test ERROR on v4.6-rc4] [also build test ERROR on next-20160420] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-move-huge_pmd_set_accessed-out-of-huge_memory-c

Re: [PATCH 1/2] x86/arch_prctl: add ARCH_SET_{COMPAT,NATIVE} to change compatible mode

2016-04-20 Thread Peter Zijlstra
On Wed, Apr 20, 2016 at 08:40:23AM -0700, Andy Lutomirski wrote: > Do LBR, PEBS, and similar report user regs or do they merely want to > know the instruction format? If the latter, I could whip up a tiny > function to do just that (like perf_get_regs_user but just for ABI -- > it would be simpler

Re: [PATCH v10 RESEND 2/3] kernel.h: add u64_to_user_ptr()

2016-04-20 Thread Gustavo Padovan
2016-04-20 Maarten Lankhorst : > Op 19-04-16 om 22:42 schreef Gustavo Padovan: > > From: Gustavo Padovan > > > > This function had copies in 3 different files. Unify them in kernel.h. > > > > Cc: Joe Perches > > Cc: Andrew Morton > > Cc: David Airlie > > Cc: Daniel Vetter > > Cc: Rob Clark >

Re: [PATCH 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:47, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:28PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, instead of b

[PATCH v6 2/7] perf tools: Derive trigger class from auxtrace_snapshot

2016-04-20 Thread Wang Nan
auxtrace_snapshot_state matches trigger model. Use trigger to implement it. auxtrace_snapshot_state and auxtrace_snapshot_err are absorbed. Signed-off-by: Wang Nan Cc: Adrian Hunter Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com --- tools

[PATCH v6 3/7] perf record: Split output into multiple files via '--switch-output'

2016-04-20 Thread Wang Nan
Allow 'perf record' to split its output into multiple files. For example: # ~/perf record -a --timestamp-filename --switch-output & [1] 10763 # kill -s SIGUSR2 10763 [ perf record: dump data: Woken up 1 times ] # [ perf record: Dump perf.data.2015122622314468 ] # kill -s SIGUSR2 1076

[PATCH v6 5/7] perf record: Disable buildid cache options by default in switch output mode

2016-04-20 Thread Wang Nan
The cost of buildid cache processing is high: reading all events in output perf.data, opening each elf file to read buildids then copying them into ~/.debug directory. In switch output mode, these heavy works block perf from receiving perf events for too long. Enable no-buildid and no-buildid-cach

[PATCH v6 0/7] perf tools: Use SIGUSR2 control data dumpping

2016-04-20 Thread Wang Nan
v5 -> v6: Improve trigger class: rename (Suggested by Namhyung Kim) toggle -> hit; don't generate functions for each trigger, use generic functions instead. Patch cleanup: switch auxtrace_snapshot to trigger in a isolated patch (2/7). Cc: Wang Nan Cc: Adri

[PATCH v6 1/7] perf tools: Introduce trigger class

2016-04-20 Thread Wang Nan
Use 'trigger' to model operations which need to be executed when an event (a signal, for example) is observed. States and transits: OFF--(on)--> READY --(hit)--> HIT ^ | |(ready) | | \___

[PATCH v6 4/7] perf record: Force enable --timestamp-filename when --switch-output is provided

2016-04-20 Thread Wang Nan
Without this patch, the last output doesn't have timestamp appended if --timestamp-filename is not explicitly provided. For example: # perf record -a --switch-output & [1] 11224 # kill -s SIGUSR2 11224 [ perf record: dump data: Woken up 1 times ] # [ perf record: Dump perf.data.201512262

[PATCH v6 7/7] perf record: Generate tracking events for process forked by perf

2016-04-20 Thread Wang Nan
With 'perf record --switch-output' without -a, record__synthesize() in record__switch_output() won't generate tracking events because there's no thread_map in evlist. Which causes newly created perf.data doesn't contain map and comm information. This patch creates a fake thread_map and directly ca

Re: [Letux-kernel] [PATCH 5/5] input: twl6040-vibra: remove mutex

2016-04-20 Thread H. Nikolaus Schaller
Hi Dmitry, > Am 20.04.2016 um 20:15 schrieb Dmitry Torokhov : > > On Wed, Apr 20, 2016 at 08:10:28PM +0200, H. Nikolaus Schaller wrote: >> Hi, >> >>> Am 20.04.2016 um 19:49 schrieb Dmitry Torokhov : >>> >>> On Wed, Apr 20, 2016 at 11:22:53AM +0200, H. Nikolaus Schaller wrote: > Am 19.

[PATCH v6 6/7] perf record: Re-synthesize tracking events after output switching

2016-04-20 Thread Wang Nan
Tracking events describe kernel and threads. They are generated by reading /proc/kallsyms, /proc/*/maps and /proc/*/task/* during initialization of 'perf record', serialized into event sequences and put at the head of 'perf.data'. In case of output switching, each output file should contain those e

Re: [PATCH 02/19] io-mapping: Specify mapping size for io_mapping_map_wc()

2016-04-20 Thread Luis R. Rodriguez
On Wed, Apr 20, 2016 at 07:42:13PM +0100, Chris Wilson wrote: > The ioremap() hidden behind the io_mapping_map_wc() convenience helper > can be used for remapping multiple pages. Extend the helper so that > future callers can use it for larger ranges. > > Signed-off-by: Chris Wilson > Cc: Tvrtko

Re: [PATCH V2] net: ethernet: mellanox: correct page conversion

2016-04-20 Thread Sinan Kaya
On 4/20/2016 2:40 PM, Eran Ben Elisha wrote: >> >> It is been 1.5 years since I reported the problem. We came up with three >> different solutions this week. I'd like to see a version of the solution >> to get merged until Mellanox comes up with a better solution with another >> patch. My proposal

[PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

2016-04-20 Thread Yang Shi
huge_pmd_set_accessed is only called by __handle_mm_fault from memory.c, move the definition to memory.c and make it static like create_huge_pmd and wp_huge_pmd. Signed-off-by: Yang Shi --- include/linux/huge_mm.h | 4 mm/huge_memory.c| 23 --- mm/memory.c

[PATCH 02/19] io-mapping: Specify mapping size for io_mapping_map_wc()

2016-04-20 Thread Chris Wilson
The ioremap() hidden behind the io_mapping_map_wc() convenience helper can be used for remapping multiple pages. Extend the helper so that future callers can use it for larger ranges. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie Cc: Yishai

Re: [PATCH v2 1/2] clk: Add Oxford Semiconductor OXNAS Standard Clocks

2016-04-20 Thread Stephen Boyd
On 04/20, Neil Armstrong wrote: > On 04/19/2016 11:29 PM, Stephen Boyd wrote: > > On 04/18, Neil Armstrong wrote: > >> + struct clk_oxnas *_clk; > >> + > >> + if (!clk_oxnas_init[i].clk_init) > >> + continue; > > > > New design is fine, really it's up to you, but

Re: [PATCH V2] net: ethernet: mellanox: correct page conversion

2016-04-20 Thread Eran Ben Elisha
> > It is been 1.5 years since I reported the problem. We came up with three > different solutions this week. I'd like to see a version of the solution > to get merged until Mellanox comes up with a better solution with another > patch. My proposal is to use this one. > We will post our suggestion

Re: [PATCH] ARM: mv78xx0: Remove CLK_IS_ROOT

2016-04-20 Thread Stephen Boyd
On 04/20, Arnd Bergmann wrote: > On Tuesday 19 April 2016 18:40:04 Stephen Boyd wrote: > > This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate > > CLK_IS_ROOT", 2016-02-02) so remove it. > > > > Cc: Andrew Lunn > > Cc: Jason Cooper > Signed-off-by: Stephen Boyd > > > > Looks goo

Re: [PATCH 2/2] dmaengine: vdma: Add clock support

2016-04-20 Thread Moritz Fischer
Hi, thanks for looking into this. On Wed, Apr 20, 2016 at 12:20 AM, Kedareswara rao Appana wrote: > +static int xdma_clk_init(struct xilinx_dma_device *xdev, bool enable) > +{ > + int i = 0, ret; > + > + for (i = 0; i < xdev->numclks; i++) { > + if (enable) { > +

Re: [PATCH 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:44, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:26PM +0200, Noralf Trønnes wrote: Export fb_deferred_io_mmap so drivers can change vma->vm_page_prot. When the framebuffer memory is allocated using dma_alloc_writecombine() instead of vmalloc(), I get cache syncing proble

Re: [PATCH v3] KVM: remove buggy vcpu id check on vcpu creation

2016-04-20 Thread Radim Krčmář
2016-04-20 19:53+0200, Greg Kurz: > On Wed, 20 Apr 2016 19:27:06 +0200 > Radim Krčmář wrote: >> 2016-04-20 18:09+0100, James Hogan: >> > On Wed, Apr 20, 2016 at 07:02:10PM +0200, Radim Krčmář wrote: >> >> 2016-04-20 17:44+0200, Greg Kurz: >> >> > diff --git a/arch/mips/kvm/mips.c b/arch/mips/k

Re: [PATCH v3] KVM: remove buggy vcpu id check on vcpu creation

2016-04-20 Thread Radim Krčmář
2016-04-20 17:44+0200, Greg Kurz: > Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") > introduced a check to prevent potential kernel memory corruption in case > the vcpu id is too great. > > Unfortunately this check assumes vcpu ids grow in sequence with a common > diffe

Re: [PATCH v4 0/2] Skylake PSys support

2016-04-20 Thread Srinivas Pandruvada
On Wed, 2016-04-20 at 15:59 +0200, Peter Zijlstra wrote: > On Sun, Apr 17, 2016 at 03:02:59PM -0700, Srinivas Pandruvada wrote: > > > > Skylake processor supports a new set of RAPL registers for > > controlling > > entire SoC instead of just CPU package called PSys. This change > > adds > > suppor

[PATCH] USB: serial: Use IS_ENABLED() instead of checking for FOO || FOO_MODULE

2016-04-20 Thread Javier Martinez Canillas
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Signed-off-by: Javier Martinez Canillas --- drivers/usb/serial/usb-serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

Re: [PATCH] ARM: pxa: remove platform dma code

2016-04-20 Thread Robert Jarzmik
Robert Jarzmik writes: > As the last pxa related driver was converted to dmaengine, it's time to > kill the legacy dma code, which is not used anymore. > > This finishes the pxa dmaengine transition. > > Signed-off-by: Robert Jarzmik > --- > arch/arm/mach-pxa/devices.h | 1 + > arch/

Re: [PATCH 1/6] ARM: dts: pxa: add pxa framebuffer device

2016-04-20 Thread Robert Jarzmik
Robert Jarzmik writes: > Add the framebuffer device, or display controller, available on pxa2xx > and pxa3xx platforms. Tentatively queued the whole serie in pxa/dt. -- Robert

Re: [PATCH] iio: inv_mpu6050: Add support for auxiliary I2C master

2016-04-20 Thread kbuild test robot
Hi, [auto build test ERROR on iio/togreg] [also build test ERROR on v4.6-rc4 next-20160420] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Crestez-Dan-Leonard/iio-inv_mpu6050-Add-support-for

Re: [PATCH] ARM: pxa: Remove CLK_IS_ROOT

2016-04-20 Thread Robert Jarzmik
Stephen Boyd writes: > This flag is a no-op now (see commit 47b0eeb3dc8a "clk: Deprecate > CLK_IS_ROOT", 2016-02-02) so remove it. > > Signed-off-by: Stephen Boyd Queued to pxa/for-next, thanks ! Cheers. -- Robert

Re: [PATCH v7 6/8] irqchip/gicv2m: implement msi_doorbell_info callback

2016-04-20 Thread Eric Auger
Marc, On 04/20/2016 07:56 PM, Marc Zyngier wrote: > On Wed, 20 Apr 2016 14:33:17 +0200 > Eric Auger wrote: > >> Marc, >> On 04/20/2016 11:27 AM, Marc Zyngier wrote: >>> On 19/04/16 18:13, Eric Auger wrote: This patch implements the msi_doorbell_info callback in the gicv2m driver. >

Re: [PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:42, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:23PM +0200, Noralf Trønnes wrote: Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule the worker that calls the deferred_io callback. This will break

Re: [Letux-kernel] [PATCH 5/5] input: twl6040-vibra: remove mutex

2016-04-20 Thread Dmitry Torokhov
On Wed, Apr 20, 2016 at 08:10:28PM +0200, H. Nikolaus Schaller wrote: > Hi, > > > Am 20.04.2016 um 19:49 schrieb Dmitry Torokhov : > > > > On Wed, Apr 20, 2016 at 11:22:53AM +0200, H. Nikolaus Schaller wrote: > >> > >>> Am 19.04.2016 um 10:08 schrieb H. Nikolaus Schaller : > >>> > >>> > A

Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular

2016-04-20 Thread Daniel Lezcano
On Wed, Apr 20, 2016 at 11:25:06AM -0400, Paul Gortmaker wrote: > The Kconfig for this driver is currently declared with: > > config INTEL_IDLE > bool "Cpuidle Driver for Intel Processors" > > ...meaning that it currently is not being built as a module by anyone. > > This was done in com

Re: [Letux-kernel] [PATCH 5/5] input: twl6040-vibra: remove mutex

2016-04-20 Thread H. Nikolaus Schaller
Hi, > Am 20.04.2016 um 19:49 schrieb Dmitry Torokhov : > > On Wed, Apr 20, 2016 at 11:22:53AM +0200, H. Nikolaus Schaller wrote: >> >>> Am 19.04.2016 um 10:08 schrieb H. Nikolaus Schaller : >>> >>> Am 19.04.2016 um 10:01 schrieb Dmitry Torokhov : On Tue, Apr 19, 2016 at 09:49:0

Re: [PATCH 4.6] mm: wake kcompactd before kswapd's short sleep

2016-04-20 Thread Rik van Riel
On Tue, 2016-04-19 at 22:36 +0200, Vlastimil Babka wrote: > When kswapd goes to sleep it checks if the node is balanced and at > first it > sleeps only for HZ/10 time, then rechecks if the node is still > balanced and > nobody has woken it during the initial sleep. Only then it goes fully > sleep >

[RFC PATCH 02/13] tools: Add ubpf feature test

2016-04-20 Thread Wang Nan
Add test-ubpf.c to find libubpf, which can be found from [1]. ubpf is user space BPF engine. Following commits will utilize ubpf to make perf dynamically run some profiling scripts in user space. [1] https://github.com/iovisor/ubpf.git Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: A

[RFC PATCH 00/13] perf tools: Support uBPF script

2016-04-20 Thread Wang Nan
This patch set allows to perf invoke some user space BPF scripts on some point. uBPF scripts and kernel BPF scripts reside in one BPF object. They communicate with each other with BPF maps. uBPF scripts can invoke helper functions provided by perf. At least following new features can be achieved b

[RFC PATCH 11/13] perf bpf: Accept ubpf programs

2016-04-20 Thread Wang Nan
This patch allows user passing a UBPF function through bpf file with section name leading with 'UBPF;'. For example: #define SEC(NAME) __attribute__((section(NAME), used)) SEC("UBPF;perf_record_exit") void record_exit(int *samples) { char fmt[] = "Hello! receive %d samples\n"; ubpf_pri

[RFC PATCH 08/13] bpf tools: Add API for fetching ubpf_vm

2016-04-20 Thread Wang Nan
Introduce bpf_program__vm and bpf_program__nth_vm for fetching ubpf program instance. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Jiri Olsa Cc: Li Zefan --- tools/lib/bpf/libbpf.c | 38 ++ tools/lib/bp

[RFC PATCH 07/13] bpf tools: Load ubpf program

2016-04-20 Thread Wang Nan
In bpf_program__load(), load ubpf program according to its engine type. API is improvemented to hold 'struct ubpf_vm *'. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Jiri Olsa Cc: Li Zefan --- tools/lib/bpf/libbpf.c | 66

[RFC PATCH 05/13] bpf tools: Save engine type in bpf_program

2016-04-20 Thread Wang Nan
Add an 'engine' field in bpf_program to indicate whether a program is a ubpf program or kernel bpf program. For compatibility, the default engine is kernel bpf, unless explicitly set to ubpf using bpf_program__set_ubpf(). Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoito

Re: [PATCH 10/11] x86, rwsem: provide __down_write_killable

2016-04-20 Thread H. Peter Anvin
On April 20, 2016 6:40:19 AM PDT, Peter Zijlstra wrote: >On Wed, Apr 13, 2016 at 02:49:43PM +0200, Michal Hocko wrote: >> On Wed 13-04-16 12:27:31, Ingo Molnar wrote: >> > >> > * Ingo Molnar wrote: >> > >> > > I'm testing your patches today, if they are otherwise OK [...] >> > >> > got this bu

[RFC PATCH 09/13] bpf tools: Register extern functions for ubpf programs

2016-04-20 Thread Wang Nan
Introduce libbpf_register_ubpf_func(), allow caller (perf) to register extern functions. Registered functions are stored into an array and registered to each ubpf_vm when loading. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Jiri Olsa Cc: L

Re: [PATCH] MAINTAINERS: net: add entry for TI Ethernet Switch drivers

2016-04-20 Thread Tony Lindgren
* Grygorii Strashko [160420 09:19]: > On 04/20/2016 05:23 PM, Tony Lindgren wrote: > > * Grygorii Strashko [160420 04:26]: > >> Add record for TI Ethernet Switch Driver CPSW/CPDMA/MDIO HW > >> (am33/am43/am57/dr7/davinci) to ensure that related patches > >> will go through dedicated linux-omap li

<    1   2   3   4   5   6   7   8   9   >