Re: [PATCH 11/12] drm/nouveau: support GK20A in nouveau_accel_init()

2014-04-15 Thread Alexandre Courbot
On Wed, Mar 26, 2014 at 1:27 PM, Ben Skeggs wrote: > On Tue, Mar 25, 2014 at 9:10 AM, Thierry Reding > wrote: >> On Mon, Mar 24, 2014 at 05:42:33PM +0900, Alexandre Courbot wrote: >>> GK20A does not embed a dedicated COPY engine and thus cannot allocate >>> the copy channel that

Re: [PATCH] cpufreq, powernv: Fix build failure on UP

2014-04-15 Thread Viresh Kumar
On 16 April 2014 11:18, Srivatsa S. Bhat wrote: > From: Srivatsa S. Bhat > Subject: [PATCH] cpufreq, powernv: Fix build failure on UP > > Paul Gortmaker reported the following build failure of the powernv cpufreq > driver on UP configs: > > drivers/cpufreq/powernv-cpufreq.c:241:2: error:

Re: [PATCH 17/19] VFS: set PF_FSTRANS while namespace_sem is held.

2014-04-15 Thread NeilBrown
On Wed, 16 Apr 2014 05:46:18 +0100 Al Viro wrote: > On Wed, Apr 16, 2014 at 02:03:37PM +1000, NeilBrown wrote: > > namespace_sem can be taken while various i_mutex locks are held, so we > > need to avoid reclaim from blocking on an FS (particularly loop-back > > NFS). > > I would really prefer

Re: [PATCH 13/19] MM: set PF_FSTRANS while allocating per-cpu memory to avoid deadlock.

2014-04-15 Thread Dave Chinner
On Wed, Apr 16, 2014 at 02:03:36PM +1000, NeilBrown wrote: > lockdep reports a locking chain > > sk_lock-AF_INET --> rtnl_mutex --> pcpu_alloc_mutex > > As sk_lock may be needed to reclaim memory, allowing that > reclaim while pcu_alloc_mutex is held can lead to deadlock. > So set PF_FSTRANS

[PATCH] cpufreq, powernv: Fix build failure on UP

2014-04-15 Thread Srivatsa S. Bhat
On 04/15/2014 07:41 PM, Paul Gortmaker wrote: > Hi all, > > This new driver is causing build fails on linux-next for non-SMP. > > http://kisskb.ellerman.id.au/kisskb/buildresult/10911507/ > > I didn't bisect since there are only two commits in total. :) > > Looks like some header foo where

Re: [PATCH 10/19] NET: set PF_FSTRANS while holding sk_lock

2014-04-15 Thread NeilBrown
On Tue, 15 Apr 2014 22:13:46 -0700 Eric Dumazet wrote: > On Wed, 2014-04-16 at 14:03 +1000, NeilBrown wrote: > > sk_lock can be taken while reclaiming memory (in nfsd for loop-back > > NFS mounts, and presumably in nfs), and memory can be allocated while > > holding sk_lock, at least via: > > >

[PATCH] driver/memory:Add Kconfig help description for IFC

2014-04-15 Thread Prabhakar Kushwaha
Freescale's Integrated Flash controller(IFC) module is used to handle devices such as NOR, NAND, FPGA and ASIC. Update same in Help section of Kconfig for IFC. Signed-off-by: Prabhakar Kushwaha --- drivers/memory/Kconfig |4 1 file changed, 4 insertions(+) diff --git

Re: 回复: [PATCH] unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h

2014-04-15 Thread Chen Gang
On 04/16/2014 01:19 PM, 管雪涛 wrote: > This problem has been fixed, but I didn't submit. > Anyway, I can apply your version. > > Acked-by: Xuetao Guan > OK, thanks. > - Chen Gang 写道: >> Missing related ')', the related compiling error: >> >> CC [M] drivers/gpu/drm/udl/udl_fb.o >>

Re: Re: [PATCH 3/4] x86/insn: Extract more information about instructions

2014-04-15 Thread Masami Hiramatsu
(2014/04/16 0:10), Sasha Levin wrote: >>> - Memory access size. We're currently decoding the size (in bytes) of an >>> address size, and operand size. kmemcheck would like to know in addition >>> how many bytes were read/written from/to an address by a given instruction, >>> so we also keep the

Re: [PATCH 29/38] tick-sched: remove wrapper around __tick_nohz_task_switch()

2014-04-15 Thread Viresh Kumar
On 15 April 2014 18:14, Frederic Weisbecker wrote: > Sure but check out the static_key_false() in the implementation of > tick_nohz_full_enabled(). > That's where the magic hides. > No problem, the jump label/static key code is quite tricky. And its use > can be easily missed, as in here. > >

Re: 回复: [PATCH v3] arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM

2014-04-15 Thread Chen Gang
On 04/16/2014 01:15 PM, 管雪涛 wrote: > Acked-by: Xuetao Guan > OK, thanks. > - Chen Gang 写道: >> unicore32 supports STRICT_DEVMEM, so it needs devmem_is_allowed(), like >> some of other architectures have done (e.g. arm, powerpc, x86 ...). >> >> The related error with allmodconfig: >> >>

Re: [PATCH v2] Drivers/PCI: Logging clean-up [1]

