[PATCH 36/48] perf tools: Squash overwrite setting into channel

2016-02-22 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 00/48] perf tools: Bugfix, BPF improvements and overwrite ring buffer support

2016-02-22 Thread Wang Nan
Hi Arnaldo, I change all 'maps:' to 'map:' in examples in commit messages and rebase this patch set onto your newest perf/core. The following changes since commit 9dd130f324b9ba2c7cf9292d5addb1aef100e751: perf tools: Remove duplicate typedef config_term_func_t definition (2016-02-19 19:51:1

[PATCH 09/48] perf tools: Pass tracepoint options to BPF script

2016-02-22 Thread Wang Nan
Users can pass options to tracepoints defined in the BPF script. For example: # perf record -e ./test.c/no-inherit/ bash # dd if=/dev/zero of=/dev/null count=1 # exit [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.022 MB perf.data (139 samples) ] (no

Re: [PATCH v2] tty: serial: 8250: add MOXA Smartio MUE boards support

2016-02-22 Thread Andy Shevchenko
On Sat, 2016-02-20 at 12:00 +0100, Mathieu OTHACEHE wrote: > Add support for : > > - CP-102E: 2 ports RS232 PCIE card > - CP-102EL: 2 ports RS232 PCIE card > - CP-132EL: 2 ports RS422/485 PCIE card > - CP-114EL: 4 ports RS232/422/485 PCIE card > - CP-104EL-A: 4 ports RS232 PCIE card > - CP-168EL-A

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

2016-02-22 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 10/48] perf tools: Introduce bpf-output event

2016-02-22 Thread Wang Nan
Commit a43eec304259a6c637f4014a6d4767159b6a3aa3 (bpf: introduce bpf_perf_event_output() helper) add a helper to enable BPF program output data to perf ring buffer through a new type of perf event PERF_COUNT_SW_BPF_OUTPUT. This patch enable perf to create perf event of that type. Now perf user can u

[PATCH 30/48] perf record: Generate tracking events for process forked by perf

2016-02-22 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 13/48] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-02-22 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 08/48] perf tools: Enable indices setting syntax for BPF map

2016-02-22 Thread Wang Nan
This patch introduces a new syntax to perf event parser: # perf record -e './test_bpf_map_3.c/map: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 26/48] perf record: Split output into multiple files via '--switch-output'

2016-02-22 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

[PATCH 23/48] perf record: Turns auxtrace_snapshot_enable into 3 states

2016-02-22 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 45/48] perf record: Rename variable to make code clear

2016-02-22 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

Re: [PATCH v2 3/3] vfs: Use per-cpu list for superblock's inode list

2016-02-22 Thread Peter Zijlstra
On Mon, Feb 22, 2016 at 08:34:19AM +1100, Dave Chinner wrote: > On Fri, Feb 19, 2016 at 04:10:45PM -0500, Waiman Long wrote: > > +/* > > + * Superblock's inode list iterator function and arguments macros > > + */ > > +#define SB_INODES_ITER_FUNC(name, lock, struct_fields) > > \

[PATCH 33/48] perf tools: Add evlist channel helpers

2016-02-22 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 41/48] perf tools: Set write_backward attribut bit for overwrite events

2016-02-22 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 21/48] perf record: Extract synthesize code to record__synthesize()

2016-02-22 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 14/48] perf core: Set event's default overflow_handler

2016-02-22 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 32/48] perf record: Prevent reading invalid data in record__mmap_read

2016-02-22 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 44/48] perf record: Toggle overwrite ring buffer for reading

2016-02-22 Thread Wang Nan
Reading from a overwrite ring buffer is unrelible. perf_evlist__channel_toggle_paused() 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 O

[PATCH 34/48] perf tools: Automatically add new channel according to evlist

2016-02-22 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

[PATCH 22/48] perf tools: Add perf_data_file__switch() helper

2016-02-22 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

