Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 08:08:45AM -0400, Tejun Heo wrote: > On Thu, Jul 14, 2016 at 02:04:28PM +0200, Peter Zijlstra wrote: > > > I think it probably makes sense to make this the default on !RT at > > > least with a separate patch w/o stable cc'd. While most use cases > > > will be fine with the

Re: [PATCH] radix-tree: fix radix_tree_iter_retry() for tagged iterators.

2016-07-14 Thread Konstantin Khlebnikov
ACK Originally retry could happen only at index 0 when first indirect node installed: in this case tags holds only 1 bit. Seems like now this happends at any index. On Thu, Jul 14, 2016 at 2:19 PM, Andrey Ryabinin wrote: > radix_tree_iter_retry() resets slot to NULL, but it doesn't reset tags. >

[PATCH 3/4] media: Add Mediatek MDP Driver

2016-07-14 Thread Minghsiu Tsai
Add MDP driver for MT8173 Signed-off-by: Minghsiu Tsai --- drivers/media/platform/Kconfig| 16 + drivers/media/platform/Makefile |2 + drivers/media/platform/mtk-mdp/Makefile |9 + drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 159 +++ drivers/med

[PATCH 1/4] VPU: mediatek: Add mdp support

2016-07-14 Thread Minghsiu Tsai
VPU driver add mdp support Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-vpu/mtk_vpu.h |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.h b/drivers/media/platform/mtk-vpu/mtk_vpu.h index f457479..291ae46 100644 --- a/drivers/media/

[PATCH 4/4] arm64: dts: mediatek: Add MDP for MT8173

2016-07-14 Thread Minghsiu Tsai
Add MDP node for MT8173 Signed-off-by: Minghsiu Tsai --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 80 ++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 77b8c4e..8e1b85d 1006

[PATCH 0/4] Add MT8173 MDP Driver

2016-07-14 Thread Minghsiu Tsai
== Introduction == The purpose of this series is to add the driver for Media Data Path HW embedded in the Mediatek's MT8173 SoC. MDP is used for scaling and color space conversion. It could convert V4L2_PIX_FMT_MT21 to V4L2_PIX_FMT_NV12M or V4L2_PIX_FMT_YUV420M. NV12M/

[PATCH 2/4] dt-bindings: Add a binding for Mediatek MDP

2016-07-14 Thread Minghsiu Tsai
Add a DT binding documentation of MDP for the MT8173 SoC from Mediatek Signed-off-by: Minghsiu Tsai --- .../devicetree/bindings/media/mediatek-mdp.txt | 92 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek-mdp.txt d

[PULL REQUEST] i2c for v4.7

2016-07-14 Thread Wolfram Sang
Linus, I thought I sent you this pull request last week already, but it seems this travelling to Japan made me mix things up sadly. Please pull these 4 driver bugfixes for the I2C subsystem. Thanks, Wolfram The following changes since commit 5edb56491d4812c42175980759da53388e5d86f5: Lin

Re: [PATCH] ovl: fix link error without POSIX ACL

2016-07-14 Thread Miklos Szeredi
On Thu, Jul 14, 2016 at 11:54 AM, Arnd Bergmann wrote: > The latest fix for ACL on overlayfs introduced a link error: > > fs/built-in.o: In function `ovl_posix_acl_xattr_set': > file.c:(.text+0x6b320): undefined reference to `posix_acl_from_xattr' > > posix_acl_from_xattr doesn't have a 'static in

Re: [PATCH 25/34] mm, vmscan: avoid passing in classzone_idx unnecessarily to compaction_ready

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:35 AM, Mel Gorman wrote: The scan_control structure has enough information available for compaction_ready() to make a decision. The classzone_idx manipulations in shrink_zones() are no longer necessary as the highest populated zone is no longer used to determine if shrink_slab sh

Re: [PATCH] sched/fair: do not announce throttled next buddy in dequeue_task_fair

2016-07-14 Thread Wanpeng Li
2016-07-14 1:06 GMT+08:00 : > Wanpeng Li writes: > >> 2016-07-13 1:25 GMT+08:00 : >>> Konstantin Khlebnikov writes: >>> On 11.07.2016 15:12, Xunlei Pang wrote: > On 2016/07/11 at 17:54, Wanpeng Li wrote: >> Hi Konstantin, Xunlei, >> 2016-07-11 16:42 GMT+08:00 Xunlei Pang :

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 07:20:46AM -0400, Tejun Heo wrote: > On Thu, Jul 14, 2016 at 08:49:56AM +0200, Peter Zijlstra wrote: > > So the immediate problem with lg style locks is that the 'local' lock > > will not stay local since these are preemptible locks we can get > > migrations etc.. > > > >

Loan

2016-07-14 Thread International Loan
Do You Need A Loan Of Any Kind ? If Yes Email Now For More Info ..

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Tejun Heo
On Thu, Jul 14, 2016 at 02:04:28PM +0200, Peter Zijlstra wrote: > > I think it probably makes sense to make this the default on !RT at > > least with a separate patch w/o stable cc'd. While most use cases > > will be fine with the latency on write path, it also means that the > > reader side is bl

