Re: [PATCH v4 0/4] Add support for cros-ec-sensors

2016-08-16 Thread Lee Jones
On Mon, 15 Aug 2016, Jonathan Cameron wrote: > On 01/08/16 10:54, Enric Balletbo i Serra wrote: > > Hi, > > > > This is the four patchset to add support for the sensors behind the ChromeOS > > Embedded Controller. > > > > This version has only the patches to support common functions and 3d > > c

Re: [PATCH v2 0/2] cpufreq / sched: Rework of cpufreq_update_util() arguments

2016-08-16 Thread Peter Zijlstra
On Fri, Aug 12, 2016 at 02:01:29AM +0200, Rafael J. Wysocki wrote: > Hi, > > There were some comments on the "cpufreq / sched: cpufreq_update_util() flags > and iowait boosting" series I sent some time ago and I wanted to address them, > but for this purpose I had to combine patches [1-2,4/7] from

[PATCH] mtd: spi-nor: constify fsl_qspi_devtype_data

2016-08-16 Thread LABBE Corentin
All fsl_qspi_devtype_data structures are never modified. This patch constify them. Signed-off-by: LABBE Corentin --- drivers/mtd/spi-nor/fsl-quadspi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.

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

2016-08-16 Thread Jongsung Kim
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 operating at 1GHz takes about 10 seconds to count 4,819 distinct PLTs from 257,394 re

Re: [PATCH v2 1/2] devicetree: Add vendor prefix for Shenzhen Sunchip Technology Co., Ltd

2016-08-16 Thread Rob Herring
On Thu, Aug 11, 2016 at 10:11:51PM +0200, Rask Ingemann Lambertsen wrote: > Shenzhen Sunchip Technology Co., Ltd produces TV boxes and TV dongles, > some of which are sold under other brands. Website: > http://www.sunchip-tech.com/> > > Signed-off-by: Rask Ingemann Lambertsen > --- > Changes in v

Re: [PATCH v3 1/3] drm: add SimpleDRM driver

2016-08-16 Thread Noralf Trønnes
Den 15.08.2016 08:59, skrev Daniel Vetter: On Sun, Aug 14, 2016 at 06:52:04PM +0200, Noralf Trønnes wrote: The SimpleDRM driver binds to simple-framebuffer devices and provides a DRM/KMS API. It provides only a single CRTC+encoder+connector combination plus one initial mode. Userspace can crea

Re: [PATCH 1/1] rpmsg: virtio_rpmsg_bus: Fix randomly placed semi-colon

2016-08-16 Thread Lee Jones
On Wed, 20 Jul 2016, Lee Jones wrote: > It should never have been there in the first place. > > Signed-off-by: Lee Jones > --- > drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I'm assuming this was missed. Would you like me to send it again, or do you

Re: [PATCH 5/7] arm64: dts: exynos: Add dts files for Samsung Exynos5433 64bit SoC

2016-08-16 Thread Chanwoo Choi
Hi Krzysztof, On 2016년 08월 16일 19:29, Krzysztof Kozlowski wrote: > Hi Chanwoo, > > Thanks for the patch and for squashing all contributions into one. I > know that this removes individuals from authors but it makes development > consistent. Of course I don't mind splitting things if they are sent

Re: [v.1] clocksource:clps711x-timer:- Unmap a region obtained by remap

2016-08-16 Thread Daniel Lezcano
Hi Arvind, On 08/11/2016 07:41 PM, Arvind Yadav wrote: > iounmap frees the mapping when timer id is not matching. > > Signed-off-by: Arvind Yadav > --- Even if this fix is correct, it does actually rollback a minimalist part of what was done and only if the clock type is wrong. Can you properl

Re: [PATCH 5/7] arm64: dts: exynos: Add dts files for Samsung Exynos5433 64bit SoC

2016-08-16 Thread Chanwoo Choi
Hi Sylwester, On 2016년 08월 16일 19:50, Sylwester Nawrocki wrote: > Hi Chanwoo, > > On 08/16/2016 08:35 AM, Chanwoo Choi wrote: >> This patch adds new Exynos5433 dtsi to support 64-bit Exynos5433 SoC based on >> Octa-core CPUs (quad Cortex-A57 and quad Cortex-A53). And Exynos5433 supports >> PSCI (

Re: [PATCH v2] regulator: axp20x: support AXP803/AXP813 variants

2016-08-16 Thread Jean-Francois Moine
On Tue, 16 Aug 2016 19:30:17 +0800 Icenowy Zheng wrote: > > The X-Powers AXP803 and AXP813 PMICs are close to the AXP809 with some > > more outputs. > AXP803 and AXP813 is quite different. > AXP803 have 6 DCDCs and 16 LDOs&Switch. > AXP813 have 7 DCDCs and 15 LDOs&Switch. > and AXP813 have an aud

Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-16 Thread Oleg Nesterov
On 08/15, Bart Van Assche wrote: > > On 08/13/2016 09:32 AM, Oleg Nesterov wrote: >> On 08/12, Bart Van Assche wrote: >>> before I started testing. It took some time >>> before I could reproduce the hang in truncate_inode_pages_range(). >> >> all I can say this contradicts with the previous testing

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 -

Re: [PATCH v3 3/3] ARM64: dts: amlogic: meson-gxbb: Add watchdog node

2016-08-16 Thread Kevin Hilman
Guenter Roeck writes: > On 08/15/2016 01:40 PM, Kevin Hilman wrote: >> Kevin Hilman writes: >> >>> On Wed, Aug 3, 2016 at 5:27 PM, Kevin Hilman wrote: Hi Guenter, Kevin Hilman writes: > Guenter Roeck writes: > >> On 07/10/2016 02:11 AM, Neil Armstrong wrote: >>

Re: [PATCH 6/9] clocksource: kona: fix get_counter error handling

2016-08-16 Thread Daniel Lezcano
On 08/10/2016 11:54 PM, Arnd Bergmann wrote: > I could not figure out why, but gcc cannot prove that the > kona_timer_init function always initializes its two outputs, > and we get a warning for the use of the 'lsw' variable later, > which is obviously correct. > > drivers/clocksource/bcm_kona_tim

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 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/

[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

[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

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

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 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 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: [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: [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: [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

[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

[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] 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

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 @@

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

[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

[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

[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 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

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 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

[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 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

[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 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

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 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

[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){+.+.+.},

[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 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

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

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: [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] 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 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 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: [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 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 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] [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 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] 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: 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

[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: [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.

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: [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 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: [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

[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

[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

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] 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: [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

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: 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: 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: [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

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

[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

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