Re: [PATCH RESEND 7/8] pipe: account to kmemcg

2016-05-26 Thread Minchan Kim
On Wed, May 25, 2016 at 01:30:11PM +0300, Vladimir Davydov wrote: > On Tue, May 24, 2016 at 01:04:33PM -0700, Eric Dumazet wrote: > > On Tue, 2016-05-24 at 19:13 +0300, Vladimir Davydov wrote: > > > On Tue, May 24, 2016 at 05:59:02AM -0700, Eric Dumazet wrote: > > > ... > > > > > +static int anon_p

Re: [PATCH] blk-mq: clear q->mq_ops if init fail

2016-05-26 Thread Christoph Hellwig
On Wed, May 25, 2016 at 11:23:27PM -0700, Ming Lin wrote: > From: Ming Lin > > blk_mq_init_queue() calls blk_mq_init_allocated_queue(), but q->mq_ops > was not cleared when blk_mq_init_allocated_queue() fails. > Then blk_cleanup_queue() calls blk_mq_free_queue() which will crash because: > - q->a

Re: [PATCH] dwc3: gadget: Introduce dwc3_endpoint_xfer_xxx() to check endpoint type

2016-05-26 Thread Baolin Wang
Hi Felipe, On 26 May 2016 at 14:22, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> When handling the endpoint interrupt handler, it maybe disable the endpoint >> from another core user to set the USB endpoint descriptor pointor to be NULL >> while issuing usb_gadget_giveback_request() fu

Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency

2016-05-26 Thread Viresh Kumar
On 25-05-16, 19:53, Steve Muckle wrote: > The slow-path frequency transition path is relatively expensive as it > requires waking up a thread to do work. Should support be added for > remote CPU cpufreq updates that is also expensive since it requires an > IPI. These activities should be avoided if

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-26 Thread Jeff Chua
On Wed, May 25, 2016 at 11:51 PM, Al Viro wrote: > On Wed, May 25, 2016 at 05:30:22PM +0800, Jeff Chua wrote: >> On Wed, May 25, 2016 at 2:37 AM, Al Viro wrote: >> > On Tue, May 24, 2016 at 04:59:02PM +0100, Al Viro wrote: >> > >> >> Umm... Any chance of getting the function names to go with the

[PATCH v2 1/2] ARM: at91/dt: at91sam9260: Remove leading zeros in OHCI node.

2016-05-26 Thread Raashid Muhammed
From: Raashid Muhammed Remove leading zeros in OHCI node for at91sam9260 based boards. Signed-off-by: Raashid Muhammed Reviewed-by: Vijay Kumar B. --- arch/arm/boot/dts/aks-cdu.dts | 2 +- arch/arm/boot/dts/animeo_ip.dts | 2 +- arch/arm/boot/dts/at91-foxg20.dts

[PATCH v2 2/2] ARM: at91: Add DT support for Olimex SAM9-L9260 board.

2016-05-26 Thread Raashid Muhammed
From: Raashid Muhammed sam9-l9260 is a low cost board designed by Olimex. More information is available at: https://www.olimex.com/Products/ARM/Atmel/SAM9-L9260/ Signed-off-by: Raashid Muhammed Reviewed-by: Vijay Kumar B. --- Documentation/devicetree/bindings/arm/olimex.txt | 8 +- arch/ar

[PATCH 1/1 v3] hwmon: add support for Sensirion SHT3x sensors

2016-05-26 Thread Pascal Sachs
From: David Frey This driver implements support for the Sensirion SHT3x-DIS chip, a humidity and temperature sensor. Temperature is measured in degrees celsius, relative humidity is expressed as a percentage. In the sysfs interface, all values are scaled by 1000, i.e. the value for 31.5 degrees c

Re: [PATCH v7 2/4] CMDQ: Mediatek CMDQ driver

