Re: [PATCH 04/26] usb: gadget: introduce 'enabled' flag in struct usb_ep

2015-09-15 Thread Robert Baldyga
On 09/15/2015 05:43 PM, Felipe Balbi wrote: > On Tue, Sep 15, 2015 at 05:37:27PM +0200, Krzysztof Opasiak wrote: >> Hello, >> >> On 09/15/2015 04:26 PM, Robert Baldyga wrote: >>> This patch introduces 'enabled' flag in struct usb_ep, and modifies >>> usb_ep_enable() and usb_ep_disable() functions t

Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time

2015-09-15 Thread Minfei Huang
On 09/15/15 at 11:50am, Steven Rostedt wrote: > On Tue, 15 Sep 2015 23:37:39 +0800 > Minfei Huang wrote: > > > > I think the variant ftrace_update_time is not used any more. Previously, > > it is used to print the time how long ftrace will spend to update the > > code in fucntion ftraced. > >

Re: [PATCH 04/26] usb: gadget: introduce 'enabled' flag in struct usb_ep

2015-09-15 Thread Felipe Balbi
Hi, On Tue, Sep 15, 2015 at 05:57:53PM +0200, Robert Baldyga wrote: > On 09/15/2015 05:43 PM, Felipe Balbi wrote: > > On Tue, Sep 15, 2015 at 05:37:27PM +0200, Krzysztof Opasiak wrote: > >> Hello, > >> > >> On 09/15/2015 04:26 PM, Robert Baldyga wrote: > >>> This patch introduces 'enabled' flag in

Re: [PATCH RFC] pidns: introduce syscall getvpid

2015-09-15 Thread Konstantin Khlebnikov
On 15.09.2015 18:17, Stéphane Graber wrote: On Tue, Sep 15, 2015 at 06:01:38PM +0300, Konstantin Khlebnikov wrote: On 15.09.2015 17:27, Eric W. Biederman wrote: Konstantin Khlebnikov writes: pid_t getvpid(pid_t pid, pid_t source, pid_t target); This syscall converts pid from one pid-ns into

