[PATCH 2/2] PCI/MSI: Phase out pci_enable_msi_block()

2014-04-14 Thread Alexander Gordeev
There are no users of pci_enable_msi_block() function have left. Obsolete it in favor of pci_enable_msi_range() and pci_enable_msi_exact() functions. Up until now, when enabling MSI mode for a device a single successful call to arch_msi_check_device() was followed by a single call to

Re: [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-14 Thread Kishon Vijay Abraham I
On Monday 14 April 2014 06:50 PM, Vivek Gautam wrote: > On Mon, Apr 14, 2014 at 6:29 PM, Kishon Vijay Abraham I wrote: >> >> >> On Monday 14 April 2014 06:12 PM, Vivek Gautam wrote: >>> Hi, >>> >>> >>> On Mon, Apr 14, 2014 at 5:57 PM, Kishon Vijay Abraham I >>> wrote: Hi, On

[PATCH v3] tuntap: add flow control to support back pressure

2014-04-14 Thread Steven Galgano
Added optional per queue flow control support using IFF_FLOW_CONTROL. When the IFF_FLOW_CONTROL TUNSETIFF flag is specified it will set a per queue flag to indicate that the queue should be stopped using netif_tx_stop_queue(), rather than discarding frames once full. After reading a frame from

Re: [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-14 Thread Vivek Gautam
On Mon, Apr 14, 2014 at 6:29 PM, Kishon Vijay Abraham I wrote: > > > On Monday 14 April 2014 06:12 PM, Vivek Gautam wrote: >> Hi, >> >> >> On Mon, Apr 14, 2014 at 5:57 PM, Kishon Vijay Abraham I >> wrote: >>> Hi, >>> >>> On Tuesday 08 April 2014 08:06 PM, Vivek Gautam wrote: Add a new

Re: [PATCH V2] workqueue: fix double unlock bug

2014-04-14 Thread Lai Jiangshan
On Mon, Apr 14, 2014 at 6:41 PM, Daeseok Youn wrote: > > mutex_unlock() and put_pwq_unlocked() do not need to be called > when alloc_unbound_pwq() is failed. > > And remove "if" condition for whether "pwq" is same as "wq->dfl_pwq" > when wq_calc_node_cpumask() returns false and just use "goto

Re: [PATCH v2 0/4] net: Add APM X-Gene SoC Ethernet driver support

2014-04-14 Thread Ben Dooks
On 12/04/14 04:06, Iyappan Subramanian wrote: This patch series adds support for the APM X-Gene SoC Ethernet driver. Note, you don't really need to say patch for the single patches or the series. -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer

Re: w1: 3.14-rc7 - possible recursive locking detected

2014-04-14 Thread Dr. H. Nikolaus Schaller
Hi David, I have tested and it appears to suppress the locking issue on our GTA04 board. BR, Nikolaus Am 14.04.2014 um 00:24 schrieb David Fries: > Belisko Marek, > Here is a possible solution, could you give it a try and report back? > > Greg Kroah-Hartman, > Evgeniy asked me to look into

Re: DRM security flaws and security levels.

2014-04-14 Thread Rob Clark
On Mon, Apr 14, 2014 at 8:56 AM, Thomas Hellstrom wrote: > On 04/14/2014 02:41 PM, One Thousand Gnomes wrote: >>> throw out all GPU memory on master drop and block ioctls requiring >>> authentication until master becomes active again. >> If you have a per driver method then the driver can

Re: [PATCH V2 1/1] X86: Probe for PIC and set legacy_pic appropriately

2014-04-14 Thread Olaf Hering
On Fri, Apr 11, K. Y. Srinivasan wrote: > Probe for the existance of legacy PIC, if one does not exist, use the > null_legacy_pic. > Signed-off-by: K. Y. Srinivasan Tested-by: Olaf Hering Fixes the crash on Gen1 VMs for me, which was introduced by "x86/platform/hyperv: When on Hyper-v use

[RFC PATCH v2] regmap: smbus: add support for regmap over SMBus

2014-04-14 Thread Boris BREZILLON
SMBus is a subset of the I2C protocol, oftenly used to access registers on external devices. I2C adapters are able to access SMBus devices thanks to the SMBus emulation layer. In the other hand SMBus adapters may not provide regular I2C transfers, and thus you may not be able to expose a regmap

Re: [PATCH v2 0/4] net: Add APM X-Gene SoC Ethernet driver support

2014-04-14 Thread Ben Dooks
On 12/04/14 04:06, Iyappan Subramanian wrote: This patch series adds support for the APM X-Gene SoC Ethernet driver. v2 * Completely redesigned ethernet driver * Added support to work with big endian kernel * Renamed dtb phyid entry to phy_addr * Changed dtb local-mac-address entry to byte

Re: Hardware dependencies in Kconfig

2014-04-14 Thread Josh Boyer
On Mon, Apr 14, 2014 at 8:53 AM, Jean Delvare wrote: > Hi all, > > Configuring kernels from scratch has become an incredibly long and > tedious task. The reason is that the number of drivers and options has > exploded in the past few years. Which in itself is great - Linux is > successful, yeah!

Re: [PATCH v2 2/4] Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver

2014-04-14 Thread Ben Dooks
On 12/04/14 04:06, Iyappan Subramanian wrote: This patch adds documentation for APM X-Gene SoC ethernet DTS binding. Signed-off-by: Iyappan Subramanian Signed-off-by: Ravi Patel Signed-off-by: Keyur Chudgar --- .../devicetree/bindings/net/apm-xgene-enet.txt | 46

Re: 3.15-mw: Oops Workqueue: writeback bdi_writeback_workfn (flush-8:16) RIP: e030:[] [] kobject_put+0x11/0x70

2014-04-14 Thread Sander Eikelenboom
Monday, April 14, 2014, 1:30:15 PM, you wrote: > On Sat, Apr 12, 2014 at 01:34:31PM +0200, Sander Eikelenboom wrote: >> Hi, >> >> I just ran into the oops belowafter some uptime. > Classic use after free introduced by my recent changes, sorry. > This should fix it: Thx ! > --- > From:

Re: [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-14 Thread Kishon Vijay Abraham I
On Monday 14 April 2014 05:35 PM, Vivek Gautam wrote: > Hi Kishon, > > > On Mon, Apr 14, 2014 at 5:24 PM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Wednesday 09 April 2014 04:36 PM, Tomasz Figa wrote: >>> Hi Vivek, >>> >>> Please see my comments inline. >>> >>> On 08.04.2014 16:36, Vivek

Re: [RFC 1/2] n_tty: fix dropped output characters

2014-04-14 Thread Oliver Neukum
On Mon, 2014-04-14 at 13:53 +0100, One Thousand Gnomes wrote: > On Fri, 11 Apr 2014 11:41:24 +0200 > Johan Hovold wrote: > > > Fix characters being dropped by n_tty_write() due to a failure to > > check the return value of tty_put_char() in do_output_char(). > > > > Characters are currently

Re: [PATCH] arm64: Flush the process's mm context TLB entries when switching

2014-04-14 Thread Will Deacon
Hi Ding, On Mon, Apr 14, 2014 at 01:03:12PM +0100, Ding Tianhong wrote: > I met a problem when migrating process by following steps: > > 1) The process was already running on core 0. > 2) Set the CPU affinity of the process to 0x02 and move it to core 1, >it could work well. > 3) Set the CPU