[PATCH -next] mtd: nand: omap2: fix return value check in omap_nand_probe()

2016-07-14 Thread weiyj_lk
From: Wei Yongjun In case of error, the function dma_request_chan() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: aa7abd312c11 ('mtd: nand: omap2: Support parsing dma channel information from DT') Signed-off-by: Wei Yon

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 07:35:05AM -0400, Tejun Heo wrote: > Hello, > > On Wed, Jul 13, 2016 at 04:04:04PM -0700, Paul E. McKenney wrote: > > commit b4edebb8f5664a3a51be1e3ff3d7f1cb2d3d5c88 > > Author: Paul E. McKenney > > Date: Wed Jul 13 15:13:31 2016 -0700 > > > > rcu: Provide RCUSYNC_E

Re: [PATCH] wlcore/wl18xx: mesh: added initial mesh support for wl8

2016-07-14 Thread Kalle Valo
"Machani, Yaniv" writes: > On Tue, Jun 28, 2016 at 13:41:35, Machani, Yaniv wrote: >> Guy; Johannes Berg; Arik Nemtsov; linux-wirel...@vger.kernel.org; >> net...@vger.kernel.org >> Subject: [PATCH] wlcore/wl18xx: mesh: added initial mesh support for >> wl8 >> >> From: Maital Hahn >> >> 1. Ad

Re: [patch V2 43/67] leds/trigger/cpu: Convert to hotplug state machine

2016-07-14 Thread Jacek Anaszewski
On 07/14/2016 01:33 PM, Thomas Gleixner wrote: On Thu, 14 Jul 2016, Jacek Anaszewski wrote: On 07/14/2016 11:41 AM, Peter Zijlstra wrote: On Thu, Jul 14, 2016 at 10:10:55AM +0200, Jacek Anaszewski wrote: On 07/14/2016 09:47 AM, Ingo Molnar wrote: * Jacek Anaszewski wrote: @@ -133,7 +125,1

[PATCH -resend] pps: do not crash when failed to register

