[RFC PATCH-tip v4 10/10] locking/rwsem: Add a boot parameter to reader spinning threshold

2016-08-18 Thread Waiman Long
The default reader spining threshold is current set to 4096. However, the right reader spinning threshold may vary from one system to another and among the different architectures. This patch adds a new kernel boot parameter to modify the threshold value. This enables better tailoring to the needs

[RFC PATCH-tip v4 08/10] locking/rwsem: Enable spinning readers

2016-08-18 Thread Waiman Long
This patch enables readers to optimistically spin when the rspin_threshold is non-zero. That threshold value should only be set when the lock owners of the rwsem are unlikely to go to sleep. Otherwise enabling reader spinning may make the performance worse in some cases. On a 4-socket Haswell mach

Re: [PATCH] fib_trie: Fix the description of pos and bits

2016-08-18 Thread David Miller
From: Xunlei Pang Date: Thu, 18 Aug 2016 12:33:28 +0800 > 1) Fix one typo: s/tn/tp/ > 2) Fix the description about the "u" bits. > > Signed-off-by: Xunlei Pang Applied.

Re: [PATCH 2/2] arm64: dts: set UART1 clock frequency to 150MHz

2016-08-18 Thread Jorge Ramirez
On 07/11/2016 11:53 AM, Wei Xu wrote: Hi Jorge, On 08/07/2016 09:11, Jorge Ramirez-Ortiz wrote: Enable support for higher baud rates (up to 3Mbps) in UART1 - required for bluetooth transfers. Signed-off-by: Jorge Ramirez-Ortiz Tested-by: Jorge Ramirez-Ortiz Fine to me. Thanks! Acked-by: We

Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached

2016-08-18 Thread Johannes Thumshirn
On Thu, Aug 18, 2016 at 09:08:42AM -0700, James Bottomley wrote: > And please fix your scripts or just use the standard ones: Hmmm, I'm not using a script at all but pure git send-email. I'll have a look into it. > > Cc: sta...@vger.kernel.org, #@suse.de, v4...@suse.de, > > I'm tired of getti

Re: [PATCH] amba: Support clk parents and rates assigned in DT

2016-08-18 Thread Jorge Ramirez
On 07/11/2016 11:08 PM, Stephen Boyd wrote: Add the call to of_clk_set_defaults() into the amba probe path so that devices on the amba bus can use the assigned rates and parents feature of the common clock framework. Cc: Michael Turquette Cc: Jorge Ramirez Ortiz Signed-off-by: Stephen Boyd --

Re: [PATCH] atm: fore200e: Do not drop const qualifier

2016-08-18 Thread David Miller
From: LABBE Corentin Date: Wed, 17 Aug 2016 15:56:45 +0200 > The data member of structure firmware is const and this constness is > dropped by some cast. > This patch add some const for keeping the const information. > > Signed-off-by: LABBE Corentin Applied.

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-18 Thread Sonny Rao
On Thu, Aug 18, 2016 at 7:26 PM, Minchan Kim wrote: > Hi Michal, > > On Thu, Aug 18, 2016 at 08:01:04PM +0200, Michal Hocko wrote: >> On Thu 18-08-16 10:47:57, Sonny Rao wrote: >> > On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: >> > > On Wed 17-08-16 11:57:56, Sonny Rao wrote: >> [...] >>

[RFC (v7)] add basic register-field manipulation macros

2016-08-18 Thread Jakub Kicinski
Hi! This is what I came up with. Changes: - drop the explicit type marking (u32/u64) - depend on the type of the mask instead; - only allow compilation time constant masks; - barf at "type of register too small to ever match mask" on get; - rename PUT -> PREP. I did not put the new marcos

Re: [RFC 00/11] THP swap: Delay splitting THP during swapping out

2016-08-18 Thread Minchan Kim
On Fri, Aug 19, 2016 at 03:44:26PM +0900, Minchan Kim wrote: > On Thu, Aug 18, 2016 at 08:44:13PM -0700, Huang, Ying wrote: > > Minchan Kim writes: > > > > > Hi Huang, > > > > > > On Thu, Aug 18, 2016 at 10:19:32AM -0700, Huang, Ying wrote: > > >> Minchan Kim writes: > > >> > > >> > Hi Tim, > >

Re: [RESEND PATCH] devfreq: Add COMPILE_TEST for build coverage

2016-08-18 Thread Chanwoo Choi
Hi Krzysztof, Looks good to me. Reviewed-by: Chanwoo Choi Dear Myungjoo, you made the 'testing/kozlowski' branch[1] for this patch. I think that this branch should be rebased on v4.8-rc1 because Krzysztof's patch[2] was already merged to v4.8-rc1. [1] https://git.kernel.org/cgit/linux/kernel/gi

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-18 Thread Sonny Rao
On Thu, Aug 18, 2016 at 11:01 AM, Michal Hocko wrote: > On Thu 18-08-16 10:47:57, Sonny Rao wrote: >> On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: >> > On Wed 17-08-16 11:57:56, Sonny Rao wrote: > [...] >> >> 2) User space OOM handling -- we'd rather do a more graceful shutdown >> >> tha

Re: [RFC 00/11] THP swap: Delay splitting THP during swapping out