2016-05-26 Thread CK Hu
Hi, HS: Replay inline. On Tue, 2016-05-24 at 20:27 +0800, Horng-Shyang Liao wrote: > Hi CK, > > Reply in line. > > On Tue, 2016-05-24 at 11:05 +0800, CK Hu wrote: > > Hi, HS: > > > > Some comments below. > > > ... > > > +static void cmdq_thread_irq_handler(struct cmdq *cmdq, int tid) > > > +{

Re: [PATCH v2 2/4] dt-bindings: reset: Add bindings for the Meson SoC Reset Controller

2016-05-26 Thread Neil Armstrong
On 05/25/2016 09:10 PM, Rob Herring wrote: > On Wed, May 25, 2016 at 11:49:16AM +0200, Neil Armstrong wrote: >> Add DT bindings for the Meson SoC Reset Controller documentation and the >> associated include file. >> >> Signed-off-by: Neil Armstrong >> --- >> .../bindings/reset/amlogic,meson-reset

Bezpieczenstwa Alarm !!!

2016-05-26 Thread IT Administrator
Drogi email konta uzytkownika, Jest to automatyczna aktualizacja zabezpiecze 4;, aby poinformowac, ze Wykrylismy nieregularna aktywnosc na twojej, Nich konta e-mail zosta 2;y naruszone. moze nie byc w stanie wysy 2;ac i odbierac nowa poczte, az ponownie potwierdzic swoje konto e-ma

Re: [PATCH] mtd: ofpart: Assign device node to partitions parsed with ofpart

2016-05-26 Thread Boris Brezillon
On Tue, 24 May 2016 17:37:40 -0700 Moritz Fischer wrote: > This patch adds a struct device_node pointer to struct mtd_partition. > Partitions parsed via ofpart can now be referenced via devicetree. > > Cc: David Woodhouse > Cc: Brian Norris > > Signed-off-by: Moritz Fischer Acked-by: Boris

[PATCH] KVM: Handle MSR_IA32_PERF_CTL

2016-05-26 Thread kmeaw
From: Dmitry Bilunov Intel CPUs having Turbo Boost feature implement an MSR to provide a control interface via rdmsr/wrmsr instructions. One could detect the presence of this feature by issuing one of these instructions and handling the #GP exception which is generated in case the referenced MSR

Re: [v10, 7/7] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-05-26 Thread Ulf Hansson
On 26 May 2016 at 06:05, Yangbo Lu wrote: > Hi Uffe, > > Could we merge this patchset? ... > It has been a long time to wait for Arnd's response... > > Thanks a lot. > > As we are still in the merge window I won't queue anything but fixes. Let's give Arnd another week or so to respond. Kind rega

Re: ARM: dts: exynos: Add MFC memory banks for Peach boards

2016-05-26 Thread Javier Martinez Canillas
[adding Kevin and Sjoerd who also noticed issues with this patch] Hi Pankaj, On 05/25/2016 11:43 PM, pankaj.dubey wrote: > Hi Javier, > > On Wednesday 25 May 2016 08:32 PM, Javier Martinez Canillas wrote: >> Hello Pankaj, >> >> On 05/25/2016 04:33 AM, pankaj.dubey wrote: >>> Hi Javier, >>>

Re: [PATCH v4 01/18] of/platform: Add common method to populate default bus

2016-05-26 Thread Kefeng Wang
On 2016/5/25 22:46, Rob Herring wrote: > On Thu, May 12, 2016 at 7:05 AM, Kefeng Wang > wrote: >> The arch code calls of_platform_populate() with default match table >> when it want to populate default bus. >> >> This patch introduce a new of_platform_default_populate_init() and make it >> arch

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-26 Thread Hillf Danton
> > See if this fixes your reproducer. > > > > diff --git a/fs/xattr.c b/fs/xattr.c > > index b11945e..49b8eab 100644 > > --- a/fs/xattr.c > > +++ b/fs/xattr.c > > @@ -667,6 +667,9 @@ xattr_resolve_name(const struct xattr_handler > > **handlers, const char **name) > > { > > const struct x

Re: [PATCH] dwc3: gadget: Introduce dwc3_endpoint_xfer_xxx() to check endpoint type

2016-05-26 Thread Felipe Balbi
Hi, Baolin Wang writes: > Hi Felipe, > > On 26 May 2016 at 14:22, Felipe Balbi wrote: >> >> Hi, >> >> Baolin Wang writes: >>> When handling the endpoint interrupt handler, it maybe disable the endpoint >>> from another core user to set the USB endpoint descriptor pointor to be NULL >>> while i

[RFC PATCH 0/3] watchdog: Add Amlogic Meson GXBB Watchdog Timer driver

2016-05-26 Thread Neil Armstrong
Adds support for the Amlogic Meson GXBB SoC Watchdog Timer. It differs from the meson6/meson8b HW, so need for a separate driver. The HW provides a divider capable of having a 1ms timebase thus simplifying the counter update. The restart call is not provided even if the HW is capable of triggering

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

2016-05-26 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 832815d..bcca82f 100644 --- a/arch/arm64/boot/dts/amlogic/meson-

[RFC PATCH 2/3] dt-bindings: watchdog: Add Meson GXBB Watchdog bindings

2016-05-26 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- .../devicetree/bindings/watchdog/meson-gxbb-wdt.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/meson-gxbb-wdt.txt diff --git a/Documentation/devicetree/bindings/watchdog/meson-gxbb

[RFC PATCH 1/3] watchdog: Add Meson GXBB Watchdog Driver

2016-05-26 Thread Neil Armstrong
Add watchdog specific driver for Amlogic Meson GXBB SoC. Signed-off-by: Neil Armstrong --- drivers/watchdog/Makefile | 1 + drivers/watchdog/meson_gxbb_wdt.c | 287 ++ 2 files changed, 288 insertions(+) create mode 100644 drivers/watchdog/meson_gxbb

Re: [PATCH v3 02/12] of: add J-Core cpu bindings

2016-05-26 Thread Geert Uytterhoeven
Hi Rich, On Thu, May 26, 2016 at 1:04 AM, Rich Felker wrote: > If you really do want a lot more detail for SMP-related bindings, I > could consider submitting a version with SMP omitted for now (since > the kernel patches submitted at this point don't include SMP) and do > the addition of SMP as

[PATCH] Staging: android: ion: fixed a kzalloc coding style issue.

2016-05-26 Thread Shubham Bansal
Fixed a coding style issue. Issue reported by checkpatch.pl. Signed-off-by: Shubham Bansal --- drivers/staging/android/ion/ion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 8536567..2217ccb 10064

[PATCH 2/5] i2c: designware: get fast plus and high speed *CNT configuration

2016-05-26 Thread Weifeng Voon
I2C designware controller can run at fast mode plus and high speed. This patch adds the capability to get the HCNT, LCNT configuration via FPCN (fast plus) and HSCN (high speed) ACPI method. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware-core.h| 8 drivers/i2c/bus

[PATCH 0/5] i2c: designware: Enable fast mode plus and high speed

2016-05-26 Thread Weifeng Voon
Enabled fast mode plus and high speed which supported by APL SoC. Weifeng Voon (5): i2c: designware: Move clk_freq into struct dw_i2c_dev i2c: designware: get fast plus and high speed *CNT configuration i2c: designware: Enable fast mode plus i2c: designware: set the common config before th

Re: [PATCH v3 0/6] Introduce ZONE_CMA

2016-05-26 Thread Feng Tang
On Thu, May 26, 2016 at 02:22:22PM +0800, js1...@gmail.com wrote: > From: Joonsoo Kim Hi Joonsoo, Nice work! > > Hello, > > Changes from v2 > o Rebase on next-20160525 > o No other changes except following description > > There was a discussion with Mel [1] after LSF/MM 2016. I could summari

[PATCH 5/5] i2c: designware: Enable high speed mode

2016-05-26 Thread Weifeng Voon
This patch enabled high speed mode. High speed mode can be turn on by setting the clk_freq to 340. High speed HCNT and LCNT are needed as there is no default value provided. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware-core.c| 26 +- drivers/i

Re: [RFC/PATCH 1/2] doc: bindings: Add bindings documentation for mtd otp nvmem

2016-05-26 Thread Boris Brezillon
Hi Moritz, On Wed, 25 May 2016 14:26:46 -0700 Moritz Fischer wrote: > This commit adds documentation describing the bindings for > exposing mtd flash otp regions as nvmem providers via devicetree. > > Signed-off-by: Moritz Fischer > --- > .../devicetree/bindings/mtd/otp-nvmem.txt | 6

[PATCH 4/5] i2c: designware: set the common config before the if else

2016-05-26 Thread Weifeng Voon
DW_IC_CON_MASTER, DW_IC_CON_SLAVE_DISABLE and DW_IC_CON_RESTART_EN are common config that need to be set for i2c designware master. So, configure it first without having to repeat inside the if else. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware-platdrv.c | 10 ++ 1 f

[PATCH 1/5] i2c: designware: Move clk_freq into struct dw_i2c_dev

2016-05-26 Thread Weifeng Voon
I2c designware controller operate speed is configured in the register IC_CON. Previously the operate speed is determined by a local variable clk_freq. This patch will move the local variable clk_freq into struct dw_i2c_dev. This change will ease the set and get of the clk_freq. Signed-off-by: Weif

Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-26 Thread Wanpeng Li
2016-05-24 2:01 GMT+08:00 David Matlack : > On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li wrote: >> From: Wanpeng Li > > I'm ok with this patch, but I'd like to better understand the target > workloads. What type of workloads do you expect to benefit from this? > In addition, as Paolo great pointe

[PATCH 3/5] i2c: designware: Enable fast mode plus

2016-05-26 Thread Weifeng Voon
This patch enabled fast mode plus. The fast mode plus and fast speed share the same HCNT and LCNT register. So, the fast mode plus will only run when the HCNT and LCNT value is provided. Else, it will run at fast speed as default. Signed-off-by: Weifeng Voon --- drivers/i2c/busses/i2c-designware

Re: DRM DMA Engine

2016-05-26 Thread Daniel Vetter
On Wed, May 25, 2016 at 04:46:15PM +0100, Jose Abreu wrote: > Hi all, > > Currently I am trying to develop a DRM driver that will use > Xilinx VDMA to transfer video data to a HDMI TX Phy and I am > facing a difficulty regarding the understanding of the DRM DMA > Engine. I looked at several source

Re: [PATCH V3] brcmfmac: print error if p2p_ifadd firmware command fails

2016-05-26 Thread Arend Van Spriel
On 26-5-2016 0:44, Rafał Miłecki wrote: > This is helpful for debugging, without this all I was getting from "iw" > command on device with BCM43602 was: >> command failed: Too many open files in system (-23) > > Signed-off-by: Rafał Miłecki > --- > V2: s/in/if/ in commit message > V3: Add one mor

[GIT PULL] MMC fixes for v.4.7 rc1

2016-05-26 Thread Ulf Hansson
Hi Linus, Here are some mmc fixes intended for v4.7 rc1. They are based on a commit earlier in the merge window and have been tested in linux-next for a while. Details are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 1649098

RE: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Meng Yi
Hi Alexander, > From your backtrace I guess wait_event_timeout is called in some atomic > context (might_sleep(); is called inside wait_event_timeout). This has nothing > to do with regmap. > Here is my view of point: Since IRQ setup codes using regmap, and which is not setup properly, so wait_

Re: [PATCH] devicetree - document using aliases to set spi bus number.

2016-05-26 Thread Geert Uytterhoeven
On Wed, May 25, 2016 at 8:44 PM, Rob Herring wrote: > On Tue, May 24, 2016 at 06:41:41PM +0100, Mark Rutland wrote: >> On Tue, May 24, 2016 at 06:39:20PM +0200, Christer Weinigel wrote: >> > Document how to use devicetree aliases to assign a stable >> > bus number to a spi bus. >> > >> > Signed-of

Re: [PATCH] dwc3: gadget: Introduce dwc3_endpoint_xfer_xxx() to check endpoint type

2016-05-26 Thread Baolin Wang
Hi, On 26 May 2016 at 15:48, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> Hi Felipe, >> >> On 26 May 2016 at 14:22, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Baolin Wang writes: When handling the endpoint interrupt handler, it maybe disable the endpoint from another core user

Re: [PATCH v2] sched: fix first task of a task group is attached twice

2016-05-26 Thread Vincent Guittot
On 26 May 2016 at 00:38, Yuyang Du wrote: > On Wed, May 25, 2016 at 05:01:11PM +0200, Vincent Guittot wrote: >> The cfs_rq->avg.last_update_time is initialize to 0 with the main effect >> that the 1st sched_entity that will be attached, will keep its >> last_update_time set to 0 and will attached

[PATCH] mutex: Do not spin/queue before performing ww_mutex deadlock avoidance

2016-05-26 Thread Chris Wilson
The ww_mutex has the property of allowing the lock to detect and report when it may be used in deadlocking scenarios (to allow the caller to unwind its locks and avoid the deadlock). This detection needs to be performed before we queue up for the spin, otherwise we wait on the osq_lock() for our tu

[PATCH] watchdog: Add a device managed API for watchdog_register_device()

2016-05-26 Thread Neil Armstrong
This helps in reducing code in .remove callbacks and sometimes dropping .remove callbacks entirely. Signed-off-by: Neil Armstrong --- Documentation/driver-model/devres.txt | 3 +++ drivers/watchdog/watchdog_core.c | 36 +++ include/linux/watchdog.h

Re: [PATCH] drivers: usb: dwc3 : Configure DMA properties and ops from DT

2016-05-26 Thread Felipe Balbi
Hi, Leo Li writes: >>> On certain platforms (e.g. ARM64) the dma_ops needs to be explicitly set >>> to be able to do DMA allocations, so use the of_dma_configure() helper >>> to populate the dma properties and assign an appropriate dma_ops. >>> >>> Signed-off-by: Rajesh Bhagat >>> Reviewed-by:

Re: [PATCH 07/11] dt/bindings: Correct clk binding example for PIC32 pinctrl

2016-05-26 Thread Linus Walleij
On Tue, May 17, 2016 at 7:05 AM, Purna Chandra Mandal wrote: > Update binding example based on new clock binding scheme. > [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt > > Signed-off-by: Purna Chandra Mandal Patch applied to the pinctrl tree with Rob's ACK. Yours, Linus Wall

Re: [PATCH v2] sched: fix first task of a task group is attached twice

2016-05-26 Thread Yuyang Du
On Thu, May 26, 2016 at 10:26:54AM +0200, Vincent Guittot wrote: > On 26 May 2016 at 00:38, Yuyang Du wrote: > > On Wed, May 25, 2016 at 05:01:11PM +0200, Vincent Guittot wrote: > >> The cfs_rq->avg.last_update_time is initialize to 0 with the main effect > >> that the 1st sched_entity that will b

Re: [PATCH 11/11] dt/bindings: Correct clk binding example for PIC32 gpio.

2016-05-26 Thread Linus Walleij
On Tue, May 17, 2016 at 7:06 AM, Purna Chandra Mandal wrote: > Update binding example based on new clock binding scheme. > [1] Documentation/devicetree/bindings/clock/microchip,pic32.txt > > Signed-off-by: Purna Chandra Mandal Patch applied and squashed into the other pic32 patch with Rob's ACK

RE: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Meng Yi
Hi Mark, > You've not specifically described the problem here - what are the endiannesses > of both the CPU and the device you're talking to? What specifically is the > endianess problem you are seeing, what are you seeing and what do you > expect to see? > The CPU is little endian and the devi

Re: [PATCH v2] net: alx: use custom skb allocator

2016-05-26 Thread Feng Tang
On Wed, May 25, 2016 at 07:53:41PM -0400, David Miller wrote: > From: Feng Tang > Date: Wed, 25 May 2016 14:49:54 +0800 > > > This patch follows Eric Dumazet's commit 7b70176421 for Atheros > > atl1c driver to fix one exactly same bug in alx driver, that the > > network link will be lost in 1-5 m

Re: [PATCH 2/2] ARM: dts: am335x-icev2: Add DT node for TI PCA9536

2016-05-26 Thread Linus Walleij
On Thu, May 19, 2016 at 8:47 AM, Vignesh R wrote: > AM335x ICE board has a TI PCA9536 chip connected to I2C0 at address > 0x41. Add DT entry for the same. > > Signed-off-by: Vignesh R Acked-by: Linus Walleij Pls take this through the ARM SoC TI git tree. Yours, Linus Walleij

Re: [PATCH] soc/tegra: pmc: Fix "scheduling while atomic"

2016-05-26 Thread Jon Hunter
On 25/05/16 19:51, Dmitry Osipenko wrote: > On 25.05.2016 18:09, Jon Hunter wrote: ... >> If you are able to reproduce this on v3.18, then it would be good if you >> could trace the CCF calls around this WARNING to see what is causing the >> contention. > > I managed to reproduce it with some C

Re: [PATCH 1/2] gpio: pca953x: Add support for TI PCA9536

2016-05-26 Thread Linus Walleij
On Thu, May 19, 2016 at 8:47 AM, Vignesh R wrote: > TI PCA9536 is 4-Bit I2C GPIO expander without interrupt support[1]. > Add support for the same. > > [1] TRM: http://www.ti.com/lit/ds/symlink/pca9536.pdf > > Signed-off-by: Vignesh R Patch applied with Rob's ACK. Yours, Linus Walleij

RE: [PATCH 3.19.y-ckt 21/40] net/mlx4_en: Fix endianness bug in IPV6 csum calculation

2016-05-26 Thread Tariq Toukan
Hi Kamal, It's just a nit, but we would like to keep the patches in the same form as in upstream when possible, i.e. without the line-break here. Thanks, Tariq Toukan -Original Message- From: Kamal Mostafa [mailto:ka...@canonical.com] Sent: Wednesday, May 25, 2016 8:30 PM To: linux-kern

Re: [PATCH v2] sched: fix first task of a task group is attached twice

2016-05-26 Thread Vincent Guittot
On 26 May 2016 at 02:40, Yuyang Du wrote: > On Thu, May 26, 2016 at 10:26:54AM +0200, Vincent Guittot wrote: >> On 26 May 2016 at 00:38, Yuyang Du wrote: >> > On Wed, May 25, 2016 at 05:01:11PM +0200, Vincent Guittot wrote: >> >> The cfs_rq->avg.last_update_time is initialize to 0 with the main e

Re: [PATCH RFT 1/2] phylib: add device reset GPIO support

2016-05-26 Thread Linus Walleij
On Thu, May 12, 2016 at 8:42 PM, Uwe Kleine-König wrote: > [added Linus Walleij to Cc, there is a question for you/him below] (...) >> +void mdio_device_reset(struct mdio_device *mdiodev, int value) >> +{ >> + if (mdiodev->reset) >> + gpiod_set_value(mdiodev->reset, value); > > Be

Re: [RESEND PATCH v2] ASoC: rockchip: Add machine driver for MAX98357A/RT5514/DA7219

2016-05-26 Thread Xing Zheng
Hi Rob, On 2016年05月26日 01:32, Rob Herring wrote: On Tue, May 24, 2016 at 09:36:14AM +0800, Xing Zheng wrote: There are multi codec devices on the RK3399 platform, we can use this patch support and control these codecs. Signed-off-by: Xing Zheng --- Changes in v2: - use the FS 256 to set mclk

Re: [PATCH v3] gpio: UniPhier: add driver for UniPhier GPIO controller

2016-05-26 Thread Linus Walleij
On Fri, May 20, 2016 at 6:30 AM, Masahiro Yamada wrote: > So, I'd like to know the recommended driver coding style > based on 4.7-rc1. Sure, best is to look at other recently added drivers I guess. > Diving into the git-log so far, I came up the following list: > > [1] The "dev" member of gpioc

Re: [PATCH] pinctrl: samsung: Suppress unbinding to prevent theoretical attacks

2016-05-26 Thread Linus Walleij
On Tue, May 17, 2016 at 8:02 AM, Krzysztof Kozlowski wrote: > Although unbinding a pinctrl driver requires root privileges but it > still might be used theoretically in certain attacks (by triggering NULL > pointer exception or memory corruption). Patch applied with Javier's review tag. I suspe

Re: ARM: dts: exynos: Add MFC memory banks for Peach boards

2016-05-26 Thread pankaj.dubey
Hi Javier, On Thursday 26 May 2016 01:15 PM, Javier Martinez Canillas wrote: > [adding Kevin and Sjoerd who also noticed issues with this patch] > > Hi Pankaj, > > On 05/25/2016 11:43 PM, pankaj.dubey wrote: >> Hi Javier, >> >> On Wednesday 25 May 2016 08:32 PM, Javier Martinez Canillas wrote: >

Re: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Alexander Stein
On Thursday 26 May 2016 08:18:30, Meng Yi wrote: > Hi Alexander, > > > From your backtrace I guess wait_event_timeout is called in some atomic > > context (might_sleep(); is called inside wait_event_timeout). This has > > nothing to do with regmap. > > Here is my view of point: > Since IRQ setup

[PATCH v7] platform:x86: Add PMC Driver for Intel Core SoC

2016-05-26 Thread Rajneesh Bhardwaj
This patch adds the Power Management Controller driver as a PCI driver for Intel Core SoC architecture. This driver can utilize debugging capabilities and supported features as exposed by the Power Management Controller. Please refer to the below specification for more details on PMC features. ht

[PATCH 2/2] sched/fair: Skip detach and attach load avgs for new group task

2016-05-26 Thread Yuyang Du
Vincent reported that the first task to a new task group's cfs_rq will be attached in attach_task_cfs_rq() and once more when it is enqueued (see https://lkml.org/lkml/2016/5/25/388). Actually, it is worse, attach_task_cfs_rq() is called for new task even way before init_entity_runnable_average().

Re: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Alexander Stein
On Thursday 26 May 2016 08:23:42, Meng Yi wrote: > Hi Mark, > > > You've not specifically described the problem here - what are the > > endiannesses of both the CPU and the device you're talking to? What > > specifically is the endianess problem you are seeing, what are you seeing > > and what do

[PATCH 0/2] sched/fair: Skip sched avgs update for new group task before wake_up_new_task()

2016-05-26 Thread Yuyang Du
Hi Peter, Vincent reported this problem, which is there for a while. The first patch is cleanup as well as paving the way to the fix. Thanks, Yuyang --- Yuyang Du (2): sched/fair: Clean up attach_entity_load_avg() sched/fair: Skip detach and attach load avgs for new group task kernel/sched

[PATCH 1/2] sched/fair: Clean up attach_entity_load_avg()

2016-05-26 Thread Yuyang Du
attach_entity_load_avg() is called (indirectly) from: - switched_to_fair(): switch between classes to fair - task_move_group_fair(): move between task groups - enqueue_entity_load_avg(): enqueue entity Only in switched_to_fair() is it possible that the task's last_update_time is not 0 and ther

Re: [PATCH percpu/for-4.7-fixes 1/2] percpu: fix synchronization between chunk->map_extend_work and chunk destruction

2016-05-26 Thread Vlastimil Babka
On 05/25/2016 05:44 PM, Tejun Heo wrote: Atomic allocations can trigger async map extensions which is serviced by chunk->map_extend_work. pcpu_balance_work which is responsible for destroying idle chunks wasn't synchronizing properly against chunk->map_extend_work and may end up freeing the chun

Re: [RFC PATCH] drivers/pinctrl: Add pinctrl-ast2400

2016-05-26 Thread Linus Walleij
On Wed, May 25, 2016 at 7:22 AM, Andrew Jeffery wrote: > [Me] >> > +#define A4 2 >> > +SSSF_PIN_DECL(A4, GPIOA2, TIMER3, FUNC_DESC_SET(SCU80, 2)); >> > + >> > +FUNC_EXPR_DECL_SINGLE(SD1, FUNC_DESC_SET(SCU90, 0)); >> > + >> > +FUNC_EXPR_DECL_SINGLE(I2C10, FUNC_DESC_SET(SCU90, 23)); >> > + >> > +#de

[PATCH v2] efi: fix for_each_efi_memory_desc_in_map() for empty memmaps

2016-05-26 Thread Vitaly Kuznetsov
Commit 78ce248faa3c ("efi: Iterate over efi.memmap in for_each_efi_memory_desc()") introduced a regression for systems booted with 'noefi' kernel option. In particular, I observe early kernel hang in efi_find_mirror() on for_each_efi_memory_desc() call. As we don't have efi memmap we enter this ite

Re: [PATCH 36/54] MAINTAINERS: Add file patterns for pinctrl device tree bindings

2016-05-26 Thread Linus Walleij
On Sun, May 22, 2016 at 11:06 AM, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Cc: Linus Walleij > Cc: linux-g...@vger.kernel.org > --- > Please apply this patc

Re: [PATCH v2 0/10] Add RK3399 eDP support and fix some bugs to analogix_dp driver.

2016-05-26 Thread Yakir Yang
Hi Javier, On 05/24/2016 01:01 PM, Yakir Yang wrote: Hi all, This series have been posted about one month, still no comments, help here :( This series works rightly on Rockchip platform, and most of them haven't touch the common analogix_dp driver (except for the hotplug fixed). So i guess Ex

[PATCH] hwrng: stm32: fix maybe uninitialized variable warning

2016-05-26 Thread Maxime Coquelin
This patch fixes the following warning: drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng_read': drivers/char/hw_random/stm32-rng.c:82:19: warning: 'sr' may be used uninitialized in this function Reported-by: Sudip Mukherjee Suggested-by: Arnd Berg

[RFC PATCH 0/2] scpi: Add SCPI framework to handle vendors variants

2016-05-26 Thread Neil Armstrong
Since the current SCPI implementation, based on [0]: - is (at leat) JUNO specific - does not specify a strong "standard" - does not specify a strong MHU interface specification SoC vendors could implement a variant with slight changes in message indexes, new messages types, different messages data

[RFC PATCH 2/2] firmware: scpi: Switch scpi drivers to use new Framework calls

2016-05-26 Thread Neil Armstrong
Update the include/linux/scpi_protocol.h with the new registry calls. Switch following drivers to use the new SCPI registry layer : - drivers/clk/clk-scpi.c - drivers/cpufreq/scpi-cpufreq.c - drivers/hwmon/scpi-hwmon.c And finally switch drivers/firmware/arm_scpi.c to use scpi_driver_register(

[RFC PATCH 1/2] firmware: Add a SCPI framework to handle multiple vendors implementation

2016-05-26 Thread Neil Armstrong
Add a thin "register" interface for SCPI driver in order to register their ops along their node. Since nodes using the SCPI ops are currently sub-nodes, does not implement phandle xlate stuff. Signed-off-by: Neil Armstrong --- drivers/firmware/Makefile | 1 + drivers/firmware/scpi.c | 110 +

Re: [PATCH v5 00/11] Add HW throttle for Tegra soctherm

2016-05-26 Thread Wei Ni
Hi, Does there have any comments on this series? Let me know if someone has suggestions. Thanks. Wei. On 05/11/2016 06:20 PM, Wei Ni wrote: > This series add following functions for Tegra soctherm: > 1. add HW throttle function. > 2. enable soctherm node for Tegra124, Tegra132, Tegra210, and > se

Re: [PATCH] dwc3: gadget: Introduce dwc3_endpoint_xfer_xxx() to check endpoint type

2016-05-26 Thread Felipe Balbi
Hi, Baolin Wang writes: >> Also note that the usb_endpoint_xfer_isoc() call on line 2067 of >> gadget.c (as in my testing/next from today) won't even get executed, so >> we're safe there. > > Never will be executed? then we can remove the > usb_endpoint_xfer_isoc() (line 2025) at risk? > > 20

Re: [PATCH percpu/for-4.7-fixes 2/2] percpu: fix synchronization between synchronous map extension and chunk destruction

2016-05-26 Thread Vlastimil Babka
On 05/25/2016 05:45 PM, Tejun Heo wrote: For non-atomic allocations, pcpu_alloc() can try to extend the area map synchronously after dropping pcpu_lock; however, the extension wasn't synchronized against chunk destruction and the chunk might get freed while extension is in progress. This patch f

Re: [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks

2016-05-26 Thread Gabriel Fernandez
On 25 May 2016 at 19:24, Rob Herring wrote: > > On Wed, May 18, 2016 at 10:41:23AM +0200, Gabriel Fernandez wrote: > > This patch allows fine tuning of the quads FS for audio clocks > > accuracy. > > > > Signed-off-by: Olivier Bideau > > Signed-off-by: Gabriel Fernandez > > --- > > .../devicetr

Re: [Regression?] iptables broken on 32bit with pre-4.7-rc

2016-05-26 Thread Florian Westphal
John Stultz wrote: > In updating a 32bit arm device from 4.6 to Linus' current HEAD, I > noticed I was having some trouble with networking, and realized that > /proc/net/ip_tables_names was suddenly empty. > > Digging through the registration process, it seems we're catching on the: > >i

[PATCH 2/2] cifs: dynamic allocation of ntlmssp blob

2016-05-26 Thread Jerome Marchand
In sess_auth_rawntlmssp_authenticate(), the ntlmssp blob is allocated statically and its size is an "empirical" 5*sizeof(struct _AUTHENTICATE_MESSAGE) (320B on x86_64). I don't know where this value comes from or if it was ever appropriate, but it is currently insufficient: the user and domain name

[PATCH 1/2] cifs: use CIFS_MAX_DOMAINNAME_LEN when converting the domain name

2016-05-26 Thread Jerome Marchand
Currently in build_ntlmssp_auth_blob(), when converting the domain name to UTF16, CIFS_MAX_USERNAME_LEN limit is used. It should be CIFS_MAX_DOMAINNAME_LEN. This patch fixes this. Signed-off-by: Jerome Marchand --- fs/cifs/sess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [RFC PATCH] sched: fix hierarchical order in rq->leaf_cfs_rq_list

2016-05-26 Thread Vincent Guittot
On 25 May 2016 at 19:40, Dietmar Eggemann wrote: > Hi Vincent, > > On 24/05/16 10:55, Vincent Guittot wrote: >> Fix the insertion of cfs_rq in rq->leaf_cfs_rq_list to ensure that >> a child will always called before its parent. >> >> The hierarchical order in shares update list has been introduced

Re: [RFC][PATCH 1/3] staging: ion: Move away from the DMA APIs for cache flushing

2016-05-26 Thread Liviu Dudau
On Wed, May 25, 2016 at 12:48:02PM -0700, Laura Abbott wrote: > > Ion is currently using the DMA APIs in non-compliant ways for cache > maintaince. The issue is Ion needs to do cache operations outside of > the regular DMA model. The Ion model matches more closely with the > DRM model which calls

RE: [PATCH V7 00/11] Support for generic ACPI based PCI host controller

2016-05-26 Thread Gabriele Paoloni
Hi Bjorn many thanks for your suggestions > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 24 May 2016 20:01 > To: Lorenzo Pieralisi > Cc: Gabriele Paoloni; Ard Biesheuvel; Jon Masters; Tomasz Nowicki; > a...@arndb.de; will.dea...@arm.com; catalin.mari...@arm.

Re: Builtin microcode does nothing..

2016-05-26 Thread Borislav Petkov
On Thu, May 26, 2016 at 01:36:51AM +0200, Gabriel C wrote: > Hangs on the second box too also.. Ok, please try the diff below ontop to see if it fixes your issue. Looks like I'd need to rewrite the figuring out where the microcode data is. Currently, it is ugly and error prone. Thanks. --- dif

Re: [RFC PATCH 1/3] watchdog: Add Meson GXBB Watchdog Driver

2016-05-26 Thread Carlo Caione
On 26/05/16 09:51, Neil Armstrong wrote: > Add watchdog specific driver for Amlogic Meson GXBB SoC. > > Signed-off-by: Neil Armstrong > + [...] > +#define DEFAULT_TIMEOUT 10 /* seconds */ > + > +#define GXBB_WDT_CTRL_REG0x0 > +#define GXBB_WDT_CTRL1_REG 0x4 > +#define GXBB_WDT_TC

Re: [RFC PATCH 2/3] dt-bindings: watchdog: Add Meson GXBB Watchdog bindings

2016-05-26 Thread Carlo Caione
On 26/05/16 09:51, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- > .../devicetree/bindings/watchdog/meson-gxbb-wdt.txt | 13 > + > 1 file changed, 13 insertions(+) > create mode 100644 > Documentation/devicetree/bindings/watchdog/meson-gxbb-wdt.txt > > diff -

Re: [PATCH] devicetree - document using aliases to set spi bus number.

2016-05-26 Thread Mark Brown
On Thu, May 26, 2016 at 03:56:11AM +0200, Christer Weinigel wrote: > On 05/26/2016 03:44 AM, Rob Herring wrote: > > Lovely. "Here's something that's simple and useful for users. Let's > > break it". What part of "we do not break userspace" do you not > > understand? Because that would be a user vis

Re: [PATCH] iommu/vt-d: reduce extra first level entry in iommu->domains

2016-05-26 Thread Robin Murphy
On 25/05/16 22:43, Wei Yang wrote: On Wed, May 25, 2016 at 11:17:49AM +0100, Robin Murphy wrote: On 25/05/16 00:06, Wei Yang wrote: Hi, Joerg Not sure whether you think this calculation is correct. If I missed something for this " + 1" in your formula, I am glad to hear your explanation. So t

Re: [Xen-devel] [PATCH] xen: remove incorrect forward declaration

2016-05-26 Thread Julien Grall
Hi Stefano, On 16/05/2016 12:11, Stefano Stabellini wrote: On Wed, 11 May 2016, Arnd Bergmann wrote: A bugfix patch for the xen balloon driver introduced a forward declaration for a static function that is conditionally compiled, causing a warning if only the declaration but not the definition

Re: [Xen-devel] [PATCH] xen: remove incorrect forward declaration

2016-05-26 Thread Stefano Stabellini
On Thu, 26 May 2016, Julien Grall wrote: > Hi Stefano, > > On 16/05/2016 12:11, Stefano Stabellini wrote: > > On Wed, 11 May 2016, Arnd Bergmann wrote: > > > A bugfix patch for the xen balloon driver introduced a forward > > > declaration for a static function that is conditionally compiled, > > >

Re: [PATCH v5] KVM: halt-polling: poll for the upcoming fire timers

2016-05-26 Thread Paolo Bonzini
On 25/05/2016 04:47, Wanpeng Li wrote: > From: Wanpeng Li > > If an emulated lapic timer will fire soon(in the scope of 10us the > base of dynamic halt-polling, lower-end of message passing workload > latency TCP_RR's poll time < 10us) we can treat it as a short halt, > and poll to wait it fire

Re: [PATCH] dwc3: gadget: Introduce dwc3_endpoint_xfer_xxx() to check endpoint type

2016-05-26 Thread Baolin Wang
On 26 May 2016 at 17:45, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: > > > >>> Also note that the usb_endpoint_xfer_isoc() call on line 2067 of >>> gadget.c (as in my testing/next from today) won't even get executed, so >>> we're safe there. >> >> Never will be executed? then we can remo

Re: [PATCH] dwc3: gadget: Introduce dwc3_endpoint_xfer_xxx() to check endpoint type

2016-05-26 Thread Felipe Balbi
Hi, Baolin Wang writes: > On 26 May 2016 at 17:45, Felipe Balbi wrote: >> >> Hi, >> >> Baolin Wang writes: >> >> >> Also note that the usb_endpoint_xfer_isoc() call on line 2067 of gadget.c (as in my testing/next from today) won't even get executed, so we're safe there. >>> >>>

Re: [PATCH v5] KVM: halt-polling: poll for the upcoming fire timers

2016-05-26 Thread Paolo Bonzini
On 26/05/2016 12:26, Paolo Bonzini wrote: > As discussed on IRC, I would like to understand why the adaptive > adjustment of halt_poll_ns is failing. It seems like you have so few > halts that you don't get halt_poll_ns>0. Yet, when the VM halts, it's > very close to the timer tick---often enou

Re: [Xen-devel] [PATCH v2] xen/balloon: Fix declared-but-not-defined warning

2016-05-26 Thread David Vrabel
On 10/05/16 10:27, Ross Lagerwall wrote: > Fix a declared-but-not-defined warning when building with > XEN_BALLOON_MEMORY_HOTPLUG=n. This fixes a regression introduced by > commit dfd74a1edfab > ("xen/balloon: Fix crash when ballooning on x86 32 bit PAE"). Applied to for-linus-4.7b, thanks. I hav

Re: [Xen-devel] [PATCH] xen: remove incorrect forward declaration

2016-05-26 Thread David Vrabel
On 11/05/16 14:07, Arnd Bergmann wrote: > A bugfix patch for the xen balloon driver introduced a forward > declaration for a static function that is conditionally compiled, > causing a warning if only the declaration but not the definition > are there: > > drivers/xen/balloon.c:154:13: error: 'rel

Re: [PATCH] dwc3: gadget: Introduce dwc3_endpoint_xfer_xxx() to check endpoint type

2016-05-26 Thread Baolin Wang
On 26 May 2016 at 18:27, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> On 26 May 2016 at 17:45, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Baolin Wang writes: >>> >>> >>> > Also note that the usb_endpoint_xfer_isoc() call on line 2067 of > gadget.c (as in my testing/next from tod

Re: [PATCH] arm64: defconfig: Enable cros-ec and battery driver

2016-05-26 Thread Jon Hunter
On 25/05/16 20:44, Rhyland Klein wrote: ... > And you might be completely correct, that is something that can only > happen specifically with the bq27xxx driver. In which case, making the > fix there should be the fix. I just know from the commit log (and some > previous work with power supply d

Re: [PATCH] mutex: Do not spin/queue before performing ww_mutex deadlock avoidance

2016-05-26 Thread Maarten Lankhorst
Op 26-05-16 om 10:31 schreef Chris Wilson: > The ww_mutex has the property of allowing the lock to detect and report > when it may be used in deadlocking scenarios (to allow the caller to > unwind its locks and avoid the deadlock). This detection needs to be > performed before we queue up for the s

Re: [PATCH v3 02/12] of: add J-Core cpu bindings

2016-05-26 Thread Mark Rutland
On Wed, May 25, 2016 at 07:04:08PM -0400, Rich Felker wrote: > On Wed, May 25, 2016 at 11:22:15AM +0100, Mark Rutland wrote: > > > +Optional properties: > > > + > > > +- enable-method: Required only for SMP systems. If present, must be > > > + "jcore,spin-table". > > > + > > > + > > > +---

  1   2   3   4   5   >