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 att

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 Re

[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 a/net/mac8021

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 the

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

2015-12-17 Thread Paul Gortmaker
tmel_serial.c > explicitly 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

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 wrot

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 CONFIG_O

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 o

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

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 driver

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 > --- >  drivers/tty/serial/8250/8250_cor

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

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 dis

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(&u->readlock) to >> mutex_lock_interruptible(&u->readlock) to prevent signals from being >> delayed

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

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

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 pool_postsuspend(struc

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 b

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(&u->readlock) to >>> mutex_lock_interruptible(&u->

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 i

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 +- drivers/hwtracing/

[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 6c8921140f02..c8593

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

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 or

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 followi

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

[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 a/drivers/staging/comedi/drivers/

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

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 manu

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

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 2c46a21..9ca863

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

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

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

[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 --- a/drivers/tty/serial/8250/8250

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 rhas

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 primar

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

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 l

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 f

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 messa

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 i

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 s

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 orde

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 wrote

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 r

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’: > drivers/irqchip/irq-

Re: [PATCH v3 0/4] Raspberry Pi power domains

2015-12-17 Thread Ulf Hansson
On 15 December 2015 at 22:40, Eric Anholt wrote: > Since the pm_genpd_exit() patch is still going through review, and > other drivers in the tree just ignore the error cases, Ulf offered to > merge the series as a builtin driver not depending on that interface. > We still avoid dangling pointer re

Re: [PATCH 1/3] NTB: Add AMD PCI-Express NTB driver

2015-12-17 Thread Allen Hubbe
On Thu, Dec 17, 2015 at 3:17 AM, Xiangliang Yu wrote: > AMD NTB support following main features: > (1) Three memory windows; > (2) Sixteen 32-bit scratch pad; > (3) Two 16-bit doorbell interrupt; > (4) Five event interrupts; > (5) One system can wake up opposite system of NTB; > (6) Flush previous

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

2015-12-17 Thread Dan Williams
On Thu, Dec 17, 2015 at 7:51 AM, Dan Williams wrote: > 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

[PATCH] gpio/sysfs: Add ID parameter for GPIO lines

2015-12-17 Thread Ricardo Ribalda Delgado
On named GPIOs there is currently no find out their numerical id. Because of this, a GPIO pin named like: /sys/class/gpio/PROG_B cannot be unexported by an application different than the one that exported it. This patch adds a new parameter to the GPIO line called id, that shows the numerical id

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

2015-12-17 Thread Sebastian Frias
On 12/17/2015 05:29 PM, Peter Hurley wrote: 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

[PATCH 01/24] crypto: atmel-aes: add new version

2015-12-17 Thread Cyrille Pitchen
From: Leilei Zhao Add new version of atmel-aes available with SAMA5D2 devices. Signed-off-by: Leilei Zhao --- drivers/crypto/atmel-aes.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index bfb1f799bf56..854e2813b2bb 100644 ---

[PATCH 00/24] crypto: atmel-aes: global rework of the driver

2015-12-17 Thread Cyrille Pitchen
Hi all, this series of patches is a global rework of the Atmel driver. Some patches improve the performances whereas others fix some bugs like the counter overflow in CTR mode. It also updates some part of the code to make them more generic. For instance the crypto request queue management suppor

[PATCH 02/24] crypto: atmel-aes: constify value argument of atmel_aes_write_n()

2015-12-17 Thread Cyrille Pitchen
atmel_aes_write_n() should not modify its value argument. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index 854e2813b2bb..1d3997a45610 100644 --- a/driver

[PATCH 03/24] crypto: atmel-aes: change algorithm priorities

2015-12-17 Thread Cyrille Pitchen
Increase the algorithm priorities so the hardware acceleration is now preferred to the software computation: the "aes-generice" driver uses 100 as priority. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-)

[PATCH 05/24] crypto: atmel-aes: remove unused header includes

2015-12-17 Thread Cyrille Pitchen
Hash headers have nothing to do with AES block ciphers. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index e948bf2b8a8e..7d1b055811c4 100644 --- a/drivers/crypto/atmel-a

[PATCH 06/24] crypto: atmel-aes: propagate error from atmel_aes_hw_version_init()

2015-12-17 Thread Cyrille Pitchen
Before this patch atmel_aes_hw_version_init() had no returned value. However it calls atmel_aes_hw_init(), which may fail. So check the returned code of atmel_aes_hw_init() and propagate error if needed. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 16 +++- 1 file

[PATCH 04/24] crypto: atmel-aes: fix unregistration order of crypto algorithms

2015-12-17 Thread Cyrille Pitchen
This dummy patch fixes atmel_aes_unregister_algs() so crypto algorithms are unregistered in the reverse order they were registered by atmel_aes_register_algs(). Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/

[PATCH 07/24] crypto: atmel-aes: change atmel_aes_write_ctrl() signature

2015-12-17 Thread Cyrille Pitchen
This patch changes the signature of atmel_aes_write_ctrl() to make it more generic. This will be used by future patches when implementing new block cipher modes such as GCM. Especially atmel_aes_hw_init() is now called outside atmel_aes_write_ctrl(): this allows to call atmel_aes_write_ctrl() many

[PATCH 09/24] crypto: atmel-aes: remove useless write in the Control Register

2015-12-17 Thread Cyrille Pitchen
As claimed by the datasheet, writing 0 into the Control Register has no effet. So we remove this useless register access. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypt

[PATCH 10/24] crypto: atmel-aes: simplify the configuration of the AES IP

2015-12-17 Thread Cyrille Pitchen
This patch reworks the AES_FLAGS_* to simplify the configuration of the AES IP. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 216 +++-- 1 file changed, 93 insertions(+), 123 deletions(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers

[PATCH 11/24] crypto: atmel-aes: rework crypto request completion

2015-12-17 Thread Cyrille Pitchen
This patch introduces a new callback 'resume' in the struct atmel_aes_dev. This callback is run to resume/complete the processing of the crypto request when woken up by I/O events such as AES interrupts or DMA completion. This callback will help implementing the GCM mode support in further patches

[PATCH 12/24] crypto: atmel-aes: remove unused 'err' member of struct atmel_aes_dev

2015-12-17 Thread Cyrille Pitchen
This 'err' member was initialized to 0 but its value never changed. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index ac551ee2d624..25dc7bd73532 100644 --- a/drivers/

[PATCH 13/24] crypto: atmel-aes: reduce latency of DMA completion

2015-12-17 Thread Cyrille Pitchen
atmel_aes_dma_callback() now directly calls the 'resume' callback instead of scheduling the done task, which in turn only calls the very same 'resume' callback. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH 14/24] crypto: atmel-aes: remove useless AES_FLAGS_DMA flag

2015-12-17 Thread Cyrille Pitchen
Since the 'done' task code was split into atmel_aes_cpu_complete() and atmel_aes_dma_complete(), the AES_FLAGS_DMA flag has become useless. Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 37 +++-- 1 file changed, 15 insertions(+), 22 deletions(-)

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

2015-12-17 Thread Sudip Mukherjee
On Thu, Dec 17, 2015 at 10:05:46AM -0500, Paul Gortmaker wrote: > 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,

[PATCH 15/24] crypto: atmel-aes: fix atmel_aes_remove()

2015-12-17 Thread Cyrille Pitchen
Add missing call to atmel_aes_buff_cleanup(). Signed-off-by: Cyrille Pitchen --- drivers/crypto/atmel-aes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index 68e4177ad61b..343199cfed23 100644 --- a/drivers/crypto/atmel-aes.c +++ b/d

Re: [RESEND] Lenovo Yoga 900 touchpad issues

2015-12-17 Thread Nish Aravamudan
Hi Benjamin, On Thu, Dec 17, 2015 at 1:53 AM, Benjamin Tissoires wrote: > On Dec 16 2015 or thereabouts, Nish Aravamudan wrote: >> Hi Jiri, >> >> On Wed, Dec 16, 2015 at 5:18 AM, Jiri Kosina wrote: >> > On Wed, 16 Dec 2015, Mika Westerberg wrote: >> > >> >> > [Apologies for the resend, didn't re

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 16:04 +, Måns Rullgård wrote: > 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: > > > > > > > > >

Re: [PATCH v7 3/4] gicv2m: Refactor to prepare for ACPI support

2015-12-17 Thread Bjorn Helgaas
On Wed, Dec 16, 2015 at 06:23:49PM -0600, Suravee Suthikulanit wrote: > Hi Bjorn, > > Thanks for your review. Please see my comments below. > > On 12/16/2015 4:12 PM, Bjorn Helgaas wrote: > >On Thu, Dec 10, 2015 at 08:55:29AM -0800, Suravee Suthikulpanit wrote: > >>This patch replaces the struct

[PATCH 08/24] crypto: atmel-aes: make crypto request queue management more generic

2015-12-17 Thread Cyrille Pitchen
This patch changes atmel_aes_handle_queue() to make it more generic. The function argument is now a pointer to struct crypto_async_request, which is the common base of struct ablkcipher_request and struct aead_request. Also this patch introduces struct atmel_aes_base_ctx which will be the common b

Re: [PATCH v3] net/macb: add support for resetting PHY using GPIO

2015-12-17 Thread David Miller
From: Gregory CLEMENT Date: Thu, 17 Dec 2015 09:39:32 +0100 > if I remebered well you do not remove patch from yout branch. So would > you agree to take a follow-up patch on top of 5833e0526820 "net/macb: > add support for resetting PHY using GPIO" ? Yes. -- To unsubscribe from this list: send

Re: [PATCH v4 7/7] ACPI / x86: introduce acpi_os_readable() support

2015-12-17 Thread Andy Lutomirski
On Tue, Dec 15, 2015 at 4:25 PM, Zheng, Lv wrote: > Hi, Andy and Yu > >> From: Zheng, Lv >> Sent: Tuesday, December 15, 2015 4:52 PM >> >> Hi, >> >> > From: Chen, Yu C >> > Sent: Tuesday, December 15, 2015 2:13 PM >> > >> > Hi, Andy >> > >> > > From: Andy Lutomirski [mailto:l...@amacapital.net] >>

Re: rhashtable: Prevent spurious EBUSY errors on insertion

2015-12-17 Thread David Miller
From: Xin Long Date: Thu, 17 Dec 2015 17:00:35 +0800 > 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

[PATCH V10 0/7] dma: add Qualcomm Technologies HIDMA driver

2015-12-17 Thread Sinan Kaya
The Qualcomm Technologies HIDMA device has been designed to support virtualization technology. The driver has been divided into two to follow the hardware design. 1. HIDMA Management driver 2. HIDMA Channel driver Each HIDMA HW consists of multiple channels. These channels share some set of commo

[PATCH V10 2/7] dma: hidma: Add Device Tree support

2015-12-17 Thread Sinan Kaya
Add documentation for the Qualcomm Technologies HIDMA driver. Signed-off-by: Sinan Kaya --- .../devicetree/bindings/dma/qcom_hidma_mgmt.txt| 79 ++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/qcom_hidma_mgmt.txt diff --git a

[PATCH V10 4/7] dma: add Qualcomm Technologies HIDMA channel driver

2015-12-17 Thread Sinan Kaya
This patch adds support for hidma engine. The driver consists of two logical blocks. The DMA engine interface and the low-level interface. The hardware only supports memcpy/memset and this driver only support memcpy interface. HW and driver doesn't support slave interface. Signed-off-by: Sinan Kay

[PATCH V10 5/7] dma: qcom_hidma: implement lower level hardware interface

2015-12-17 Thread Sinan Kaya
This patch implements the hardware hooks for the HIDMA channel driver. The main functions of interest are: - hidma_ll_init - hidma_ll_request - hidma_ll_queue_request - hidma_ll_hw_start OS layer calls the hidma_ll_init function during probe to set up the hardware. At this moment, the number of s

[PATCH V10 6/7] dma: qcom_hidma: add debugfs hooks

2015-12-17 Thread Sinan Kaya
Add debugfs hooks for debugging the execution behavior of the DMA channel. The debugfs hooks get initialized by the probe function and uninitialized by the remove function. A stats file is created in debugfs. The stats file will show the information about each HIDMA channel as well as each asynchr

[PATCH] trace-cmd: use nonblocking reads for streaming

2015-12-17 Thread Josef Bacik
I noticed while using the streaming infrastructure in trace-cmd that I was seemingly missing events. Using other tracing methods I got these events and record->missed_events was never being set. This is because the streaming infrastructure uses blocking reads on the per cpu trace pipe's, which me

<    1   2   3   4   5   6   7   8   9   >