Re: [PATCH] misc: ad525x_dpot: Fix the enabling of the "otpXen" attributes

2016-02-22 Thread Michael Hennerich
On 11/19/2015 09:22 AM, Michael Hennerich wrote: On 11/18/2015 05:16 PM, Dan Bogdan Nechita wrote: Currently writing the attributes with "echo" will result in comparing: "enabled\n" with "enabled\0" and attribute is always set to false. Use the sysfs_streq() instead because it treats both NUL a

[PATCH 43/48] perf tools: Add API to pause a channel

2016-02-22 Thread Wang Nan
perf_evlist__channel_toggle_paused() is introduced to pause/resume a channel in an evlist. Utilize PERF_EVENT_IOC_PAUSE_OUTPUT ioctl. Following commits use perf_evlist__channel_toggle_paused() to ensure overwrite ring buffer is turned off before reading. Signed-off-by: Wang Nan Signed-off-by: He

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

2016-02-22 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 18/48] perf tools: Only validate is_pos for tracking evsels

2016-02-22 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: linux-next: manual merge of the kvm-arm tree with the arm64 tree

2016-02-22 Thread Catalin Marinas
Hi Stephen, On Mon, Feb 22, 2016 at 01:28:29PM +1100, Stephen Rothwell wrote: > Today's linux-next merge of the kvm-arm tree got a conflict in: > > arch/arm64/include/asm/cpufeature.h > arch/arm64/kernel/cpufeature.c > > between commit: > > d5370f754875 ("arm64: prefetch: add alternative

[PATCH 04/48] perf tools: Enable BPF object configure syntax

2016-02-22 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/map:channel.value=10/ ... It would takes effe

[PATCH 17/48] perf core: Reduce perf event output overhead by new overflow handler

2016-02-22 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 v2 2/2] powerpc/86xx: Switch to kconfig fragments approach

2016-02-22 Thread Alessio Igor Bogani
Signed-off-by: Alessio Igor Bogani --- arch/powerpc/Makefile| 10 + arch/powerpc/configs/86xx-hw.config | 106 ++ arch/powerpc/configs/86xx-smp.config | 2 + arch/powerpc/configs/86xx/gef_ppc9a_defconfig| 234

Re: [PATCH v1] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-22 Thread Sergei Ianovich
On Mon, 2016-02-22 at 12:10 +0900, Mark Brown wrote: > On Mon, Feb 22, 2016 at 04:47:06AM +0300, Sergei Ianovich wrote: > > ICP DAS LP-8841 contains a DS-1302 RTC. This driver provides an SPI > > master which makes the RTC usable. The driver is not supposed to > > work > > with anything else. > >

Re: linux-next: manual merge of the kvm-arm tree with the arm64 tree

2016-02-22 Thread Catalin Marinas
On Mon, Feb 22, 2016 at 01:33:22PM +1100, Stephen Rothwell wrote: > Today's linux-next merge of the kvm-arm tree got a conflict in: > > arch/arm64/kvm/hyp.S > > between commit: > > a0bf9776cd0b ("arm64: kvm: deal with kernel symbols outside of linear > mapping") > > from the arm64 tree and

Re: [PATCH 0/1] Implement character sets for sscanf()

2016-02-22 Thread Andy Shevchenko
On Fri, 2016-02-19 at 20:20 -0500, Jessica Yu wrote: > Hi, > > This patch adds support for the '%[' conversion specifier for > sscanf(). > Since functions that calculate substring lengths based on accepted or > rejected characters already exist in the kernel (namely strspn() and > strcspn()), it's

[PATCH v2 1/2] powerpc/86xx: Update defconfigs

2016-02-22 Thread Alessio Igor Bogani
This patch show how defconfigs appear if the kconfig fragment approach is used. Signed-off-by: Alessio Igor Bogani --- v1 -> v2 Split changes in two patches as suggested by Scott Wood arch/powerpc/configs/86xx/gef_ppc9a_defconfig| 208 +++--- arch/powerpc/configs/86xx/gef_sb

