[PATCH 04/19] staging/lustre: Remove users of OBD_ALLOC/FREE_PTR lu_object.h

2015-09-15 Thread green
From: Oleg Drokin These are converted to regular kzalloc/kfree calls. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lu_object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lu_object.h

[PATCH 06/19] staging/lustre/obdclass: replace OBD_ALLOC_GFP with kzalloc

2015-09-15 Thread green
From: Oleg Drokin Part of getting rid of custom Lustre allocation macros. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/obdclass/cl_page.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/cl_page.c

[PATCH 05/19] staging/lustre/llite: Get rid of OBD_ALLOC/FREE_PTR

2015-09-15 Thread green
From: Oleg Drokin The remaining users in ll_open_cleanup and obd_mod_alloc are converted to regular kzalloc/kfree. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd.h | 4 ++-- drivers/staging/lustre/lustre/llite/llite_lib.c | 2 +- 2 files changed, 3 insertions(+),

Re: [RFC 08/14] sched/tune: add detailed documentation

2015-09-15 Thread Steve Muckle
On 09/15/2015 08:19 AM, Peter Zijlstra wrote: > Please flip the argument around; providing lots of knobs for vendors to > do $magic with is _NOT_ a good thing. > > The whole out-of-tree cpufreq governor hack fest Android thing is a > complete and utter fail on all levels. Its the embedded, ship,

[PATCH 08/19] staging/lustre/fld: Replace OBD_ALLOC_GFP with kzalloc

2015-09-15 Thread green
From: Oleg Drokin Part of effort to get rid of custom Lustre allocation macros. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/fld/fld_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/fld/fld_cache.c

[PATCH 10/19] staging/lustre/ptlrpc: Replace OBD_FREE_PTR with kfree

2015-09-15 Thread green
From: Oleg Drokin Part of effort of getting rid of custom Lustre alloc/free macros Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h

[PATCH 09/19] staging/lustre: Convert lustre_cfg_new/free to use kzalloc/kfree

2015-09-15 Thread green
From: Oleg Drokin Part of effort of getting rid of custom Lustre allocation macros Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_cfg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/lustre_cfg.h

[PATCH 14/19] staging/lustre: Remove memory allocation fault injection framework

2015-09-15 Thread green
From: Oleg Drokin Lustre memory allocation wrappers also included a fault injection framework that's totally redundant, since in-kernel offering is actually superior to what we had. So let's remove it. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd_support.h | 20

[PATCH 11/19] staging/lustre: Replace last users of OBD_ALLOC/FREE_LARGE

2015-09-15 Thread green
From: Oleg Drokin OBD_ALLOC_LARGE is now replaced with libcfs_kvzalloc and OBD_FREE_LARGE is now replaced with kvfree. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_lib.h | 2 +- drivers/staging/lustre/lustre/include/obd.h| 8 2 files changed, 5

[PATCH 12/19] staging/lustre: Remove stray bit of userland utils code

2015-09-15 Thread green
From: Oleg Drokin The UTILS are userland and I see it's causing confusion with things being already converted to kmalloc, so just remove it. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd_support.h | 18 -- 1 file changed, 18 deletions(-) diff --git

[PATCH 13/19] staging/lustre: Remove unused OBD_ALLOC* and OBD_FREE macros

2015-09-15 Thread green
From: Oleg Drokin This removes now unused OBD_ALLOC, OBD_ALLOC_GFP, OBD_ALLOC_PTR, OBD_ALLOC_LARGE and supporting infrastructure. Also OBD_FREE, OBD_FREE_PTR, OBD_FREE_LARGE and supporting infrastructure. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/obd_support.h| 52

[PATCH 19/19] staging/lustre: Remove server defines from lustre_disk.h

2015-09-15 Thread green
From: Oleg Drokin Take initial stab at removing server-disk related defines that client does not need. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_disk.h| 137 - .../staging/lustre/lustre/obdclass/llog_internal.h | 8 -- 2 files changed,

[PATCH 18/19] staging/lustre: remove IS_MDS|IS_OST|IS_MGS defines and users

2015-09-15 Thread green
From: Oleg Drokin These could only happen on the server, so they make no sense on the client. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_disk.h | 3 --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 7 ---

[PATCH 17/19] staging/lustre: Remove IS_SERVER and all users

2015-09-15 Thread green
From: Oleg Drokin Since the client can never be server, this is all dead code. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre_disk.h| 2 - drivers/staging/lustre/lustre/mgc/mgc_request.c| 37 ++ drivers/staging/lustre/lustre/obdclass/obd_mount.c | 85

[PATCH 16/19] staging/lustre: remove obd_memory stats counter

2015-09-15 Thread green
From: Oleg Drokin Now that we no longer track allocated memory, remove obd_memory statistics counter and all references to it everywhere Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd_support.h| 7 --- drivers/staging/lustre/lustre/obdclass/class_obd.c |