2014-04-15 Thread Joe Perches
On Wed, 2014-04-16 at 07:37 +0200, Fabian Frederick wrote: > -Convert printk(KERN_WARNING|KERN_ERR|KERN_INFO to pr_foo() > -Define pr_fmt where it doesn't break existing format. [] > (other ones ?) [] > diff --git a/drivers/pci/hotplug/cpqphp_core.c > b/drivers/pci/hotplug/cpqphp_core.c [] > @@

linux-next: build failure after merge of the akpm-current tree

2014-04-15 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: ERROR: "kmalloc_order" [drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko] undefined! Caused by commit a3ed1ed24850 ("mm: get rid of __GFP_KMEMCG"). I added the following

Hello

2014-04-15 Thread Mr. Raymond Hung Lee
From: Mr. RWH Lee Email: (1952025...@qq.com) Good Day I am Mr. Raymond Wing Hung LEE the Executive Director and chief Financial officer of Fubon Bank (Hong Kong) Limited. I need your assistance in transferring funds worth $47.1million dollars. Kindly write back to (1952025...@qq.com), I shall

Re: [PATCH 04/19] Make effect of PF_FSTRANS to disable __GFP_FS universal.

2014-04-15 Thread Dave Chinner
On Wed, Apr 16, 2014 at 02:03:36PM +1000, NeilBrown wrote: > Currently both xfs and nfs will handle PF_FSTRANS by disabling > __GFP_FS. > > Make this effect global by repurposing memalloc_noio_flags (which > does the same thing for PF_MEMALLOC_NOIO and __GFP_IO) to generally > impost the task

[PATCH v2] Drivers/PCI: Logging clean-up [1]

2014-04-15 Thread Fabian Frederick
-Convert printk(KERN_WARNING|KERN_ERR|KERN_INFO to pr_foo() -Define pr_fmt where it doesn't break existing format. Cc: Bjorn Helgaas Cc: Andrew Morton Cc: Joe Perches Signed-off-by: Fabian Frederick --- v2: (From suggestions by Joe Perches) -Coalesce format fragments. -Remove 'PCI: ' in

[PATCH 2/2] workqueue: jumps to use_dfl_pwq if the target cpumask is equal wq's

2014-04-15 Thread Daeseok Youn
Replace blocks of code which checks whether pwq is defalut with jump to use_dfl_pwq. It is same as before. Signed-off-by: Daeseok Youn --- kernel/workqueue.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index

[PATCH 1/2] workqueue: fix bugs in wq_update_unbound_numa() failure path

2014-04-15 Thread Daeseok Youn
wq_update_unbound_numa() failure path has the following two bugs. - alloc_unbound_pwq() is called without holding wq->mutex; however, if the allocation fails, it jumps to out_unlock which tries to unlock wq->mutex. - The function should switch to dfl_pwq on failure but didn't do so after

Re: Re: [PATCH 3/4] x86/insn: Extract more information about instructions

2014-04-15 Thread Masami Hiramatsu
(2014/04/16 13:03), Sasha Levin wrote: > On 04/15/2014 11:54 PM, H. Peter Anvin wrote: >> On 04/15/2014 08:47 PM, Sasha Levin wrote: Yes, if kmemcheck for some reason needs to figure out if an instruction is a MOV variant we'll need to list quite a few mnemonics, but that list

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-15 Thread Andreas Dilger
On Apr 15, 2014, at 11:07 PM, Theodore Ts'o wrote: > On Wed, Apr 16, 2014 at 10:30:10AM +0530, Amit Sahrawat wrote: >> 4) Corrupt the block group ‘1’ by writing all ‘1’, we had one file >> with all 1’s, so using ‘dd’ – >> dd if=i_file of=/dev/sdb1 bs=4096 seek=17 count=1 >> After this mount

Re: How do I increment a per-CPU variable without warning?

2014-04-15 Thread Peter Zijlstra
On Tue, Apr 15, 2014 at 08:54:19PM -0700, Paul E. McKenney wrote: > But falling back on the old ways of doing this at least looks a bit > nicer: > > static inline bool rcu_should_resched(void) > { > int t; > int *tp = _cpu(rcu_cond_resched_count, >

[PATCH 1/2] workqueue: fix bugs in wq_update_unbound_numa() failure path

2014-04-15 Thread Daeseok Youn
wq_update_unbound_numa() failure path has the following two bugs. - alloc_unbound_pwq() is called without holding wq->mutex; however, if the allocation fails, it jumps to out_unlock which tries to unlock wq->mutex. - The function should switch to dfl_pwq on failure but didn't do so after

Re: [PATCH v3 10/21] mtd: support BB SRAM on ICP DAS LP-8x4x

2014-04-15 Thread Sergei Ianovich
On Tue, 2014-04-15 at 22:04 -0700, Brian Norris wrote: > Hi Sergei, > > On Tue, Dec 17, 2013 at 11:37:40PM +0400, Sergei Ianovich wrote: > > This provides an MTD device driver for 512kB of battery backed up SRAM > > on ICPDAS LP-8X4X programmable automation controllers. > > > > SRAM chip is

linux-next: build failure after merge of the akpm-current tree

2014-04-15 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: In file included from mm/vmscan.c:50:0: include/linux/swapops.h: In function 'is_swap_pte': include/linux/swapops.h:57:2: error: implicit declaration of function

回复: [PATCH] unicore32: include: asm: add missing ')' for PAGE_* macros in pgtable.h

2014-04-15 Thread 管雪涛
This problem has been fixed, but I didn't submit. Anyway, I can apply your version. Acked-by: Xuetao Guan - Chen Gang 写道: > Missing related ')', the related compiling error: > > CC [M] drivers/gpu/drm/udl/udl_fb.o > drivers/gpu/drm/udl/udl_fb.c: In function ‘udl_fb_mmap’: >

Re: How do I increment a per-CPU variable without warning?

2014-04-15 Thread Peter Zijlstra
On Tue, Apr 15, 2014 at 03:17:55PM -0700, Paul E. McKenney wrote: > Hello, Christoph, > > I have a patch that currently uses __this_cpu_inc_return() to increment a > per-CPU variable, but without preemption disabled. Of course, given that > preemption is enabled, it might well end up picking up

回复: [PATCH v3] arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM

2014-04-15 Thread 管雪涛
Acked-by: Xuetao Guan - Chen Gang 写道: > unicore32 supports STRICT_DEVMEM, so it needs devmem_is_allowed(), like > some of other architectures have done (e.g. arm, powerpc, x86 ...). > > The related error with allmodconfig: > > CC drivers/char/mem.o > drivers/char/mem.c: In

Re: [PATCH 3/3] f2fs: flush dirty directory pages when scattered pages are gathered

2014-04-15 Thread Jaegeuk Kim
Hi all, Please ignore this, since it turns out that is doesn't solve the problem. Instead, please consider the following patch. >From ac9ad0b1de42dc311323b9c3b8f431f4b097b43b Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Wed, 16 Apr 2014 10:47:06 +0900 Subject: [PATCH] f2fs: adjust free mem

Re: [PATCH 10/19] NET: set PF_FSTRANS while holding sk_lock

2014-04-15 Thread Eric Dumazet
On Wed, 2014-04-16 at 14:03 +1000, NeilBrown wrote: > sk_lock can be taken while reclaiming memory (in nfsd for loop-back > NFS mounts, and presumably in nfs), and memory can be allocated while > holding sk_lock, at least via: > > inet_listen -> inet_csk_listen_start ->reqsk_queue_alloc > > So

Re: [PATCH 2/3 v2] f2fs: fix to decrease the number of dirty dentry page

2014-04-15 Thread Jaegeuk Kim
Change log from v1: o change the patch, which includes this bug fix >From 0f3b8427b40b9ace829ba0b16336d5cd67589022 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 15 Apr 2014 16:04:15 +0900 Subject: [PATCH] f2fs: call redirty_page_for_writepage This patch replace some general codes with

[PATCH 1/2] workqueue: fix bugs in wq_update_unbound_numa() failure path

2014-04-15 Thread Daeseok Youn
wq_update_unbound_numa() failure path has the following two bugs. - alloc_unbound_pwq() is called without holding wq->mutex; however, if the allocation fails, it jumps to out_unlock which tries to unlock wq->mutex. - The function should switch to dfl_pwq on failure but didn't do so after

Re: [PATCHv2 1/2] iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC

2014-04-15 Thread Chanwoo Choi
Hi Sachin, On 04/16/2014 02:04 PM, Sachin Kamat wrote: > Hi Chanwoo, > > On 16 April 2014 10:25, Chanwoo Choi wrote: >> Hi Sachin, >> >> On 04/16/2014 01:44 PM, Chanwoo Choi wrote: >>> Hi Sachin, >>> >>> On 04/16/2014 12:48 PM, Sachin Kamat wrote: Hi Chanwoo, On 14 April 2014

Re: [PATCH] mtd: nand: remove unused function input parameter

2014-04-15 Thread Brian Norris
On Wed, Dec 25, 2013 at 12:40:50PM +, Caizhiyong wrote: > From: Cai Zhiyong > Date: Wed, 25 Dec 2013 20:11:15 +0800 > Subject: [PATCH] mtd: nand: remove unused function input parameter > > The nand_get_flash_type parameter "busw" input value is not used by any > branch, and it is updated

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-15 Thread Theodore Ts'o
On Wed, Apr 16, 2014 at 10:30:10AM +0530, Amit Sahrawat wrote: > 4)Corrupt the block group ‘1’ by writing all ‘1’, we had one file > with all 1’s, so using ‘dd’ – > dd if=i_file of=/dev/sdb1 bs=4096 seek=17 count=1 > After this mount the partition – create few random size files and then > ran

Re: [PATCH v3 10/21] mtd: support BB SRAM on ICP DAS LP-8x4x

2014-04-15 Thread Brian Norris
Hi Sergei, On Tue, Dec 17, 2013 at 11:37:40PM +0400, Sergei Ianovich wrote: > This provides an MTD device driver for 512kB of battery backed up SRAM > on ICPDAS LP-8X4X programmable automation controllers. > > SRAM chip is connected via FPGA and is not accessible without a driver, > unlike flash

Re: [PATCHv2 1/2] iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC

2014-04-15 Thread Sachin Kamat
Hi Chanwoo, On 16 April 2014 10:25, Chanwoo Choi wrote: > Hi Sachin, > > On 04/16/2014 01:44 PM, Chanwoo Choi wrote: >> Hi Sachin, >> >> On 04/16/2014 12:48 PM, Sachin Kamat wrote: >>> Hi Chanwoo, >>> >>> On 14 April 2014 14:37, Chanwoo Choi wrote: This patch control special clock for ADC

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-15 Thread Amit Sahrawat
Thanks Ted, for the detailed reply. We could not retain the original HDD – on which we got the issue. In order to replicate the problem we did steps like this: 1) Make 250MB partition 2) Format the partition with blocksize ‘4K’ 3) Using dumpe2fs – get the block group information