[PATCH] drivers/misc/ad525x_dpot: AD5274 fix RDAC read back errors

2016-02-22 Thread michael.hennerich
From: Michael Hennerich Fix RDAC read back errors caused by a typo. Value must shift by 2. Fixes: a4bd394956f2 ("drivers/misc/ad525x_dpot.c: new features") Signed-off-by: Michael Hennerich --- drivers/misc/ad525x_dpot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

[PATCH 02/48] perf tools: Adjust symbol for shared objects

2016-02-22 Thread Wang Nan
He Kuang reported a problem that perf fails to get correct symbol on Android platform in [1]. The problem can be reproduced on normal x86_64 platform. I will describe the reproducing steps in detail at the end of commit message. The reason of this problem is the missing of symbol adjustment for no

[PATCH 11/48] perf data: Support converting data from bpf_perf_event_output()

2016-02-22 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 07/48] perf tools: Support setting different slots in a BPF map separately

2016-02-22 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

[PATCH 39/48] perf tools: Detect avalibility of write_backward

2016-02-22 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

Build regressions/improvements in v4.5-rc5

2016-02-22 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.5-rc5[1] compared to v4.4[2]. Summarized: - build errors: +22/-23 - build warnings: +169/-169 JFYI, when comparing v4.5-rc5[1] to v4.5-rc4[3], the summaries are: - build errors: +22/-17 - build warnings: +93/-115 Not

Re: [PATCH v3 3/5] dell-wmi: enable receiving WMI events on Dell Vostro V131

2016-02-22 Thread Michał Kępień
> > > Pali's point about documenting the hardcoded values and eliminating the > > > code > > > duplication with a function (inline) is a good one. > > > > I plan to only put a comment next to 0x51534554 as 0x1 is apparently > > just something pulled out of a hat (as the link provided in the c

[PATCH 42/48] perf tools: Record fd into perf_mmap

2016-02-22 Thread Wang Nan
Add a fd field into perf_mmap so perf can backtrack the fd from mmap. This feature will be used to toggle overwrite ring buffers. 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.co

Re: [PATCH v10 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-02-22 Thread Juri Lelli
On 19/02/16 23:14, Rafael J. Wysocki wrote: > On Friday, February 19, 2016 08:09:17 AM Juri Lelli wrote: > > Hi Rafael, > > > > On 18/02/16 21:22, Rafael J. Wysocki wrote: > > > On Mon, Feb 15, 2016 at 10:47 PM, Rafael J. Wysocki > > > wrote: > > > > From: Rafael J. Wysocki > > > > > > > > [..

Re: Build regressions/improvements in v4.5-rc5

2016-02-22 Thread Geert Uytterhoeven
On Mon, Feb 22, 2016 at 10:30 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.5-rc5[1] to v4.5-rc4[3], the summaries are: > - build errors: +22/-17 + /home/kisskb/slave/src/include/linux/workqueue.h: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=st

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

2016-02-22 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 06/48] perf tools: Enable passing event to BPF object

2016-02-22 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 12/48] perf data: Explicitly set byte order for integer types

2016-02-22 Thread Wang Nan
After babeltrace commit 5cec03e402aa ("ir: copy variants and sequences when setting a field path"), 'perf data convert' gets incorrect result if there's bpf output data. For example: # perf data convert --to-ctf ./out.ctf # babeltrace ./out.ctf [10:44:31.186045346] (+?.?) evt: { cpu_id

Re: [PATCH] intel-pstate: Update frequencies of policy->cpus only from ->set_policy()

2016-02-22 Thread Joonas Lahtinen
Hi, This fixes the issue for my machine, we'll try in our CI system, too. CC'd Daniel for that. By R-b and T-b below. On ma, 2016-02-22 at 10:27 +0530, Viresh Kumar wrote: > The intel-pstate driver is using intel_pstate_hwp_set() from two > separate paths, i.e. ->set_policy() callback and sysfs

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

