[PATCH V2 1/2] clk: qcom: gdsc: Add support for gdscs with HW control

2016-11-18 Thread Sricharan R
From: Rajendra Nayak Some GDSCs might support a HW control mode, where in the power domain (gdsc) is brought in and out of low power state (while unsued) without any SW assistance, saving power. Such GDSCs can be configured in a HW control mode when powered on until they are explicitly requested

[PATCH V2 2/2] clk: qcom: Put venus core0/1 gdscs to hw control mode

2016-11-18 Thread Sricharan R
The venus video ip's internal core blocks are under the control of the firmware and their powerdomains needs to be 'ON' only when used by the firmware. So putting it into hw controlled mode lets this to happen, otherwise the firmware hangs checking for this. Signed-off-by: Sricharan R --- driver

[PATCH V2 0/2] clk: qcom: gdsc: Add support for gdscs with HW control

2016-11-18 Thread Sricharan R
This series adds support for gdscs(powerdomains) that can be configured in hw controlled mode. So they are turned 'ON' based on needs dynamically, helping to save power. Also updated the venus video ip's gdsc/clock data to put them in hw control. V2: Dropped patch#3 [1] as it was concluded that t

Re: [PATCH v3 2/5] i2c: designware: Master mode as separated driver

2016-11-18 Thread Andy Shevchenko
On Fri, 2016-11-18 at 11:19 +, Luis Oliveira wrote: >  - The functions related to I2C master mode of operation were > transformed in a single driver. >  - The name of the i2c-designware-core.c had to be changed to i2c- > designware-src.c to for the cmake to be able to correctly compile both > m

Synopsys Ethernet QoS Driver

2016-11-18 Thread Joao Pinto
[The previous e-mail had an error, please consider this one. Thank you.] Dear all, My name is Joao Pinto and I work at Synopsys. I am a kernel developer with special focus in mainline collaboration, both Linux and Buildroot. I was recently named one of the maintainers of the PCIe Designware core

Re: [PATCH v4] arm64: dts: qcom: Add msm8916 CoreSight components

2016-11-18 Thread Georgi Djakov
On 11/17/2016 08:59 PM, Mathieu Poirier wrote: On Thu, Nov 17, 2016 at 05:35:22PM +0200, Georgi Djakov wrote: From: "Ivan T. Ivanov" Add initial set of CoreSight components found on Qualcomm's 8x16 chipset. Hello Georgi, Could you add a better desccription for the SoC? To me "8x16" doesn't

[PATCH v2] cpufreq: Avoid using inactive policies

2016-11-18 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There are two places in the cpufreq core in which low-level driver callbacks may be invoked for an inactive cpufreq policy, which isn't guaranteed to work in general. Both are due to possible races with CPU offline. First, in cpufreq_get(), the policy may become inactive

Re: [PATCH] perf/x86/uncore: Allow single pmu/box within events group

2016-11-18 Thread Jiri Olsa
On Fri, Nov 18, 2016 at 12:28:50PM +0100, Peter Zijlstra wrote: > On Fri, Nov 18, 2016 at 01:15:28AM +0100, Jiri Olsa wrote: > > Current uncore_validate_group code expects all events within > > the group to have same pmu. > > > > This leads to constraint code using wrong boxes which leads > > in m

Re: [PATCH] ARM: dts: qcom: Add apq8064 CoreSight components

2016-11-18 Thread Georgi Djakov
On 11/18/2016 12:16 AM, Stephen Boyd wrote: On 11/17/2016 07:36 AM, Georgi Djakov wrote: From: "Ivan T. Ivanov" Add initial set of CoreSight components found on Qualcomm's 8064 chipset. Signed-off-by: Ivan T. Ivanov Signed-off-by: Georgi Djakov --- arch/arm/boot/dts/qcom-apq8064-coresight.

Re: [PATCH v3 3/5] i2c: designware: Add slave definitions

2016-11-18 Thread Andy Shevchenko
On Fri, 2016-11-18 at 11:19 +, Luis Oliveira wrote: >  - Add slave defintitions to i2c-designware-core >  - Changes in Kconfig to auto-enable I2C_SLAVE when compiling the > modules >  - Add compatible string to designware-core.txt explaining the > devicetree bindings > > --- a/Documentation/

Re: [RFC PATCH] x86/debug: Dump more detailed segfault info

2016-11-18 Thread Borislav Petkov
On Thu, Nov 17, 2016 at 03:33:21PM -0800, Andy Lutomirski wrote: > Huh, go figure. How about access_ok() instead? There's also > pagefault_disable() + copy_from_user(). Ah, you don't want to have another #PF during the first one. How about copy_from_user_nmi()? It already does __range_not_ok()

Re: [PATCH] rcu: Fix soft lockup for rcu_nocb_kthread

2016-11-18 Thread Ding Tianhong
On 2016/8/10 9:59, Paul E. McKenney wrote: > On Wed, Aug 10, 2016 at 09:13:14AM +0800, Ding Tianhong wrote: >> On 2016/6/16 22:19, Paul E. McKenney wrote: >>> On Thu, Jun 16, 2016 at 02:09:47PM +0800, Ding Tianhong wrote: On 2016/6/15 23:49, Paul E. McKenney wrote: > On Wed, Jun 15, 2016

Re: [PATCH v2 3/3] hwmon: ltc2990: support all measurement modes

