Re: [PATCH 2/4] i2c: rcar: enable RuntimePM before registering to the core

2015-10-09 Thread Geert Uytterhoeven
Hi Wolfram, On Fri, Oct 9, 2015 at 8:54 AM, Wolfram Sang wrote: > The core may register clients attached to this master which may use > funtionality from the master. So, RuntimePM must be enabled before, otherwise > this will fail. While here, move drvdata, too. Thanks for your patch! >

Re: [PATCH] ath6kl: remove redundant null pointer check on send_pkt

2015-10-09 Thread Kalle Valo
Colin King writes: > From: Colin Ian King > > The check for send_pkt being NULL is redundant before the call > to htc_reclaim_txctrl_buf, therefore it should be removed. This was > detected by static analysis by cppcheck. > > Signed-off-by: Colin Ian King Applied, thanks. -- Kalle Valo --

[PATCH v3 2/5] ARM: sun5i: Add R8 DTSI

2015-10-09 Thread Maxime Ripard
The R8 is very close to the A13, but it still has a few differences, notably a composite output, which the A13 lacks. Add a DTSI based on the A13's to hold those differences. Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Reviewed-by: Hans de Goede --- arch/arm/boot/dts/sun5i-r8.dtsi

Re: [PATCH 4/4] arm64: dts: enable idle states for Hi6220

2015-10-09 Thread Sudeep Holla
On 09/10/15 05:36, Leo Yan wrote: Add cpu and cluster level's low power state for Hi6220. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi

Re: [PATCH v2] ath6kl: drop unlikely behind WARN_ON()

2015-10-09 Thread Kalle Valo
Geliang Tang writes: > WARN_ON() already contain an unlikely compiler flag. Drop it. > > Signed-off-by: Geliang Tang Applied, thanks. -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo

Re: [RFC PATCH 1/2] ext4: Fix possible deadlock with local interrupts disabled and page-draining IPI

2015-10-09 Thread Nikolay Borisov
On 10/09/2015 11:41 AM, Gilad Ben-Yossef wrote: > On Oct 8, 2015 18:31, "Nikolay Borisov" wrote: >> >> Currently when bios are being finished in ext4_finish_bio this is done by >> first disabling interrupts and then acquiring a bit_spin_lock. > ... >> >> To fix the situation this patch changes

Re: [PATCH] kvm: fix waitqueue_active without memory barrier in virt/kvm/async_pf.c

2015-10-09 Thread Peter Zijlstra
On Fri, Oct 09, 2015 at 10:45:32AM +0200, Paolo Bonzini wrote: > So you need another smp_mb() after prepare_to_wait(). I'm not sure > if it's needed also for your original tty report, but I think it is > for https://lkml.org/lkml/2015/10/8/989 ("mei: fix waitqueue_active > without memory barrier

RE: [PATCH v3] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-10-09 Thread Bharat Kumar Gogada
> On 09/10/15 06:11, Bharat Kumar Gogada wrote: > +struct nwl_msi { /* struct nwl_msi - MSI information > >> */ > + struct msi_controller chip; /* chip: MSI controller */ > >>> > We're moving away from msi_controller altogether, as the kernel now > has all

Re: [PATCH v2] HID: multitouch: Fetch feature reports on demand for Win8 devices

2015-10-09 Thread Mika Westerberg
On Thu, Oct 08, 2015 at 06:10:23PM -0700, Andrew Duggan wrote: > No, this touchpad doesn't have HID_QUIRK_NO_INIT_REPORTS set and > usbhid/hid-core.c is calling usbhid_init_reports() which is retrieving > feature 8. But, I did some additional testing and I wasn't able to reproduce > this issue on

[GIT PULL] MMC fixes for v.4.3 rc5

2015-10-09 Thread Ulf Hansson
Hi Linus, Here are some mmc fixes intended for v4.3 rc5 and it's based on v4.3-rc4. Details are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 049e6dde7e57f0054fdc49102e7ef4830c698b46: Linux 4.3-rc4 (2015-10-04 16:57:17

[PATCH v2 0/4] arm64: dts: qcom: add support to LS and HS connectors

2015-10-09 Thread Srinivas Kandagatla
Hi Andy, This patchset adds support for i2c and spi on High-Speed and Low speed connectors on DB410c. One of the patch fixes the sleep state of existing i2c node. thanks, srini Changes since v1: - removed useless comment spotted by Stephen Boyd. - Use absolute names instead of

Re: [PATCH 2/3] staging: android: ion: Add ion driver for Hi6220 SoC platform

2015-10-09 Thread Dan Carpenter
On Thu, Oct 08, 2015 at 03:55:12PM +0800, Chen Feng wrote: > Signed-off-by: Chen Feng > Signed-off-by: Yu Dongbin > --- > drivers/staging/android/ion/Kconfig| 7 + > drivers/staging/android/ion/Makefile | 1 + > drivers/staging/android/ion/hisilicon/Kconfig

[PATCH v2 1/4] arm64: dts: fix i2c pinconf sleep state function

2015-10-09 Thread Srinivas Kandagatla
This patch fixes the i2c pinctrl sleep state by changing the pinconf function to be in gpio mode rather than i2c. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 2/4] arm64: dts: qcom: Add msm8916 I2C nodes.

2015-10-09 Thread Srinivas Kandagatla
This patch adds missing support for i2c0 and i2c6, this support is required to connect the i2c slaves on LS expansion on DB410c. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 48 ++ arch/arm64/boot/dts/qcom/msm8916.dtsi | 30