Re: [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-14 Thread Kishon Vijay Abraham I
On Monday 14 April 2014 06:12 PM, Vivek Gautam wrote: > Hi, > > > On Mon, Apr 14, 2014 at 5:57 PM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Tuesday 08 April 2014 08:06 PM, Vivek Gautam wrote: >>> Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. >>> The new driver uses the

[RFC PATCH v2 9/9] ARM: DT: qcom: Add Qualcomm crypto driver binding document

2014-04-14 Thread Stanimir Varbanov
Here is Qualcomm crypto driver device tree binding documentation to be used as a reference example. Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/crypto/qcom-qce.txt| 25 ++ 1 file changed, 25 insertions(+) create mode 100644

[RFC PATCH v2 8/9] crypto: qce: Build Qualcomm qce driver

2014-04-14 Thread Stanimir Varbanov
Modify crypto Kconfig and Makefile in order to build the qce driver. Signed-off-by: Stanimir Varbanov --- drivers/crypto/Kconfig | 10 ++ drivers/crypto/Makefile | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index

[RFC PATCH v2 7/9] crypto: qce: Adds Makefile to build the driver

2014-04-14 Thread Stanimir Varbanov
Adds Makefile needed to build the driver. Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/Makefile | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 drivers/crypto/qce/Makefile diff --git a/drivers/crypto/qce/Makefile b/drivers/crypto/qce/Makefile new file mode 100644

[RFC PATCH v2 6/9] crypto: qce: Adds infrastructure to setup the crypto block

2014-04-14 Thread Stanimir Varbanov
Here are functions used to setup/prepare hardware registers for all algorithms supported by the crypto block. It also exports few helper functions needed by algorithms: - to check hardware status - to start crypto hardware - to translate data stream to big endian form

Re: [PATCH 3/3] sched,numa: do not set preferred_node on migration to a second choice node

2014-04-14 Thread Peter Zijlstra
On Fri, Apr 11, 2014 at 01:00:29PM -0400, r...@redhat.com wrote: > From: Rik van Riel > > Setting the numa_preferred_node for a task in task_numa_migrate > does nothing on a 2-node system. Either we migrate to the node > that already was our preferred node, or we stay where we were. > > On a

Re: DRM security flaws and security levels.

2014-04-14 Thread Thomas Hellstrom
On 04/14/2014 02:41 PM, One Thousand Gnomes wrote: >> throw out all GPU memory on master drop and block ioctls requiring >> authentication until master becomes active again. > If you have a per driver method then the driver can implement whatever is > optimal (possibly including throwing it all

[RFC PATCH v2 5/9] crypto: qce: Adds sha and hmac transforms

2014-04-14 Thread Stanimir Varbanov
Here is the implementation and registration of ahash crypto type. It includes sha1, sha256, hmac(sha1) and hmac(sha256). Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/sha.c | 591 +++ drivers/crypto/qce/sha.h | 81 +++ 2 files changed,

Re: [RFC 1/2] n_tty: fix dropped output characters

2014-04-14 Thread One Thousand Gnomes
On Fri, 11 Apr 2014 11:41:24 +0200 Johan Hovold wrote: > Fix characters being dropped by n_tty_write() due to a failure to > check the return value of tty_put_char() in do_output_char(). > > Characters are currently being dropped by write if a tty driver claims > to have write room available,

Re: [BUG] 3.14-rc6 problems with an R7 260X

2014-04-14 Thread Ed Tomlinson
On Sunday 23 March 2014 16:08:37 Ed Tomlinson wrote: > On Monday 10 March 2014 13:29:41 Ed Tomlinson wrote: > > On Monday 10 March 2014 12:38:42 Alex Deucher wrote: > > > On Mon, Mar 10, 2014 at 11:47 AM, Ed Tomlinson wrote: > > > > Hi, > > > > > > > > I recently added a R7 260X to my system.

[RFC PATCH v2 4/9] crypto: qce: Add ablkcipher algorithms

2014-04-14 Thread Stanimir Varbanov
Here is the implementation of AES, DES and 3DES crypto API callbacks, the crypto register alg function, the async request handler and its dma done callback function. Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/ablkcipher.c | 403

Hardware dependencies in Kconfig

2014-04-14 Thread Jean Delvare
Hi all, Configuring kernels from scratch has become an incredibly long and tedious task. The reason is that the number of drivers and options has exploded in the past few years. Which in itself is great - Linux is successful, yeah! - but the side effects must be dealt with. 6000-line .config

[RFC PATCH v2 2/9] crypto: qce: Add register defines

2014-04-14 Thread Stanimir Varbanov
Here are all register addresses and bit/masks used by the driver. Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/regs-v5.h | 331 +++ 1 file changed, 331 insertions(+) create mode 100644 drivers/crypto/qce/regs-v5.h diff --git

[RFC PATCH v2 3/9] crypto: qce: Add dma and sg helpers

2014-04-14 Thread Stanimir Varbanov
This adds dmaengine and sg-list helper functions used by other parts of the crypto driver. Signed-off-by: Stanimir Varbanov --- drivers/crypto/qce/dma.c | 188 +++ drivers/crypto/qce/dma.h | 58 +++ 2 files changed, 246 insertions(+)

[RFC PATCH v2 1/9] crypto: qce: Add core driver implementation

2014-04-14 Thread Stanimir Varbanov
This adds core driver files. The core part is implementing a platform driver probe and remove callbaks, the probe enables clocks, checks crypto version, initialize and request dma channels, create done tasklet and work queue and finally register the algorithms into crypto subsystem.

Re: [PATCH v3 1/5] x86: initialize secondary CPU only if master CPU will wait for it

2014-04-14 Thread Igor Mammedov
On Mon, 14 Apr 2014 12:03:35 +0200 Ingo Molnar wrote: > > * Igor Mammedov wrote: > > > On Mon, 14 Apr 2014 11:16:00 +0200 > > Ingo Molnar wrote: > > > > > > > > * Igor Mammedov wrote: > > > > > > > /* > > > > +* wait for ACK from master CPU before continuing > > > > +

[RFC PATCH v2 0/9] Add Qualcomm crypto driver

2014-04-14 Thread Stanimir Varbanov
Hi, Here is the second version of the patch set. This time tagged as an RFC to avoid confusions. The driver is splitted by files and is buildable at the last patch. When the review has finished 1/9 to 7/9 could be squashed in one patch. Any comments appreciated! Changes since v1: core - added

Re: [PATCH] kernel/panic: Add "late_kdump" option for kdump in unstable condition

2014-04-14 Thread Vivek Goyal
On Sun, Apr 13, 2014 at 10:14:18PM -0700, Eric W. Biederman wrote: > Masami Hiramatsu writes: > > > Add a "late_kdump" option to run kdump after running panic > > notifiers and dump kmsg. This can help rare situations which > > kdump drops in failure because of unstable crashed kernel > > or

Re: [PATCH 2/3] ARM : kdump : add arch_crash_save_vmcoreinfo

2014-04-14 Thread Liu hua
于 2014/4/14 19:37, Will Deacon 写道: > On Thu, Mar 27, 2014 at 08:00:39AM +, Liu Hua wrote: >> For vmcore generated by LPAE enabled kernel, user space >> utility such as crash needs additional infomation to >> parse. >> >> So this patch add arch_crash_save_vmcoreinfo as what PAE enabled >> i386

Re: [PATCH] video: bf54x-lq043fb: fix build error

2014-04-14 Thread Tomi Valkeinen
On 12/04/14 04:30, Steven Miao wrote: > From: Steven Miao > > should include linux/gpio.h > > Signed-off-by: Steven Miao > --- > drivers/video/bf54x-lq043fb.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c > index

Re: [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-14 Thread Vivek Gautam
Hi, On Mon, Apr 14, 2014 at 5:57 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 08 April 2014 08:06 PM, Vivek Gautam wrote: >> Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. >> The new driver uses the generic PHY framework and will interact >> with DWC3 controller

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-14 Thread Peter Ujfalusi
On 04/14/2014 03:12 PM, Sekhar Nori wrote: > On Monday 14 April 2014 05:26 PM, Peter Ujfalusi wrote: >> Hi Vinod, >> >> On 04/11/2014 03:46 PM, Vinod Koul wrote: >>> I think the number shouldn't be viewed in absolute terms. If we decide that >>> (lets >>> say) 0-7, then any controller should map

Re: DRM security flaws and security levels.

2014-04-14 Thread One Thousand Gnomes
> throw out all GPU memory on master drop and block ioctls requiring > authentication until master becomes active again. If you have a per driver method then the driver can implement whatever is optimal (possibly including throwing it all out). > -1: The driver allows an authenticated client to

Re: [PATCH v2 2/2] ARM : change fixmap mapping region to support 32 CPUs

2014-04-14 Thread Liu hua
于 2014/4/14 1:34, Nicolas Pitre 写道: > On Sun, 13 Apr 2014, Liu hua wrote: > >> Hi Nicolas. >> >> Sure, your suggestion made my patch looks better. How about that : >> >> Thanks, >> Liu Hua > > There is something else that bothers me. > >> +unsigned long idx = __virt_to_fix(vaddr); >> +

Re: [PATCH 1/1] driver/snd: es18xx driver should use udelay error

2014-04-14 Thread Takashi Iwai
At Mon, 14 Apr 2014 14:00:40 +0200, Clemens Ladisch wrote: > > Li, Zhen-Hua wrote: > > udelay with more than 2 may cause __bad_udelay. > > Use mdelay for instead. > > > > #ifdef AVOID_POPS > > /* Avoid pops */ > > -udelay(10); > > + mudelay(100); >

Re: [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-14 Thread Kishon Vijay Abraham I
Hi, On Tuesday 08 April 2014 08:06 PM, Vivek Gautam wrote: > Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. > The new driver uses the generic PHY framework and will interact > with DWC3 controller present on Exynos5 series of SoCs. > Thereby, removing old phy-samsung-usb3 driver

Re: Re: [RFC PATCH 4/6] uprobes/x86: Emulate rip-relative call's

2014-04-14 Thread Denys Vlasenko
On Mon, Apr 14, 2014 at 7:14 AM, Masami Hiramatsu wrote: >> You can check whether insn had any prefix by checking >> insn->prefixes->nbytes != 0... > > No, since there are other prefixes (and it may be meaningless) > you should find 0x66 in insn->prefixes->bytes[]. What "no"? Is my statement not

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-14 Thread Sekhar Nori
On Monday 14 April 2014 05:26 PM, Peter Ujfalusi wrote: > Hi Vinod, > > On 04/11/2014 03:46 PM, Vinod Koul wrote: >> I think the number shouldn't be viewed in absolute terms. If we decide that >> (lets >> say) 0-7, then any controller should map 0 to lowest and 7 to highest. >> >> For your case

Re: [PATCH 2/2] PCI/MSI: Phase out pci_enable_msi_block()

2014-04-14 Thread Alexander Gordeev
On Mon, Apr 14, 2014 at 09:14:07AM +0200, Alexander Gordeev wrote: > @@ -1244,7 +1241,7 @@ static inline void pcie_set_ecrc_checking(struct > pci_dev *dev) { } > static inline void pcie_ecrc_get_policy(char *str) { } > #endif > > -#define pci_enable_msi(pdev) pci_enable_msi_block(pdev, 1) >

Re: [Query]: tick-sched: why don't we stop tick when we are running idle task?

2014-04-14 Thread Peter Zijlstra
On Mon, Apr 14, 2014 at 05:22:30PM +0530, Viresh Kumar wrote: > On 14 April 2014 17:17, Peter Zijlstra wrote: > > What causes this tick? I was under the impression that once there's a > > single task (not doing any syscalls) and the above issues are sorted, no > > more tick would happen. > >

Re: [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-14 Thread Vivek Gautam
Hi Kishon, On Mon, Apr 14, 2014 at 5:24 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 09 April 2014 04:36 PM, Tomasz Figa wrote: >> Hi Vivek, >> >> Please see my comments inline. >> >> On 08.04.2014 16:36, Vivek Gautam wrote: >>> Add a new driver for the USB 3.0 PHY on Exynos5 series

[PATCH] arm64: Flush the process's mm context TLB entries when switching

2014-04-14 Thread Ding Tianhong
I met a problem when migrating process by following steps: 1) The process was already running on core 0. 2) Set the CPU affinity of the process to 0x02 and move it to core 1, it could work well. 3) Set the CPU affinity of the process to 0x01 and move it to core 0 again, the problem occurs

[PATCH 2/2] mfd: sec-core: Update sec_pmic documentation

2014-04-14 Thread Krzysztof Kozlowski
Update the documentation for sec_pmic state container structure to reflect current code. Signed-off-by: Krzysztof Kozlowski --- include/linux/mfd/samsung/core.h | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/include/linux/mfd/samsung/core.h

[PATCH 1/2] mfd: sec-core: Remove duplicated device type from sec_pmic

2014-04-14 Thread Krzysztof Kozlowski
The device type was stored in sec_pmic state container twice: - unsigned long type - int device_type The 'type' field was never used outside of probe so it can be safely removed. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 5 +++--

Re: [PATCH 1/1] driver/snd: es18xx driver should use udelay error

2014-04-14 Thread Clemens Ladisch
Li, Zhen-Hua wrote: > udelay with more than 2 may cause __bad_udelay. > Use mdelay for instead. > > #ifdef AVOID_POPS > /* Avoid pops */ > -udelay(10); > + mudelay(100); This will not compile. Please test with AVOID_POPS enabled. Regards,

Re: [PATCH v8 1/3] ARM: EXYNOS: Add support for EXYNOS5410 SoC

2014-04-14 Thread Tarek Dakhran
On 04/14/2014 03:03 PM, Arnd Bergmann wrote: On Monday 14 April 2014 11:17:38 Tarek Dakhran wrote: --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -159,6 +159,15 @@ static struct map_desc exynos5250_iodesc[] __initdata = { }, }; +static struct map_desc