[PATCH 15/19] staging/lustre: Remove lustre used memory tracking framework

2015-09-15 Thread green
From: Oleg Drokin Lustre memory allocation framework has a feature to track amount of allocated memory, but since it's not being used consistently anymore and is on the way out in general, just remove it. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/obd_support.h| 60

[PATCH 07/19] staging/lustre: Remove references to OBD_ALLOC/FREE* in comments

2015-09-15 Thread green
From: Oleg Drokin Since everything is now supposed to use regular kernel alloc and free functions. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_lib.h | 2 +- drivers/staging/lustre/lustre/include/lustre_net.h | 2 +- drivers/staging/lustre/lustre/llite/file.c

[PATCH 01/19] staging/lustre: Remove OBD_CPT_ALLOC_LARGE

2015-09-15 Thread green
From: Oleg Drokin Remove OBD_CPT_ALLOC_LARGE define and convert the only user to libcfs_kvzalloc_cpt. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/obd_support.h | 5 - drivers/staging/lustre/lustre/ptlrpc/service.c | 6 -- 2 files changed, 4 insertions(+),

[PATCH 02/19] staging/lustre: Remove unused OBD_VMALLOC

2015-09-15 Thread green
From: Oleg Drokin These macros are not used anymore, so let's remove them, also __OBD_VMALLOC_VEROBSE and OBD_CPT_VMALLOC Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/obd_support.h| 29 -- 1 file changed, 29 deletions(-) diff --git

[PATCH v1] mm: migrate: hugetlb: putback destination hugepage to active list

2015-09-15 Thread Naoya Horiguchi
Since commit bcc54222309c ("mm: hugetlb: introduce page_huge_active") each hugetlb page maintains its active flag to avoid a race condition between multiple calls of isolate_huge_page(), but current kernel doesn't set the flag on a hugepage allocated by migration because the proper putback routine

RE: [PATCH v2] futex: lower the lock contention on the HB lock during wake up

2015-09-15 Thread Zhu Jefferry
Thanks for your detail guideline and explanations. Please see my questions in-line. > -Original Message- > From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: Wednesday, September 16, 2015 8:01 AM > To: Zhu Shuangjun-R65879 > Cc: linux-kernel@vger.kernel.org; bige...@linutronix.de

Re: [PATCH] drivers: of: check input parameter name for __of_find_property

2015-09-15 Thread Peng Fan
Hi Rob, On Tue, Sep 15, 2015 at 10:56:28AM -0500, Rob Herring wrote: > On 09/11/2015 08:44 AM, Peng Fan wrote: > > Check input parameter 'name' for __of_find_property. If name is NULL, > > of_prop_cmp->strcasecmp may trigger panic. > > Arguably that could be a feature. Do you have a usecase

[PATCH 3/5] hv: fcopy: use wrappers to propagate state

2015-09-15 Thread K. Y. Srinivasan
From: Olaf Hering The "state" is used by several threads of execution. Propagate the state to make changes visible. Also propagate context change in hv_fcopy_onchannelcallback. Without this change fcopy may hang at random points. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan ---

linux-next: build failure after merge of the tip tree

2015-09-15 Thread Stephen Rothwell
pi fs: Remove debugfs, tracefs and findfs objects") This is an incremental build i.e. I do not do a "make clean" after doing the build for each tree merge (in case that matters). I have used the tip tree from next-20150915 for today. Also, building perf seems to ignore O= on

Re: First kernel patch (optimization)

2015-09-15 Thread Steve Calfee
On Tue, Sep 15, 2015 at 12:53 PM, Eric Curtin wrote: > Signed-off-by: Eric Curtin > > diff --git a/tools/usb/usbip/src/usbip_detach.c > b/tools/usb/usbip/src/usbip_detach.c > index 05c6d15..9db9d21 100644 > --- a/tools/usb/usbip/src/usbip_detach.c > +++ b/tools/usb/usbip/src/usbip_detach.c > @@

RE: [PATCH v2] futex: lower the lock contention on the HB lock during wake up

2015-09-15 Thread Thomas Gleixner
On Tue, 15 Sep 2015, Zhu Jefferry wrote: Please configure your e-mail client proper and follow the basic rules: - Choose a meaningful subject for your questions You just copied a random subject line from some other mail thread, which makes your mail look like a patch. But it's not a patch.

[PATCH 2/3] drivers:hv: Export the API to invoke a hypercall on Hyper-V

2015-09-15 Thread K. Y. Srinivasan
From: Jake Oshins This patch exposes the function that hv_vmbus.ko uses to make hypercalls. This is necessary for retargeting an interrupt when it is given a new affinity. Since we are exporting this API, rename the API as it will be visible outside the hv.c file. Signed-off-by: Jake Oshins

[PATCH 3/3] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-09-15 Thread K. Y. Srinivasan
From: Jake Oshins This defines the channel type for PCI front-ends in Hyper-V VMs. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/linux/hyperv.h