2016-02-22 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 46/48] perf record: Read from backward ring buffer

2016-02-22 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 29/48] perf record: Re-synthesize tracking events after output switching

2016-02-22 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 38/48] perf record: Don't poll on overwrite channel

2016-02-22 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 05/48] perf record: Apply config to BPF objects before recording

2016-02-22 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

[PATCH 16/48] perf core: Add backward attribute to perf event

2016-02-22 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

Re: [PATCH 1/5] ARM: davinci: devices-da8xx: Add dma_slave_map to edma

2016-02-22 Thread Sekhar Nori
On Tuesday 02 February 2016 06:13 PM, Peter Ujfalusi wrote: > +static const struct dma_slave_map da850_edma1_map[] = { > + { "da830-mmc.1", "rx", EDMA_FILTER_PARAM(0, 28) }, > + { "da830-mmc.1", "tx", EDMA_FILTER_PARAM(0, 29) }, This should be EDMA_FILTER_PARAM(1, 29) (and similar for rx)

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

2016-02-22 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 01/48] perf tools: Record text offset in dso to calculate objdump address

2016-02-22 Thread Wang Nan
In this patch, the offset of '.text' section is stored into dso and used here to re-calculate address to objdump. In most of the cases, executable code is in '.text' section, so the adjustment made to a symbol in dso__load_sym (using sym.st_value -= shdr.sh_addr - shdr.sh_offset) should equal to '

[PATCH 20/48] perf tools: Make ordered_events reusable

2016-02-22 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 03/48] perf bpf: Add API to set values to map entries in a bpf object