[PATCH v3 02/10] arm: common: edma: Save the number of event queues/TCs

2014-04-14 Thread Peter Ujfalusi
For later use save the number of queues available for the CC. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes --- arch/arm/common/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index 41bca32409fc..999266bf69b9 100644 ---

[PATCH v3 03/10] dmaengine: edma: Correct the handling of src/dst_maxburst == 0

2014-04-14 Thread Peter Ujfalusi
When clients asks for maxburst = 0 it is basically the same case as if they were asking for maxburst = 1 since in both case ASYNC need to be used and the eDMA is expected to write/read one word per DMA request. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes --- drivers/dma/edma.c | 4

[PATCH v3 00/10] dma: edma: Fixes for cyclic (audio) operation

2014-04-14 Thread Peter Ujfalusi
Hi, Changes since v2: - Dropped patch 10 from v2 (simplify direction configuration...) - Dropped the channel priority related patches since we are going to go via different route for configuring the priority. - Added ACK from Joel for the patches since they are not changed since v2 Changes

Re: [PATCH v2 05/14] arm: common: edma: Select event queue 1 as default when booted with DT

2014-04-14 Thread Peter Ujfalusi
Hi Vinod, On 04/11/2014 03:46 PM, Vinod Koul wrote: > I think the number shouldn't be viewed in absolute terms. If we decide that > (lets > say) 0-7, then any controller should map 0 to lowest and 7 to highest. > > For your case you can do this and then intermediate numbers would be medium >

