[PATCH 14/54] perf tools: Support setting different slots in a BPF map separately

2016-01-25 Thread Wang Nan
This patch introduces basic facilities to support config different slots in a BPF map one by one. array.nr_ranges and array.ranges are introduced into 'struct parse_events_term', where ranges is an array of indices range (start, length) which will be configured by this config term. nr_ranges is th

[GIT PULL 00/54] perf tools: Bugfix, BPF improvements and overwrite ring buffer support

2016-01-25 Thread Wang Nan
Hi Arnaldo, The following changes since commit 512e583b2d4a35b644c8ff36e033b90be7e91c2e: perf hists browser: Offer non-symbol specific menu options for --sort without 'sym' (2016-01-22 14:28:48 -0300) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/p

[PATCH 06/54] perf test: Check environment before start real BPF test

2016-01-25 Thread Wang Nan
Copying perf to old kernel system results: # perf test bpf 37: Test BPF filter : 37.1: Test basic BPF filtering : FAILED! 37.2: Test BPF prologue generation : Skip However, in case when kernel doe

[PATCH 03/54] tools build: Allow subprojects select all feature checkers

2016-01-25 Thread Wang Nan
Put feature checkers not in original FEATURE_TESTS to a new list and allow subproject select all feature checkers by setting FEATURE_TESTS to 'all'. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: Namhyung Kim --- tools/build/Makefile.feature | 21 -

[PATCH 33/54] perf record: Add '--timestamp-filename' option to append timestamp to output filename

2016-01-25 Thread Wang Nan
This options append current timestamp to output. For example: # perf record -a --timestamp-filename ^C[ perf record: Woken up 1 times to write data ] [ perf record: Dump perf.data.2015122622265847 ] [ perf record: Captured and wrote 0.742 MB perf.data (90 samples) ] # ls perf.data.2015122622

[PATCH 28/54] perf record: Extract synthesize code to record__synthesize()

2016-01-25 Thread Wang Nan
Create record__synthesize(). It can be used to create tracking events for each perf.data after perf supporting splitting into multiple outputs. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: p

[PATCH 39/54] perf record: Ensure return non-zero rc when mmap fail

2016-01-25 Thread Wang Nan
perf_evlist__mmap_ex() can fail without setting errno (for example, fail in condition checking. In this case all syscall is success). If this happen, record__open() incorrectly returns 0. Force setting rc is a quick way to avoid this problem, or we have to follow all possible code path in perf_evli

[PATCH 23/54] perf tools: Introduce API to pause ring buffer

2016-01-25 Thread Wang Nan
perf_evsel__pause() is introduced to pause a ring buffer. Since output of a evsel is bound together, ioctl() on the first file is enough. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or..

[PATCH 53/54] perf record: Allow generate tracking events at the end of output

2016-01-25 Thread Wang Nan
Before this patch tracking events are generated based on information in /proc before all samples. However, with the introducing of overwrite evsel in perf record, it becomes inconvenience: 'perf record' now can executed as a daemon for sereval hours and only capture the last snapshot when it receiv

[PATCH 22/54] perf core: Reduce perf event output overhead by new overflow handler

2016-01-25 Thread Wang Nan
By creating onward and backward specific overflow handlers and setting them according to event's backward setting, normal sampling events don't need checking backward setting of an event any more. This is the last patch of backward writing patchset. After this patch, there's no extra overhead intr

[PATCH 15/54] perf tools: Enable indices setting syntax for BPF maps

2016-01-25 Thread Wang Nan
This patch introduce a new syntax to perf event parser: # perf record -e './test_bpf_map_3.c/maps:channel.value[0,1,2,3...5]=101/' usleep 2 By utilizing the basic facilities in bpf-loader.c which allow setting different slots in a BPF map separately, the newly introduced syntax allows perf to c

[PATCH 54/54] perf tools: Don't warn about out of order event if write_backward is used

2016-01-25 Thread Wang Nan
If write_backward attribute is set, records are written into kernel ring buffer from end to beginning, but read from beginning to end. To avoid 'XX out of order events recorded' warning message (timestamps of records is in reverse order when using write_backward), suppress the warning message if wr

[PATCH 11/54] perf record: Apply config to BPF objects before recording

2016-01-25 Thread Wang Nan
bpf__apply_obj_config() is introduced as the core API to apply object config options to all BPF objects. This patch also does the real work for setting values for BPF_MAP_TYPE_PERF_ARRAY maps by inserting value stored in map's private field into the BPF map. This patch is required because we are n

Re: [PATCH] reset: hisilicon: check return value of reset_controller_register()