Re: [PATCH v3 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-15 Thread Punit Agrawal
"Jon Medhurst (Tixy)" writes: > On Tue, 2015-09-15 at 10:37 +0100, Punit Agrawal wrote: >> "Jon Medhurst (Tixy)" writes: >> >> > On Mon, 2015-09-14 at 15:38 +0100, Punit Agrawal wrote: >> >> Mark Rutland writes: >> >> > [...] >> >> The way the SCP interface is defined, the sensor identifiers

Re: v2 of seccomp filter c/r patches

2015-09-15 Thread Tycho Andersen
Hi Andy, On Mon, Sep 14, 2015 at 10:52:46AM -0700, Andy Lutomirski wrote: > > I'm not sure I entirely like this solution... Ok. Since we also aren't going to do all the eBPF stuff now, how about something that looks like this: struct seccomp_layer { unsigned int size; unsigned int type; /* S

Re: [PATCH] iov: initialize NumVFs register to 0 at the end of sriov_init()

2015-09-15 Thread Bjorn Helgaas
On Fri, Aug 21, 2015 at 06:51:25PM +0900, Ethan Zhao wrote: > After commit 4449f079722c ("PCI: Calculate maximum number of buses > required for VFs"),the initial value of NumVFs register was set to > non-zero after sriov_init() and no VFs was enabled in device driver. > this changed the behaviour o

Re: [PATCH] driver core: Ensure proper suspend/resume ordering

2015-09-15 Thread Thierry Reding
On Fri, Sep 11, 2015 at 03:01:14PM -0400, Alan Stern wrote: > On Fri, 11 Sep 2015, Thierry Reding wrote: > > > On Fri, Sep 11, 2015 at 12:08:02AM +0200, Rafael J. Wysocki wrote: > > > On Thursday, September 10, 2015 12:19:03 PM Thierry Reding wrote: > > > > From: Thierry Reding > > > > > > > > D

Re: [PATCH 3.12 00/33] 3.12.48-stable review

2015-09-15 Thread Shuah Khan
On 09/15/2015 08:22 AM, Jiri Slaby wrote: > This is the start of the stable review cycle for the 3.12.48 release. > There are 33 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses should be

Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time

2015-09-15 Thread Steven Rostedt
On Wed, 16 Sep 2015 00:00:46 +0800 Minfei Huang wrote: > On 09/15/15 at 11:50am, Steven Rostedt wrote: > > On Tue, 15 Sep 2015 23:37:39 +0800 > > Minfei Huang wrote: > > > > > > > I think the variant ftrace_update_time is not used any more. Previously, > > > it is used to print the time how l

[PATCH] barriers: introduce smp_mb__release_acquire and update documentation

2015-09-15 Thread Will Deacon
As much as we'd like to live in a world where RELEASE -> ACQUIRE is always cheaply ordered and can be used to construct UNLOCK -> LOCK definitions with similar guarantees, the grim reality is that this isn't even possible on x86 (thanks to Paul for bringing us crashing down to Earth). This patch h

Re: [PATCH V6 6/6] kvm: add fast mmio capabilitiy

2015-09-15 Thread Cornelia Huck
On Tue, 15 Sep 2015 17:07:55 +0200 Paolo Bonzini wrote: > On 15/09/2015 08:41, Jason Wang wrote: > > +With KVM_CAP_FAST_MMIO, a zero length mmio eventfd is allowed for > > +kernel to ignore the length of guest write and get a possible faster > > +response. Note the speedup may only work on some s

Re: [PATCH 04/26] usb: gadget: introduce 'enabled' flag in struct usb_ep

2015-09-15 Thread Krzysztof Opasiak
On 09/15/2015 05:43 PM, Felipe Balbi wrote: On Tue, Sep 15, 2015 at 05:37:27PM +0200, Krzysztof Opasiak wrote: Hello, On 09/15/2015 04:26 PM, Robert Baldyga wrote: This patch introduces 'enabled' flag in struct usb_ep, and modifies usb_ep_enable() and usb_ep_disable() functions to encapsulat

Re: [dm-devel] [PATCH] dm: ioctl: prevent double freeing

2015-09-15 Thread Darrick J. Wong
On Fri, Sep 04, 2015 at 04:52:39PM +0530, Sudip Mukherjee wrote: > DM_PARAMS_KMALLOC and DM_PARAMS_VMALLOC should never be set together in > param_flags. We are setting these flags while allocating so we know that > there is almost no chance of having these two set together but still we > can have

Re: [RFCv5 PATCH 38/46] sched: scheduler-driven cpu frequency selection

2015-09-15 Thread Juri Lelli
On 15/09/15 14:45, Peter Zijlstra wrote: > On Mon, Sep 14, 2015 at 04:57:35PM +0100, Juri Lelli wrote: >> On 04/09/15 14:27, Juri Lelli wrote: >>> So, just to recall what we discussed at LPC (I have Mike's slides >>> at hand :-)). It seems that key points are: >>> >>> 1- we agreed that locking in c

Re: [PATCH 6/7] [RFC] [media]: v4l2: introduce v4l2_timeval

2015-09-15 Thread Hans Verkuil
On 09/15/2015 05:49 PM, Arnd Bergmann wrote: > The v4l2 API uses a 'struct timeval' to communicate time stamps to user > space. This is broken on 32-bit architectures as soon as we have a C library > that defines time_t as 64 bit, which then changes the structure layout of > struct v4l2_buffer. >

Re: [PATCH 3.12 00/33] 3.12.48-stable review

2015-09-15 Thread Guenter Roeck
On 09/15/2015 07:22 AM, Jiri Slaby wrote: This is the start of the stable review cycle for the 3.12.48 release. There are 33 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by T

Re: [PATCH V6 6/6] kvm: add fast mmio capabilitiy

2015-09-15 Thread Paolo Bonzini
On 15/09/2015 18:13, Cornelia Huck wrote: > On Tue, 15 Sep 2015 17:07:55 +0200 > Paolo Bonzini wrote: > >> On 15/09/2015 08:41, Jason Wang wrote: >>> +With KVM_CAP_FAST_MMIO, a zero length mmio eventfd is allowed for >>> +kernel to ignore the length of guest write and get a possible faster >>>

Re: [PATCH] trace-cmd: Leave out absolute addresses to fix bogus symbol resolutions

2015-09-15 Thread Jan Kiszka
On 2015-07-31 16:04, Jan Kiszka wrote: > On x86, page_fault_* tracepoints report userspace address via kernel > symbols because all the per-cpu variable offsets are in kallsyms, > occupying the lower address space. Fix this by skipping over absolute > addresses while processing kallsyms. > > Signe

Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address

2015-09-15 Thread Jason Gunthorpe
On Tue, Sep 15, 2015 at 01:09:56PM +0300, Jarkko Sakkinen wrote: > However, for MMIO address the hardware might abort the entire request > when trying to do a 64-bit read, which causes the CPU to fill the result > with 1's. Okay, yes, for iomem you can't rely on packed. packed actually can mess u

Re: [PATCH -tip 2/3] sched/wake_q: Relax to acquire semantics

2015-09-15 Thread Peter Zijlstra
On Tue, Sep 15, 2015 at 08:34:48AM -0700, Paul E. McKenney wrote: > On Tue, Sep 15, 2015 at 04:14:39PM +0200, Peter Zijlstra wrote: > > On Tue, Sep 15, 2015 at 07:09:22AM -0700, Paul E. McKenney wrote: > > > On Tue, Sep 15, 2015 at 02:48:00PM +0200, Peter Zijlstra wrote: > > > > On Tue, Sep 15, 201

[PATCH v2] ata: pata_macio: Fix module autoload for OF platform driver

2015-09-15 Thread Luis de Bethencourt
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. This patch adds the missing MODULE_DEVICE_TABLE() for OF to export that information so modules have the correct aliases built-in and autoloading works correctly. Link

Re: [PATCH 04/26] usb: gadget: introduce 'enabled' flag in struct usb_ep

2015-09-15 Thread Felipe Balbi
Hi, On Tue, Sep 15, 2015 at 06:15:25PM +0200, Krzysztof Opasiak wrote: > >>>+ } > >>>+ > >>>+ return ret; > >>> } > >>> > >> > >>Personally I don't like this convention. In my opinion usb_ep_disable() & > >>usb_ep_enable() should fail if ep is already disabled/enabled. Then in > >>function code

Re: [PATCH v3 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-15 Thread Jon Medhurst (Tixy)
On Tue, 2015-09-15 at 17:04 +0100, Punit Agrawal wrote: > "Jon Medhurst (Tixy)" writes: > > > On Tue, 2015-09-15 at 10:37 +0100, Punit Agrawal wrote: > >> "Jon Medhurst (Tixy)" writes: > >> > >> > On Mon, 2015-09-14 at 15:38 +0100, Punit Agrawal wrote: > >> >> Mark Rutland writes: > >> >> > >

Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time

2015-09-15 Thread Minfei Huang
On 09/15/15 at 12:12pm, Steven Rostedt wrote: > On Wed, 16 Sep 2015 00:00:46 +0800 > Minfei Huang wrote: > > > On 09/15/15 at 11:50am, Steven Rostedt wrote: > > > On Tue, 15 Sep 2015 23:37:39 +0800 > > > Minfei Huang wrote: > > > > > > > > > > I think the variant ftrace_update_time is not use

Re: [PATCH 7/7] [RFC] [media] introduce v4l2_timespec type for timestamps

2015-09-15 Thread Hans Verkuil
On 09/15/2015 05:49 PM, Arnd Bergmann wrote: > The v4l2 event queue uses a 'struct timespec' to pass monotonic > timestamps. This is not a problem by itself, but it breaks when user > space redefines timespec to use 'long long' on 32-bit systems. > > To avoid that problem, we define our own replac

Re: [PATCH] ata: pata_macio: Fix module autoload for OF platform driver

2015-09-15 Thread Luis de Bethencourt
On Tue, Sep 15, 2015 at 11:52:10AM -0400, Tejun Heo wrote: > On Tue, Sep 15, 2015 at 05:45:52PM +0200, Luis de Bethencourt wrote: > > This platform driver has a OF device ID table but the OF module > > alias information is not created so module autoloading won't work. > > > > Signed-off-by: Luis d

Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting

2015-09-15 Thread Jonathan Corbet
[Rather belatedly looping in linux-api] On Tue, 15 Sep 2015 18:24:28 +0300 Alexander Shishkin wrote: > Johannes Berg writes: > > > On Tue, 2015-09-15 at 17:15 +0300, Alexander Shishkin wrote: > >> > >> > It seems to me that current->ext_err_code needs to be cleared on > >> > each system

[PATCH 0/2] Fix module autoload for OF platform drivers

2015-09-15 Thread Luis de Bethencourt
Hello, These patches add the missing MODULE_DEVICE_TABLE() for OF to export the information so modules have the correct aliases built-in and autoloading works correctly. A longer explanation by Javier Canillas can be found here: https://lkml.org/lkml/2015/7/30/519 Thanks, Luis Luis de Bethencou

[PATCH 1/2] char: hw_random: Fix module autoload for OF platform drivers

2015-09-15 Thread Luis de Bethencourt
This platform drivers have a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt --- drivers/char/hw_random/pasemi-rng.c | 1 + drivers/char/hw_random/ppc4xx-rng.c | 1 + 2 files changed, 2 insertions(+) diff

Re: [PATCH 1/1] signals: kill block_all_signals() and unblock_all_signals()

2015-09-15 Thread Oleg Nesterov
ping ;) Andrew, should I re-send this patch? It was acked by Daniel and Dave doesn't object. Dave, I'll appreciate it if you ack it explicitly. On 08/27, Oleg Nesterov wrote: > > It is hardly possible to enumerate all problems with block_all_signals() > and unblock_all_signals(). Just for examp

Re: [PATCH V6 6/6] kvm: add fast mmio capabilitiy

2015-09-15 Thread Cornelia Huck
On Tue, 15 Sep 2015 18:29:49 +0200 Paolo Bonzini wrote: > On 15/09/2015 18:13, Cornelia Huck wrote: > > On Tue, 15 Sep 2015 17:07:55 +0200 > > Paolo Bonzini wrote: > > > >> On 15/09/2015 08:41, Jason Wang wrote: > >>> +With KVM_CAP_FAST_MMIO, a zero length mmio eventfd is allowed for > >>> +ker

Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address

2015-09-15 Thread Jarkko Sakkinen
On Tue, Sep 15, 2015 at 10:30:39AM -0600, Jason Gunthorpe wrote: > On Tue, Sep 15, 2015 at 01:09:56PM +0300, Jarkko Sakkinen wrote: > > However, for MMIO address the hardware might abort the entire request > > when trying to do a 64-bit read, which causes the CPU to fill the result > > with 1's. >

Re: [PATCH V6 6/6] kvm: add fast mmio capabilitiy

2015-09-15 Thread Paolo Bonzini
On 15/09/2015 18:44, Cornelia Huck wrote: >> > Can you explain why? If there is any non-zero valid length, "wildcard >> > length" (represented by zero) would also make sense. > What is a wildcard match supposed to mean in this case? The datamatch > field contains the queue index for the device s

Re: [PATCH] PCI: create builtin_pci_driver to avoid registration boilerplate

2015-09-15 Thread Bjorn Helgaas
Hi Paul, On Tue, Aug 25, 2015 at 08:25:37PM -0400, Paul Gortmaker wrote: > In commit f309d4443130bf814e991f836e919dca22df37ae ("platform_device: > better support builtin boilerplate avoidance") we introduced the > builtin_driver macro. > > Here we use that support and extend it to PCI driver regi

[PATCH 08/17] Update the mmc driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/mmc/core/host.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 99a9c9011c50..5aa2330f074c 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -40,9

[PATCH 09/17] Update the virtgpu driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/gpu/drm/virtio/virtgpu_vq.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_vq.c b/drivers/gpu/drm/virtio/virtgpu_vq.c index 1698669f4185..380947dad306 100644 --- a/drivers/gpu/drm/virtio/vi

[PATCH 2/2] char: ipmi: Fix module autoload for OF platform driver

2015-09-15 Thread Luis de Bethencourt
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt --- drivers/char/ipmi/ipmi_si_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/driver

[PATCH 15/17] Update the NVMe SSD driver to use ida helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/block/nvme-core.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index d1d6141920d3..ab13833d4fde 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c

Re: similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-15 Thread Peter Senna Tschudin
On Tue, Sep 15, 2015 at 4:33 PM, Felipe Balbi wrote: > On Mon, Sep 14, 2015 at 07:50:02PM +0200, Peter Senna Tschudin wrote: >> On Mon, Sep 14, 2015 at 5:01 PM, Felipe Balbi wrote: >> > On Sat, Sep 12, 2015 at 03:14:50PM +0200, Peter Senna Tschudin wrote: >> >> >> Should these files be consolidat

[PATCH 05/17] Update the md driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/md/dm.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index f331d888e7f5..53d6895eb13d 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -2202,9 +2202,7 @@ static int dm_any_c

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-15 Thread Paolo Bonzini
On 15/09/2015 15:36, Christian Borntraeger wrote: > I am wondering why the old code behaved in such fatal ways. Is there > some interaction between waiting for a reschedule in the > synchronize_sched writer and some fork code actually waiting for the > read side to get the lock together with some

[PATCH 17/17] Update the ARM soc base driver to use ida helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/base/soc.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/base/soc.c b/drivers/base/soc.c index 39fca01c8fa1..cf70c3246123 100644 --- a/drivers/base/soc.c +++ b/drivers/base/soc.c @@ -122,18 +122,7 @@ struct soc

[PATCH 16/17] Update the Micron PCIe SSD driver to use ida helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/block/mtip32xx/mtip32xx.c | 22 -- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 4a2ef09e6704..ccff4119b554 100644 --- a/drivers/block/mtip32xx/m

[PATCH 07/17] Update the memstick driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/memstick/core/memstick.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/memstick/core/memstick.c b/drivers/memstick/core/memstick.c index a0547dbf9806..8f40a3d5108b 100644 --- a/drivers/memstick/core/memstick.

[PATCH 12/17] Update the TI Flash Media driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/misc/tifm_core.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers/misc/tifm_core.c b/drivers/misc/tifm_core.c index a511b2a713b3..46385f828a8f 100644 --- a/drivers/misc/tifm_core.c +++ b/drivers/misc/tifm_core.c @

[PATCH 14/17] Update the rsxx flash adapter driver to use ida helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/block/rsxx/core.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/block/rsxx/core.c b/drivers/block/rsxx/core.c index d8b2488aaade..dd23a0e85040 100644 --- a/drivers/block/rsxx/core.c +++ b/drivers/block/rsxx/core

Re: similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-15 Thread Felipe Balbi
Hi, On Tue, Sep 15, 2015 at 06:41:55PM +0200, Peter Senna Tschudin wrote: > On Tue, Sep 15, 2015 at 4:33 PM, Felipe Balbi wrote: > > On Mon, Sep 14, 2015 at 07:50:02PM +0200, Peter Senna Tschudin wrote: > >> On Mon, Sep 14, 2015 at 5:01 PM, Felipe Balbi wrote: > >> > On Sat, Sep 12, 2015 at 03:1

[PATCH 13/17] Update the SCSI disk driver to use ida helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/scsi/sd.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 3b2fcb4fada0..60b2ad918208 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -2948,15 +2948,7 @@ static int

Re: [f2fs-dev] [PATCH v3] f2fs crypto: allocate buffer for decrypting filename

2015-09-15 Thread Jaegeuk Kim
Change log from v1: o fix wrong pointer assignment Chang log from v2: o add one more missing call path: f2fs_encrypted_follow_link >From 84574dd5c3e8ed9ca9fdfcbd251b354cdbc5ecab Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Thu, 3 Sep 2015 13:38:23 -0700 Subject: [PATCH 1/3] f2fs crypto:

[PATCH v4 0/5] SCPI sensors support

2015-09-15 Thread Punit Agrawal
Hi, This series adds support for SCPI based sensors for ARM development platform. In addition to supporting sensors, when a temperature sensor is discovered the driver registers the sensor with the thermal framework. The sensor patches here have been split out from a longer series adding support

Re: [PATCH 1/1] fs: global sync to not clear error status of individual inodes

2015-09-15 Thread Andi Kleen
> Is this an actual problem? Write errors usually indicate that the There are transaction systems that need to track errors at the level of the individual IO. So yes we should guarantee that if a particular sync failed an error is always returned. -Andi -- To unsubscribe from this list: send th

[PATCH 10/17] Update the DCA DMA driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/dca/dca-sysfs.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/dca/dca-sysfs.c b/drivers/dca/dca-sysfs.c index 126cf295b198..8930707df295 100644 --- a/drivers/dca/dca-sysfs.c +++ b/drivers/dca/dca-sysfs.c @@ -

Re: [Xen-devel] [PATCH RFC] xen: if on Xen, "flatten" the scheduling domain hierarchy

2015-09-15 Thread Dario Faggioli
On Thu, 2015-08-20 at 20:16 +0200, Juergen Groß wrote: > On 08/18/2015 05:55 PM, Dario Faggioli wrote: > > Hey everyone, > > > > So, as a followup of what we were discussing in this thread: > > > > [Xen-devel] PV-vNUMA issue: topology is misinterpreted by the guest > > http://lists.xenproject.o

[PATCH v4 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-15 Thread Punit Agrawal
The System Control Processor (SCP) provides access to SoC sensors via the System Control and Power Interface (SCPI) Message Protocol. Add bindings to allow probing of these sensors. Also support referencing of the sensors for setting up thermal zones via the thermal DT bindings. Signed-off-by: Pun

[PATCH 11/17] Update the rtsx multifunction driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/mfd/rtsx_pcr.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c index a66540a49079..8ddefb8c5e64 100644 --- a/drivers/mfd/rtsx_pcr.c +++ b/drivers/mfd/rtsx_pcr.c @@ -1191,15 +11

[PATCH v4 2/5] firmware: arm_scpi: Extend to support sensors

2015-09-15 Thread Punit Agrawal
ARM System Control Processor (SCP) provides an API to query and use the sensors available in the system. Extend the SCPI driver to support sensor messages. Signed-off-by: Punit Agrawal Cc: Sudeep Holla --- drivers/firmware/arm_scpi.c | 60 +++ include/

[PATCH v4 5/5] arm64: dts: Add sensor node to Juno dt

2015-09-15 Thread Punit Agrawal
The SCP firmware on Juno provides access to SoC sensors via the SCPI. Add the sensor nodes to the device tree to enable this support. Signed-off-by: Punit Agrawal Cc: Rob Herring Cc: Mark Rutland Cc: Liviu Dudau Cc: Sudeep Holla --- arch/arm64/boot/dts/arm/juno-base.dtsi | 5 + 1 file ch

[PATCH v4 3/5] hwmon: Support sensors exported via ARM SCP interface

2015-09-15 Thread Punit Agrawal
Create a driver to add support for SoC sensors exported by the System Control Processor (SCP) via the System Control and Power Interface (SCPI). The supported sensor types is one of voltage, temperature, current, and power. The sensor labels and values provided by the SCP are exported via the hwmo

randconfig build errors with next-20150915, in drivers/media/i2c

2015-09-15 Thread Jim Davis
Building with the attached random configuration file, warning: (VIDEO_COBALT) selects VIDEO_ADV7511 which has unmet direct dependencies (MEDIA_SUPPORT && VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API) warning: (VIDEO_COBALT) selects VIDEO_ADV7604 which has unmet direct dependencies (MEDIA_SUPPORT &&

[PATCH v4 4/5] hwmon: Support thermal zones registration for SCP temperature sensors

2015-09-15 Thread Punit Agrawal
Add support to create thermal zones based on the temperature sensors provided by the SCP. The thermal zones can be defined using the thermal DT bindings and should refer to the SCP sensor id to select the sensor. Signed-off-by: Punit Agrawal Acked-by: Guenter Roeck Cc: Eduardo Valentin --- dri

[PATCH 04/17] Update the ch driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Note: when allocating an index, in the error case, where the just-allocated index has to be released, the required locking around the index removal was not present, so this conversion has the side effect of adding locking for that error condition. This should close a possible race condition that co

[PATCH 02/17] Update scsi hosts to use idr for host number mgmt

2015-09-15 Thread Lee Duncan
Each Scsi_Host instance gets a host number starting at 0, but this was implemented with an atomic integer, and rollover wasn't considered. Another problem with this design is that scsi host numbers used by iscsi are never reused, thereby making rollover more likely. This patch converts Scsi_Host in

Re: [PATCH v4 2/7] power: bq27x00_battery: Renaming for consistency

2015-09-15 Thread Andrew F. Davis
On 09/15/2015 03:32 AM, Laurentiu Palcu wrote: On Mon, Sep 14, 2015 at 04:26:08PM -0500, Andrew F. Davis wrote: Rename functions that are used by multiple devices. New devices have been added and the function names and driver name are no longer general enough for the functionality they provide.

[PATCH 06/17] Update the infiniband uverbs driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/infiniband/core/uverbs_cmd.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index bbb02ffe87df..1e5b2a66a501 100644 --- a/drivers/infiniband/core/u

[PATCH 03/17] Update the st driver to use idr helper functions.

2015-09-15 Thread Lee Duncan
Signed-off-by: Lee Duncan --- drivers/scsi/st.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index b37b9b00c4b4..51e1ce721d9f 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c @@ -4265,11 +4265,8 @@ static int st_p

[PATCH] serial: 8250: simplify ralink/alchemy register remap selection

2015-09-15 Thread Mans Rullgard
Some SoCs, including Ralink/Mediatek and Alchemy Au1xxx, have a 16550-like UART with a non-standard register layout. These are supported by a simple mapping table in 8250_port.c Rather than list every SoC type using this access mode in the ifdefs there, allow selecting the SERIAL_8250_RT288X Kcon

[PATCH 1/2] f2fs: cover number of dirty node pages under node_write lock

2015-09-15 Thread Jaegeuk Kim
This number is referenced by checkpoint under node_write lock. Signed-off-by: Jaegeuk Kim --- fs/f2fs/node.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 27d1a74..4d9bedf 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c

[PATCH 2/2] f2fs: no need to lock for update_inode_page all the time

2015-09-15 Thread Jaegeuk Kim
As comment says, we don't need to call f2fs_lock_op in write_inode to prevent from producing dirty node pages all the time. That happens only when there is not enough free sections and we can avoid that by calling balance_fs in prior to that. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inode.c | 10 +

[PATCH 00/17] Create and use ida and idr helper routines

2015-09-15 Thread Lee Duncan
The idr index management library supplies two sets of routines for managing monotonically increasing index numbers. The "ida" set of routines manage allocating and freeing simple index numbers. The "idr" set of routines add the ability to save an arbitrary pointer with each index. Both sets of rou

[PATCH 01/17] Add ida and idr helper routines.

2015-09-15 Thread Lee Duncan
Clients of the ida and idr index-management routines tend to use the same calling sequences much of the time, so this change adds helper functions for allocating and releasing indexes of either flavor, i.e. with or without pointer management. Inline functions added for idr: idr_get_index_in_rang

Re: [PATCH v12 00/21] Compile-time stack metadata validation

2015-09-15 Thread Chris J Arges
I got the following compiler error when building v12 of this patchset: DESCEND stacktool CC stacktool.o CC elf.o CC special.o CC arch/x86/decode.o LD arch/x86/stacktool-in.o LD stacktool-in.o Warning: stacktool: x86 instruction decoder differs fro

Re: [PATCH] trace-cmd: Leave out absolute addresses to fix bogus symbol resolutions

2015-09-15 Thread Steven Rostedt
On Tue, 15 Sep 2015 18:30:22 +0200 Jan Kiszka wrote: > On 2015-07-31 16:04, Jan Kiszka wrote: > > On x86, page_fault_* tracepoints report userspace address via kernel > > symbols because all the per-cpu variable offsets are in kallsyms, > > occupying the lower address space. Fix this by skipping

Re: [REPOST PATCH] ftrace: Remove the unused variant ftrace_update_time

2015-09-15 Thread Steven Rostedt
On Wed, 16 Sep 2015 00:32:02 +0800 Minfei Huang wrote: > There is one more confusion. Is it valuable to export such info to > userspace? What does user do, if kernel exports this? Nothing. The dyn_ftrace_total_info is purely for debugging ftrace. It's something I use. -- Steve -- To unsubscrib

Re: [PATCH RFC v3 1/6] exterr: Introduce extended syscall error reporting

2015-09-15 Thread Johannes Berg
> I think that anything other than the errno "grab it now or lose it" > behavior will prove confusing. I don't think there is any other way to > know that a given error report corresponds to a specific system call. > Library calls can mess it up. Kernel changes adding extended reporting to > new

Re: [PATCH] trace-cmd: Leave out absolute addresses to fix bogus symbol resolutions

2015-09-15 Thread Jan Kiszka
On 2015-09-15 19:00, Steven Rostedt wrote: > On Tue, 15 Sep 2015 18:30:22 +0200 > Jan Kiszka wrote: > >> On 2015-07-31 16:04, Jan Kiszka wrote: >>> On x86, page_fault_* tracepoints report userspace address via kernel >>> symbols because all the per-cpu variable offsets are in kallsyms, >>> occupy

[PATCH v3] tpm, tpm_crb: fix unaligned read of the command buffer address

2015-09-15 Thread Jarkko Sakkinen
The command buffer address must be read with exactly two 32-bit reads. Otherwise, on some HW platforms, it seems that HW will abort the read operation, which causes CPU to fill the read bytes with 1's. Therefore, we cannot rely on memcpy_fromio() but must call ioread32() two times instead. Also, t

Re: [PATCH -tip 2/3] sched/wake_q: Relax to acquire semantics

2015-09-15 Thread Paul E. McKenney
On Tue, Sep 15, 2015 at 06:30:28PM +0200, Peter Zijlstra wrote: > On Tue, Sep 15, 2015 at 08:34:48AM -0700, Paul E. McKenney wrote: > > On Tue, Sep 15, 2015 at 04:14:39PM +0200, Peter Zijlstra wrote: > > > On Tue, Sep 15, 2015 at 07:09:22AM -0700, Paul E. McKenney wrote: > > > > On Tue, Sep 15, 201

Re: [PATCH 5/6] sched/fair: Get rid of scaling utilization by capacity_orig

2015-09-15 Thread bsegall
Yuyang Du writes: > On Mon, Sep 14, 2015 at 10:34:00AM -0700, bseg...@google.com wrote: >> >> SCHED_LOAD_RESOLUTION and the non-SLR part of SCHED_LOAD_SHIFT are not >> >> required to be the same value and should not be conflated. >> >> >> >> In particular, since cgroups are on the same timeline

Re: List corruption on epoll_ctl(EPOLL_CTL_DEL) an AF_UNIX socket

2015-09-15 Thread Rainer Weikusat
Mathias Krause writes: > this is an attempt to resurrect the thread initially started here: > > http://thread.gmane.org/gmane.linux.network/353003 > > As that patch fixed the issue for the mentioned reproducer, it did not > fix the bug for the production code Olivier is using. :( > > Changing th

Re: [PATCH] trace-cmd: Leave out absolute addresses to fix bogus symbol resolutions

2015-09-15 Thread Steven Rostedt
On Tue, 15 Sep 2015 19:06:36 +0200 Jan Kiszka wrote: > Huh? Your /proc/kallsyms doesn't start like this? > > A irq_stack_union > A __per_cpu_start > ... > > That's from a stock distro SUSE kernel I'm running (config attached). Nevermind, I was looking at an ol

Re: [Xen-devel] [PATCH RFC] xen: if on Xen, "flatten" the scheduling domain hierarchy

2015-09-15 Thread Dario Faggioli
On Wed, 2015-09-02 at 16:30 +0200, Juergen Gross wrote: > On 09/02/2015 04:08 PM, Boris Ostrovsky wrote: > > On 09/02/2015 07:58 AM, Juergen Gross wrote: > >> On 08/31/2015 06:12 PM, Boris Ostrovsky wrote: > >>> If set_cpu_sibling_map()'s has_mp is false, wouldn't we effectively have > >>> both of

[PATCH] PCI: Fix devfn for VPD access through function 0

2015-09-15 Thread Alex Williamson
Commit 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") passes PCI_SLOT(devfn) for the devfn parameter of pci_get_slot(). Generally this works because we're fairly well guaranteed that a PCIe device is at slot address 0, but for the general case, including conventional PCI,

Re: [PATCH] KVM: add halt_attempted_poll to VCPU stats

2015-09-15 Thread David Matlack
On Tue, Sep 15, 2015 at 9:27 AM, Paolo Bonzini wrote: > This new statistic can help diagnosing VCPUs that, for any reason, > trigger bad behavior of halt_poll_ns autotuning. > > For example, say halt_poll_ns = 48, and wakeups are spaced exactly > like 479us, 481us, 479us, 481us. Then KVM alway

Re: [PATCH v3] tpm, tpm_crb: fix unaligned read of the command buffer address

2015-09-15 Thread Jason Gunthorpe
On Tue, Sep 15, 2015 at 08:05:40PM +0300, Jarkko Sakkinen wrote: > The command buffer address must be read with exactly two 32-bit reads. > Otherwise, on some HW platforms, it seems that HW will abort the read > operation, which causes CPU to fill the read bytes with 1's. Therefore, > we cannot rel

Re: [PATCH] KVM: nVMX: nested VPID emulation

2015-09-15 Thread Jan Kiszka
On 2015-09-15 12:14, Wanpeng Li wrote: > On 9/14/15 10:54 PM, Jan Kiszka wrote: >> Last but not least: the guest can now easily exhaust the host's pool of >> vpid by simply spawning plenty of VCPUs for L2, no? Is this acceptable >> or should there be some limit? > > I reuse the value of vpid02 whi

Re: Multiple potential races on vma->vm_flags

2015-09-15 Thread Sasha Levin
On 09/11/2015 09:27 PM, Hugh Dickins wrote: > I'm inclined to echo Vlastimil's comment from earlier in the thread: > sounds like an overkill, unless we find something more serious than this. I've modified my tests to stress the exit path of processes with many vmas, and hit the following NULL ptr

Re: [PATCH 2/6] PCI: generic: Only fixup irqs for bus we are creating.

2015-09-15 Thread Will Deacon
Hi David, On Sat, Sep 12, 2015 at 12:21:55AM +0100, David Daney wrote: > From: David Daney > > Use pci_walk_bus() to restrict the fixup irq actions to only the bus > being created. > > If we create multiple buses with pci-host-generic, or there are buses > created by other drivers, we don't wan

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-15 Thread Paul E. McKenney
On Tue, Sep 15, 2015 at 06:42:19PM +0200, Paolo Bonzini wrote: > > > On 15/09/2015 15:36, Christian Borntraeger wrote: > > I am wondering why the old code behaved in such fatal ways. Is there > > some interaction between waiting for a reschedule in the > > synchronize_sched writer and some fork c

Re: [PATCH] pptp: avoid releasing the sock too early

2015-09-15 Thread Sasha Levin
On 09/14/2015 12:43 PM, Eric Dumazet wrote: > Hmm, is the synchronize_rcu() in del_chan() still needed, and why it was > not enough ? > > I believe your patch might reduce the race window, but it is not clear > it is the right fix. You're right, I've missed the synchronize_rcu() originally. At th

Re: [PATCH 3/6] PCI: generic: Quit clobbering our pci_ops.

2015-09-15 Thread Will Deacon
On Sat, Sep 12, 2015 at 12:21:56AM +0100, David Daney wrote: > From: David Daney > > The pci-host-generic driver keeps a global struct pci_ops which it > then patches with the .map_bus method appropriate for the bus device. > A problem arises when the driver is used for two different types of > b

Re: [PATCH RFC] pidns: introduce syscall getvpid

2015-09-15 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Tue, Sep 15, 2015 at 06:01:38PM +0300, Konstantin Khlebnikov wrote: > > On 15.09.2015 17:27, Eric W. Biederman wrote: > > >Konstantin Khlebnikov writes: > > > > > >>pid_t getvpid(pid_t pid, pid_t source, pid_t target); > > >> > > >>This syscall c

Re: [PATCH] barriers: introduce smp_mb__release_acquire and update documentation

2015-09-15 Thread Paul E. McKenney
On Tue, Sep 15, 2015 at 05:13:30PM +0100, Will Deacon wrote: > As much as we'd like to live in a world where RELEASE -> ACQUIRE is > always cheaply ordered and can be used to construct UNLOCK -> LOCK > definitions with similar guarantees, the grim reality is that this isn't > even possible on x86 (

Re: [PATCH v4] pinctrl: mediatek: Implement wake handler and suspend resume

2015-09-15 Thread Sudeep Holla
On 15/09/15 03:52, Dmitry Torokhov wrote: On Mon, Sep 14, 2015 at 4:16 AM, Sudeep Holla wrote: [...] This is wrong assumption in the driver. enable_irq_wake doesn't implicitly enable the IRQ. So the disable_irq should be moved to else. And the resume patch also needs to be fixed according

Re: [PATCH 4/6] PCI: generic: Correct, and avoid overflow, in bus_max calculation.

2015-09-15 Thread Will Deacon
On Sat, Sep 12, 2015 at 12:21:57AM +0100, David Daney wrote: > From: David Daney > > There are two problems with the bus_max calculation: > > 1) The u8 data type can overflow for large config space windows. > > 2) The calculation is incorrect for a bus range that doesn't start at >zero. >

Re: [PATCH 2/6] PCI: generic: Only fixup irqs for bus we are creating.

2015-09-15 Thread David Daney
On 09/15/2015 10:36 AM, Will Deacon wrote: Hi David, On Sat, Sep 12, 2015 at 12:21:55AM +0100, David Daney wrote: From: David Daney Use pci_walk_bus() to restrict the fixup irq actions to only the bus being created. If we create multiple buses with pci-host-generic, or there are buses create

Re: [PATCH 6/6] PCI: generic: Allow bus default MSI controller to be specified.

2015-09-15 Thread Will Deacon
On Sat, Sep 12, 2015 at 12:21:59AM +0100, David Daney wrote: > From: David Daney > > If the device tree node for the bus has a "msi-parent" property, use > that as the default MSI controller for devices on the bus. Add device > tree binding documentation describing the new property. > > This al

Re: [linux-next RFC v7 2/6] mtd: spi-nor: read JEDEC ID with multiple I/O protocols

2015-09-15 Thread Jagan Teki
On 15 September 2015 at 20:58, Cyrille Pitchen wrote: > When their quad or dual I/O mode is enabled, Micron and Macronix spi-nor > memories don't reply to the regular Read ID (0x9f) command. Instead they > reply to a new dedicated command Read ID Multiple I/O (0xaf). > > If the Read ID (0x9f) comm

Re: [PATCH 5/6] PCI: generic: Pass proper starting bus number to pci_scan_root_bus().

2015-09-15 Thread Will Deacon
On Sat, Sep 12, 2015 at 12:21:58AM +0100, David Daney wrote: > From: David Daney > > If the bus is being configured with a bus-range that does not start at > zero, pass that starting bus number to pci_scan_root_bus(). Passing > the incorrect value of zero causes attempted config accesses outside

[PATCH v3 1/2] dt-bindings: Add Broadcom Cygnus PCIe PHY binding

2015-09-15 Thread Ray Jui
Add DT binding for Broadcom Cygnus PCIe PHYs Signed-off-by: Ray Jui Reviewed-by: Arun Parameswaran Reviewed-by: JD (Jiandong) Zheng Reviewed-by: Scott Branden --- .../bindings/phy/brcm,cygnus-pcie-phy.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 1006

<    3   4   5   6   7   8   9   10   11   >