2016-02-22 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 assignments like: map:my_map.value=1234 (map.my_map.value looks pretty. However, there's a small but hard to fix problem relat

[PATCH v2] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-22 Thread Sergei Ianovich
ICP DAS LP-8841 contains a DS-1302 RTC. This driver provides an SPI master which makes the RTC usable. The driver is not supposed to work with anything else. The driver uses the standard MicroWire half-duplex transfer timing. Master output is set on low clock and sensed by the RTC on the rising ed

Re: [PATCH 6/5] oom, oom_reaper: disable oom_reaper for oom_kill_allocating_task

2016-02-22 Thread Michal Hocko
On Sat 20-02-16 11:32:07, Tetsuo Handa wrote: > Michal Hocko wrote: > > On Wed 17-02-16 10:48:55, Michal Hocko wrote: > > > Hi Andrew, > > > although this can be folded into patch 5 > > > (mm-oom_reaper-implement-oom-victims-queuing.patch) I think it would be > > > better to have it separate and re

Re: [PATCH v10 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-02-22 Thread Juri Lelli
Hi Rafael, On 19/02/16 23:26, Rafael J. Wysocki wrote: > On Friday, February 19, 2016 05:26:04 PM Juri Lelli wrote: > > Hi Srinivas, > > > > On 19/02/16 08:42, Srinivas Pandruvada wrote: > > > On Fri, 2016-02-19 at 08:09 +, Juri Lelli wrote: > > > Hi Juri, > > > > > > > > > Hi Rafael, > > >

Re: [RFC PATCH 0/9] iio: Fix ABBA deadlock in inv-mpu6050

2016-02-22 Thread Daniel Baluta
On Mon, Feb 22, 2016 at 1:17 AM, Wolfram Sang wrote: > On Thu, Feb 18, 2016 at 05:53:05PM +0200, Daniel Baluta wrote: >> Sending this as an RFC because I don't know if style fixes are appropriate >> for this driver and also not sure if deadlock fix is the best solution. >> >> I2C people should onl

Re: [v6, 1/4] atomics: Allow architectures to define their own __atomic_op_* helpers

2016-02-22 Thread Michael Ellerman
On Tue, 2015-15-12 at 14:24:14 UTC, Boqun Feng wrote: > Some architectures may have their special barriers for acquire, release > and fence semantics, so that general memory barriers(smp_mb__*_atomic()) > in the default __atomic_op_*() may be too strong, so allow architectures > to define their own

Re: [linux-kernel] dead loop for rtnl_trylock

2016-02-22 Thread Eric W. Biederman
Copied netdev as that is the more appropriate mailling list for questions like this. Xianpeng Zhao writes: > Hi Group, > > I have find a problem in my system, I found there have a chance that > cause the system enter dead loop when try to get the rtnl lock in the sysctl > function in

Re: [PATCH] arm64: remove redundant preempt.h

2016-02-22 Thread Will Deacon
On Fri, Feb 19, 2016 at 04:07:02PM -0800, Shi, Yang wrote: > Any comment on this one? I don't really see the point in it, to be honest. Relying on implicit #includes is usually a bad idea, there are other files in the kernel including both of these headers and there's not actually a problem to fix

Re: tty: memory leak in tty_register_driver

2016-02-22 Thread Dmitry Vyukov
On Thu, Feb 18, 2016 at 11:45 PM, Paul Bolle wrote: > Dmitry, > > On ma, 2016-02-15 at 11:42 +0100, Dmitry Vyukov wrote: >> When I am running the following program in a parallel loop, kmemleak >> starts reporting memory leaks of objects allocated in >> tty_register_driver during boot. > > Because

Re: [PATCH v3 3/3] pci: dra7xx: use pdata callbacks to perform reset

2016-02-22 Thread Kishon Vijay Abraham I
Hi Paul, On Monday 22 February 2016 12:01 PM, Paul Walmsley wrote: > Kishon, > > On Mon, 22 Feb 2016, Kishon Vijay Abraham I wrote: > >> Sekhar, >> >> On Thursday 18 February 2016 07:51 PM, Sekhar Nori wrote: >>> On Friday 12 February 2016 10:50 PM, Suman Anna wrote: Sekhar, Will you b

Re: [PATCH 3/5] ARM: davinci: dm365: Add dma_slave_map to edma

2016-02-22 Thread Sekhar Nori
On Tuesday 02 February 2016 06:13 PM, Peter Ujfalusi wrote: > Provide the dma_slave_map to edma which will allow us to move the drivers > to the new, simpler dmaengine API and we can remove the DMA resources also > for the devices. > > Signed-off-by: Peter Ujfalusi > FIX: dm365 dropped this "no

Re: [PATCH] Documentation/memory-barriers: fix wrong comment in example

2016-02-22 Thread David Howells
SeongJae Park wrote: > a = 0; > /* Code that does not store to variable a. */ > + does_not_change_a(); > a = 0; Since it's not actually code that's meant to be executed, you could make it: a = 0; ... code that does not store to variable a ... a = 0; David

Re: [PATCH 5/6] hisi_sas: add hisi_sas_slave_configure()

2016-02-22 Thread John Garry
I would like to make another point about why I am making this change in case it is not clear. The queue full events are form TRANS_TX_CREDIT_TIMEOUT_ERR and TRANS_TX_CLOSE_NORMAL_ERR errors in the slot: I want the slot retried when this occurs, so I set status as SAS_QUEUE_FULL just so we will r

Re: [PATCH v9 2/6] clk: hisilicon: add CRG driver for hi3519 soc

2016-02-22 Thread kbuild test robot
Hi Jiancheng, [auto build test WARNING on clk/clk-next] [also build test WARNING on v4.5-rc5 next-20160222] [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/Jiancheng-Xue/ARM-hisi-Add-initial

Re: [PATCH] usb: chipidea: Configure DMA properties and ops from DT

2016-02-22 Thread Srinivas Kandagatla
On 22/02/16 05:32, Bjorn Andersson wrote: On certain platforms (e.g. ARM64) the dma_ops needs to be explicitly set to be able to do DMA allocations, so use the of_dma_configure() helper to populate the dma properties and assign an appropriate dma_ops. Signed-off-by: Bjorn Andersson --- driv

net: memory leak in mkiss_open

2016-02-22 Thread Dmitry Vyukov
Hello, The following program causes memory leak of 6 objects allocated in mkiss_open: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include int main(int argc, char **argv) { int fd, val; fd = open("/dev/ptmx", O_RDWR);

Re: [PATCH 3/5] ARM: davinci: dm365: Add dma_slave_map to edma

2016-02-22 Thread Sekhar Nori
On Monday 22 February 2016 03:28 PM, Sekhar Nori wrote: > On Tuesday 02 February 2016 06:13 PM, Peter Ujfalusi wrote: >> Provide the dma_slave_map to edma which will allow us to move the drivers >> to the new, simpler dmaengine API and we can remove the DMA resources also >> for the devices. >> >>

[PATCH] trace/irq: fix WARNING in check_flags while CONFIG_TRACE_IRQFLAGS opened

2016-02-22 Thread Wang Yufen
if CONFIG_TRACE_IRQFLAGS opened, we got that warning: [ 214.078880] [ cut here ] [ 214.083521] WARNING: CPU: 4 PID: 1 at kernel/locking/lockdep.c:3557 check_flags.part.40+0x1c0/0x1d0() [ 214.092778] DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled) [ 214.

net: memory leak in lapb_register

2016-02-22 Thread Dmitry Vyukov
Hello, The following program causes a memory leak of an object allocated in lapb_register: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include int main(int argc, char **argv) { int fd, val; fd = open("/dev/ptmx", O_R

Re: Computer fails to resume from suspend unless I rmmod jme before initiating the suspend

2016-02-22 Thread Pavel Machek
Hi! > Every time I initiate a suspend (systemctl suspend) the machine hangs > at resume unless I unload the jme driver. It seems to have some kind of suspend/resume support. ... and it is rather complex. Maybe jme_start_irq(jme) should be moved to the end of jme_resume function? > > S

Re: [PATCH 1/1] sscanf: implement basic character sets

2016-02-22 Thread Andy Shevchenko
On Fri, 2016-02-19 at 20:22 -0500, Jessica Yu wrote: > Implement basic character sets for the '%[]' conversion specifier. > > The '%[]' conversion specifier matches a nonempty sequence of > characters > from the specified set of accepted (or with '^', rejected) characters > between the brackets. T

Re: [PATCH v3 00/11] KVM: x86: track guest page access

2016-02-22 Thread Xiao Guangrong
On 02/19/2016 08:00 PM, Paolo Bonzini wrote: On 14/02/2016 12:31, Xiao Guangrong wrote: Changelong in v3: - refine the code of mmu_need_write_protect() based on Huang Kai's suggestion - rebase the patchset against current code Changelog in v2: - fix a issue that the track memory of memslot

[PATCH 1/3] Btrfs: disk-io: fixed a brace coding style issue

2016-02-22 Thread Philippe Loctaux
Fixed a coding style issue. Signed-off-by: Philippe Loctaux --- fs/btrfs/disk-io.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 4545e2e..84cbf16 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1908,11

RE: [PATCH] intel-pstate: Update frequencies of policy->cpus only from ->set_policy()

2016-02-22 Thread Chen, Yu C
Hi Kumar, > -Original Message- > From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- > ow...@vger.kernel.org] On Behalf Of Viresh Kumar > Sent: Monday, February 22, 2016 12:58 PM > To: Rafael Wysocki; Srinivas Pandruvada; Len Brown; Viresh Kumar > Cc: linaro-ker...@lists.linaro.org; linu

Re: [PATCH v2 2/8] arm64: dts: qcom: apq8016-sbc: add usb support

2016-02-22 Thread Srinivas Kandagatla
Thanks for the review, On 22/02/16 05:51, Bjorn Andersson wrote: On Wed 10 Feb 03:36 PST 2016, Srinivas Kandagatla wrote: Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 15 ++ arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 35 +

net: memory leak in N_6PACK driver

2016-02-22 Thread Dmitry Vyukov
Hello, The following program, if run in a parallel loop, leads to constant memory growth. // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include int main(int argc, char **argv) { int fd, val; fd = open("/dev/ptmx", O_RD

Re: [PATCH 1/2] reset: hisilicon: Add hi6220 media part of reset

2016-02-22 Thread Philipp Zabel
Hi Chen, Am Montag, den 22.02.2016, 10:45 +0800 schrieb Chen Feng: > Signed-off-by: Chen Feng > Signed-off-by: Xinliang Liu > --- > drivers/reset/hisilicon/hi6220_reset.c | 122 > - > 1 file changed, 90 insertions(+), 32 deletions(-) > > diff --git a/drivers/re

Re: [BUG] [REGRESSION] [BISECTED] -rc1 breaks audio over HDMI for i915

2016-02-22 Thread Martin Kepplinger
Am 2016-02-12 um 17:16 schrieb Takashi Iwai: > On Fri, 12 Feb 2016 16:54:44 +0100, > Martin Kepplinger wrote: >> >> Am 2016-02-12 um 14:49 schrieb Takashi Iwai: >>> On Fri, 12 Feb 2016 14:09:36 +0100, >>> Martin Kepplinger wrote: Am 2016-02-11 um 10:06 schrieb Takashi Iwai: > On Wed,

[PATCH] Btrfs: dir-item: added line after variable declaration

2016-02-22 Thread Philippe Loctaux
Added line after variable declaration, fixing checkpatch warning. Signed-off-by: Philippe Loctaux --- fs/btrfs/dir-item.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index 1752625..70c39a3 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.

Re: [Xen-devel] [PATCH 8/9] x86/rtc: replace paravirt_enabled() check with subarch check

2016-02-22 Thread Borislav Petkov
On Mon, Feb 22, 2016 at 07:07:56AM +0100, Luis R. Rodriguez wrote: > diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h > index 1ae89a2721d6..fe0d579b63e3 100644 > --- a/arch/x86/include/asm/x86_init.h > +++ b/arch/x86/include/asm/x86_init.h > @@ -84,11 +84,14 @@ struct

[PATCH v2] f2fs: fix to convert inline directory correctly

2016-02-22 Thread Chao Yu
With below serials, we will lose parts of dirents: 1) mount f2fs with inline_dentry option 2) echo 1 > /sys/fs/f2fs/sdX/dir_level 3) mkdir dir 4) touch 180 files named [1-180] in dir 5) touch 181 in dir 6) echo 3 > /proc/sys/vm/drop_caches 7) ll dir ls: cannot access 2: No such file or directory

