[PATCH v1 0/6] Support the rk3036 Kylin board

2015-12-17 Thread Caesar Wang
Kylin-board is based on RK3036 SOCs, add the initiation version for working. This series patches have the following decriptions: PATCH[1/6]: ARM: dts: fix the correct pinctrl control for rk3036 The pinctrl gpio pull up/down is incorrect since the rk3036 SoCs can't set the status in the

[PATCH v1 1/6] ARM: dts: fix the correct pinctrl control for rk3036

2015-12-17 Thread Caesar Wang
The pinctrl gpio pull up/down is incorrect since the rk3036 SoCs can't set the status in the internal. We should keep the default status for enable the gpio status, In fact, the pull_none is the disable the gpio pull up/down. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang ---

[PATCH v1 2/6] ARM: dts: add the lcdc and hdmi node for rk3036

2015-12-17 Thread Caesar Wang
The rk3036 support two overlay plane and one hwc plane, it support IOMMU, and its IOMMU same as rk3288's. Meanwhile, add the inno hdmi for HDMI display. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036.dtsi | 61 +++ 1 file changed, 61

[PATCH v1 3/6] ARM: dts: add the sdio/sdmmc node for rk3036

2015-12-17 Thread Caesar Wang
In general, the sdio/sdmmc is used by the wifi module and sd card. let's add the node for these function. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036.dtsi | 72 +++ 1 file changed, 72 insertions(+) diff --git a/arch/arm/boot/dts/rk3036.dtsi

[PATCH v1 5/6] ARM: dts: add the sound codec for kylin board

2015-12-17 Thread Caesar Wang
Support the rt5616 codec for kylin board, but we need enable the i2s firstly. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036-kylin.dts | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/rk3036-kylin.dts

[PATCH v1 4/6] ARM: dts: rockchip: add the kylin board for rk3036

2015-12-17 Thread Caesar Wang
This patchset is the initiation version to try work for kylin board. Signed-off-by: Caesar Wang --- Documentation/devicetree/bindings/arm/rockchip.txt | 4 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rk3036-kylin.dts | 298

[PATCH v1 6/6] ARM: dts: add the sdio node for kylin board

2015-12-17 Thread Caesar Wang
Let's enable the sdio for wifi module on kylin board. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036-kylin.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts index 296139b..581e954 100644

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 03:08:49PM +0100, Dmitry Vyukov wrote: > On Thu, Dec 17, 2015 at 3:06 PM, Peter Zijlstra wrote: > > On Thu, Dec 10, 2015 at 08:57:40PM +0100, Peter Zijlstra wrote: > >> I'm not sure I can explain your problem with this, but I figure its > >> worth a try. > > > > Did it

Re: [PATCH 2/7] perf: Generalize task_function_call()ers

2015-12-17 Thread Alexander Shishkin
Peter Zijlstra writes: > On Tue, Dec 08, 2015 at 05:57:00PM +0100, Peter Zijlstra wrote: >> On Tue, Dec 08, 2015 at 06:42:01PM +0200, Alexander Shishkin wrote: >> > > +void ___perf_event_disable(void *info) >> > >> > Only maybe change these to __perf_event_disable_locked() or something >> >

Re: [PATCH v3 0/8] drm/rockchip: covert to support atomic API

2015-12-17 Thread Daniel Vetter
On Thu, Dec 17, 2015 at 01:03:53PM +0100, Heiko Stübner wrote: > Hi Mark, > > Am Donnerstag, 17. Dezember 2015, 18:32:31 schrieb Mark yao: > > On 2015年12月17日 18:00, Heiko Stübner wrote: > > > Am Donnerstag, 17. Dezember 2015, 11:01:07 schrieb Mark Yao: > > >> The series of patches coverting drm

[PATCH] drivers: thunderbolt: Coding Style Fix - Put for loop brace on same line

2015-12-17 Thread Benjamin Young
Made code more standard by fixing issue with _for_ loops not putting braces on the next line. Signed-off-by: Benjamin Young --- drivers/thunderbolt/tb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c index

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 03:26:17PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 03:08:49PM +0100, Dmitry Vyukov wrote: > > On Thu, Dec 17, 2015 at 3:06 PM, Peter Zijlstra > > wrote: > > > On Thu, Dec 10, 2015 at 08:57:40PM +0100, Peter Zijlstra wrote: > > >> I'm not sure I can explain

Re: GPF in gf128mul_64k_bbe

2015-12-17 Thread Stephan Mueller
Am Donnerstag, 17. Dezember 2015, 14:00:23 schrieb Dmitry Vyukov: Hi Dmitry, >Hello, > >The following program causes GPF in gf128mul_64k_bbe: thank you very much for the bug reports. I will have a look into them. Ciao Stephan -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 02:57:26PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 03:16:20PM +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 17, 2015 at 11:52:38AM +0100, Peter Zijlstra wrote: > > > On Thu, Dec 17, 2015 at 12:32:53PM +0200, Michael S. Tsirkin wrote: > > > > +static inline

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 03:02:12PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 03:26:29PM +0200, Michael S. Tsirkin wrote: > > > Note that virtio_mb() is weirdly inconsistent with virtio_[rw]mb() in > > > that they use dma_* ops for weak_barriers, while virtio_mb() uses > > > smp_mb().

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Dmitry Vyukov
On Thu, Dec 17, 2015 at 3:28 PM, Peter Zijlstra wrote: >> > >> I'm not sure I can explain your problem with this, but I figure its >> > >> worth a try. >> > > >> > > Did it make a difference? >> > > >> > > Also, does the syzkaller thing do cpu-hotplug during its runs? >> > >> > See my email on

