[PATCH 2/2]staging:vt6656:dpc.c:Fix spaces

2016-06-27 Thread Rithvik Patibandla
The following patch fixes two checks thrown by checkpatch.pl, "Spaces preferred around '+'" and "No space is necessary after a cast" Signed-off-by: Rithvik Patibandla --- drivers/staging/vt6656/dpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/vt6656

Re: [PATCH 1/1] drivers:iio:light:isl29125: added macros for sensing range

2016-06-27 Thread Peter Meerwald-Stadler
> On 24/06/16 12:16, Bijosh Thykkoottathil wrote: > > Added macros for sensing range as the corresponding magic numbers > > were used at multiple places. > >- SENSING_RANGE_0 for 375 lux full range > >- SENSING_RANGE_1 for 10k lux full range > Macros are great for making cases of 'magic n

Re: BUG?: kernel does not (re)set irq smp_affinity to reboot_cpu

2016-06-27 Thread Russell King - ARM Linux
On Mon, Jun 27, 2016 at 02:53:16PM +0200, Hans de Goede wrote: > Hi Russell, > > On 27-06-16 13:31, Russell King - ARM Linux wrote: > >I think I covered that - all the paths are indentical in the ARM > >architecture code, and have been identical in this respect well before > >any of the drivers yo

[PATCH] devfreq: Add COMPILE_TEST for build coverage

2016-06-27 Thread Krzysztof Kozlowski
The SoC-specific devfreq and event drivers can be build tested on all architectures. Signed-off-by: Krzysztof Kozlowski --- Success of compilation tested on ARM, ARM64, i386, x86_64 and powerpc architectures (allyesconfigs). --- drivers/devfreq/Kconfig | 4 ++-- drivers/devfreq/event/Kco

Re: [PATCH] tipc: Use kmemdup instead of kmalloc and memcpy