[PATCH 0/3] Drivers: hv: vmbus: Support PCI Express pass-through driver

2015-09-15 Thread K. Y. Srinivasan
The patch set for supporting PCI Express pass through on Hyper-V has been posted and is currently under review. These vmbus patches are needed for the PCI Express pass through driver. Since these need to go through Greg's tree, I am posting these separately here. Jake Oshins (3): drivers:hv:

[PATCH 1/3] drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

2015-09-15 Thread K. Y. Srinivasan
From: Jake Oshins This patch exposes the mapping between Linux CPU number and Hyper-V virtual processor number. This is necessary because the hypervisor needs to know which virtual processors to target when making a mapping in the Interrupt Redirection Table in the I/O MMU. Signed-off-by: Jake

Re: [RFC 08/14] sched/tune: add detailed documentation

2015-09-15 Thread Steve Muckle
On 09/15/2015 08:00 AM, Patrick Bellasi wrote: >> Agreed, though I also think those tunable values might also change for a >> given set of tasks in different circumstances. > > Could you provide an example? > > In my view the per-task support should be exploited just for quite > specialized

Re: [PATCH v2] ARM: dts: Fix LEDs on exynos5422-odroidxu3

2015-09-15 Thread Krzysztof Kozlowski
On 16.09.2015 08:35, Kukjin Kim wrote: > On 09/13/15 18:32, Krzysztof Kozlowski wrote: >> The LEDs on Odroid XU3 family boards could not properly probe because PWM >> outputs were reduced only to PWM for fan. Fix it for Odroid XU3 and >> XU3-Lite boards by switching to usage of all 4 outputs

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

2015-09-15 Thread Dave Airlie
On 16 September 2015 at 02:41, Oleg Nesterov wrote: > 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

Re: [PATCH] mm: take i_mmap_lock in unmap_mapping_range() for DAX

2015-09-15 Thread Dan Williams
Hi Kirill, On Fri, Aug 7, 2015 at 4:53 AM, Kirill A. Shutemov wrote: > DAX is not so special: we need i_mmap_lock to protect mapping->i_mmap. > > __dax_pmd_fault() uses unmap_mapping_range() shoot out zero page from > all mappings. We need to drop i_mmap_lock there to avoid lock deadlock. > >

Re: [RFC][PATCH 5/5] abs(): Provide build error on passing 64bit value to abs()

2015-09-15 Thread Linus Torvalds
On Mon, Sep 14, 2015 at 10:22 PM, Ingo Molnar wrote: > > I think this should be a compiletime_warning() - that will be visible enough. So the problem with this is that by now most kernel developers are on 64-bit. And that "sizeof(typeof(x)) > sizeof(long))" would effectively never trigger on

Re: [PATCH 10/39] atm: he: drop null test before destroy functions

2015-09-15 Thread David Miller
From: Julia Lawall Date: Sun, 13 Sep 2015 14:15:03 +0200 > Remove unneeded NULL test. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ expression x; @@ > -if (x != NULL) > \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); >

Re: [PATCH 25/39] net: core: drop null test before destroy functions

2015-09-15 Thread David Miller
From: Julia Lawall Date: Sun, 13 Sep 2015 14:15:18 +0200 > Remove unneeded NULL test. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ expression x; @@ > -if (x != NULL) { > \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x);

Re: [PATCH 34/39] dccp: drop null test before destroy functions

2015-09-15 Thread David Miller
From: Julia Lawall Date: Sun, 13 Sep 2015 14:15:27 +0200 > Remove unneeded NULL test. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x; > @@ > > -if (x != NULL) >

Re: [RFC][PATCH 0/5] Fixes for abs() usage on 64bit values

