Re: [PATCH 0/8] Remove deprecated workqueue interface users

2016-08-16 Thread Tejun Heo
Hello, Sebastian. On Tue, Aug 16, 2016 at 02:23:21AM +0200, Sebastian Reichel wrote: > At least the charger monitoring is timing critical: Many charger > chips must be monitored (e.g. for over-temp. events). I think > all of them have a self-protection, or a watchdog, so they would > actually stop

[PATCH 3/2+1] remoteproc: core: Move of_get_rproc() helper to header

2016-08-16 Thread Lee Jones
remoteproc: core: Move of_get_rproc() helper to header Since of_get_rproc() has been made a simple helper, we can move it to the remoteproc.h and make it a 'static inline'. Suggested-by: Suman Anna Signed-off-by: Lee Jones diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc

Re: RFC: callchain showing same entry as hist_entry

2016-08-16 Thread Jiri Olsa
On Tue, Aug 16, 2016 at 11:36:28AM -0300, Arnaldo Carvalho de Melo wrote: > Hi Namhyung, Jiri, > > please take a look at the patch below, and Ack if possible, it > is a problem introduced in: > > cfaa154b2335 ("perf tools: Get rid of obsolete hist_entry__sort_list") > > That is not equiv

[PATCH v11 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-08-16 Thread William Wu
This patch adds the devicetree documentation required for Rockchip USB3.0 core wrapper consisting of USB3.0 IP from Synopsys. It supports DRD mode, and could operate in device mode (SS, HS, FS) and host mode (SS, HS, FS, LS). Signed-off-by: William Wu Acked-by: Rob Herring --- Changes in v11: -

[PATCH v11 0/5] support rockchip dwc3 driver

2016-08-16 Thread William Wu
This series add support for rockchip DWC3 driver, and add additional optional properties for specific platforms (e.g., rockchip rk3399 platform). The DesignWare USB3 integrated in rockchip SoCs is a configurable IP Core which can be instantiated as Dual-Role Device (DRD), Host Only (XHCI) and Peri

[PATCH v11 1/5] usb: dwc3: of-simple: add compatible for rockchip rk3399

2016-08-16 Thread William Wu
Rockchip platform merely enable usb3 clocks and populate its children. So we can use this generic glue layer to support Rockchip dwc3. Signed-off-by: William Wu --- Changes in v11: - add compatible in dwc3-of-simple.c, and remove dwc3-rockchip.c (balbi) Changes in v10: - None Changes in v9: - r

[PATCH v11 2/5] usb: dwc3: add dis_u2_freeclk_exists_quirk

2016-08-16 Thread William Wu
Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, which specifies whether the USB2.0 PHY provides a free-running PHY clock, which is active when the clock control input is active. Signed-off-by: William Wu Acked-by: Rob Herring --- Changes in v11: - None Changes in v10: - None Change

[PATCH v11 3/5] usb: dwc3: make usb2 phy utmi interface configurable

2016-08-16 Thread William Wu
Support to configure the UTMI+ PHY with an 8- or 16-bit interface via DT. The UTMI+ PHY interface is a hardware capability, and it's platform dependent. Normally, the PHYIF can be configured during coreconsultant. But for some specific USB cores(e.g. rk3399 SoC DWC3), the default PHYIF configurati

[PATCH] net: ipconfig: Fix more use after free

2016-08-16 Thread Thierry Reding
he call to ic_close_devs() to the very end of the function. Signed-off-by: Thierry Reding --- This applies on top of next-20160816. net/ipv4/ipconfig.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 66c2fe602810..ba9cbeafb

[PATCH v11 4/5] usb: dwc3: add dis_del_phy_power_chg_quirk

2016-08-16 Thread William Wu
Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit, which specifies whether disable delay PHY power change from P0 to P1/P2/P3 when link state changing from U0 to U1/U2/U3 respectively. Signed-off-by: William Wu Acked-by: Rob Herring --- Changes in v11: - None Changes in v10: - None Change

[PULL] vhost: fixes for 4.8

2016-08-16 Thread Michael S. Tsirkin
The following changes since commit 3b2fbb3f06efe5bd2dfdce2a1db703e23c1a78af: virtio/s390: deprecate old transport (2016-08-09 13:42:41 +0300) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to 6be

Re: [PATCH] arm: module-plts: improve algorithm for counting PLTs

2016-08-16 Thread Ard Biesheuvel
(+ Dave) Hello Jongsung, On 16 August 2016 at 14:55, Jongsung Kim wrote: > Current count_plts() uses O(n^2) algorithm for counting distinct > PLTs. It's good and fast enough when handling relatively small > number of relocs. But the time for counting grows so fast by its > nature. A Cortex-A53 o

[PATCH v2 2/2] remoteproc: core: Rework obtaining a rproc from a DT phandle

2016-08-16 Thread Lee Jones
In this patch we; - Use a subsystem generic phandle to obtain an rproc - We have to support TI's bespoke version for the time being - Convert wkup_m3_ipc driver to new API - Rename the call to be more like other, similar OF calls - Move feature-not-enabled inline stub to the headers - Strip

[PATCH v2 1/2] remoteproc: core: Add rproc OF look-up functions

2016-08-16 Thread Lee Jones
- of_rproc_by_index(): look-up and obtain a reference to a rproc using the DT phandle "rprocs" and a index. - of_rproc_by_name(): lookup and obtain a reference to a rproc using the DT phandle "rprocs" and "rproc-names". Signed-off-by: Ludovic Barre

Re: uprobes: memory leak in enable/disable loop

2016-08-16 Thread Michal Hocko
On Tue 16-08-16 16:25:12, Oleg Nesterov wrote: > On 08/16, Oleg Nesterov wrote: > > > > On 08/15, Brenden Blanco wrote: > > > > > > Hi folks, > > > > > > I think I have come across a memory leak in uprobes, which is fairly easy > > > to > > > reproduce. > > > > At first glance this looks as a prob

Re: Is kernel-FD-auto-close exactly equal to explicit-FD-close?

2016-08-16 Thread Ajay Garg
Just discovered that calling "exit(1)" calls "fcloseall()". But as I notice, the opened-serial-port (via "open()" call) is also closed at binary exit. So, is the serial-port closed by hidden "fcloseall()" call, or by the kernel? Moreover, is this equivalent to calling explicit "close()" call on t

Re: [PATCH v2] Added perf functionality to mmdc driver

2016-08-16 Thread Mark Rutland
On Tue, Aug 16, 2016 at 02:40:43PM +, Zhengyu Shen wrote: > > > Added cpumask and migration handling support to driver > > > Validated event during event_init > > > Added code to properly stop counters > > > Used perf_invalid_context instead of perf_sw_context > > > Added hrtimer to p

RFC: callchain showing same entry as hist_entry

2016-08-16 Thread Arnaldo Carvalho de Melo
Hi Namhyung, Jiri, please take a look at the patch below, and Ack if possible, it is a problem introduced in: cfaa154b2335 ("perf tools: Get rid of obsolete hist_entry__sort_list") That is not equivalent to the code that was there and results in having the same entry as the first entry

Re: uprobes: memory leak in enable/disable loop

2016-08-16 Thread Oleg Nesterov
On 08/16, Oleg Nesterov wrote: > > On 08/16, Oleg Nesterov wrote: > > > > On 08/15, Brenden Blanco wrote: > > > > > > Hi folks, > > > > > > I think I have come across a memory leak in uprobes, which is fairly easy > > > to > > > reproduce. > > > > At first glance this looks as a problem in memcg,

Re: Why do we need reset_control_get_optional() ?

2016-08-16 Thread Masahiro Yamada
Hi Philipp, Arnd. 2016-08-09 1:39 GMT+09:00 Philipp Zabel : > Am Freitag, den 05.08.2016, 17:50 +0200 schrieb Arnd Bergmann: >> On Thursday, July 28, 2016 1:00:49 PM CEST Philipp Zabel wrote: >> > Am Donnerstag, den 28.07.2016, 19:52 +0900 schrieb Masahiro Yamada: >> >> > > > In my experimental

Re: [PREEMPT-RT] [patch 4 14/22] timer: Switch to a non cascading wheel

2016-08-16 Thread Eric Dumazet
On Tue, Aug 16, 2016 at 5:46 AM, Richard Cochran wrote: > Jouni, > > If I understand the test correctly, then the slightly different kernel > timer behavior is ok, but the test isn't quite right. Let explain > what I mean. > > First off, reading test_ap_wps.py, the point of the test is to see if

Re: [PATCH] net: sched: fix handling of singleton qdiscs with qdisc_hash

2016-08-16 Thread Jiri Kosina
On Tue, 16 Aug 2016, Jiri Kosina wrote: > From: Jiri Kosina > > qdisc_match_from_root() is now iterating over per-netdevice qdisc > hashtable instead of going through a linked-list of qdiscs (independently > on the actual underlying netdev), which used to be the case before the > switch to ha

[PATCH] reset: prepare to deprecate _optional APIs

2016-08-16 Thread Masahiro Yamada
When the reset control sub-system was initially supported, there were no stubs, so none of reset consumers could be built without CONFIG_RESET_CONTROLLER defined. The motivation for this was to prevent the misconfigured kernel from being generated. Then, commit b424080a9e08 ("reset: Add optional

Re: uprobes: memory leak in enable/disable loop

2016-08-16 Thread Oleg Nesterov
On 08/16, Oleg Nesterov wrote: > > On 08/15, Brenden Blanco wrote: > > > > Hi folks, > > > > I think I have come across a memory leak in uprobes, which is fairly easy to > > reproduce. > > At first glance this looks as a problem in memcg, add CC's... > > put_page(old_page) looks properly balanced,

[PATCH v2] pwm: samsung: fix to use lowest div for large enough modulation bits

2016-08-16 Thread Seung-Woo Kim
>From pwm_samsung_calc_tin(), there is routine to find the lowest divider possible to generate lower frequency than requested one. But it is always possible to generate requested frequency with large enough modulation bits except s3c24xx, so this patch fixes to use lowest div for the case. This pat

[RESEND PATCH] [media] vb2: Fix vb2_core_dqbuf() kernel-doc

2016-08-16 Thread Javier Martinez Canillas
The kernel-doc has the wrong function name and also the pindex parameter is missing in the documentation. Signed-off-by: Javier Martinez Canillas --- This patch was posted some weeks ago but I noticed that wasn't picked by patchwork, so I'm resend it. drivers/media/v4l2-core/videobuf2-core.c

Re: [PATCH] time,virt: resync steal time when guest & host lose sync

2016-08-16 Thread Rik van Riel
On Tue, 2016-08-16 at 14:54 +0800, Wanpeng Li wrote: > 2016-08-16 10:11 GMT+08:00 Rik van Riel : > > On Tue, 2016-08-16 at 09:31 +0800, Wanpeng Li wrote: > > > 2016-08-15 23:00 GMT+08:00 Rik van Riel : > > > > On Mon, 2016-08-15 at 16:53 +0800, Wanpeng Li wrote: > > > > > 2016-08-12 23:58 GMT+08:00

Re: [PATCH 0/4] arm64: marvell: add support for the PIC and PMU

2016-08-16 Thread Jason Cooper
Hi Thomas, On Fri, Aug 05, 2016 at 04:55:17PM +0200, Thomas Petazzoni wrote: > Hello, > > This small patch series intends to add support for the PMU of the > Cortex-A72 cores found in the Marvell Armada 7K/8K SoCs. > > However, the interrupt of the PMU is not directly connected to the > GIC, but

Re: [RFC 12/17] ASoC: samsung: Switch to new clock controller API

2016-08-16 Thread Mark Brown
On Tue, Aug 16, 2016 at 03:35:09PM +0200, Krzysztof Kozlowski wrote: > Allocate a clock controller and use new clk_register_with_ctrl() API. Acked-by: Mark Brown > i2s_unregister_clocks(i2s); > + clk_ctrl_unregister(i2s->clk_ctrl); devm? signature.asc Description: PGP signature

Re: uprobes: memory leak in enable/disable loop

2016-08-16 Thread Oleg Nesterov
On 08/15, Brenden Blanco wrote: > > Hi folks, > > I think I have come across a memory leak in uprobes, which is fairly easy to > reproduce. At first glance this looks as a problem in memcg, add CC's... put_page(old_page) looks properly balanced, and I assume we do not need the additional "uncharg

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-16 Thread De Marchi, Lucas
On Tue, 2016-08-16 at 17:00 +0300, Jarkko Nikula wrote: > Hi, + Wolfram > > On 07/29/2016 01:03 AM, Lucas De Marchi wrote: > > > > This adapter can be synthesized with dynamic tar update enabled or > > disabled. > > When enabled it is not necessary to disable the adapter to change > > the slave >

Re: [Documentation] State of CPU controller in cgroup v2

2016-08-16 Thread Peter Zijlstra
On Wed, Aug 10, 2016 at 06:09:44PM -0400, Johannes Weiner wrote: > [ That, and a disturbing number of emotional outbursts against > systemd, which has nothing to do with any of this. ] Oh, so I'm entirely dreaming this then: https://github.com/systemd/systemd/pull/3905 Completely unrelated.

[PATCH] genirq: Generic chip: verify irqs_per_chip <= 32

2016-08-16 Thread Sebastian Frias
Most (if not all) code here implicitly assumes that the maximum number of IRQs per chip will be 32, and thus uses 'u32' or 'unsigned long' for many tasks (for example "struct irq_data" declares its 'mask' field as 'u32', and "struct irq_chip_generic" declares its 'installed' field as 'unsigned long

Re: musb: am3358: having problem with high-speed on usb1 at peripheral

2016-08-16 Thread ayaka
On 08/16/2016 04:31 PM, Felipe Balbi wrote: Hi, Ayaka writes: ayaka writes: On 08/13/2016 01:44 AM, Greg KH wrote: On Sat, Aug 13, 2016 at 12:38:46AM +0800, ayaka wrote: On 08/12/2016 03:40 PM, Greg KH wrote: On Fri, Aug 12, 2016 at 10:23:15AM +0800, ayaka wrote: Hello all: I recen

RE: [PATCH] net: phy: Update copyright info

2016-08-16 Thread Appana Durga Kedareswara Rao
Hi Andrew > > On Tue, Aug 16, 2016 at 11:58:29AM +0530, Kedareswara rao Appana wrote: > > For implementing this driver most of the inputs is provided by Andrew > > Lunn. > > > > Updating the driver with Andrew Copy right. > > > > Signed-off-by: Kedareswara rao Appana > > O.K, so this is a start

Re: [PATCH v3 1/3] i2c: designware: wait for disable/enable only if necessary

2016-08-16 Thread Jarkko Nikula
Hi, + Wolfram On 07/29/2016 01:03 AM, Lucas De Marchi wrote: From: José Roberto de Souza If we aren't going to continue using the controller we can just disable it instead of waiting for it to complete. The biggest improvement here is when a I2C transaction is completed and it doesn't block un

Re: [PATCH v3 2/3] i2c: designware: detect when dynamic tar update is possible

2016-08-16 Thread Jarkko Nikula
Hi, + Wolfram On 07/29/2016 01:03 AM, Lucas De Marchi wrote: This adapter can be synthesized with dynamic tar update enabled or disabled. When enabled it is not necessary to disable the adapter to change the slave address in some situations, which saves some time per transaction. There is no di

Re: [PATCH] [media] vb2: move dma-buf unmap from __vb2_dqbuf() to vb2_buffer_done()

2016-08-16 Thread Javier Martinez Canillas
Hello Hans, Thanks a lot for your feedback. On 08/13/2016 09:47 AM, Hans Verkuil wrote: > On 07/20/2016 08:22 PM, Javier Martinez Canillas wrote: >> Currently the dma-buf is unmapped when the buffer is dequeued by userspace >> but it's not used anymore after the driver finished processing the buf

Re: [PATCH v3 3/3] i2c: designware: do not disable adapter after transfer

2016-08-16 Thread Jarkko Nikula
Hi, + Wolfram On 07/29/2016 01:03 AM, Lucas De Marchi wrote: Disabling the adapter after each transfer adds additional delays for each I2C transfer. Even if we don't wait for it to be disabled anymore, on next transfer we will need to if we have several transfers in a row. Now during the transf

Re: [PATCH v2 3/8] dt-bindings: i2c: add support for 'i2c-gate' subnode

2016-08-16 Thread Rob Herring
On Mon, Aug 15, 2016 at 03:40:26PM +0200, Peter Rosin wrote: > Handle i2c gates similarly to how i2c arbitrators are handled. > This gets rid of a pointless 'reg' property for i2c gates. > > I.e. this new and more compact style > > some-gate { > i2c-gate { >

Re: [PATCH] clocksource: mips-gic-timer: make gic_clocksource_of_init return int

2016-08-16 Thread Daniel Lezcano
On 08/01/2016 05:35 AM, Paul Gortmaker wrote: > In commit d8152bf85d2c057fc39c3e20a4d623f524d9f09c: > ("clocksource/drivers/mips-gic-timer: Convert init function to return > error") > > several return values were added to a void function resulting in: > > clocksource/mips-gic-timer.c: In func

Re: [PATCH v3 11/13] sched/fair: Consider spare capacity in find_idlest_group()

2016-08-16 Thread Vincent Guittot
On 25 July 2016 at 15:34, Morten Rasmussen wrote: > In low-utilization scenarios comparing relative loads in > find_idlest_group() doesn't always lead to the most optimum choice. > Systems with groups containing different numbers of cpus and/or cpus of > different compute capacity are significantl

Re: [PATCH v6 0/2] J-Core interrupt controller support

2016-08-16 Thread Jason Cooper
Hi Rich, On Thu, Aug 04, 2016 at 02:31:18PM +, Jason Cooper wrote: > On Thu, Aug 04, 2016 at 04:30:36AM +, Rich Felker wrote: > > Updated based on feedback from Thomas Gleixner. Removal of unnecessary > > data allowed some simplification. Magic numbers have been replaced > > with meaningfu

[PATCH] memory: atmel-sdramc: fix a possible NULL dereference

2016-08-16 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. For fixing this problem, we use of_device_get_match_data(), this will simplify the code a little by using a standard function for getting the match data. Signed-off-by: LABBE Corentin --- drivers/memory/atmel-sdra

Re: [RFC 3/7] dt: bindings: Add nokia-bluetooth

2016-08-16 Thread Rob Herring
On Sat, Aug 13, 2016 at 05:14:34AM +0200, Sebastian Reichel wrote: > --- > .../devicetree/bindings/net/nokia-bluetooth.txt| 43 > ++ > 1 file changed, 43 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/nokia-bluetooth.txt > > diff --git a/Documen

Re: [PATCH] hwmon-SCPI: Delete unnecessary assignment for the field "owner"

2016-08-16 Thread Sudeep Holla
On 16/08/16 14:32, SF Markus Elfring wrote: From: Markus Elfring Date: Tue, 16 Aug 2016 15:17:13 +0200 The field "owner" is set by the core. Thus delete an unneeded initialisation. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Markus Elfring Acked-by: Sud

Re: [RFC 00/17] clk: Add per-controller locks to fix deadlocks

2016-08-16 Thread Krzysztof Kozlowski
On 08/16/2016 03:34 PM, Krzysztof Kozlowski wrote: > Hi, > > RFC, please, do not apply, maybe except patch #1 which is harmless. > > > Introduction > > The patchset brings new entity: clock controller representing a hardware > block. The clock controller comes with its own prepare

Re: [PATCH v2 1/4] pwm: Add support for Meson PWM Controller

2016-08-16 Thread Neil Armstrong
Hi Martin, On 08/15/2016 06:55 PM, Martin Blumenstingl wrote: > On Sun, Jul 10, 2016 at 11:24 AM, Neil Armstrong [...] >> +static int meson_pwm_calc(struct meson_pwm_chip *chip, >> + struct meson_pwm_channel *pwm_chan, >> + unsigned int i

Re: [tip:x86/boot] x86/mm: Enable KASLR for physical mapping memory regions

2016-08-16 Thread Borislav Petkov
On Tue, Aug 16, 2016 at 03:42:05PM +0200, Borislav Petkov wrote: > I'll try to reproduce and fix this at some point but am away currently > so don't hold your breath. Does "dis_ucode_ldr" on the kernel cmdline > get you any further? Just a stab in the dark: does something like that help? --- diff

[PATCH v3 2/4] Drivers: hv: balloon: account for gaps in hot add regions

2016-08-16 Thread Vitaly Kuznetsov
I'm observing the following hot add requests from the WS2012 host: hot_add_req: start_pfn = 0x108200 count = 330752 hot_add_req: start_pfn = 0x158e00 count = 193536 hot_add_req: start_pfn = 0x188400 count = 239616 As the host doesn't specify hot add regions we're trying to create 128Mb-aligned re

[PATCH v3 0/4] Drivers: hv: balloon: fix WS2012 memory hotplug issues and do some cleanup

2016-08-16 Thread Vitaly Kuznetsov
Changes since v2: - check for gaps when onlining 'tails' in hv_bring_pgs_online() too [Alex Ng] Changes since v1: - Keep ol_waitevent and wait when kernel memory onlining is disabled [Alex Ng] Crashes with Hyper-V balloon driver are reported with WS2012 (non-R2), hosts I was able to identify two

[PATCH v3 3/4] Drivers: hv: balloon: don't wait for ol_waitevent when memhp_auto_online is enabled

2016-08-16 Thread Vitaly Kuznetsov
With the recently introduced in-kernel memory onlining (MEMORY_HOTPLUG_DEFAULT_ONLINE) these is no point in waiting for pages to come online in the driver and we can get rid of the waiting. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_balloon.c | 15 +-- 1 file changed, 9 insert

[PATCH v3 1/4] Drivers: hv: balloon: keep track of where ha_region starts

2016-08-16 Thread Vitaly Kuznetsov
Windows 2012 (non-R2) does not specify hot add region in hot add requests and the logic in hot_add_req() is trying to find a 128Mb-aligned region covering the request. It may also happen that host's requests are not 128Mb aligned and the created ha_region will start before the first specified PFN.

[PATCH v3 4/4] Drivers: hv: balloon: replace ha_region_mutex with spinlock

2016-08-16 Thread Vitaly Kuznetsov
lockdep reports possible circular locking dependency when udev is used for memory onlining: systemd-udevd/3996 is trying to acquire lock: ((memory_chain).rwsem){.+}, at: [] __blocking_notifier_call_chain+0x4e/0xc0 but task is already holding lock: (&dm_device.ha_region_mutex){+.+.+.},

[RFC 16/17] Revert "i2c: exynos5: Fix possible ABBA deadlock by keeping I2C clock prepared"

2016-08-16 Thread Krzysztof Kozlowski
This reverts commit 10ff4c5239a137abfc896ec73ef3d15a0f86a16a. --- drivers/i2c/busses/i2c-exynos5.c | 24 +--- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index c0e3ada02876..8710052eeb6b 1006

Re: [tip:x86/boot] x86/mm: Enable KASLR for physical mapping memory regions

2016-08-16 Thread Borislav Petkov
On Tue, Aug 16, 2016 at 07:31:20AM -0400, Brian Gerst wrote: > That didn't provide any useful information. However, when I boot with > "nosmp", I do get an oops in load_microcode_amd(). I can't capture > the oops message (no serial console), but it's being called from > save_microcode_in_initrd_a

[RFC 02/17] clk: Add clock controller to fine-grain the prepare lock

2016-08-16 Thread Krzysztof Kozlowski
Add a new entity - clock controller - so the global clock prepare lock could be fine-grained per controller. The controller is an abstract way of representing a hardware block. It overlaps a little with clock provider so there is a potential of merging them. The clock hierarchy might span betwee

Re: [PATCH v2 1/2] mfd: cros_ec: Add MKBP event support

2016-08-16 Thread Lee Jones
On Wed, 10 Aug 2016, Enric Balletbo i Serra wrote: > From: Vic Yang > > Newer revisions of the ChromeOS EC add more events besides the keyboard > ones. So handle interrupts in the MFD driver and let consumers register > for notifications for the events they might care. > > To keep backward comp

[RFC 01/17] clk: bcm2835: Rename clk_register to avoid name conflict

2016-08-16 Thread Krzysztof Kozlowski
During clk_register_*() API refactoring, macros will be used for hiding and narrowing the scope of changes thus leading to a name conflict with clk_register found in bcm2835 clk driver. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/bcm/clk-bcm2835.c | 8 1 file changed, 4 insertion

[RFC 03/17] clk: s2mps11: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-s2mps11.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c index fbaa84a33c46..881f1e226

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

2016-08-16 Thread Pavel Andrianov
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 --- drivers/net/ethernet/smsc/smc91c92_cs.c | 3 +++ 1 file changed, 3 in

[RFC 11/17] clk: gpio: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-gpio.c | 29 + include/linux/clk-provider.h | 12 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/drivers/c

[RFC 12/17] ASoC: samsung: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- sound/soc/samsung/i2s.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index fa3ff03d97d5..1ec90daa4d

[RFC 07/17] clk: mux: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-mux.c| 32 ++-- drivers/clk/samsung/clk.c| 4 ++-- include/linux/clk-provider.h | 12 3 files changed, 28 insertions(

[RFC 06/17] clk: gate: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-gate.c | 8 +--- drivers/clk/samsung/clk.c| 5 +++-- include/linux/clk-provider.h | 6 -- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a

[RFC 00/17] clk: Add per-controller locks to fix deadlocks

2016-08-16 Thread Krzysztof Kozlowski
Hi, RFC, please, do not apply, maybe except patch #1 which is harmless. Introduction The patchset brings new entity: clock controller representing a hardware block. The clock controller comes with its own prepare lock which is used then in many places. The idea is to fix the deadl

[RFC 08/17] clk: fixed-factor: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-fixed-factor.c | 11 +++ drivers/clk/samsung/clk.c | 2 +- include/linux/clk-provider.h | 4 +++- 3 files changed, 11 insertions(+), 6 deletions(-) diff

[PATCH v2] ARM: Add missing newline terminators to kernel messages

2016-08-16 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- Before commit 874f9c7da9a4acbc ("printk: create pr_ functions"), pr_*() calls without a trailing newline characters would be printed with a newline character appended, both on the console and in the output of the dmesg command. After that commit, no new line

[RFC 15/17] clk: Use per-controller locking

2016-08-16 Thread Krzysztof Kozlowski
Replace global prepare lock with a more fine-grained solution - per clock controller locks. The global lock is unfortunately still present and used on some paths but at least the prepare path could be simplified. This directly removes the deadlocks mentioned in: 1. commit 10ff4c5239a1 ("i2c: exyn

[RFC 13/17] clk: samsung: audss: samsung: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos-audss.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos-audss.c b/drive

[RFC 09/17] clk: divider: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-divider.c| 10 +++--- drivers/clk/clk-fractional-divider.c | 5 +++-- drivers/clk/samsung/clk.c| 8 include/linux/clk-provider.h

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-16 Thread Bjorn Helgaas
On Tue, Aug 16, 2016 at 04:04:31PM +0800, Yong, Jonathan wrote: > On 08/16/2016 02:59, Bjorn Helgaas wrote: > > > > I guess I was hoping you could test these patches. Do you have any > > way to do that? > > > > No real hardware with this feature yet, so testing is entirely on software. OK, let

[RFC 10/17] clk: composite: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-composite.c | 8 +--- include/linux/clk-provider.h | 6 -- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk-composite.c b/drivers/cl

[RFC 14/17] clk: samsung: clkout: samsung: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos-clkout.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos-clkout.c b/drivers/clk/samsung/clk-

[RFC 17/17] Revert "i2c: s3c2410: fix ABBA deadlock by keeping clock prepared"

2016-08-16 Thread Krzysztof Kozlowski
This reverts commit 34e81ad5f0b60007c95995eb7803da7e00c6c611. Signed-off-by: Krzysztof Kozlowski Conflicts: drivers/i2c/busses/i2c-s3c2410.c --- drivers/i2c/busses/i2c-s3c2410.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/i2c/buss

[RFC 04/17] clk: samsung: Allocate a clock controller in context

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and store it in context so it will be passed later for creating clocks. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk.c | 4 drivers/clk/samsung/clk.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/s

[RFC 05/17] clk: fixed-rate: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-fixed-rate.c | 28 ++-- drivers/clk/samsung/clk.c| 2 +- include/linux/clk-provider.h | 10 -- 3 files changed, 27 insertions(+), 13 d

[GIT PULL v2 00/11] perf/urgent fixes

2016-08-16 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, this time with the request-pull output, the patches are exactly the same as yesterday's. - Arnaldo Build stats: # time dm 1 70.159253018 alpine:3.4: Ok 2 27.099391445 android-ndk:r12b-arm: Ok 3 75.359247352 archlinux:latest: Ok 4 24.340381467

Re: [PATCH 1/3] clk: meson: Add GXBB AO Clock and Reset controller driver

2016-08-16 Thread Neil Armstrong
On 08/15/2016 02:08 AM, Paul Gortmaker wrote: > On Tue, Aug 9, 2016 at 5:13 AM, Neil Armstrong > wrote: >> Adds a Clock and Reset controller driver for the Always-On part >> of the Amlogic Meson GXBB SoC. >> >> It exports paired Clocks and Resets lines that will be used by >> peripherals in the A

Re: [PATCH 1/3] clk: meson: Add GXBB AO Clock and Reset controller driver

2016-08-16 Thread Neil Armstrong
Hi Stephen, On 08/13/2016 03:29 AM, Stephen Boyd wrote: > On 08/09, Neil Armstrong wrote: >> diff --git a/drivers/clk/meson/gxbb-aoclk.c b/drivers/clk/meson/gxbb-aoclk.c >> new file mode 100644 >> index 000..56a9186 >> --- /dev/null >> +++ b/drivers/clk/meson/gxbb-aoclk.c >> @@ -0,0 +1,203 @@

[PATCH] driver core: Add deferred_probe attribute to devices in sysfs

2016-08-16 Thread Ben Hutchings
It is sometimes useful to know that a device is on the deferred probe list rather than, say, not having a driver available. Expose this information to user-space. Signed-off-by: Ben Hutchings --- Documentation/ABI/testing/sysfs-devices-deferred_probe | 12 drivers/base/base.h

[PATCH] gpu: ipu-v3: fix a possible NULL dereference

2016-08-16 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. For fixing this problem, we use of_device_get_match_data(), this will simplify the code a little by using a standard function for getting the match data. Signed-off-by: LABBE Corentin --- drivers/gpu/ipu-v3/ipu-co

[PATCH] hwmon-SCPI: Delete unnecessary assignment for the field "owner"

2016-08-16 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 16 Aug 2016 15:17:13 +0200 The field "owner" is set by the core. Thus delete an unneeded initialisation. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Markus Elfring --- drivers/hwmon/scpi-hwmon.c | 1 - 1 file changed, 1 deleti

Re: [PATCH] Map in physical addresses in efi_map_region_fixed

2016-08-16 Thread Borislav Petkov
On Tue, Aug 16, 2016 at 01:30:28PM +0100, Matt Fleming wrote: > That's impossible, because that would mean we loaded the kexec kernel > over the top of physical pages of EFI services. We still need to be > able to invoke EFI services from kexec - we just can't change their > virtual mappings. Whic

Re: [PATCH] net: phy: Update copyright info

2016-08-16 Thread Andrew Lunn
On Tue, Aug 16, 2016 at 11:58:29AM +0530, Kedareswara rao Appana wrote: > For implementing this driver most of the inputs is > provided by Andrew Lunn. > > Updating the driver with Andrew Copy right. > > Signed-off-by: Kedareswara rao Appana O.K, so this is a start in correcting the damage. Th

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

2016-08-16 Thread Fengguang Wu
On Sun, Aug 14, 2016 at 06:17:24PM +0200, Christoph Hellwig wrote: Snipping the long contest: I think there are three observations here: (1) removing the mark_page_accessed (which is the only significant change in the parent commit) hurts the aim7/1BRD_48G-xfs-disk_rr-3000-performance/

Re: Problem with atomic accesses in pstore on some ARM CPUs

2016-08-16 Thread Guenter Roeck
On Tue, Aug 16, 2016 at 3:45 AM, Will Deacon wrote: > On Tue, Aug 16, 2016 at 11:32:04AM +0100, Robin Murphy wrote: >> On 16/08/16 00:19, Guenter Roeck wrote: >> > we are having a problem with atomic accesses in pstore on some ARM >> > CPUs (specifically rk3288 and rk3399). With those chips, atomi

Re: [PATCH v10 03/11] dmaengine: dw: override LLP support if asked in platform data

2016-08-16 Thread Eugeniy Paltsev
On Fri, 2016-08-12 at 19:01 +0300, Andy Shevchenko wrote: > There are at least two known devices, e.g. DMA controller found on > ARC AXS101 > SDP board, that have LLP register and no multi block transfer support > at the > same time. > > Override autodetection by user provided data. > > Reported-

Re: Problem with atomic accesses in pstore on some ARM CPUs

2016-08-16 Thread Will Deacon
On Tue, Aug 16, 2016 at 06:14:53AM -0700, Guenter Roeck wrote: > On Tue, Aug 16, 2016 at 3:32 AM, Robin Murphy wrote: > > On 16/08/16 00:19, Guenter Roeck wrote: > >> we are having a problem with atomic accesses in pstore on some ARM > >> CPUs (specifically rk3288 and rk3399). With those chips, at

Re: [PATCH v2 0/4] pwm: Add Amlogic Meson SoC PWM Controller

2016-08-16 Thread Kevin Hilman
On Wed, Aug 3, 2016 at 7:25 PM, Kevin Hilman wrote: > Hi Thierry, > > On Sun, Jul 10, 2016 at 2:27 AM, Neil Armstrong > wrote: >> Add support for the PWM controller found in Amlogic Meson SoCs. >> This controller provides a dual PWM output with 4 selectable clock source >> and a two level divide

[PATCH v2 0/1] pwm: sun4i: fix a possible NULL dereference

2016-08-16 Thread LABBE Corentin
Hello Change since v1: - Use of_device_get_match_data() LABBE Corentin (1): pwm: sun4i: fix a possible NULL dereference drivers/pwm/pwm-sun4i.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.7.3

[PATCH] nvmet-rdma: Fix use after free

2016-08-16 Thread Vincent Stehlé
Avoid dereferencing the queue pointer in nvmet_rdma_release_queue_work() after it has been freed by nvmet_rdma_free_queue(). Fixes: d8f7750a08968b10 ("nvmet-rdma: Correctly handle RDMA device hot removal") Signed-off-by: Vincent Stehlé Cc: Sagi Grimberg Cc: Christoph Hellwig --- drivers/nvme/t

[PATCH v2 1/1] pwm: sun4i: fix a possible NULL dereference

2016-08-16 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. For fixing this problem, we use of_device_get_match_data(), this will simplify the code a little by using a standard function for getting the match data. Reported-by: coverity (CID 1324139) Signed-off-by: LABBE Core

Re: [PATCH v5] mmc: sdhci-pci: add Support of Synopsys DWC_MSHC IP

2016-08-16 Thread Adrian Hunter
On 24/06/16 17:41, Prabu Thangamuthu wrote: > Patch to add Standard SD Host Controller Interface compliant > Synopsys sdhci-dwc controller driver. > > Signed-off-by: Prabu Thangamuthu I should have looked at this patch before now, sorry. There are some comments below, but nothing major. > --- >

Re: Problem with atomic accesses in pstore on some ARM CPUs

2016-08-16 Thread Guenter Roeck
On Tue, Aug 16, 2016 at 3:32 AM, Robin Murphy wrote: > Hi Guenter, > > On 16/08/16 00:19, Guenter Roeck wrote: >> Hi, >> >> we are having a problem with atomic accesses in pstore on some ARM >> CPUs (specifically rk3288 and rk3399). With those chips, atomic >> accesses fail with both pgprot_noncac

Re: [PATCH v0 4/4] i2c: meson: Use complete() instead of complete_all()

2016-08-16 Thread Kevin Hilman
Daniel Wagner writes: > From: Daniel Wagner > > There is only one waiter for the completion, therefore there > is no need to use complete_all(). Let's make that clear by > using complete() instead of complete_all(). > > The usage pattern of the completion is: > > meson_i2c_xfer_msg() > reinit_

Re: [PATCH] nvmet-rdma: Fix use after free

2016-08-16 Thread Sagi Grimberg
Avoid dereferencing the queue pointer in nvmet_rdma_release_queue_work() after it has been freed by nvmet_rdma_free_queue(). Fixes: d8f7750a08968b10 ("nvmet-rdma: Correctly handle RDMA device hot removal") Signed-off-by: Vincent Stehlé Cc: Sagi Grimberg Cc: Christoph Hellwig --- drivers/nvme/

Re: [PATCH] ARC: Change ld.as instruction to regular ld.

2016-08-16 Thread Alexey Brodkin
Hi Liav, On Tue, 2016-08-16 at 10:55 +0300, Liav Rehana wrote: > From: Liav Rehana > > The instruction ld.as takes as operands a base address and an offset, > and doesn't access the sum of these two, but the sum of the base > address and a shifted version of the offset. > This isn't what we want

Re: [PATCH 1/3] dt: cpufreq: brcm: New binding document for brcm-avs-cpufreq

2016-08-16 Thread Rob Herring
On Fri, Aug 12, 2016 at 04:25:29PM -0700, Markus Mayer wrote: > Add the binding document for the new brcm-avs-cpufreq driver. > > Signed-off-by: Markus Mayer > --- > .../bindings/cpufreq/brcm-avs-cpufreq.txt | 84 > ++ > MAINTAINERS

Re: [PATCH v3 2/3] drm: simpledrm: add fbdev fallback support

2016-08-16 Thread Noralf Trønnes
Den 15.08.2016 08:48, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:05PM +0200, Noralf Trønnes wrote: Create a simple fbdev device during SimpleDRM setup so legacy user-space and fbcon can use it. Original work by David Herrmann. Cc: dh.herrm...@gmail.com Signed-off-by: Noralf Trønnes -

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