2016-08-18 Thread Minchan Kim
On Thu, Aug 18, 2016 at 08:44:13PM -0700, Huang, Ying wrote: > Minchan Kim writes: > > > Hi Huang, > > > > On Thu, Aug 18, 2016 at 10:19:32AM -0700, Huang, Ying wrote: > >> Minchan Kim writes: > >> > >> > Hi Tim, > >> > > >> > On Wed, Aug 17, 2016 at 10:24:56AM -0700, Tim Chen wrote: > >> >> On

Fw: [GIT PULL] locking fixes

2016-08-18 Thread Paul E. McKenney
Hello, Eric, Does Johannes's recent change to lockless_dereference() help with the sparse issue? Thanx, Paul - Forwarded message from Ingo Molnar - Date: Thu, 18 Aug 2016 22:34:21 +0200 From: Ingo Molnar To: Linus Torvalds Cc: l

[RESEND PATCH] devfreq: Add COMPILE_TEST for build coverage

2016-08-18 Thread Krzysztof Kozlowski
The SoC-specific devfreq and devfreq-event drivers can be build tested on all architectures. Signed-off-by: Krzysztof Kozlowski --- drivers/devfreq/Kconfig | 4 ++-- drivers/devfreq/event/Kconfig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/devfreq/Kconf

Re: [PATCH net-next] net: bgmac: make it clear when setting interface type to RMII

2016-08-18 Thread David Miller
From: Rafał Miłecki Date: Wed, 17 Aug 2016 23:11:52 +0200 > From: Rafał Miłecki > > It doesn't really change anything as BGMAC_CHIPCTL_1_IF_TYPE_RMII is > equal to 0. It make code a bit clener, so far when reading it one could > think we forgot to set a proper mode. It also keeps this mode code

Re: [PATCH net-next] net: bgmac: support Ethernet core on BCM53573 SoCs

2016-08-18 Thread David Miller
From: Rafał Miłecki Date: Wed, 17 Aug 2016 23:00:30 +0200 > From: Rafał Miłecki > > BCM53573 is a new series of Broadcom's SoCs. It's based on ARM and can > be found in two packages (versions): BCM53573 and BCM47189. It shares > some code with the Northstar family, but also requires some new qu

[PATCH 1/8] pipe: relocate round_pipe_size() above pipe_set_size()

2016-08-18 Thread Michael Kerrisk (man-pages)
This is a minor preparatory patch. After subsequent patches, round_pipe_size() will be called from pipe_set_size(), so place round_pipe_size() above pipe_set_size(). Cc: Willy Tarreau Cc: Vegard Nossum Cc: socketp...@gmail.com Cc: Tetsuo Handa Cc: Jens Axboe Cc: Al Viro Cc: linux-...@vger.ker

[PATCH for 4.8] ASoC: omap-abe-twl6040: Correct dmic-codec device registration

2016-08-18 Thread Peter Ujfalusi
The dmic-codec was registered within the platform_driver's probe function, which can cause deferred probe to run in loops as reported and analyzed by Russell King. Use module_init/exit in the driver and handle the dmic-codec device registration and removal at that level instead of the platform_dri

Re: [PATCH v10 1/2] printk: Make printk() completely async

2016-08-18 Thread Sergey Senozhatsky
On (08/18/16 12:56), Petr Mladek wrote: > On Thu 2016-08-18 18:51:44, Sergey Senozhatsky wrote: > > On (08/18/16 11:33), Petr Mladek wrote: > > [..] > > > > > 2. Force synchronous printk inside WARN()/BUG() macros. > > > > > > > > will it help? semaphore up() calls wake_up_process() regardless the

Re: [PATCH] net: ethernet: nuvoton: fix spelling mistake: "aligment" -> "alignment"

2016-08-18 Thread David Miller
From: Colin King Date: Wed, 17 Aug 2016 18:31:35 +0100 > From: Colin Ian King > > trivial fix to spelling mistake in dev_err message > > Signed-off-by: Colin Ian King Applied to net-next.

[PATCH 0/8] pipe: fix limit handling

2016-08-18 Thread Michael Kerrisk (man-pages)
[This patch series is an improvement on a smaller series I sent earlier to fix the user limit handling for pipes. I've made many changes after feedback from Vegard Nossum, including the addition of a fix for point (3) below.] When changing a pipe's capacity with fcntl(F_SETPIPE_SZ), various limits

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-18 Thread Sonny Rao
On Thu, Aug 18, 2016 at 2:05 PM, Robert Foss wrote: > > > On 2016-08-18 02:01 PM, Michal Hocko wrote: >> >> On Thu 18-08-16 10:47:57, Sonny Rao wrote: >>> >>> On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: On Wed 17-08-16 11:57:56, Sonny Rao wrote: >> >> [...] > > 2) User

Re: [PATCH] dmaengine: pxa_dma: fix hotchain corner case

2016-08-18 Thread Vinod Koul
On Sun, Aug 07, 2016 at 09:01:48PM +0200, Robert Jarzmik wrote: > In the case where a descriptor is chained on a running channel, and as > explained in the comment in the code 10 lines above, the success of the > chaining is ensured either if : > - the DMA is still running > - or if the chained t

Re: [PATCH net] net: bgmac: fix reversed check for MII registration error

2016-08-18 Thread David Miller
From: Rafał Miłecki Date: Wed, 17 Aug 2016 15:37:14 +0200 > From: Rafał Miłecki > > It was failing on successful registration returning meaningless errors. > > Signed-off-by: Rafał Miłecki > Fixes: 55954f3bfdac ("net: ethernet: bgmac: move BCMA MDIO Phy code into a > separate file") Applied

