[GIT PULL] s390 patches for 3.15-rc2

2014-04-15 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: An update to the oops output with additional information about the crash. The renameat2 system call is enabled. Two patches in reg

Re: [v2 PATCH 1/1] mtd: mtd_blkdevs: handle REQ_FLUSH request and do explicit flush of writeback buffer

2014-04-15 Thread Brian Norris
On Sat, Mar 08, 2014 at 09:59:14PM +0900, Roman Pen wrote: > From: Roman Peniaev > > mtd_blkdevs is device with volatile cache (writeback buffer), so it should > support > REQ_FLUSH to do explicit flush. > > Without this patch 'sync' does not guarantee that writeback buffer will be > flushed >

Re: [RFC 3/4] sched: fix computed capacity for HMP

2014-04-15 Thread Vincent Guittot
On 15 April 2014 19:22, Peter Zijlstra wrote: > On Fri, Mar 28, 2014 at 02:22:28PM +0100, Vincent Guittot wrote: >> The current sg_capacity solves the ghost cores issue for SMT system and >> cluster made of big cores which have a cpu_power above SCHED_POWER_SCALE at >> core level. But it still rem

Re: [PATCH v2] x86: hpet: Don't default CONFIG_HPET_TIMER to be y for X86_64

2014-04-15 Thread Ingo Molnar
* Feng Tang wrote: > On Tue, Apr 15, 2014 at 12:42:06PM +0200, Ingo Molnar wrote: > > > > * Feng Tang wrote: > > > > > On Tue, Apr 15, 2014 at 11:00:25AM +0200, Ingo Molnar wrote: > > > > > > > > * Feng Tang wrote: > > > > > > > > > Hi Ingo, > > > > > > > > > > On Fri, Mar 28, 2014 at 09:

Re: [GIT] kbuild/lto changes for 3.15-rc1

2014-04-15 Thread Ingo Molnar
* Markus Trippelsdorf wrote: > On 2014.04.15 at 20:19 +0200, Sam Ravnborg wrote: > > On Tue, Apr 15, 2014 at 01:36:02PM +0200, Markus Trippelsdorf wrote: > > > On 2014.04.15 at 13:19 +0200, Sam Ravnborg wrote: > > > > > > > > > > And while the code size reduction is less for MIPS than what othe

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

2014-04-15 Thread NeilBrown
On Wed, 16 Apr 2014 16:25:20 +1000 Dave Chinner wrote: > On Wed, Apr 16, 2014 at 02:03:37PM +1000, NeilBrown wrote: > > __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 requir

Re: [PATCH] dma: fix eDMA driver as a subsys_initcall

2014-04-15 Thread Vinod Koul
On Fri, Apr 04, 2014 at 12:27:55PM +0800, Yuan Yao wrote: > Because of some driver base on DMA, changed the initcall order as > subsys_initcall. Changelog could have mentioned "which" driver and elobrated on it > > Signed-off-by: Yuan Yao Applied, nevertheless -- ~Vinod > --- > drivers/dma/

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

2014-04-15 Thread Benjamin Herrenschmidt
On Wed, 2014-04-16 at 16:06 +1000, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, today's linux-next build (powerpc > ppc44x_defconfig) failed like this: > > arch/powerpc/platforms/44x/warp.c: In function 'warp_probe': > arch/powerpc/platforms/44x/warp.c:52:2: error: 'ISA_D

Re: [PATCH 2/2] nohz: use delayed iowait accounting to avoid race on idle time stats

2014-04-15 Thread Hidetoshi Seto
(2014/04/15 19:19), Peter Zijlstra wrote: > On Thu, Apr 10, 2014 at 06:13:54PM +0900, Hidetoshi Seto wrote: >> [WHAT THIS PATCH PROPOSED]: >> >> To fix problem 1, this patch adds seqcount for NO_HZ idle >> accounting to avoid possible races between reader/writer. >> >> And to cope with problem 2, I

linux-next: Tree for Apr 16

2014-04-15 Thread Stephen Rothwell
Hi all, This tree still fails (more than usual) the powerpc allyesconfig build. Changes since 20140415: New tree: berlin Undropped trees: akpm-current, akpm The powerpc tree still had its build failure. The sound-asoc tree still had one of its build failures so I used the version from next

Re: [PATCH 2/2] nohz: use delayed iowait accounting to avoid race on idle time stats

2014-04-15 Thread Hidetoshi Seto
(2014/04/15 19:04), Peter Zijlstra wrote: > On Thu, Apr 10, 2014 at 06:13:54PM +0900, Hidetoshi Seto wrote: >> This patch is v3 of patch set to fix an issue that idle/iowait >> of /proc/stat can go backward. Originally reported by Tetsuo and >> Fernando at last year, Mar 2013. >> >> [BACKGROUNDS]:

Re: [PATCH 1/1] driver/net: add missing rtnl lock/unlock for benet

2014-04-15 Thread Li, ZhenHua
Hi David, I think you are right. I checked other NIC drivers, found some of them call rtnl_lock and rtnl_unlock around netif_device_detach and attach functions, while some drivers did not. I will create a new patch in generic way to fix this. Regards ZhenHua On 04/16/2014 03:09 AM, David Mil

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

2014-04-15 Thread Dave Chinner
On Wed, Apr 16, 2014 at 04:04:59PM +1000, Dave Chinner wrote: > On Wed, Apr 16, 2014 at 02:03:36PM +1000, NeilBrown wrote: > > 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. > > Yes,

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 04:22:01PM +1000, NeilBrown wrote: > On Wed, 16 Apr 2014 15:49:42 +1000 Dave Chinner wrote: > > > 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 > > > > >

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