2016-07-14 Thread Jiri Slaby
With this command sequence: modprobe plip modprobe pps_parport rmmod pps_parport the partport_pps modules causes this crash: === BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] parport_detach+0x1d/0x60 [pps_parport] Oops: [#1] SMP ... Call Trace: [] parpo

Re: [PATCH kernel] powerpc/mm/iommu: Put pages on process exit

2016-07-14 Thread Alexey Kardashevskiy
On 14/07/16 20:12, Balbir Singh wrote: > On Thu, Jul 14, 2016 at 3:16 PM, Alexey Kardashevskiy wrote: >> At the moment VFIO IOMMU SPAPR v2 driver pins all guest RAM pages when >> the userspace starts using VFIO. When the userspace process finishes, >> all the pinned pages need to be put; this is d

Re: [RFC PATCH] dcache: give a chance to yield in shrink_dentry_list

2016-07-14 Thread Nikolay Borisov
On 07/14/2016 02:12 PM, Biscuit Ninja wrote: >> A softlockup in shrink_dentry_list when called from shrink_dcache_sb >> was observed on a very busy server. It's possible that the list >> passed to shrink_dentry_list is so big that it takes a while to >> dispose of all entries. Adding a simple con

Re: [PATCH v2 1/7] lib/dlock-list: Distributed and lock-protected lists

2016-07-14 Thread Tejun Heo
Hello, On Wed, Jul 13, 2016 at 10:54:19PM -0400, Waiman Long wrote: > On 07/13/2016 12:08 PM, Tejun Heo wrote: > > On Mon, Jul 11, 2016 at 01:32:06PM -0400, Waiman Long wrote: > > ... > > > A new header file include/linux/dlock-list.h will be added with the > > Heh, I think perpcu_list was the bet

[PATCH] ixgbe: remove redundant check on ret_val

2016-07-14 Thread Colin King
From: Colin Ian King The last check on ret_val is redundant since ret_val has not changed since the previous check, so remove it as it is extraneous. Signed-off-by: Colin Ian King --- drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/n

[PATCH] mfd: RK808: Fetch PMIC variant from chip id register

2016-07-14 Thread Wadim Egorov
Add and use the chip id registers to determine the PMIC variant. Signed-off-by: Wadim Egorov --- This patch is based on top of [v6,1/5] mfd: RK808: Add RK818 support (https://patchwork.kernel.org/patch/9172223/) --- drivers/mfd/rk808.c | 17 + include/linux/mfd/rk808.h |

[patch 1/2] drivers/virt: fix the error handling in ioctl_dtprop()

2016-07-14 Thread Dan Carpenter
If strndup_user() user fails then it returns an error pointer and we pass that to kfree() which causes an oops. I've shifted this code around so that we keep only free things which have been allocated. We don't need to initialize the pointers at the start any more. We can also move the check for

[PATCH v3] locking/pvqspinlock: restore/set vcpu_hashed state after failing adaptive locking spinning

2016-07-14 Thread Wanpeng Li
From: Wanpeng Li When the lock holder vCPU is racing with the queue head: CPU 0 (lock holder)CPU 1 (queue head) ==== spin_lock(); spin_lock(); pv_kick_node():pv_wait_head_or_lock(): if (!lp) {

Re: [patch V2 43/67] leds/trigger/cpu: Convert to hotplug state machine

2016-07-14 Thread Thomas Gleixner
On Thu, 14 Jul 2016, Jacek Anaszewski wrote: > On 07/14/2016 11:41 AM, Peter Zijlstra wrote: > > On Thu, Jul 14, 2016 at 10:10:55AM +0200, Jacek Anaszewski wrote: > > > On 07/14/2016 09:47 AM, Ingo Molnar wrote: > > > > > > > > * Jacek Anaszewski wrote: > > > > > > > > > > @@ -133,7 +125,13 @@ s

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Tejun Heo
Hello, On Wed, Jul 13, 2016 at 04:04:04PM -0700, Paul E. McKenney wrote: > commit b4edebb8f5664a3a51be1e3ff3d7f1cb2d3d5c88 > Author: Paul E. McKenney > Date: Wed Jul 13 15:13:31 2016 -0700 > > rcu: Provide RCUSYNC_EXPEDITE option for rcusync.expedited default > > This commit provi

[PATCH v3 2/8] thunderbolt: Updating device IDs

2016-07-14 Thread Amir Levy
Adding the new Thunderbolt(TM) device IDs to the list. Signed-off-by: Amir Levy --- include/linux/pci_ids.h | 44 ++-- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index c58752f..2d4cc50

[PATCH v3 6/8] thunderbolt: Networking state machine

2016-07-14 Thread Amir Levy
Negotiation states that a peer goes through in order to establish the communication with the second peer. This includes communication with upper layer and additional infrastructure support to communicate with the second peer through ICM. Signed-off-by: Amir Levy --- drivers/thunderbolt/icm/Makef

[PATCH v3 3/8] thunderbolt: Updating the register definitions

2016-07-14 Thread Amir Levy
Adding more Thunderbolt(TM) register definitions and some helper macros. Signed-off-by: Amir Levy --- drivers/thunderbolt/nhi_regs.h | 109 + 1 file changed, 109 insertions(+) diff --git a/drivers/thunderbolt/nhi_regs.h b/drivers/thunderbolt/nhi_regs.h in

[PATCH v10 2/4] CMDQ: Mediatek CMDQ driver

2016-07-14 Thread HS Liao
This patch is first version of Mediatek Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement. Currently, CMDQ only su

[PATCH v3 0/8] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-14 Thread Amir Levy
This is version 3 of Thunderbolt(TM) driver for non-Apple hardware. Changes since v2: - Moved ICM code to subdirectory - thunderbolt/icm These patches were pushed to GitHub where they can be reviewed more comfortably with green/red highlighting: https://github.com/01org/thunderbolt-softw

[PATCH v10 0/4] Mediatek MT8173 CMDQ support

2016-07-14 Thread HS Liao
Hi, This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement. These patches have a build depend

[PATCH v10 3/4] arm64: dts: mt8173: Add GCE node

2016-07-14 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 05f8

[PATCH v10 4/4] CMDQ: save more energy in idle

2016-07-14 Thread HS Liao
Use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 55 +++-- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b/driv

[patch] netiucv: silence an underflow warning

2016-07-14 Thread Dan Carpenter
I haven't looked at the implications but we accidentally allow bs1 to be negative. It makes my static checker complain. Signed-off-by: Dan Carpenter diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c index b0e8ffd..85a5744 100644 --- a/drivers/s390/net/netiucv.c +++ b/drivers/

[PATCH v10 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-07-14 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 47 ++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/dev

[PATCH v3 5/8] thunderbolt: Communication with the ICM (firmware)

2016-07-14 Thread Amir Levy
Firmware-based (a.k.a ICM - Intel Connection Manager) controller is used for establishing and maintaining the Thunderbolt Networking connection. We need to be able to communicate with it. Signed-off-by: Amir Levy --- drivers/thunderbolt/Makefile |1 + drivers/thunderbolt/icm/Makefile |

[PATCH v3 8/8] thunderbolt: Networking doc

2016-07-14 Thread Amir Levy
Adding Thunderbolt(TM) networking documentation. Signed-off-by: Amir Levy --- Documentation/00-INDEX | 2 + Documentation/thunderbolt-networking.txt | 135 +++ 2 files changed, 137 insertions(+) create mode 100644 Documentation/thunderbolt-network

[PATCH v3 4/8] thunderbolt: Kconfig for Thunderbolt(TM) networking

2016-07-14 Thread Amir Levy
Updating the Kconfig Thunderbolt(TM) description. Signed-off-by: Amir Levy --- drivers/thunderbolt/Kconfig | 25 + drivers/thunderbolt/Makefile | 2 +- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/thunderbolt/Kconfig b/drivers/thunderbolt/Kcon

[PATCH v3 7/8] thunderbolt: Networking transmit and receive

2016-07-14 Thread Amir Levy
Handling the transmission to second peer and receiving from it. This includes communication with upper layer, the network stack and configuration of Thunderbolt(TM) HW. Signed-off-by: Amir Levy --- drivers/thunderbolt/icm/icm_nhi.c | 15 + drivers/thunderbolt/icm/net.c | 1475 +

Re: [PATCH v2] locking/pvqspinlock: restore/set vcpu_hashed state after failing adaptive locking spinning

2016-07-14 Thread Wanpeng Li
2016-07-14 19:26 GMT+08:00 Peter Zijlstra : > On Thu, Jul 14, 2016 at 04:15:56PM +0800, Wanpeng Li wrote: >> In this case, lock holder inserts the pv_node of queue head into the >> hash table and set _Q_SLOW_VAL unnecessary. This patch avoids it by >> restoring/setting vcpu_halted state after faili

[PATCH v3 1/8] thunderbolt: Macro rename

2016-07-14 Thread Amir Levy
This first patch updates the registers file to reflect that it isn't only for Cactus Ridge. No functional change intended. Signed-off-by: Amir Levy --- drivers/thunderbolt/nhi_regs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thunderbolt/nhi_regs.h b/driver

Re: [PATCH v2] locking/pvqspinlock: restore/set vcpu_hashed state after failing adaptive locking spinning

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 04:15:56PM +0800, Wanpeng Li wrote: > In this case, lock holder inserts the pv_node of queue head into the > hash table and set _Q_SLOW_VAL unnecessary. This patch avoids it by > restoring/setting vcpu_halted state after failing adaptive locking ^^

[patch] s390/smp: clean up a condition

2016-07-14 Thread Dan Carpenter
I can never remember precedence rules. Let's add some parenthesis so this code is more clear. Signed-off-by: Dan Carpenter --- The original code is correct right? We didn't intend to say: sclp_max = sclp.max_cores * (sclp_max ?: nr_cpu_ids); diff --git a/arch/s390/kernel/smp.c b/arch/

Re: [patch V2 43/67] leds/trigger/cpu: Convert to hotplug state machine

2016-07-14 Thread Jacek Anaszewski
On 07/14/2016 11:41 AM, Peter Zijlstra wrote: On Thu, Jul 14, 2016 at 10:10:55AM +0200, Jacek Anaszewski wrote: On 07/14/2016 09:47 AM, Ingo Molnar wrote: * Jacek Anaszewski wrote: @@ -133,7 +125,13 @@ static int __init ledtrig_cpu_init(void) } register_syscore_ops(&ledtrig_c

Re: [PATCH] iommu/iova: validate iova_domain input to put_iova_domain

2016-07-14 Thread Auger Eric
Hi Robin, Nate, On 14/07/2016 12:36, Robin Murphy wrote: > On 14/07/16 09:34, Joerg Roedel wrote: >> On Wed, Jul 13, 2016 at 02:49:32PM -0400, Nate Watterson wrote: >>> Passing a NULL or uninitialized iova_domain into put_iova_domain >>> will currently crash the kernel when the unconfigured iova_d

RE: [RFC PATCH] dcache: give a chance to yield in shrink_dentry_list

2016-07-14 Thread Biscuit Ninja
> A softlockup in shrink_dentry_list when called from shrink_dcache_sb > was observed on a very busy server. It's possible that the list > passed to shrink_dentry_list is so big that it takes a while to > dispose of all entries. Adding a simple cond_resched would give > the cpu a chance to do some

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Tejun Heo
On Thu, Jul 14, 2016 at 08:49:56AM +0200, Peter Zijlstra wrote: > On Wed, Jul 13, 2016 at 06:01:28PM -0400, Tejun Heo wrote: > > > Technically, I think the lglock approach would be better here given > > the combination of requirements; however, it's quite a bit more code > > which would likely req

Re: Page Allocation Failures/OOM with dm-crypt on software RAID10 (Intel Rapid Storage)

2016-07-14 Thread Tetsuo Handa
On 2016/07/13 22:47, Michal Hocko wrote: > On Wed 13-07-16 15:18:11, Matthias Dahl wrote: >> I tried to figure this out myself but >> couldn't find anything -- what does the number "-3" state? It is the >> position in some chain or has it a different meaning? > > $ git grep "kmem_cache_create.*bio

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-14 Thread Arnd Bergmann
On Thursday, July 14, 2016 4:52:29 PM CEST Wan Zongshun wrote: > > On 2016年07月12日 16:26, Arnd Bergmann wrote: > > On Tuesday, July 12, 2016 3:04:42 PM CEST Wan Zongshun wrote: > >>> > >>> Ideally, this should just go away once we use SPARSE_IRQ. > >> > >> This platform also can use SPARSE_IRQ? thi

Re: [patch] avr32: off by one in at32_init_pio()

2016-07-14 Thread Hans-Christian Noren Egtvedt
Around Wed 13 Jul 2016 13:08:55 +0300 or thereabout, Dan Carpenter wrote: > The pio_dev[] array has MAX_NR_PIO_DEVICES elements so the > should be >>=. So it should, no off by one error in the kernel anyway, since at32ap700x only probes 5 PIO instances. > Fixes: 5f97f7f9400d ('[PATCH] avr32 archi

Re: [PATCH 1/4] sm750fb/sm750_hw.c: corrected alignment

2016-07-14 Thread Stefan Wolz
Hello, i want to remind you about the patches I sent 3 weeks ago (June 23rd). I did not receive any response until now, so I'm wondering if the mails got lost or forgotten. If you didn't receive any or if something was wrong with them, please tell me. Awaiting your response, Stefan Wolz

Re: [PATCH 1/2][RFC v3] PM / hibernate: Introduce snapshot test mode for hibernation

2016-07-14 Thread Chen Yu
Please ignore this patch, will resend another version later. thanks! On 2016年07月14日 18:45, Chen Yu wrote: This mode is used to verify if the snapshot data written to the swap device can be successfully restored to the memory. It is useful to ease the debugging process on hibernation, since this

Re: System freezes after OOM

2016-07-14 Thread Tetsuo Handa
Michal Hocko wrote: > OK, this is the part I have missed. I didn't realize that the swapout > path, which is indeed PF_MEMALLOC, can get down to blk code which uses > mempools. A quick code travers shows that at least > make_request_fn = blk_queue_bio > blk_queue_bio > get_reque

Re: [dm-devel] System freezes after OOM

2016-07-14 Thread Ondrej Kozina
On 07/13/2016 05:02 PM, Mikulas Patocka wrote: On Wed, 13 Jul 2016, Michal Hocko wrote: On Tue 12-07-16 19:44:11, Mikulas Patocka wrote: The problem of swapping to dm-crypt is this. The free memory goes low, kswapd decides that some page should be swapped out. However, when you swap to an e

RE: [PATCH] mpt3sas: Fix panic when aer correct error occured

2016-07-14 Thread Chaitra Basappa
Hi, Please consider this patch as Acked-by: Chaitra P B Thanks, Chaitra -Original Message- From: Kefeng Wang [mailto:wangkefeng.w...@huawei.com] Sent: Tuesday, July 12, 2016 3:13 PM To: martin.peter...@oracle.com; suganath-prabu.subram...@broadcom.com; mpt-fusionlinux@broadcom.com

[patch] mtd: pmcmsp-flash: Allocating too much in init_msp_flash()

2016-07-14 Thread Dan Carpenter
There is a cut and paste issue here. The bug is that we are allocating more memory than necessary for msp_maps. We should be allocating enough space for a map_info struct (144 bytes) but we instead allocate enough for an mtd_info struct (1840 bytes). It's a small waste. The other part of this i

[PATCH 2/2][RFC v3] PM / Documentation: Add description for snapshot test mode

2016-07-14 Thread Chen Yu
Introduce snapshot test mode for hibernation debugging, and update the document accordingly. Signed-off-by: Chen Yu --- Documentation/power/basic-pm-debugging.txt | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/power/basic-pm-debugging.txt b/Do

[tip:timers/nohz] sched/cputime: Drop local_irq_save/restore from irqtime_account_irq()

2016-07-14 Thread tip-bot for Rik van Riel
Commit-ID: 553bf6bbfd8a540c70aee28eb50e24caff456a03 Gitweb: http://git.kernel.org/tip/553bf6bbfd8a540c70aee28eb50e24caff456a03 Author: Rik van Riel AuthorDate: Wed, 13 Jul 2016 16:50:05 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Jul 2016 10:42:35 +0200 sched/cputime: Drop local_i

[tip:timers/nohz] sched/cputime: Reorganize vtime native irqtime accounting headers

2016-07-14 Thread tip-bot for Frederic Weisbecker
Commit-ID: 8612f17ab99c1f0770792bc875f5f039212a2a85 Gitweb: http://git.kernel.org/tip/8612f17ab99c1f0770792bc875f5f039212a2a85 Author: Frederic Weisbecker AuthorDate: Wed, 13 Jul 2016 16:50:04 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Jul 2016 10:42:35 +0200 sched/cputime: Reorg

[tip:timers/nohz] sched/cputime: Replace VTIME_GEN irq time code with IRQ_TIME_ACCOUNTING code

2016-07-14 Thread tip-bot for Rik van Riel
Commit-ID: b58c35840521bb02b150e1d0d34ca9197f8b7145 Gitweb: http://git.kernel.org/tip/b58c35840521bb02b150e1d0d34ca9197f8b7145 Author: Rik van Riel AuthorDate: Wed, 13 Jul 2016 16:50:02 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Jul 2016 10:42:34 +0200 sched/cputime: Replace VTIM

[tip:timers/nohz] sched/cputime: Clean up the old vtime gen irqtime accounting completely

2016-07-14 Thread tip-bot for Frederic Weisbecker
Commit-ID: 0cfdf9a198b0d4f5ad6c87d894db7830b796b2cc Gitweb: http://git.kernel.org/tip/0cfdf9a198b0d4f5ad6c87d894db7830b796b2cc Author: Frederic Weisbecker AuthorDate: Wed, 13 Jul 2016 16:50:03 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Jul 2016 10:42:35 +0200 sched/cputime: Clean

[PATCH 0/2][RFC v3] PM / hibernate: Introduce snapshot test mode for hibernation

2016-07-14 Thread Chen Yu
Sometimes we need to debug during hibernation resume stage, and it would be convenient for the user to test if the snapshot stored in the disk can be successfully restored without BIOSes or system re-initialization involved in. So this patch has introduced a snapshot test mode for this purpose. Ch

[tip:timers/nohz] sched/cputime: Count actually elapsed irq & softirq time

2016-07-14 Thread tip-bot for Rik van Riel
Commit-ID: 57430218317e5b280a80582a139b26029c25de6c Gitweb: http://git.kernel.org/tip/57430218317e5b280a80582a139b26029c25de6c Author: Rik van Riel AuthorDate: Wed, 13 Jul 2016 16:50:01 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Jul 2016 10:42:34 +0200 sched/cputime: Count actual

[PATCH 1/2][RFC v3] PM / hibernate: Introduce snapshot test mode for hibernation

2016-07-14 Thread Chen Yu
This mode is used to verify if the snapshot data written to the swap device can be successfully restored to the memory. It is useful to ease the debugging process on hibernation, since this mode can not only bypass the BIOSes/bootloader, but also the system re-initialization. For example: echo sn

Re: [PATCH] iscsi-target: fix panic when add the second TCP connection to iSCSI session

2016-07-14 Thread Sumit Rai
Thanks for the patch Feng, I have tested this patch and below panic has also disappeared. (initially reported at http://article.gmane.org/gmane.linux.scsi.target.devel/12735). dmesg = [ 862.784477] BUG: unable to handle kernel NULL pointer dereference at 01f8 [ 862.784486] IP:

Re: [PATCH] iommu/iova: validate iova_domain input to put_iova_domain

2016-07-14 Thread Robin Murphy
On 14/07/16 09:34, Joerg Roedel wrote: > On Wed, Jul 13, 2016 at 02:49:32PM -0400, Nate Watterson wrote: >> Passing a NULL or uninitialized iova_domain into put_iova_domain >> will currently crash the kernel when the unconfigured iova_domain >> data members are accessed. To prevent this from occurr

Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation

2016-07-14 Thread Chen Yu
Hi, On 2016年07月14日 06:18, Rafael J. Wysocki wrote: On Thu, Jul 14, 2016 at 12:00 AM, Rafael J. Wysocki wrote: On Wed, Jul 13, 2016 at 11:45 PM, Pavel Machek wrote: On Wed 2016-07-13 22:44:24, Rafael J. Wysocki wrote: On Wed, Jul 13, 2016 at 10:26 PM, Pavel Machek wrote: On Wed 2016-07-13

[PATCH] staging: rtl8723au: hal: check BT_Active and BT_State with correct bit pattern

2016-07-14 Thread Colin King
From: Colin Ian King BT_Active and BT_State are being masked with 0x00ff so it the subsequent comparisons with 0x are therefore a buggy check. Instead, check them against 0x00ff. Unfortunately I couldn't find a datasheet or hardware to see if 0x is an expected invalid bi

Re: [git pull] stm class/intel_th: Updates for char-misc-linus

2016-07-14 Thread Alexander Shishkin
t; > It's too late for 4.7, can you resend these with stable@ tags so it gets > into a 4.7-stable release? Done. The following changes since commit af8c34ce6ae32addda3788d54a7e340cad22516b: Linux 4.7-rc2 (2016-06-05 14:31:26 -0700) are available in the git repository at: git://gi

Re: [PATCH kernel] powerpc/mm/iommu: Put pages on process exit

2016-07-14 Thread Balbir Singh
On Thu, Jul 14, 2016 at 3:16 PM, Alexey Kardashevskiy wrote: > At the moment VFIO IOMMU SPAPR v2 driver pins all guest RAM pages when > the userspace starts using VFIO. When the userspace process finishes, > all the pinned pages need to be put; this is done as a part of > the userspace memory cont

[PATCH] PCI: xilinx: Fix return value in case of error

2016-07-14 Thread Christophe JAILLET
In function 'xilinx_pcie_init_irq_domain', the pattern used to check and return error is: if (!var) { dev_err(...); return PTR_ERR(var); } So the returned value in case of error is always 0, which means 'success'. Change it to return -ENODEV instead. Signed-off-by: Christophe J

Re: [PATCH 24/34] mm, vmscan: avoid passing in classzone_idx unnecessarily to shrink_node

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:35 AM, Mel Gorman wrote: shrink_node receives all information it needs about classzone_idx from sc->reclaim_idx so remove the aliases. Signed-off-by: Mel Gorman Acked-by: Hillf Danton Acked-by: Vlastimil Babka

Loan

2016-07-14 Thread International Loan
Do You Need A Loan Of Any Kind ? If Yes Email Now For More Info ..

Re: [PATCH 22/34] mm, page_alloc: wake kswapd based on the highest eligible zone

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:34 AM, Mel Gorman wrote: The ac_classzone_idx is used as the basis for waking kswapd and that is based on the preferred zoneref. If the preferred zoneref's first zone is lower than what is available on other nodes, it's possible that kswapd is woken on a zone with only higher, bu

Re: [PATCH v4] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-07-14 Thread Alexey Klimov
Hi Al, On Tue, Jul 12, 2016 at 11:16:11AM -0600, Al Stone wrote: > When CPPC is being used by ACPI on arm64, user space tools such as > cpupower report CPU frequency values from sysfs that are incorrect. > > What the driver was doing was reporting the values given by ACPI tables > in whatever sca

Re: [PATCH v3 0/3] cpufreq: avoid redundant driver calls in schedutil

2016-07-14 Thread Pingbo Wen
On Thursday, July 14, 2016 04:25 AM, Steve Muckle wrote: > Invoking the cpufreq driver to set a frequency can be expensive. On platforms > with a cpufreq driver that does not support fast switching a thread must be > woken to complete the operation. IPIs will also occur if and when support to > p

Re: [PATCH] usb: xhci-plat: Add generic PHY support

2016-07-14 Thread Felipe Balbi
Hi, Srinath Mannam writes: > Generic phy support added in xhci platform driver. > In the case of multiple phys to the xhci controller, this approach > is helpful to pass multiple phandles to xhci platform driver from > xhci device node. > > Signed-off-by: Srinath Mannam > Reviewed-by: Ray Jui

Re: [RESEND PATCH] arm: assabet_defconfig: disable IDE subsystem

2016-07-14 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, July 13, 2016 06:45:12 PM Russell King - ARM Linux wrote: > On Wed, Jul 13, 2016 at 04:37:31PM +0200, Arnd Bergmann wrote: > > On Wednesday, July 13, 2016 12:59:23 PM CEST Bartlomiej Zolnierkiewicz > > wrote: > > > > > > On Friday, July 08, 2016 10:23:48 PM Arnd Bergmann wrote

[PATCH] ovl: fix link error without POSIX ACL

2016-07-14 Thread Arnd Bergmann
The latest fix for ACL on overlayfs introduced a link error: fs/built-in.o: In function `ovl_posix_acl_xattr_set': file.c:(.text+0x6b320): undefined reference to `posix_acl_from_xattr' posix_acl_from_xattr doesn't have a 'static inline' implementation when CONFIG_FS_POSIX_ACL is disabled, and I c

[PATCH] mtd: nand: omap2: add missing braces

2016-07-14 Thread Arnd Bergmann
A bug fix just introduced incorrect behavior in the omap2 nand driver, as found by gcc-6.1: drivers/mtd/nand/omap2.c: In function 'omap_get_dt_info': drivers/mtd/nand/omap2.c:1658:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation] if (!info->elm_of_node) ^~ drivers/

Re: [PATCH v3] locking/qrwlock: Let qrwlock has same layout regardless of the endian

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 11:37:33AM +0200, Peter Zijlstra wrote: > static inline u8 *__qspinlock_lock_byte(struct qspinlock *lock) > { > return (u8 *)lock + 3 * IS_BUILTIN(__BIG_ENDIAN); > } Bugger, that doesn't actually work. IS_BUILTIN expects the symbol to be defined to "1" and __BIG_ENDIA

Re: System freezes after OOM

2016-07-14 Thread Milan Broz
On 07/14/2016 11:09 AM, Michal Hocko wrote: > On Wed 13-07-16 11:21:41, Mikulas Patocka wrote: >> >> >> On Wed, 13 Jul 2016, Milan Broz wrote: >> >>> On 07/13/2016 02:50 PM, Michal Hocko wrote: On Wed 13-07-16 13:10:06, Michal Hocko wrote: > On Tue 12-07-16 19:44:11, Mikulas Patocka wrote:

Re: [PATCH 11/34] mm, vmscan: remove duplicate logic clearing node congestion and dirty state

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:34 AM, Mel Gorman wrote: Reclaim may stall if there is too much dirty or congested data on a node. This was previously based on zone flags and the logic for clearing the flags is in two places. As congestion/dirty tracking is now tracked on a per-node basis, we can remove some d

Re: [PART2 PATCH v4 10/11] svm: Introduce AMD IOMMU avic_ga_log_notifier

2016-07-14 Thread Suravee Suthikulpanit
Hi Radim, On 7/13/16 21:29, Radim Krčmář wrote: 2016-07-13 08:20-0500, Suravee Suthikulpanit: >From: Suravee Suthikulpanit > >This patch introduces avic_ga_log_notifier, which will be called >by IOMMU driver whenever it handles the Guest vAPIC (GA) log entry. > >Signed-off-by: Suravee Suthikulp

RE: [PATCH RESEND] iwlwifi, Do not implement thermal zone unless ucode is loaded

2016-07-14 Thread Grumbach, Emmanuel
> > On Mon, Jul 11, 2016 at 06:27:30PM +, Grumbach, Emmanuel wrote: > > I guess that works, but it seems wrong to me. Usually, registration > > should happen only upon INIT, and yes, at that time the firmware is > > not ready to provide the information yet. > > > > > > > As can be seen in the

Re: [PATCH 1/2] Bluetooth: Add LED triggers for HCI frames tx and rx

2016-07-14 Thread Marcel Holtmann
Hi Guodong, >>> Two LED triggers are defined: tx_led and rx_led. Upon frames >>> available in HCI core layer, for tx or for rx, the combined LED >>> can blink. >>> >>> Verified on HiKey, 96boards. It uses hi6220 SoC and TI WL1835 combo >>> chip. >>> >>> Signed-off-by: Guodong Xu >>> --- >>> inc

Re: [PATCH 3.12 81/88] KVM: x86: expose invariant tsc cpuid bit (v2)

2016-07-14 Thread Paolo Bonzini
On 14/07/2016 11:22, Jiri Slaby wrote: > Hi, > > we (SUSE) have the patch in SLE12 (based on 3.12) for some time as our > customer needs to see the invtsc flag. And given it is so simple and > belongs IMO to the "New device IDs and quirks are also accepted." > category, I decided to take it into

Re: [patch V2 43/67] leds/trigger/cpu: Convert to hotplug state machine

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 10:10:55AM +0200, Jacek Anaszewski wrote: > On 07/14/2016 09:47 AM, Ingo Molnar wrote: > > > >* Jacek Anaszewski wrote: > > > >>>@@ -133,7 +125,13 @@ static int __init ledtrig_cpu_init(void) > >>> } > >>> > >>> register_syscore_ops(&ledtrig_cpu_syscore_ops); > >

[patch net-next 1/2] tracing: change owner name to driver name for devlink hwmsg tracepoint

2016-07-14 Thread Jiri Pirko
From: Jiri Pirko Turned on that driver->owner which is struct module is not available when modules are disabled. Better to depend on a driver name which is always available. Reported-by: Randy Dunlap Fixes: e5224f0fe2 ("devlink: add hardware messages tracing facility") Signed-off-by: Jiri Pirko

Re: [PATCH v3] locking/qrwlock: Let qrwlock has same layout regardless of the endian

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 03:44:42PM +0800, xinhui wrote: > >OK, so I poked at this a bit and I ended up with the below; but now > >qrwlock and qspinlock are inconsistent; although I suspect qspinlock is > >similarly busted wrt endian muck. > > > >Not sure what to do.. > > > Lets talk about the qspin

[patch net-next 2/2] devlink: fix trace format string

2016-07-14 Thread Jiri Pirko
From: Arnd Bergmann Including devlink.h on ARM and probably other 32-bit architectures results in a harmless warning: In file included from ../include/trace/define_trace.h:95:0, from ../include/trace/events/devlink.h:51, from ../net/core/devlink.c:30: include/tr

Re: [PART2 PATCH v4 07/11] iommu/amd: Introduce amd_iommu_update_ga()

2016-07-14 Thread Suravee Suthikulpanit
On 7/14/16 16:13, Suravee Suthikulpanit wrote: unsigned long flags; +struct amd_iommu *iommu; + +if (!AMD_IOMMU_GUEST_IR_VAPIC(amd_iommu_guest_ir)) +return 0; + +for_each_iommu(iommu) { +struct amd_ir_data *ir_data; + +spin_lock_irqsave(&iommu->gatag_ir_ha

Re: [PATCH 1/2] Bluetooth: Add LED triggers for HCI frames tx and rx

2016-07-14 Thread Guodong Xu
On 13 July 2016 at 16:07, Marcel Holtmann wrote: > Hi Guodong, > >> Two LED triggers are defined: tx_led and rx_led. Upon frames >> available in HCI core layer, for tx or for rx, the combined LED >> can blink. >> >> Verified on HiKey, 96boards. It uses hi6220 SoC and TI WL1835 combo >> chip. >> >>

Re: [PATCH RESEND] iwlwifi, Do not implement thermal zone unless ucode is loaded

2016-07-14 Thread Stanislaw Gruszka
On Mon, Jul 11, 2016 at 06:27:30PM +, Grumbach, Emmanuel wrote: > I guess that works, but it seems wrong to me. Usually, registration > should happen only upon INIT, and yes, at that time the firmware is not > ready to provide the information yet. > > > > As can be seen in the current code ba

[RFC 2/3] watchdog: introduce watchdog_worker_should_ping helper

2016-07-14 Thread Rasmus Villemoes
This will be useful when the condition becomes slightly more complicated in the next patch. Signed-off-by: Rasmus Villemoes --- drivers/watchdog/watchdog_dev.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/wat

[RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE

2016-07-14 Thread Rasmus Villemoes
The watchdog framework takes care of feeding a hardware watchdog until userspace opens /dev/watchdogN. If that never happens for some reason (buggy init script, corrupt root filesystem or whatnot) but the kernel itself is fine, the machine stays up indefinitely. This patch allows setting an upper l

[RFC 0/3] watchdog: introduce open deadline

2016-07-14 Thread Rasmus Villemoes
If a watchdog driver tells the framework that the device is running, the framework takes care of feeding the watchdog until userspace opens the device. If the userspace application which is supposed to do that never comes up properly, the watchdog is fed indefinitely by the kernel. This can be espe

<    2   3   4   5   6   7   8   9   10   >