Use of copy_to_user in fireworks_hwdep.c while holding a spin_lock

2016-08-18 Thread Vaishali Thakkar
Hello, I was wondering about the call to copy_to_user in function hwdep_read_locked and hwdep_read_resp_buf for driver sound/firewire/fireworks/fireworks_hwdep.c. The function hwdep_read calls both of these functions while holding a spinlock[1], which is not normally allowed due to the possibil

[PATCH v5 09/12] [media] vivid: Local optimization

2016-08-18 Thread Ricardo Ribalda Delgado
Avoid duplicated clamps when possible. Suggested-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c b/driv

Re: [PATCH] mm, numa: boot cpu should bound to the node0 when node_off enable

2016-08-18 Thread Ganapatrao Kulkarni
On Fri, Aug 19, 2016 at 7:28 AM, zhong jiang wrote: > On 2016/8/19 1:45, Ganapatrao Kulkarni wrote: >> On Thu, Aug 18, 2016 at 9:34 PM, Catalin Marinas >> wrote: >>> On Thu, Aug 18, 2016 at 09:09:26PM +0800, zhongjiang wrote: At present, boot cpu will bound to a node from device tree when no

Re: [PATCH v7 1/4] mfd: RK808: Add RK818 support

2016-08-18 Thread Wadim Egorov
On 18.08.2016 16:34, Lee Jones wrote: > On Wed, 10 Aug 2016, Wadim Egorov wrote: > >> The RK818 chip is a Power Management IC (PMIC) for multimedia and handheld >> devices. It contains the following components: >> >> - Regulators >> - RTC >> - Clocking >> - Battery support >> >> Both RK808 and RK

Re: [PATCH] mm, numa: boot cpu should bound to the node0 when node_off enable

2016-08-18 Thread Ganapatrao Kulkarni
On Fri, Aug 19, 2016 at 9:30 AM, Ganapatrao Kulkarni wrote: > On Fri, Aug 19, 2016 at 7:28 AM, zhong jiang wrote: >> On 2016/8/19 1:45, Ganapatrao Kulkarni wrote: >>> On Thu, Aug 18, 2016 at 9:34 PM, Catalin Marinas >>> wrote: On Thu, Aug 18, 2016 at 09:09:26PM +0800, zhongjiang wrote:

Use of copy_to_user in fireworks_hwdep.c while holding a spin_lock

2016-08-18 Thread Vaishali Thakkar
Hello, I was wondering about the call to copy_to_user in function hwdep_read_locked and hwdep_read_resp_buf for driver sound/firewire/fireworks/fireworks_hwdep.c. The function hwdep_read calls both of these functions while holding a spinlock[1], which is not normally allowed due to the possibili

Re: [PATCH v3 3/4] media: Add Mediatek MDP Driver

2016-08-18 Thread Hans Verkuil
On 08/19/2016 07:54 AM, Minghsiu Tsai wrote: > On Mon, 2016-08-15 at 14:55 +0200, Hans Verkuil wrote: >> On 08/09/2016 03:58 PM, Minghsiu Tsai wrote: >> This isn't right. For VIDEO_CAPTURE you support the COMPOSE targets, and for >> the VIDEO_OUTPUT you support the CROP targets. Right now I can use

[PATCH 3/4] zswap: Zero-filled pages handling