2016-01-25 Thread Philipp Zabel
Am Sonntag, den 24.01.2016, 01:19 +0900 schrieb Masahiro Yamada: > The newly added hisilicon reset driver missed the subsystem-wide > fixup by commit d1f15aa09558 ("reset: check return value of > reset_controller_register()"). So fix it now. > > Signed-off-by: Masahiro Yamada > --- > > drivers

[PATCH 25/54] perf tools: Print write_backward value in perf_event_attr__fprintf

2016-01-25 Thread Wang Nan
Print write_backward setting when printing perf evsel. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/util/evsel.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 37/54] perf record: Re-synthesize tracking events after output switching

2016-01-25 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

[PATCH 50/54] perf record: Toggle overwrite ring buffer for reading

2016-01-25 Thread Wang Nan
Reading from a overwrite ring buffer is unrelible. perf_evsel__pause() should be called before reading from them. Toggel overwrite_evt_paused director after receiving done or switch output. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami H

[PATCH 35/54] perf record: Force enable --timestamp-filename when --switch-output is provided

2016-01-25 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.20151226223728

[PATCH 34/54] perf record: Split output into multiple files via '--switch-output'

2016-01-25 Thread Wang Nan
Allow 'perf record' splits 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 10763 [ per

Re: [PATCH] mm/debug_pagealloc: Ask users for default setting of debug_pagealloc

2016-01-25 Thread Heiko Carstens
On Mon, Jan 25, 2016 at 10:45:50AM +0100, Christian Borntraeger wrote: > >> +By default this option will be almost for free and can be activated > >> +in distribution kernels. The overhead and the debugging can be enabled > >> +by DEBUG_PAGEALLOC_ENABLE_DEFAULT or the debug_pagealloc co

[PATCH 49/54] perf tools: Set write_backward attribut bit for overwrite events

2016-01-25 Thread Wang Nan
write_backward attribute makes kernel filling ring buffer from the end of it, makes reading from overwrite ring buffer possible. This patch select this attribute if evsel->overwrite is selected explicitly by user. Overwrite and write_backward are still controled separatly for legacy readonly mmap

[PATCH 2/2] mm: filemap: Avoid unnecessary calls to lock_page when waiting for IO to complete during a read

2016-01-25 Thread Mel Gorman
In the generic read paths the kernel looks up a page in the page cache and if it's up to date, it is used. If not, the page lock is acquired to wait for IO to complete and then check the page. If multiple processes are waiting on IO, they all serialise against the lock and duplicate the checks. Th

[PATCH 20/54] perf core: Prepare writing into ring buffer from end

2016-01-25 Thread Wang Nan
Convert perf_output_begin to __perf_output_begin and make the later function able to write records from the end of the ring buffer. Following commits will utilize the 'backward' flag. This patch doesn't introduce any extra performance overhead since we use always_inline. Signed-off-by: Wang Nan

[PATCH 0/2] Avoid unnecessary page locks in the generic read path

2016-01-25 Thread Mel Gorman
A long time ago there was an attempt to merge a patch that reduced the cost of unlock_page by avoiding the page_waitqueue lookup if there were no waiters. It was rejected on the grounds of complexity but it was pointed out that the read paths call lock_page unnecessarily. This series reduces the nu

[PATCH 24/54] perf tools: Only validate is_pos for tracking evsels

2016-01-25 Thread Wang Nan
is_pos only useful for tracking events (fork, mmap, exit, ...). Perf collects those events through evsel with 'tracking' set. Therefore, there's no need to validate every is_pos against evlist->is_pos. This patch is required after perf support PERF_SAMPLE_TAILSIZE. Since there an extra u64 at the

Re: net: GPF in netlink_getsockbyportid

2016-01-25 Thread Herbert Xu
On Sun, Jan 24, 2016 at 01:11:03AM +0100, Florian Westphal wrote: > Daniel Borkmann wrote: > > On 01/23/2016 08:25 PM, Florian Westphal wrote: > > >Dmitry Vyukov wrote: > > > > > >[ CC nf-devel, not sure if its nfnetlink fault or NETLINK_MMAP ] > > > > > >>The following program causes GPF in netl

[PATCH 1/2] mm: filemap: Remove redundant code in do_read_cache_page

2016-01-25 Thread Mel Gorman
do_read_cache_page and __read_cache_page duplicates page filler code when filling the page for the first time. This patch simply removes the duplicate logic. Signed-off-by: Mel Gorman --- mm/filemap.c | 43 --- 1 file changed, 12 insertions(+), 31 deletion

[PATCH 32/54] perf record: Use OPT_BOOLEAN_SET for buildid cache related options

2016-01-25 Thread Wang Nan
'perf record' knows whether buildid cache is enabled (via --no-no-buildid-cache) deliberately. Buildid cache can be turned off in some situations. Output switching support needs this feature to turn off buildid cache by default. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carval

[PATCH 30/54] perf record: Turns auxtrace_snapshot_enable into 3 states

2016-01-25 Thread Wang Nan
auxtrace_snapshot_enable has only two states (0/1). Turns it into a triple states enum so SIGUSR2 handler can safely do other works without triggering auxtrace snapshot. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyun

[PATCH 19/54] perf core: Set event's default overflow_handler

2016-01-25 Thread Wang Nan
Set a default event->overflow_handler in perf_event_alloc() so don't need checking event->overflow_handler in __perf_event_overflow(). Following commits can give a different default overflow_handler. No extra performance introduced into hot path because in the original code we still need reading t

[PATCH 29/54] perf tools: Add perf_data_file__switch() helper

2016-01-25 Thread Wang Nan
perf_data_file__switch() closes current output file, renames it, then open a new one to continue record. It will be used by perf record to split output into multiple perf.data files. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu

[PATCH 31/54] perf record: Introduce record__finish_output() to finish a perf.data

2016-01-25 Thread Wang Nan
Move code for finalizing 'perf.data' to record__finish_output(). It will be used by following commits to split output to multiple files. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...

[PATCH] sched: Make schedstats a runtime tunable that is disabled by default

2016-01-25 Thread Mel Gorman
schedstats is very useful during debugging and performance tuning but it incurs overhead. As such, even though it can be disabled at build time, it is often enabled as the information is useful. This patch adds a kernel command-line and sysctl tunable to enable or disable schedstats on demand. It

[PATCH 38/54] perf record: Generate tracking events for process forked by perf

2016-01-25 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

[PATCH 27/54] perf tools: Make ordered_events reusable

2016-01-25 Thread Wang Nan
ordered_events__free() leaves linked lists and timestamps not cleared, so unable to be reused after ordered_events__free(). Which is inconvenient after 'perf record' supports generating multiple perf.data output and process build-ids for each of them. Calls ordered_events__init() in ordered_events

[PATCH 36/54] perf record: Disable buildid cache options by default in switch output mode

2016-01-25 Thread Wang Nan
Cost of buildid cache processing is high: read all events in output perf.data, open elf files to read buildid then copy them into ~/.debug directory. In switch output mode, causes perf stop receiving from perf events for too long. Enable no-buildid and no-buildid-cache by default if --switch-outpu

[PATCH 45/54] perf record: Don't read from and poll overwrite channel

2016-01-25 Thread Wang Nan
Reading from overwritable ring buffer is unreliable. Introduce record__mmap_should_read() and prevent reading from overwrite ring buffer in 'perf record'. The rule in record__mmap_should_read() will be changed when perf support reading from backward writing ring buffer. Signed-off-by: Wang Nan Si

Re: [PATCH v3 08/12] arm64, numa: rework numa_add_memblk()

2016-01-25 Thread Robert Richter
On 23.01.16 17:39:23, Hanjun Guo wrote: > Rework numa_add_memblk() to update the parameter "u64 size" > to "u64 end", this will make it consistent with x86 and > can simplify the code later. > --- a/arch/arm64/kernel/of_numa.c > +++ b/arch/arm64/kernel/of_numa.c > @@ -168,7 +168,7 @@ static int __

Re: [PATCH] mm/debug_pagealloc: Ask users for default setting of debug_pagealloc

2016-01-25 Thread Christian Borntraeger
On 01/25/2016 11:02 AM, Heiko Carstens wrote: > On Mon, Jan 25, 2016 at 10:45:50AM +0100, Christian Borntraeger wrote: +By default this option will be almost for free and can be activated +in distribution kernels. The overhead and the debugging can be enabled +by DEBUG_PA

[PATCH 42/54] perf tools: Automatically add new channel according to evlist

2016-01-25 Thread Wang Nan
perf_evlist__channel_find() can be used to find a proper channel based on propreties of a evsel. If the channel doesn't exist, it can create new one for it. After this patch there's no need to create default channel explicitly. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-25 Thread Paul Mackerras
On Mon, Jan 25, 2016 at 04:46:03PM +1100, Michael Ellerman wrote: > On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: > > This makes vmalloc_to_phys() public as there will be another user > > (in-kernel VFIO acceleration) for it soon. > > > > As a part of future little optimization,

Re: [PATCH] drivers/scsi/emcctd: drivers/scsi/emcctd: Client driver implementation for EMC-Symmetrix GuestOS emulated Cut-Through Device

2016-01-25 Thread Johannes Thumshirn
On Mon, Jan 25, 2016 at 09:30:47AM +, Singhal, Maneesh wrote: > Thanks Johannes for generously reviewing my patch. It indeed is going to > improve the thing a lot. I agree with all your comments so far, and will > submit a newer patch soon. > Since this is my first patch, I have couple of qu

[PATCH 26/54] perf tools: Move timestamp creation to util

2016-01-25 Thread Wang Nan
Timestamp generation becomes a public available helper. Which will be used by 'perf record', help it output to split output file based on time. For example: perf.data.2015122620363710 perf.data.2015122620364092 perf.data.2015122620365423 ... Signed-off-by: Wang Nan Signed-off-by: He Kuang

[PATCH 40/54] perf record: Prevent reading invalid data in record__mmap_read

2016-01-25 Thread Wang Nan
When record__mmap_read() requires data more than the size of ring buffer, drop those data to avoid accessing invalid memory. This can happen when reading from overwritable ring buffer, which should be avoided. However, check this for robustness. Signed-off-by: Wang Nan Signed-off-by: He Kuang C

[PATCH 17/54] perf data: Support converting data from bpf_perf_event_output()

2016-01-25 Thread Wang Nan
bpf_perf_event_output() outputs data through sample->raw_data. This patch adds support to convert those data into CTF. A python script then can be used to process output data from BPF programs. Test result: # cat ./test_bpf_output_2.c / BEGIN **/

[PATCH 21/54] perf core: Add backward attribute to perf event

2016-01-25 Thread Wang Nan
In perf_event_attr a new bit 'write_backward' is appended to indicate this event should write ring buffer from its end to beginning. In perf_output_begin(), prepare ring buffer according this bit. This patch introduces small overhead into perf_output_begin(): an extra memory read and a conditiona

[PATCH 13/54] perf tools: Support perf event alias name

2016-01-25 Thread Wang Nan
From: He Kuang This patch is useful when trying to pass a perf event to BPF map. Before this patch we are unable to pass an event with config term to BPF maps. For example: # perf record -a -e cycles/no-inherit,period=0x7fff/ \ -e './test_bpf_map_2.c/maps:pmu_map.

[PATCH 41/54] perf tools: Add evlist channel helpers

2016-01-25 Thread Wang Nan
In this commit sereval helpers are introduced to support the principle of channel. Channels hold different groups of evsels which configured differently. It will be used for overwritable evsels, which allows perf record some events continuously while capture snapshot for other events when something

[PATCH 18/54] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-01-25 Thread Wang Nan
Add new ioctl() to pause/resume ring-buffer output. In some situations we want to read from ring buffer only when we ensure nothing can write to the ring buffer during reading. Without this patch we have to turn off all events attached to this ring buffer to achieve this. This patch is for suppor

[PATCH 46/54] perf record: Don't poll on overwrite channel

2016-01-25 Thread Wang Nan
There's no need to receive events from overwrite ring buffer. Instead, perf should make them run background until something happen. This patch makes events from overwrite ring buffer is ignored except POLLERR and POLLHUP. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Me

[PATCH 12/54] perf tools: Enable passing event to BPF object

2016-01-25 Thread Wang Nan
A new syntax is appended into parser so user can pass predefined perf events into BPF objects. After this patch, BPF programs for perf are finally able to utilize bpf_perf_event_read() introduced in commit 35578d7984003097af2b1e3 (bpf: Implement function bpf_perf_event_read() that get the selected

[PATCH 48/54] perf tools: Enable overwrite settings

2016-01-25 Thread Wang Nan
This patch allows following config terms and option: # perf record --overwrite ... Globally set following events to overwrite; # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Set specific events to be overwrite or no-overwrite. Signed-off-by: Wa

[PATCH 08/54] perf test: Improve bp_signal

2016-01-25 Thread Wang Nan
Will Deacon [1] has some question on patch [2]. This patch improves test__bp_signal so we can test: 1. A watchpoint and a breakpoint that fire on the same instruction 2. Nested signals Test result: On x86_64 and ARM64 (result are similar with patch [2] on ARM64): # ./perf test -v signal 17

[PATCH 52/54] perf record: Read from backward ring buffer

2016-01-25 Thread Wang Nan
Introduce rb_find_range() to find start and end position from a backward ring buffer. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 69

[PATCH 47/54] perf tools: Detect avalibility of write_backward

2016-01-25 Thread Wang Nan
Detect avalibility of write_backward and save the result into record_opts. With write_backward the start pointer of a ring buffer mapped read only can be found reliably. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyun

[PATCH 09/54] perf tools: Add API to config maps in bpf object

2016-01-25 Thread Wang Nan
bpf__config_obj() is introduced as a core API to config BPF object after loading. One configuration option of maps is introduced. After this patch BPF object can accept configuration like: maps:my_map.value=1234 (maps.my_map.value looks pretty. However, there's a small but hard to fixed problem

[PATCH 51/54] perf record: Rename variable to make code clear

2016-01-25 Thread Wang Nan
record__mmap_read() write data from ring buffer into perf.data. 'head' is maintained by kernel, points to the last writtend record. 'old' is maintained by perf, points to the record read in previous round. record__mmap_read() saves data from 'old' to 'head' to perf.data. The naming of variables are

[PATCH 01/54] perf test: Add libbpf relocation checker

2016-01-25 Thread Wang Nan
There's a bug in LLVM that it can generate unneeded relocation information. See [1] and [2]. Libbpf should check the target section of a relocation symbol. This patch adds a testcase which reference a global variable (BPF doesn't support global variable). Before fixing libbpf, the new test case ca

[PATCH 44/54] perf tools: Squash overwrite setting into channel

2016-01-25 Thread Wang Nan
Make 'overwrite' a channel configuration other than a evlist global option. With this setting an evlist can have two channels, one is normal channel, another is overwritable channel. perf_evlist__channel_for_evsel() ensures events with 'overwrite' configuration inserted to overwritable channel. Si

[PATCH 10/54] perf tools: Enable BPF object configure syntax

2016-01-25 Thread Wang Nan
This patch adds the final step for BPF map configuration. A new syntax is appended into parser so user can config BPF objects through '/' '/' enclosed config terms. After this patch, following syntax is available: # perf record -e ./test_bpf_map_1.c/maps:channel.value=10/ ... It would takes eff

[PATCH 05/54] perf build: Use feature dump file for build-test

2016-01-25 Thread Wang Nan
To prevent feature check run too many times, this patch utilizes previous introduced feature-dump make target and FEATURES_DUMP variable, makes sure the feature checkers run only once when doing build-test for normal test cases. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo

Re: [PATCH v1 0/3] clk: rockchip: rk3368: fix some error for rk3368 clk

2016-01-25 Thread Heiko Stübner
Hi, Am Montag, 25. Januar 2016, 08:55:59 schrieb Zhang Qing: > From: zhangqing > > modify edp_24m parent select bit. > enable CLK_SET_RATE_PARENT flag for spdif_8ch and i2s_2ch. > > zhangqing (3): > clk: rockchip: rk3368: fix edp_24m parent > clk: rockchip: rk3368: enable the CLK_SET_RATE_P

[PATCH 02/54] perf bpf: Check relocation target section

2016-01-25 Thread Wang Nan
Libbpf should check target section before doing relocation to ensure the relocation is correct. If not, a bug in LLVM causes error. See [1]. Also, if an incorrect BPF script uses both global variable and map, global variable whould be treated as map and be relocated without error. This patch saves

[PATCH V2 2/4] mfd: mediatek: int_con and int_status may vary in location

2016-01-25 Thread John Crispin
MT6323 has the INT_CON and INT_STATUS located at a different position. Make the registers locations configurable. Signed-off-by: John Crispin --- drivers/mfd/mt6397-core.c | 27 +-- include/linux/mfd/mt6397/core.h |2 ++ 2 files changed, 19 insertions(+), 10 d

[PATCH V2 1/4] dt-bindings: mfd: Add bindings for the MediaTek MT6323 PMIC

2016-01-25 Thread John Crispin
Signed-off-by: John Crispin Cc: devicet...@vger.kernel.org --- Documentation/devicetree/bindings/mfd/mt6397.txt | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/Documentation/devicetree/bindings/mfd/mt6397.txt ind

[PATCH 07/54] perf tools: Fix symbols searching for offline module in buildid-cache

2016-01-25 Thread Wang Nan
Before this patch, if a sample is triggered inside an offline module (module not in /lib/modules/`uname -r`/), even if the module is in buildid-cache, 'perf report' is still unable to get correct symbol. For example: # rm -rf ~/.debug/ # perf buildid-cache -a ./mymodule.ko # perf probe -m ./mym

[PATCH V2 3/4] mfd: mediatek: add support for different Slave types

2016-01-25 Thread John Crispin
Signed-off-by: John Crispin --- drivers/mfd/mt6397-core.c | 38 +++--- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 75ad0fe..51e194b 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers

[PATCH V2 0/4] mfd: mediatek: add mt6323 support to the mt6397 driver

2016-01-25 Thread John Crispin
Changes in V2: * send to proper maintainer * add more people in Cc John Crispin (4): dt-bindings: mfd: Add bindings for the MediaTek MT6323 PMIC mfd: mediatek: int_con and int_status may vary in location mfd: mediatek: add support for different Slave types mfd: mediatek: add MT6323 support

[PATCH V2 4/4] mfd: mediatek: add MT6323 support to MT6397 driver

2016-01-25 Thread John Crispin
Signed-off-by: John Crispin --- drivers/mfd/mt6397-core.c| 20 ++ include/linux/mfd/mt6323/core.h | 42 include/linux/mfd/mt6323/registers.h | 414 ++ 3 files changed, 476 insertions(+) create mode 100644 include/linux/mfd/mt6323/core.h

RE: [PATCH] drivers/scsi/emcctd: drivers/scsi/emcctd: Client driver implementation for EMC-Symmetrix GuestOS emulated Cut-Through Device

2016-01-25 Thread Singhal, Maneesh
Thanks a lot for detailed information. Appreciate it ! Regards Maneesh > -Original Message- > From: Johannes Thumshirn [mailto:jthumsh...@suse.de] > Sent: Monday, January 25, 2016 3:39 PM > To: Singhal, Maneesh > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; > jbottom...@o

[PATCH 04/54] perf build: Select all feature checkers for feature-dump

2016-01-25 Thread Wang Nan
Set FEATURE_TESTS to 'all' so all possible feature checkers are executed. Without this setting the output feature dump file miss some feature, for example, liberity. Select all checker so we won't get an incomplete feature dump file. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Arnaldo Carvalho de

[PATCH 43/54] perf tools: Operate multiple channels

2016-01-25 Thread Wang Nan
Before this patch perf operates on only the first channel. Make perf mmap and read from multiple channels. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/built

Re: net: GPF in netlink_getsockbyportid

2016-01-25 Thread Pablo Neira Ayuso
On Mon, Jan 25, 2016 at 06:03:41PM +0800, Herbert Xu wrote: > On Sun, Jan 24, 2016 at 01:11:03AM +0100, Florian Westphal wrote: > > Daniel Borkmann wrote: > > > On 01/23/2016 08:25 PM, Florian Westphal wrote: > > > >Dmitry Vyukov wrote: > > > > > > > >[ CC nf-devel, not sure if its nfnetlink faul

Re: linux-next: build failure after merge of the akpm tree

2016-01-25 Thread Takashi Iwai
On Mon, 25 Jan 2016 10:40:14 +0100, Michael Ellerman wrote: > > On Mon, 2016-01-25 at 10:29 +0100, Takashi Iwai wrote: > > On Fri, 22 Jan 2016 03:40:45 +0100, Stephen Rothwell wrote: > > > diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig > > > index 50693c867e71..ee5f36b9c787 10064

Re: [PATCH v1 06/12] xen/hvmlite: Initialize PCI

2016-01-25 Thread Roger Pau Monné
El 22/01/16 a les 22.35, Boris Ostrovsky ha escrit: > HVMlite guests need PCI frontend and always have PV devices We still haven't discussed how to perform pci-passthrough for HVMlite guests. I admit there's a big chance that we are going to use the PV pcifront driver but there's no guarantee abou

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-01-25 Thread Robert Richter
On 23.01.16 17:39:20, Hanjun Guo wrote: > diff --git a/arch/arm64/kernel/acpi_numa.c b/arch/arm64/kernel/acpi_numa.c > new file mode 100644 > index 000..f7f7533 > --- /dev/null > +++ b/arch/arm64/kernel/acpi_numa.c > +/* Callback for parsing of the Proximity Domain <-> Memory Area mappings */

Re: [PATCH v3 12/12] acpi, numa: reuse acpi_numa_memory_affinity_init()

2016-01-25 Thread Robert Richter
On 23.01.16 17:39:27, Hanjun Guo wrote: > From: Hanjun Guo > > After the cleanup for acpi_numa_memory_affinity_init(), > it can be used for architetures both x86 and arm64, since > CONFIG_MEMORY_HOTPLUG is not enabled for arm64, so no > worry about that. > > Signed-off-by: Hanjun Guo > --- > a

Re: [Xen-devel] [PATCH v1 04/12] xen/hvmlite: Bootstrap HVMlite guest

2016-01-25 Thread Roger Pau Monné
El 23/01/16 a les 17.12, Konrad Rzeszutek Wilk ha escrit: > On January 23, 2016 11:01:06 AM EST, "H. Peter Anvin" wrote: >> On January 23, 2016 7:34:33 AM PST, Konrad Rzeszutek Wilk >> wrote: >>> However, this stub belongs in Linux, not in the Xen toolstack. That way, when the Linux bo

Re: [PATCH 07/15] dmaengine: dw: revisit data_width property

2016-01-25 Thread Måns Rullgård
Andy Shevchenko writes: > On Mon, 2016-01-25 at 07:32 +, Vineet Gupta wrote: >> On Monday 25 January 2016 12:55 AM, Mans Rullgard wrote: >> > From: Andy Shevchenko >> > >> > There are several changes are done here: >> > >> >  - Convert the property to be in bytes >> > >> >    Much more co

Re: [PATCH] ARM64: rk3368: add tuning clk for emmc and sdmmc

2016-01-25 Thread Heiko Stübner
Hi Shawn, Am Montag, 25. Januar 2016, 15:33:43 schrieb Shawn Lin: > Add tuning clk for emmc and sdmmc, otherwise I get > the following failure while enabling mmc-hs200-1_8v. > > dwmmc_rockchip ff0f.dwmmc: Tuning clock (sample_clk) not defined. > mmc0: tuning execution failed > mmc0: error -5

Re: [PATCH 07/15] dmaengine: dw: revisit data_width property

2016-01-25 Thread Andy Shevchenko
On Mon, 2016-01-25 at 10:31 +, Måns Rullgård wrote: > Andy Shevchenko writes: > > > On Mon, 2016-01-25 at 07:32 +, Vineet Gupta wrote: > > > On Monday 25 January 2016 12:55 AM, Mans Rullgard wrote: > > > > --- a/Documentation/devicetree/bindings/dma/snps-dma.txt > > > > +++ b/Documentati

Re: [PATCH 00/15] dmaengine: dw: various fixes and cleanups

2016-01-25 Thread Andy Shevchenko
On Sun, 2016-01-24 at 19:21 +, Mans Rullgard wrote: > This patch series contains a number of mostly minor fixes and > cleanups > for the DW DMA driver.  A couple of them affect the DT binding so > these > may need to be updated to maintain compatibility.  The rest should be > relatively straigh

Re: linux-next: build failure after merge of the akpm tree

2016-01-25 Thread Vinod Koul
On Mon, Jan 25, 2016 at 10:29:54AM +0100, Takashi Iwai wrote: > On Fri, 22 Jan 2016 03:40:45 +0100, > Stephen Rothwell wrote: > > > > Hi all, > > > > On Fri, 22 Jan 2016 11:24:42 +1100 Stephen Rothwell > > wrote: > > > > > > On Thu, 21 Jan 2016 07:38:59 +1100 Stephen Rothwell > > > wrote: > >

Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4

2016-01-25 Thread H. Nikolaus Schaller
Hi Alan, Am 24.01.2016 um 18:10 schrieb One Thousand Gnomes : >>> but by having only the >>> minimum necessary in the kernel. Unix >> >> I think you are confusing it with the goals of microkernels (e.g. Mach or >> Hurd). > > No and the quote below is from Doug McIlroy - who amongst other thi

[PATCH V2 1/2] dt-bindings: regulator: Add document for MT6323 regulator

2016-01-25 Thread John Crispin
Based on the MT6397 binding documentation. Signed-off-by: John Crispin Cc: devicet...@vger.kernel.org --- .../bindings/regulator/mt6323-regulator.txt| 241 1 file changed, 241 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6323-regu

[PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-01-25 Thread John Crispin
From: Chen Zhong The MT6323 is a regulator found on boards based on MediaTek MT7623 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Chen Zhong Signed-off-by: John Crispin --- drivers/regulator/Kconfig

[PATCH V4 00/11] Add T210 support in Tegra soctherm

2016-01-25 Thread Wei Ni
This patchset adds following functions for tegra_soctherm driver: 1. add T210 support. 2. export debugfs to show some registers. 3. add thermtrip funciton. 4. add suspend/resume function. The V3 serial is in: http://www.spinics.net/lists/linux-tegra/msg24911.html The V2 serial is in: http://www.sp

[PATCH V4 01/11] thermal: tegra: move tegra thermal files into tegra directory

2016-01-25 Thread Wei Ni
Move Tegra soctherm driver to tegra directory, it's easy to maintain and add more new function support for Tegra platforms. This will also help to split soctherm driver into common parts and chip specific data related parts. Signed-off-by: Wei Ni --- drivers/thermal/Kconfig

[PATCH V4 03/11] thermal: tegra: get rid of PDIV/HOTSPOT hack

2016-01-25 Thread Wei Ni
Get rid of T124-specific PDIV/HOTSPOT hack. tegra-soctherm.c contained a hack to set the SENSOR_PDIV and SENSOR_HOTSPOT_OFFSET registers - it just did two writes of T124-specific opaque values. Convert these into a form that can be substituted on a per-chip basis, and into structure fields that ha

[PATCH V4 02/11] thermal: tegra: combine sensor group-related data

2016-01-25 Thread Wei Ni
Combine sensor group-related data structures into struct tegra_tsensor_group. This provides a single location for sensor group data storage. More sensor group data will be added in subsequent patches. Signed-off-by: Wei Ni --- drivers/thermal/tegra/tegra-soctherm.c | 147 +++

[PATCH] mm: Fix two typos in comments for to_vmem_altmap()

2016-01-25 Thread Andreas Ziegler
Commit 4b94ffdc4163 ("x86, mm: introduce vmem_altmap to augment vmemmap_populate()"), introduced the to_vmem_altmap() function. The comments in this function contain two typos (one misspelling of the Kconfig option CONFIG_SPARSEMEM_VMEMMAP, and one missing letter 'n'), let's fix them up. Signed-o

[PATCH V4 04/11] thermal: tegra: split tegra_soctherm driver

2016-01-25 Thread Wei Ni
Split most of the Tegra124 data and code into a Tegra124-specific file. Split most of the fuse-related code into a fuse-related source file. This is in preparation for adding a Tegra210-specific driver in a future patch. Beyond the maintainability improvements, this is intended to separate chip-sp

Re: linux-next: build failure after merge of the akpm tree

2016-01-25 Thread Takashi Iwai
On Mon, 25 Jan 2016 11:41:12 +0100, Vinod Koul wrote: > > On Mon, Jan 25, 2016 at 10:29:54AM +0100, Takashi Iwai wrote: > > On Fri, 22 Jan 2016 03:40:45 +0100, > > Stephen Rothwell wrote: > > > > > > Hi all, > > > > > > On Fri, 22 Jan 2016 11:24:42 +1100 Stephen Rothwell > > > wrote: > > > > >

[PATCH V4 06/11] thermal: tegra: add a debugfs to show registers

2016-01-25 Thread Wei Ni
Add a debugfs interface to show register contents for debug. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 143 ++- drivers/thermal/tegra/soctherm.h | 2 + 2 files changed, 142 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/tegra/

[PATCH V4 05/11] thermal: tegra: add T210-specific SOC_THERM driver

2016-01-25 Thread Wei Ni
Add Tegra210 specific SOC_THERM driver. Signed-off-by: Wei Ni --- drivers/thermal/tegra/Makefile| 1 + drivers/thermal/tegra/soctherm-fuse.c | 11 ++ drivers/thermal/tegra/soctherm.c | 6 ++ drivers/thermal/tegra/soctherm.h | 4 + drivers/thermal/tegra/te

Re: linux-next: build failure after merge of the akpm tree

2016-01-25 Thread Sudip Mukherjee
On Mon, Jan 25, 2016 at 10:29:54AM +0100, Takashi Iwai wrote: > On Fri, 22 Jan 2016 03:40:45 +0100, > Stephen Rothwell wrote: > > > > Hi all, > > > > On Fri, 22 Jan 2016 11:24:42 +1100 Stephen Rothwell > > wrote: > > > > > > On Thu, 21 Jan 2016 07:38:59 +1100 Stephen Rothwell > > > wrote: > >

[PATCH V4 08/11] thermal: tegra: add thermtrip function

2016-01-25 Thread Wei Ni
Add support for hardware critical thermal limits to the SOC_THERM driver. This is implemented outside the Linux thermal framework. If these limits are breached, the chip will reset, and if appropriately configured, will turn off the PMIC. This support is critical for safe usage of the chip. Sign

[PATCH] brcmfmac: sdio: Increase the default timeouts a bit

2016-01-25 Thread Sjoerd Simons
On a Radxa Rock2 board with a Ampak AP6335 (Broadcom 4339 core) it seems the card responds very quickly most of the time, unfortunately during initialisation it sometimes seems to take just a bit over 2 seconds to respond. This results intialization failing with message like: brcmf_c_preinit_dcm

Re: sound: deadlock between snd_rawmidi_kernel_open/snd_seq_port_connect

2016-01-25 Thread Takashi Iwai
On Sun, 24 Jan 2016 10:44:34 +0100, Dmitry Vyukov wrote: > > Hello, > > While running syzkaller fuzzer I've got the following lockdep report: > > == > [ INFO: possible circular locking dependency detected ] > 4.4.0+ #276 Not tainted > -

[PATCH V4 11/11] ARM: tegra: set thermtrip for Tegra124

2016-01-25 Thread Wei Ni
Set cpu and gpu's thermtrip temperatures for Tegra124. Signed-off-by: Wei Ni --- arch/arm/boot/dts/tegra124.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi index 68669f791c8b..48de23e41ca4 100644 --- a/arch/arm/b

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