[PATCH v2 3/4] arm64: dts: apq8016-sbc: enable i2c buses on LS and HS

2015-10-09 Thread Srinivas Kandagatla
This patch enables i2c buses on low speed and high speed expansion connectors on DB410C. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi

[PATCH v2 4/4] arm64: dts: apq8016-sbc: enable spi buses on LS and HS

2015-10-09 Thread Srinivas Kandagatla
This patch enables spi buses on low speed and high speed expansion connectors on DB410C Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi

Re: [PATCH 4/4] arm64: dts: enable idle states for Hi6220

2015-10-09 Thread Leo Yan
Hi Sudeep, On Fri, Oct 09, 2015 at 09:48:17AM +0100, Sudeep Holla wrote: > > > On 09/10/15 05:36, Leo Yan wrote: > >Add cpu and cluster level's low power state for Hi6220. > > > >Signed-off-by: Leo Yan > >--- > > arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 31 > >

Re: [PATCH 2/3] staging: android: ion: Add ion driver for Hi6220 SoC platform

2015-10-09 Thread Dan Carpenter
On Fri, Oct 09, 2015 at 11:53:32AM +0300, Dan Carpenter wrote: > > +out: > > Labels named "out" are bug prone because handling everything is harder > than using named labels and unwinding one step at a time. The bug here > is that we don't call ion_device_destroy(). > > > + for (i = 0; i <