Re: [PATCHv2 1/2] iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC

2014-04-15 Thread Chanwoo Choi
Hi Sachin, On 04/16/2014 01:44 PM, Chanwoo Choi wrote: > Hi Sachin, > > On 04/16/2014 12:48 PM, Sachin Kamat wrote: >> Hi Chanwoo, >> >> On 14 April 2014 14:37, Chanwoo Choi wrote: >>> This patch control special clock for ADC in Exynos series's FSYS block. >>> If special clock of ADC is

Re: Re: [PATCH] kernel/panic: Add "late_kdump" option for kdump in unstable condition

2014-04-15 Thread Masami Hiramatsu
(2014/04/16 11:33), Vivek Goyal wrote: > On Wed, Apr 16, 2014 at 10:28:39AM +0900, Masami Hiramatsu wrote: >> (2014/04/15 23:08), Vivek Goyal wrote: >>> On Tue, Apr 15, 2014 at 10:37:40AM +0900, Masami Hiramatsu wrote: >>> >>> [..] > Masami, > > So what's the alternative to kdump which

Re: [PATCH 17/19] VFS: set PF_FSTRANS while namespace_sem is held.

2014-04-15 Thread Al Viro
On Wed, Apr 16, 2014 at 02:03:37PM +1000, NeilBrown wrote: > namespace_sem can be taken while various i_mutex locks are held, so we > need to avoid reclaim from blocking on an FS (particularly loop-back > NFS). I would really prefer to deal with that differently - by explicit change of gfp_t