2016-11-18 Thread Tom Levens
On Fri, 18 Nov 2016, Guenter Roeck wrote: On Thu, Nov 17, 2016 at 11:25:30PM +, Tom Levens wrote: On 17 Nov 2016, at 22:54, Guenter Roeck wrote: On Thu, Nov 17, 2016 at 08:52:12PM +0100, Mike Looijmans wrote: On 17-11-2016 19:56, Guenter Roeck wrote: On Thu, Nov 17, 2016 at 06:40:17P

[PATCH] rcu: fix the OOM problem of huge IP abnormal packet traffic

2016-11-18 Thread Ding Tianhong
The commit bedc196915 ("rcu: Fix soft lockup for rcu_nocb_kthread") will introduce a new problem that when huge IP abnormal packet arrived, it may cause OOM and break the kernel, just like this: [ 79.441538] mlx4_en: eth5: Leaving promiscuous mode steering mode:2 [ 100.067032] ksoftirqd/0: page

Re: [PATCH 0/2] powerpc: stack protector (-fstack-protector) support

2016-11-18 Thread Denis Kirjanov
On 11/17/16, Michael Ellerman wrote: > Denis Kirjanov writes: > >> On Friday, September 30, 2016, Christophe Leroy >> wrote: >> >>> Add HAVE_CC_STACKPROTECTOR to powerpc. This is copied from ARM. >>> >>> Not tested on PPC64, compile ok with ppc64_ >> >> >> Hi Christophe, >> >> are you going to t

[GIT PULL 2/2] ARM: dts: exynos: Topic dts for v4.10

2016-11-18 Thread Krzysztof Kozlowski
Hi, Topic branch with a GIC interrupt fixes and cleanup (human-friendly symbols). Possible rather trivial conflicts: diff --cc arch/arm/boot/dts/exynos4x12.dtsi index 0074f566cd3b,505f047e81c6..85a7122658f1 --- a/arch/arm/boot/dts/exynos4x12.dtsi +++ b/arch/arm/boot/dts/exynos4x12.dtsi @@@ -147

[GIT PULL 1/2] arm64: dts: exynos: Topic dts arm64 for v4.10

2016-11-18 Thread Krzysztof Kozlowski
Hi, Topic branch with a GIC interrupt fix and cleanup. No conflicts expected. No dependencies. Best regards, Krzysztof The following changes since commit 1001354ca34179f3db924eb66672442a173147dc: Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are available in the git repository at: git://git.

Re: [PATCH] bus: mvebu-mbus: fix iounmap() in error path