Re: [PATCH v3] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-10-09 Thread Marc Zyngier
On 09/10/15 09:51, Bharat Kumar Gogada wrote: >> On 09/10/15 06:11, Bharat Kumar Gogada wrote: >> +struct nwl_msi { /* struct nwl_msi - MSI information */ >> + struct msi_controller chip; /* chip: MSI controller */ > >> We're moving away from

Re: [PATCH v4 2/6] pinctrl: berlin: add the berlin4ct pinctrl driver

2015-10-09 Thread Antoine Tenart
Hi Jisheng, On Fri, Oct 09, 2015 at 04:17:05PM +0800, Jisheng Zhang wrote: > diff --git a/drivers/pinctrl/berlin/Kconfig b/drivers/pinctrl/berlin/Kconfig > index b18322b..c13f6d2 100644 > --- a/drivers/pinctrl/berlin/Kconfig > +++ b/drivers/pinctrl/berlin/Kconfig > @@ -17,4 +17,9 @@ config

Re: [PATCH] kvm: fix waitqueue_active without memory barrier in virt/kvm/async_pf.c

2015-10-09 Thread Kosuke Tatsukawa
Paolo Bonzini wrote: > On 09/10/2015 02:35, Kosuke Tatsukawa wrote: >> async_pf_executekvm_vcpu_block >> >> spin_lock(>async_pf.lock); >> if (waitqueue_active(>wq)) >> /* The CPU might reorder the

Re: [PATCH v4 3/6] arm64: berlin: add the pinctrl dependency for Marvell Berlin SoCs

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:06PM +0800, Jisheng Zhang wrote: > This is to add the pinctrl dependency for Marvell Berlin SoCs. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > arch/arm64/Kconfig.platforms | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH v4 1/6] pinctrl: berlin: introduce berlin_pinctrl_probe_regmap()

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:04PM +0800, Jisheng Zhang wrote: > This is to prepare for the next berlin4ct support, where we won't use > simple-mfd any more. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > drivers/pinctrl/berlin/berlin.c | 26 +- >

Re: [v3 PATCH] arm64: replace read_lock to rcu lock in call_break_hook

2015-10-09 Thread Will Deacon
On Thu, Oct 08, 2015 at 04:55:38PM -0700, Paul E. McKenney wrote: > On Mon, Oct 05, 2015 at 02:32:51PM -0700, Yang Shi wrote: > > BUG: sleeping function called from invalid context at > > kernel/locking/rtmutex.c:917 > > in_atomic(): 0, irqs_disabled(): 128, pid: 342, name: perf > > 1 lock held

Re: [PATCH v4 4/6] pinctrl: dt-binding: document berlin4ct SoC pinctrl

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:07PM +0800, Jisheng Zhang wrote: > Add berlin4ct to existing berlin pinctrl device tree binding. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 5 - > 1 file changed, 4

Re: Re: Re: Re: Re: Re: [PATCH v3] arm: Adding support for atomic half word exchange

2015-10-09 Thread Will Deacon
On Fri, Oct 09, 2015 at 02:41:54AM +, Sarbojit Ganguly wrote: > Thank you Will, I will make the required corrections and mail it to > patchesAtarm.linux.co.uk and mark [1] as "superseded". Thanks. Also, you don't need to continually prepend "Re: " to your mail subject every time you reply

Re: [PATCH v4 5/6] arm64: dts: berlin4ct: add the pinctrl node

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:08PM +0800, Jisheng Zhang wrote: > Add the avio, soc, sm pinctrl nodes for Marvell berlin4ct SoC. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 15 +++ > 1 file changed, 15

Re: [RFC]: Possible race condition in kernel futex code

2015-10-09 Thread Thomas Gleixner
On Mon, 5 Oct 2015, Jaccon Bastiaansen wrote: > We did some tests with different compilers, kernel versions and kernel > configs, with the following results: > > Linux 3.12.48, x86_64_defconfig, GCC 4.6.1 : > copy_user_generic_unrolled being used, so race condition possible > Linux 3.12.48,

Re: [PATCH v4 6/6] arm64: dts: berlin4ct: add default pinmux for uart0

2015-10-09 Thread Antoine Tenart
On Fri, Oct 09, 2015 at 04:17:09PM +0800, Jisheng Zhang wrote: > Add urt0 txd and rxd muxing setup in the dtsi because uart0 always uses > them to work, no other possibilities. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > arch/arm64/boot/dts/marvell/berlin4ct.dtsi | 7

Re: crazy idea: big percpu lock (Re: task isolation)

2015-10-09 Thread Peter Zijlstra
On Thu, Oct 08, 2015 at 02:25:23PM -0700, Andy Lutomirski wrote: > I want to propose a new primitive that might go a long way toward > solving this issue. The new primitive would be called the "big percpu > lock". Never, ever, combine big and lock :-) You want small granular locks, big locks

Re: [Intel-wired-lan] [Patch V3 5/9] i40e: Use numa_mem_id() to better support memoryless node

2015-10-09 Thread Kamezawa Hiroyuki
On 2015/10/09 14:52, Jiang Liu wrote: On 2015/10/9 4:20, Andrew Morton wrote: On Wed, 19 Aug 2015 17:18:15 -0700 (PDT) David Rientjes wrote: On Wed, 19 Aug 2015, Patil, Kiran wrote: Acked-by: Kiran Patil Where's the call to preempt_disable() to prevent kernels with preemption from

[RFC 0/3] eliminate potential race in string() (was: [PATCH] string: Improve the generic strlcpy() implementation)

2015-10-09 Thread Rasmus Villemoes
On Fri, Oct 09 2015, Rasmus Villemoes wrote: > It's hard not to agree with the overall "let's make it more robust if it > can be done sanely+cheaply+cleanly". I was a bit skeptical about whether > those three requirements could be met, since we'd have to do > byte-by-byte traversal of the

Re: [PATCH RFC 1/1] irqchip/GICv2m: Add support for multiple v2m frames

2015-10-09 Thread Marc Zyngier
Hi Duc, On 08/10/15 08:48, Duc Dang wrote: > GICv2m driver currently only supports single v2m frame. This > patch extend this driver to support multiple v2m frames. All of > the v2m frames will be own by a single MSI domain. Each PCIe node > can specify msi-parent as the first frame of the v2m

Re: [PATCH 2/3] staging: android: ion: Add ion driver for Hi6220 SoC platform

2015-10-09 Thread xuyiping
On 2015/10/8 15:55, Chen Feng wrote: Signed-off-by: Chen Feng Signed-off-by: Yu Dongbin --- drivers/staging/android/ion/Kconfig| 7 + drivers/staging/android/ion/Makefile | 1 + drivers/staging/android/ion/hisilicon/Kconfig | 5 +

Re: [RFCv5 PATCH 43/46] sched/{fair,cpufreq_sched}: add reset_capacity interface

2015-10-09 Thread Juri Lelli
Hi Steve, On 08/10/15 21:40, Steve Muckle wrote: > Hi Juri, > > On 07/07/2015 11:24 AM, Morten Rasmussen wrote: >> From: Juri Lelli >> >> When a CPU is going idle it is pointless to ask for an OPP update as we >> would wake up another task only to ask for the same capacity we are already >>

[RFC 2/3] lib/vsprintf.c: move string() below widen_string()

2015-10-09 Thread Rasmus Villemoes
This is pure code movement, making sure the widen_string() helper is defined before the string() function. Signed-off-by: Rasmus Villemoes --- lib/vsprintf.c | 62 +- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git

[RFC 3/3] lib/vsprintf.c: eliminate potential race in string()

2015-10-09 Thread Rasmus Villemoes
If the string corresponding to a %s specifier can change under us, we might end up copying a \0 byte to the output buffer. There might be callers who expect the output buffer to contain a genuine C string whose length is exactly the snprintf return value (assuming truncation hasn't happened or has

[RFC 1/3] lib/vsprintf.c: pull out padding code from dentry_name()

2015-10-09 Thread Rasmus Villemoes
Pull out the logic in dentry_name() which handles field width space padding, in preparation for reusing it from string(). Rename the widen() helper to move_right(), since it is used for handling the !(flags & LEFT) case. Signed-off-by: Rasmus Villemoes --- lib/vsprintf.c | 46

Re: [PATCH 2/4] i2c: rcar: enable RuntimePM before registering to the core

2015-10-09 Thread Wolfram Sang
> You forgot to call pm_runtime_disable() in the error path. > I think some of your other patches suffer from the same issue. Ouch! Thanks a lot, Geert! signature.asc Description: Digital signature

Re: [PATCH 03/15] arm64: Introduce helpers for page table levels

2015-10-09 Thread Suzuki K. Poulose
On 08/10/15 18:28, Catalin Marinas wrote: On Thu, Oct 08, 2015 at 06:22:34PM +0100, Suzuki K. Poulose wrote: On 08/10/15 15:45, Christoffer Dall wrote: On Wed, Oct 07, 2015 at 10:26:14AM +0100, Marc Zyngier wrote: I just had a chat with Catalin, who did shed some light on this. It all has to

Re: [PATCH v3 1/4] usb: gadget: f_midi: free usb request when done

2015-10-09 Thread Clemens Ladisch
Felipe Tonello wrote: > req->actual == req->length means that there is no data left to enqueue, This condition is not checked in the patch. > so free the request. > > Signed-off-by: Felipe F. Tonello > --- > drivers/usb/gadget/function/f_midi.c | 5 ++--- > 1 file changed, 2 insertions(+), 3

Re: [PATCH][RFC] mm: Introduce kernelcore=reliable option

2015-10-09 Thread Kamezawa Hiroyuki
On 2015/10/09 15:46, Xishi Qiu wrote: On 2015/10/9 22:56, Taku Izumi wrote: Xeon E7 v3 based systems supports Address Range Mirroring and UEFI BIOS complied with UEFI spec 2.5 can notify which ranges are reliable (mirrored) via EFI memory map. Now Linux kernel utilize its information and

Re: [PATCHv12 25/37] mm, thp: remove infrastructure for handling splitting PMDs

2015-10-09 Thread Kirill A. Shutemov
On Thu, Oct 08, 2015 at 02:22:25PM +0530, Vineet Gupta wrote: > On Tuesday 06 October 2015 08:53 PM, Kirill A. Shutemov wrote: > > With new refcounting we don't need to mark PMDs splitting. Let's drop code > > to handle this. > > > > > > > diff --git a/include/asm-generic/pgtable.h

Re: [Intel-wired-lan] [Patch V3 5/9] i40e: Use numa_mem_id() to better support memoryless node

2015-10-09 Thread Jiang Liu
On 2015/10/9 17:08, Kamezawa Hiroyuki wrote: > On 2015/10/09 14:52, Jiang Liu wrote: >> On 2015/10/9 4:20, Andrew Morton wrote: >>> On Wed, 19 Aug 2015 17:18:15 -0700 (PDT) David Rientjes >>> wrote: >>> On Wed, 19 Aug 2015, Patil, Kiran wrote: > Acked-by: Kiran Patil

Re: [PATCH v4 2/6] pinctrl: berlin: add the berlin4ct pinctrl driver

2015-10-09 Thread Jisheng Zhang
Hi Antoine, On Fri, 9 Oct 2015 11:03:53 +0200 Antoine Tenart wrote: > Hi Jisheng, > > On Fri, Oct 09, 2015 at 04:17:05PM +0800, Jisheng Zhang wrote: > > diff --git a/drivers/pinctrl/berlin/Kconfig b/drivers/pinctrl/berlin/Kconfig > > index b18322b..c13f6d2 100644 > > ---

Re: crazy idea: big percpu lock (Re: task isolation)

2015-10-09 Thread Thomas Gleixner
On Thu, 8 Oct 2015, Andy Lutomirski wrote: > I want to propose a new primitive that might go a long way toward > solving this issue. The new primitive would be called the "big percpu > lock". It took us 15+ years to get rid of the "Big Kernel Lock", so we really don't want to add a new "Big XXX

Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs

2015-10-09 Thread Thomas Graf
On 10/08/15 at 08:20pm, Hannes Frederic Sowa wrote: > Hi Alexei, > > On Thu, Oct 8, 2015, at 07:23, Alexei Starovoitov wrote: > > The feature is controlled by sysctl kernel.unprivileged_bpf_disabled. > > This toggle defaults to off (0), but can be set true (1). Once true, > > bpf programs and

Re: [PATCH 1/2] i2c: designware: add High-speed mode support

2015-10-09 Thread Andy Shevchenko
On Fri, 2015-10-09 at 16:47 +0800, wangx...@gmail.com wrote: > From: Xiang Wang > > 1. Add High-speed mode support in designware core > 2. Add function i2c_dw_acpi_setup_speed to determine > the bus speed from ACPI table. > > Signed-off-by: Xiang Wang > --- >

Re: [PATCH v6 0/6] KASAN for arm64

2015-10-09 Thread Andrey Ryabinin
On 10/08/2015 07:07 PM, Andrey Ryabinin wrote: > 2015-10-08 18:11 GMT+03:00 Catalin Marinas : >> On Thu, Oct 08, 2015 at 02:09:26PM +0200, Ard Biesheuvel wrote: >>> On 8 October 2015 at 13:23, Andrey Ryabinin wrote: On 10/08/2015 02:11 PM, Mark Rutland wrote: > On Thu, Oct 08, 2015 at

RE: [PATCH] [v4] PM / hibernate: Fix hibernation panic caused by inconsistent e820 map

2015-10-09 Thread Chen, Yu C
Hi,Pavel, > -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Sunday, October 04, 2015 11:16 PM > To: Chen, Yu C > Cc: r...@rjwysocki.net; Brown, Len; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; Zhang, Rui; j...@suse.com; > joeyli.ker...@gmail.com;

Re: [PATCH 2/2] i2c: designware: enable High-speed mode for pcidrv

2015-10-09 Thread Andy Shevchenko
On Fri, 2015-10-09 at 16:47 +0800, wangx...@gmail.com wrote: > From: Xiang Wang > > 1. Support setting hs_hcnt and hs_lcnt > 2. Get bus speed mode from ACPI companion of the > i2c controller. > > Signed-off-by: Xiang Wang > --- > drivers/i2c/busses/i2c-designware-pcidrv.c | 7 +++ > 1

RE: [PATCH] [v4] x86, suspend: Save/restore extra MSR registers for suspend

2015-10-09 Thread Chen, Yu C
Thanks Pavel ! Hi, Ingo, do you have a bandwidth to help look at this version, since this bug has been on bugzilla for a while. Thanks a lot. Best Regards, Yu > -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Thursday, September 17, 2015 1:30 PM > To: Chen, Yu C >

Re: [RFC v2 2/6] PM / Domains: prepare for devices that might register a power state

2015-10-09 Thread Marc Titinger
On 08/10/2015 18:11, Lina Iyer wrote: Hi Marc, Thanks for rebasing on top of my latest series. On Tue, Oct 06 2015 at 08:27 -0600, Marc Titinger wrote: Devices may register an intermediate retention state into the domain upon I may agree with the usability of dynamic adding a state to the

[PATCH v2 3/4] i2c: s3c2410: enable RuntimePM before registering to the core

2015-10-09 Thread Wolfram Sang
From: Wolfram Sang The core may register clients attached to this master which may use funtionality from the master. So, RuntimePM must be enabled before, otherwise this will fail. While here, move drvdata, too. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-s3c2410.c | 12

[PATCH v2 4/4] spi: spi-coldfire-qspi: enable RuntimePM before registering to the core

2015-10-09 Thread Wolfram Sang
From: Wolfram Sang The core may register clients attached to this master which may use funtionality from the master. So, RuntimePM must be enabled before, otherwise this will fail. Signed-off-by: Wolfram Sang --- drivers/spi/spi-coldfire-qspi.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH v2] barriers: introduce smp_mb__release_acquire and update documentation

2015-10-09 Thread Will Deacon
On Fri, Oct 09, 2015 at 10:31:38AM +0200, Peter Zijlstra wrote: > On Thu, Oct 08, 2015 at 02:44:39PM -0700, Paul E. McKenney wrote: > > On Thu, Oct 08, 2015 at 01:16:38PM +0200, Peter Zijlstra wrote: > > > On Thu, Oct 08, 2015 at 02:50:36PM +1100, Michael Ellerman wrote: > > > > On Wed, 2015-10-07

[PATCH v2 1/4] i2c: designware-platdrv: enable RuntimePM before registering to the core

2015-10-09 Thread Wolfram Sang
From: Wolfram Sang The core may register clients attached to this master which may use funtionality from the master. So, RuntimePM must be enabled before, otherwise this will fail. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-designware-platdrv.c | 13 +++-- 1 file changed,

[PATCH v2 2/4] i2c: rcar: enable RuntimePM before registering to the core

2015-10-09 Thread Wolfram Sang
From: Wolfram Sang The core may register clients attached to this master which may use funtionality from the master. So, RuntimePM must be enabled before, otherwise this will fail. While here, move drvdata, too. Reported-by: Geert Uytterhoeven Signed-off-by: Wolfram Sang ---

Re: [PATCH] timekeeping: Limit system time to prevent 32-bit time_t overflow

2015-10-09 Thread Thomas Gleixner
On Thu, 8 Oct 2015, Miroslav Lichvar wrote: > On Thu, Oct 08, 2015 at 10:52:05AM +0200, Arnd Bergmann wrote: > > On Thursday 08 October 2015 08:23:44 Miroslav Lichvar wrote: > > > The difference is that with the one-week step the kernel and userspace > > > still agree on the current time and it is

Re: [PATCH 4/8] mmc: sdhci-pxav3: enable proper resuming on Armada 38x SoC

2015-10-09 Thread Marcin Wojtas
Hi Jisheng, >> + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mbus"); >> + pxa->mbus_win_regs = devm_ioremap_resource(>dev, res); >> + if (IS_ERR(pxa->mbus_win_regs)) { >> + dev_err(mmc_dev(host->mmc), >> + "failed to obtain MBus windows

Re: [PATCH v2 08/12] mm: move some code around

2015-10-09 Thread Kirill A. Shutemov
On Tue, Sep 22, 2015 at 04:04:52PM +0530, Vineet Gupta wrote: > This reduces/simplifies the diff for the next patch which moves THP > specific code. > > Signed-off-by: Vineet Gupta Okay, so you group pte-related helpers together, right? It would be nice to mention it in commit message.

Re: [PATCH V2 1/2] clk: imx6: Add SPDIF_GCLK clock in clock tree

2015-10-09 Thread Shengjiu Wang
On Thu, Sep 24, 2015 at 04:57:37AM -0700, Shawn Guo wrote: > On Thu, Sep 24, 2015 at 01:43:24PM +0800, Shengjiu Wang wrote: > > On Wed, Sep 23, 2015 at 08:33:41AM -0700, Shawn Guo wrote: > > > On Tue, Sep 15, 2015 at 06:01:01PM +0800, Shengjiu Wang wrote: > > > > As spdif driver will register

Re: [PATCH v6 0/6] KASAN for arm64

2015-10-09 Thread Mark Rutland
On Fri, Oct 09, 2015 at 12:32:18PM +0300, Andrey Ryabinin wrote: [...] > I thought the EFI stub isolation patches create a copy of mem*() functions in > the stub, > but they are just create aliases with __efistub_ prefix. > > We only need to create some more aliases for KASAN. > The following

RE: [PATCH][v3] ACPI / PM: Fix incorrect wakeup irq setting before suspend-to-idle

2015-10-09 Thread Chen, Yu C
Hi, LV > -Original Message- > From: Zheng, Lv > Sent: Friday, October 09, 2015 4:33 PM > To: Chen, Yu C; r...@rjwysocki.net; l...@kernel.org > Cc: linux...@vger.kernel.org; linux-a...@vger.kernel.org; linux- > ker...@vger.kernel.org; Zhang, Rui > Subject: RE: [PATCH][v3] ACPI / PM: Fix

[PATCH] kvm: svm: Only propagate next_rip when guest supports it

2015-10-09 Thread Joerg Roedel
From: Joerg Roedel Currently we always write the next_rip of the shadow vmcb to the guests vmcb when we emulate a vmexit. This could confuse the guest when its cpuid indicated no support for the next_rip feature. Fix this by only propagating next_rip if the guest actually supports it. Cc:

Re: [PATCH v2] barriers: introduce smp_mb__release_acquire and update documentation

2015-10-09 Thread Will Deacon
Hi Paul, On Thu, Oct 08, 2015 at 03:17:16PM -0700, Paul E. McKenney wrote: > On Thu, Oct 08, 2015 at 01:59:38PM +0100, Will Deacon wrote: > > I thought Paul was talking about something like this case: > > > > CPU A CPU B CPU C > > foo = 1 > > UNLOCK x > > LOCK x > >

Re: [PATCH v2 09/12] mm,thp: reduce ifdef'ery for THP in generic code

2015-10-09 Thread Kirill A. Shutemov
On Tue, Sep 22, 2015 at 04:04:53PM +0530, Vineet Gupta wrote: > - pgtable-generic.c: Fold individual #ifdef for each helper into a top > level #ifdef. Makes code more readable Makes sense. > - Per Andrew's suggestion removed the dummy implementations for !THP > in asm-generic/page-table.h to

Re: [RFC]: Possible race condition in kernel futex code

2015-10-09 Thread Hans Zuidam
Hi Thomas, On 9 okt. 2015, at 11:06, Thomas Gleixner wrote: On Mon, 5 Oct 2015, Jaccon Bastiaansen wrote: >> We did some tests with different compilers, kernel versions and kernel >> configs, with the following results: > You cannot use an explicit 32bit read. We need an access which handles

Re: [PATCHv3 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-09 Thread Sjoerd Simons
On Thu, 2015-10-08 at 16:41 +0200, Arnd Bergmann wrote: > On Thursday 08 October 2015 11:27:13 Sjoerd Simons wrote: > > On Thu, 2015-10-08 at 10:37 +0200, Arnd Bergmann wrote: > > > On Thursday 08 October 2015 16:46:27 Krzysztof Kozlowski wrote: > > > > On 08.10.2015 16:41, Arnd Bergmann wrote: >

Re: [RFC v2 3/6] PM / Domains: introduce power-states consistent with c-states.

2015-10-09 Thread Marc Titinger
On 08/10/2015 18:27, Lina Iyer wrote: On Tue, Oct 06 2015 at 08:27 -0600, Marc Titinger wrote: This patch allows cluster-level C-states to being soaked in as generic domain power states, in order for the domain governor to chose the most efficient power state compatible with the device

Re: [PATCH] workqueue: Allocate the unbound pool using local node memory

2015-10-09 Thread Hillf Danton
> From: Xunlei Pang > > Currently, get_unbound_pool() uses kzalloc() to allocate the > worker pool. Actually, we can use the right node to do the > allocation, achieving local memory access. > > This patch selects target node first, and uses kzalloc_node() > instead. > > Signed-off-by: Xunlei

Re: [PATCH] can: at91: remove at91_can_data

2015-10-09 Thread Marc Kleine-Budde
On 10/08/2015 04:56 PM, Alexandre Belloni wrote: > struct at91_can_data was used to pass a callback to the driver, allowing it > to switch the transceiver on and off. As all at91 boards are now using DT, > this is not used anymore, remove that structure. One board was obviously not converted

Re: [PATCH v2 10/12] mm,thp: introduce flush_pmd_tlb_range

2015-10-09 Thread Kirill A. Shutemov
On Tue, Sep 22, 2015 at 04:04:54PM +0530, Vineet Gupta wrote: Commit message: -ENOENT. Otherwise, looks good: Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

[no subject]

2015-10-09 Thread Leon Zhang
Dear Sirs, Nice to meet you! This is Leon from Sayfu Multilayer Circuits Co.,ltd,we are PCB manufacture in China,From your Website,I think you need Print Circuit Board,right?We are no MOV for new order,no matter your order how much?we also accept it. Can you give me business chance to try

Re: [PATCH] panic: release stale console lock to always get the logbuf printed out

2015-10-09 Thread Vitaly Kuznetsov
Andrew Morton writes: > On Thu, 08 Oct 2015 11:51:13 +0200 Vitaly Kuznetsov > wrote: > >> > On Wed, 7 Oct 2015 19:02:22 +0200 Vitaly Kuznetsov >> > wrote: >> > >> >> In some cases we may end up killing the CPU holding the console lock >> >> while still having valuable data in logbuf. E.g.

Re: [PATCH] panic: release stale console lock to always get the logbuf printed out

2015-10-09 Thread Vitaly Kuznetsov
Andrew Morton writes: > On Thu, 08 Oct 2015 12:03:25 +0200 Vitaly Kuznetsov > wrote: > >> > If we picked up patch "kernel: Avoid softlockups in >> > stop_machine() during heavy printing" from my series (it's completely >> > independent, I've attached the latest version), the result would look

Re: [PATCH v2 00/12] THP support for ARC

2015-10-09 Thread Kirill A. Shutemov
On Fri, Oct 09, 2015 at 03:03:26PM +0530, Vineet Gupta wrote: > On Thursday 01 October 2015 11:32 AM, Vineet Gupta wrote: > > On Tuesday 22 September 2015 04:04 PM, Vineet Gupta wrote: > >> > Hi, > >> > > >> > This series brings THP support to ARC. It also introduces an optional new > >> > thp

Re: [PATCH 02/10] Drivers: hv: utils: run polling callback always in interrupt context

2015-10-09 Thread Vitaly Kuznetsov
Olaf Hering writes: > On Thu, Oct 08, KY Srinivasan wrote: > >> > yes, but after doing fcopy_respond_to_host(). I'd suggest we leave the >> > check in place, better safe than sorry. >> >> Agreed; Olaf, if it is ok with you, I can fix it up and send. > > I will retest with this part reverted. I

Re: [PATCHv2] arm: perf: Add event descriptions

2015-10-09 Thread Will Deacon
On Wed, Oct 07, 2015 at 11:28:18AM -0700, Drew Richardson wrote: > Add additional information about the ARM architected hardware events > to make counters self describing. This makes the hardware PMUs easier > to use as perf list contains possible events instead of users having > to refer to

Re: [PATCH 4/9] net/can: can_dropped_invalid_skb can be boolean

2015-10-09 Thread Marc Kleine-Budde
On 10/08/2015 03:28 PM, Yaowei Bai wrote: > This patch makes can_dropped_invalid_skb return bool due to this > particular function only using either one or zero as its return > value. > > No functional change. > > Signed-off-by: Yaowei Bai Acked-by: Marc Kleine-Budde Yaowei, feel free to

Re: [PATCH v2 3/5] ARM: mvebu: set SW polling as SDHCI card detection on A388-GP

2015-10-09 Thread Marcin Wojtas
Hi Thomas, 2015-10-09 9:52 GMT+02:00 Thomas Petazzoni : > Dear Marcin Wojtas, > > On Fri, 9 Oct 2015 03:03:53 +0200, Marcin Wojtas wrote: >> The newest revisions of A388-GP (v1.5 and higher) support only >> DAT3-based card detection. Revisions < v1.5 based on GPIO detection >> via I2C expander,

Re: [PATCH v6 0/6] KASAN for arm64

2015-10-09 Thread Andrey Ryabinin
2015-10-09 12:48 GMT+03:00 Mark Rutland : > On Fri, Oct 09, 2015 at 12:32:18PM +0300, Andrey Ryabinin wrote: > [...] > >> I thought the EFI stub isolation patches create a copy of mem*() functions >> in the stub, >> but they are just create aliases with __efistub_ prefix. >> >> We only need to

Re: [PATCH V2 1/2] Documentation: DT: Add binding documentation for NVIDIA ADMA

2015-10-09 Thread Jon Hunter
On 08/10/15 15:27, Stephen Warren wrote: > On 10/08/2015 03:58 AM, Jon Hunter wrote: [snip] >> That's fine. From my perspective I don't have a strong objection either >> way, however, I can see that given that the name indicates rx or tx, >> then the direction in the binding could be seen as

[PATCH] mfd: da9062-core: Rename get_device_type to da9062_get_device_type

2015-10-09 Thread Axel Lin
Rename get_device_type() to da9062_get_device_type(). This function is only used in this file so make it static. Signed-off-by: Axel Lin --- drivers/mfd/da9062-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c

[PATCH] x86/PCI: Don't alloc pcibios-irq when MSI is enabled

2015-10-09 Thread Joerg Roedel
From: Joerg Roedel The pcibios-irq and MSI both use dev->irq to store the IRQ number. While the MSI code checks for that and frees the pcibios-irq before overwriting dev->irq, the pcibios_alloc_irq function does not. Usually this is not a problem, as the pcibios-irq is allocated before probe

Re: WARNING: CPU: 4 PID: 863 at include/drm/drm_crtc.h:1577 drm_helper_choose_encoder_dpms+0x88/0x90() - evildoer found and neutralized

2015-10-09 Thread Joerg Roedel
On Tue, Oct 06, 2015 at 09:13:11PM +0800, Jiang Liu wrote: > We are on leave for Chinese National Holiday and has limited > access to my working environment. It would be appreciated if you could > help to send out a patch for it. Otherwise I will send out a patch > within 2-3 days. Okay, I

Re: [PATCH] kvm: fix waitqueue_active without memory barrier in virt/kvm/async_pf.c

2015-10-09 Thread Paolo Bonzini
On 09/10/2015 10:50, Peter Zijlstra wrote: > Not having actually read or thought about the issue at hand, its > perfectly valid to pair an smp_mb() with either spin_lock() or > spin_unlock(). > > IOW. MB <-> {ACQUIRE, RELEASE} is a valid pairing. In this case it's an smp_mb() (store-load

Re: [RFC]: Possible race condition in kernel futex code

2015-10-09 Thread Thomas Gleixner
Hans, On Fri, 9 Oct 2015, Hans Zuidam wrote: > On 9 okt. 2015, at 11:06, Thomas Gleixner wrote: > > You cannot use an explicit 32bit read. We need an access which > > handles the fault gracefully. > > The reason for the explicit read suggestion is to avoid the > _builtin_constant_p() in

Re: [PATCH] x86/PCI: Don't alloc pcibios-irq when MSI is enabled

2015-10-09 Thread Thomas Gleixner
On Fri, 9 Oct 2015, Joerg Roedel wrote: > From: Joerg Roedel > > The pcibios-irq and MSI both use dev->irq to store the IRQ > number. While the MSI code checks for that and frees the > pcibios-irq before overwriting dev->irq, the > pcibios_alloc_irq function does not. > > Usually this is not a

Re: [PATCH] kvm: fix waitqueue_active without memory barrier in virt/kvm/async_pf.c

2015-10-09 Thread Paolo Bonzini
On 09/10/2015 11:04, Kosuke Tatsukawa wrote: > smp_store_mb() called from set_current_state(), which is called from > prepare_to_wait() should prevent reordering such as below from > happening. wait_event*() also calls set_current_state() inside. Ah, I missed that set_current_state has a

Re: [PATCHv3 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-09 Thread Arnd Bergmann
On Friday 09 October 2015 11:59:05 Sjoerd Simons wrote: > > > I realize that building things as modules is a hassle, it is so for > > some things more than for others, so I keep asking the question > > to everyone to find out what a good balance is to make as much as > > possible modules without

[PATCHv3] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-09 Thread Manjeet Pawar
MINSIGSTKSZ and SIGSTKSZ for ARM64 are not correctly set in latest kernel. This patch fixes this issue. This issue is reported in LTP (testcase: sigaltstack02.c). Testcase failed when sigaltstack() called with stack size "MINSIGSTKSZ - 1" Since in Glibc-2.22, MINSIGSTKSZ is set to 5120 but in

Re: [PATCHv3] ARM64:Fix MINSIGSTKSZ and SIGSTKSZ

2015-10-09 Thread Will Deacon
On Fri, Oct 09, 2015 at 03:59:40PM +0530, Manjeet Pawar wrote: > MINSIGSTKSZ and SIGSTKSZ for ARM64 are not correctly set in latest kernel. > This patch fixes this issue. > > This issue is reported in LTP (testcase: sigaltstack02.c). > Testcase failed when sigaltstack() called with stack size

Re: [PATCH] timekeeping: Limit system time to prevent 32-bit time_t overflow

2015-10-09 Thread Miroslav Lichvar
On Fri, Oct 09, 2015 at 10:46:16AM +0100, Thomas Gleixner wrote: > On Thu, 8 Oct 2015, Miroslav Lichvar wrote: > > Applications are not allowed to rely on system time being sane? > > To me the current behavior looks like the kernel is throwing the > > applications off a cliff, while it's the only

pidns: Make pid accounting and pid_max per namespace

2015-10-09 Thread Zhang Haoyu
I started multiple docker containers in centos6.6(linux-2.6.32-504.16.2), and there's one bad program was running in one container. This program produced many child threads continuously without free, so more and more pid numbers were consumed by this program, until hitting the pix_max limit

Re: [PATCH][RFC] mm: Introduce kernelcore=reliable option

2015-10-09 Thread Xishi Qiu
On 2015/10/9 17:24, Kamezawa Hiroyuki wrote: > On 2015/10/09 15:46, Xishi Qiu wrote: >> On 2015/10/9 22:56, Taku Izumi wrote: >> >>> Xeon E7 v3 based systems supports Address Range Mirroring >>> and UEFI BIOS complied with UEFI spec 2.5 can notify which >>> ranges are reliable (mirrored) via EFI

Re: [tip:irq/core] genirq: Handle force threading of irqs with primary and thread handler

2015-10-09 Thread Thomas Gleixner
On Tue, 6 Oct 2015, Felipe Balbi wrote: > this commit causes a performance regression for the USB driver on > several platforms (anybody using drivers/usb/dwc3, basically). > > Here's the USB throughput with linux-next in 3 different scenarios: > > 1) Linux next without threadirqs cmdline > >

Re: [PATCH] timekeeping: Limit system time to prevent 32-bit time_t overflow

2015-10-09 Thread Thomas Gleixner
On Fri, 9 Oct 2015, Miroslav Lichvar wrote: > On Fri, Oct 09, 2015 at 10:46:16AM +0100, Thomas Gleixner wrote: > > On Thu, 8 Oct 2015, Miroslav Lichvar wrote: > > > Applications are not allowed to rely on system time being sane? > > > To me the current behavior looks like the kernel is throwing

[PATCH] pcnet32: fix a logic error with pci_set_dma_mask

2015-10-09 Thread Geliang Tang
pcnet32 can't work on my machine recently. It says "architecture does not support 32bit PCI busmaster DMA". There is a logic error in it: pci_set_dma_mask() return 0 means return successfully. Signed-off-by: Geliang Tang --- drivers/net/ethernet/amd/pcnet32.c | 2 +- 1 file changed, 1

Re: [PATCHv3 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-09 Thread Krzysztof Kozlowski
W dniu 09.10.2015 o 19:28, Arnd Bergmann pisze: > On Friday 09 October 2015 11:59:05 Sjoerd Simons wrote: >> >>> I realize that building things as modules is a hassle, it is so for >>> some things more than for others, so I keep asking the question >>> to everyone to find out what a good balance

<    5   6   7   8   9   10   11   12   13   14   >