Re: [PATCHv2 1/2] iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC

2014-04-15 Thread Chanwoo Choi
Hi Sachin, On 04/16/2014 12:48 PM, Sachin Kamat wrote: > Hi Chanwoo, > > On 14 April 2014 14:37, Chanwoo Choi wrote: >> This patch control special clock for ADC in Exynos series's FSYS block. >> If special clock of ADC is registerd on clock list of common clk framework, >> Exynos ADC drvier

[RFC PATCH 2/2] PCI: exynos: Add PCIe support for Samsung GH7 SoC

2014-04-15 Thread Jingoo Han
Samsung GH7 has four PCIe controllers which can be used as root complex for PCIe interface. Signed-off-by: Jingoo Han --- drivers/pci/host/Kconfig |2 +- drivers/pci/host/pci-exynos.c | 135 ++--- 2 files changed, 126 insertions(+), 11 deletions(-)

[RFC PATCH 1/2] PCI: designware: Add ARM64 PCI support

2014-04-15 Thread Jingoo Han
Add ARM64 PCI support for Synopsys designware PCIe, by using pcie arm64 arch support and creating generic pcie bridge from device tree. Signed-off-by: Jingoo Han --- drivers/pci/host/pcie-designware.c | 32 1 file changed, 32 insertions(+) diff --git

Re: [PATCH RFC] usb: gadget: Add xilinx axi usb2 device support

2014-04-15 Thread Felipe Balbi
Hi, On Tue, Apr 15, 2014 at 01:55:38PM -0400, Alan Stern wrote: > On Tue, 15 Apr 2014, Felipe Balbi wrote: > > > > 2. Does device need to know OUT transactions before hand so that OUT > > > requests are queued for endpoint before packets are received > > > from host? > > > > well, no. Gadget

[RFC PATCH 0/2] Add support for Samsung GH7 PCIe controller

2014-04-15 Thread Jingoo Han
This patch adds support for Samsung GH7 PCIe host controller. Samsung GH7 PCIe controller driver has dependency on the PCI arm64 arch support. So, the Liviu Dudau's patcheset for creating generic host_bridge from device tree [1] and supporting PCI in AArch64 [2] are required. This patch is marked

Re: [PATCH] usb: phy: mv_u3d: Remove usb phy driver for mv_u3d

2014-04-15 Thread Felipe Balbi
On Tue, Apr 15, 2014 at 08:08:32PM +0200, Paul Bolle wrote: > On Tue, 2014-04-15 at 12:23 -0500, Felipe Balbi wrote: > > so this means that drivers/usb/gadget/mv_u3d_core.c isn't used either ? > > Why should it? There's no dependency on CPU_MMP3 for USB_MV_U3D anymore, > is there? no, but the

[PATCH v2 0/7] Support 4 levels of translation tables for ARM64

2014-04-15 Thread Jungseok Lee
Hi All, This the 2nd patchset supports 4 levels of tranlsation tables for ARM64. Firstly, The patchset decouples page size from level of translation tables as taking account into the comment from Catalin Marinas: http://www.spinics.net/linux/lists/arm-kernel/msg319552.html Then, it implements 4

[PATCH v2 2/7] arm64: Decouple page size from level of translation tables

2014-04-15 Thread Jungseok Lee
This patch separates page size from level of translation tables in configuration. It facilitates introduction of different options, such as 4KB + 4 levels, 16KB + 4 levels and 64KB + 3 levels, easily. Signed-off-by: Jungseok Lee Reviewed-by: Sungjinn Chung --- arch/arm64/Kconfig

[PATCH v2 5/7] arm64: Add 4 levels of page tables definition with 4KB pages

2014-04-15 Thread Jungseok Lee
This patch adds hardware definition and types for 4 levels of translation tables with 4KB pages. Signed-off-by: Jungseok Lee Reviewed-by: Sungjinn Chung --- arch/arm64/include/asm/pgtable-4level-hwdef.h | 50 + arch/arm64/include/asm/pgtable-4level-types.h | 71

[PATCH v2 4/7] arm64: Add a description on 48-bit address space with 4KB pages

2014-04-15 Thread Jungseok Lee
This patch adds memory layout and translation lookup information about 48-bit address space with 4K pages. The description is based on 4 levels of translation tables. Signed-off-by: Jungseok Lee Reviewed-by: Sungjinn Chung --- Documentation/arm64/memory.txt | 59

[PATCH v2 6/7] arm64: mm: Implement 4 levels of translation tables