Re: [PATCH 0/5] driver core: Clean up dev_get/set_drvdata

2014-04-14 Thread Greg KH
On Mon, Apr 14, 2014 at 12:48:02PM +0200, Jean Delvare wrote: > This patch set is a proposal to revert most of commit b4028437. This > would solve a memory leak and also allow to simplify and ultimately > inline again functions dev_get_drvdata and dev_set_drvdata for smaller > footprint and

Re: [PATCH 1/2] GenWQE: Use pci_enable_msi_exact() instead of pci_enable_msi_block()

2014-04-14 Thread Greg Kroah-Hartman
On Mon, Apr 14, 2014 at 09:14:06AM +0200, Alexander Gordeev wrote: > As result of deprecation of MSI-X/MSI enablement functions > pci_enable_msix() and pci_enable_msi_block() all drivers > using these two interfaces need to be updated to use the > new pci_enable_msi_range() or

Re: [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-14 Thread Kishon Vijay Abraham I
Hi, On Wednesday 09 April 2014 04:36 PM, Tomasz Figa wrote: > Hi Vivek, > > Please see my comments inline. > > On 08.04.2014 16:36, Vivek Gautam wrote: >> Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. >> The new driver uses the generic PHY framework and will interact >> with

[PATCH v2 03/13] extcon: extcon-class: remove extcon_set_cable_state() function

2014-04-14 Thread Robert Baldyga
This patch removes extcon_set_cable_state() and replace all calls of this function witch extcon_set_cable_state_(), which is faster version. This is first step of changing extcon API to faster and safer. Signed-off-by: Robert Baldyga --- drivers/extcon/extcon-class.c| 17

Re: [Query]: tick-sched: why don't we stop tick when we are running idle task?

2014-04-14 Thread Viresh Kumar
On 14 April 2014 17:17, Peter Zijlstra wrote: > What causes this tick? I was under the impression that once there's a > single task (not doing any syscalls) and the above issues are sorted, no > more tick would happen. This is what Frederic told me earlier: https://lkml.org/lkml/2014/2/13/238

Re: [PATCH RESEND] mmc: Delay the card_event callback into the mmc_rescan worker

2014-04-14 Thread Ulf Hansson
On 9 April 2014 00:19, Markus Mayer wrote: > This change removes the callback from atomic context which it doesn't > need to be in, and puts it in line with the debounced rescan. > > This code is based on these e-mail threads with Christian Daudt: > > https://lkml.org/lkml/2013/8/19/539 >

[PATCH v2 10/13] extcon: extcon-gpio: add devicetree support

2014-04-14 Thread Robert Baldyga
This patch modifies extcon-gpio driver to use initialization data from devicetree if platform data is not available. It allows to set controller and cable names, and another parameters from devicetree bindings. Signed-off-by: Robert Baldyga --- drivers/extcon/extcon-gpio.c | 70

[PATCH v2 12/13] extcon: extcon-max8997: check if pdata exists

2014-04-14 Thread Robert Baldyga
This patch adds check if pdata is NULL, to avoid NULL pointer dereference when platform data is not available. After this changes, in described situation driver will be configured with default values. Signed-off-by: Robert Baldyga --- drivers/extcon/extcon-max8997.c |2 +- 1 file changed, 1

[PATCH v2 11/13] extcon: extcon-adc-jack: add devicetree support

2014-04-14 Thread Robert Baldyga
This patch modifies extcon-adc-jack driver to use initialization data from devicetree, when platform data is not available. It allows to define cable list with ADC value ranges for each of them in devicetree bindings. Signed-off-by: Robert Baldyga --- drivers/extcon/extcon-adc-jack.c | 81

[PATCH v2 13/13] extcon: extcon-max77693: check if pdata exists

2014-04-14 Thread Robert Baldyga
This patch adds check if pdata is NULL, to avoid NULL pointer dereference when platform data is not available. After this changes, in described situation driver will be configured with default values. Signed-off-by: Robert Baldyga --- drivers/extcon/extcon-max77693.c |2 +- 1 file changed,

[PATCH v2 09/13] extcon: extcon-class: move example to Documentation

2014-04-14 Thread Robert Baldyga
This patch removes cable array example form extcon code, to avoid littering driver namespace. Now it's located in extcon documentation. Signed-off-by: Robert Baldyga --- Documentation/extcon/extcon.txt | 112 +++ drivers/extcon/extcon-class.c | 32

[PATCH v2 08/13] extcon: extcon-class: simplify extcon_updata_state() function

2014-04-14 Thread Robert Baldyga
This patch simplifies extcon_updata_state() function. There is greatly simplified kobject_uevent preparation. Also meaning of variable passed to raw_notifier_call_chain() (and in effect to _call_per_cable()) has changed. Now positions on ones in variable 'val' in _call_per_cable() indicates

[PATCH v2 07/13] extcon: extcon-class: improve get_cable_state_()/set_cable_state_() functions

2014-04-14 Thread Robert Baldyga
Added check if pointer to edev is not NULL, and updated documentation of index parameter. Function extcon_find_cable_index() has been deleted and cannot be used to retrieve cable number. Signed-off-by: Robert Baldyga --- drivers/extcon/extcon-class.c |9 ++--- 1 file changed, 6

[PATCH v2 05/13] extcon: extcon-class: improve extcon client API

2014-04-14 Thread Robert Baldyga
This patch improves extcon client API to get rid of ugly functions operating on name strings. It gives independency from naming convention in extcon provider drivers. Names given at provider registration are now used only for sysfs, debugs, and to support platforms using legacy devicetree

[PATCH v2 04/13] extcon: extcon-class: match extcon device by devicetree node

2014-04-14 Thread Robert Baldyga
This patch modifies extcon_get_edev_by_phandle() function, to match extcon device by devicetree node. This modification needed to add field 'node' in extcon_dev structure, and fill it in probe function of each extcon provider driver. This patch adds function of_extcon_get_extcon_dev(), returning

[PATCH v2 06/13] extcon: extcon-class: remove unused functions

2014-04-14 Thread Robert Baldyga
This patch removes two functions, extcon_find_cable_index() and extcon_get_edev_by_phandle(). They are not longer needed, since extcon client API has changed to be oriented on extcon_cable instead of extcon_dev. Signed-off-by: Robert Baldyga --- drivers/extcon/extcon-class.c | 67

Re: [Query]: tick-sched: why don't we stop tick when we are running idle task?

2014-04-14 Thread Peter Zijlstra
On Mon, Apr 14, 2014 at 05:12:08PM +0530, Viresh Kumar wrote: > On 14 April 2014 16:32, Peter Zijlstra wrote: > > I'm still not sure _what_ you're trying to solve here. What are you > > doing and why? > > Hi Peter, > > We are working building ARM Networking machines. Networking Data > plane is

[PATCH v2 01/13] Documentation: add extcon devicetree bindings

2014-04-14 Thread Robert Baldyga
This patch adds extcon devicetree bindings. Documentation describes in general client and provider bindings, and contains detailed desctiprion of bindings for each extcon provider. Signed-off-by: Robert Baldyga --- .../devicetree/bindings/extcon/extcon-adc-jack.txt | 60 +++

[PATCH v2 02/13] Documentation: update charger-manager devicetree bindings

2014-04-14 Thread Robert Baldyga
This patch changes charger-manager bindings to be compatible with new extcon bindings. Signed-off-by: Robert Baldyga --- .../bindings/power_supply/charger-manager.txt | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git

[PATCH v2 00/13] extcon: major rework

2014-04-14 Thread Robert Baldyga
This patchset adds many improvements to extcon class driver and extcon provider drivers. It changes extcon API to faster and safer by replaceing function taking extcon and cable names with functions working with structures representing this objects. It adds more advanced devicetree support which

[PATCH v3 04/10] dmaengine: edma: Add support for DMA_PAUSE/RESUME operation

2014-04-14 Thread Peter Ujfalusi
Pause/Resume can be used by the audio stack when the stream is paused/resumed The edma platform code has support for this and the legacy audio stack used this. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes --- drivers/dma/edma.c | 28 1 file changed, 28

[PATCH v3 07/10] dmaengine: edma: Reduce debug print verbosity for non verbose debugging

2014-04-14 Thread Peter Ujfalusi
Do not print the paRAM information when verbose debugging is not asked and also reduce the number of lines printed in edma_prep_dma_cyclic() Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes --- drivers/dma/edma.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff

[PATCH v3 08/10] dmaengine: edma: Prefix debug prints where the text were identical in prep callbacks

2014-04-14 Thread Peter Ujfalusi
prep_slave_sg and prep_dma_cyclic callbacks have mostly same failure cases with the same texts printed in case we hit them. It helps when debugging if we know exactly which callback generated the errors. At the same time change the debug level for descriptor allocation failure from dbg to err

Re: [PATCH] [PATCH V2] tty: memleak in alloc_pid

2014-04-14 Thread Greg Kroah-Hartman
On Mon, Apr 14, 2014 at 03:31:15PM +0800, Chen Tingjie wrote: > There is memleak in alloc_pid: > -- > unreferenced object 0xd3453a80 (size 64): > comm "adbd", pid 1730, jiffies 66363 (age 6586.950s) > hex dump (first 32 bytes): > 01 00 00 00 00 00 00 00 00 00 00

[PATCH v3 10/10] dmaengine: edma: Print the direction value as well when it is not supported

2014-04-14 Thread Peter Ujfalusi
In case of not supported direction it is better to print the direction also. It is unlikely, but in such an event it helps with the debugging. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v3 01/10] platform_data: edma: Be precise with the paRAM struct