Re: [PATCH v3] extcon: add Maxim MAX3355 driver

2015-12-17 Thread Sergei Shtylyov
Hello. On 12/17/2015 3:53 AM, Krzysztof Kozlowski wrote: Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role transceiver to function as an USB OTG dual-role device. In addition to sensing/controlling Vbus, the chip

Re: [PATCH v6 13/20] arm64: ilp32: share aarch32 syscall wrappers to ilp32

2015-12-17 Thread Andreas Schwab
Yury Norov writes: > From: Jan Dakinevich > > statfs64, fstat64 and mmap_pgoff has wrappers that needed both by aarch32 and Typo: s/fstat64/fstatfs64/ Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 04:33:44PM +0200, Michael S. Tsirkin wrote: > On Thu, Dec 17, 2015 at 02:57:26PM +0100, Peter Zijlstra wrote: > > > > You could of course go fix that instead of mutilating things into > > sort-of functional state. > > Yes, we'd just need to touch all architectures, all

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 03:39:10PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 04:33:44PM +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 17, 2015 at 02:57:26PM +0100, Peter Zijlstra wrote: > > > > > > You could of course go fix that instead of mutilating things into > > > sort-of

Re: use-after-free in __perf_install_in_context

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 03:35:32PM +0100, Dmitry Vyukov wrote: > In short, I did not see use-after-frees but perf_event_open fuzzing > started hanging VMs very frequently, so testing is inconclusive. Right, I'll get back to staring at that one. Running your test case on bare metal got my machine

Re: [PATCH] virtio: use smp_load_acquire/smp_store_release