2014-04-15 Thread Jungseok Lee
This patch implements 4 levels of translation tables since 3 levels of page tables with 4KB pages cannot support 40-bit physical address space described in [1] due to the following issue. It is a restriction that kernel logical memory map with 4KB + 3 levels

[PATCH v2 3/7] arm64: Introduce a kernel configuration option for VA_BITS

2014-04-15 Thread Jungseok Lee
This patch adds a kernel configuration for VA_BITS. It helps to prevent unnecessary #ifdef statements insertions for VA_BITS when implementing different page sizes and level of translation tables. Signed-off-by: Jungseok Lee Reviewed-by: Sungjinn Chung --- arch/arm64/Kconfig |

[PATCH v2 7/7] arm64: KVM: Implement 4 levels of translation tables for HYP and stage2

2014-04-15 Thread Jungseok Lee
This patch adds 4 levels of translation tables implementation for both HYP and stage2. A combination of 4KB + 4 levels host and 4KB + 4 levels guest can run on ARMv8 architecture as introducing this feature. Signed-off-by: Jungseok Lee Reviewed-by: Sungjinn Chung ---

[PATCH v2 1/7] arm64: Use pr_* instead of printk

2014-04-15 Thread Jungseok Lee
This patch fixed the following checkpatch complaint as using pr_* instead of printk. WARNING: printk() should include KERN_ facility level Signed-off-by: Jungseok Lee Reviewed-by: Sungjinn Chung --- arch/arm64/kernel/traps.c | 14 +++--- 1 file changed, 7 insertions(+), 7

Re: [PATCH 3/4] x86/insn: Extract more information about instructions

2014-04-15 Thread H. Peter Anvin
I really wonder if it makes sense... On April 15, 2014 9:03:48 PM PDT, Sasha Levin wrote: >On 04/15/2014 11:54 PM, H. Peter Anvin wrote: >> On 04/15/2014 08:47 PM, Sasha Levin wrote: >>> > >>> > Yes, if kmemcheck for some reason needs to figure out if an >instruction >>> > is a MOV variant

[PATCH 02/19] lockdep: lockdep_set_current_reclaim_state should save old value

2014-04-15 Thread NeilBrown
Currently kswapd sets current->lockdep_reclaim_gfp but the first memory allocation call will clear it. So the setting does no good. Thus the lockdep_set_current_reclaim_state call in kswapd() is ineffective. With this patch we always save the old value and then restore it, so lockdep gets to

[PATCH 04/19] Make effect of PF_FSTRANS to disable __GFP_FS universal.

2014-04-15 Thread NeilBrown
Currently both xfs and nfs will handle PF_FSTRANS by disabling __GFP_FS. Make this effect global by repurposing memalloc_noio_flags (which does the same thing for PF_MEMALLOC_NOIO and __GFP_IO) to generally impost the task flags on a gfp_t. Due to this repurposing we change the name of

[PATCH 05/19] SUNRPC: track whether a request is coming from a loop-back interface.

2014-04-15 Thread NeilBrown
If an incoming NFS request is coming from the local host, then nfsd will need to perform some special handling. So detect that possibility and make the source visible in rq_local. Signed-off-by: NeilBrown --- include/linux/sunrpc/svc.h |1 + include/linux/sunrpc/svc_xprt.h |1 +

[PATCH 06/19] nfsd: set PF_FSTRANS for nfsd threads.

2014-04-15 Thread NeilBrown
If a localhost mount is present, then it is easy to deadlock NFS by nfsd entering direct reclaim and calling nfs_release_page() which requires nfsd to perform an fsync() (which it cannot do because it is reclaiming memory). By setting PF_FSTRANS we stop the memory allocator from ever attempting

[PATCH 11/19] FS: set PF_FSTRANS while holding mmap_sem in exec.c

2014-04-15 Thread NeilBrown
Because mmap_sem is sometimes(*) taken while holding a sock lock, and the sock lock might be needed for reclaim (at least when loop-back NFS is active), we must not block on FS reclaim while mmap_sem is held. exec.c allocates memory while holding mmap_sem, and so needs PF_FSTRANS protection. *

Re: [PATCH 3/3] cgroup: implement cgroup.subtree_populated for the default hierarchy

2014-04-15 Thread Li Zefan
On 2014/4/16 11:50, Eric W. Biederman wrote: > Kay Sievers writes: > >> On Tue, Apr 15, 2014 at 7:48 PM, Li Zefan wrote: >>> On 2014/4/15 5:44, Tejun Heo wrote: cgroup users often need a way to determine when a cgroup's subhierarchy becomes empty so that it can be cleaned up. cgroup

[PATCH 18/19] nfsd: set PF_FSTRANS during nfsd4_do_callback_rpc.

2014-04-15 Thread NeilBrown
nfsd will sometimes call flush_workqueue on the workqueue running nfsd4_do_callback_rpc, so we must ensure that it doesn't block in filesystem reclaim. So set PF_FSTRANS. Signed-off-by: NeilBrown --- fs/nfsd/nfs4callback.c |5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH V1 Resend 4/5] tick-sched: don't call update_wall_time() when delta is lesser than tick_period

2014-04-15 Thread Viresh Kumar
On 16 April 2014 00:14, Thomas Gleixner wrote: > On Tue, 15 Apr 2014, Viresh Kumar wrote: > >> In tick_do_update_jiffies64() we are processing ticks only if delta is >> greater >> than tick_period. This is what we are supposed to do here and it broke a bit >> with this patch: >> >> commit

[PATCH 14/19] driver core: set PF_FSTRANS while holding gdp_mutex