2014-04-14 Thread Peter Ujfalusi
The edmacc_param struct should follow the layout of the paRAM area in the HW. Be explicit on the size of the fields (u32) and also mark the struct as packed to avoid any padding on non 32bit architectures. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes ---

[PATCH v3 09/10] dmaengine: edma: Add channel number to debug prints

2014-04-14 Thread Peter Ujfalusi
It helps to identify issues if we have some information regarding to the channel which the event is associated. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes --- drivers/dma/edma.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/dma/edma.c

[PATCH v3 05/10] dmaengine: edma: Set DMA_CYCLIC capability flag

2014-04-14 Thread Peter Ujfalusi
Indicate that the edma dmaengine driver has support for cyclic mode. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes --- arch/arm/common/edma.c | 1 + drivers/dma/edma.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index

[PATCH v3 06/10] dmaengine: edma: Implement device_slave_caps callback

2014-04-14 Thread Peter Ujfalusi
With the callback implemented omap-dma can provide information to client drivers regarding to supported address widths, directions, residue granularity, etc. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes --- drivers/dma/edma.c | 18 ++ 1 file changed, 18 insertions(+)

Re: [Query]: tick-sched: why don't we stop tick when we are running idle task?

2014-04-14 Thread Viresh Kumar
On 14 April 2014 16:32, Peter Zijlstra wrote: > I'm still not sure _what_ you're trying to solve here. What are you > doing and why? Hi Peter, We are working building ARM Networking machines. Networking Data plane is handled completely at user space. At run time we may fix any number of CPUs

