Re: [PATCH] proc/sysctl: prune stale dentries during unregistering

2017-02-09 Thread Konstantin Khlebnikov
On 10.02.2017 10:47, Al Viro wrote: On Fri, Feb 10, 2017 at 10:35:02AM +0300, Konstantin Khlebnikov wrote: # time sysctl -a > /dev/null real1m12.806s user0m0.016s sys 1m12.400s Currently only memory reclaimer could remove this garbage. But without significant memory pressure this n

linux-next: Tree for Feb 10

2017-02-09 Thread Stephen Rothwell
Hi all, Changes since 20170209: The l2mtd-tree still had ist build failure so I used the version from next-20170208. The kvm tree gained conflicts against the powerpc tree. The akpm-current tree gained conflicts against the xfs tree. The akpm tree gained a conflict against the net tree. Non

Re: [PATCH 3/3 staging-next] mm: Remove RCU and tasklocks from lmk

2017-02-09 Thread Michal Hocko
On Fri 10-02-17 08:39:11, peter enderborg wrote: > On 02/09/2017 09:05 PM, Michal Hocko wrote: > > On Thu 09-02-17 14:21:52, peter enderborg wrote: > >> Fundamental changes: > >> 1 Does NOT take any RCU lock in shrinker functions. > >> 2 It returns same result for scan and counts, so we dont need

[tip:perf/core] perf intel-pt: Use __fallthrough

2017-02-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 7ea6856d6f5629d742edc23b8b76e6263371ef45 Gitweb: http://git.kernel.org/tip/7ea6856d6f5629d742edc23b8b76e6263371ef45 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 9 Feb 2017 15:22:22 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 9 Feb 2017 16:32:03 -0300 perf

Re: [PATCH] sched: Enhance readability of iterating wake_list

2017-02-09 Thread Peter Zijlstra
On Fri, Feb 10, 2017 at 01:09:31PM +0900, Byungchul Park wrote: > +#define for_each_wake_list(task, node) \ > + for ((task) = llist_entry((node), struct task_struct, wake_entry); \ > + node; (node) = llist_next(node), \ > + (task) = llist_entry((node), struct task_struct, wake

Re: [PATCH v4 1/2] staging: omap4iss: fix multiline comment style

2017-02-09 Thread Laurent Pinchart
Hi Avraham, Thank you for the patches. On Thursday 09 Feb 2017 18:57:55 Avraham Shukron wrote: > Fixed multi-line comments to their preferred style (First line empty) > > Signed-off-by: Avraham Shukron For both of them, Acked-by: Laurent Pinchart I've applied the patches to my tree and will

[tip:perf/core] perf tests: Avoid possible truncation with dirent->d_name + snprintf

2017-02-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 2e2bbc039fad9eabad6c4c1a473c8b2554cdd2d4 Gitweb: http://git.kernel.org/tip/2e2bbc039fad9eabad6c4c1a473c8b2554cdd2d4 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 9 Feb 2017 14:48:46 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 9 Feb 2017 14:48:46 -0300 perf

[tip:perf/core] perf header: Fix handling of PERF_EVENT_UPDATE__SCALE

2017-02-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 8434a2ec13d5c8cb25716950bfbf7c9d7b64628a Gitweb: http://git.kernel.org/tip/8434a2ec13d5c8cb25716950bfbf7c9d7b64628a Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 8 Feb 2017 21:57:22 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 22:06:18 -0300 perf

[tip:perf/core] perf bench numa: Avoid possible truncation when using snprintf()

2017-02-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 3aff8ba0a4c9c9191bb788171a1c54778e1246a2 Gitweb: http://git.kernel.org/tip/3aff8ba0a4c9c9191bb788171a1c54778e1246a2 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 9 Feb 2017 14:39:42 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 9 Feb 2017 14:39:42 -0300 perf

[tip:perf/core] tools string: Use __fallthrough in perf_atoll()

2017-02-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 94bdd5edb34e472980d1e18b4600d6fb92bd6b0a Gitweb: http://git.kernel.org/tip/94bdd5edb34e472980d1e18b4600d6fb92bd6b0a Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 8 Feb 2017 17:01:46 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 17:31:01 -0300 tool

Re: [PATCH 1/3 staging-next] android: Collect statistics from lowmemorykiller

2017-02-09 Thread peter enderborg
Im not speaking for google, but I think there is a work ongoing to replace this with user-space code. Until then we have to polish this version as good as we can. It is essential for android as it is now. On 02/09/2017 09:54 PM, Michal Hocko wrote: > On Thu 09-02-17 21:07:37, Greg KH wrote: >> On

[tip:perf/core] tools include: Add a __fallthrough statement

2017-02-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: b5bf1733d6a391c4e90ea8f8468d83023be74a2a Gitweb: http://git.kernel.org/tip/b5bf1733d6a391c4e90ea8f8468d83023be74a2a Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 8 Feb 2017 17:01:46 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 17:30:58 -0300 tool