2015-09-15 Thread Linus Torvalds
On Mon, Sep 14, 2015 at 10:20 PM, Ingo Molnar wrote: > > Linus, any preferences? I like the "auto-expand to 64-bit when necessary", but yes, that thing needs to continue to use a signed type. Using __builtin_choose_expr() would seem to be the right thing to do (not Andrew's version that makes

Re: [PATCH v2 1/3] net: irda: pxaficp_ir: use sched_clock() for time management

2015-09-15 Thread David Miller
From: Robert Jarzmik Date: Sat, 12 Sep 2015 13:45:22 +0200 > Instead of using directly the OS timer through direct register access, > use the standard sched_clock(), which will end up in OSCR reading > anyway. > > This is a first step for direct access register removal and machine > specific

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:28:11PM -0400, Tejun Heo wrote: > Hello, > > On Tue, Sep 15, 2015 at 02:38:30PM -0700, Paul E. McKenney wrote: > > I did take a shot at adding the rcu_sync stuff during this past merge > > window, but it did not converge quickly enough to make it. It looks > > quite

Re: [PATCH v2] ARM: dts: Fix LEDs on exynos5422-odroidxu3

2015-09-15 Thread Kukjin Kim
On 09/13/15 18:32, Krzysztof Kozlowski wrote: > The LEDs on Odroid XU3 family boards could not properly probe because PWM > outputs were reduced only to PWM for fan. Fix it for Odroid XU3 and > XU3-Lite boards by switching to usage of all 4 outputs (although the PWM > for MIPI probably is

RE: [PATCH v2 00/12] New paravirtual PCI front-end for Hyper-V VMs

2015-09-15 Thread Jake Oshins
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Tuesday, September 15, 2015 2:57 AM > To: Jake Oshins ; gre...@linuxfoundation.org; KY > Srinivasan ; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; >

Re: [PATCH 1/5 v2] mm/memblock: Introduce memblock_first_region_size() helper

2015-09-15 Thread Andrew Morton
On Tue, 1 Sep 2015 20:27:11 +0600 Alexander Kuleshov wrote: > Some architectures (like s390, microblaze and etc...) require size > of the first memory region. This patch provides new > memblock_first_region_size() > helper for this case. > > ... > > +phys_addr_t __init_memblock

RE: [PATCH v2 06/12] drivers:hv: Export do_hypercall()

2015-09-15 Thread Jake Oshins
> > --- > > @@ -91,7 +91,7 @@ static int query_hypervisor_info(void) > > /* > > * do_hypercall- Invoke the specified hypercall > > */ > > -static u64 do_hypercall(u64 control, void *input, void *output) > > +u64 do_hypercall(u64 control, void *input, void *output) > > do_hypercall() is not

Re: [PATCH v2] zram: introduce comp algorithm fallback functionality

2015-09-15 Thread Minchan Kim
Hello Andrew, On Tue, Sep 15, 2015 at 04:07:00PM -0700, Andrew Morton wrote: > On Thu, 10 Sep 2015 14:03:51 +0900 Minchan Kim wrote: > > > On Tue, Sep 08, 2015 at 07:42:56PM +0100, Luis Henriques wrote: > > > When the user supplies an unsupported compression algorithm, keep the > > > previously

RE: [PATCH v2 06/12] drivers:hv: Export do_hypercall()

2015-09-15 Thread KY Srinivasan
> -Original Message- > From: ja...@microsoft.com [mailto:ja...@microsoft.com] > Sent: Thursday, September 10, 2015 5:01 PM > To: gre...@linuxfoundation.org; KY Srinivasan ; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com;

Re: [PATCH] net: smc91x: convert pxa dma to dmaengine

2015-09-15 Thread David Miller
From: Robert Jarzmik Date: Thu, 10 Sep 2015 21:26:04 +0200 > Convert the dma transfers to be dmaengine based, now pxa has a dmaengine > slave driver. This makes this driver a bit more PXA agnostic. > > The driver was tested on pxa27x (mainstone) and pxa310 (zylonite), > ie. only pxa platforms.

[PATCH 5/5] hv: vss: use wrappers to propagate state

2015-09-15 Thread K. Y. Srinivasan
From: Olaf Hering The "state" is used by several threads of execution. Propagate the state to make changes visible. Also propagate context change in vss_on_msg. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c | 37

[PATCH 1/5] Drivers: hv: vmbus: fix init_vp_index() for reloading hv_netvsc

2015-09-15 Thread K. Y. Srinivasan
From: Dexuan Cui This fixes the recent commit 3b71107d73b16074afa7658f3f0fcf837aabfe24: Drivers: hv: vmbus: Further improve CPU affiliation logic Without the fix, reloading hv_netvsc hangs the guest. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |

[PATCH 2/5] hv: add helpers to handle hv_util device state

2015-09-15 Thread K. Y. Srinivasan
From: Olaf Hering The callbacks in kvp, vss and fcopy code are called both from the main thread as well as from interrupt context. If a state change is done by the main thread it is not immediately seen by the interrupt. As a result the state machine gets out of sync. Force propagation of state

[PATCH 4/5] hv: kvp: use wrappers to propaigate state

2015-09-15 Thread K. Y. Srinivasan
From: Olaf Hering The "state" is used by several threads of execution. Propagate the state to make changes visible. Also propagate context change in kvp_on_msg. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_kvp.c | 39 +--

[PATCH 0/5] Drivers: hv: Miscellaneous fixes

2015-09-15 Thread K. Y. Srinivasan
The Copy-VMFile cmdlet on the host may fail because the guest fcopy driver state machine gets out of sync. This happens because the ->state and ->context variables are accessed by the main thread and from interrupt context. If an interrupt happens between fcopy_respond_to_host and hv_poll_channel

[PATCH] c6x: Use generic clkdev.h header

2015-09-15 Thread Stephen Boyd
The c6x clkdev.h header is the same as the asm-generic header, so just use the asm-generic one. Signed-off-by: Stephen Boyd --- arch/c6x/include/asm/Kbuild | 1 + arch/c6x/include/asm/clkdev.h | 22 -- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644

[PATCH] staging: wlan-ng: prism2fw: coding style: Fixed too long lines.

2015-09-15 Thread Marcos Canán
This is a patch to the prism2fw.c file that fixes too long lines. Signed-off-by: Marcos Canán --- drivers/staging/wlan-ng/prism2fw.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c index

[PATCH] blackfin: Use generic clkdev.h header

2015-09-15 Thread Stephen Boyd
The blackfin clkdev.h header is the same as the asm-generic header, so just use the asm-generic one. Signed-off-by: Stephen Boyd --- arch/blackfin/include/asm/Kbuild | 1 + arch/blackfin/include/asm/clkdev.h | 16 2 files changed, 1 insertion(+), 16 deletions(-) delete mode

Re: [PATCH v2] zram: introduce comp algorithm fallback functionality

2015-09-15 Thread Andrew Morton
On Thu, 10 Sep 2015 14:03:51 +0900 Minchan Kim wrote: > On Tue, Sep 08, 2015 at 07:42:56PM +0100, Luis Henriques wrote: > > When the user supplies an unsupported compression algorithm, keep the > > previously selected one (knowingly supported) or the default one (if the > > compression algorithm

Re: [PATCH 0/3] Add __ioread32_copy() and use it

2015-09-15 Thread Andrew Morton
On Tue, 15 Sep 2015 12:41:26 -0700 Stephen Boyd wrote: > The SMD driver is reading and writing chunks of data to iomem, > and there's an __iowrite32_copy() function for the writing part, but > no __ioread32_copy() function for the reading part. This series > adds __ioread32_copy() and uses it in

Re: Linux 4.3-rc1 build error on CentOS 5.11 "scripts/sign-file.c:23:25: fatal error: openssl/cms.h: No such file or directory"

2015-09-15 Thread David Howells
Vinson Lee wrote: > This patch results in this build error on CentOS 5.11. > > HOSTCC scripts/sign-file > scripts/sign-file.c: In function ‘main’: > scripts/sign-file.c:255:23: error: ‘PKCS7_PARTIAL’ undeclared (first > use in this function) >PKCS7_NOCERTS | PKCS7_PARTIAL |

Re: [RFC][PATCH 0/5] Fixes for abs() usage on 64bit values

2015-09-15 Thread Michal Nazarewicz
On Tue, Sep 15 2015, Andrew Morton wrote: > On Mon, 14 Sep 2015 23:46:32 -0400 Tejun Heo wrote: > >> Anyways, let's please get abs() working for all types, one way or the >> other. > > That would be by far the best solution, of course. > > This seems to work OK: > > --- a/include/linux/kernel.h~a

Re: [PATCH v5 2/5] dt/bindings: add bindings for optee

2015-09-15 Thread Rob Herring
On 08/19/2015 03:40 AM, Jens Wiklander wrote: > Introduces optee prefix and adds bindings for ARM TrustZone based OP-TEE > implementation. > > Signed-off-by: Jens Wiklander > --- > Documentation/devicetree/bindings/optee/optee.txt | 17 + How about bindings/arm/firmware/...

Re: [PATCH v3 1/2] ARM: dts: Split audio configuration to separateexynos5422-odroidxu3-audio

2015-09-15 Thread Kukjin Kim
On 09/14/15 09:47, Krzysztof Kozlowski wrote: > The Odroid XU4 board does not have audio codec so before adding DTS for > new board split the audio codec to separate DTSI file. Include the audio codec > DTSI in Odroid XU3 and XU3-Lite boards. > > Signed-off-by: Krzysztof Kozlowski > Reviewed-by:

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 Tejun Heo
Hello, On Tue, Sep 15, 2015 at 02:38:30PM -0700, Paul E. McKenney wrote: > I did take a shot at adding the rcu_sync stuff during this past merge > window, but it did not converge quickly enough to make it. It looks > quite good for the next merge window. There have been changes in most > of the

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Javier Martinez Canillas
Hello Emilio, On Tue, Sep 15, 2015 at 10:24 PM, Emilio López wrote: [snip] > + > + params = (struct ec_params_vbnvcontext *)msg->data; > + params->op = EC_VBNV_CONTEXT_OP_READ; > + > + msg->version = EC_VER_VBNV_CONTEXT; > + msg->command =

Re: [PATCH 6/8] mmc: dw_mmc: Generic MMC tuning with the clock phase framework

2015-09-15 Thread Heiko Stübner
Hi, Am Dienstag, 15. September 2015, 17:25:38 schrieb Jaehoon Chung: > On 09/01/2015 03:24 AM, Heiko Stuebner wrote: > > From: Alexandru M Stan > > > > This algorithm will try 1 degree increments, since there's no way to tell > > what resolution the underlying phase code uses. As an added

Re: [PATCH v2] net: stmmac: Use msleep rather then udelay for reset delay

2015-09-15 Thread David Miller
From: Sjoerd Simons Date: Fri, 11 Sep 2015 22:25:48 +0200 > The reset delays used for stmmac are in the order of 10ms to 1 second, > which is far too long for udelay usage, so switch to using msleep. > > Practically this fixes the PHY not being reliably detected in some cases > as udelay

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

2015-09-15 Thread Andrew Morton
On Tue, 15 Sep 2015 16:37:24 +0200 Andi Kleen wrote: > > This patch adds filemap_fdatawait_keep_errors() for call sites where > > writeback error is not handled so that they don't clear error status. > > Patch looks good to me. > Me too. It would be nice to capture the test case(s)

Re: Linux 4.3-rc1 build error on CentOS 5.11 "scripts/sign-file.c:23:25: fatal error: openssl/cms.h: No such file or directory"

2015-09-15 Thread Vinson Lee
On Tue, Sep 15, 2015 at 6:40 AM, David Howells wrote: > Does this patch fix the problem? > > David > --- > commit 8c8ed9de80bc1bbfd0f1e9a018a0feffcf3c11f8 > Author: David Howells > Date: Tue Sep 15 13:57:08 2015 +0100 > > MODSIGN: Change from CMS to PKCS#7 signing if the openssl is too old

Re: First kernel patch (optimization)

2015-09-15 Thread Alexander Duyck
On 09/15/2015 12:52 PM, Eric Curtin wrote: My first kernel patch, hope I did everything correctly! Instead of calling strlen on every iteration of the for loop, just call it once instead and store in a variable. Signed-off-by: Eric Curtin diff --git a/tools/usb/usbip/src/usbip_detach.c

Re: unpinning an unpinned lock

2015-09-15 Thread Paul E. McKenney
On Mon, Sep 14, 2015 at 04:22:53PM -0700, Tim Spriggs wrote: > Hello! Adding Sasha and LKML on CC. > I noticed some traffic at > http://www.gossamer-threads.com/lists/linux/kernel/2229593 that you three > generated. I’ve run into a similar issue and I’m wondering if I can > contribute

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 05:26:22PM -0400, Tejun Heo wrote: > Hello, > > On Tue, Sep 15, 2015 at 11:11:45PM +0200, Christian Borntraeger wrote: > > > In fact, I would say that any userspace-controlled call to *_expedited() > > > is a bug waiting to happen and a bad idea---because userspace can,

Re: v2 of seccomp filter c/r patches

2015-09-15 Thread Tycho Andersen
Hi Andy, On Tue, Sep 15, 2015 at 01:01:23PM -0700, Andy Lutomirski wrote: > On Tue, Sep 15, 2015 at 11:26 AM, Tycho Andersen > wrote: > > Hi Andy, > > > > On Tue, Sep 15, 2015 at 11:13:51AM -0700, Andy Lutomirski wrote: > >> On Tue, Sep 15, 2015 at 9:07 AM, Tycho Andersen > >> wrote: > >> > Hi

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 Tejun Heo
Hello, On Tue, Sep 15, 2015 at 11:11:45PM +0200, Christian Borntraeger wrote: > > In fact, I would say that any userspace-controlled call to *_expedited() > > is a bug waiting to happen and a bad idea---because userspace can, with > > little effort, end up calling it in a loop. > > Right. This

Re: [PATCH block/for-linus] block: don't release bdi while request_queue has live references

2015-09-15 Thread Jan Kara
On Tue 08-09-15 12:20:22, Tejun Heo wrote: > bdi's are initialized in two steps, bdi_init() and bdi_register(), but > destroyed in a single step by bdi_destroy() which, for a bdi embedded > in a request_queue, is called during blk_cleanup_queue() which makes > the queue invisible and starts the

Re: [GIT PULL] Ext3 removal, quota & udf fixes

2015-09-15 Thread Jan Kara
On Wed 02-09-15 16:47:24, Linus Torvalds wrote: > On Wed, Sep 2, 2015 at 11:45 AM, Darrick J. Wong > wrote: > > On Wed, Sep 02, 2015 at 05:52:01PM +0100, Mel Gorman wrote: > >> On the flip side, there does not appear to be any good reason for > >> keeping the ext3 driver around because if there

Re: [RFC][PATCH 0/5] Fixes for abs() usage on 64bit values

2015-09-15 Thread Andrew Morton
On Mon, 14 Sep 2015 23:46:32 -0400 Tejun Heo wrote: > Anyways, let's please get abs() working for all types, one way or the > other. That would be by far the best solution, of course. This seems to work OK: --- a/include/linux/kernel.h~a +++ a/include/linux/kernel.h @@ -207,8 +207,11 @@

Re: [PATCH v1 1/2] soc: ti: display firmware file name as part of boot log

2015-09-15 Thread santosh shilimkar
On 9/15/2015 11:14 AM, Murali Karicheri wrote: On 09/09/2015 12:38 PM, Murali Karicheri wrote: On 09/04/2015 11:53 PM, santosh.shilim...@oracle.com wrote: On 9/4/15 5:46 PM, Murali Karicheri wrote: To help the user, print the PDSP file name as part of knav_queue_load_pdsp(). This will be

Re: [PATCH 5/7] f2fs: enhance multithread dio write performance

2015-09-15 Thread Jaegeuk Kim
Hi Chao, On Fri, Sep 11, 2015 at 02:41:53PM +0800, Chao Yu wrote: > When dio writes perform concurrently, our performace will be low because of > Thread A's allocation of multi continuous blocks will be break by Thread B, > there are two cases as below: > - In Thread B, we may change current

Re: [PATCH 09/13] Move bp_type_idx to kernel/event/hw_breakpoint.c

2015-09-15 Thread Arnd Bergmann
On Tuesday 15 September 2015 10:06:07 Peter Zijlstra wrote: > > diff --git a/include/uapi/linux/hw_breakpoint.h > > b/include/uapi/linux/hw_breakpoint.h > > index b04000a2296a..7a6a5a7f9511 100644 > > --- a/include/uapi/linux/hw_breakpoint.h > > +++ b/include/uapi/linux/hw_breakpoint.h > > @@

Re: [PATCH v3 0/5] ACPI: Provide better MADT subtable sanity checks

2015-09-15 Thread Al Stone
On 09/09/2015 03:09 PM, Al Stone wrote: > Currently, the BAD_MADT_ENTRY macro is used to do a very simple sanity > check on the various subtables that are defined for the MADT. The check > compares the size of the subtable data structure as defined by ACPICA to > the length entry in the subtable.

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 Christian Borntraeger
Am 15.09.2015 um 18:42 schrieb 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

[PATCH] staging: fsl-mc: up-rev version of MC interface code

2015-09-15 Thread J. German Rivera
The DPAA2 management complex has a versioned binary interface that has to be kept in sync with the DPAA2 drivers. This patch uprevs the APIs that build MC commands and parse results. This uprev is needed to support object interrupts. MC binary interface changes -overall version from 6.0 to 8.0

Re: [PATCH v5 1/5] arm/arm64: add smccc ARCH32

2015-09-15 Thread Jens Wiklander
On Tue, Sep 15, 2015 at 07:26:45PM +0100, Will Deacon wrote: > On Mon, Sep 14, 2015 at 09:30:30AM +0100, Jens Wiklander wrote: > > On Fri, Aug 21, 2015 at 01:43:31PM +0200, Jens Wiklander wrote: > > > On Fri, Aug 21, 2015 at 10:24:30AM +0100, Will Deacon wrote: > > > > On Thu, Aug 20, 2015 at

Re: tools: usbip: detach: avoid calling strlen() at each iteration

2015-09-15 Thread Aaro Koskinen
Hi, On Tue, Sep 15, 2015 at 09:27:20PM +0100, Eric Curtin wrote: > Instead of calling strlen on every iteration of the for loop, just call it > once and cache the result in a temporary local variable which will be used > in the for loop instead. > > Signed-off-by: Eric Curtin > > diff --git

Re: [PATCH] x86: Wire up 32-bit direct socket calls

2015-09-15 Thread H. Peter Anvin
On 09/14/2015 06:35 AM, Ingo Molnar wrote: >> >> I missed sys_ipc entirely. >> >> Ingo, Thomas, want to just wire those up, too? I can send a patch >> next week, but it'll be as trivial as the socket one. > > Yeah, sure - split out system calls are so much better (and slightly faster) > than >

Re: [PATCH v4 7/7] power: bq27xxx_battery: Add interrupt handling support

2015-09-15 Thread Andrew F. Davis
On 09/15/2015 01:47 PM, Andreas Dannenberg wrote: On Mon, Sep 14, 2015 at 04:26:13PM -0500, Andrew F. Davis wrote: Some devices have a pin that can generate an interrupt when the battery's status changes. Add an interrupt handler to read the new battery status. Signed-off-by: Andrew F. Davis

Re: Request for submaintainer moderation: PFC pinctrl patches

2015-09-15 Thread Linus Walleij
On Fri, Sep 11, 2015 at 2:49 PM, Laurent Pinchart wrote: > The topic is on our agenda for a meeting on Monday, I believe we'll appoint > someone to submaintain the PFC patches and send you pull requests. How did it go? Linus -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 11/13] Always define MAX_RAW_MINORS as 65535 in userspace

2015-09-15 Thread H. Peter Anvin
On 09/14/2015 03:50 PM, Palmer Dabbelt wrote: > While I don't think this was ever meant to be exposed to userspace, if > anyone is using it then this will at least provide a correct (if > unlikely) definition. > > MAX_RAW_MINORS used to be used in the kernel, where it's been replaced > with

[PATCH 1/1] regulator: tps65218: Fix missing zero typo

2015-09-15 Thread Andrew F. Davis
Add missing zero to value. This will be needed when range checking is implemented. Signed-off-by: Andrew F. Davis --- drivers/regulator/tps65218-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps65218-regulator.c

Re: stmmac: improve logging

2015-09-15 Thread David Miller
From: LABBE Corentin Date: Thu, 10 Sep 2015 14:37:28 +0200 > This patch series try to improve logging of the stmmac driver. > > Changes since v1 > - Use netdev_xxx instead of dev_xxx > - Use netif_xxx instead of "if (netif_msg_type) dev_xxx" This series does not apply cleanly to the current

Re: [Y2038] [PATCH 1/7] [media] dvb: use ktime_t for internal timeout

2015-09-15 Thread Arnd Bergmann
On Tuesday 15 September 2015 19:55:35 Andreas Oberritter wrote: > > /* show speed every SPEED_PKTS_INTERVAL packets */ > > if (!(demux->speed_pkts_cnt % SPEED_PKTS_INTERVAL)) { > > - cur_time = current_kernel_time(); > > + cur_time =

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

2015-09-15 Thread Arnd Bergmann
On Tuesday 15 September 2015 18:32:36 Hans Verkuil wrote: > > > > - ktime_get_ts(); > > + ktime_get_ts64(); > > + vts.tv_sec = timestamp.tv_sec; > > + vts.tv_nsec = timestamp.tv_nsec; > > I prefer to take this opportunity to create a v4l2_get_timespec helper > function, just

tools: usbip: detach: avoid calling strlen() at each iteration

2015-09-15 Thread Eric Curtin
Instead of calling strlen on every iteration of the for loop, just call it once and cache the result in a temporary local variable which will be used in the for loop instead. Signed-off-by: Eric Curtin diff --git a/tools/usb/usbip/src/usbip_detach.c b/tools/usb/usbip/src/usbip_detach.c index

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

2015-09-15 Thread Arnd Bergmann
On Tuesday 15 September 2015 18:27:19 Hans Verkuil wrote: > 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,

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Emilio López
Hi Javier, On 15/09/15 16:43, Javier Martinez Canillas wrote: Hello Emilio, On Tue, Sep 15, 2015 at 9:16 PM, Emilio López wrote: [snip] obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o obj-$(CONFIG_CHROMEOS_PSTORE) += chromeos_pstore.o -cros_ec_devs-objs :=

Net: core dev_ioctl.c coding style fixes

2015-09-15 Thread Janusz Wolak
>From 089ca09ee90eb10f546bfb5bb80bca18616e9721 Mon Sep 17 00:00:00 2001 From: Janusz Wolak Date: Tue, 15 Sep 2015 21:23:52 +0200 Subject: [PATCH] Remove missing blank lines after declarations, remove spaces before tabs, remove lines over 80, insert * on subsequent lines, insert trailing */ on

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Greg Kroah-Hartman
On Tue, Sep 15, 2015 at 09:43:35PM +0200, Javier Martinez Canillas wrote: > Hello Emilio, > > On Tue, Sep 15, 2015 at 9:16 PM, Emilio López > wrote: > > [snip] > > >>> > >>> obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o > >>> obj-$(CONFIG_CHROMEOS_PSTORE) += chromeos_pstore.o > >>>

Re: First kernel patch (optimization)

2015-09-15 Thread Felipe Balbi
On Tue, Sep 15, 2015 at 08:53:28PM +0100, Eric Curtin wrote: > My first kernel patch, hope I did everything correctly! Instead of calling > strlen on every iteration of the for loop, just call it once instead and > store in a variable. this should be broken up at 72 characters. Also, your

Re: [RFC v5 2/3] mm: make optimistic check for swapin readahead

2015-09-15 Thread Ebru Akagunduz
On Mon, Sep 14, 2015 at 02:33:55PM -0700, Andrew Morton wrote: > On Mon, 14 Sep 2015 22:31:44 +0300 Ebru Akagunduz > wrote: > > > This patch introduces new sysfs integer knob > > /sys/kernel/mm/transparent_hugepage/khugepaged/max_ptes_swap > > which makes optimistic check for swapin readahead

Re: v2 of seccomp filter c/r patches

2015-09-15 Thread Andy Lutomirski
On Tue, Sep 15, 2015 at 11:26 AM, Tycho Andersen wrote: > Hi Andy, > > On Tue, Sep 15, 2015 at 11:13:51AM -0700, Andy Lutomirski wrote: >> On Tue, Sep 15, 2015 at 9:07 AM, Tycho Andersen >> wrote: >> > Hi Andy, >> > >> > On Mon, Sep 14, 2015 at 10:52:46AM -0700, Andy Lutomirski wrote: >> >> >>

<    1   2   3   4   5   6   7   8   9   10   >