Re: [PATCH 2/3] ARM : kdump : add arch_crash_save_vmcoreinfo

2014-04-14 Thread Will Deacon
On Thu, Mar 27, 2014 at 08:00:39AM +, Liu Hua wrote: > For vmcore generated by LPAE enabled kernel, user space > utility such as crash needs additional infomation to > parse. > > So this patch add arch_crash_save_vmcoreinfo as what PAE enabled > i386 linux does. Looks sensible to me:

Re: [patch] x86: clearing access bit don't flush tlb

2014-04-14 Thread Ingo Molnar
* Shaohua Li wrote: > On Thu, Apr 03, 2014 at 01:35:37PM +0200, Ingo Molnar wrote: > > > > * Shaohua Li wrote: > > > > > Add a few acks and resend this patch. > > > > > > We use access bit to age a page at page reclaim. When clearing pte access > > > bit, > > > we could skip tlb flush in

Re: 3.15-mw: Oops Workqueue: writeback bdi_writeback_workfn (flush-8:16) RIP: e030:[] [] kobject_put+0x11/0x70

2014-04-14 Thread Christoph Hellwig
On Sat, Apr 12, 2014 at 01:34:31PM +0200, Sander Eikelenboom wrote: > Hi, > > I just ran into the oops belowafter some uptime. Classic use after free introduced by my recent changes, sorry. This should fix it: --- From: Christoph Hellwig Subject: scsi: don't reference freed command in