2016-08-18 Thread Srividya Desireddy
On 17 August 2016 at 17:55, Pekka Enberg wrote: > On Wed, Aug 17, 2016 at 1:18 PM, Srividya Desireddy > wrote: >> @@ -1314,6 +1347,13 @@ static int zswap_frontswap_load(unsigned type, >> pgoff_t offset, >> } >> spin_unlock(&tree->lock); >> >> + if (entry->zeroflag) { >> +

Re: [PATCH] smc91c92_cs : add a spinlock to avoid race condition

2016-08-18 Thread David Miller
From: Vaishali Thakkar Date: Fri, 19 Aug 2016 10:11:32 +0530 > > > On Friday 19 August 2016 09:37 AM, David Miller wrote: >> From: Pavel Andrianov >> Date: Tue, 16 Aug 2016 16:39:06 +0300 >> >>> smc_reset may be executed in parallel with timer function media_check. >>> To avoid data race in s

Re: [PATCH v3 3/4] media: Add Mediatek MDP Driver

2016-08-18 Thread Minghsiu Tsai
On Mon, 2016-08-15 at 14:55 +0200, Hans Verkuil wrote: > On 08/09/2016 03:58 PM, Minghsiu Tsai wrote: > > Add MDP driver for MT8173 > > > > Signed-off-by: Minghsiu Tsai > > --- > > drivers/media/platform/Kconfig| 16 + > > drivers/media/platform/Makefile |2 +

Re: [PATCH v6 0/5] /dev/random - a new approach

2016-08-18 Thread Herbert Xu
On Thu, Aug 18, 2016 at 10:49:47PM -0400, Theodore Ts'o wrote: > > That really depends on the system. We can't assume that people are > using systems with a 100Hz clock interrupt. More often than not > people are using tickless kernels these days. That's actually the > problem with changing /dev

Re: [RFC PATCH-tip v4 07/10] locking/rwsem: Change RWSEM_WAITING_BIAS for better disambiguation

2016-08-18 Thread Wanpeng Li
2016-08-19 5:11 GMT+08:00 Waiman Long : > When the count value is in between 0 and RWSEM_WAITING_BIAS, there > are 2 possibilities. > Either a writer is present and there is no waiter count = 0x0001 >or there are waiters and readers. There is no easy way to count = 0x000X However, RWSEM

Re: [PATCH 4/8] pipe: fix limit checking in pipe_set_size()

2016-08-18 Thread Willy Tarreau
Hi Michael, Since you're changing this code, it's probably worth swapping the size check and capable() below to save a function call in the normal path : On Fri, Aug 19, 2016 at 05:25:35PM +1200, Michael Kerrisk (man-pages) wrote: > + if (nr_pages > pipe->buffers) { > + if (!capab

Re: [PATCH v3] mm/slab: Improve performance of gathering slabinfo stats

2016-08-18 Thread aruna . ramakrishna
On 08/18/2016 04:52 AM, Michal Hocko wrote: I am not opposing the patch (to be honest it is quite neat) but this is buggering me for quite some time. Sorry for hijacking this email thread but I couldn't resist. Why are we trying to optimize SLAB and slowly converge it to SLUB feature-wise. I alwa

Re: [PATCH] dmaengine: qcom_hidma: release the descriptor before the callback

2016-08-18 Thread Vinod Koul
On Thu, Aug 18, 2016 at 11:48:52PM -0400, Sinan Kaya wrote: > On 8/18/2016 11:42 PM, Vinod Koul wrote: > > On Thu, Aug 18, 2016 at 11:26:28PM -0400, Sinan Kaya wrote: > >> On 8/18/2016 10:48 PM, Vinod Koul wrote: > Keep a size limited list with error cookies and flush them in terminate >

[PATCH 3/8] pipe: refactor argument for account_pipe_buffers()

2016-08-18 Thread Michael Kerrisk (man-pages)
This is a preparatory patch for following work. account_pipe_buffers() performs accounting in the 'user_struct'. There is no need to pass a pointer to a 'pipe_inode_info' struct (which is then dereferenced to obtain a pointer to the 'user' field). Instead, pass a pointer directly to the 'user_struc

Re: [PATCH v10 8/9] arm: dts: mt2701: Add clock controller device nodes

2016-08-18 Thread James Liao
On Thu, 2016-08-18 at 17:18 -0700, Stephen Boyd wrote: > On 08/16, Erin Lo wrote: > > From: James Liao > > > > Add clock controller nodes for MT2701, include topckgen, infracfg, > > pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and > > bdpsys. This patch also add two oscillators tha

[PATCH 4/8] pipe: fix limit checking in pipe_set_size()

2016-08-18 Thread Michael Kerrisk (man-pages)
The limit checking in pipe_set_size() (used by fcntl(F_SETPIPE_SZ)) has the following problems: (1) When increasing the pipe capacity, the checks against the limits in /proc/sys/fs/pipe-user-pages-{soft,hard} are made against existing consumption, and exclude the memory required for the

[PATCH v5 12/12] [media] vivid: Add support for HSV encoding

2016-08-18 Thread Ricardo Ribalda Delgado
Support HSV encoding. Most of the logic is replicated from ycbcr_enc. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 25 + drivers/media/platform/vivid/vivid-core.h | 1 + drivers/media/platform/vivid/vivid-ctrls.c

Re: [PATCH v4 0/3] perf annotate: Enable cross arch annotate

2016-08-18 Thread Ravi Bangoria
I've sent v5 series for this. Please review it. Thanks, Ravi On Wednesday 13 July 2016 03:15 PM, Ravi Bangoria wrote: > Arnaldo, Michael, > > I've tested this patchset on ppc64 BE and LE both. Please review this. > > -Ravi > > On Friday 08 July 2016 10:10 AM, Ravi Bangoria wrote: >> Perf can curr

Re: [PATCH v4 02/57] x86/asm/head: remove unused init_rsp variable extern

2016-08-18 Thread Sebastian Andrzej Siewior
On 2016-08-18 08:05:42 [-0500], Josh Poimboeuf wrote: > There is no init_rsp variable. Remove its extern. You could add that it was removed in 9cf4f298e29a ("x86: use stack_start in x86_64") (merged in v2.6.27-rc1). > Signed-off-by: Josh Poimboeuf Sebastian

[PATCH 2/8] pipe: move limit checking logic into pipe_set_size()

2016-08-18 Thread Michael Kerrisk (man-pages)
This is a preparatory patch for following work. Move the F_SETPIPE_SZ limit-checking logic from pipe_fcntl() into pipe_set_size(). This simplifies the code a little, and allows for reworking required in later patches. Cc: Willy Tarreau Cc: Vegard Nossum Cc: socketp...@gmail.com Cc: Tetsuo Handa

[PATCH v11 6/9] reset: mediatek: Add MT2701 reset controller dt-binding file

2016-08-18 Thread Erin Lo
From: Shunli Wang Dt-binding file about reset controller is used to provide kinds of definition, which is referenced by dts file and IC-specified reset controller driver code. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Tested-by: John Crispin Acked-by: Philip

[PATCH v11 2/9] clk: mediatek: Refine the makefile to support multiple clock drivers

2016-08-18 Thread Erin Lo
From: James Liao Add a Kconfig to define clock configuration for each SoC, and modify the Makefile to build drivers that only selected in config. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Tested-by: John Crispin Reviewed-by: Matthias Brugger --- drivers/cl

[PATCH v11 3/9] dt-bindings: ARM: Mediatek: Document bindings for MT2701

2016-08-18 Thread Erin Lo
From: James Liao This patch adds the binding documentation for apmixedsys, bdpsys, ethsys, hifsys, imgsys, infracfg, mmsys, pericfg, topckgen and vdecsys for Mediatek MT2701. Signed-off-by: James Liao Signed-off-by: Erin Lo Tested-by: John Crispin Acked-by: Rob Herring --- .../bindings/arm/

[PATCH v11 5/9] clk: mediatek: Add MT2701 clock support

2016-08-18 Thread Erin Lo
From: Shunli Wang Add MT2701 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Tested-by: John Crispin --- drivers/clk/mediatek/Kconfig | 43 ++ drivers/clk/mediatek/Ma

[git pull] drm fixes - part two

2016-08-18 Thread Dave Airlie
Hey, Daniel pointed out I'd missed some i915 fixes, and I also found a single etnaviv fix I missed. So here they are, Thanks, Dave. The following changes since commit 91d62d9f30206be6f7749a0e6f7fa58c6d70c702: Merge branch 'drm-fixes-4.8' of git://people.freedesktop.org/~agd5f/linux into d

[PATCH v11 9/9] arm: dts: mt2701: Use real clock for UARTs

2016-08-18 Thread Erin Lo
We used to use a fixed rate clock for the UARTs. Now that we have clock support we can associate the correct clocks to the UARTs and drop the 26MHz fixed rate UART clock. Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 18 -- 1 file changed, 8 insertions(+), 10 deletio

[PATCH v11 8/9] arm: dts: mt2701: Add clock controller device nodes

2016-08-18 Thread Erin Lo
From: James Liao Add clock controller nodes for MT2701, include topckgen, infracfg, pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and bdpsys. This patch also add two oscillators that provide clocks for MT2701. Signed-off-by: James Liao Signed-off-by: Erin Lo --- arch/arm/boot/dt

[PATCH v11 1/9] clk: mediatek: remove __init from clk registration functions

2016-08-18 Thread Erin Lo
From: James Liao Remove __init from functions that will be used by init functions that support probe deferral. Signed-off-by: James Liao Signed-off-by: Erin Lo --- drivers/clk/mediatek/clk-gate.c | 2 +- drivers/clk/mediatek/clk-mtk.c | 12 ++-- drivers/clk/mediatek/clk-pll.c | 2

[PATCH v11 4/9] clk: mediatek: Add dt-bindings for MT2701 clocks

2016-08-18 Thread Erin Lo
From: Shunli Wang Add MT2701 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Tested-by: John Crispin Reviewed-by: Matthias Brugger --- include/dt-bindings/clock/mt2701-clk.h

[PATCH v11 0/9] Add clock support for Mediatek MT2701

2016-08-18 Thread Erin Lo
This series is based on v4.8-rc1, add clock and reset controller support for Mediatek MT2701. This series also refined makefile and Kconfig to support configurable multiple SoC clock support. changes since v10: - Remove COMMON_CLK dependency from clk/mediatek/Kconfig. changes since v9: - Rebase

[PATCH v11 7/9] reset: mediatek: Add MT2701 reset driver

2016-08-18 Thread Erin Lo
From: Shunli Wang In infrasys and perifsys, there are many reset control bits for kinds of modules. These bits are used as actual reset controllers to be registered into kernel's generic reset controller framework. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Te

[PATCH 0/4] zswap: Optimize compressed pool memory utilization

2016-08-18 Thread Srividya Desireddy
On 17 August 2016 at 18:08, Pekka Enberg wrote: > On Wed, Aug 17, 2016 at 1:03 PM, Srividya Desireddy > wrote: >> This series of patches optimize the memory utilized by zswap for storing >> the swapped out pages. >> >> Zswap is a cache which compresses the pages that are being swapped out >> and

Re: linux-next: build warnings after merge of the kbuild tree

2016-08-18 Thread Nicholas Piggin
On Fri, 19 Aug 2016 15:09:14 +1000 Stephen Rothwell wrote: > Hi Nick, > > On Fri, 19 Aug 2016 13:38:54 +1000 Stephen Rothwell > wrote: > > > > On Thu, 18 Aug 2016 11:09:48 +1000 Nicholas Piggin > > wrote: > > > > > > On Wed, 17 Aug 2016 14:59:59 +0200 > > > Michal Marek wrote: > > >

[PATCH v5 3/7] perf annotate: Add support for powerpc

2016-08-18 Thread Ravi Bangoria
From: "Naveen N. Rao" Current perf can disassemble annotated function but it does not have parsing logic for powerpc instructions. So all navigation options are not available for powerpc. Apart from that, Powerpc has long list of branch instructions and hardcoding them in table appears to be err

[PATCH v5 7/7] perf annotate: Fix jump target outside of function address range

2016-08-18 Thread Ravi Bangoria
If jump target is outside of function range, perf is not handling it correctly. Especially when target address is lesser than function start address, target offset will be negative. But, target address declared to be unsigned, converts negative number into 2's complement. See below example. Here ta

[PATCH v5 4/7] perf annotate: Do not ignore call instruction with indirect target

2016-08-18 Thread Ravi Bangoria
Do not ignore call instruction with indirect target when its already identified as a call. This is an extension of commit e8ea1561952b ("perf annotate: Use raw form for register indirect call instructions") to generalize annotation for all instructions with indirect calls. This is needed for certa

[PATCH v5 2/7] perf annotate: Add cross arch annotate support

2016-08-18 Thread Ravi Bangoria
Change current data structures and function to enable cross arch annotate. Current perf implementation does not support cross arch annotate. To make it truly cross arch, instruction table of all arch should be present in perf binary. And use appropriate table based on arch where perf.data was reco

Re: [LKP] [lkp] [sctp] a6c2f79287: netperf.Throughput_Mbps -37.2% regression

2016-08-18 Thread Aaron Lu
On Thu, Aug 18, 2016 at 08:45:42PM +0800, Xin Long wrote: > >> Hi, Aaron > >> > >> 1) > >> I talked with Marcelo about this one. > >> He said it might be related with cacheline. the new field distroyed > >> the prior cacheline. So on top of commit 826d253d57b1, pls only add > >> + unsigned

[PATCH v5 6/7] perf annotate: Support jump instruction with target as second operand

2016-08-18 Thread Ravi Bangoria
Current perf is not able to parse jump instruction when second operand contains target address. Arch like powerpc has such instructions. For example, 'beq cr7,10173e60'. Signed-off-by: Ravi Bangoria --- Changes in v5: - New patch tools/perf/util/annotate.c | 6 +- 1 file changed, 5 inser

[PATCH v5 1/7] perf: Define macro for normalized arch names

2016-08-18 Thread Ravi Bangoria
Define macro for each normalized arch name and use them instead of using arch name as string. Signed-off-by: Ravi Bangoria --- Changes in v5: - No changes. tools/perf/arch/common.c | 36 ++-- tools/perf/arch/common.h | 11 +++ tools/

[PATCH v5 0/7] perf: Cross arch annotate + few miscellaneous fixes

2016-08-18 Thread Ravi Bangoria
Currently Perf annotate support code navigation (branches and calls) only when run on the same architecture where perf.data was recorded. But, for example, record on powerpc server and annotate on client's x86 desktop is not supported. This patchset enables cross arch annotate. Currently I've used

[PATCH v5 5/7] perf annotate: Show raw form for jump instruction with indirect target

2016-08-18 Thread Ravi Bangoria
For jump instructions that does not include target address as direct operand, use raw value for that. This is needed for certain powerpc jump instructions that use target address in a register (such as bctr, btar, ...). Suggested-by: Michael Ellerman Signed-off-by: Ravi Bangoria --- Changes in v

[PATCH 6/8] pipe: fix limit checking in alloc_pipe_info()

2016-08-18 Thread Michael Kerrisk (man-pages)
The limit checking in alloc_pipe_info() (used by pipe(2) and when opening a FIFO) has the following problems: (1) When checking capacity required for the new pipe, the checks against the limit in /proc/sys/fs/pipe-user-pages-{soft,hard} are made against existing consumption, and exclude th

[PATCH 8/8] pipe: cap initial pipe capacity according to pipe-max-size limit

2016-08-18 Thread Michael Kerrisk (man-pages)
This is an patch that provides behavior that is more consistent, and probably less surprising to users. I consider the change optional, and welcome opinions about whether it should be applied. By default, pipes are created with a capacity of 64 kiB. However, /proc/sys/fs/pipe-max-size may be set

Seeking recommendation on whether a bahviour is right/wrong

2016-08-18 Thread Ajay Garg
Hi All. I have been trying to debug a strange issue occurring on a "mostly mainline"-linux-kernel, running on a proprietary embedded-platform. I still haven't been able to zero-on the issue with 100% confirmation, but I think the following might be happening :: a) A C-user-application is running

[PATCH 5/8] pipe: simplify logic in alloc_pipe_info()

2016-08-18 Thread Michael Kerrisk (man-pages)
Replace an 'if' block that covers most of the code in this function with a 'goto'. This makes the code a little simpler to read, and also simplifies the next patch. Cc: Willy Tarreau Cc: Vegard Nossum Cc: socketp...@gmail.com Cc: Tetsuo Handa Cc: Jens Axboe Cc: Al Viro Cc: linux-...@vger.kern

Re: [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2

2016-08-18 Thread Dan Williams
On Thu, Aug 18, 2016 at 12:56 PM, Matthew Wilcox wrote: > Compared to a patch which removes 5 lines of code, almost any additional work > is ocean-boiling. > Did you check the state of NFIT enabling in Hyper-V? Not patching the Linux kernel at all is even less work.

[PATCH 7/8] pipe: make account_pipe_buffers() return a value, and use it

2016-08-18 Thread Michael Kerrisk (man-pages)
This is an optional patch, to provide a small performance improvement. Alter account_pipe_buffers() so that it returns the new value in user->pipe_bufs. This means that we can refactor too_many_pipe_buffers_soft() and too_many_pipe_buffers_hard() to avoid the costs of repeated use of atomic_long_re

Re: [RFC PATCH 0/3] UART slave device bus

2016-08-18 Thread Sebastian Reichel
Hi, On Thu, Aug 18, 2016 at 06:08:24PM -0500, Rob Herring wrote: > On Thu, Aug 18, 2016 at 3:29 PM, Sebastian Reichel wrote: > > Thanks for going forward and implementing this. I also started, > > but was far from a functional state. > > > > On Wed, Aug 17, 2016 at 08:14:42PM -0500, Rob Herring w

Re: linux-next: build warnings after merge of the kbuild tree

2016-08-18 Thread Stephen Rothwell
Hi Nick, On Fri, 19 Aug 2016 13:38:54 +1000 Stephen Rothwell wrote: > > On Thu, 18 Aug 2016 11:09:48 +1000 Nicholas Piggin wrote: > > > > On Wed, 17 Aug 2016 14:59:59 +0200 > > Michal Marek wrote: > > > > > On 2016-08-17 03:44, Stephen Rothwell wrote: > > > > > > > > After merging the

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-18 Thread Sonny Rao
On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: > On Wed 17-08-16 11:57:56, Sonny Rao wrote: >> On Wed, Aug 17, 2016 at 6:03 AM, Michal Hocko wrote: >> > On Wed 17-08-16 11:31:25, Jann Horn wrote: > [...] >> >> That's at least 30.43% + 9.12% + 7.66% = 47.21% of the task's kernel >> >> time

Re: [PATCH v3 1/3] devicetree: Sort vendor prefixes in alphabetical order

2016-08-18 Thread Rask Ingemann Lambertsen
On Fri, Aug 19, 2016 at 01:02:37AM +0200, Andrew Lunn wrote: > > @@ -54,8 +54,8 @@ chipone ChipOne > > chipspark ChipSPARK > > chrp Common Hardware Reference Platform > > chunghwa Chunghwa Picture Tubes Ltd. > > -ciaa Computadora Industrial Abierta Argentina > > cirrus

[GIT PULL] xfs, iomap: fixes for 4.8-rc3

2016-08-18 Thread Dave Chinner
Hi Linus, Can you please pull the fixes from the tag list below? This update contains fixes for most of the outstanding regressions introduced with the 4.8-rc1 XFS and iomap infrastructure merge. The only regression that isn't addressed by this pullreq is the aim7 write regression. I'm still tes

Re: [PATCH 2/2] pipe: make pipe user buffer limit checks more precise

2016-08-18 Thread Michael Kerrisk (man-pages)
Andrew, Thanks for picking up this patch series in -mm. Please drop it. After discussions with Vegard, I have something better now. Cheers, Michael On 08/16/2016 11:14 PM, Michael Kerrisk (man-pages) wrote: > As currently implemented, when creating a new pipe or increasing > a pipe's capacity

Re: [PATCH 1/2] pipe: check limits only when increasing pipe capacity

2016-08-18 Thread Michael Kerrisk (man-pages)
Andrew, thanks for picking up this patch series in -mm. Please drop it. After discussions with Vegard, I have something better now. Cheers, Michael On 08/16/2016 11:10 PM, Michael Kerrisk (man-pages) wrote: > When changing a pipe's capacity with fcntl(F_SETPIPE_SZ), various > limits defined by

RE: [PATCH 1/2] x86: Set up resources correctly on Hyper-V Generation 2

2016-08-18 Thread Matthew Wilcox
Yes, but this actually *removes a bug* in the Linux kernel; if any memory resource is left to be set up later, it is currently not set up on x86 machines which don't have PCI busses. That's not very many x86 systems, I'll agree, but I'm sure some enterprising person is busy creating an SoC whic

Re: [PATCH] sched: fix incorrect PELT values on SMT

2016-08-18 Thread Steve Muckle
On Fri, Aug 19, 2016 at 10:30:36AM +0800, Wanpeng Li wrote: > 2016-08-19 9:55 GMT+08:00 Steve Muckle : > > PELT scales its util_sum and util_avg values via > > arch_scale_cpu_capacity(). If that function is passed the CPU's sched > > domain then it will reduce the scaling capacity if SD_SHARE_CPUCA

[x86/mm] e1a58320a3: WARNING: CPU: 1 PID: 1 at arch/x86/mm/dump_pagetables.c:225 note_page()

2016-08-18 Thread kernel test robot
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit e1a58320a38dfa72be48a0f1a3a92273663ba6db Author: Stephen Smalley AuthorDate: Mon Oct 5 12:55:20 2015 -0400 Commit: Ingo M

Re: [PATCH v4 00/57] x86/dumpstack: rewrite x86 stack dump code

2016-08-18 Thread Ingo Molnar
* Josh Poimboeuf wrote: > You're right, that would be better. My apologies for spamming. It > started with "only" 19 patches in v1 and then quickly got out of hand. np! > I may split it up something like this: > > cleanups: > function graph fixes: > get_stack_info(): > unwinder prep: > unwi

Re: [PATCH 4.7 172/186] Input: i8042 - break load dependency between atkbd/psmouse and i8042

2016-08-18 Thread Dmitry Torokhov
On Thu, Aug 18, 2016 at 6:59 AM, Greg Kroah-Hartman wrote: > 4.7-stable review patch. If anyone has any objections, please let me know. Greg, please hold this patch off till your next cycle. I will be sending a fixup for it to Linus today or tomorrow. Thanks! > > -- > > From: D

Re: [PATCH] smc91c92_cs : add a spinlock to avoid race condition

2016-08-18 Thread Vaishali Thakkar
On Friday 19 August 2016 09:37 AM, David Miller wrote: > From: Pavel Andrianov > Date: Tue, 16 Aug 2016 16:39:06 +0300 > >> smc_reset may be executed in parallel with timer function media_check. >> To avoid data race in smc_set_xcvr a spinlock was added. >> >> Found by Linux Driver Verification

Re: [PATCH V3 0/3] Add support for session ID user filtering

2016-08-18 Thread Richard Guy Briggs
On 2016-08-18 19:53, Paul Moore wrote: > On Thu, Aug 18, 2016 at 1:43 PM, Richard Guy Briggs wrote: > > https://github.com/linux-audit/audit-kernel/wiki/RFE-Session-ID-User-Filter > > RFE Session ID User Filter > > > > https://github.com/linux-audit/audit-kernel/issues/4 > > RFE: add a session ID

[PATCH][v2] PM / sleep: Increase default DPM watchdog timeout to 120

2016-08-18 Thread Chen Yu
Recently we have a new report that, the harddisk can not resume on time due to firmware issues, and got a kernel panic because of DPM watchdog timeout. So adjust the default timeout from 60 to 120 to survive on this platform, and make DPM_WATCHDOG depending on EXPERT. Link: https://bugzilla.kernel

[PATCH] populate platform device at late init

2016-08-18 Thread Anshuman Gupta
This patch enables to populate platform devices from device tree at late-init As of now linux kernel has late-init call infrastructure which make a driver/module init call at late-init.it is not specific to a platform device. This patch make a platform device to be probe at late-init, without maki

Re: [PATCH] fib_trie: Fix the description of pos and bits

2016-08-18 Thread Alexander Duyck
On Wed, Aug 17, 2016 at 9:33 PM, Xunlei Pang wrote: > 1) Fix one typo: s/tn/tp/ > 2) Fix the description about the "u" bits. > > Signed-off-by: Xunlei Pang > --- > net/ipv4/fib_trie.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_

Re: [PATCH 2/2] ARM: dts: rockchip: add missing regulators for firefly reload board

2016-08-18 Thread Heiko Stübner
Am Donnerstag, 18. August 2016, 01:03:11 schrieb Randy Li: > There are many regulators are missed in previous commit, this > commit complete most of them. It also fix some mistakes in the > regulator properties. The VDD_10(REG10) and VCC_18(REG11) had better > to keep in always-on state, as it is u

Re: [PATCH v4] locking/mutex: Prevent lock starvation when spinning is disabled

2016-08-18 Thread Jason Low
On Thu, 2016-08-18 at 17:39 -0700, Jason Low wrote: > Imre reported an issue where threads are getting starved when trying > to acquire a mutex. Threads acquiring a mutex can get arbitrarily delayed > sleeping on a mutex because other threads can continually steal the lock > in the fastpath and/or

[PATCH] powerpc/8xx: use SPRN_EIE and SPRN_EID to enable/disable interrupts

2016-08-18 Thread Christophe Leroy
The 8xx has two special registers called EID (External Interrupt Disable) and EIE (External Interrupt Enable) for clearing/setting EE in MSR. It avoids the three instructions set mfmsr/ori/mtmsr or mfmsr/rlwinm/mtmsr. We just have to write something in the register to change MSR EE bit. So we writ

Re: [PATCH next-next 0/2] qdisc-hashtable fixes

2016-08-18 Thread David Miller
From: Jiri Kosina Date: Tue, 16 Aug 2016 23:52:08 +0200 (CEST) > The following two patches fix all the issues that have been reported > against the conversion of qdisc linked list to hashtable (currently in > net-next) so far. > > First patch adjusts handling of singleton qdiscs to the new sem

linux-next: Tree for Aug 19

2016-08-18 Thread Stephen Rothwell
Hi all, Changes since 20160818: The netfilter-next tree lost its build failure. The jc_docs tree gained a conflict against the drm-misc tree. The kbuild tree still had its build warnings for PowerPC, for which I reverted a commit. Non-merge commits (relative to Linus' tree): 2522 2709

Re: [PATCH] net: thunderx: Fix OOPs with ethtool --register-dump

2016-08-18 Thread David Miller
From: David Daney Date: Tue, 16 Aug 2016 12:28:17 -0700 > From: David Daney > > The ethtool_ops .get_regs function attempts to read the nonexistent > register NIC_QSET_SQ_0_7_CNM_CHG, which produces a "bus error" type > OOPs. > > Fix by not attempting to read, and removing the definition of, >

Re: [PATCH] smc91c92_cs : add a spinlock to avoid race condition

2016-08-18 Thread David Miller
From: Pavel Andrianov Date: Tue, 16 Aug 2016 16:39:06 +0300 > smc_reset may be executed in parallel with timer function media_check. > To avoid data race in smc_set_xcvr a spinlock was added. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Pavel Andrianov

Re: [LKP] [lkp] [xfs] 68a9f5e700: aim7.jobs-per-min -13.6% regression

2016-08-18 Thread Dave Chinner
On Thu, Aug 18, 2016 at 10:55:01AM -0700, Linus Torvalds wrote: > On Thu, Aug 18, 2016 at 6:24 AM, Mel Gorman > wrote: > > On Thu, Aug 18, 2016 at 05:11:11PM +1000, Dave Chinner wrote: > >> FWIW, I just remembered about /proc/sys/vm/zone_reclaim_mode. > >> > > > > That is a terrifying "fix" for t

  1   2   3   4   5   6   7   8   9   10   >