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

[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

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.

[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

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

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

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)

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

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

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

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.

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

[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; @@ -

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

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,

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

[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

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

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

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

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

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

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

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

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

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

[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

[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

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

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

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

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

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.  

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

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:

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

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

[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

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

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

[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

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

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]

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

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

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

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

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

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

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

[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

[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

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 = > > ... > > 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. with my series

[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

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

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:

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

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

[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) ; }

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

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, > _reg); > + if (!config.init_data) { > + return -EINVAL; > + } This is broken, constraints are entirely optional - the driver should

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)

[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

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

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

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

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

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 = >> >> ... >> >> do_exit(ret); >> >> And then some other thread goes and waits for

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

[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

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

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

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

[PATCH 1/2] x86/mm/numa: Open code function early_get_boot_cpu_id

2016-06-27 Thread Baoquan He
Previously early_acpi_boot_init is called in early_get_boot_cpu_id() to get value for boot_cpu_physical_apicid. Now early_acpi_boot_init() has been taken out moved to setup_arch(), the name of early_get_boot_cpu_id doesn't match its implementation. And only the getting boot-time SMP configuration

[PATCH 2/2] x86/acpi: Remove the repeated lapic address override entry parsing

2016-06-27 Thread Baoquan He
ACPI MADT has a 32-bit field providing lapic address at which each processor can access its lapic information. MADT also contains an optional entry to provide a 64-bit address to override the 32-bit one. However the current code does the lapic address override entry parsing twice. One is in

[PATCH] hwmon: (jc42) Add support for Microchip MCP9808 temperature sensor

2016-06-27 Thread Alison Schofield
MCP9808 is not officially compliant to JC-42, similar to MCP9804, but its registers are compatible to JC-42. Signed-off-by: Alison Schofield Cc: Daniel Baluta --- Documentation/hwmon/jc42 | 3 ++- drivers/hwmon/Kconfig| 4 ++--

Re: [PATCH v2] fujitsu-laptop: Support touchpad toggle hotkey on Skylake-based models

2016-06-27 Thread Jonathan Woithe
On Mon, Jun 27, 2016 at 03:19:41PM +0200, Micha?? K??pie?? wrote: > Haswell-based Fujitsu laptops (Lifebook E734/E744/E754) have a touchpad > toggle hotkey (Fn+F4) which is handled transparently to the operating > system: while an ACPI notification is sent to FUJ02B1 when Fn+F4 is > pressed,

[PATCH] usb: otg-fsm: Cancel HNP polling work when not used

2016-06-27 Thread Stephen Boyd
We setup the HNP polling worker, but we never stop it. The OTG state machine can go round and round and keep reinitializing the worker even while it's actively running. That's bad, and debug objects catches it. Fix this by canceling the work when we leave the A_HOST or B_HOST states.

RE: [PATCH] Input: elan_i2c - +200 ms delay before setting to ABS mode

2016-06-27 Thread 廖崇榮
Hi Daniel, Chris -Original Message- From: Daniel Drake [mailto:dr...@endlessm.com] Sent: Tuesday, June 21, 2016 10:42 PM To: 廖崇榮 Cc: Dmitry Torokhov; Chris Chiu; Charlie Mooney; Michele Curti; Krzysztof Kozlowski; Benson Leung; linux-in...@vger.kernel.org; Linux Kernel; Linux

Re: [PATCH v4 01/29] bluetooth: Switch SMP to crypto_cipher_encrypt_one()

2016-06-27 Thread Andy Lutomirski
On Mon, Jun 27, 2016 at 3:30 PM, Marcel Holtmann wrote: > Hi Ingo, > SMP does ECB crypto on stack buffers. This is complicated and fragile, and it will not work if the stack is virtually allocated. Switch to the crypto_cipher interface, which is simpler

[PATCH] tcp: add an ability to dump and restore window parameters

2016-06-27 Thread Andrey Vagin
We found that sometimes a restored tcp socket doesn't work. A reason of this bug is incorrect window parameters and in this case tcp_acceptable_seq() returns tcp_wnd_end(tp) instead of tp->snd_nxt. The other side drops packets with this seq, because seq is less than tp->rcv_nxt ( tcp_sequence()

Re: [PATCH v3] acpi, nfit: treat volatile virtual CD region as pmem

2016-06-27 Thread joeyli
On Mon, Jun 27, 2016 at 10:34:32AM -0700, Dan Williams wrote: > On Sun, Jun 26, 2016 at 11:46 PM, Lee, Chun-Yi > wrote: > > This patch adds logic to treat volatile virtual CD region as pmem > > region, then /dev/pmem* device can be mounted with iso9660. > > > > It's

Re: [PATCH v3 2/2] phy: add a driver for the Rockchip SoC internal PCIe PHY

2016-06-27 Thread Brian Norris
Hi Shawn, On Fri, Jun 24, 2016 at 09:37:41AM +0800, Shawn Lin wrote: > 在 2016/6/24 7:37, Brian Norris 写道: > >On Thu, Jun 23, 2016 at 10:30:17AM +0800, Shawn Lin wrote: > >>在 2016/6/20 14:36, Kishon Vijay Abraham I 写道: > >>>On Monday 20 June 2016 06:28 AM, Shawn Lin wrote: > On 2016/6/17

Re: [PATCH 2/5] nohz,cputime: remove VTIME_GEN vtime irq time code

2016-06-27 Thread Rik van Riel
On Tue, 2016-06-28 at 01:21 +0200, Frederic Weisbecker wrote: > On Wed, Jun 22, 2016 at 10:25:48PM -0400, r...@redhat.com wrote: > > > > From: Rik van Riel > > > > The CONFIG_VIRT_CPU_ACCOUNTING_GEN irq time tracking code does not > > appear to currently work right. > > > > On

[PATCH] f2fs: remove unnecessary goto statement

2016-06-27 Thread Tiezhu Yang
When base_addr is NULL, there is no need to call kzfree, it should return -ENOMEM directly. Additionally, it is better to initialize variable 'error' with 0. Signed-off-by: Tiezhu Yang --- fs/f2fs/xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] rtlwifi: Create _rtl_dbg_trace function to reduce RT_TRACE code size

2016-06-27 Thread Larry Finger
On 06/25/2016 05:46 PM, Joe Perches wrote: This debugging macro can expand to a lot of code. Make it a function to reduce code size. (x86-64 defconfig w/ all rtlwifi drivers and allyesconfig) $ size drivers/net/wireless/realtek/rtlwifi/built-in.o* text data bss dec hex

Re: [PATCH][RFC] cpufreq: Avoid warning during resume by return EAGAIN if cpufreq is unavailable

2016-06-27 Thread Rafael J. Wysocki
On Monday, June 27, 2016 12:50:27 PM Viresh Kumar wrote: > On 27-06-16, 03:12, Rafael J. Wysocki wrote: > > --- > > drivers/cpufreq/cpufreq.c |7 --- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > Index: linux-pm/drivers/cpufreq/cpufreq.c > >

linux-next: manual merge of the net-next tree with the imx-mxs tree

2016-06-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/freescale/fec.h between commit: 293809055656 ("ARM: imx6: disable deeper idle states when FEC is active w/o HW workaround") from the imx-mxs tree and commit: ff7566b8d71f ("net: fec: add

RE: [PATCH] power: act8945a_charger: fix semicolon.cocci warnings

2016-06-27 Thread Yang, Wenyou
> -Original Message- > From: kbuild test robot [mailto:l...@intel.com] > Sent: 2016年6月24日 20:43 > To: Yang, Wenyou > Cc: kbuild-...@01.org; Sebastian Reichel ; Dmitry Eremin- > Solenikov ; David Woodhouse >

[PATCH v2 4/7] power: act8945a_charger: Fix the power supply type

2016-06-27 Thread Wenyou Yang
The power supply type property is varying as the external power supply changes. It is not a constant. Signed-off-by: Wenyou Yang --- Changes in v2: None drivers/power/act8945a_charger.c | 48 1 file changed, 39 insertions(+), 9

[PATCH v2 3/7] power: act8945a_charger: Add status change update support

2016-06-27 Thread Wenyou Yang
Add the charger status change interrupt support, it will report the power supply changed event. This interrupt is generated by one of the conditions as below: - the state machine jumps out of or into the EOC state - the CHGIN input voltage goes out of or into the valid range. - the battery

[PATCH v2 2/7] power: act8945a_charger: Improve

2016-06-27 Thread Wenyou Yang
When get the property, first check the charger state machine, then check the status bit to decide what value is assigned to the corresponding property. Retain the SUSCHG bit of REG 0x71 when configure the timers to avoid losting the charger suspending info after boot. Signed-off-by: Wenyou Yang

Re: [PATCH 2/2] ARM: dts: imx53: add support for USB armory board

2016-06-27 Thread Shawn Guo
On Tue, Jun 21, 2016 at 04:50:53PM +0200, and...@inversepath.com wrote: > From: Andrej Rosano > > Add support for Inverse Path USB armory board, an open source > flash-drive sized computer based on NXP i.MX53 SoC. > > https://inversepath.com/usbarmory > > Signed-off-by:

Re: [PATCH v3] ARM: dts: sun7i: Add BCM53125 switch nodes to the lamobo-r1 board

2016-06-27 Thread Chen-Yu Tsai
On Tue, Jun 28, 2016 at 8:45 AM, Florian Fainelli wrote: > Now that we have a proper binding for Ethernet switches hanging off > different buses, and a driver for the BCM53125 switch, add its Device > Tree as a child MDIO node, at MDIO address 30 (Broadcom pseudo-PHY >

Re: [PATCH 2/2] GFS2: Add a gfs2-specific prune_icache_sb

2016-06-27 Thread Dave Chinner
On Fri, Jun 24, 2016 at 02:50:11PM -0500, Bob Peterson wrote: > This patch adds a new prune_icache_sb function for the VFS slab > shrinker to call. Trying to directly free the inodes from memory > might deadlock because it evicts inodes, which calls into DLM > to acquire the glock. The DLM, in

Re: [RFC] Can we bypass the timeout when resetting Synaptics device?

2016-06-27 Thread Yu Chen
Hi Dmitry, thanks very much for your reply, On Tue, Jun 28, 2016 at 1:05 AM, Dmitry Torokhov wrote: > Hi Yu, > > On Mon, Jun 27, 2016 at 09:04:58PM +0800, Yu Chen wrote: >> Hi All, >> Currently I'm doing some tunings on the speed of suspend/resume, >> it looks like my

Re: [PATCH 2/5] nohz,cputime: remove VTIME_GEN vtime irq time code

2016-06-27 Thread Frederic Weisbecker
On Wed, Jun 22, 2016 at 10:25:48PM -0400, r...@redhat.com wrote: > From: Rik van Riel > > The CONFIG_VIRT_CPU_ACCOUNTING_GEN irq time tracking code does not > appear to currently work right. > > On CPUs that are nohz_full, people typically do not assign IRQs. Right, but they

  1   2   3   4   5   6   7   8   9   10   >