2015-12-17 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 11:58:27AM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 12:29:03PM +0200, Michael S. Tsirkin wrote: > > +static inline __virtio16 virtio_load_acquire(bool weak_barriers, > > __virtio16 *p) > > +{ > > + if (!weak_barriers) { > > + rmb(); > > +

Re: [PATCH] i2c: allow building emev2 without slave mode again

2015-12-17 Thread Arnd Bergmann
On Thursday 17 December 2015 13:01:57 Wolfram Sang wrote: > On Mon, Dec 14, 2015 at 11:27:22PM +0100, Arnd Bergmann wrote: > > On Monday 14 December 2015 14:52:06 Wolfram Sang wrote: > > > > > What about not ifdeffing the inline function and keep the build error > > > > > whenever someone uses it

[GIT PULL] clockevents for 4.5

2015-12-17 Thread Daniel Lezcano
Hi Thomas, this pull request is bigger than the other ones. It contains a lot of changes and cleanups in order to increase the compilation test coverage. - Add cosmetic changes on error and a memory leakage on failure at init time for the mediatek timer (Alexey Klimov) - Remove the

[char-misc-next v2 2/7] mei: wd: drop the watchdog code from the core mei driver

2015-12-17 Thread Tomas Winkler
From: Alexander Usyskin Instead of integrating the iAMT watchdog in the mei core driver we will create a watchdog device on the mei client bus and create a driver for it. This patch removes the watchdog code from the mei core driver. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas

[char-misc-next 4/7] watchdog: mei_wdt: add status debugfs entry

2015-12-17 Thread Tomas Winkler
Add entry for dumping current watchdog internal state Signed-off-by: Tomas Winkler --- drivers/watchdog/mei_wdt.c | 84 ++ 1 file changed, 84 insertions(+) diff --git a/drivers/watchdog/mei_wdt.c b/drivers/watchdog/mei_wdt.c index

[char-misc-next v2 7/7] watchdog: mei_wdt: re-register device on event

2015-12-17 Thread Tomas Winkler
From: Alexander Usyskin For Intel SKL platform the ME device can inform the host via asynchronous notification that the watchdog feature was activated on the device. The activation doesn't require reboot. In that case the driver registers the watchdog device with the kernel. In the same manner

Re: [PATCH v5] serial: support for 16550A serial ports on LP-8x4x

2015-12-17 Thread Andy Shevchenko
On Wed, 2015-12-16 at 00:04 +0300, Sergei Ianovich wrote: > The patch adds support for 3 additional LP-8x4x built-in serial > ports. > > The device can also host up to 8 extension cards with 4 serial ports > on each card for a total of 35 ports. However, I don't have > the hardware to test

[char-misc-next v2 5/7] mei: bus: whitelist the watchdog client

2015-12-17 Thread Tomas Winkler
The iAMT WD client has to be whitelisted sice it has two connections and is filtered out by number_of_connections fixup. Also the API has changed for BDW and SKL but firmware haven't updated the protocol version. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- V2: resend

[char-misc-next v2 6/7] watchdog: mei_wdt: register wd device only if required

2015-12-17 Thread Tomas Winkler
From: Alexander Usyskin For Intel Broadwell and newer platforms, the ME device can inform the host whether the watchdog functionality is activated or not. If the watchdog functionality is not activated then the watchdog interface can be not registered and eliminate unnecessary pings and hence

[char-misc-next v2 1/7] mei: drop nfc leftovers from the mei driver

2015-12-17 Thread Tomas Winkler
We left few function prototypes in the header file after moving nfc logic to bus. Signed-off-by: Tomas Winkler --- V2: resend drivers/misc/mei/mei_dev.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index

[char-misc-next v2 0/7] mei: create proper iAMT watchdog driver

2015-12-17 Thread Tomas Winkler
Instead of integrating the iAMT watchdog within the mei core driver we will create a watchdog device on the mei client bus and create a proper watchdog driver for it. V2: 1. The watchdog device is no longer dynamically allocated in separate structure 2. Export device internal status via debugfs

[char-misc-next v2 3/7] watchdog: mei_wdt: implement MEI iAMT watchdog driver

2015-12-17 Thread Tomas Winkler
Create a driver with the generic watchdog interface for the MEI iAMT watchdog device. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- V2: The watchdog device is no longer dynamically allocated in separate structure Documentation/misc-devices/mei/mei.txt | 12 +- MAINTAINERS

Re: [PATCH V5 2/2] watchdog: Read device status through sysfs attributes

2015-12-17 Thread Guenter Roeck
On 12/17/2015 04:23 AM, Pratyush Anand wrote: This patch adds following attributes to watchdog device's sysfs interface to read its different status. * state - reads whether device is active or not * identity - reads Watchdog device's identity string. * timeout - reads current timeout. *

Re: SDHCI long sleep with interrupts off

2015-12-17 Thread Ulf Hansson
[...] >> If/when you decide to fix this issue. Please keep in mind the following >> things. >> >> - Try to convert the SDHCI into a pure library. No more quirks or callbacks. >> - I assume we can simplify lots of code if we convert SDHCI into using >> a threaded IRQ in favour of the tasklet. >>

Re: [PATCH V5 1/2] watchdog: Use static struct class watchdog_class in stead of pointer

2015-12-17 Thread Guenter Roeck
On 12/17/2015 04:23 AM, Pratyush Anand wrote: We need few sysfs attributes to know different status of a watchdog device. To do that, we need to associate .dev_groups with watchdog_class. So convert it from pointer to static. Putting this static struct in watchdog_dev.c, so that static device

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-17 Thread Andy Shevchenko
On Tue, 2015-12-15 at 23:25 +, Mans Rullgard wrote: > Currently this driver only works with a DesignWare DMA engine which > it > registers manually using the second "reg" address range and interrupt > number from the DT node. > > This patch makes the driver instead use the "dmas" property if

Re: [lm-sensors] LM90 driver and ti tmp461 detection

2015-12-17 Thread Guenter Roeck
On Thu, Dec 17, 2015 at 12:48:08PM +0100, Jean Delvare wrote: > Hi Andreas, > > On Tue, 15 Dec 2015 16:11:24 +0100, Andreas Werner wrote: > > here is the register dump of the tmp461. > > Thanks. > > > It seemse that we really cannot detect if it is a tmp461 or a tmp451. > > Also the magic "ID

[PATCH 1/1] mac80211: improve the contiguous mask checking

2015-12-17 Thread Zeng Zhaoxiu
If the result of adding the first set bit to the mask is power of 2, the mask must be contiguous. "mask & -mask" can get the first set bit of mask gracefully. Signed-off-by: Zeng Zhaoxiu --- net/mac80211/iface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-17 Thread Andy Shevchenko
On Tue, 2015-12-15 at 23:34 +, Måns Rullgård wrote: > Mans Rullgard writes: > > > Currently this driver only works with a DesignWare DMA engine which > > it > > registers manually using the second "reg" address range and > > interrupt > > number from the DT node. > > > > This patch makes

Re: [PATCH] serial: atmel: header file for MODULE_DEVICE_TABLE

2015-12-17 Thread Paul Gortmaker
non-modular") > Cc: Paul Gortmaker > Signed-off-by: Sudip Mukherjee > --- > > build log with next-20151217 is at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/97388463 > > Log contains another error with gpio, patch for that has been separately > submitted

Re: [PATCH v4 1/2] watchdog: imx2_wdt: add external reset support via 'ext-reset-output' dt prop

2015-12-17 Thread Tim Harvey
On Wed, Dec 2, 2015 at 12:54 PM, Tim Harvey wrote: > > On Wed, Dec 2, 2015 at 11:11 AM, Akshay Bhat wrote: > > > > > > On 11/06/2015 05:02 PM, Guenter Roeck wrote: > >> > >> On Fri, Nov 06, 2015 at 11:53:42AM -0800, Tim Harvey wrote: > >>> > >>> On Thu, Nov 5, 2015 at 2:23 PM, Guenter Roeck

Re: [PATCH 1/1] mac80211: improve the contiguous mask checking

2015-12-17 Thread Johannes Berg
On Thu, 2015-12-17 at 22:59 +0800, Zeng Zhaoxiu wrote: > If the result of adding the first set bit to the mask is power of 2, > the mask must be contiguous. "mask & -mask" can get the first set bit > of mask gracefully. > - if (__ffs64(mask) + hweight64(mask) != fls64(mask)) > { > +

[PATCH] drivers/tty/serial: delete unused MODULE_DEVICE_TABLE from atmel_serial.c

2015-12-17 Thread Paul Gortmaker
In commit c39dfebc7798956fd2140ae6321786ff35da30c3 ("drivers/tty/serial: make serial/atmel_serial.c explicitly non-modular") we removed the code relating to modular support since it currently only supports built in. However, when redoing my build coverage for mips allmodconfig, which sets

Re: [PATCH 2/7] perf: Generalize task_function_call()ers

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 04:25:14PM +0200, Alexander Shishkin wrote: > That aside, why I brought it up in the first place is because the two > functions are asymmetric: one is called with irqs disabled and the > other -- with ctx::lock held (and not because I'm into bikeshedding or > anything like

Re: SDHCI long sleep with interrupts off

2015-12-17 Thread David Jander
Dear Ulf, On Thu, 17 Dec 2015 15:54:54 +0100 Ulf Hansson wrote: > [...] > > >> If/when you decide to fix this issue. Please keep in mind the following > >> things. > >> > >> - Try to convert the SDHCI into a pure library. No more quirks or > >> callbacks. > >> - I assume we can simplify lots

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Peter Zijlstra
On Thu, Dec 17, 2015 at 04:34:57PM +0200, Michael S. Tsirkin wrote: > On Thu, Dec 17, 2015 at 03:02:12PM +0100, Peter Zijlstra wrote: > > > commit 9e1a27ea42691429e31f158cce6fc61bc79bb2e9 > > > Author: Alexander Duyck > > > Date: Mon Apr 13 21:03:49 2015 +0930 > > > > > >

Re: [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data

2015-12-17 Thread Andy Shevchenko
On Tue, 2015-12-15 at 23:25 +, Mans Rullgard wrote: > This moves all global data into the driver private struct, thus > permitting multiple devices of this type to be used. > Nice! Btw, last time Linus complained about new warnings. Most of them I have fixed when moved to external DMA

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-17 Thread Måns Rullgård
Andy Shevchenko writes: > On Tue, 2015-12-15 at 23:34 +, Måns Rullgård wrote: >> Mans Rullgard writes: >> >> > Currently this driver only works with a DesignWare DMA engine which >> > it >> > registers manually using the second "reg" address range and >> > interrupt >> > number from the DT

Re: [PATCH V2 02/10] irqchip / GICv3: Add ACPI support for GICv3+ initialization

2015-12-17 Thread Tomasz Nowicki
On 17.12.2015 14:44, kbuild test robot wrote: Hi Tomasz, [auto build test ERROR on v4.4-rc4] [also build test ERROR on next-20151217] [cannot apply to tip/irq/core v4.4-rc5] url: https://github.com/0day-ci/linux/commits/Tomasz-Nowicki/Introduce-ACPI-world-to-GICv3-ITS-irqchip/20151217

Re: [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data

2015-12-17 Thread Måns Rullgård
Andy Shevchenko writes: > On Tue, 2015-12-15 at 23:25 +, Mans Rullgard wrote: >> This moves all global data into the driver private struct, thus >> permitting multiple devices of this type to be used. >> > > Nice! > > Btw, last time Linus complained about new warnings. Most of them I have >

Re: [PATCH 08/11] tty: serial: 8250: Add parentheses to macro

2015-12-17 Thread Andy Shevchenko
On Wed, 2015-12-16 at 16:36 +0100, Anton Wuerfel wrote: > This patch fixes a checkpatch warning caused by missing parentheses > in the definition of a macro. > > Signed-off-by: Anton Würfel > Signed-off-by: Phillip Raffeck > CC: linux-ker...@i4.cs.fau.de > --- >  

Re: [RFC PATCH] always probe UART HW when options are not specified

2015-12-17 Thread Måns Rullgård
Sebastian Frias writes: > - reading/writing to UART_DLL/UART_DLM directly are converted to using > the read_dl/write_dl callbacks. This should be an obvious fix. Please send that as a separate patch. -- Måns Rullgård -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH v3] usb: gadget: forbid queuing request to a disabled ep

2015-12-17 Thread Felipe Balbi
Hi, changbin...@intel.com writes: > From: "Du, Changbin" > > Queue a request to disabled ep doesn't make sense, and induce caller > make mistakes. > > Here is a example for the android mtp gadget function driver. A mem > corruption can happen on below senario. > 1) On disconnect, mtp driver

Re: [PATCH] af_unix: Revert 'lock_interruptible' in stream receive code

2015-12-17 Thread Rainer Weikusat
Hannes Frederic Sowa writes: > On 16.12.2015 21:09, Rainer Weikusat wrote: >> With b3ca9b02b00704053a38bfe4c31dbbb9c13595d0, the AF_UNIX SOCK_STREAM >> receive code was changed from using mutex_lock(>readlock) to >> mutex_lock_interruptible(>readlock) to prevent signals from being >> delayed for

Re: [PATCH v4 1/2] watchdog: imx2_wdt: add external reset support via 'ext-reset-output' dt prop

2015-12-17 Thread Guenter Roeck
On 12/17/2015 07:02 AM, Tim Harvey wrote: On Wed, Dec 2, 2015 at 12:54 PM, Tim Harvey wrote: On Wed, Dec 2, 2015 at 11:11 AM, Akshay Bhat wrote: On 11/06/2015 05:02 PM, Guenter Roeck wrote: On Fri, Nov 06, 2015 at 11:53:42AM -0800, Tim Harvey wrote: On Thu, Nov 5, 2015 at 2:23 PM,

[PATCH] rbtree: correct comments about rotation operation

2015-12-17 Thread Tao Zhou
The rotation operation is symmetric. So the comments about rotation operation need to be corrected. Signed-off-by: Tao Zhou --- lib/rbtree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rbtree.c b/lib/rbtree.c index 1356454..750cfa8 100644 --- a/lib/rbtree.c +++

Re: corruption causing crash in __queue_work

2015-12-17 Thread Tejun Heo
Hello, Nikolay. On Thu, Dec 17, 2015 at 12:46:10PM +0200, Nikolay Borisov wrote: > diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c > index 493c38e08bd2..ccbbf7823cf3 100644 > --- a/drivers/md/dm-thin.c > +++ b/drivers/md/dm-thin.c > @@ -3506,8 +3506,8 @@ static void

Re: [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data

2015-12-17 Thread Andy Shevchenko
On Thu, 2015-12-17 at 15:19 +, Måns Rullgård wrote: > Andy Shevchenko writes: > > > On Tue, 2015-12-15 at 23:25 +, Mans Rullgard wrote: > > > This moves all global data into the driver private struct, thus > > > permitting multiple devices of this type to be used. > > > > > > > Nice! >

Re: [PATCH] drivers/tty/serial: delete unused MODULE_DEVICE_TABLE from atmel_serial.c

2015-12-17 Thread Nicolas Ferre
Le 17/12/2015 16:05, Paul Gortmaker a écrit : > In commit c39dfebc7798956fd2140ae6321786ff35da30c3 ("drivers/tty/serial: > make serial/atmel_serial.c explicitly non-modular") we removed the code > relating to modular support since it currently only supports built in. > > However, when redoing my

Re: corruption causing crash in __queue_work

2015-12-17 Thread Nikolay Borisov
On 12/17/2015 05:33 PM, Tejun Heo wrote: > Hello, Nikolay. > > On Thu, Dec 17, 2015 at 12:46:10PM +0200, Nikolay Borisov wrote: >> diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c >> index 493c38e08bd2..ccbbf7823cf3 100644 >> --- a/drivers/md/dm-thin.c >> +++ b/drivers/md/dm-thin.c >>

Re: sched : performance regression 24% between 4.4rc4 and 4.3 kernel

2015-12-17 Thread Jirka Hladky
Hi Peter, I'm not sure how to do the bisecting and avoid landing at: [2a595721a1fa6b684c1c818f379bef834ac3d65e] sched/numa: Convert sched_numa_balancing to a static_branch I have redone the bisecting but I have landed again at this commit. Can you please help me to identify the commit which has

Re: [PATCH] af_unix: Revert 'lock_interruptible' in stream receive code

2015-12-17 Thread Hannes Frederic Sowa
On 17.12.2015 16:28, Rainer Weikusat wrote: > Hannes Frederic Sowa writes: >> On 16.12.2015 21:09, Rainer Weikusat wrote: >>> With b3ca9b02b00704053a38bfe4c31dbbb9c13595d0, the AF_UNIX SOCK_STREAM >>> receive code was changed from using mutex_lock(>readlock) to >>>

Re: livepatch: reuse module loader code to write relocations

2015-12-17 Thread Petr Mladek
On Wed 2015-12-16 00:40:48, Jessica Yu wrote: > Turns out the string parsing stuff, even with the help of lib/string.c, > doesn't > look very pretty. As I'm working on v3, I'm starting to think having > klp_write_object_relocations() loop simply through all the elf sections might > not be a good

Re: [PATCH v4 1/5] PCI: designware: add memory barrier after enabling region

2015-12-17 Thread Stanimir Varbanov
On 12/11/2015 06:05 AM, Pratyush Anand wrote: > On Wed, Dec 9, 2015 at 3:53 PM, Russell King - ARM Linux > wrote: > > [...] > > dw_pcie_writel_rc(pp, PCIE_ATU_ENABLE, PCIE_ATU_CR2); > + /* > + * ensure that the ATU enable has been happaned before accessing > +

[PATCH 0/2] coresight: next v4.4-rc5

2015-12-17 Thread Mathieu Poirier
Good day Greg, Please queue the following patches for the 4.5 cycle. Regards, Mathieu Andrew F. Davis (1): coresight: Fix a typo in Kconfig Mathieu Poirier (1): coresight: checking for NULL string in coresight_name_match() drivers/hwtracing/coresight/Kconfig | 2 +-

[PATCH 2/2] coresight: Fix a typo in Kconfig

2015-12-17 Thread Mathieu Poirier
From: "Andrew F. Davis" Signed-off-by: Andrew F. Davis Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/Kconfig b/drivers/hwtracing/coresight/Kconfig index

[PATCH 1/2] coresight: checking for NULL string in coresight_name_match()

2015-12-17 Thread Mathieu Poirier
Connection child names associated to ports can sometimes be NULL, which is the case when booting a system on QEMU or when the Coresight power domain isn't switched on. This patch is adding a check to make sure a NULL string isn't fed to strcmp(), something that avoid crashing the system. Cc: #

Re: [PATCH] ARM: dts: Make CPU configuration more readable for exynos542x/5800

2015-12-17 Thread Chanho Park
On Fri, Dec 11, 2015 at 3:17 PM, Krzysztof Kozlowski wrote: > Exynos5420 and Exynos5800 boards boot from big core (A15) but > Exynos5420 boards choose otherwise: LITTLE core (A7) (on Exynos5422 this > is property of the board - configurable by pulling up/down gpg2-1). > To make user-visible CPU

Re: corruption causing crash in __queue_work

2015-12-17 Thread Tejun Heo
Hello, Nikolay. On Thu, Dec 17, 2015 at 05:43:12PM +0200, Nikolay Borisov wrote: > Right, but my initial understanding was that when canceling the delayed > work and then issuing flush_workqueue would act the same way as if > cancel_delayed_work_sync is called wrt to this particular delayed item,

Re: [PATCH v4 1/5] PCI: designware: add memory barrier after enabling region

2015-12-17 Thread Pratyush Anand
On Thu, Dec 17, 2015 at 9:15 PM, Stanimir Varbanov wrote: > > On 12/11/2015 06:05 AM, Pratyush Anand wrote: > > On Wed, Dec 9, 2015 at 3:53 PM, Russell King - ARM Linux > > wrote: > > > > [...] > > > > dw_pcie_writel_rc(pp, PCIE_ATU_ENABLE, PCIE_ATU_CR2); > > + /* > > +

-next regression: "driver cohandle -EPROBE_DEFER from bus_type.match()"

2015-12-17 Thread Dan Williams
The commit below causes the libnvdimm sub-system to stop loading. This is due to the fact that nvdimm_bus_match() returns the result of test_bit() which may be negative. If there are any other bus match functions using test_bit they may be similarly impacted. Can we queue a fixup like the

Re: [PATCH] virtio_ring: use smp_store_mb

2015-12-17 Thread Will Deacon
On Thu, Dec 17, 2015 at 04:09:17PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 04:34:57PM +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 17, 2015 at 03:02:12PM +0100, Peter Zijlstra wrote: > > > > > commit 9e1a27ea42691429e31f158cce6fc61bc79bb2e9 > > > > Author:

[PATCH v2 2/3] STAGING: COMEDI: Added spaces around binary operators in plx9080.h

2015-12-17 Thread Moritz König
This patch adds spaces around binary operators in plx9080.h. Signed-off-by: Moritz König Signed-off-by: Fabian Lang Reviewed-by: Ian Abbott --- drivers/staging/comedi/drivers/plx9080.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/plx9080.h

[PATCH v2 1/3] STAGING: COMEDI: Fixed format of comments in plx9080.h

2015-12-17 Thread Moritz König
This patch fixes the format of comments in plx9080.h. Signed-off-by: Moritz König Signed-off-by: Fabian Lang --- Changes since v1: * moving comments that would wrap over 80 columns onto the previous line * using the usual block comment style drivers/staging/comedi/drivers/plx9080.h | 122

[PATCH v2 3/3] STAGING: COMEDI: Using kernel types in plx9080.h

2015-12-17 Thread Moritz König
This patch makes plx9080.h use kernel types. Signed-off-by: Moritz König Signed-off-by: Fabian Lang Reviewed-by: Ian Abbott Acked-by: Moritz Fischer --- drivers/staging/comedi/drivers/plx9080.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 0/3] STAGING: COMEDI: checkpatch.pl cleanups in plx9080.h

2015-12-17 Thread Moritz König
This patchset fixes all the warnings and legitimate checks of checkpatch.pl in plx9080.h. The following warnings were fixed: * WARNING: Block comments use a trailing */ on a separate line * WARNING: Block comments use * on subsequent lines * WARNING: line over 80 characters The following

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-17 Thread Andy Shevchenko
On Thu, 2015-12-17 at 15:13 +, Måns Rullgård wrote: > Andy Shevchenko writes: > > > On Tue, 2015-12-15 at 23:34 +, Måns Rullgård wrote: > > > Mans Rullgard writes: > > > > > > > Currently this driver only works with a DesignWare DMA engine > > > > which > > > > it > > > > registers

[PATCH v3] cgroups: move cpuset specific checks from generic code to cpuset_can_attach

2015-12-17 Thread Marcelo Tosatti
Move PF_NO_SETAFFINITY check to cpuset cgroups, where it belongs. This makes it possible to attach PF_NO_SETAFFINITY to Intel CAT cgroups. Reported-by: Luiz Capitulino Signed-off-by: Marcelo Tosatti v2: "PF_NO_SETAFFINITY check" -> "PF_NO_SETAFFINITY and kthreadd_task checks" v3: keep

Re: [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data

2015-12-17 Thread Måns Rullgård
Andy Shevchenko writes: > On Thu, 2015-12-17 at 15:19 +, Måns Rullgård wrote: >> Andy Shevchenko writes: >> >> > On Tue, 2015-12-15 at 23:25 +, Mans Rullgard wrote: >> > > This moves all global data into the driver private struct, thus >> > > permitting multiple devices of this type to

Re: [PATCH v10 3/4] irqchip:create irq domain for each mbigen device

2015-12-17 Thread Marc Zyngier
On 17/12/15 11:56, MaJun wrote: > From: Ma Jun > > For peripheral devices which connect to mbigen,mbigen is a interrupt > controller. So, we create irq domain for each mbigen device and add > mbigen irq domain into irq hierarchy structure. > > Signed-off-by: Ma Jun Reviewed-by: Marc Zyngier

Re: [PATCH] use callbacks to access UART_DLL/UART_DLM

2015-12-17 Thread Måns Rullgård
Sebastian Frias writes: > --- > resending as plain-text > --- > drivers/tty/serial/8250/8250_core.c | 17 +++-- > 1 file changed, 7 insertions(+), 10 deletions(-) > > diff --git a/drivers/tty/serial/8250/8250_core.c > b/drivers/tty/serial/8250/8250_core.c > index

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-17 Thread Måns Rullgård
Andy Shevchenko writes: > On Thu, 2015-12-17 at 15:13 +, Måns Rullgård wrote: >> Andy Shevchenko writes: >> >> > On Tue, 2015-12-15 at 23:34 +, Måns Rullgård wrote: >> > > Mans Rullgard writes: >> > > >> > > > Currently this driver only works with a DesignWare DMA engine >> > > >

[PATCH] locking/osq: Fix ordering of node initialisation in osq_lock

2015-12-17 Thread Peter Zijlstra
Hi Linus, Please consider this patch for 4.4. --- Subject: locking/osq: Fix ordering of node initialisation in osq_lock From: Will Deacon Date: Fri, 11 Dec 2015 17:46:41 + The Cavium guys reported a soft lockup on their arm64 machine, caused by c55a6ffa6285 ("locking/osq: Relax atomic

Re: [PATCH v10 0/4] irqchip:support mbigen interrupt controller

2015-12-17 Thread Marc Zyngier
On 17/12/15 11:56, MaJun wrote: > From: Ma Jun > > This patch set adds the driver of mbigen and binding document for Hisilicon > Mbigen chips. [...[ Right, we're almost there. Assuming you quickly deal with the couple of remarks Mark had, I'll apply this on top of my irq/wire-msi-bridge branch

Re: [PATCH 07/10] drivers/pci: make host/pcie-rcar.c explicitly non-modular

2015-12-17 Thread Paul Gortmaker
[RE: [PATCH 07/10] drivers/pci: make host/pcie-rcar.c explicitly non-modular] On 17/12/2015 (Thu 11:32) Phil Edworthy wrote: > Hi Paul, > > On 13 December 2015 10:59, Geert Uytterhoeven wrote: > > > > CC MODULE_AUTHOR > > > > On Sun, Dec 13, 2015 at 2:41 AM, Paul Gortmaker > > wrote: > > >

[PATCH] use callbacks to access UART_DLL/UART_DLM

2015-12-17 Thread Sebastian Frias
--- resending as plain-text --- drivers/tty/serial/8250/8250_core.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index 2c46a21..9ca863c 100644 ---

Re: rhashtable: Prevent spurious EBUSY errors on insertion

2015-12-17 Thread Xin Long
On Thu, Dec 17, 2015 at 5:00 PM, Xin Long wrote: > On Thu, Dec 17, 2015 at 4:48 PM, Herbert Xu > wrote: >> On Thu, Dec 17, 2015 at 04:46:00PM +0800, Xin Long wrote: >>> >>> sorry for late test, but unfortunately, my case with rhashtalbe still >>> return EBUSY. >>> I added some debug code in

Re: [PATCH v2 1/7] mm: memcontrol: charge swap to cgroup2

2015-12-17 Thread Johannes Weiner
On Thu, Dec 17, 2015 at 03:29:54PM +0300, Vladimir Davydov wrote: > In the legacy hierarchy we charge memsw, which is dubious, because: > > - memsw.limit must be >= memory.limit, so it is impossible to limit >swap usage less than memory usage. Taking into account the fact that >the

[PATCH] dm-thin: Fix race condition when destroying thin pool

2015-12-17 Thread Nikolay Borisov
When a thin pool is being destroyed delayed work items are canceled using cancel_delayed_work item, which doesn't guarantee that on return the delayed item wasn't running. This can cause the workitem to requeue itself on an already destroyed workqueue. Fix this by using cancel_delayed_work item

Re: [PATCH v10 4/4] irqchip:implement the mbigen irq chip operation functions

2015-12-17 Thread Marc Zyngier
On 17/12/15 11:56, MaJun wrote: > From: Ma Jun > > Add the interrupt controller chip operation functions of mbigen chip. > > Signed-off-by: Ma Jun Reviewed-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny... -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v6 0/4] SysFS driver for QEMU fw_cfg device

2015-12-17 Thread Gabriel L. Somlo
ping ? Also, for the corresponding patch set on the QEMU end of things, ping on http://thread.gmane.org/gmane.comp.emulators.qemu/376321 Thanks, --Gabriel On Fri, Dec 04, 2015 at 10:29:02AM -0500, Gabriel L. Somlo wrote: > Allow access to QEMU firmware blobs, passed into the guest VM via > the

Re: [PATCH v2 7/7] Documentation: cgroup: add memory.swap.{current,max} description

2015-12-17 Thread Johannes Weiner
On Thu, Dec 17, 2015 at 03:30:00PM +0300, Vladimir Davydov wrote: > The rationale of separate swap counter is given by Johannes Weiner. > > Signed-off-by: Vladimir Davydov Acked-by: Johannes Weiner -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Aw: Re: [RFC PATCH urcu on mips, parisc] Fix: compat_futex should work-around futex signal-restart kernel bug

2015-12-17 Thread Helge Deller
Hello Mathieu, > > When testing liburcu on a 3.18 Linux kernel, 2-core MIPS (cpu model : > > Ingenic JZRISC V4.15 FPU V0.0), we notice that a blocked sys_futex > > FUTEX_WAIT returns -1, errno=ENOSYS when interrupted by a SA_RESTART > > signal handler. This spurious ENOSYS behavior causes hangs

Re: [PATCHV3 1/3] x86, ras: Add new infrastructure for machine check fixup tables

2015-12-17 Thread Andy Lutomirski
On Wed, Dec 16, 2015 at 2:51 PM, Luck, Tony wrote: >> Looks generally good. >> >> Reviewed-by: Andy Lutomirski > > You say that to part 1/3 ... what happens when you get to part 3/3 and you > read my attempts at writing x86 assembly code? I'm not at all familiar with that code, and Borislav or

Re: [RFC PATCH v2 2/6] module: preserve Elf information for livepatch modules

2015-12-17 Thread Petr Mladek
On Mon 2015-11-30 23:21:15, Jessica Yu wrote: > For livepatch modules, copy Elf section, symbol, and string information > from the load_info struct in the module loader. > > Livepatch uses special relocation sections in order to be able to patch > modules that are not yet loaded, as well as apply

Re: [RFC PATCH v2 2/6] module: preserve Elf information for livepatch modules

2015-12-17 Thread Petr Mladek
On Tue 2015-12-08 12:32:12, Josh Poimboeuf wrote: > On Mon, Nov 30, 2015 at 11:21:15PM -0500, Jessica Yu wrote: > > For livepatch modules, copy Elf section, symbol, and string information > > from the load_info struct in the module loader. > > > > Livepatch uses special relocation sections in

Re: [PATCH v4 2/4] ARM: bcm2835: add rpi power domain driver

2015-12-17 Thread Ulf Hansson
On 17 December 2015 at 01:26, Eric Anholt wrote: > From: Alexander Aring > > This patch adds support for several power domains on Raspberry Pi, > including USB (so it can be enabled even if the bootloader didn't do > it), and graphics. > > This patch is the combined work of Eric Anholt (who

Re: [RFC PATCH] always probe UART HW when options are not specified

2015-12-17 Thread Peter Hurley
On 12/17/2015 07:15 AM, Sebastian Frias wrote: > --- > > I think there are a few minor bugs on the 8250 UART code. > > Below you can find a patch with a proposed solution. > > In a nutshell: > - probe_baud from 87515772c33ee8a0cc08d984a7d2401eeff074cd was > converted into probe_port so that it

Re: [PATCH -next] irqchip: renesas-h8s: Replace ctrl_outw/ctrl_inw with writew/readw

2015-12-17 Thread Yoshinori Sato
On Wed, 16 Dec 2015 13:30:37 +0900, Guenter Roeck wrote: > > Commit 13ae42a3b1c1 ("h8300: Rename ctlr_out/in[bwl] to > raw_read/write[bwl]") changed the function names, but not all callers, > resulting in > > drivers/irqchip/irq-renesas-h8s.c: In function ‘h8s_disable_irq’: >

<    7   8   9   10   11   12   13   14   15   16   >