Re: [RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily

2017-02-09 Thread Ingo Molnar
* Masami Hiramatsu wrote: > On Thu, 9 Feb 2017 18:04:58 -0500 > Steven Rostedt wrote: > > > > > The code in traceprobe_probes_write() reads up to 4096 bytes from userpace > > for each line. If userspace passes in several lines to execute, the code > > will do a large read for each line, even

[tip:perf/core] perf tools: Fix include of linux/mman.h

2017-02-09 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 2f7db55579943cb7723e7567bd9b9927d3777d29 Gitweb: http://git.kernel.org/tip/2f7db55579943cb7723e7567bd9b9927d3777d29 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 7 Feb 2017 16:15:21 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 16:06:21 -0300 perf

Re: [PATCH] media: usb: uvc: add a quirk for Generalplus Technology Inc. 808 Camera

2017-02-09 Thread Laurent Pinchart
Hi Neil, Thank you for the patch. On Thursday 09 Feb 2017 14:26:46 Neil Armstrong wrote: > As reported on [1], this device needs this quirk to be able to > reliably initialise the webcam. > > [1] https://sourceforge.net/p/linux-uvc/mailman/message/33791098/ > > Signed-off-by: Neil Armstrong R

[PATCH 3/4] phy: rockchip-typec: support DP phy switch

2017-02-09 Thread Chris Zhong
There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence only one PHY can connect to DP controller at one time, the other should be disconnected. The GRF_SOC_CON26 register has a switch bit to do it, set this bit means enable PHY 1, clear this bit means enable PHY 0. Signed-off-by: Chr

[PATCH 4/4] drm/rockchip: cdn-dp: remove the DP phy switch

2017-02-09 Thread Chris Zhong
There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence only one PHY can connect to DP controller at one time, the other should be disconnected. The GRF_SOC_CON26 register has a switch bit to do it, set this bit means enable PHY 1, clear this bit means enable PHY 0. If the board has 2

[PATCH 0/4] Move DP phy switch to PHY driver

2017-02-09 Thread Chris Zhong
There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence only one PHY can connect to DP controller at one time, the other should be disconnected. The GRF_SOC_CON26 register has a switch bit to do it, set this bit means enable PHY 1, clear this bit means enable PHY 0. If the board has

Re: [PATCH 1/3 staging-next] android: Collect statistics from lowmemorykiller

2017-02-09 Thread Greg Kroah-Hartman
On Fri, Feb 10, 2017 at 08:21:32AM +0100, peter enderborg wrote: > Im not speaking for google, but I think there is a work ongoing to > replace this with user-space code. Really? I have not heard this at all, any pointers to whom in Google is doing it? > Until then we have to polish this version

[PATCH 1/4] Documentation: bindings: add uphy-dp-sel for Rockchip USB Type-C PHY

2017-02-09 Thread Chris Zhong
rockchip,uphy-dp-sel is the register of type-c phy enable DP function. Signed-off-by: Chris Zhong --- Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt b/Documentati

Re: [PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify

2017-02-09 Thread Ingo Molnar
* Michael Ellerman wrote: > "Naveen N. Rao" writes: > > > kprobe_exceptions_notify() is not used on some of the architectures such > > as arm[64] and powerpc anymore. Introduce a weak variant for such > > architectures. > > I'll merge patch 1 & 3 via the powerpc tree for v4.11. Acked-by: Ing

[tip:perf/core] perf vendor events intel: Add uncore events for Sandy Bridge Server

2017-02-09 Thread tip-bot for Andi Kleen
Commit-ID: dd32cb5d8fd42316bf8c2b9f7e5c51a38625f755 Gitweb: http://git.kernel.org/tip/dd32cb5d8fd42316bf8c2b9f7e5c51a38625f755 Author: Andi Kleen AuthorDate: Sat, 17 Sep 2016 18:10:03 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 16:37:35 -0300 perf vendor event

[tip:perf/core] perf tools: Use zfree() instead of ad hoc equivalent

2017-02-09 Thread tip-bot for Taeung Song
Commit-ID: 506fde11a35f39e1b44478339c41e94dfd278aa2 Gitweb: http://git.kernel.org/tip/506fde11a35f39e1b44478339c41e94dfd278aa2 Author: Taeung Song AuthorDate: Wed, 1 Feb 2017 21:34:06 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 09:41:11 -0300 perf tools: Use z

Re: [PATCH] proc/sysctl: prune stale dentries during unregistering

2017-02-09 Thread Al Viro
On Fri, Feb 10, 2017 at 10:35:02AM +0300, Konstantin Khlebnikov wrote: > # time sysctl -a > /dev/null > real1m12.806s > user0m0.016s > sys 1m12.400s > > Currently only memory reclaimer could remove this garbage. > But without significant memory pressure this never happens. > > This p

RE: [PATCH v4 3/3] USB3/DWC3: Enable undefined length INCR burst type

2017-02-09 Thread Jerry Huang
> -Original Message- > From: Changming Huang [mailto:jerry.hu...@nxp.com] > Sent: Wednesday, January 18, 2017 4:12 PM > To: ba...@kernel.org; robh...@kernel.org; mark.rutl...@arm.com; > catalin.mari...@arm.com > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.

Re: [PATCH 2/6] tpm: export tpm2_flush_context_cmd

2017-02-09 Thread Jarkko Sakkinen
On Wed, Feb 08, 2017 at 10:58:30AM -0700, Jason Gunthorpe wrote: > > /** > > + * tpm2_flush_context_cmd() - execute a TPM2_FlushContext command > > + * @chip: TPM chip to use > > + * @payload: the key data in clear and encrypted form > > + * @options: authentication values and other options > > +

Re: [PATCH V3 2/2] Move stack parameters for sed_ioctl to prevent oversized stack with CONFIG_KASAN

2017-02-09 Thread Johannes Thumshirn
On 02/09/2017 06:20 PM, Scott Bauer wrote: > When CONFIG_KASAN is enabled, compilation fails: > > block/sed-opal.c: In function 'sed_ioctl': > block/sed-opal.c:2447:1: error: the frame size of 2256 bytes is larger than > 2048 bytes [-Werror=frame-larger-than=] > > Moved all the ioctl structures

[tip:perf/core] perf sdt: Show proper hint when event not yet in place via 'perf probe'

2017-02-09 Thread tip-bot for Ravi Bangoria
Commit-ID: 27cf5706a04e53f6844c71be1cbbf1df665f5d19 Gitweb: http://git.kernel.org/tip/27cf5706a04e53f6844c71be1cbbf1df665f5d19 Author: Ravi Bangoria AuthorDate: Fri, 3 Feb 2017 15:56:42 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 09:28:54 -0300 perf sdt: Show

[tip:perf/core] perf symbols: Take into account symfs setting when reading file build ID

2017-02-09 Thread tip-bot for Victor Kamensky
Commit-ID: 9b200653518ea9ccc331b204c7d555d2440570d1 Gitweb: http://git.kernel.org/tip/9b200653518ea9ccc331b204c7d555d2440570d1 Author: Victor Kamensky AuthorDate: Mon, 6 Feb 2017 15:48:28 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 09:28:55 -0300 perf symbols:

[tip:perf/core] perf pmu: Support per pmu json aliases

2017-02-09 Thread tip-bot for Andi Kleen
Commit-ID: 15b22ed369aa23ef4d083ffb9621650c353d3ddd Gitweb: http://git.kernel.org/tip/15b22ed369aa23ef4d083ffb9621650c353d3ddd Author: Andi Kleen AuthorDate: Fri, 27 Jan 2017 18:03:38 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 08:55:03 -0300 perf pmu: Support

[tip:perf/core] perf tools arm64: Add support for generating bpf prologue

2017-02-09 Thread tip-bot for He Kuang
Commit-ID: 3bb53c9f124bd9297f18d58a395cff59dfaf8541 Gitweb: http://git.kernel.org/tip/3bb53c9f124bd9297f18d58a395cff59dfaf8541 Author: He Kuang AuthorDate: Tue, 7 Feb 2017 07:34:11 + Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 08:55:01 -0300 perf tools arm64: Ad

[tip:perf/core] perf pmu: Support event aliases for non cpu// pmus

2017-02-09 Thread tip-bot for Andi Kleen
Commit-ID: 231bb2aa32498cbebef1306889a02114e9dfc934 Gitweb: http://git.kernel.org/tip/231bb2aa32498cbebef1306889a02114e9dfc934 Author: Andi Kleen AuthorDate: Fri, 27 Jan 2017 18:03:39 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 08:55:04 -0300 perf pmu: Support

[tip:perf/core] perf jevents: Parse eventcode as number

2017-02-09 Thread tip-bot for Andi Kleen
Commit-ID: d581141970ef3965c1624960fa928d765afd8a3e Gitweb: http://git.kernel.org/tip/d581141970ef3965c1624960fa928d765afd8a3e Author: Andi Kleen AuthorDate: Fri, 27 Jan 2017 18:03:36 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 08:55:02 -0300 perf jevents: Par

Re: [PATCHSET 0/4] perf diff: Introduce delta-abs compute method (v2)

2017-02-09 Thread Ingo Molnar
* Namhyung Kim wrote: > Hello, > > This patchset adds 'delta-abs' compute method to -c/--compute option. > The 'delta-abs' is same as 'delta' but shows entries with bigger > absolute delta first instead of sorting numerically. This is only > useful together with -o option. > > * v2 changes >

[no subject]

2017-02-09 Thread Marty Plummer
Greetings. I think I may have found a bug with the hix5hd2_gmac driver; unless I'm missing something, it appears that somehow the net_device struct is not being initialized properly in the hix5hd2_dev_probe function. Having set up my devicetree properly (I hope, still new to this), I first reciev

Re: [PATCH 3/3 staging-next] mm: Remove RCU and tasklocks from lmk

2017-02-09 Thread peter enderborg
On 02/09/2017 09:05 PM, Michal Hocko wrote: > On Thu 09-02-17 14:21:52, peter enderborg wrote: >> Fundamental changes: >> 1 Does NOT take any RCU lock in shrinker functions. >> 2 It returns same result for scan and counts, so we dont need to do >> shinker will know when it is pointless to call s

[PATCH v2 2/4] perf diff: Add diff.order config option

2017-02-09 Thread Namhyung Kim
In many cases, I need to look at differences between two data so I often used the -o option to sort the result base on the difference first. It'd be nice to have a config option to set it by default. The diff.order config option is to set the default value of -o/--order option. Cc: Taeung Song S

[PATCHSET 0/4] perf diff: Introduce delta-abs compute method (v2)

2017-02-09 Thread Namhyung Kim
Hello, This patchset adds 'delta-abs' compute method to -c/--compute option. The 'delta-abs' is same as 'delta' but shows entries with bigger absolute delta first instead of sorting numerically. This is only useful together with -o option. * v2 changes - rebase onto acme/perf/core - change

Re: [PATCH 1/3] ath10k: remove ath10k_vif_to_arvif()

2017-02-09 Thread Joe Perches
On Thu, 2017-02-09 at 23:14 -0800, Adrian Chadd wrote: > If there > were accessors for the skb data / len fields (like we do for mbufs) > then porting the code would've involved about 5,000 less changed > lines. What generic mechanisms would you suggest to make porting easier between bsd and linu

[PATCH v2 1/4] perf diff: Add 'delta-abs' compute method

2017-02-09 Thread Namhyung Kim
The 'delta-abs' compute method is same as 'delta' but shows entries with bigger absolute delta first instead of sorting numerically. This is only useful together with -o option. Below is default output (-c delta): $ perf diff -o 1 -c delta | grep -v ^# | head 42.22% +4.97% [kernel.kalls

[PATCH v2 4/4] perf diff: Change default setting to "delta-abs"

2017-02-09 Thread Namhyung Kim
The "delta-abs" compute method will show most changed entries on top. So users can easily see how much effect between the data. To see original-style (sorted by baseline) use -o 0 option. Signed-off-by: Namhyung Kim --- tools/perf/builtin-diff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v2 3/4] perf diff: Add diff.compute config option

2017-02-09 Thread Namhyung Kim
The diff.compute config variable is to set the default compute method of perf diff command (-c option). Possible values 'delta' (default), 'delta-abs', 'ratio' and 'wdiff'. Cc: Taeung Song Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-config.txt | 5 + tools/perf/Documenta

[PATCH] ipc/mqueue: use unsigned int for retval

2017-02-09 Thread Nicholas Mc Guire
compile tested with: x86_64_defconfig Patch is against 4.10-rc6 (localversion-next is next-20170209) ipc/mqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 4fdd970..897ce70 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -519,7 +519,7

Re: [PATCH ipsec] xfrm: policy: init locks early

2017-02-09 Thread Steffen Klassert
On Wed, Feb 08, 2017 at 11:52:29AM +0100, Florian Westphal wrote: > Dmitry reports following splat: > INFO: trying to register non-static key. > the code is fine but needs lockdep annotation. > turning off the locking correctness validator. > CPU: 0 PID: 13059 Comm: syz-executor1 Not tainted 4.

[PATCH] proc/sysctl: prune stale dentries during unregistering

2017-02-09 Thread Konstantin Khlebnikov
Currently unregistering sysctl table does not prune its dentries. Stale dentries could slowdown sysctl operations significantly. For example, command: # for i in {1..10} ; do unshare -n -- sysctl -a &> /dev/null ; done creates a millions of stale denties around sysctls of loopback interface:

[PATCH] Staging: iio: meter: meter.h - style fix

2017-02-09 Thread Derek Robson
Changed file permissions to octal. Found with checkpatch. Signed-off-by: Derek Robson --- drivers/staging/iio/meter/meter.h | 60 +++ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/iio/meter/meter.h b/drivers/staging/iio/meter

linux-next: manual merge of the akpm tree with the net tree

2017-02-09 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in: drivers/net/usb/sierra_net.c between commit: 5a70348e1187 ("sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications") from the net tree and patch: "lib/vsprintf.c: remove %Z support" from the akpm t

Re: [PATCHSET 0/3] perf diff: Introduce delta-abs compute method

2017-02-09 Thread Namhyung Kim
Hi Arnaldo, On Tue, Feb 07, 2017 at 01:02:14PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Feb 06, 2017 at 11:26:16PM +0900, Namhyung Kim escreveu: > > Hi Arnaldo, > > > > On Mon, Feb 06, 2017 at 09:51:49AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Mon, Feb 06, 2017 at 04:20:34PM +0900

Re: [PATCH V2 2/7] mm: move MADV_FREE pages into LRU_INACTIVE_FILE list

2017-02-09 Thread Minchan Kim
Hi Shaohua, On Fri, Feb 03, 2017 at 03:33:18PM -0800, Shaohua Li wrote: > Userspace indicates MADV_FREE pages could be freed without pageout, so > it pretty much likes used once file pages. For such pages, we'd like to > reclaim them once there is memory pressure. Also it might be unfair > reclaim

Re: [PATCH] media: fix s5p_mfc_set_dec_frame_buffer_v6() to print buf size in hex

2017-02-09 Thread Andrzej Hajda
On 09.02.2017 23:10, Shuah Khan wrote: > Fix s5p_mfc_set_dec_frame_buffer_v6() to print buffer size in hex to be > consistent with the rest of the messages in the routine. > > Signed-off-by: Shuah Khan As Nicolas said please fix the subject. After this you can add my: Acked-by: Andrzej Hajda -

linux-next: manual merge of the akpm-current tree with the xfs tree

2017-02-09 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/iomap.h between commit: 8ff6daa17b6a ("iomap: constify struct iomap_ops") from the xfs tree and commit: d6fb008f420c ("mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf") f

Re: [PATCH 1/3] ath10k: remove ath10k_vif_to_arvif()

2017-02-09 Thread Adrian Chadd
On 9 February 2017 at 23:03, Valo, Kalle wrote: > Ben Greear writes: > >> On 02/07/2017 01:14 AM, Valo, Kalle wrote: >>> Adrian Chadd writes: >>> Removing this method makes the diff to FreeBSD larger, as "vif" in FreeBSD is a different pointer. (Yes, I have ath10k on freebsd

Re: [PATCH 1/3 v2 staging-next] android: Collect statistics from lowmemorykiller

2017-02-09 Thread peter enderborg
On 02/09/2017 09:13 PM, Greg Kroah-Hartman wrote: > On Thu, Feb 09, 2017 at 04:42:35PM +0100, peter enderborg wrote: >> This collects stats for shrinker calls and how much >> waste work we do within the lowmemorykiller. >> >> Signed-off-by: Peter Enderborg >> --- >> drivers/staging/android/Kconfi

Re: [PATCH] media: s5p_mfc - remove unneeded io_modes initialzation in s5p_mfc_open()

2017-02-09 Thread Andrzej Hajda
On 09.02.2017 23:11, Shuah Khan wrote: > Remove unneeded io_modes initialzation in s5p_mfc_open(). It gets done > right below in vdev == dev->vfd_dec conditional. > > Signed-off-by: Shuah Khan Acked-by: Andrzej Hajda -- Regards Andrzej > --- > drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 - > 1

Re: [PATCH v2 4/4] [media] s5p-mfc: Always check and set 'v4l2_pix_format:field' field

2017-02-09 Thread Andrzej Hajda
On 09.02.2017 21:04, Thibault Saunier wrote: > It is required by the standard that the field order is set by the > driver. > > Signed-off-by: Thibault Saunier > --- > drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 23 +-- > 1 file changed, 21 insertions(+), 2 deletions(-) > >

Re: [RFC] 3.10 kernel- oom with about 24G free memory

2017-02-09 Thread Michal Hocko
On Fri 10-02-17 09:13:58, Yisheng Xie wrote: > hi Michal, > Thanks for your comment. > > On 2017/2/9 21:41, Michal Hocko wrote: > > On Thu 09-02-17 14:26:28, Michal Hocko wrote: > >> On Thu 09-02-17 20:54:49, Yisheng Xie wrote: > >>> Hi all, > >>> I get an oom on a linux 3.10 kvm guest OS. when it

Re: [PATCH 1/3] ath10k: remove ath10k_vif_to_arvif()

2017-02-09 Thread Valo, Kalle
Ben Greear writes: > On 02/07/2017 01:14 AM, Valo, Kalle wrote: >> Adrian Chadd writes: >> >>> Removing this method makes the diff to FreeBSD larger, as "vif" in >>> FreeBSD is a different pointer. >>> >>> (Yes, I have ath10k on freebsd working and I'd like to find a way to >>> reduce the diff m

Re: [PATCH v2 3/4] [media] s5p-mfc: Set colorspace in VIDIO_{G,TRY}_FMT

2017-02-09 Thread Andrzej Hajda
On 09.02.2017 21:04, Thibault Saunier wrote: > The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace > should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV but the driver > didn't set the colorimetry, also respect usespace setting. > > Use 576p display resolution as a th

Re: [PATCH v2 2/4] [media] exynos-gsc: Respect userspace colorspace setting

2017-02-09 Thread Andrzej Hajda
On 09.02.2017 21:04, Thibault Saunier wrote: > If the colorspace is specified by userspace we should respect > it and not reset it ourself if we can support it. > > Signed-off-by: Thibault Saunier > --- > drivers/media/platform/exynos-gsc/gsc-core.c | 25 + > 1 file change

Re: [PATCH v2 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-09 Thread Andrzej Hajda
On 09.02.2017 21:04, Thibault Saunier wrote: > From: Javier Martinez Canillas > > The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace > should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV. But drivers > don't agree on the display resolution that should be used as a t

linux-next: manual merge of the akpm-current tree with the xfs tree

2017-02-09 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/dax.h between commit: 8ff6daa17b6a ("omap: constify struct iomap_ops") from the xfs tree and commits: d6fb008f420c ("mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf") db

Re: [PATCH V2 3/7] mm: reclaim MADV_FREE pages

2017-02-09 Thread Minchan Kim
On Fri, Feb 03, 2017 at 03:33:19PM -0800, Shaohua Li wrote: > When memory pressure is high, we free MADV_FREE pages. If the pages are > not dirty in pte, the pages could be freed immediately. Otherwise we > can't reclaim them. We put the pages back to anonumous LRU list (by > setting SwapBacked fla

Re: [BUG] port(belong to a lacp aggregate group)cannot be unselected while the connected port failed

2017-02-09 Thread zhou zhengwu
ad_rx_machine() -> __update_selected(), this funcition will check if any lacp parameter is different. If any change happened, related port will be unselected. However, this function will not check the changing of port state, for example, whether partner port's port state is synchronization, wh

linux-next: manual merge of the akpm-current tree with the xfs tree

2017-02-09 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/dax.c between commit: 8ff6daa17b6a ("iomap: constify struct iomap_ops") from the xfs tree and commit: 5dce5c335124 ("mm,fs,dax: change ->pmd_fault to ->huge_fault") from the akpm-current tree. I fixed i

Re: [PATCH v3] usb: gadget: configfs: Fix KASAN use-after-free

2017-02-09 Thread Macpaul Lin
Hi Jim, > Jim Lin writes: > > When gadget is disconnected, running sequence is like this. > > . composite_disconnect > > . Call trace: > > usb_string_copy+0xd0/0x128 > > gadget_config_name_configuration_store+0x4 > > gadget_config_name_attr_store+0x40/0x50 > > configfs_write_file+0x198/0x

linux-next: manual merge of the akpm-current tree with the xfs tree

2017-02-09 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/iomap.c between commit: 8ff6daa17b6a ("iomap: constify struct iomap_ops") from the xfs tree and commit: d6fb008f420c ("mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf") from the akp

Re: [PATCH] i2c: designware: Fix regression when dynamic TAR update is disabled

2017-02-09 Thread Suravee Suthikulpanit
On 2/10/17 04:34, De Marchi, Lucas wrote: On Thu, 2017-02-09 at 22:07 +0200, Andy Shevchenko wrote: On Fri, 2017-02-10 at 01:20 +0530, Shah Nehal-Bakulchandra wrote: The following commit causes a regression when dynamic TAR update is disabled: commit 63d0f0a6952a1a02bc4f116b7da7c7887e46

[PATCH v3 0/2] drm/rockchip: switch to drm_mm for support arm64 iommu

2017-02-09 Thread Mark Yao
Some iommu patches on the series[0] "iommu/rockchip: Fix bugs and enable on ARM64" already landed, So drm/rockchip related patches [1] and [2] ready to landed, this series just rebase them to lastest drm-next. Thanks Heiko's Tested-by on rk3288 and rk3399 platform. Changes in v3: Advices by Tomas

[PATCH v3 1/2] drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain

2017-02-09 Thread Mark Yao
From: Tomasz Figa The API is not suitable for subsystems consisting of multiple devices and requires severe hacks to use it. To mitigate this, this patch implements allocation and address space management locally by using helpers provided by DRM framework, like other DRM drivers do, e.g. Tegra.

[PATCH v3 2/2] drm/rockchip: Use common IOMMU API to attach devices

2017-02-09 Thread Mark Yao
From: Shunqian Zheng Rockchip DRM used the arm special API, arm_iommu_*(), to attach iommu for ARM32 SoCs. This patch convert to common iommu API so it would support ARM64 like RK3399. Since previous patch added support for direct IOMMU address space management, there is no need to use DMA API a

Re: [RFC][PATCH 09/21] tracing: Add hist trigger timestamp support

2017-02-09 Thread Namhyung Kim
On Wed, Feb 08, 2017 at 11:25:05AM -0600, Tom Zanussi wrote: > Add support for a timestamp event field. This is actually a 'pseudo-' > event field in that it behaves like it's part of the event record, but > is really part of the corresponding ring buffer event. > > To make use of the timestamp f

Re: [RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily

2017-02-09 Thread Namhyung Kim
On Thu, Feb 09, 2017 at 06:04:58PM -0500, Steven Rostedt wrote: > > The code in traceprobe_probes_write() reads up to 4096 bytes from userpace > for each line. If userspace passes in several lines to execute, the code > will do a large read for each line, even though, it is highly likely that > th

Re: [PATCH 4/4] [media] s5p-mfc: Always check and set 'v4l2_pix_format:field' field

2017-02-09 Thread kbuild test robot
Hi Thibault, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.10-rc7 next-20170209] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Thibault-Saunier/exynos-gsc-Use

Re: [PATCH v4 4/8] ASoC: sun8i-codec-analog: Add amplifier event to fix first delay

2017-02-09 Thread Chen-Yu Tsai
On Thu, Feb 2, 2017 at 5:24 PM, Mylène Josserand wrote: > When playing a sound for the first time, a short delay, where the audio > file is not played, can be noticed. > On a second play (right after), the sound is played correctly. > If we wait a short time (~5 sec which corresponds to the aplay

Can EP bars be called as device memory ?

2017-02-09 Thread Valmiki Saleem
Hi, In ARMv8 TRM: An unaligned access to any type of Device memory causes an Alignment fault. What is meant by device memory ? Can we call PCIe BAR memory on End point cards as device memory ? Thanks, valmiki

Re: [PATCH 2/2] dmaengine: Add DW AXI DMAC driver

2017-02-09 Thread Vinod Koul
On Wed, Jan 25, 2017 at 06:34:17PM +0300, Eugeniy Paltsev wrote: > This patch adds support for the DW AXI DMAC controller. > > DW AXI DMAC is a part of upcoming development board from Synopsys. How different is AXI from DW Synopsys? Is the spec publicly available? > +config AXI_DW_DMAC > +

Re: [RFC][PATCH 03/21] ring-buffer: Add TIME_EXTEND_ABS ring buffer type

2017-02-09 Thread Namhyung Kim
On Wed, Feb 08, 2017 at 03:32:00PM -0500, Steven Rostedt wrote: > On Wed, 8 Feb 2017 11:24:59 -0600 > Tom Zanussi wrote: > > > Replace the unused RINGBUF_TYPE_TIME_STAMP ring buffer type with > > RINGBUF_TYPE_TIME_EXTEND_ABS, which forces extended time_deltas for > > all events. > > Hmm, I coul

Re: [PATCH V2 1/6] PM / QOS: Add default case to the switch

2017-02-09 Thread Viresh Kumar
On 09-02-17, 15:24, Pavel Machek wrote: > On Thu 2017-02-09 09:11:47, Viresh Kumar wrote: > > The switch block handles all the QOS request types present today, but > > starts giving compilation warnings as soon as a new type is added and > > not handled in this. > > > > To prevent against that, ad

Re: [RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily

2017-02-09 Thread Masami Hiramatsu
On Thu, 9 Feb 2017 18:04:58 -0500 Steven Rostedt wrote: > > The code in traceprobe_probes_write() reads up to 4096 bytes from userpace > for each line. If userspace passes in several lines to execute, the code > will do a large read for each line, even though, it is highly likely that > the firs

Re: [RFC] syscalls: Restore address limit after a syscall

2017-02-09 Thread Andy Lutomirski
rg/p/project-zero/issues/detail?id=990 >>>> >>>> Signed-off-by: Thomas Garnier >>>> --- >>>> Based on next-20170209 >>>> --- >>>> include/linux/syscalls.h | 5 - >>>> 1 file changed, 4 insertions(+), 1 deleti

Re: [PATCHv3] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-09 Thread Jean-Jacques Hiblot
2017-02-07 23:57 GMT+01:00 Abel Vesa : > The DYNAMIC_FTRACE_WITH_REGS configuration makes it possible for a ftrace > operation to specify if registers need to saved/restored by the ftrace > handler. > This is needed by kgraft and possibly other ftrace-based tools, and the ARM > architecture is cur

Re: [PATCH linux v7 4/6] hwmon: occ: Add callbacks for parsing P8 OCC datastructures

2017-02-09 Thread Joel Stanley
On Wed, Feb 8, 2017 at 9:40 AM, wrote: > From: "Edward A. James" > > Add functions to parse the data structures that are specific to the OCC on > the POWER8 processor. These are the sensor data structures, including > temperature, frequency, power, and "caps." > > Signed-off-by: Edward A. James

Re: [PATCH linux v7 5/6] hwmon: occ: Add hwmon implementation for the P8 OCC

2017-02-09 Thread Joel Stanley
On Wed, Feb 8, 2017 at 9:40 AM, wrote: > From: "Edward A. James" > > Add code to tie the hwmon sysfs code and the POWER8 OCC code together, as > well as probe the entire driver from the I2C bus. I2C is the communication > method between the BMC and the P8 OCC. > > Signed-off-by: Edward A. James

Re: [PATCH linux v7 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-02-09 Thread Joel Stanley
On Wed, Feb 8, 2017 at 9:40 AM, wrote: > diff --git a/Documentation/hwmon/occ b/Documentation/hwmon/occ > new file mode 100644 > index 000..79d1642 > --- /dev/null > +++ b/Documentation/hwmon/occ The kernel is using reStructuredText these days. You should consider following suit: https:

Re: [PATCH linux v7 6/6] hwmon: occ: Add callbacks for parsing P9 OCC datastructures

2017-02-09 Thread Joel Stanley
On Wed, Feb 8, 2017 at 9:40 AM, wrote: > From: "Edward A. James" > > Add functions to parse the data structures that are specific to the OCC on > the POWER9 processor. These are the sensor data structures, including > temperature, frequency, power, and "caps." > > Signed-off-by: Edward A. James

Re: [PATCH linux v7 2/6] hwmon: occ: Add sysfs interface

2017-02-09 Thread Joel Stanley
On Wed, Feb 8, 2017 at 9:40 AM, wrote: > From: "Edward A. James" > > Add a generic mechanism to expose the sensors provided by the OCC in > sysfs. > > Signed-off-by: Edward A. James > Signed-off-by: Andrew Jeffery > --- > Documentation/hwmon/occ | 62 +++ > drivers/hwmon/occ/Ma

Re: [PATCH linux v7 3/6] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-02-09 Thread Joel Stanley
On Wed, Feb 8, 2017 at 9:40 AM, wrote: > From: "Edward A. James" > > Add functions to send SCOM operations over I2C bus. The BMC can > communicate with the Power8 host processor over I2C, but needs to use SCOM > operations in order to access the OCC register space. This doesn't need to be separ

Re: net: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected in skb_array_produce

2017-02-09 Thread Jason Wang
On 2017年02月10日 02:10, Michael S. Tsirkin wrote: On Thu, Feb 09, 2017 at 05:02:31AM -0500, Jason Wang wrote: - Original Message - Hello, I've got the following report while running syzkaller fuzzer on mmotm (git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git) remotes/mmotm/au

Re: net: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected in skb_array_produce

2017-02-09 Thread Jason Wang
On 2017年02月09日 18:49, Dmitry Vyukov wrote: On Thu, Feb 9, 2017 at 11:02 AM, Jason Wang wrote: - Original Message - Hello, I've got the following report while running syzkaller fuzzer on mmotm (git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git) remotes/mmotm/auto-latest ee4

Re: [PATCH] jump_label: mark __start/stop___jump_table const

2017-02-09 Thread kbuild test robot
Hi Michael, [auto build test WARNING on linus/master] [also build test WARNING on v4.10-rc7 next-20170209] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Michael-S-Tsirkin/jump_label-mark

Re: [PATCH 4.4 05/48] mm: fix devm_memremap_pages crash, use mem_hotplug_{begin, done}

2017-02-09 Thread Dan Williams
On Thu, Feb 9, 2017 at 7:26 AM, Ben Hutchings wrote: > On Wed, 2017-01-18 at 11:46 +0100, Greg Kroah-Hartman wrote: >> 4.4-stable review patch. If anyone has any objections, please let me know. >> >> -- >> >> From: Dan Williams >> >> commit f931ab479dd24cf7a2c6e2df19778406892591f

Re: [PATCH v8 3/3] dmaengine: pl330: Don't require irq-safe runtime PM

2017-02-09 Thread Vinod Koul
On Thu, Feb 09, 2017 at 03:22:51PM +0100, Marek Szyprowski wrote: > +static int pl330_set_slave(struct dma_chan *chan, struct device *slave) > +{ > + struct dma_pl330_chan *pch = to_pchan(chan); > + struct pl330_dmac *pl330 = pch->dmac; > + int i; > + > + mutex_lock(&pl330->rpm_l

Re: [PATCH v8 1/3] dmaengine: Add new device_{set,release}_slave callbacks

2017-02-09 Thread Vinod Koul
On Thu, Feb 09, 2017 at 03:22:49PM +0100, Marek Szyprowski wrote: > Add two new callbacks to DMA engine device. They will used to provide > access to slave device (the device which requested given DMA channel) You mean access to client devices? > for DMA engine driver. Access to slave device migh

Re: net/packet: use-after-free in packet_rcv_fanout

2017-02-09 Thread Eric Dumazet
On Thu, Feb 9, 2017 at 7:33 PM, Sowmini Varadhan wrote: > On (02/09/17 19:19), Eric Dumazet wrote: >> >> More likely the bug is in fanout_add(), with a buggy sequence in error >> case, and not correct locking. >> >> kfree(po->rollover); >> po->rollover = NULL; >> >> Two cpus entering fanout_add()

[PATCH] staging: r8712u: remove unnecessary le32_to_cpu

2017-02-09 Thread Perry Hooker
This patch fixes the following sparse warning: drivers/staging/rtl8712/usb_ops_linux.c:212:33: warning: cast to restricted __le32 Signed-off-by: Perry Hooker --- drivers/staging/rtl8712/usb_ops_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/u

Re: [PATCH v1] platform/x86: intel_pmc_ipc: fix division in 32-bit case

2017-02-09 Thread Rajneesh Bhardwaj
On Wed, Feb 08, 2017 at 06:00:28PM +0200, Andy Shevchenko wrote: > On 32-bit x86 platforms we can't do 64-bit divisions: > > ERROR: "__udivdi3" [drivers/platform/x86/intel_pmc_ipc.ko] undefined! > > Replace plain division by do_div() macro call. > > Reported-by: Darren Hart > Cc: Shanth M

Re: [PATCH v7 0/5] Update LZ4 compressor module

2017-02-09 Thread David Miller
From: Eric Biggers Date: Thu, 9 Feb 2017 10:29:14 -0800 > On Thu, Feb 09, 2017 at 12:02:11PM +0100, Sven Schmidt wrote: >> > >> > [Also, for some reason linux-crypto is apparently still not receiving >> > patch 1/5 >> > in the series. It's missing from the linux-crypto archive at >> > http://w

Re: [RFC][PATCH 00/21] tracing: Inter-event (e.g. latency) support

2017-02-09 Thread Namhyung Kim
Hi Tom, On Wed, Feb 08, 2017 at 11:24:56AM -0600, Tom Zanussi wrote: > This patchset adds support for 'inter-event' quantities to the trace > event subsystem. The most important example of inter-event quantities > are latencies, or the time differences between two events. > > One of the main mot

[PATCH] sched: Enhance readability of iterating wake_list

2017-02-09 Thread Byungchul Park
This is just for enhancing readability and a trivial one. Please take this only if you agree. -8<- >From bb8cfcaa21ce157fb890a3e878fed2f2b7dadf81 Mon Sep 17 00:00:00 2001 From: Byungchul Park Date: Fri, 10 Feb 2017 12:53:14 +0900 Subject: [PATCH] sched: Enhance readability of iterating wa

RE: [PATCH] ARCv2: intc: Disable all core interrupts by default

2017-02-09 Thread Yuriy Kolerov
Hi Vineet, > -Original Message- > From: Vineet Gupta [mailto:vgu...@synopsys.com] > Sent: Wednesday, February 08, 2017 7:08 PM > To: Yuriy Kolerov ; linux-snps- > a...@lists.infradead.org > Cc: alexey.brod...@synopsys.com; linux-kernel@vger.kernel.org; > marc.zyng...@arm.com > Subject: Re:

  1   2   3   4   5   6   7   8   9   10   >