Re: [PATCH 6/6] ASoC: sgtl5000: Remove misleading comment

2016-06-14 Thread Fabio Estevam
On Mon, Jun 6, 2016 at 8:14 PM, Clemens Gruber wrote: > All new designs should use external VDDD according to official > documentation. See ER1 in errata sheet: > http://cache.nxp.com/files/analog/doc/errata/SGTL5000ER.pdf > > Signed-off-by: Clemens Gruber Reviewed-by: Fabio Estevam

Re: [PATCH V2] block: correctly fallback for zeroout

2016-06-14 Thread Martin K. Petersen
> "Christoph" == Christoph Hellwig writes: Christoph> We can move the sanity checks out. Or even better get rid of Christoph> the stupid behavior of ignoring the late -EOPNOTSUPP in this Christoph> low level helper and instead leaving it to the caller(s) that Christoph> care. It definitely

Re: [PATCH v2] nfsd: Always lock state exclusively.

2016-06-14 Thread Oleg Drokin
On Jun 14, 2016, at 2:46 PM, J . Bruce Fields wrote: > On Tue, Jun 14, 2016 at 11:56:20AM -0400, Oleg Drokin wrote: >> >> On Jun 14, 2016, at 11:46 AM, J . Bruce Fields wrote: >> >>> On Sun, Jun 12, 2016 at 09:26:27PM -0400, Oleg Drokin wrote: It used to be the case that state had an rwloc

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Andy Lutomirski
On Tue, Jun 14, 2016 at 2:37 PM, Dave Hansen wrote: > On 06/14/2016 01:16 PM, Nadav Amit wrote: >> Dave Hansen wrote: >> >>> On 06/14/2016 09:47 AM, Nadav Amit wrote: Lukasz Anaczkowski wrote: >> From: Andi Kleen >> +void fix_pte_leak(struct mm_struct *mm, unsigned long addr,

Re: Boot failure on emev2/kzm9d (was: Re: [PATCH v2 11/11] mm/slab: lockless decision to grow cache)

2016-06-14 Thread Joonsoo Kim
On Tue, Jun 14, 2016 at 12:45:14PM +0200, Geert Uytterhoeven wrote: > Hi Joonsoo, > > On Tue, Jun 14, 2016 at 10:11 AM, Joonsoo Kim wrote: > > On Tue, Jun 14, 2016 at 09:31:23AM +0200, Geert Uytterhoeven wrote: > >> On Tue, Jun 14, 2016 at 8:24 AM, Joonsoo Kim > >> wrote: > >> > On Mon, Jun 13,

[PATCH RFT] regulator: qcom_smd: Remove list_voltage callback for rpm_smps_ldo_ops_fixed

2016-06-14 Thread Axel Lin
Use regulator_list_voltage_linear_range in rpm_smps_ldo_ops_fixed is wrong because it is used for fixed regulator without any linear range. The rpm_smps_ldo_ops_fixed is used for pm8941_lnldo which has fixed_uV set and n_voltages = 1. In this case, regulator_list_voltage() can return rdev->desc->fi

Re: [PATCH 10/10] mm: balance LRU lists based on relative thrashing

2016-06-14 Thread Minchan Kim
On Mon, Jun 13, 2016 at 11:52:31AM -0400, Johannes Weiner wrote: > On Fri, Jun 10, 2016 at 11:19:35AM +0900, Minchan Kim wrote: > > On Mon, Jun 06, 2016 at 03:48:36PM -0400, Johannes Weiner wrote: > > > @@ -79,6 +79,7 @@ enum pageflags { > > > PG_dirty, > > > PG_lru, > > > PG_active, > > > +

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

2016-06-14 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 v7 4/8] perf record: Toggle overwrite ring buffer for reading

2016-06-14 Thread Wang Nan
overwrite_evt_state is introduced to reflect the state of overwritable ring buffers. It is a state machine with 3 states: RUNNING --(1)--> DATA_PENDING --(2)--> EMPTY ^ ^ | | |___(disallow)___/| ||

[PATCH v7 0/8] perf tools: Support overwritable ring buffer

2016-06-14 Thread Wang Nan
This patch set enables daemonized perf recording by utilizing overwritable backward ring buffer. With this feature one can put perf background, and dump ring buffer records by a SIGUSR2 when he/she find something unusual. For example, following command record system calls, schedule events and sampl

[PATCH v7 7/8] perf tools: Check write_backward during evlist config

2016-06-14 Thread Wang Nan
Before this patch, when using overwritable ring buffer on an old kernel, error message is misleading: # ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a Error: The raw_syscalls:sys_enter event is not supported. This patch output clear error message to tell user his/her kernel is too old: #

[PATCH v7 8/8] perf record: Unmap overwrite evlist when event terminate

2016-06-14 Thread Wang Nan
When see POLLERR or POLLHUP, unmap ring buffer from both the main evlist and overwrite evlist. Signed-off-by: Wang Nan Cc: 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 | 30 ++

[PATCH v7 3/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-14 Thread Wang Nan
Create an auxiliary evlist for overwritable events. Before mmap, build this evlist and set 'overwrite' and 'backward' attribute. Since perf_evlist__mmap_ex() only maps events when evsel->overwrite matches evlist's corresponding attributes, with these two evlists an event goes to either rec->evlist

[PATCH v7 1/8] perf evlist: Introduce aux evlist

2016-06-14 Thread Wang Nan
An auxiliary evlist is created by perf_evlist__new_aux() using an existing evlist as its parent. An auxiliary evlist can have its own 'struct perf_mmap', but can't have any other data. User should use its parent instead when accessing other data. Auxiliary evlists are containers of 'struct perf_mm

Re: [PATCH v2 1/7] mm/compaction: split freepages without holding the zone lock

2016-06-14 Thread Joonsoo Kim
On Tue, Jun 14, 2016 at 03:10:21PM -0400, Sasha Levin wrote: > On 06/14/2016 01:52 AM, Joonsoo Kim wrote: > > On Mon, Jun 13, 2016 at 04:31:15PM -0400, Sasha Levin wrote: > >> > On 05/25/2016 10:37 PM, js1...@gmail.com wrote: > >>> > > From: Joonsoo Kim > >>> > > > >>> > > We don't need to split

[PATCH v7 5/8] perf tools: Enable overwrite settings

2016-06-14 Thread Wang Nan
This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite. # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Add missing config terms a

[PATCH v7 2/8] perf tests: Add testcase for auxiliary evlist

2016-06-14 Thread Wang Nan
Improve test backward-ring-buffer, trace both enter and exit event of prctl() syscall, utilize auxiliary evlist to mmap enter and exit event into separated mmaps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: He Kuan

[PATCH v11 2/3] ARM: dt-bindings: add device tree bindings for Hi3519 sysctrl

2016-06-14 Thread Jiancheng Xue
From: Jiancheng Xue Add device tree bindings for Hi3519 system controller. Signed-off-by: Jiancheng Xue Acked-by: Rob Herring --- .../devicetree/bindings/arm/hisilicon/hi3519-sysctrl.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bind

[PATCH v11 1/3] ARM: hisi: add compatible string for Hi3519 soc

2016-06-14 Thread Jiancheng Xue
From: Jiancheng Xue add compatible string for Hi3519 soc. Signed-off-by: Jiancheng Xue --- arch/arm/mach-hisi/hisilicon.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-hisi/hisilicon.c b/arch/arm/mach-hisi/hisilicon.c index 8cc6215..

[PATCH v11 3/3] ARM: dts: add dts files for Hi3519

2016-06-14 Thread Jiancheng Xue
From: Jiancheng Xue add dts files for Hi3519 Signed-off-by: Jiancheng Xue --- arch/arm/boot/dts/Makefile| 2 + arch/arm/boot/dts/hi3519-demb.dts | 42 + arch/arm/boot/dts/hi3519.dtsi | 187 ++ 3 files changed, 231 insertions(+) create

[PATCH v11 0/3] ARM: hisi: Add initial support for Hi3519 SOC

2016-06-14 Thread Jiancheng Xue
These three patches are abstracted from the patchset titled "[RESEND PATCH v10 0/6] ARM: hisi: Add initial support including clock driver for Hi3519 soc."(https://lkml.org/lkml/2016/3/31/175). The clock driver part was merged in v4.7-rc1. This patch set is mainly used to enable Hi3519 basic soc and

Re: [PATCH V2] block: correctly fallback for zeroout

2016-06-14 Thread Martin K. Petersen
> "Mike" == Mike Snitzer writes: Mike, Mike> so long story short: making this change to remove this so-called Mike> "stupid behaviour" will require code like Mike> drivers/md/dm-thin.c:issue_discard(() to check the return from Mike> __blkdev_issue_discard() and if it is -EOPNOTSUPP then it s

Re: [PATCH v6v3 02/12] mm: migrate: support non-lru movable page migration

2016-06-14 Thread Minchan Kim
Hi, On Mon, Jun 13, 2016 at 03:08:19PM +0530, Anshuman Khandual wrote: > On 05/31/2016 05:31 AM, Minchan Kim wrote: > > @@ -791,6 +921,7 @@ static int __unmap_and_move(struct page *page, struct > > page *newpage, > > int rc = -EAGAIN; > > int page_was_mapped = 0; > > struct anon_vma *

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-14 Thread Mike Snitzer
On Tue, Jun 14 2016 at 10:07pm -0400, Dan Williams wrote: > On Tue, Jun 14, 2016 at 6:46 PM, Mike Snitzer wrote: > > On Tue, Jun 14 2016 at 4:19pm -0400, > > Jeff Moyer wrote: > > > >> Mike Snitzer writes: > >> > >> > On Tue, Jun 14 2016 at 9:50am -0400, > >> > Jeff Moyer wrote: > >> > > >>

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Nadav Amit
Andy Lutomirski wrote: > On Tue, Jun 14, 2016 at 2:37 PM, Dave Hansen > wrote: >> On 06/14/2016 01:16 PM, Nadav Amit wrote: >>> Dave Hansen wrote: >>> On 06/14/2016 09:47 AM, Nadav Amit wrote: > Lukasz Anaczkowski wrote: > >>> From: Andi Kleen >>> +void fix_pte_leak(str

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Andy Lutomirski
On Tue, Jun 14, 2016 at 7:35 PM, Nadav Amit wrote: > Andy Lutomirski wrote: > >> On Tue, Jun 14, 2016 at 2:37 PM, Dave Hansen >> wrote: >>> On 06/14/2016 01:16 PM, Nadav Amit wrote: Dave Hansen wrote: > On 06/14/2016 09:47 AM, Nadav Amit wrote: >> Lukasz Anaczkowski wrote: >>

Re: [PATCH v4 0/8] Replay Protected Memory Block (RPMB) subsystem

2016-06-14 Thread Arve Hjønnevåg
On Tue, Jun 14, 2016 at 2:05 PM, Winkler, Tomas wrote: wrote: > Few storage technology such is EMMC, UFS, and NVMe support RPMB >hardware partition with common protocol and frame layout. > The RPMB partition cannot be accessed via standard block layer, but >by a set of spe

Re: [PATCH V2] block: correctly fallback for zeroout

2016-06-14 Thread Mike Snitzer
On Tue, Jun 14 2016 at 10:30pm -0400, Martin K. Petersen wrote: > > "Mike" == Mike Snitzer writes: > > Mike, > > Mike> so long story short: making this change to remove this so-called > Mike> "stupid behaviour" will require code like > Mike> drivers/md/dm-thin.c:issue_discard(() to check t

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Nadav Amit
Andy Lutomirski wrote: > On Tue, Jun 14, 2016 at 7:35 PM, Nadav Amit wrote: >> Andy Lutomirski wrote: >> >>> On Tue, Jun 14, 2016 at 2:37 PM, Dave Hansen >>> wrote: On 06/14/2016 01:16 PM, Nadav Amit wrote: > Dave Hansen wrote: > >> On 06/14/2016 09:47 AM, Nadav Amit wrote:

Re: [PATCH] USB: core: fix missing include

2016-06-14 Thread Peter Chen
On Tue, Jun 14, 2016 at 01:08:08PM +0200, Arnd Bergmann wrote: > On Wednesday, June 8, 2016 3:04:27 AM CEST kbuild test robot wrote: > > >> drivers/usb/core/of.c:32:21: error: redefinition of > > >> 'usb_of_get_child_node' > > struct device_node *usb_of_get_child_node(struct device_node *paren

Re: [PATCH 2/3] staging: lustre: lnet: Allocate MEs and small MDs in own kmem_caches

2016-06-14 Thread James Simmons
> > This may also possibly help to save cycles due to high usage and > > contention when using a generic kmem_cache (when they stay separate > > from others, thanks for the precision!). > > Have you measured this? > > This isn't applicable for 4.7-rc at this time, _unless_ it fixes a bug, > whic

[PATCH v4,4/5] usb: Add MediaTek USB3 DRD Driver

2016-06-14 Thread Chunfeng Yun
This patch adds support for the MediaTek USB3 controller integrated into MT8173. It can be configured as Dual-Role Device (DRD), Peripheral Only and Host Only (xHCI) modes. Signed-off-by: Chunfeng Yun --- drivers/usb/Kconfig|2 + drivers/usb/Makefile |1 + d

[PATCH v4,3/5] usb: xhci-mtk: make IPPC register optional

2016-06-14 Thread Chunfeng Yun
Make IPPC register optional to support host side of dual-role mode, due to it is moved into common glue layer for simplification. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/dr

[PATCH v4,5/5] arm64: dts: mediatek: add USB3 DRD driver

2016-06-14 Thread Chunfeng Yun
USB3 DRD driver is added for MT8173-EVB, and xHCI driver becomes its subnode Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 46 +-- arch/arm64/boot/dts/mediatek/mt8173.dtsi| 28 2 files changed, 65 insertions(+), 9 d

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Andy Lutomirski
On Tue, Jun 14, 2016 at 7:44 PM, Nadav Amit wrote: > Andy Lutomirski wrote: > >> On Tue, Jun 14, 2016 at 7:35 PM, Nadav Amit wrote: >>> Andy Lutomirski wrote: >>> On Tue, Jun 14, 2016 at 2:37 PM, Dave Hansen wrote: > On 06/14/2016 01:16 PM, Nadav Amit wrote: >> Dave Hansen w

Add MediaTek USB3 DRD Driver

2016-06-14 Thread Chunfeng Yun
>From 48552e96e4e33f8830cb6a59154fe148425532fd Mon Sep 17 00:00:00 2001 From: Chunfeng Yun Date: Wed, 15 Jun 2016 10:58:10 +0800 Subject: [PATCH v4,0/5] Add MediaTek USB3 DRD Driver These patches introduce the MediaTek USB3 dual-role controller driver. The driver can be configured as Dual-Role D

[PATCH v4,2/5] dt-bindings: mt8173-mtu3: add devicetree bindings

2016-06-14 Thread Chunfeng Yun
add a DT binding doc for MediaTek USB3 DRD driver Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt8173-mtu3.txt| 86 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/mt8173-mtu3.txt diff --git a/Documentation

[PATCH v4,1/5] dt-bindings: mt8173-xhci: support host side of dual-role mode

2016-06-14 Thread Chunfeng Yun
Some resources, such as IPPC register etc, shared with device driver are moved into common glue layer when xHCI driver is the host side of dual-role mode and they should be changed as optional properties if they are required ones before. For clarity, add a new part of binding to support host side o

[ANNOUNCE] autofs 5.1.2 release

2016-06-14 Thread Ian Kent
Hi all, An update is overdue so here it is. It's mostly a bug fix update. autofs == The package can be found at: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5 It is autofs-5.1.2.tar.[gz|xz] No source rpm is there as it can be produced by using: rpmbuild -ts autofs-5.1.2.tar.gz and t

Re: [PATCH] Linux VM workaround for Knights Landing A/D leak

2016-06-14 Thread Nadav Amit
Dave Hansen wrote: > On 06/14/2016 01:16 PM, Nadav Amit wrote: >> Dave Hansen wrote: >> >>> On 06/14/2016 09:47 AM, Nadav Amit wrote: Lukasz Anaczkowski wrote: >> From: Andi Kleen >> +void fix_pte_leak(struct mm_struct *mm, unsigned long addr, pte_t *ptep) >> +{ He

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-14 Thread Takashi Sakamoto
Hi Richard, > On Mon, Jun 13, 2016 at 01:47:13PM +0200, Richard Cochran wrote: >> 3. ALSA support for tunable AD/DA clocks. The rate of the Listener's >>DA clock must match that of the Talker and the other Listeners. >>Either you adjust it in HW using a VCO or similar, or you do >>ad

Re: [PATCH v5 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-14 Thread Frank Wang
Hi Heiko, On 2016/6/14 21:27, Heiko Stübner wrote: Am Montag, 13. Juni 2016, 10:10:10 schrieb Frank Wang: The newer SoCs (rk3366, rk3399) take a different usb-phy IP block than rk3288 and before, and most of phy-related registers are also different from the past, so a new phy driver is required

[PATCH perf/core v11 00/20] perf-probe --cache and SDT support

2016-06-14 Thread Masami Hiramatsu
Hi, Here is the 11th version of the patchset for probe-cache and initial SDT support. Here is the previous v10: https://lkml.org/lkml/2016/6/8/318 And v9: https://lkml.org/lkml/2016/5/28/103 This version fixes some bugs and changes codes according to Arnaldo's comments. Changes in v11: - [06/

[PATCH 0/3] nfsd state handling fixes

2016-06-14 Thread Oleg Drokin
These three patches do the much discussed job of making nfsd state handling more robust in face of races where several opens arrive for the same file at the same time from the same client. This does not yet handle a case when one of those opens gets an error and others don't. Also this is undergo

[PATCH perf/core v11 06/20] perf probe-file: Introduce perf_cache interfaces

2016-06-14 Thread Masami Hiramatsu
Introduce perf_cache object and interfaces to create, add entry, commit, and delete the object. perf_cache represents a file for the cached perf-probe definitions on one binary file or vmlinux which has its own build id. The probe cache file is located under the build-id cache directory of the targ

[PATCH perf/core v11 05/20] perf probe: Recover and export synthesize_perf_probe_point()

2016-06-14 Thread Masami Hiramatsu
Recover and export synthesize_perf_probe_point() which had once introduced but disabled long time. This renew the code and re-enable it. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/probe-event.c |

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-14 Thread Takashi Sakamoto
Hi Richard, On Tue, 14 Jun 2016 19:04:44 +0200, Richard Cochran write: >> Well, I guess I should have said, I am not too familiar with the >> breadth of current audio hardware, high end or low end. Of course I >> would like to see even consumer devices work with AVB, but it is up to >> the ALSA

[PATCH perf/core v11 02/20] perf-probe: Fix to add NULL check for strndup

2016-06-14 Thread Masami Hiramatsu
Fix to add a NULL check for strndup when parsing probe trace command. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-event.c |4 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/

[PATCH perf/core v11 03/20] perf-buildid: Rename and export build_id_cache__cachedir()

2016-06-14 Thread Masami Hiramatsu
Rename and export build_id_cache__cachedir() for retrieving use of the path of cache directory for given build_id. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/build-id.c | 12 +--- tools/p

[PATCH perf/core v11 01/20] perf: util: Fix rm_rf() to handle non-regular files correctly

2016-06-14 Thread Masami Hiramatsu
Fix rm_rf() to handle non-regular files correctly. This fix includes two changes; - Fix to use lstat(3) instead of stat(3) since if the target file is a symbolic link, rm_rf() should unlink the symbolic link itself, not the file which pointed by the symlink. - Fix to unlink non-regular fil

[PATCH 3/3] nfsd: Make init_open_stateid() a bit more whole

2016-06-14 Thread Oleg Drokin
Move the state selection logic inside from the caller, always making it return correct stp to use. Signed-off-by: J . Bruce Fields Signed-off-by: Oleg Drokin --- fs/nfsd/nfs4state.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/fs/nfsd/nfs4sta

[PATCH perf/core v11 07/20] perf probe: Add --cache option to cache the probe definitions

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Add --cache option to cache the probe definitions. This just saves the result of the dwarf analysis to probe cache. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v11: - Check failure of probe_cache operations and warn it. Changes in v

[PATCH perf/core v11 10/20] perf probe: Remove caches when --cache is given

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf-probe --del removes caches when --cache is given. Note that the delete pattern is not same as normal events. If you cached probes with event name, --del "eventname" works as expected. However, if you skipped it, the cached probes doesn't have actual event name. In tha

[PATCH perf/core v11 09/20] perf probe: Show all cached probes

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf probe --list shows all cached probes when --cache is given. Each caches are shown with on which binary that probed. e.g. - # perf probe --cache vfs_read \$params # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo \$params # perf probe --cache --list

[PATCH perf/core v11 15/20] perf-list: Show SDT and pre-cached events

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Show SDT and pre-cached events by perf-list with "sdt". This also shows the binary and build-id where the events are placed only when there are same name events on different binaries. e.g. # perf list sdt List of pre-defined events (to be used in -e): sdt_l

[PATCH perf/core v11 13/20] perf buildid-cache: Scan and import user SDT events to probe cache

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf buildid-cache --add scans given binary and add the SDT events to probe cache. "sdt_" prefix is appended for all SDT providers to avoid event-name clash with other pre-defined events. It is possible to use the cached SDT events as other cached events, via perf probe --

[PATCH perf/core v11 11/20] perf/sdt: ELF support for SDT

2016-06-14 Thread Masami Hiramatsu
From: Hemant Kumar This patch serves the initial support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler directives identifies them and places them in the section ".note.stapsdt". To find these markers from the bina

[PATCH perf/core v11 12/20] perf probe: Add group name support

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Allow user to set group name for adding new event. Note that user must ensure that the group name doesn't conflict with existing group name carefully. E.g. Existing group name can conflict with other events. Especially, using the group name reserved for kernel modules can h

[PATCH perf/core v11 16/20] perf-list: Skip SDTs placed in invalid binaries

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Skip SDTs placed in invalid (non-exist, or older version) binaries. Note that perf-probe --cache --list and perf-probe --cache --del still handle all the caches including invalid binaries. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v7

[PATCH perf/core v11 08/20] perf probe: Use cache entry if possible

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Before analyzing debuginfo, try to find a corresponding entry from probe cache always. This does not depend on --cache, the --cache enables to store/update cache, but looking up the cache is always enabled. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu

[PATCH perf/core v11 20/20] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-06-14 Thread Masami Hiramatsu
Support @BUILDID or @FILE suffix for SDT events. This allows perf to add probes on SDTs/pre-cached events on given FILE or the file which has given BUILDID (also, this complements BUILDID.) For example, both gcc and libstdc++ has same SDTs as below. If you would like to add a probe on sdt_libstdcxx

[PATCH perf/core v11 19/20] perf probe: Search SDT/cached event from all probe caches

2016-06-14 Thread Masami Hiramatsu
Search SDT/cached event from all probe caches if user doesn't pass any binary. With this, we don't have to specify target binary for SDT and named cached events (which start with %). E.g. without this, a target binary must be passed with -x. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\

[PATCH perf/core v11 17/20] perf: probe-cache: Add for_each_probe_cache_entry() wrapper

2016-06-14 Thread Masami Hiramatsu
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splitted from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-file.c |8 tools/perf/util/probe-file.h |2 ++ 2 files c

[PATCH perf/core v11 14/20] perf probe: Accept %sdt and %cached event name

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu To improbe usability, support %[PROVIDER:]SDTEVENT format to add new probes on SDT and cached events. e.g. # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private Added new event: sdt_libc:lll_lock_wait_private (on %lll_lock_wait_private in /usr/lib/libc

[PATCH perf/core v11 18/20] perf probe: Allow wildcard for cached events

2016-06-14 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. E.g. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Split off bugf

[PATCH 2/3] nfsd: Extend the mutex holding region around in nfsd4_process_open2()

2016-06-14 Thread Oleg Drokin
To avoid racing entry into nfs4_get_vfs_file(). Make init_open_stateid() return with locked stateid to be unlocked by the caller. Signed-off-by: Oleg Drokin --- fs/nfsd/nfs4state.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd

[PATCH 1/3] nfsd: Always lock state exclusively.

2016-06-14 Thread Oleg Drokin
It used to be the case that state had an rwlock that was locked for write by downgrades, but for read for upgrades (opens). Well, the problem is if there are two competing opens for the same state, they step on each other toes potentially leading to leaking file descriptors from the state structure

[PATCH perf/core v11 04/20] perf probe: Add perf_probe_event__copy()

2016-06-14 Thread Masami Hiramatsu
Add perf_probe_event__copy() to copy perf_probe_event data structure and sub data structures under given source perf_probe_event. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/probe-event.c | 76 +++

[PATCH perf/core v11 01/23] perf: util: Fix rm_rf() to handle non-regular files correctly

2016-06-14 Thread Masami Hiramatsu
Fix rm_rf() to handle non-regular files correctly. This fix includes two changes; - Fix to use lstat(3) instead of stat(3) since if the target file is a symbolic link, rm_rf() should unlink the symbolic link itself, not the file which pointed by the symlink. - Fix to unlink non-regular fil

[PATCH perf/core v11 00/23] perf-probe --cache and SDT support

2016-06-14 Thread Masami Hiramatsu
Hi, Resend: Sorry, I missed some last patches... Here is the 11th version of the patchset for probe-cache and initial SDT support. Here is the previous v10: https://lkml.org/lkml/2016/6/8/318 And v9: https://lkml.org/lkml/2016/5/28/103 This version fixes some bugs and changes codes according t

[PATCH perf/core v11 07/23] perf probe: Add --cache option to cache the probe definitions

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Add --cache option to cache the probe definitions. This just saves the result of the dwarf analysis to probe cache. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v11: - Check failure of probe_cache operations and warn it. Changes in v

[PATCH perf/core v11 02/23] perf-probe: Fix to add NULL check for strndup

2016-06-14 Thread Masami Hiramatsu
Fix to add a NULL check for strndup when parsing probe trace command. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-event.c |4 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/

[PATCH perf/core v11 03/23] perf-buildid: Rename and export build_id_cache__cachedir()

2016-06-14 Thread Masami Hiramatsu
Rename and export build_id_cache__cachedir() for retrieving use of the path of cache directory for given build_id. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/build-id.c | 12 +--- tools/p

[PATCH perf/core v11 04/23] perf probe: Add perf_probe_event__copy()

2016-06-14 Thread Masami Hiramatsu
Add perf_probe_event__copy() to copy perf_probe_event data structure and sub data structures under given source perf_probe_event. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/probe-event.c | 76 +++

[PATCH perf/core v11 06/23] perf probe-file: Introduce perf_cache interfaces

2016-06-14 Thread Masami Hiramatsu
Introduce perf_cache object and interfaces to create, add entry, commit, and delete the object. perf_cache represents a file for the cached perf-probe definitions on one binary file or vmlinux which has its own build id. The probe cache file is located under the build-id cache directory of the targ

[PATCH perf/core v11 05/23] perf probe: Recover and export synthesize_perf_probe_point()

2016-06-14 Thread Masami Hiramatsu
Recover and export synthesize_perf_probe_point() which had once introduced but disabled long time. This renew the code and re-enable it. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splited from "Add --cache option to cache the probe definitions" --- tools/perf/util/probe-event.c |

[PATCH perf/core v11 08/23] perf probe: Use cache entry if possible

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Before analyzing debuginfo, try to find a corresponding entry from probe cache always. This does not depend on --cache, the --cache enables to store/update cache, but looking up the cache is always enabled. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu

[PATCH perf/core v11 14/23] perf probe: Accept %sdt and %cached event name

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu To improbe usability, support %[PROVIDER:]SDTEVENT format to add new probes on SDT and cached events. e.g. # perf probe -x /lib/libc-2.17.so %lll_lock_wait_private Added new event: sdt_libc:lll_lock_wait_private (on %lll_lock_wait_private in /usr/lib/libc

[PATCH perf/core v11 12/23] perf probe: Add group name support

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Allow user to set group name for adding new event. Note that user must ensure that the group name doesn't conflict with existing group name carefully. E.g. Existing group name can conflict with other events. Especially, using the group name reserved for kernel modules can h

[PATCH perf/core v11 15/23] perf-list: Show SDT and pre-cached events

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Show SDT and pre-cached events by perf-list with "sdt". This also shows the binary and build-id where the events are placed only when there are same name events on different binaries. e.g. # perf list sdt List of pre-defined events (to be used in -e): sdt_l

[PATCH perf/core v11 13/23] perf buildid-cache: Scan and import user SDT events to probe cache

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf buildid-cache --add scans given binary and add the SDT events to probe cache. "sdt_" prefix is appended for all SDT providers to avoid event-name clash with other pre-defined events. It is possible to use the cached SDT events as other cached events, via perf probe --

[PATCH perf/core v11 10/23] perf probe: Remove caches when --cache is given

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf-probe --del removes caches when --cache is given. Note that the delete pattern is not same as normal events. If you cached probes with event name, --del "eventname" works as expected. However, if you skipped it, the cached probes doesn't have actual event name. In tha

[PATCH perf/core v11 11/23] perf/sdt: ELF support for SDT

2016-06-14 Thread Masami Hiramatsu
From: Hemant Kumar This patch serves the initial support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler directives identifies them and places them in the section ".note.stapsdt". To find these markers from the bina

[PATCH perf/core v11 17/23] perf: probe-cache: Add for_each_probe_cache_entry() wrapper

2016-06-14 Thread Masami Hiramatsu
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splitted from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-file.c |8 tools/perf/util/probe-file.h |2 ++ 2 files c

[PATCH perf/core v11 22/23] perf build: Add sdt feature detection

2016-06-14 Thread Masami Hiramatsu
Will be used to define SDT events in perf test code. Signed-off-by: Masami Hiramatsu --- tools/build/Makefile.feature |3 ++- tools/build/feature/Makefile |6 +- tools/build/feature/test-all.c |5 + tools/build/feature/test-sdt.c |7 +++ tools/perf/Makefile.perf

[PATCH perf/core v11 16/23] perf-list: Skip SDTs placed in invalid binaries

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu Skip SDTs placed in invalid (non-exist, or older version) binaries. Note that perf-probe --cache --list and perf-probe --cache --del still handle all the caches including invalid binaries. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v7

[PATCH perf/core v11 20/23] perf probe: Support @BUILDID or @FILE suffix for SDT events

2016-06-14 Thread Masami Hiramatsu
Support @BUILDID or @FILE suffix for SDT events. This allows perf to add probes on SDTs/pre-cached events on given FILE or the file which has given BUILDID (also, this complements BUILDID.) For example, both gcc and libstdc++ has same SDTs as below. If you would like to add a probe on sdt_libstdcxx

[PATCH perf/core v11 21/23] perf probe: Support a special SDT probe format

2016-06-14 Thread Masami Hiramatsu
Support a special SDT probe format which can omit the '%' prefix only if the SDT group name starts with "sdt_". So, for example both of "%sdt_libc:setjump" and "sdt_libc:setjump" are acceptable for perf probe --add. Suggested-by: Brendan Gregg Signed-off-by: Masami Hiramatsu --- tools/perf/Docu

[PATCH perf/core v11 19/23] perf probe: Search SDT/cached event from all probe caches

2016-06-14 Thread Masami Hiramatsu
Search SDT/cached event from all probe caches if user doesn't pass any binary. With this, we don't have to specify target binary for SDT and named cached events (which start with %). E.g. without this, a target binary must be passed with -x. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\

[PATCH perf/core v11 18/23] perf probe: Allow wildcard for cached events

2016-06-14 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. E.g. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Split off bugf

[PATCH perf/core v11 23/23] perf-test: Add a test case for SDT event

2016-06-14 Thread Masami Hiramatsu
Add a basic test case for SDT event support. This test scans an SDT event in perftools and check whether the SDT event is correctly stored into the buildid cache. Signed-off-by: Masami Hiramatsu --- tools/perf/tests/Build |1 tools/perf/tests/builtin-test.c |4 + tools/perf/tes

[PATCH perf/core v11 09/23] perf probe: Show all cached probes

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf probe --list shows all cached probes when --cache is given. Each caches are shown with on which binary that probed. e.g. - # perf probe --cache vfs_read \$params # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo \$params # perf probe --cache --list

Re: [PATCH] locking/qrwlock: fix write unlock issue in big endian

2016-06-14 Thread xinhui
On 2016年06月14日 18:40, Will Deacon wrote: On Tue, Jun 14, 2016 at 02:11:48PM +0800, xinhui wrote: On 2016年06月08日 17:22, Will Deacon wrote: On Thu, Jun 02, 2016 at 06:09:08PM +0800, Pan Xinhui wrote: strcut __qrwlock has different layout in big endian machine. we need set the __qrwlock->wmode

[PATCH] sound: aedsp16: Change structure initialisation to C99 style

2016-06-14 Thread Amitoj Kaur Chawla
Replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; ...}; @@ identifier decl.i1,i2,decl.fld; expression e; position bad.p

[PATCH -next] nios2: clocksource: Fix build error

2016-06-14 Thread Guenter Roeck
gcc has trouble parsing returen. Fixes: 3e23d81046936 ("clocksource/drivers/nios2: Convert init function to return error") Cc: Daniel Lezcano Signed-off-by: Guenter Roeck --- arch/nios2/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nios2/kernel/time.c b

[PATCH -next] Revert "clocksource/drivers/timer-atmel-st: Add the COMPILE_TEST option"

2016-06-14 Thread Guenter Roeck
This reverts commit 7011a4947ca61cd28a8c025b39c98861687e4fb6. When trying to build parisc:allmodconfig: drivers/clocksource/timer-atmel-st.c: In function 'at91rm9200_timer_interrupt': drivers/clocksource/timer-atmel-st.c:76:3: error: invalid use of undefined type 'struct clock_event_devic

Re: [PATCH] rtc: ds1307: Fix relying on reset value for weekday

2016-06-14 Thread Keerthy
On Tuesday 14 June 2016 08:09 PM, Alexandre Belloni wrote: On 07/06/2016 at 14:59:05 +0530, Keerthy wrote : Hi Alexandre, On Wednesday 01 June 2016 06:06 PM, Keerthy wrote: On Wednesday 01 June 2016 05:48 PM, Alexandre Belloni wrote: Hi, On 01/06/2016 at 16:19:07 +0530, Keerthy wrote :

Re: [PATCH 1/2] f2fs: detect host-managed SMR by feature flag

2016-06-14 Thread Damien Le Moal
Jaegeuk, On 6/15/16 03:45, Jaegeuk Kim wrote: > If mkfs.f2fs gives a feature flag for host-managed SMR, we can set mode=lfs > by default. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 21 + > fs/f2fs/super.c | 14 -- > 2 files changed, 29 insertions(+),

Re: [PATCH v3 2/2] media: et8ek8: Add documentation

2016-06-14 Thread Sakari Ailus
Hi Rob, On Tue, Jun 14, 2016 at 05:05:17PM -0500, Rob Herring wrote: > On Sat, Jun 11, 2016 at 06:39:53PM +0300, Ivaylo Dimitrov wrote: > > Add DT bindings description > > Not exactly the best commit msg. > > > > > Signed-off-by: Ivaylo Dimitrov > > --- > > .../bindings/media/i2c/toshiba,et8e

[PATCH 1/1] usb: core: of.c: fix defined but not declare warning

2016-06-14 Thread Peter Chen
The helper usb_of_get_child_node is defined at of.c, but missing its declare as a global function. Fix it by adding related header file as well as compile it on conditional of CONFIG_OF. Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Alan Stern Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.

<    5   6   7   8   9   10   11   >