Re: [tip:x86/urgent] [PATCH] x86: Try the BIOS reboot method before the PCI reboot method

2014-04-14 Thread Ingo Molnar
* tip-bot for Ingo Molnar wrote: > Commit-ID: f042310bf8a846bcf21012ffee78d9eb562a7fa4 > Gitweb: http://git.kernel.org/tip/f042310bf8a846bcf21012ffee78d9eb562a7fa4 > Author: Ingo Molnar > AuthorDate: Fri, 4 Apr 2014 08:41:26 +0200 > Committer: Ingo Molnar > CommitDate: Mon, 14 Apr

Re: [GIT PULL] liblockdep fixes for v3.15

2014-04-14 Thread Ingo Molnar
* Sasha Levin wrote: > Hi Ingo, > > There are two patches from liblockdep this time around: > > 1. There was a build breakage caused by marking a function 'asmlinkage' > in lockdep.h. Fix that by ignoring asmlinkage and visible annotations. > > 2. Josh Boyer mentioned that Fedora would

[tip:x86/urgent] [PATCH] x86: Try the BIOS reboot method before the PCI reboot method

2014-04-14 Thread tip-bot for Ingo Molnar
Commit-ID: f042310bf8a846bcf21012ffee78d9eb562a7fa4 Gitweb: http://git.kernel.org/tip/f042310bf8a846bcf21012ffee78d9eb562a7fa4 Author: Ingo Molnar AuthorDate: Fri, 4 Apr 2014 08:41:26 +0200 Committer: Ingo Molnar CommitDate: Mon, 14 Apr 2014 13:13:30 +0200 [PATCH] x86: Try the BIOS