2016-06-27 Thread David Miller
From: Amitoj Kaur Chawla Date: Thu, 23 Jun 2016 10:19:37 +0530 > Replace calls to kmalloc followed by a memcpy with a direct call to > kmemdup. > > The Coccinelle semantic patch used to make this change is as follows: > @@ > expression from,to,size,flag; > statement S; > @@ > > - to = \(kmallo

[PATCH 1/4] ftrace/x86: Make sure to modify 5-bite instructions

2016-06-27 Thread Petr Mladek
The commit 8329e818f14926a604 ("ftrace/x86: Set ftrace_stub to weak to prevent gcc from using short jumps to it") fixed a situation where we replaced 2-byte with 5-byte jump instruction. The original problem crashed the kernel with # cd /sys/kernel/trace # echo function_graph > current_tracer

[PATCH] [perf]: update makefile message for installing required libs

2016-06-27 Thread neerajbadlani
From: Neeraj Badlani In case of missing library (libslang), give hint to install library (libslang2-dev) Since libslang-dev is not provided by Ubuntu's apt-package Signed-off-by: Neeraj Badlani --- tools/perf/config/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH 1/3] kernel/sched: introduce vcpu preempted check interface

2016-06-27 Thread Peter Zijlstra
On Mon, Jun 27, 2016 at 01:41:28PM -0400, Pan Xinhui wrote: > +++ b/include/linux/sched.h > @@ -3293,6 +3293,15 @@ static inline void set_task_cpu(struct task_struct *p, > unsigned int cpu) > > #endif /* CONFIG_SMP */ > > +#ifdef arch_vcpu_is_preempted > +static inline bool vcpu_is_preempted(

Re: [PATCH 1/3] kernel/sched: introduce vcpu preempted check interface

2016-06-27 Thread Boqun Feng
On Mon, Jun 27, 2016 at 01:41:28PM -0400, Pan Xinhui wrote: > this supports to fix lock holder preempted issue which run as a guest > > for kernel users, we could use bool vcpu_is_preempted(int cpu) to detech > if one vcpu is preempted or not. > > The default implementation is a macrodefined by f

Re: [PATCH 1/3] kernel/sched: introduce vcpu preempted check interface

2016-06-27 Thread Peter Zijlstra
On Mon, Jun 27, 2016 at 04:00:43PM +0200, Peter Zijlstra wrote: > On Mon, Jun 27, 2016 at 01:41:28PM -0400, Pan Xinhui wrote: > > +++ b/include/linux/sched.h > > @@ -3293,6 +3293,15 @@ static inline void set_task_cpu(struct task_struct > > *p, unsigned int cpu) > > > > #endif /* CONFIG_SMP */ >

Re: [PATCH v14 04/10] arm64: Kprobes with single stepping support

2016-06-27 Thread David Long
On 06/27/2016 02:57 AM, Pratyush Anand wrote: Hi David, On 26/06/2016:11:06:47 PM, David Long wrote: From: Sandeepa Prabhu Add support for basic kernel probes(kprobes) and jump probes (jprobes) for ARM64. Kprobes utilizes software breakpoint and single step debug exceptions supported on ARM

Re: [tpmdd-devel] [PATCH] tpm: use devm_add_action_or_reset

2016-06-27 Thread Jarkko Sakkinen
On Thu, Jun 16, 2016 at 10:28:23PM +0200, Jarkko Sakkinen wrote: > On Sun, Jun 12, 2016 at 03:05:29PM +0100, Sudip Mukherjee wrote: > > If devm_add_action() fails we are explicitly calling put_device() to > > free the resources allocated. Lets use the helper > > devm_add_action_or_reset() and retur

Re: [PATCH 1/5] spi: do not fail if the CS line is not connected

2016-06-27 Thread Andi Shyti
Hi Mark, > > What I meant is that if we do not like num-cs = <0>, the > > unlinked CS line can be handled only this way (case of the > > s3c64xx driver): > > > +- broken-cs: the CS line is disconnected, therefore the device should not > > wait > > + for the CS protocol to be established > > So

[PATCH] MAINTAINERS: Update maintainer entry for wilc1000

2016-06-27 Thread Nicolas Ferre
From: Aditya Shankar Take the maintenance of the Atmel WIFI staging driver wilc1000. Former maintainers are no more with Atmel. Reported-by: Loic Lefort Signed-off-by: Aditya Shankar Signed-off-by: Ganesh Krishna Signed-off-by: Nicolas Ferre --- Hi Luis, Greg, I'd like that we don't delete

[PATCH] ARM: dts: da850: Add new ECAP and EPWM bindings

2016-06-27 Thread Franklin S Cooper Jr
From: "Cooper Jr., Franklin" Switch to a new ECAP and EPWM bindings that doesn't depend on hwmod to provide the various required clocks. Signed-off-by: Franklin S Cooper Jr Acked-by: Rob Herring --- This patch is a da850 specific version of: ARM: dts: am437x/am33xx/da850: Add new ECAP and EPW

Re: [PATCH v2 0/2] pvclock: more code cleanup

2016-06-27 Thread Paolo Bonzini
On 15/06/2016 14:46, Paolo Bonzini wrote: > Patch 1 simplifies the pvclock.h API by moving seqcount logic into > two new functions pvclock_read_begin and pvclock_read_retry. > Patch 2 uses the new simplified API in the vDSO. Andy, I've now benchmarked the patches. Patch 2 introduces no meaningf

Re: [PATCH v4 5/8] spi: add support for ACPI reconfigure notifications

2016-06-27 Thread Mark Brown
On Fri, Jun 17, 2016 at 02:52:13PM +0300, Octavian Purdila wrote: > This patch adds supports for SPI device enumeration and removal via > ACPI reconfiguration notifications that are send as a result of an > ACPI table load or unload operation. I still have the same concern I've had all the way th

Re: [PATCH 2/3] powerpc/spinlock: support vcpu preempted check

2016-06-27 Thread Peter Zijlstra
On Mon, Jun 27, 2016 at 01:41:29PM -0400, Pan Xinhui wrote: > diff --git a/arch/powerpc/include/asm/spinlock.h > b/arch/powerpc/include/asm/spinlock.h > index 523673d..ae938ee 100644 > --- a/arch/powerpc/include/asm/spinlock.h > +++ b/arch/powerpc/include/asm/spinlock.h > @@ -52,6 +52,21 @@ > #de

Re: [PATCH] net: Fix resetting network_header in neigh_resolve_output and neigh_connected_output

2016-06-27 Thread David Miller
From: Abdelrhman Ahmed Date: Thu, 23 Jun 2016 13:39:24 +0200 > neigh_resolve_output and neigh_connected_output resets the skb to > network_header because of the retry loop and this reset will pull down the > data pointer to the network header in the first iteration then hardware > header will

Re: [PATCH 2/2] HID: multitouch: enable palm rejection for Windows Precision Touchpad

2016-06-27 Thread Benjamin Tissoires
On Jun 23 2016 or thereabouts, Allen Hung wrote: > The usage Confidence is mandary to Windows Precision Touchpad devices. If > it is examined in input_mapping on a WIndows Precision Touchpad, a new add > quirk MT_QUIRK_CONFIDENCE desgned for such devices will be applied to the > device. A touch wit

[PATCH] mfd: arizona: Add missing disable of PM runtime on probe error path

2016-06-27 Thread Charles Keepax
Signed-off-by: Charles Keepax --- drivers/mfd/arizona-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index bf27179..e4f97b3 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -1462,7 +1

[PATCH 1/2] pvclock: introduce seqcount-like API

2016-06-27 Thread Paolo Bonzini
The version field in struct pvclock_vcpu_time_info basically implements a seqcount. Wrap it with the usual read_begin and read_retry functions, and use these APIs instead of peppering the code with smp_rmb()s. While at it, change it to the more pedantically correct virt_rmb(). With this change, _

[PATCH v3 0/2] pvclock: more code cleanup

2016-06-27 Thread Paolo Bonzini
Patch 1 simplifies the pvclock.h API by moving seqcount logic into two new functions pvclock_read_begin and pvclock_read_retry. Patch 2 uses the new simplified API in the vDSO. Please ack the vDSO changes! Paolo v2->v3: add unlikely() around read_retry check. Paolo Bonzini (2): pvclock: intro

[PATCH v3] x86/power/64: Fix kernel text mapping corruption during image restoration (was: Re: ktime_get_ts64() splat during resume)

2016-06-27 Thread Rafael J. Wysocki
On Tuesday, June 21, 2016 11:04:41 AM Kees Cook wrote: > On Mon, Jun 20, 2016 at 9:35 PM, Logan Gunthorpe wrote: > > Hey Rafael, > > > > This patch appears to be working on my laptop. Thanks. > > Same for me: resume still works with KASLR in my tests too. Unfortunately, Boris still sees post-res

Re: [PATCH] MAINTAINERS: Update maintainer entry for wilc1000

2016-06-27 Thread Luis de Bethencourt
On 27/06/16 15:10, Nicolas Ferre wrote: > From: Aditya Shankar > > Take the maintenance of the Atmel WIFI staging driver wilc1000. > Former maintainers are no more with Atmel. > > Reported-by: Loic Lefort > Signed-off-by: Aditya Shankar > Signed-off-by: Ganesh Krishna > Signed-off-by: Nicolas

[PATCH 2/2] x86: vdso: use __pvclock_read_cycles

2016-06-27 Thread Paolo Bonzini
The new simplified __pvclock_read_cycles does the same computation as vread_pvclock, except that (because it takes the pvclock_vcpu_time_info pointer) it has to be moved inside the loop. Since the loop is expected to never roll, this makes no difference. Signed-off-by: Paolo Bonzini --- arch/x8

Re: [PATCH 3/3] locking/osq: Drop the overload of osq_lock()

2016-06-27 Thread Peter Zijlstra
On Mon, Jun 27, 2016 at 01:41:30PM -0400, Pan Xinhui wrote: > @@ -118,8 +123,17 @@ bool osq_lock(struct optimistic_spin_queue *lock) > while (!READ_ONCE(node->locked)) { > /* >* If we need to reschedule bail... so we can block. > + * An over-committe

[PATCH] pinctrl: stm32: Modify error handling for pinctrl_register

2016-06-27 Thread Amitoj Kaur Chawla
pinctrl_register returns an ERR_PTR on error. The Coccinelle semantic patch used to make this change is as follows: @@ expression e,e1,e2; @@ e = pinctrl_register(...) ... when != e = e1 if ( - e == NULL + IS_ERR(e) ) { ... return - e2 + PTR_ERR(e) ; } Signe

Re: [PATCH 5/8] KEYS: Provide software public key query function [ver #2]

2016-06-27 Thread David Howells
Herbert Xu wrote: > > The problem is that if I'm to produce consistency with, say, the TPM > > interface, then I have to deal in wrapped/padded data - leastways as far > > as I can tell from reading the docs. > > So the TPM device is accessed through the same interface? Where is > the code for i

Re: [PATCH] net: Fix resetting network_header in neigh_resolve_output and neigh_connected_output

2016-06-27 Thread Abdelrhman Ahmed
neigh_resolve_output and neigh_connected_output resets the skb to network_header because of the retry loop and this reset will pull down the data pointer to the network header in the first iteration then hardware header will be added, but it will overwrite any data which is inserted between networ

Re: [PATCH v2 1/8] mfd: tps65218: Remove redundant read wrapper

2016-06-27 Thread Keerthy
On Monday 27 June 2016 05:53 PM, Lee Jones wrote: On Mon, 27 Jun 2016, Keerthy wrote: Currently read directly calls the repmap read function. Hence remove the redundant wrapper and use regmap read wherever needed. Signed-off-by: Keerthy --- drivers/mfd/tps65218.c | 16 +---

Re: [PATCH v6 5/5] ACPI : enable ACPI_PROCESSOR_IDLE on ARM64

2016-06-27 Thread Daniel Lezcano
On 06/14/2016 04:48 PM, Sudeep Holla wrote: Now that ACPI processor idle driver supports LPI(Low Power Idle), lets enable ACPI_PROCESSOR_IDLE for ARM64 too. This patch just removes the IA64 and X86 dependency on ACPI_PROCESSOR_IDLE Cc: linux-arm-ker...@lists.infradead.org Cc: "Rafael J. Wysocki

Re: [PATCH v9 06/12] kthread: Add kthread_drain_worker()

2016-06-27 Thread Petr Mladek
Hi, On Fri 2016-06-24 11:54:47, Tejun Heo wrote: > On Fri, Jun 24, 2016 at 09:05:15AM +0200, Peter Zijlstra wrote: > > > Given how rare that is > > > > Could you then not remove/rework these few cases for workqueue as well > > and make that 'better' too? > > Usage of draining is rare for workqu

Re: [PATCH 02/21] usb: ulpi: Support device discovery via DT

2016-06-27 Thread Heikki Krogerus
Hi, I'm fine with most of the patch, except.. On Sun, Jun 26, 2016 at 12:28:19AM -0700, Stephen Boyd wrote: > @@ -39,7 +42,10 @@ static int ulpi_match(struct device *dev, struct > device_driver *driver) > struct ulpi *ulpi = to_ulpi_dev(dev); > const struct ulpi_device_id *id; > >

Re: [PATCH v4 3/3] acpi/pmic: Add support for PMIC regs operation region

2016-06-27 Thread Heikki Krogerus
On Mon, Jun 27, 2016 at 03:25:11PM +0200, Rafael J. Wysocki wrote: > On Mon, Jun 27, 2016 at 11:26 AM, Heikki Krogerus > wrote: > > Whoa! Hold on! > > > > On Thu, Jun 23, 2016 at 05:52:53PM -0700, Bin Gao wrote: > >> Broxton platform firmware has defined new customized operation regions > >> calle

Re: BUG?: kernel does not (re)set irq smp_affinity to reboot_cpu

2016-06-27 Thread Hans de Goede
Hi, On 27-06-16 15:57, Russell King - ARM Linux wrote: On Mon, Jun 27, 2016 at 02:53:16PM +0200, Hans de Goede wrote: Hi Russell, On 27-06-16 13:31, Russell King - ARM Linux wrote: I think I covered that - all the paths are indentical in the ARM architecture code, and have been identical in t

Re: [PATCH] dsa: mv88e6xxx: hide unused functions

2016-06-27 Thread David Miller
From: Vivien Didelot Date: Thu, 23 Jun 2016 11:21:27 -0400 > Hi, > > Arnd Bergmann writes: > >> When CONFIG_NET_DSA_HWMON is disabled, we get warnings about two unused >> functions whose only callers are all inside of an #ifdef: >> >> drivers/net/dsa/mv88e6xxx.c:3257:12: 'mv88e6xxx_mdio_page_w

[PATCH] i2c: mv64xxx: Use clk_enable_prepare and clk_disable_unprepare

2016-06-27 Thread Amitoj Kaur Chawla
Replace clk_enable and clk_prepare with clk_enable_prepare and clk_disable and clk_unprepare with clk_disable_unprepare. The Coccinelle semantic patch used to make this change is as follows: @@ expression e; @@ - clk_prepare(e); - clk_enable(e); + clk_prepare_enable(e); @@ expression e; @@ - cl

Re: [PATCH 2/4] ftrace/x86: Do not crash when reading wrong ftrace func

2016-06-27 Thread Steven Rostedt
On Mon, 27 Jun 2016 15:54:35 +0200 Petr Mladek wrote: > Ftrace modifies the code on many locations. It is paranoid > and avoid a kernel crash using probe_kernel_read() and > probe_kernel_write(). The only exception is update_ftrace_func() > where where we read the old code using memcpy(). > > It

[PATCH v2] ACPI: Execute the _PTS method when system reboot

2016-06-27 Thread Ocean HY1 He
The _PTS control method is defined in the section 7.4.1 of acpi 6.0 spec. The _PTS control method is executed by the OS during the sleep transition process for S1, S2, S3, S4, and for orderly S5 shutdown. The _PTS control method provides the BIOS a mechanism for performing some housekeeping, such

[PATCH]staging:vt6656:dpc.h:fix parantheses alignment

2016-06-27 Thread Rithvik Patibandla
The following patch fixes "Alignment should match open parantheses" check thrown by checkpatch.pl Signed-off-by: Rithvik Patibandla --- drivers/staging/vt6656/dpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/dpc.h b/drivers/staging/vt6656/dpc.h ind

[RFC] [PATCH v2 0/3] scatterlist: Add support to clone sg_table

2016-06-27 Thread Franklin S Cooper Jr
This patchset creates two new functions within scatterlist that allows a user to pass in a sg_table and receive a duplicate copy. The sgl in this copied table are dynamically allocated but its values such as offset, length and dma_address are the same as its variant within the sgl in the original s

Re: kthread_stop insanity (Re: [[DEBUG] force] 2642458962: BUG: unable to handle kernel paging request at ffffc90000997f18)

2016-06-27 Thread Oleg Nesterov
On 06/26, Andy Lutomirski wrote: > > kthread_stop is *sick*. > > struct kthread self; > > ... > > current->vfork_done = &self.exited; > > ... > > do_exit(ret); > > And then some other thread goes and waits for the completion, which is > *on the stack*, which, in any sane world (e.g. wit

Re: [PATCH v2 04/14] regulator: SY8106A regulator driver

2016-06-27 Thread Mark Brown
On Sun, Jun 26, 2016 at 05:07:16PM +0200, Ondřej Jirman wrote: > On 26.6.2016 13:26, Mark Brown wrote: > > I'm missing almost all of this series, I've just got this and another > > patch which look like a standalone driver so it's hard to see any > > dependencies. What's going on here? > Sorry,

[RFC] [PATCH v2 3/3] spi: omap2-mcspi: Use the SPI framework to handle DMA mapping

2016-06-27 Thread Franklin S Cooper Jr
Currently, the driver handles mapping buffers to be used by the DMA. However, there are times that the current mapping implementation will fail for certain buffers. Fortunately, the SPI framework can detect and map buffers so its usable by the DMA. Update the driver to utilize the SPI framework fo

[RFC] [PATCH v2 2/3] spi: omap2-mcspi: Add comments for RX only DMA buffer workaround

2016-06-27 Thread Franklin S Cooper Jr
OMAP35x and OMAP37x mentions in the McSPI End-of-Transfer Sequences section that if the McSPI is configured as a Master and only DMA RX is being performed then the DMA transfer size needs to be reduced by 1 or 2. This was originally implemented by: commit 57c5c28dbc83 ("spi: omap2_mcspi rxdma bugf

Re: [PATCH 2/3] powerpc/spinlock: support vcpu preempted check

2016-06-27 Thread Boqun Feng
Hi Xinhui, On Mon, Jun 27, 2016 at 01:41:29PM -0400, Pan Xinhui wrote: > This is to fix some holder preemption issues. Spinning at one > vcpu which is preempted is meaningless. > > Kernel need such interfaces, So lets support it. > > We also should suooprt both the shared and dedicated mode. > S

[RFC] [PATCH v2 1/3] scatterlist: Add support to clone scatterlist

2016-06-27 Thread Franklin S Cooper Jr
Occasionally there are times you need to tweak a chained S/G list while maintaining the original list. This function will duplicate the passed in chained S/G list and return a pointer to the cloned copy. The function also supports passing in a length that can be equal or less than the original cha

Re: [PATCH] capabilities: add capability cgroup controller

2016-06-27 Thread Serge E. Hallyn
Quoting Tejun Heo (t...@kernel.org): > Hello, Topi. > > On Sun, Jun 26, 2016 at 3:14 PM, Topi Miettinen wrote: > > The parent might be able do it if proc/pid/xyz files are still > > accessible after child exit but before its exit status is collected. But > > if the parent doesn't do it (and you a

Re: BUG?: kernel does not (re)set irq smp_affinity to reboot_cpu

2016-06-27 Thread Mark Rutland
On Mon, Jun 27, 2016 at 02:53:16PM +0200, Hans de Goede wrote: > Note this does not mean that all pm_power_off implementations > are going to be happy with machine_power_off leaving irqs > enabled, I would esp. expect the efi and psci implementations > to potentially be unhappy about this. See belo

Re: [PATCH v4 15/29] x86/mm/64: Enable vmapped stacks

2016-06-27 Thread Brian Gerst
On Sun, Jun 26, 2016 at 5:55 PM, Andy Lutomirski wrote: > This allows x86_64 kernels to enable vmapped stacks. There are a > couple of interesting bits. > > First, x86 lazily faults in top-level paging entries for the vmalloc > area. This won't work if we get a page fault while trying to access

Re: [PATCH] mfd: arizona: Add missing disable of PM runtime on probe error path

2016-06-27 Thread Lee Jones
On Mon, 27 Jun 2016, Charles Keepax wrote: > Signed-off-by: Charles Keepax > --- > drivers/mfd/arizona-core.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied, thanks. > diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c > index bf27179..e4f97b3 100644 > ---

Re: [PATCH v6 5/5] ACPI : enable ACPI_PROCESSOR_IDLE on ARM64

2016-06-27 Thread Sudeep Holla
Hi Daniel, On 27/06/16 15:33, Daniel Lezcano wrote: On 06/14/2016 04:48 PM, Sudeep Holla wrote: Now that ACPI processor idle driver supports LPI(Low Power Idle), lets enable ACPI_PROCESSOR_IDLE for ARM64 too. This patch just removes the IA64 and X86 dependency on ACPI_PROCESSOR_IDLE Cc: linux

Re: [PATCH v8 4/4] Input: synaptics-rmi4 - add SMBus support

2016-06-27 Thread Benjamin Tissoires
On Jun 24 2016 or thereabouts, Dmitry Torokhov wrote: > On Fri, Jun 24, 2016 at 09:19:32AM +0200, Benjamin Tissoires wrote: > > On Jun 23 2016 or thereabouts, Dmitry Torokhov wrote: > > > On Thu, Jun 09, 2016 at 04:53:50PM +0200, Benjamin Tissoires wrote: > > > > + > > > > +static struct i2c_driver

Re: [PATCH v6 5/5] ACPI : enable ACPI_PROCESSOR_IDLE on ARM64

2016-06-27 Thread Daniel Lezcano
On 06/27/2016 05:03 PM, Sudeep Holla wrote: Hi Daniel, On 27/06/16 15:33, Daniel Lezcano wrote: On 06/14/2016 04:48 PM, Sudeep Holla wrote: Now that ACPI processor idle driver supports LPI(Low Power Idle), lets enable ACPI_PROCESSOR_IDLE for ARM64 too. This patch just removes the IA64 and X86

[PATCH v2] ARM: at91: Document new TCB bindings

2016-06-27 Thread Alexandre Belloni
The current binding for the TCB is not flexible enough for some use cases and prevents proper utilization of all the channels. Cc: Daniel Lezcano Cc: Thierry Reding Cc: linux-...@vger.kernel.org Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Alexandre Belloni --- Changes in v2:

Re: [PATCH v6 5/5] ACPI : enable ACPI_PROCESSOR_IDLE on ARM64

2016-06-27 Thread Sudeep Holla
On 27/06/16 16:05, Daniel Lezcano wrote: On 06/27/2016 05:03 PM, Sudeep Holla wrote: Hi Daniel, On 27/06/16 15:33, Daniel Lezcano wrote: On 06/14/2016 04:48 PM, Sudeep Holla wrote: Now that ACPI processor idle driver supports LPI(Low Power Idle), lets enable ACPI_PROCESSOR_IDLE for ARM64 to

Re: [PATCH v6 5/5] ACPI : enable ACPI_PROCESSOR_IDLE on ARM64

2016-06-27 Thread Daniel Lezcano
On 06/27/2016 05:06 PM, Sudeep Holla wrote: On 27/06/16 16:05, Daniel Lezcano wrote: On 06/27/2016 05:03 PM, Sudeep Holla wrote: Hi Daniel, On 27/06/16 15:33, Daniel Lezcano wrote: On 06/14/2016 04:48 PM, Sudeep Holla wrote: Now that ACPI processor idle driver supports LPI(Low Power Idle),

Re: [PATCH v2 04/14] regulator: SY8106A regulator driver

2016-06-27 Thread Mark Brown
On Sat, Jun 25, 2016 at 05:45:01AM +0200, meg...@megous.com wrote: > + config.init_data = of_get_regulator_init_data(dev, dev->of_node, > &sy8106a_reg); > + if (!config.init_data) { > + return -EINVAL; > + } This is broken, constraints are entirely optional - the driver s

Re: wake_up on wait-queue called from hard-irq context in 3.10.63-rt65

2016-06-27 Thread Steven Rostedt
On Wed, Apr 27, 2016 at 12:55:47PM +0200, Andreas Starzer wrote: > This Bug was already fixed in rcutiny_plugin.h with changing the > wait-queue to simple-waiter. > > Found this bug with 3.10.63-rt65 in rcutree_plugin.h too. (It is not > fixed in current 3.10-release) > > SVC (hard-irq-context) f

Re: [PATCH v6 5/5] ACPI : enable ACPI_PROCESSOR_IDLE on ARM64

2016-06-27 Thread Sudeep Holla
On 27/06/16 16:08, Daniel Lezcano wrote: On 06/27/2016 05:06 PM, Sudeep Holla wrote: [...] Ah ok, anyways LPI always starts from index 0. IIUC that was your main concern. Do you have a repo where I can see the code ? Yes, you can get it from [1] -- Regards, Sudeep [1] http://git.kern

Re: [PATCH v4 15/29] x86/mm/64: Enable vmapped stacks

2016-06-27 Thread Brian Gerst
On Mon, Jun 27, 2016 at 11:01 AM, Brian Gerst wrote: > On Sun, Jun 26, 2016 at 5:55 PM, Andy Lutomirski wrote: >> This allows x86_64 kernels to enable vmapped stacks. There are a >> couple of interesting bits. >> >> First, x86 lazily faults in top-level paging entries for the vmalloc >> area. T

Re: [PATCH v6 5/5] ACPI : enable ACPI_PROCESSOR_IDLE on ARM64

2016-06-27 Thread Daniel Lezcano
On 06/27/2016 05:11 PM, Sudeep Holla wrote: On 27/06/16 16:08, Daniel Lezcano wrote: On 06/27/2016 05:06 PM, Sudeep Holla wrote: [...] Ah ok, anyways LPI always starts from index 0. IIUC that was your main concern. Do you have a repo where I can see the code ? Yes, you can get it from

[PATCH v2 0/2] arm64 live patching

2016-06-27 Thread Torsten Duwe
So here is a slightly updated FTRACE_WITH_REGS plus live patching. Reminder: make sure you have a prolog-pad gcc, and this in your top level Makefile: ifdef CONFIG_LIVEPATCH KBUILD_CFLAGS += $(call cc-option,-fno-ipa-ra) endif Tested with v4.7-rc3 + gcc-6.1 Changes since v1: * instead of a c

[PATCH v2 1/2] arm64: implement FTRACE_WITH_REGS

2016-06-27 Thread Torsten Duwe
Once gcc is enhanced to optionally generate NOPs at the beginning of each function, like the concept proven in https://gcc.gnu.org/ml/gcc-patches/2016-04/msg01671.html (sans the "fprintf (... pad_size);", which spoils the data structure for kernel use), the generated pads can nicely be used to rero

[PATCH v2 2/2] arm64: implement live patching

2016-06-27 Thread Torsten Duwe
On top of FTRACE_WITH_REGS and the klp changes that go into v4.7 this is straightforward. Signed-off-by: Torsten Duwe --- arch/arm64/Kconfig | 3 +++ arch/arm64/include/asm/livepatch.h | 37 + arch/arm64/kernel/entry-ftrace.S | 13 ++

[PATCH V1] mfd: da9053: fix compiler warning message for uninitialised variable

2016-06-27 Thread Steve Twiss
From: Steve Twiss Fix compiler warning caused by an uninitialised variable inside da9052_group_write() function. Defaulting the value to zero covers the trivial case. Signed-off-by: Steve Twiss Reported-by: Geert Uytterhoeven --- Hi Lee, This compiler warning was found and reported by Geert

Re: [PATCH RESEND] trace: function graph: Fix filters for function_graph threshold

2016-06-27 Thread Steven Rostedt
On Mon, 27 Jun 2016 01:25:16 -0700 Joel Fernandes wrote: > Gentle ping. Could you anyone pick up this patch? > > Thanks for the reminder. As this isn't a regression (it never worked ;-) do you think this should go to the stable releases, and/or even the current release. Or are you fine with thi

Re: [PATCH v4] audit: add fields to exclude filter by reusing user filter

2016-06-27 Thread Paul Moore
On Fri, Jun 24, 2016 at 4:35 PM, Richard Guy Briggs wrote: > RFE: add additional fields for use in audit filter exclude rules > https://github.com/linux-audit/audit-kernel/issues/5 > > Re-factor and combine audit_filter_type() with audit_filter_user() to > use audit_filter_user_rules() to enable t

Re: [PATCH v2 2/2] namespaces: add transparent user namespaces

2016-06-27 Thread Eric W. Biederman
Added a few more relevant cc's. Jann Horn writes: > This allows the admin of a user namespace to mark the namespace as > transparent. All other namespaces, by default, are opaque. I have just skimmed through this and at a high level this doesn't seem too scary. Having an identity mapped user

Re: [PATCH v2 1/6] Documentation: hid: Intel ISH HID document

2016-06-27 Thread Srinivas Pandruvada
On Sun, 2016-06-26 at 19:32 +0100, Jonathan Cameron wrote: > On 22/06/16 06:40, Srinivas Pandruvada wrote: > > > > Document explaining ISH HID operation and implementation. > > > > Signed-off-by: Srinivas Pandruvada > .com> > A few really trivial point inline.  I unfortunately don't have the > t

Re: [PATCH v4 15/29] x86/mm/64: Enable vmapped stacks

2016-06-27 Thread Andy Lutomirski
On Mon, Jun 27, 2016 at 8:12 AM, Brian Gerst wrote: > On Mon, Jun 27, 2016 at 11:01 AM, Brian Gerst wrote: >> On Sun, Jun 26, 2016 at 5:55 PM, Andy Lutomirski wrote: >>> This allows x86_64 kernels to enable vmapped stacks. There are a >>> couple of interesting bits. >>> >>> First, x86 lazily fa

Re: [PATCH v4 2/2] reset: add TI SYSCON based reset driver

2016-06-27 Thread Andrew F. Davis
On 06/23/2016 11:28 AM, Philipp Zabel wrote: > Am Donnerstag, den 23.06.2016, 09:28 -0500 schrieb Andrew F. Davis: >> On 06/23/2016 04:05 AM, Philipp Zabel wrote: >>> Am Mittwoch, den 22.06.2016, 14:46 -0500 schrieb Andrew F. Davis: >>> [...] >> +depends on HAS_IOMEM >> +sel

Re: [PATCH 2/2] drm: Add DT bindings documentation for OpenCores VGA/LCD controller

2016-06-27 Thread Rob Herring
On Mon, Jun 27, 2016 at 6:21 AM, Andrea Merello wrote: > On Fri, Jun 10, 2016 at 7:36 PM, Rob Herring wrote: >> On Thu, Jun 09, 2016 at 03:33:19PM +0200, Andrea Merello wrote: >>> Signed-off-by: Andrea Merello >>> Cc: Stefan Kristiansson >>> Cc: Tomi Valkeinen >>> Cc: Francesco Diotalevi >>>

Re: [PATCH] [perf]: update makefile message for installing required libs

2016-06-27 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 27, 2016 at 06:59:57AM -0700, neerajbadl...@gmail.com escreveu: > From: Neeraj Badlani > > In case of missing library (libslang), give hint to install library > (libslang2-dev) > Since libslang-dev is not provided by Ubuntu's apt-package > > Signed-off-by: Neeraj Badlani > --- > t

Re: [PATCH v3 1/2] remoteproc: qcom: Driver for the self-authenticating Hexagon v5

2016-06-27 Thread Srinivas Kandagatla
On 20/06/16 22:28, Bjorn Andersson wrote: From: Bjorn Andersson This initial hack powers the q6v5, boots and authenticate the mba and use that to load the mdt and subsequent bXX files. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson Patch looks good to me, Acked-by: Sriniv

Re: [PATCHv5 8/8] ARM: dts: Add Arria10 Ethernet EDAC devicetree entry

2016-06-27 Thread Dinh Nguyen
Hi Boris, On 06/22/2016 08:58 AM, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > Add the device tree entries needed to support the Altera Ethernet > FIFO buffer EDAC on the Arria10 chip. > > Signed-off-by: Thor Thayer > --- > v2 No change > v3 Add interrupts for SBERR and DBERR

Re: kthread_stop insanity (Re: [[DEBUG] force] 2642458962: BUG: unable to handle kernel paging request at ffffc90000997f18)

2016-06-27 Thread Andy Lutomirski
On Mon, Jun 27, 2016 at 7:54 AM, Oleg Nesterov wrote: > On 06/26, Andy Lutomirski wrote: >> >> kthread_stop is *sick*. >> >> struct kthread self; >> >> ... >> >> current->vfork_done = &self.exited; >> >> ... >> >> do_exit(ret); >> >> And then some other thread goes and waits for the co

Re: linux-next: build failure after merge of the nfs tree

2016-06-27 Thread Trond Myklebust
> On Jun 26, 2016, at 20:58, Stephen Rothwell wrote: > > Hi Trond, > > After merging the nfs tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > fs/nfs/pnfs_nfs.c: In function 'pnfs_nfs_generic_sync': > fs/nfs/pnfs_nfs.c:947:8: error: too few arguments to function > '

Re: linux-next: manual merge of the jc_docs tree with the drm tree

2016-06-27 Thread Jonathan Corbet
On Mon, 27 Jun 2016 13:31:24 +1000 Stephen Rothwell wrote: > Today's linux-next merge of the jc_docs tree got a conflict in: > > Documentation/index.rst > > between commit: > > cb597fcea5c2 ("Documentation/gpu: add new gpu.rst converted from DocBook > gpu.tmpl") > > from the drm tree and

Re: [RFC PATCH 2/2] perf: Filter events based on perf-namespace

2016-06-27 Thread Peter Zijlstra
On Tue, Jun 14, 2016 at 10:19:51PM +0530, Aravinda Prasad wrote: > Whenever perf tool is executed inside a container, this > patch restricts the events to the perf-namespace in which > the perf tool is executing. > > This patch is based on the existing support available > for tracing with cgroups.

Re: [PATCH] sched/deadline: remove useless param from setup_new_dl_entity

2016-06-27 Thread Peter Zijlstra
On Fri, Jun 17, 2016 at 05:28:37PM +0100, Juri Lelli wrote: > On 17/06/16 09:49, Steven Rostedt wrote: > > On Fri, 17 Jun 2016 10:48:41 +0100 > > Juri Lelli wrote: > > > > > setup_new_dl_entity() takes two parameters, but it only actually uses > > > one of them to setup a new dl_entity. > > > >

[PATCH] net: the space is required before the open parenthesis '('

2016-06-27 Thread Wei Tang
The space is missing before the open parenthesis '(', and this will introduce much more noise when checking patch around. Signed-off-by: Wei Tang --- net/core/utils.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/core/utils.c b/net/core/utils.c index 3d17ca8..cf

Re: [PATCH v4 15/29] x86/mm/64: Enable vmapped stacks

2016-06-27 Thread Andy Lutomirski
On Mon, Jun 27, 2016 at 8:22 AM, Andy Lutomirski wrote: > On Mon, Jun 27, 2016 at 8:12 AM, Brian Gerst wrote: >> On Mon, Jun 27, 2016 at 11:01 AM, Brian Gerst wrote: >>> On Sun, Jun 26, 2016 at 5:55 PM, Andy Lutomirski wrote: #ifdef CONFIG_X86_64 /* Runs on IST stack */ dotrap

Re: [PATCH 01/10] Documentation: dt-bindings: mailbox: tegra: Add binding for HSP mailbox

2016-06-27 Thread Stephen Warren
On 06/27/2016 03:02 AM, Joseph Lo wrote: Add DT binding for the Hardware Synchronization Primitives (HSP). The HSP is designed for the processors to share resources and communicate together. It provides a set of hardware synchronization primitives for interprocessor communication. So the interpro

Re: [PATCH v4 3/4] perf: xgene: Add APM X-Gene SoC Performance Monitoring Unit driver

2016-06-27 Thread Mark Rutland
Hi, On Sat, Jun 25, 2016 at 10:54:20AM -0700, Tai Tri Nguyen wrote: > On Thu, Jun 23, 2016 at 7:32 AM, Mark Rutland wrote: > > On Wed, Jun 22, 2016 at 11:06:58AM -0700, Tai Nguyen wrote: > > > +#define _GET_CNTR(ev) (ev->hw.extra_reg.reg) > > > +#define _GET_EVENTID(ev) (ev->hw.config & 0xFF

Re: [PATCH 03/10] Documentation: dt-bindings: firmware: tegra: add bindings of the BPMP

2016-06-27 Thread Stephen Warren
On 06/27/2016 03:02 AM, Joseph Lo wrote: The BPMP is a specific processor in Tegra chip, which is designed for booting process handling and offloading the power management tasks from the CPU. The binding document defines the resources that would be used by the BPMP firmware driver, which can crea

Re: [PATCH v5 00/10] NTB Selftest Script

2016-06-27 Thread Logan Gunthorpe
Great! Thanks Jon. Logan On 26/06/16 05:29 PM, Jon Mason wrote: > On Mon, Jun 20, 2016 at 01:15:03PM -0600, Logan Gunthorpe wrote: >> Sorry, I thought this was done but I found one more minor issue with >> these patches so I'm resubmitting them one last time. Besides this isuse, >> I think I have

Re: [PATCH] geneve: fix max_mtu setting

2016-06-27 Thread Jesse Gross
On Sun, Jun 26, 2016 at 6:13 PM, 严海双 wrote: > >> On Jun 26, 2016, at 8:35 PM, zhuyj wrote: >> >> + if (geneve->remote.sa.sa_family == AF_INET) >> + max_mtu -= sizeof(struct iphdr); >> + else >> + max_mtu -= sizeof(struct ipv6hdr); >> >> Sorry, if sa_family

Re: [PATCH 1/1] regulator: max77620: check for valid regulator info

2016-06-27 Thread Mark Brown
On Mon, Jun 27, 2016 at 05:13:44PM +0530, Venkat Reddy Talla wrote: > Check for valid regulator information data before > configuring FPS source and FPS power up/down > period to avoid NULL pointer exception if entries for > PMIC regulators not provided through device tree. This sounds like it's p

Re: [PATCH 4/5] rtc: m48t86: move m48t86.h to platform_data

2016-06-27 Thread Jason Cooper
Hey Alexandre, On Mon, Jun 27, 2016 at 12:03:02AM +0200, Alexandre Belloni wrote: > m48t86.h belongs to include/linux/platform_data/ > > Signed-off-by: Alexandre Belloni > --- > Cc: Hartley Sweeten > Cc: Ryan Mallon > Cc: Alexander Clouter > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Sebastia

RE: [PATCH 4/5] rtc: m48t86: move m48t86.h to platform_data

2016-06-27 Thread Hartley Sweeten
On Sunday, June 26, 2016 3:03 PM, Alexandre Belloni wrote: > m48t86.h belongs to include/linux/platform_data/ > > Signed-off-by: Alexandre Belloni > --- > Cc: Hartley Sweeten > Cc: Ryan Mallon > Cc: Alexander Clouter > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Sebastian Hesselbarth > Cc: Greg

Re: [PATCHv5 8/8] ARM: dts: Add Arria10 Ethernet EDAC devicetree entry

2016-06-27 Thread Borislav Petkov
On Mon, Jun 27, 2016 at 10:31:29AM -0500, Dinh Nguyen wrote: > I've applied this patch and will take through the arm-soc tree. I already took the whole branch two days ago: http://git.kernel.org/cgit/linux/kernel/git/bp/bp.git/log/?h=for-next So we need to sort this out as it has come up in the

Re: [PATCH v4 15/29] x86/mm/64: Enable vmapped stacks

2016-06-27 Thread Brian Gerst
On Mon, Jun 27, 2016 at 11:54 AM, Andy Lutomirski wrote: > On Mon, Jun 27, 2016 at 8:22 AM, Andy Lutomirski wrote: >> On Mon, Jun 27, 2016 at 8:12 AM, Brian Gerst wrote: >>> On Mon, Jun 27, 2016 at 11:01 AM, Brian Gerst wrote: On Sun, Jun 26, 2016 at 5:55 PM, Andy Lutomirski wrote: >

Re: [PATCH v3 3/9] kexec_file: Factor out kexec_locate_mem_hole from kexec_add_buffer.

2016-06-27 Thread Dave Young
On 06/23/16 at 12:37pm, Thiago Jung Bauermann wrote: > Am Donnerstag, 23 Juni 2016, 01:44:07 schrieb Dave Young: > > Hmm, hold on. For declaring a struct in a header file, comment should be > > just after each fields, like below, your format is for a function instead: > > struct pci_slot { > >

Re: [PATCH 4/5] sched/debug: remove several CONFIG_SCHEDSTATS guards

2016-06-27 Thread Peter Zijlstra
On Fri, Jun 17, 2016 at 12:43:26PM -0500, Josh Poimboeuf wrote: > index 017a4f5..0aee5dd 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -1626,10 +1626,15 @@ static inline int __set_cpus_allowed_ptr(struct > task_struct *p, > static void > ttwu_stat(struct task_struct *p, int

Re: [PATCH] dt-bindings: i2c: add bindings for nxp,pca9541

2016-06-27 Thread Peter Rosin
On 2016-06-27 15:17, Guenter Roeck wrote: > On 06/27/2016 03:11 AM, Peter Rosin wrote: >> Fill the gap for this pre-existing driver. >> >> Signed-off-by: Peter Rosin >> --- >> .../devicetree/bindings/i2c/i2c-arb-pca9541.txt| 33 >> ++ >> MAINTAINERS

Re: [PATCH v6 4/5] arm64: add support for ACPI Low Power Idle(LPI)

2016-06-27 Thread Daniel Lezcano
On 06/22/2016 04:17 PM, Lorenzo Pieralisi wrote: Hi Sudeep, On Tue, Jun 14, 2016 at 03:48:38PM +0100, Sudeep Holla wrote: This patch adds appropriate callbacks to support ACPI Low Power Idle (LPI) on ARM64. Now that arm_enter_idle_state is exactly same in both generic ARM{32,64} CPUIdle driver

Re: [PATCH v2 1/3] block: provide helpers for reading block count

2016-06-27 Thread Davidlohr Bueso
On Thu, 23 Jun 2016, Arnd Bergmann wrote: Several drivers use an expensive do_div() to compute the number of logical or physical blocks in a blockdev, which can be done more efficiently using a shift, since the blocksize is always a power of two number. Let's introduce bdev_logical_block_count(

Re: [PATCH 4/5] sched/debug: remove several CONFIG_SCHEDSTATS guards

2016-06-27 Thread Josh Poimboeuf
On Mon, Jun 27, 2016 at 06:21:11PM +0200, Peter Zijlstra wrote: > On Fri, Jun 17, 2016 at 12:43:26PM -0500, Josh Poimboeuf wrote: > > index 017a4f5..0aee5dd 100644 > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -1626,10 +1626,15 @@ static inline int __set_cpus_allowed_ptr(struct

<    1   2   3   4   5   6   7   8   9   >