2014-04-15 Thread NeilBrown
lockdep reports a locking chain: sk_lock-AF_INET --> rtnl_mutex --> gdp_mutex As sk_lock can be needed for memory reclaim (when loop-back NFS is in use at least), any memory allocation under gdp_mutex needs to be protected by PF_FSTRANS. The path frome rtnl_mutex to gdp_mutex is []

[PATCH 16/19] VFS: use GFP_NOFS rather than GFP_KERNEL in __d_alloc.

2014-04-15 Thread NeilBrown
__d_alloc can be called with i_mutex held, so it is safer to use GFP_NOFS. lockdep reports this can deadlock when loop-back NFS is in use, as nfsd may be required to write out for reclaim, and nfsd certainly takes i_mutex. Signed-off-by: NeilBrown --- fs/dcache.c |4 ++-- 1 file changed, 2

[PATCH 19/19] XFS: set PF_FSTRANS while ilock is held in xfs_free_eofblocks

2014-04-15 Thread NeilBrown
memory allocates can happen while the xfs ilock is held in xfs_free_eofblocks, particularly [] kmem_zone_alloc+0x67/0xc0 [] xfs_trans_add_item+0x25/0x50 [] xfs_trans_ijoin+0x2c/0x60 [] xfs_itruncate_extents+0xbe/0x400 [] xfs_free_eofblocks+0x1c4/0x240 So set PF_FSTRANS to avoid this

[PATCH 13/19] MM: set PF_FSTRANS while allocating per-cpu memory to avoid deadlock.

2014-04-15 Thread NeilBrown
lockdep reports a locking chain sk_lock-AF_INET --> rtnl_mutex --> pcpu_alloc_mutex As sk_lock may be needed to reclaim memory, allowing that reclaim while pcu_alloc_mutex is held can lead to deadlock. So set PF_FSTRANS while it is help to avoid the FS reclaim. pcpu_alloc_mutex can be taken

[PATCH 17/19] VFS: set PF_FSTRANS while namespace_sem is held.

2014-04-15 Thread NeilBrown
namespace_sem can be taken while various i_mutex locks are held, so we need to avoid reclaim from blocking on an FS (particularly loop-back NFS). A memory allocation happens under namespace_sem at least in: [] kmem_cache_alloc+0x4f/0x290 [] alloc_vfsmnt+0x1f/0x1d0 [] clone_mnt+0x2a/0x310 []

[PATCH 15/19] nfsd: set PF_FSTRANS when client_mutex is held.

2014-04-15 Thread NeilBrown
When loop-back NFS with NFSv4 is in use, client_mutex might be needed to reclaim memory, so any memory allocation while client_mutex is held must avoid __GFP_FS, so best to set PF_FSTRANS. Signed-off-by: NeilBrown --- fs/nfsd/nfs4state.c |3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 08/19] Set PF_FSTRANS while write_cache_pages calls ->writepage

2014-04-15 Thread NeilBrown
It is normally safe for direct reclaim to enter filesystems even when a page is locked - as can happen if ->writepage allocates memory with GFP_KERNEL (which xfs does). However if a localhost NFS mount is present, then a flush-* thread might hold a page locked and then in direct reclaim, ask nfs

[PATCH 10/19] NET: set PF_FSTRANS while holding sk_lock

2014-04-15 Thread NeilBrown
sk_lock can be taken while reclaiming memory (in nfsd for loop-back NFS mounts, and presumably in nfs), and memory can be allocated while holding sk_lock, at least via: inet_listen -> inet_csk_listen_start ->reqsk_queue_alloc So to avoid deadlocks, always set PF_FSTRANS while holding sk_lock.

[PATCH 12/19] NET: set PF_FSTRANS while holding rtnl_lock

2014-04-15 Thread NeilBrown
As rtnl_mutex can be taken while holding sk_lock, and sk_lock can be taken while performing memory reclaim (at least when loop-back NFS is active), any memory allocation under rtnl_mutex must avoid __GFP_FS, which is most easily done by setting PF_MEMALLOC. CPU0CPU1

[PATCH 09/19] XFS: ensure xfs_file_*_read cannot deadlock in memory allocation.

2014-04-15 Thread NeilBrown
xfs_file_*_read holds an inode lock while calling a generic 'read' function. These functions perform read-ahead and are quite likely to allocate memory. So set PF_FSTRANS to ensure they avoid __GFP_FS and so don't recurse into a filesystem to free memory. This can be a problem with loop-back NFS

[PATCH 07/19] nfsd and VM: use PF_LESS_THROTTLE to avoid throttle in shrink_inactive_list.

2014-04-15 Thread NeilBrown
nfsd already uses PF_LESS_THROTTLE (and is the only user) to avoid throttling while dirtying pages. Use it also to avoid throttling while doing direct reclaim as this can stall nfsd in the same way. Also only set PF_LESS_THROTTLE when handling a 'write' request for a local connection. This is

Re: [PATCH 3/3] cgroup: implement cgroup.subtree_populated for the default hierarchy

2014-04-15 Thread Li Zefan
On 2014/4/16 11:33, Kay Sievers wrote: > On Tue, Apr 15, 2014 at 7:48 PM, Li Zefan wrote: >> On 2014/4/15 5:44, Tejun Heo wrote: >>> cgroup users often need a way to determine when a cgroup's >>> subhierarchy becomes empty so that it can be cleaned up. cgroup >>> currently provides release_agent

[PATCH 03/19] lockdep: improve scenario messages for RECLAIM_FS errors.