Re: [GIT PULL v2] nohz: Move nohz kick out of scheduler IPI

2014-04-14 Thread Ingo Molnar
* Frederic Weisbecker wrote: > On Thu, Apr 03, 2014 at 06:17:10PM +0200, Frederic Weisbecker wrote: > > Ingo, Thomas, > > > > Please pull the timers/nohz-ipi-for-tip-v3 branch that can be found at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > >

[tip:x86/urgent] x86/build: Supress "Nothing to be done for ..." messages

2014-04-14 Thread tip-bot for Masahiro Yamada
Commit-ID: e6bcd1a8974fab74e9fd679fb64462b2a8deff41 Gitweb: http://git.kernel.org/tip/e6bcd1a8974fab74e9fd679fb64462b2a8deff41 Author: Masahiro Yamada AuthorDate: Thu, 10 Apr 2014 10:35:42 +0900 Committer: Ingo Molnar CommitDate: Mon, 14 Apr 2014 11:44:36 +0200 x86/build: Supress

Re: [PATCH] tools: Consolidate types.h

2014-04-14 Thread Jiri Olsa
On Sun, Apr 13, 2014 at 01:27:43PM +0200, Borislav Petkov wrote: > And while we're at it, let's do another consolidation: > > --- > From: Borislav Petkov > Date: Sat, 12 Apr 2014 20:10:49 +0200 > Subject: [PATCH] tools: Consolidate types.h > > Combine all definitions into a common

f2fs: BUG_ON() is triggered when mount valid f2fs filesystem

2014-04-14 Thread Andrey Tsyvarev
Hello, When mount this f2fs image: http://linuxtesting.org/downloads/f2fs_fault_image.zip BUG_ON is triggered in f2fs driver (messages below are generated on kernel 3.13.2; for other kernels output is similar): [ 2416.364463] kernel BUG at fs/f2fs/node.c:215! [ 2416.364464] invalid opcode:

Re: [PATCH v2] ARM: mm: support big-endian page tables

2014-04-14 Thread Marc Zyngier
On 14/04/14 11:43, Will Deacon wrote: > (catching up on old email) > > On Tue, Mar 18, 2014 at 07:35:59AM +, Jianguo Wu wrote: >> Cloud you please take a look at this? > > [...] > >> On 2014/2/17 15:05, Jianguo Wu wrote: >>> When enable LPAE and big-endian in a hisilicon board, while

Re: [PATCH V2] tty: fix memleak in alloc_pid

2014-04-14 Thread One Thousand Gnomes
> move spin_unlock(sighand->siglock) after get_current_tty() can avoid > the race and fix the memleak. We already take tty_ctrl_lock inside sighand->siglock so this all appears safe and correct to me. Alan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [PATCH] kthreads: kill CLONE_KERNEL, change kernel_thread(kernel_init) to avoid CLONE_SIGHAND

2014-04-14 Thread Peter Zijlstra
On Sun, Apr 13, 2014 at 09:56:17PM +0200, Oleg Nesterov wrote: > 1. Remove CLONE_KERNEL, it has no users and it is dangerous. > >The (old) comment says "List of flags we want to share for kernel >threads" but this is not true, we do not want to share ->sighand by >default. This flag

<    3   4   5   6   7   8   9   10   11   12   >