2016-11-18 Thread Gregory CLEMENT
Hi Luis, On mer., nov. 16 2016, Luis Henriques wrote: > This patch fixes the following Coccinelle error: > > ./drivers/bus/mvebu-mbus.c:1115:2-8: \ > ERROR: missing iounmap; ioremap on line 1108 \ > and execution via conditional on line 1113 > > Although all mvebu_mbus_common_init(

Re: [PATCH 01/16] ARM: scu: Provide support for parsing SCU device node to enable SCU

2016-11-18 Thread Russell King - ARM Linux
On Fri, Nov 18, 2016 at 01:14:35PM +0100, Arnd Bergmann wrote: > @@ -41,6 +43,9 @@ void scu_enable(void __iomem *scu_base) > { > u32 scu_ctrl; > > + if (scu_base) > + scu_base = scu_base_addr; > + This looks to me like nonsense. > #ifdef CONFIG_ARM_ERRATA_764369 >

Re: [PATCH RFC 5/6] selftests: add EXTRA_CLEAN for clean target

2016-11-18 Thread Zhangjian (Bamvor)
Hi, Micheal On 2016/11/18 19:01, Michael Ellerman wrote: bamvor.zhangj...@huawei.com writes: From: Bamvor Jian Zhang Some testcases need the clean extra data after running. This patch introduce the "EXTRA_CLEAN" variable to address this requirement. The idea here is fine I think. But this

[PATCH 2/2] cpufreq: Make cpufreq_update_policy() void

2016-11-18 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The return value of cpufreq_update_policy() is never used, so make it void. Signed-off-by: Rafael J. Wysocki --- On top of https://patchwork.kernel.org/patch/9436381/ --- drivers/cpufreq/cpufreq.c | 21 +++-- include/linux/cpufreq.h |2 +- 2 fi

[PATCH 0/2] ACPI / processor / cpufreq: Function return value cleanups

2016-11-18 Thread Rafael J. Wysocki
Hi, Two cleanups related to unused function return values, [1/2] in processor_perflib.c and [2/2] in cpufreq.c. Thanks, Rafael

Re: [PATCH 14/18] [media] RedRat3: Rename a jump label in redrat3_init_rc_dev()

2016-11-18 Thread Mauro Carvalho Chehab
Em Thu, 13 Oct 2016 18:42:16 +0200 SF Markus Elfring escreveu: > From: Markus Elfring > Date: Thu, 13 Oct 2016 15:00:12 +0200 > > Adjust a jump label according to the Linux coding style convention. > > Signed-off-by: Markus Elfring > --- > drivers/media/rc/redrat3.c | 5 ++--- > 1 file chang

[PATCH 1/2] ACPI / processor: Make acpi_processor_ppc_has_changed() void

2016-11-18 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The return value of acpi_processor_ppc_has_changed() is never used, so make it void. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/processor_perflib.c | 10 -- include/acpi/processor.h |2 +- 2 files changed, 5 insertions(+), 7 deletions(-) In

Re: [PATCH v3 4/5] i2c: designware: Add slave mode as separated driver

2016-11-18 Thread Andy Shevchenko
On Fri, 2016-11-18 at 11:19 +, Luis Oliveira wrote: >  - Slave mode selected by compatibility string in platform module >  - Changes in Makefile to compile i2c-designware-core with slave > functions > --- a/drivers/i2c/busses/i2c-designware-platdrv.c > +++ b/drivers/i2c/busses/i2c-designware-

RE: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-18 Thread Gabriele Paoloni
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: 18 November 2016 12:24 > To: Gabriele Paoloni > Cc: liviu.du...@arm.com; linux-arm-ker...@lists.infradead.org; > Yuanzhichang; mark.rutl...@arm.com; devicet...@vger.kernel.org; > lorenzo.pieral...@arm.com; miny...@acm

Re: [PATCH] perf/x86/uncore: Allow single pmu/box within events group

2016-11-18 Thread Peter Zijlstra
On Fri, Nov 18, 2016 at 01:33:25PM +0100, Jiri Olsa wrote: > On Fri, Nov 18, 2016 at 12:28:50PM +0100, Peter Zijlstra wrote: > > On Fri, Nov 18, 2016 at 01:15:28AM +0100, Jiri Olsa wrote: > > > Current uncore_validate_group code expects all events within > > > the group to have same pmu. > > > > >

Re: [PATCH] block: call trace_block_split() from bio_split()

2016-11-18 Thread Christoph Hellwig
On Fri, Nov 18, 2016 at 01:14:20PM +1100, NeilBrown wrote: > > > Somewhere around > Commit: 20d0189b1012 ("block: Introduce new bio_split()") > and > Commit: 4b1faf931650 ("block: Kill bio_pair_split()") > > in 3.14 we lost the call to trace_block_split() from bio_split(). > > Commit: cda22646a

Re: [PATCH] rcu: Fix soft lockup for rcu_nocb_kthread

2016-11-18 Thread Paul E. McKenney
On Fri, Nov 18, 2016 at 08:37:28PM +0800, Ding Tianhong wrote: > > > On 2016/8/10 9:59, Paul E. McKenney wrote: > > On Wed, Aug 10, 2016 at 09:13:14AM +0800, Ding Tianhong wrote: > >> On 2016/6/16 22:19, Paul E. McKenney wrote: > >>> On Thu, Jun 16, 2016 at 02:09:47PM +0800, Ding Tianhong wrote:

[RFT] ARM: dts: exynos: Fix invalid GIC interrupt flags in audio block of Exynos5410

2016-11-18 Thread Krzysztof Kozlowski
Recently added audio block of Exynos5410 missed global fixup of GIC interrupt flags. Interrupt of type IRQ_TYPE_NONE is not allowed for GIC interrupts so use level high. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletio

Re: [PATCH RFC 1/6] selftests: remove duplicated all and clean target

2016-11-18 Thread Zhangjian (Bamvor)
Hi, Michael On 2016/11/18 18:31, Michael Ellerman wrote: >Hi Bamvor, > >bamvor.zhangj...@huawei.com writes: > >> From: Bamvor Jian Zhang >> >> Currently, kselftest use TEST_PROGS, TEST_PROGS_EXTENDED, TEST_FILES to >> indicate the default test program, extended test program and test files. >> Th

Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records when it is available

2016-11-18 Thread Borislav Petkov
On Thu, Nov 17, 2016 at 04:35:48PM -0800, Luck, Tony wrote: > From: Tony Luck > > Intel Xeons from Ivy Bridge onwards support a processor identification > number. On systems that have it, include it in the machine check record. > I'm told that this would be helpful for users that run large data c

Re: [PATCH 14/18] [media] RedRat3: Rename a jump label in redrat3_init_rc_dev()

2016-11-18 Thread Mauro Carvalho Chehab
Em Fri, 18 Nov 2016 10:52:40 -0200 Mauro Carvalho Chehab escreveu: > Em Thu, 13 Oct 2016 18:42:16 +0200 > SF Markus Elfring escreveu: > > > From: Markus Elfring > > Date: Thu, 13 Oct 2016 15:00:12 +0200 > > > > Adjust a jump label according to the Linux coding style convention. > > > > Signe

Re: [PATCH] rcu: fix the OOM problem of huge IP abnormal packet traffic

2016-11-18 Thread Paul E. McKenney
On Fri, Nov 18, 2016 at 08:40:09PM +0800, Ding Tianhong wrote: > The commit bedc196915 ("rcu: Fix soft lockup for rcu_nocb_kthread") > will introduce a new problem that when huge IP abnormal packet arrived, > it may cause OOM and break the kernel, just like this: > > [ 79.441538] mlx4_en: eth5:

Re: [PATCH] stm class: fix device leak in open error path

2016-11-18 Thread Johan Hovold
On Fri, Nov 18, 2016 at 01:55:58PM +0200, Alexander Shishkin wrote: > Johan Hovold writes: > > > Make sure to drop the reference taken by class_find_device() also on > > allocation errors in open(). > > > > Fixes: 7bd1d4093c2f ("stm class: Introduce an abstraction for...") > > Signed-off-by: Joha

Re: [PATCH RFC 6/6] selftests: enable O and KBUILD_OUTPUT

2016-11-18 Thread Zhangjian (Bamvor)
Hi, Macheal Thanks your reply. On 2016/11/18 19:29, Michael Ellerman wrote: >> From: Bamvor Jian Zhang >> >> Enable O and KBUILD_OUTPUT for kselftest. User could compile kselftest >> to another directory by passing O or KBUILD_OUTPUT. And O is high >> priority than KBUILD_OUTPUT. > >We end up s

reduce latency in __purge_vmap_area_lazy V2

2016-11-18 Thread Christoph Hellwig
Hi all, this is my spin at sorting out the long lock hold times in __purge_vmap_area_lazy. It is based on a patch from Joel. Changes since V1: - add vfree_atomic, thanks to Andrey Ryabinin.

[PATCH 07/10] mm: warn about vfree from atomic context

2016-11-18 Thread Christoph Hellwig
We can't handle vfree itself from atomic context, but callers can explicitly use vfree_atomic instead, which defers the actual vfree to a workqueue. Unfortunately in_atomic does not work on non-preemptible kernels, so we can't just do the right thing by default. Signed-off-by: Christoph Hellwig

[PATCH 10/10] mm: add preempt points into __purge_vmap_area_lazy

2016-11-18 Thread Christoph Hellwig
From: Joel Fernandes Use cond_resched_lock to avoid holding the vmap_area_lock for a potentially long time and thus creating bad latencies for various workloads. Signed-off-by: Joel Fernandes [hch: split from a larger patch by Joel, wrote the crappy changelog] Signed-off-by: Christoph Hellwig

Re: [RFC PATCH 2/3] net: macb: Add support for 1588 for Zynq Ultrascale+ MPSoC

2016-11-18 Thread Rafal Ozieblo
>+static inline void macb_handle_txtstamp(struct macb *bp, struct sk_buff *skb, >+ struct macb_dma_desc *desc) >+{ >+ u32 ts_s, ts_ns; >+ u8 msg_type; >+ >+ skb_copy_from_linear_data_offset(skb, GEM_TX_PTPHDR_OFFSET, >+

[PATCH 02/10] mm: remove free_unmap_vmap_area_addr

2016-11-18 Thread Christoph Hellwig
Just inline it into the only caller. Signed-off-by: Christoph Hellwig Tested-by: Jisheng Zhang --- mm/vmalloc.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 45de736..cf1a5ab 100644 --- a/mm/vmalloc.c +++ b/mm/vmallo

[PATCH 05/10] kernel/fork: use vfree_atomic() to free thread stack

2016-11-18 Thread Christoph Hellwig
From: Andrey Ryabinin vfree() is going to use sleeping lock. Thread stack freed in atomic context, therefore we must use vfree_atomic() here. Signed-off-by: Andrey Ryabinin --- kernel/fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/fork.c b/kernel/fork.c index

[PATCH 09/10] mm: turn vmap_purge_lock into a mutex

2016-11-18 Thread Christoph Hellwig
The purge_lock spinlock causes high latencies with non RT kernel. This has been reported multiple times on lkml [1] [2] and affects applications like audio. This patch replaces it with a mutex to allow preemption while holding the lock. Thanks to Joel Fernandes for the detailed report and analysi

[PATCH 08/10] mm: mark all calls into the vmalloc subsystem as potentially sleeping

2016-11-18 Thread Christoph Hellwig
We will take a sleeping lock in later in this series, so this adds the proper safeguards. Signed-off-by: Christoph Hellwig Tested-by: Jisheng Zhang --- mm/vmalloc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e2030b4..25283af 10064

[PATCH 01/10] mm: remove free_unmap_vmap_area_noflush

2016-11-18 Thread Christoph Hellwig
Just inline it into the only caller. Signed-off-by: Christoph Hellwig Tested-by: Jisheng Zhang --- mm/vmalloc.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index f2481cb..45de736 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -

[PATCH 03/10] mm: refactor __purge_vmap_area_lazy

2016-11-18 Thread Christoph Hellwig
Move the purge_lock synchronization to the callers, move the call to purge_fragmented_blocks_allcpus at the beginning of the function to the callers that need it, move the force_flush behavior to the caller that needs it, and pass start and end by value instead of by reference. No change in behavi

[PATCH 06/10] x86/ldt: use vfree_atomic() to free ldt entries

2016-11-18 Thread Christoph Hellwig
From: Andrey Ryabinin vfree() is going to use sleeping lock. free_ldt_struct() may be called with disabled preemption, therefore we must use vfree_atomic() here. E.g. call trace: vfree() free_ldt_struct() destroy_context_ldt() __mmdrop() finish_task_switch

[PATCH 04/10] mm: add vfree_atomic()

2016-11-18 Thread Christoph Hellwig
From: Andrey Ryabinin We are going to use sleeping lock for freeing vmap. However some vfree() users want to free memory from atomic (but not from interrupt) context. For this we add vfree_atomic() - deferred variation of vfree() which can be used in any atomic context (except NMIs). Signed-off-

[PATCH] Staging: wlan-ng: prism2mgmt: Fixed operators spacing style issues

2016-11-18 Thread Shiva Kerdel
Fixed spaces around operators to fix their coding style issues. Signed-off-by: Shiva Kerdel --- drivers/staging/wlan-ng/prism2mgmt.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c ind

[RESEND PATCH] ARM: dts: stm32f429: Add missing USART3 pin config to STM32F469I-DISCO board

2016-11-18 Thread Bruno Herrera
Including new STM32 maintainer. Rebased at stm32-dt-for-v4.10-1 and stm32-dt-for-v4.10-2 branches. It fix the port/pin initialization in case boot-loader does not configure/initialize the pins. This patch adds USART3 pin configuration on PB10/PA11 pins for STM32F469I-DISCO board. Signed-off-by: B

Re: [PATCH v2] ARM: Drop fixed 200 Hz timer requirement from Samsung platforms

2016-11-18 Thread Lee Jones
On Fri, 18 Nov 2016, Krzysztof Kozlowski wrote: > All Samsung platforms, including the Exynos, are selecting HZ_FIXED with > 200 Hz. Unfortunately in case of multiplatform image this affects also > other platforms when Exynos is enabled. > > This looks like an very old legacy code, dating back t

Re: [PATCH 15/20] ARM/hw_breakpoint: Convert to hotplug state machine

2016-11-18 Thread Thomas Gleixner
On Fri, 18 Nov 2016, Will Deacon wrote: > On Thu, Nov 17, 2016 at 07:35:36PM +0100, Sebastian Andrzej Siewior wrote: > > Install the callbacks via the state machine and let the core invoke > > the callbacks on the already online CPUs. > > > > smp_call_function_single() has been removed because the

Re: [PATCH 2/2] usb: dwc3: core: Support the dwc3 host suspend/resume

2016-11-18 Thread kbuild test robot
-Wang/usb-host-plat-Enable-xhci-plat-runtime-PM/20161118-202029 config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): d

Re: [PATCH] bfa: turn bfa_mem_{kva,dma}_setup into inline functions

2016-11-18 Thread Johannes Thumshirn
On Wed, Nov 16, 2016 at 04:14:27PM +0100, Arnd Bergmann wrote: > These two macros cause lots of warnings with gcc-7: > > drivers/scsi/bfa/bfa_svc.c: In function 'bfa_fcxp_meminfo': > drivers/scsi/bfa/bfa_svc.c:521:103: error: '*' in boolean context, suggest > '&&' instead [-Werror=int-in-bool-con

Re: [PATCH] perf/x86/uncore: Allow single pmu/box within events group

2016-11-18 Thread Jiri Olsa
On Fri, Nov 18, 2016 at 01:53:54PM +0100, Peter Zijlstra wrote: > On Fri, Nov 18, 2016 at 01:33:25PM +0100, Jiri Olsa wrote: > > On Fri, Nov 18, 2016 at 12:28:50PM +0100, Peter Zijlstra wrote: > > > On Fri, Nov 18, 2016 at 01:15:28AM +0100, Jiri Olsa wrote: > > > > Current uncore_validate_group cod

Re: [PATCH] clk: sunxi-ng: enable so-said LDOs for A33 SoC's pll-mipi clock

2016-11-18 Thread Chen-Yu Tsai
On Fri, Nov 18, 2016 at 12:49 AM, Icenowy Zheng wrote: > In the user manual of A33 SoC, the bit 22 and 23 of pll-mipi control > register is called "LDO{1,2}_EN", and according to the BSP source code > from Allwinner [1], the LDOs are enabled during the clock's enabling > process. > > The clock fai

[PATCH 17/20] phy_sun4i_usb: set_mode: Allow using set_mode to force end the current session

2016-11-18 Thread Kishon Vijay Abraham I
From: Hans de Goede The sunxi musb has a bug where sometimes it will generate a babble error on device disconnect instead of a disconnect irq. When this happens the musb-controller switches from host mode to device mode (it clears MUSB_DEVCTL_SESSION and sets MUSB_DEVCTL_BDEVICE) and gets stuck i

[PATCH 16/20] phy: fix returnvar.cocci warnings

2016-11-18 Thread Kishon Vijay Abraham I
From: Vivek Gautam Remove unneeded variables when "0" can be returned. Generated by: scripts/coccinelle/misc/returnvar.cocci Signed-off-by: Vivek Gautam Cc: Kishon Vijay Abraham I Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-berlin-sata.c |3 +-- drivers/phy/tegra/xusb-

[PATCH 14/20] phy: fix semicolon.cocci warnings

2016-11-18 Thread Kishon Vijay Abraham I
From: Vivek Gautam Remove unneeded semicolon. Generated by: coccinellery/semicolon/semicolon.cocci Signed-off-by: Vivek Gautam Cc: Kishon Vijay Abraham I Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-brcm-sata.c |6 +++--- drivers/phy/phy-exynos4210-usb2.c |4 ++--

[PATCH 13/20] phy: exynos-mipi-video: simplify check for coupled phy status

2016-11-18 Thread Kishon Vijay Abraham I
From: Marek Szyprowski There is no need to access regmap of coupled phy to check its state - such information is already in the phy device itself, so use it directly. This let us to avoid possible access to registers of the device in the disabled power domain if the coupled phy is already disable

[PATCH 15/20] phy: Fix ptr_ret.cocci warnings

2016-11-18 Thread Kishon Vijay Abraham I
From: Vivek Gautam Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vivek Gautam Cc: Kishon Vijay Abraham I Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-ti-pipe3.c | 10 ++ drivers/phy/tegra/x

[PATCH 20/20] phy: rockchip-inno-usb2: select USB_COMMON

2016-11-18 Thread Kishon Vijay Abraham I
From: Arnd Bergmann When USB is disabled, we get a link error for this driver because of the added OTG support drivers/phy/phy-rockchip-inno-usb2.o: In function `rockchip_usb2phy_otg_sm_work': phy-rockchip-inno-usb2.c:(.text.rockchip_usb2phy_otg_sm_work+0x1f4): undefined reference to `usb_otg_

Re: [PATCH 15/20] ARM/hw_breakpoint: Convert to hotplug state machine

2016-11-18 Thread Will Deacon
On Fri, Nov 18, 2016 at 02:11:58PM +0100, Thomas Gleixner wrote: > On Fri, 18 Nov 2016, Will Deacon wrote: > > On Thu, Nov 17, 2016 at 07:35:36PM +0100, Sebastian Andrzej Siewior wrote: > > > @@ -1082,15 +1077,18 @@ static int __init arch_hw_breakpoint_init(void) > > > register_undef_hook(&debug_

[PATCH 08/20] phy: rockchip-inno-usb2: correct 480MHz output clock stable time

2016-11-18 Thread Kishon Vijay Abraham I
From: William Wu We found that the system crashed due to 480MHz output clock of USB2 PHY was unstable after clock had been enabled by gpu module. Theoretically, 1 millisecond is a critical value for 480MHz output clock stable time, so we try to change the delay time to 1.2 millisecond to avoid t

[PATCH 19/20] phy: rockchip-inno-usb2: fix uninitialized tmout variable

2016-11-18 Thread Kishon Vijay Abraham I
From: Arnd Bergmann The newly added OTG support has an obvious uninitialized variable access that gcc warns about: drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work': drivers/phy/phy-rockchip-inno-usb2.c:717:7: error: 'tmout' may be used uninitialized in this function

[PATCH 18/20] phy: phy-twl4030-usb: emit VBUS status events to userspace

2016-11-18 Thread Kishon Vijay Abraham I
From: Matt Ranostay Emit KOBJ_ONLINE/KOBJ_OFFLINE action uevent on VBUS status changes. Cc: Tony Lindgren Signed-off-by: Matt Ranostay Acked-by: Tony Lindgren Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-twl4030-usb.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/dr

[PATCH 05/20] phy: meson8b-usb2: request a shared reset line

2016-11-18 Thread Kishon Vijay Abraham I
From: Martin Blumenstingl Both PHYs are sharing one reset line. With recent improvements to the reset framework we can now also use reset_control_reset with shared resets. This allows us to drop some workarounds where the reset was only specified for one PHY but not the other, to make sure that t

[PATCH 09/20] phy: phy-miphy365x: Remove miphy365 driver and dt binding documentation.

2016-11-18 Thread Kishon Vijay Abraham I
From: Peter Griffin This phy is only used on STiH415/6 based silicon, and support for these SoC's is being removed from the kernel. Signed-off-by: Peter Griffin Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig | 10 - drivers/phy/Makefile|

[PATCH 07/20] phy: rockchip-inno-usb2: correct clk_ops callback

2016-11-18 Thread Kishon Vijay Abraham I
From: William Wu Since we needs to delay ~1ms to wait for 480MHz output clock of USB2 PHY to become stable after turn on it, the delay time is pretty long for something that's supposed to be "atomic" like a clk_enable(). Consider that clk_enable() will disable interrupt and that a 1ms interrupt l

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-18 Thread Thomas Gleixner
On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: > The powerpc dts file does not have the xlnx,kind-of-intr property. > Instead of erroring out, give a warning instead. And attempt to > continue to probe the interrupt controller while assuming > kind-of-intr is 0x0 as a fall back. This is br

[PATCH 06/20] phy: rockchip-inno-usb2: support otg-port for rk3399

2016-11-18 Thread Kishon Vijay Abraham I
From: William Wu The rk3399 SoC USB2 PHY is comprised of one Host port and one OTG port. And OTG port is for USB2.0 part of USB3.0 OTG controller, as a part to construct a fully feature Type-C subsystem. With this patch, we can support OTG port with the following functions: - Support BC1.2 charg

[PATCH 03/20] phy: meson: add USB2 PHY support for Meson8b and GXBB

2016-11-18 Thread Kishon Vijay Abraham I
From: Martin Blumenstingl This is a new driver for the USB PHY found in Meson8b and GXBB SoCs. Signed-off-by: Martin Blumenstingl Signed-off-by: Jerome Brunet Tested-by: Kevin Hilman Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig| 13 ++ drivers/phy/Makefile

[PATCH 04/20] phy: meson8b-usb2: fix missing clk_disable_unprepare() on error

2016-11-18 Thread Kishon Vijay Abraham I
From: Wei Yongjun Fix the missing clk_disable_unprepare() before return from phy_meson8b_usb2_power_on() in the error handling case. Signed-off-by: Wei Yongjun Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-meson8b-usb2.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/dr

[PATCH 01/20] Documentation: dt-bindings: update the meson-usb2-phy example

2016-11-18 Thread Kishon Vijay Abraham I
From: Martin Blumenstingl Update the example so the node name uses a dash (instead of an underscore) as per convention. Additionally it updates the example register offset to a real example (the old value was taken from a draft where there was an additional PHY bus). Acked-by: Rob Herring Signe

[GIT PULL] phy: for 4.10

2016-11-18 Thread Kishon Vijay Abraham I
Hi Greg, Please find the pull request for 4.10 merge window below. Major changes include adding anew phy driver for meson8b/gxbb SoC, removing a couple of phy drivers from unsupported SoCs, adding sysfs entry to perform usb role swap in rcar SoC and adding support for otg port in rk3399. It also i

Re: [PATCH 01/16] ARM: scu: Provide support for parsing SCU device node to enable SCU

2016-11-18 Thread Arnd Bergmann
On Friday, November 18, 2016 12:48:07 PM CET Russell King - ARM Linux wrote: > On Fri, Nov 18, 2016 at 01:14:35PM +0100, Arnd Bergmann wrote: > > @@ -41,6 +43,9 @@ void scu_enable(void __iomem *scu_base) > > { > > u32 scu_ctrl; > > > > + if (scu_base) > > + scu_base = scu_b

[PATCH 12/20] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-11-18 Thread Kishon Vijay Abraham I
From: Yoshihiro Shimoda This patch adds sysfs "role" for usb role swap. This parameter can be read and write. If you use this file as the following, you can swap the usb role. For example: 1) Connect a usb cable using 2 Salvator-x boards 2) On A-Device (ID pin is low), you input the following

[PATCHv2]: staging: Greybus: Remove unnecessary braces for single statement block

2016-11-18 Thread Rahul Krishnan
This patch fixes the following checkpath.pl warning WARNING: braces {} are not necessary for single statement blocks Fixed indentation error, noted by Dan Carpenter Signed-off-by: Rahul Krishnan --- drivers/staging/greybus/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 10/20] phy: stih41x-usb: Remove usb phy driver and dt binding documentation.

2016-11-18 Thread Kishon Vijay Abraham I
From: Peter Griffin This phy is only used on STiH415/6 based silicon, and support for these SoC's is being removed from the kernel. Signed-off-by: Peter Griffin Acked-by: Rob Herring Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig |8 -- drivers/phy/Makefile

[PATCH 11/20] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-11-18 Thread Kishon Vijay Abraham I
From: Alexandre Bailon If we configure the da8xx OTG phy in OTG mode, neither device or host mode will work. That is because the PHY is not able to detect and notify the driver that value of ID pin changed. To work despite this hardware limitation, the da8xx glue implement a workaround. But to wo

[PATCH 02/20] Documentation: dt-bindings: rename meson-usb2-phy to meson8b-usb2-phy

2016-11-18 Thread Kishon Vijay Abraham I
From: Martin Blumenstingl The corresponding driver only supports the USB PHY on Meson8b and GXBB SoCs. Newer SoC versions are using a different USB PHY implementation, which will mean that a new driver is required. Thus make sure that our naming is specific enough so it does not conflict with upc

Re: [PATCH RFC tip/core/rcu] SRCU rewrite

2016-11-18 Thread Paul E. McKenney
On Thu, Nov 17, 2016 at 11:53:04AM -0800, Lance Roy wrote: > On Thu, 17 Nov 2016 21:58:34 +0800 > Lai Jiangshan wrote: > > from the changelog, it sounds like that "ULONG_MAX - NR_CPUS" is the limit > > of the implements(old or this one). but actually the real max number of > > active readers is mu

Re: [PATCH v5] mailbox: Add Tegra HSP driver

2016-11-18 Thread Thierry Reding
On Fri, Nov 18, 2016 at 02:28:07PM +0530, Jassi Brar wrote: > On Wed, Nov 16, 2016 at 11:11 PM, Thierry Reding > wrote: > > From: Thierry Reding > > > > This driver exposes a mailbox interface for interprocessor communication > > using the Hardware Synchronization Primitives (HSP) module's doorbe

Re: [RFC][PATCH 0/4] Enhanced file stat system call

2016-11-18 Thread One Thousand Gnomes
> Hmmm... Interesting question. Probably should. But you could be insane and > RAID an nbd and a local disk. Further, does NFS over a loopback device to > nfsd on the same machine qualify as root? What if that's exposing a local fs > on NBD? Perhaps I should drop 'REMOTE' for now. It sounds l

Re: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-18 Thread Arnd Bergmann
On Friday, November 18, 2016 12:53:08 PM CET Gabriele Paoloni wrote: > From: Arnd Bergmann [mailto:a...@arndb.de] > > On Friday, November 18, 2016 12:07:28 PM CET Gabriele Paoloni wrote: > > > > I think there is no need to change a) here, we have PCIBIOS_MIN_IO > > > > today and even if we don't ne

Re: [PATCH 15/20] ARM/hw_breakpoint: Convert to hotplug state machine

2016-11-18 Thread Thomas Gleixner
On Fri, 18 Nov 2016, Will Deacon wrote: > On Fri, Nov 18, 2016 at 02:11:58PM +0100, Thomas Gleixner wrote: > > But it's guaranteed that cpuhp_setup_state() will not return before the > > callback has been invoked on each online cpu. > > Ok, that's good. > > > If cpus are not yet online when that

Re: [RFT] ARM: dts: exynos: Fix invalid GIC interrupt flags in audio block of Exynos5410

2016-11-18 Thread Sylwester Nawrocki
On 11/18/2016 01:59 PM, Krzysztof Kozlowski wrote: > Recently added audio block of Exynos5410 missed global fixup of GIC > interrupt flags. Interrupt of type IRQ_TYPE_NONE is not allowed for GIC > interrupts so use level high. > > Signed-off-by: Krzysztof Kozlowski Tested-by: Sylwester Nawrocki

[PATCH 1/2] ARM: dts: add devicetree for the Axentia TSE-850

2016-11-18 Thread Peter Rosin
Signed-off-by: Peter Rosin --- MAINTAINERS| 6 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/axentia-linea.dtsi | 52 +++ arch/arm/boot/dts/axentia-tse850-3.dts | 273 + 4 files changed, 332 insertions(+)

[PATCH 2/2] ARM: tse850_defconfig: add Axentia TSE-850

2016-11-18 Thread Peter Rosin
Signed-off-by: Peter Rosin --- MAINTAINERS| 1 + arch/arm/boot/dts/axentia-tse850-3.dts | 8 +- arch/arm/configs/tse850_defconfig | 223 + 3 files changed, 229 insertions(+), 3 deletions(-) create mode 100644 arch/arm/configs/t

Re: [PATCH] perf/x86/uncore: Allow single pmu/box within events group

2016-11-18 Thread Jiri Olsa
On Fri, Nov 18, 2016 at 01:53:54PM +0100, Peter Zijlstra wrote: SNIP > --- > arch/x86/events/intel/uncore.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c > index efca2685d876..7b1b34576886 100644

Re: [RFC][PATCH 0/4] Enhanced file stat system call

2016-11-18 Thread David Howells
One Thousand Gnomes wrote: > > Hmmm... Interesting question. Probably should. But you could be insane and > > RAID an nbd and a local disk. Further, does NFS over a loopback device to > > nfsd on the same machine qualify as root? What if that's exposing a local > > fs > > on NBD? Perhaps I

Re: [PATCH 15/20] ARM/hw_breakpoint: Convert to hotplug state machine

2016-11-18 Thread Will Deacon
On Fri, Nov 18, 2016 at 02:42:15PM +0100, Thomas Gleixner wrote: > On Fri, 18 Nov 2016, Will Deacon wrote: > > On Fri, Nov 18, 2016 at 02:11:58PM +0100, Thomas Gleixner wrote: > > > But it's guaranteed that cpuhp_setup_state() will not return before the > > > callback has been invoked on each onlin

Re: [PATCH v3] usb: dwc2: add amcc,dwc-otg support

2016-11-18 Thread Rob Herring
On Tue, Nov 15, 2016 at 03:03:40PM -0800, John Youn wrote: > From: Christian Lamparter > > This patch adds support for the "amcc,usb-otg" device > which is found in the PowerPC Canyonlands' dts. > > The device definition was added by: > > commit c89b3458d8cc ("powerpc/44x: Add USB DWC DTS entry

Re: why is the sys_close symbol exported ?

2016-11-18 Thread One Thousand Gnomes
On Fri, 18 Nov 2016 09:56:52 +0100 jmfriedt wrote: > Following the various rootkit and system call redirection developments, the > current > way of identifying the location of the system call table seems to be brute > force scanning > the memory for the location of one of the system calls. Thi

Re: [RFC v3 1/6] Track the active utilisation

2016-11-18 Thread Peter Zijlstra
On Mon, Oct 24, 2016 at 04:06:33PM +0200, Luca Abeni wrote: > @@ -498,6 +514,8 @@ static void update_dl_entity(struct sched_dl_entity > *dl_se, > struct dl_rq *dl_rq = dl_rq_of_se(dl_se); > struct rq *rq = rq_of_dl_rq(dl_rq); > > + add_running_bw(dl_se, dl_rq); > + > if (d

Re: [PATCH 15/20] ARM/hw_breakpoint: Convert to hotplug state machine

2016-11-18 Thread Thomas Gleixner
On Fri, 18 Nov 2016, Will Deacon wrote: > On Fri, Nov 18, 2016 at 02:42:15PM +0100, Thomas Gleixner wrote: > > On Fri, 18 Nov 2016, Will Deacon wrote: > > > On Fri, Nov 18, 2016 at 02:11:58PM +0100, Thomas Gleixner wrote: > > > > But it's guaranteed that cpuhp_setup_state() will not return before t

[PATCH] drm: mediatek: use ERR_CAST inlined function

2016-11-18 Thread Geliang Tang
Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)). Signed-off-by: Geliang Tang --- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_gem.c b/drivers/gpu/drm/mediatek/mtk_drm_gem.c index 7abc55

Re: [PATCH] perf/x86/uncore: Allow single pmu/box within events group

2016-11-18 Thread Peter Zijlstra
On Fri, Nov 18, 2016 at 02:48:59PM +0100, Jiri Olsa wrote: > On Fri, Nov 18, 2016 at 01:53:54PM +0100, Peter Zijlstra wrote: > > SNIP > > > --- > > arch/x86/events/intel/uncore.c | 8 > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > diff --git a/arch/x86/events/intel/uncore.

Re: [RFC PATCH] SRCU: More efficient reader counts.

2016-11-18 Thread Paul E. McKenney
On Thu, Nov 17, 2016 at 02:03:35PM -0800, Lance Roy wrote: > SRCU uses two per-cpu counters: a nesting counter to count the number of > active critical sections, and a sequence counter to ensure that the nesting > counters don't change while they are being added together in > srcu_readers_active_id

Re: [PATCHv0 1/1] fbdev: add Intel FPGA FRAME BUFFER driver

2016-11-18 Thread Rob Herring
On Wed, Nov 16, 2016 at 05:07:58PM +0800, Ong, Hean Loong wrote: > From: Ong Hean Loong > > This patch enables the display port IP driver for > Intel Arria 10 SOCFPGA Golden Hardware > Reference Design (GHRD). > > The driver requires enabling the options such as > C

<    1   2   3   4   5   6   7   8   9   >