2014-04-15 Thread NeilBrown
lockdep can check for locking problems involving reclaim using the same infrastructure as used for interrupts. However a number of the messages still refer to interrupts even if it was actually a reclaim-related problem. So determine where the problem was caused by reclaim or irq and adjust

[PATCH/RFC 00/19] Support loop-back NFS mounts

2014-04-15 Thread NeilBrown
Loop-back NFS mounts are when the NFS client and server run on the same host. The use-case for this is a high availability cluster with shared storage. The shared filesystem is mounted on any one machine and NFS-mounted on the others. If the nfs server fails, some other node will take over that

[PATCH 01/19] Promote current_{set, restore}_flags_nested from xfs to global.

2014-04-15 Thread NeilBrown
These are useful macros from xfs for modifying current->flags. Other places in the kernel perform the same task in various different ways. This patch moves the macros from xfs to include/linux/sched.h and changes all code which temporarily sets a current->flags flag to use these macros. This does

Re: [PATCH 3/3] cgroup: implement cgroup.subtree_populated for the default hierarchy

2014-04-15 Thread Kay Sievers
On Tue, Apr 15, 2014 at 8:50 PM, Eric W. Biederman wrote: > Kay Sievers writes: > >> On Tue, Apr 15, 2014 at 7:48 PM, Li Zefan wrote: >>> On 2014/4/15 5:44, Tejun Heo wrote: cgroup users often need a way to determine when a cgroup's subhierarchy becomes empty so that it can be cleaned

Re: [perf] more perf_fuzzer memory corruption

2014-04-15 Thread Vince Weaver
On Tue, 15 Apr 2014, Vince Weaver wrote: > Possibly it looks like a struct perf_event is being used after freed, > specifically the event->migrate_entry->prev value? I could > be completely wrong about that. and actually I'm mixing up hex and decimal. It looks like the actual value being

Re: [PATCH v2 8/8] sh: clk: Use cpufreq_for_each_valid_entry macro for iteration

2014-04-15 Thread Simon Horman
On Wed, Apr 16, 2014 at 09:30:24AM +0530, Viresh Kumar wrote: > On 16 April 2014 06:54, Simon Horman wrote: > > I have dropped this patch. > > > > Please let me know if there is a stable branch which > > includes cpufreq_frequency_table which I can use as a base to apply > > this patch. > > > >

Re: [PATCH v2 8/8] sh: clk: Use cpufreq_for_each_valid_entry macro for iteration

2014-04-15 Thread Simon Horman
On Wed, Apr 16, 2014 at 01:27:04AM +0300, Stratos Karafotis wrote: > The cpufreq core now supports the cpufreq_for_each_valid_entry macro > helper for iteration over the cpufreq_frequency_table, so use it. > > It should have no functional changes. > > Signed-off-by: Stratos Karafotis Rafael,

Re: [PATCH V1 Resend 1/5] tick-common: fix wrong check in tick_check_replacement()

2014-04-15 Thread Viresh Kumar
On 16 April 2014 00:12, Thomas Gleixner wrote: > B1;3202;0c What does this mean ?? > On Tue, 15 Apr 2014, Viresh Kumar wrote: > >> tick_check_replacement() returns if a replacement of clock_event_device is >> possible or not. It does this as the first check: >> >> if

Re: [PATCH V1 Resend 2/5] tick-common: don't check tick_oneshot_mode_active() from tick_check_preferred()

2014-04-15 Thread Viresh Kumar
On 16 April 2014 00:00, Thomas Gleixner wrote: > On Tue, 15 Apr 2014, Viresh Kumar wrote: > >> If 'curdev' passed to tick_check_preferred() is the current >> clock_event_device >> then these two checks look exactly same, because td->mode is set to >> TICKDEV_MODE_ONESHOT only when the event

Re: [PATCH 3/4] x86/insn: Extract more information about instructions

2014-04-15 Thread Sasha Levin
On 04/15/2014 11:54 PM, H. Peter Anvin wrote: > On 04/15/2014 08:47 PM, Sasha Levin wrote: >> > >> > Yes, if kmemcheck for some reason needs to figure out if an instruction >> > is a MOV variant we'll need to list quite a few mnemonics, but that list >> > will be much shorter and more readable

linux-next: manual merge of the audit tree with Linus' tree

2014-04-15 Thread Stephen Rothwell
Hi Eric, Today's linux-next merge of the audit tree got conflicts in arch/mips/include/asm/syscall.h, arch/x86/Kconfig and kernel/audit.c between commits from Linus' tree and commit 596b0569084b ("Merge tag 'v3.14' into mergeing") from the audit tree. This happened because you merged Linus' tag

Re: [PATCH v2 0/8] Introduce new cpufreq helper macros

2014-04-15 Thread Viresh Kumar
On 16 April 2014 03:55, Stratos Karafotis wrote: > Hi all, > > This patch set introduces two freq_table helper macros which > can be used for iteration over cpufreq_frequency_table and > makes the necessary changes to cpufreq core and drivers that > use such an iteration procedure. > > The

RE: [RFC][PATCH 1/3] ARM: dts: vf610: Add Freescale FlexTimer Module timer node.

2014-04-15 Thread dongsheng.w...@freescale.com
> -Original Message- > From: Xiubo Li [mailto:li.xi...@freescale.com] > Sent: Wednesday, April 16, 2014 10:20 AM > To: daniel.lezc...@linaro.org; t...@linutronix.de; shawn@linaro.org; Lu > Jingchang-B35083; Jin Zhengxiong-R64188; Wang Dongsheng-B40534 > Cc:

Re: [PATCH v2 8/8] sh: clk: Use cpufreq_for_each_valid_entry macro for iteration