Re: [PATCH] rtlwifi: pass struct rtl_stats by reference as it is more efficient

2016-02-22 Thread Colin Ian King
On 22/02/16 06:51, Alexander Stein wrote: > On Saturday 20 February 2016 22:10:27, Colin King wrote: >> From: Colin Ian King >> >> passing rtl_stats by value is inefficient; the structure is over 300 >> bytes in size and generally just one field (packet_report_type) >> is being accessed, so the pa

[PATCH 1/5] f2fs: fix the wrong stat count of calling gc

2016-02-22 Thread Chao Yu
With a partition which was formated as multi segments in one section, we stated incorrectly for count of gc operation. e.g., for a partition with segs_per_sec = 4 cat /sys/kernel/debug/f2fs/status GC calls: 208 (BG: 7) - data segments : 104 (52) - node segments : 104 (24) GC called count sh

Re: [PATCH v5 00/26] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2016-02-22 Thread Roger Quadros
On 20/02/16 00:04, Tony Lindgren wrote: > * Roger Quadros [160219 13:27]: >> Hi, >> >> @Tony >> Patches 15 and 24 are new and will need your review. >> I've modified patch 22 to include the new am335x boards introduced since >> v4.4. >> >> Patches are based on top of omap-for-v4.6/dt so that the

[PATCH 2/5] f2fs: show more info about superblock recovery