2014-04-15 Thread NeilBrown
On Wed, 16 Apr 2014 16:04:59 +1000 Dave Chinner wrote: > On Wed, Apr 16, 2014 at 02:03:36PM +1000, NeilBrown wrote: > > 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. > > Yes, that'

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

2014-04-15 Thread Dave Chinner
On Wed, Apr 16, 2014 at 02:03:37PM +1000, NeilBrown wrote: > __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. But

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

2014-04-15 Thread NeilBrown
On Wed, 16 Apr 2014 15:49:42 +1000 Dave Chinner wrote: > 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 whi

Re: [PATCH] mtd: nand: omap: fix compile warning on ‘erased_sector_bitflips’

2014-04-15 Thread Brian Norris
On Tue, Apr 15, 2014 at 03:58:56AM +, Pekon Gupta wrote: > >From: Jingoo Han [mailto:jg1@samsung.com] > >>On Tuesday, April 15, 2014 7:32 AM, Christian Engelmayer wrote: > >> > >> Commit 2c9f2365 (mtd: nand: omap: ecc.calculate: merge > >> omap3_calculate_ecc_bch4 > >> in omap_calculate_ec

[PATCH] w1: avoid recursive device_add

2014-04-15 Thread David Fries
__w1_attach_slave_device calls device_add which calls w1_bus_notify which calls the w1_bq27000 slave driver, which calls platform_device_add and device_add and deadlocks on getting &(&priv->bus_notifier)->rwsem as it is still held in the previous device_add. This avoids the problem by processing t

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

2014-04-15 Thread Dave Chinner
On Wed, Apr 16, 2014 at 02:03:37PM +1000, NeilBrown wrote: > 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

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

2014-04-15 Thread NeilBrown
On Wed, 16 Apr 2014 15:37:56 +1000 Dave Chinner wrote: > 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 f

Re: [PATCH] ARM: dts: imx6q-gk802: Enable HDMI

2014-04-15 Thread Shawn Guo
On Mon, Apr 14, 2014 at 08:15:53PM +0200, Philipp Zabel wrote: > This patch enables HDMI output on GK802 HDMI dongles. > > Signed-off-by: Philipp Zabel > --- > arch/arm/boot/dts/imx6q-gk802.dts | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6q-gk802.dts > b/

[PATCH RESEND] mfd: mc13xxx: Move definitions out of structures

2014-04-15 Thread Alexander Shiyan
Acked-by: Lee Jones Signed-off-by: Alexander Shiyan --- include/linux/mfd/mc13xxx.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/linux/mfd/mc13xxx.h b/include/linux/mfd/mc13xxx.h index a326c85..d63b1d3 100644 --- a/include/linux/mfd/mc13xxx

Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-15 Thread Alexandre Courbot
On Tue, Apr 15, 2014 at 11:20 PM, Maxime Ripard wrote: > Hi Chen-Yu, > > On Tue, Apr 15, 2014 at 02:41:35PM +0800, Chen-Yu Tsai wrote: >> This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO >> phandles by name only, through gpios/gpio-names, and not by index. > > IIRC, gpios only

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

2014-04-15 Thread li.xi...@freescale.com
> > --- a/arch/arm/boot/dts/vf610.dtsi > > +++ b/arch/arm/boot/dts/vf610.dtsi > > @@ -153,6 +153,19 @@ > > clock-names = "pit"; > > }; > > > > + ftm0: ftm@40038000 { > > + compatible = "fsl,vf610-ftm-timer";

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

2014-04-15 Thread Srivatsa S. Bhat
Paul Gortmaker reported the following build failure of the powernv cpufreq driver on UP configs: drivers/cpufreq/powernv-cpufreq.c:241:2: error: implicit declaration of function 'cpu_sibling_mask' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[3]: *** [driv

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

2014-04-15 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: arch/powerpc/platforms/44x/warp.c: In function 'warp_probe': arch/powerpc/platforms/44x/warp.c:52:2: error: 'ISA_DMA_THRESHOLD' undeclared (first use in this function) arch/powerpc/mm/dm

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

2014-04-15 Thread Dave Chinner
On Wed, Apr 16, 2014 at 02:03:36PM +1000, NeilBrown wrote: > 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. Yes, that's what reading data from disk requires. > So set PF_FSTRANS to ensur

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

2014-04-15 Thread Srivatsa S. Bhat
On 04/16/2014 11:25 AM, Viresh Kumar wrote: > 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: >> >> d

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 nouveau_accel_ini

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

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 t

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 wh

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

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 a/drivers/memory/

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

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 si

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

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 patch

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 flag

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

[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 3150b21..06798

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

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 w

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 the

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 = &per_cpu(rcu_cond_resched_count, > raw_

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

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 conne

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

回复: [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’: > driver

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 o

回复: [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 funct

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 s

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 t

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 r

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

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

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 befo

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 i

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 Gro

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 register

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 argum

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 have

[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 a/drivers

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 dri

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

[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 (0xffc0-0x)

[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 --- arch/arm/include/asm/kvm_mm

[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 deletions(-

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 we'll

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

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

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

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

[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. * lo

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 a/fs/nfsd/nfs4c

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

[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 [] get_de

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

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

[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 [] copy_

[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 a/

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

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

  1   2   3   4   5   6   7   8   9   10   >