2014-04-15 Thread Viresh Kumar
On 16 April 2014 06:54, Simon Horman wrote: > I have dropped this patch. > > Please let me know if there is a stable branch which > includes cpufreq_frequency_table which I can use as a base to apply > this patch. > > Alternatively, I would be happy to Ack this patch and let someone > else pick

Re: How do I increment a per-CPU variable without warning?

2014-04-15 Thread Paul E. McKenney
On Tue, Apr 15, 2014 at 03:47:26PM -0700, Paul E. McKenney wrote: > On Tue, Apr 15, 2014 at 06:29:51PM -0400, Dave Jones wrote: > > On Tue, Apr 15, 2014 at 03:17:55PM -0700, Paul E. McKenney wrote: > > > > > My current admittedly crude workaround is as follows: > > > > > > static inline bool

Re: [PATCH 3/4] x86/insn: Extract more information about instructions

2014-04-15 Thread H. Peter Anvin
On 04/15/2014 08:47 PM, Sasha Levin wrote: > > Yes, if kmemcheck for some reason needs to figure out if an instruction > is a MOV variant we'll need to list quite a few mnemonics, but that list > will be much shorter and more readable than a corresponding list of opcodes. > You're completely

Re: [PATCH 3/3] cgroup: implement cgroup.subtree_populated for the default hierarchy

2014-04-15 Thread Eric W. Biederman
Kay Sievers writes: > On Tue, Apr 15, 2014 at 7:48 PM, Li Zefan wrote: >> On 2014/4/15 5:44, Tejun Heo wrote: >>> cgroup users often need a way to determine when a cgroup's >>> subhierarchy becomes empty so that it can be cleaned up. cgroup >>> currently provides release_agent for it;

Re: [PATCHv2 1/2] iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC

2014-04-15 Thread Sachin Kamat
Hi Chanwoo, On 14 April 2014 14:37, Chanwoo Choi wrote: > This patch control special clock for ADC in Exynos series's FSYS block. > If special clock of ADC is registerd on clock list of common clk framework, > Exynos ADC drvier have to control this clock. > > Exynos3250/Exynos4/Exynos5 has 'adc'

Re: [PATCH 3/4] x86/insn: Extract more information about instructions

2014-04-15 Thread Sasha Levin
On 04/15/2014 11:26 PM, H. Peter Anvin wrote: > On 04/15/2014 08:10 AM, Sasha Levin wrote: >> >> Mnemonics don't have 1:1 relationship with opcodes. So, for example, >> if kmemcheck needs to check (and it does) whether a given instruction >> is an "ADD", it would need to compare it to 9 different

Re: [PATCH 2/2] net: Implement SO_PASSCGROUP to enable passing cgroup path

2014-04-15 Thread Andy Lutomirski
On Apr 15, 2014 5:20 PM, "Vivek Goyal" wrote: > > On Tue, Apr 15, 2014 at 02:53:13PM -0700, Andy Lutomirski wrote: > > On Tue, Apr 15, 2014 at 2:15 PM, Vivek Goyal wrote: > > > This patch implements socket option SO_PASSCGROUP along the lines of > > > SO_PASSCRED. > > > > > > If SO_PASSCGROUP is

RE: [RFC][PATCH 3/3] clocksource: Add Freescale FlexTimer Module (FTM) timer support

2014-04-15 Thread li.xi...@freescale.com
[...] > > +static void ftm_set_mode(enum clock_event_mode mode, > > + struct clock_event_device *evt) > > +{ > > + switch (mode) { > > + case CLOCK_EVT_MODE_PERIODIC: > > + ftm_set_next_event(peroidic_cyc, evt); > > + break; > > + default: > > +

Re: [PATCH 3/3] cgroup: implement cgroup.subtree_populated for the default hierarchy

2014-04-15 Thread Kay Sievers
On Tue, Apr 15, 2014 at 7:48 PM, Li Zefan wrote: > On 2014/4/15 5:44, Tejun Heo wrote: >> cgroup users often need a way to determine when a cgroup's >> subhierarchy becomes empty so that it can be cleaned up. cgroup >> currently provides release_agent for it; unfortunately, this mechanism >> is

Re: [PATCH 3/4] x86/insn: Extract more information about instructions

2014-04-15 Thread H. Peter Anvin
On 04/15/2014 08:10 AM, Sasha Levin wrote: > > Mnemonics don't have 1:1 relationship with opcodes. So, for example, > if kmemcheck needs to check (and it does) whether a given instruction > is an "ADD", it would need to compare it to 9 different opcodes. > Excuse me, but on what planet does,

[PATCH 2/2 v2] x86, MCE: Clean get_cpu_xxx with this_cpu_xxx

2014-04-15 Thread Chen, Gong
This is a cleanup patch suggested by Peter. Use new this_cpu_xxx to improve operation speed. v2 -> v1: Separate cleanup from bug fix. Signed-off-by: Chen, Gong Suggested-by: H. Peter Anvin --- arch/x86/kernel/cpu/mcheck/mce.c | 36 +--- 1 file changed, 17

[PATCH 1/2 v2] x86, MCE: Fix a bug in CMCI handler

2014-04-15 Thread Chen, Gong
This bug is introduced by me in commit 27f6c573e0. I forget to execute put_cpu_var operation after get_cpu_var. Fix it via this_cpu_write instead of get_cpu_var. v2 -> v1: Separate cleanup from bug fix. Signed-off-by: Chen, Gong Suggested-by: H. Peter Anvin ---

  1   2   3   4   5   6   7   8   9   10   >