2016-02-22 Thread Chao Yu
This patch changes to show more info in message log about the recovery of the corrupted superblock during ->mount, e.g. the index of corrupted superblock and the result of recovery. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [BUG] [REGRESSION] [BISECTED] -rc1 breaks audio over HDMI for i915

2016-02-22 Thread Takashi Iwai
On Mon, 22 Feb 2016 11:24:05 +0100, Martin Kepplinger wrote: > > Am 2016-02-12 um 17:16 schrieb Takashi Iwai: > > On Fri, 12 Feb 2016 16:54:44 +0100, > > Martin Kepplinger wrote: > >> > >> Am 2016-02-12 um 14:49 schrieb Takashi Iwai: > >>> On Fri, 12 Feb 2016 14:09:36 +0100, > >>> Martin Kepplinge

[PATCH 3/5] f2fs: try to flush inode after merging inline data

2016-02-22 Thread Chao Yu
When flushing node pages, if current node page is an inline inode page, we will try to merge inline data from data page into inline inode page, then skip flushing current node page, it will decrease the number of nodes to be flushed in batch in this round, which may lead to worse performance. This

[PATCH 4/5] f2fs: trace old block address for CoWed page

2016-02-22 Thread Chao Yu
This patch enables to trace old block address of CoWed page for better debugging. f2fs_submit_page_mbio: dev = (1,0), ino = 1, page_index = 0x1d4f0, oldaddr = 0xfe8ab, newaddr = 0xfee90 rw = WRITE_SYNC, type = NODE f2fs_submit_page_mbio: dev = (1,0), ino = 1, page_index = 0x1d4f8, oldaddr = 0xfe

[PATCH 5/5] f2fs crypto: fix incorrect positioning for GCing encrypted data page

2016-02-22 Thread Chao Yu
For now, flow of GCing an encrypted data page will be: 1) try to grab meta page in meta inode's mapping with index of old block address of that data page 2) load data of ciphertext into meta page 3) allocate new block address 4) write the meta page into new block address 5) update block address poi

Re: [PATCH v2] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-22 Thread Mark Brown
On Mon, Feb 22, 2016 at 12:40:54PM +0300, Sergei Ianovich wrote: >* drop empty master->cleanup You still have an empty remove() function. signature.asc Description: PGP signature

Re: [RFC][PATCH v2 3/3] mm/zsmalloc: increase ZS_MAX_PAGES_PER_ZSPAGE

2016-02-22 Thread Sergey Senozhatsky
On (02/22/16 13:41), Minchan Kim wrote: [..] > > oh, sure. > > > > so let's keep dynamic page allocation out of sight for now. > > I'll do more tests with the increase ORDER and if it's OK then > > hopefully we can just merge it, it's quite simple and shouldn't > > interfere with any of the change

Re: [PATCH v10 1/3] cpufreq: Add mechanism for registering utilization update callbacks

2016-02-22 Thread Viresh Kumar
On 19-02-16, 23:26, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > Subject: [PATCH] cpufreq: Rework the scheduler hooks for triggering updates > > Commit fe7034338ba0 (cpufreq: Add mechanism for registering > utilization update callbacks) added cpufreq_update_util() to be > called by the sc

Re: [PATCH V2] phy: ralink-usb: add driver for Mediatek/Ralink

2016-02-22 Thread Kishon Vijay Abraham I
Hi Rob, On Tuesday 05 January 2016 01:03 AM, John Crispin wrote: > Add a driver to setup the USB phy on Mediatek/Ralink SoCs. > The driver is trivial and only sets up power and host mode. > > Signed-off-by: John Crispin > --- > Changes in V2 > * remove refcounting > * drop empty functions > * do

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