[PATCH 0/4] minor blk-mq updates

2014-02-07 Thread Christoph Hellwig
Hi Jens, these small blk-mq core updates fell out of the scsi multiqueue work. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

[PATCH 2/4] blk-mq: divert __blk_put_request for MQ ops

2014-02-07 Thread Christoph Hellwig
__blk_put_request needs to call into the blk-mq code just like blk_put_request. As we don't have the queue lock in this case both end up calling the same function. Signed-off-by: Christoph Hellwig --- block/blk-core.c |5 + 1 file changed, 5 insertions(+) diff --git a/block/blk-core.c

Re: [PATCH] [RFC] timekeeping: Rework frequency adjustments to work better w/ nohz

2014-02-07 Thread John Stultz
On 02/07/2014 03:45 AM, Miroslav Lichvar wrote: > On Mon, Jan 06, 2014 at 07:57:03PM -0800, John Stultz wrote: >> Got a few cycles to take another look at this, and tried to address >> Miroslav's latest comments. Please let me know if you have further >> thoughts! > I've had finally some time to

Re: [PATCH] clk: respect the clock dependencies in of_clk_init

2014-02-07 Thread Emilio López
Hi, El 07/02/14 15:10, Gregory CLEMENT escribió: (snip) --- drivers/clk/mvebu/common.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/clk/mvebu/common.c b/drivers/clk/mvebu/common.c index 25ceccf..730625b 100644 --- a/drivers/clk/mvebu/common.c

Re: [PATCH v3 1/2] qspinlock: Introducing a 4-byte queue spinlock implementation

2014-02-07 Thread Paul E. McKenney
On Wed, Feb 05, 2014 at 10:10:34PM -0500, Waiman Long wrote: > On 02/03/2014 06:40 AM, Peter Zijlstra wrote: > >On Fri, Jan 31, 2014 at 02:24:33PM -0500, Waiman Long wrote: > >>Light contention is the only case where the qspinlock may not perform as > >>good as the ticket spinlock. I know this is

Re: [PATCH 3.5 36/88] spidev: fix hang when transfer_one_message fails

2014-02-07 Thread Daniel Santos
On 02/07/2014 05:22 AM, Luis Henriques wrote: 3.5.7.30 -stable review patch. If anyone has any objections, please let me know. -- From: Daniel Santos commit e120cc0dcf2880a4c5c0a6cb27b655600a1cfa1d upstream. This corrects a problem in spi_pump_messages() that leads to an

[PATCH] Modpost: fixed USB alias generation for ranges including 0x9 and 0xA

2014-02-07 Thread Jan Moskyto Matejka
Commit afe2dab4f6 ("USB: add hex/bcd detection to usb modalias generation") changed the routine that generates alias ranges. Before that change, only digits 0-9 were supported; the commit tried to fix the case when the range includes higher values than 0x9. Unfortunately, the commit didn't fix

Re: [patch] drop_caches: add some documentation and info message

2014-02-07 Thread Johannes Weiner
On Fri, Feb 07, 2014 at 12:55:37PM -0500, Rik van Riel wrote: > On 02/07/2014 12:40 PM, Johannes Weiner wrote: > > >@@ -59,6 +60,9 @@ int drop_caches_sysctl_handler(ctl_table *table, int write, > > if (ret) > > return ret; > > if (write) { > >+

Re: [RFC, PATCH] mm: map few pages around fault address if they are in page cache

2014-02-07 Thread Andi Kleen
> > There are some extreme cases where workloads could use a lot more memory > > than before, if they access their memory sparsely in the right pattern. > > Have you noticied that we don't actually allocate any memory: only reuse > what's already there. Sure, it will increase VmSize, but do we

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Mark Brown
On Fri, Feb 07, 2014 at 11:46:43AM -0600, Josh Cartwright wrote: > On Fri, Feb 07, 2014 at 05:31:08PM +, Mark Brown wrote: > > That's not ARM only and I thought we were getting generic versions of it > > anyway? ARMv8, MIPS, Microblaze, Hexagon and SH also define it. > Okay, that's fair.

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Mark Brown
On Fri, Feb 07, 2014 at 11:32:07AM -0600, Andy Gross wrote: > On Fri, Feb 07, 2014 at 11:52:33AM +0200, Ivan T. Ivanov wrote: To repeat what I said in my earlier e-mail please delete irrelevant context from your mails so any new content you are including is discoverable. > > Did you see any

Re: [PATCH] clk: respect the clock dependencies in of_clk_init

2014-02-07 Thread Gregory CLEMENT
On 07/02/2014 17:16, Emilio López wrote: > Hi Gregory, > > El 07/02/14 12:12, Gregory CLEMENT escribió: >> On 07/02/2014 16:00, Emilio López wrote: >>> El 07/02/14 11:49, Gregory CLEMENT escribió: On 07/02/2014 15:43, Ezequiel Garcia wrote: > On Fri, Feb 07, 2014 at 09:24:30AM -0500,

Re: [GIT PULL] irqchip: dove: drivers for v3.14

2014-02-07 Thread Jason Cooper
On Tue, Feb 04, 2014 at 10:30:53PM +0100, Thomas Gleixner wrote: > On Tue, 4 Feb 2014, Jason Cooper wrote: > > > On Tue, Feb 04, 2014 at 07:59:58PM +0100, Thomas Gleixner wrote: > > > On Tue, 28 Jan 2014, Jason Cooper wrote: > > > > I see you pulled in mvebu/irqchip-fixes. Thanks for that. It's

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-07 Thread Paul E. McKenney
On Fri, Feb 07, 2014 at 05:13:36PM +, Will Deacon wrote: > On Fri, Feb 07, 2014 at 05:06:54PM +, Peter Zijlstra wrote: > > On Fri, Feb 07, 2014 at 04:55:48PM +, Will Deacon wrote: > > > Hi Paul, > > > > > > On Fri, Feb 07, 2014 at 04:50:28PM +, Paul E. McKenney wrote: > > > > On

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-07 Thread Paul E. McKenney
On Fri, Feb 07, 2014 at 04:55:48PM +, Will Deacon wrote: > Hi Paul, > > On Fri, Feb 07, 2014 at 04:50:28PM +, Paul E. McKenney wrote: > > On Fri, Feb 07, 2014 at 08:44:05AM +0100, Peter Zijlstra wrote: > > > On Thu, Feb 06, 2014 at 08:20:51PM -0800, Paul E. McKenney wrote: > > > >

Re: [PATCH] staging: ced1401: fix coding style in ced_ioc.c (resend)

2014-02-07 Thread Greg KH
On Wed, Jan 15, 2014 at 10:37:13PM +0100, Pol Eyschen wrote: > Fixed checkpatch.pl issues and removed redundant comment in ced_ioc.cs > > Signed-off-by: Pol Eyschen > --- > drivers/staging/ced1401/ced_ioc.c | 483 > + > 1 file changed, 271 insertions(+),

[GIT PULL] hwmon fixes for 3.14-rc2

2014-02-07 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux 3.14-rc2 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus Thanks, Guenter -- The following changes since commit 38dbfb59d1175ef458d006556061adeaa8751b72: Linus 3.14-rc1 (2014-02-02

Re: [patch] drop_caches: add some documentation and info message

2014-02-07 Thread Rik van Riel
On 02/07/2014 12:40 PM, Johannes Weiner wrote: @@ -59,6 +60,9 @@ int drop_caches_sysctl_handler(ctl_table *table, int write, if (ret) return ret; if (write) { + printk_ratelimited(KERN_INFO "%s (%d): dropped kernel caches: %d\n", +

Re: [PATCH] time/cpuidle:Fixup fallout from hrtimer broadcast mode inclusion

2014-02-07 Thread Thomas Gleixner
On Fri, 7 Feb 2014, Preeti U Murthy wrote: > The broadcast timer registration has to be done only when > GENERIC_CLOCKEVENTS_BROADCAST and TICK_ONESHOT config options are enabled. Then we should compile that file only when those options are enabled. Where is the point to compile that code w/o

Re: [RFC, PATCH] mm: map few pages around fault address if they are in page cache

2014-02-07 Thread Kirill A. Shutemov
On Fri, Feb 07, 2014 at 09:32:00AM -0800, Andi Kleen wrote: > > I haven't tested it much, but my kvm boots. There're few places where code > > should be fixed. __do_fault() and filemap_fault() are too ugly and need to > > be cleaned. > > > > I don't have any performance data yet. > > > > Any

Re: Subject: Warning in workqueue.c

2014-02-07 Thread Jason J. Herne
On 02/07/2014 11:51 AM, Tejun Heo wrote: Hello, (cc'ing Lai as he knows a lot of workqueue code and quoting the whole body for him) Hmmm my memory is a bit rusty and nothing rings a bell immediately. Can you please try the patch at the end of this message and report the debug message?

Re: [PATCH v2] powerpc ticket locks

2014-02-07 Thread Torsten Duwe
On Fri, Feb 07, 2014 at 06:12:24PM +0100, Peter Zijlstra wrote: > On Fri, Feb 07, 2014 at 05:58:01PM +0100, Torsten Duwe wrote: > > +static __always_inline void arch_spin_lock(arch_spinlock_t *lock) > > { > > + register struct __raw_tickets old, tmp, > > + inc = { .tail =

Re: [PATCH v2] ARM: at91: add Atmel's SAMA5D3 Xplained board

2014-02-07 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:37 Fri 07 Feb , Nicolas Ferre wrote: > On 07/02/2014 09:01, Jean-Christophe PLAGNIOL-VILLARD : > > On 09:35 Wed 05 Feb , Nicolas Ferre wrote: > >> Add DT file for new SAMA5D3 Xpained board. > >> This board is based on Atmel's SAMA5D36 Cortex-A5 SoC. > >> > >> Signed-off-by: Nicolas

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Josh Cartwright
On Fri, Feb 07, 2014 at 05:31:08PM +, Mark Brown wrote: > On Fri, Feb 07, 2014 at 11:20:51AM -0600, Josh Cartwright wrote: > > On Fri, Feb 07, 2014 at 05:18:34PM +, Mark Brown wrote: > > > On Fri, Feb 07, 2014 at 10:51:27AM -0600, Josh Cartwright wrote: > > > > config SPI_QUP > > >

Re: [cgroup] BUG: unable to handle kernel NULL pointer dereference at 0000000000000080

2014-02-07 Thread Tejun Heo
Hello, Fengguang. On Fri, Feb 07, 2014 at 10:33:33AM +0800, Fengguang Wu wrote: > Tejun, > > Here is another bisect. > > The first bad commit could be any of: > 5a87728c4502d0a99f53346545605360fce1e91e cgroup: factor out > cgroup_setup_root() from cgroup_mount() >

Re: [PATCH 01/26] drivers: isdn: Rectify typing error in xdi_msg.h

2014-02-07 Thread Sergei Shtylyov
Hello. On 02/07/2014 03:18 PM, Rashika Kheria wrote: Rectify typing error while including the guard for the header file xdi_msg.h so that proper guard is wrapped around the file to prevent it from being included more than once. Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-07 Thread Joseph S. Myers
On Fri, 7 Feb 2014, Peter Zijlstra wrote: > There's further problems where things like memset() can write outside > the specified address range. Examples are memset() using single > instructions to wipe entire cachelines and then 'restoring' the tail > bit. If memset (or any C library function)

Re: 3.13.0: crash on boot

2014-02-07 Thread Borislav Petkov
On Fri, Feb 07, 2014 at 09:26:18PM +0400, Alexandra N. Kossovsky wrote: > On Feb 07 15:44, Borislav Petkov wrote: > > On Fri, Feb 07, 2014 at 01:00:45PM +0400, Alexandra N. Kossovsky wrote: > > > > Btw, did this box boot any kernels successfully in EFI mode at all? > > > > > > Yes. It booted,

Re: mmotm 2014-02-05 list_lru_add lockdep splat

2014-02-07 Thread Johannes Weiner
On Thu, Feb 06, 2014 at 02:18:24PM -0800, Hugh Dickins wrote: > On Thu, 6 Feb 2014, Johannes Weiner wrote: > > On Wed, Feb 05, 2014 at 07:50:10PM -0800, Hugh Dickins wrote: > > > == > > > [ INFO: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected

Re: [PATCH 19/26] drivers: isdn: Move prototype declaration to header file platform.h from diva_didd.c

2014-02-07 Thread Josh Triplett
On Fri, Feb 07, 2014 at 05:22:58PM +, David Laight wrote: > From: Josh Triplett > > On Fri, Feb 07, 2014 at 01:33:46PM +, David Laight wrote: > > > From: Rashika Kheria > > > > Move prototype declarations of function to header file > > > > hardware/eicon/platform.h because they are used by

Re: [PATCH v2 RESEND 6/8] staging/lustre/obdclass: remove extra break in class_process_config

2014-02-07 Thread Greg Kroah-Hartman
On Wed, Jan 22, 2014 at 09:36:17PM +0800, Peng Tao wrote: > From: Artem Blagodarenko > > This is only part of the original Lustre commit, splitted to do the > cleanup work. > > Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3155 > Lustre-change: http://review.whamcloud.com/6025 >

[patch] drop_caches: add some documentation and info message

2014-02-07 Thread Johannes Weiner
From: Dave Hansen There is plenty of anecdotal evidence and a load of blog posts suggesting that using "drop_caches" periodically keeps your system running in "tip top shape". Perhaps adding some kernel documentation will increase the amount of accurate data on its use. If we are not shrinking

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Mark Brown
On Fri, Feb 07, 2014 at 11:20:51AM -0600, Josh Cartwright wrote: > On Fri, Feb 07, 2014 at 05:18:34PM +, Mark Brown wrote: > > On Fri, Feb 07, 2014 at 10:51:27AM -0600, Josh Cartwright wrote: > > > config SPI_QUP > > > tristate "Qualcomm SPI Support with QUP interface" > > >

Re: [PATCH v2 0/3] Deferrable timers support for timerfd API

2014-02-07 Thread Alexey Perevalov
On 02/07/2014 12:50 AM, Thomas Gleixner wrote: On Thu, 6 Feb 2014, Alexey Perevalov wrote: On 02/06/2014 02:16 AM, Thomas Gleixner wrote: As I truly understand, you decided - flags is better than new clockids, and internals of timerfd could be a mix of timer_list and hrtimer. NO, NO, NO, NO.

Re: [PATCH 01/13] vfs: add d_is_dir()

2014-02-07 Thread J. Bruce Fields
On Fri, Feb 07, 2014 at 05:48:59PM +0100, Miklos Szeredi wrote: > From: Miklos Szeredi > > Add d_is_dir(dentry) helper which is analogous to S_ISDIR(). While trying to get up to speed I notice that these flags were introduced by b18825a7c8e37a7cf6abb97a12a6ad71af160de7 "VFS: Put a small type

Re: [PATCHv2 0/7] Staging fixes from the Android tree (for 3.14)

2014-02-07 Thread Greg KH
On Fri, Feb 07, 2014 at 09:16:46AM -0800, John Stultz wrote: > On 02/07/2014 09:03 AM, Greg KH wrote: > > On Tue, Feb 04, 2014 at 04:08:33PM -0800, John Stultz wrote: > >> I recently went through the AOSP common.git android/3.10 tree to > >> try to pull fixes that haven't been submitted upstream.

[GIT PULL] arm64 fixes for 3.14

2014-02-07 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below for 3.14. Thanks. The following changes since commit 38dbfb59d1175ef458d006556061adeaa8751b72: Linus 3.14-rc1 (2014-02-02 16:42:13 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Andy Gross
On Fri, Feb 07, 2014 at 11:52:33AM +0200, Ivan T. Ivanov wrote: > > Hi Andy, > > On Fri, 2014-02-07 at 01:39 -0600, Andy Gross wrote: > > On Thu, Feb 06, 2014 at 06:57:48PM +0200, Ivan T. Ivanov wrote: > > > From: "Ivan T. Ivanov" > > > > > > Qualcomm Universal Peripheral (QUP) core is an AHB

[PATCH] time/cpuidle:Fixup fallout from hrtimer broadcast mode inclusion

2014-02-07 Thread Preeti U Murthy
The broadcast timer registration has to be done only when GENERIC_CLOCKEVENTS_BROADCAST and TICK_ONESHOT config options are enabled. Also fix max_delta_ticks value for the pseudo clock device. Reported-by: Fengguang Wu Signed-off-by: Preeti U Murthy Cc: Thomas Gleixner Cc: Ingo Molnar ---

RE: [PATCH 19/26] drivers: isdn: Move prototype declaration to header file platform.h from diva_didd.c

2014-02-07 Thread David Laight
From: Josh Triplett > On Fri, Feb 07, 2014 at 01:33:46PM +, David Laight wrote: > > From: Rashika Kheria > > > Move prototype declarations of function to header file > > > hardware/eicon/platform.h because they are used by more than one file. > > > > > > This eliminates the following warnings

Re: [RFC, PATCH] mm: map few pages around fault address if they are in page cache

2014-02-07 Thread Andi Kleen
> I haven't tested it much, but my kvm boots. There're few places where code > should be fixed. __do_fault() and filemap_fault() are too ugly and need to > be cleaned. > > I don't have any performance data yet. > > Any thoughts? It seems very drastic to do it unconditionally. How about at least

Re: [PATCH v2 3/4] Regulators: TPS65218: Add Regulator driver for TPS65218 PMIC

2014-02-07 Thread Mark Brown
On Fri, Feb 07, 2014 at 07:28:29PM +0530, Keerthy wrote: > On Thursday 06 February 2014 11:20 AM, Keerthy wrote: > If there are no further comments on this could you > please pull this? You've sent this mail a day after sending the original patch, don't do that. signature.asc Description:

Re: [PATCH 1/3] sound: Include appropriate header file in pcsp/pcsp_input.c

2014-02-07 Thread Takashi Iwai
At Fri, 7 Feb 2014 22:11:53 +0530, Rashika Kheria wrote: > > Include appropriate header file in drivers/pcsp/pcsp_input.c because it > defines function whose prototype definitions are present in > drivers/pcsp/pcsp_input.h. > > This eliminates the following warning in drivers/pcsp/pcsp_input.c:

Re: [PATCH 3/3] sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c

2014-02-07 Thread Josh Triplett
On Fri, Feb 07, 2014 at 10:16:31PM +0530, Rashika Kheria wrote: > Move prototype declaration of function to header file oss/pas2.h > from oss/pas2_card.c because it is used by more than one file. > > This eliminates the following warnings in oss/pas2_mixer.c: > sound/oss/pas2_mixer.c:62:1:

Re: [PATCH 2/3] sound: Remove unused function in pci/lx6464es/lx_core.c

2014-02-07 Thread Josh Triplett
On Fri, Feb 07, 2014 at 10:14:03PM +0530, Rashika Kheria wrote: > Remove unused function in pci/lx6464es/lx_core.c. > > This eliminates the following warning in pci/lx6464es/lx_core.c: > sound/pci/lx6464es/lx_core.c:144:5: warning: no previous prototype for > ‘lx_plx_mbox_read’

Re: [linux-sunxi] Re: [PATCH] irq: Add new flag to ack level-triggered interrupts before unmasking

2014-02-07 Thread Thomas Gleixner
On Fri, 7 Feb 2014, Carlo Caione wrote: > Yeah, no really difference between threaded and non threaded. > For the record, from a mail exchange with Allwinner's engineers: "the > NMI module is a signal conversion module. It catches the NMI pin's > state and generates irq to GIC", so GIC does not

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Josh Cartwright
Hey Mark- On Fri, Feb 07, 2014 at 05:18:34PM +, Mark Brown wrote: > On Fri, Feb 07, 2014 at 10:51:27AM -0600, Josh Cartwright wrote: > > > config SPI_QUP > > tristate "Qualcomm SPI Support with QUP interface" > > depends on OF > > depends on ARM > >

Re: [PATCH] dma-buf: avoid using IS_ERR_OR_NULL

2014-02-07 Thread Colin Cross
On Fri, Feb 7, 2014 at 8:43 AM, Greg Kroah-Hartman wrote: > On Sat, Dec 21, 2013 at 07:42:17AM -0500, Rob Clark wrote: >> On Fri, Dec 20, 2013 at 7:43 PM, Colin Cross wrote: >> > dma_buf_map_attachment and dma_buf_vmap can return NULL or >> > ERR_PTR on a error. This encourages a common buggy

Re: [PATCH 1/3] sound: Include appropriate header file in pcsp/pcsp_input.c

2014-02-07 Thread Josh Triplett
On Fri, Feb 07, 2014 at 10:11:53PM +0530, Rashika Kheria wrote: > Include appropriate header file in drivers/pcsp/pcsp_input.c because it > defines function whose prototype definitions are present in > drivers/pcsp/pcsp_input.h. > > This eliminates the following warning in

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-07 Thread Peter Zijlstra
On Fri, Feb 07, 2014 at 05:13:36PM +, Will Deacon wrote: > Understood, but that doesn't explain why Paul wants to add ISB/isync > instructions which affect the *CPU* rather than the compiler! I doubt Paul wants it, but yeah, I'm curious about that proposal as well, sounds like someone took a

Re: [GIT PULL] at91: fixes for 3.14 #1

2014-02-07 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:36 Fri 07 Feb , Nicolas Ferre wrote: > Arnd, Olof, Kevin, > > This is a first "fixes" series for AT91 on 3.14. > The content is only DT-related and quite boring. > I took the opportunity of this early "fixes" pull-request to collect > some Documentation patches that were lying around

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Mark Brown
On Fri, Feb 07, 2014 at 10:51:27AM -0600, Josh Cartwright wrote: > config SPI_QUP > tristate "Qualcomm SPI Support with QUP interface" > depends on OF > depends on ARM Does this really depend on ARM? If so why? > depends on

Re: [PATCH] Convert powerpc simple spinlocks into ticket locks

2014-02-07 Thread Peter Zijlstra
On Fri, Feb 07, 2014 at 06:08:45PM +0100, Torsten Duwe wrote: > > static inline unsigned int xadd(unsigned int *v, unsigned int i) > > { > > int t, ret; > > > > __asm__ __volatile__ ( > > "1: lwarx %0, 0, %4\n" > > " mr %1, %0\n" > > " add %0, %3, %0\n" > > " stwcx.

Re: [PATCHv2 0/7] Staging fixes from the Android tree (for 3.14)

2014-02-07 Thread John Stultz
On 02/07/2014 09:03 AM, Greg KH wrote: > On Tue, Feb 04, 2014 at 04:08:33PM -0800, John Stultz wrote: >> I recently went through the AOSP common.git android/3.10 tree to >> try to pull fixes that haven't been submitted upstream. I've >> cherry picked those patches and submitted them for 3.15, but

[PATCH] Makefile: Unset stack-protector gcc flag if it is not supported

2014-02-07 Thread Markos Chandras
In case the compiler does not support the stack-protector option, unset the flag to avoid build failures. Printing a warning is enough to let the user know that this flag will not be used. Fixes the following build problem when using a toolchain which does not support the -fstack-protector-strong

Re: [PATCH 19/26] drivers: isdn: Move prototype declaration to header file platform.h from diva_didd.c

2014-02-07 Thread Josh Triplett
On Fri, Feb 07, 2014 at 01:33:46PM +, David Laight wrote: > From: Rashika Kheria > > Move prototype declarations of function to header file > > hardware/eicon/platform.h because they are used by more than one file. > > > > This eliminates the following warnings in hardware/eicon/diddfunc.c: >

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-07 Thread Will Deacon
On Fri, Feb 07, 2014 at 05:06:54PM +, Peter Zijlstra wrote: > On Fri, Feb 07, 2014 at 04:55:48PM +, Will Deacon wrote: > > Hi Paul, > > > > On Fri, Feb 07, 2014 at 04:50:28PM +, Paul E. McKenney wrote: > > > On Fri, Feb 07, 2014 at 08:44:05AM +0100, Peter Zijlstra wrote: > > > > On

Re: [PATCH v2] powerpc ticket locks

2014-02-07 Thread Peter Zijlstra
On Fri, Feb 07, 2014 at 05:58:01PM +0100, Torsten Duwe wrote: > +static __always_inline void arch_spin_lock(arch_spinlock_t *lock) > { > + register struct __raw_tickets old, tmp, > + inc = { .tail = TICKET_LOCK_INC }; > + > CLEAR_IO_SYNC; > + __asm__ __volatile__( > +"1:

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Mark Brown
On Thu, Feb 06, 2014 at 06:57:48PM +0200, Ivan T. Ivanov wrote: This looks mostly good, there's a few odd things and missing use of framework features. > Qualcomm Universal Peripheral (QUP) core is an AHB slave that > provides a common data path (an output FIFO and an input FIFO) > for serial

[patch 6/8] memcg: get_mem_cgroup_from_mm()

2014-02-07 Thread Johannes Weiner
Instead of returning NULL from try_get_mem_cgroup_from_mm() when the mm owner is exiting, just return root_mem_cgroup. This makes sense for all callsites and gets rid of some of them having to fallback manually. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 18 -- 1 file

[patch 2/8] mm: memcg: remove mem_cgroup_move_account_page_stat()

2014-02-07 Thread Johannes Weiner
It used to disable preemption and run sanity checks but now it's only taking a number out of one percpu counter and putting it into another. Do this directly in the callsite and save the indirection. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 28 1 file

[patch 1/8] mm: memcg: remove unnecessary preemption disabling

2014-02-07 Thread Johannes Weiner
lock_page_cgroup() disables preemption, remove explicit preemption disabling for code paths holding this lock. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index

[patch 4/8] memcg: !memcg && !mm is not allowed for __mem_cgroup_try_charge

2014-02-07 Thread Johannes Weiner
From: Michal Hocko An ancient comment tries to explain that a given mm might be NULL when a task is migrated. It has been introduced by 8a9f3ccd (Memory controller: memory accounting) along with other bigger changes so it is not much more specific about the conditions. Anyway, Even if the task

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-07 Thread Peter Zijlstra
On Fri, Feb 07, 2014 at 04:55:48PM +, Will Deacon wrote: > Hi Paul, > > On Fri, Feb 07, 2014 at 04:50:28PM +, Paul E. McKenney wrote: > > On Fri, Feb 07, 2014 at 08:44:05AM +0100, Peter Zijlstra wrote: > > > On Thu, Feb 06, 2014 at 08:20:51PM -0800, Paul E. McKenney wrote: > > > >

Re: [patch 0/8] memcg: charge path cleanups

2014-02-07 Thread Michal Hocko
On Fri 07-02-14 12:04:17, Johannes Weiner wrote: > Hi Michal, > > I took some of your patches and combined them with the charge path > cleanups I already had and the changes I made after our discussion. > > I'm really happy about where this is going: > > mm/memcontrol.c | 298

Re: [RFC PATCH] ARM: Add imprecise abort enable/disable macro

2014-02-07 Thread Will Deacon
On Fri, Feb 07, 2014 at 04:19:15PM +, Fabrice GASNIER wrote: > This patch adds imprecise abort enable/disable macros. > It also enables imprecise aborts when starting kernel. > > Signed-off-by: Fabrice Gasnier > --- > arch/arm/include/asm/irqflags.h | 33 +

Re: [PATCH] Convert powerpc simple spinlocks into ticket locks

2014-02-07 Thread Torsten Duwe
On Fri, Feb 07, 2014 at 04:18:47PM +0100, Peter Zijlstra wrote: > On Fri, Feb 07, 2014 at 01:28:37PM +0100, Peter Zijlstra wrote: > > Anyway, you can do a version with lwarx/stwcx if you're looking get rid > > of lharx. > > the below seems to compile into relatively ok asm. It can be done better

[patch 0/8] memcg: charge path cleanups

2014-02-07 Thread Johannes Weiner
Hi Michal, I took some of your patches and combined them with the charge path cleanups I already had and the changes I made after our discussion. I'm really happy about where this is going: mm/memcontrol.c | 298 -- 1 file changed, 87

[patch 7/8] memcg: do not replicate get_mem_cgroup_from_mm in __mem_cgroup_try_charge

2014-02-07 Thread Johannes Weiner
From: Michal Hocko __mem_cgroup_try_charge duplicates get_mem_cgroup_from_mm for charges which came without a memcg. The only reason seems to be a tiny optimization when css_tryget is not called if the charge can be consumed from the stock. Nevertheless css_tryget is very cheap since it has been

[patch 5/8] memcg: remove unnecessary !mm check from try_get_mem_cgroup_from_mm()

2014-02-07 Thread Johannes Weiner
Users pass either a mm that has been established under task lock, or use a verified current->mm, which means the task can't be exiting. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index

[patch 8/8] memcg: sanitize __mem_cgroup_try_charge() call protocol

2014-02-07 Thread Johannes Weiner
Some callsites pass a memcg directly, some callsites pass a mm that first has to be translated to an mm. This makes for a terrible function interface. Just push the mm-to-memcg translation into the respective callsites and always pass a memcg to mem_cgroup_try_charge(). Signed-off-by: Johannes

[patch 3/8] memcg: update comment about charge reparenting on cgroup exit

2014-02-07 Thread Johannes Weiner
Reparenting memory charges in the css_free() callback was meant as a temporary fix for charges that race with offlining, but after some follow-up discussion, it turns out that this is really the right place to reparent charges because it guarantees none are in-flight. Make clear that the

Re: [PATCHv2 0/7] Staging fixes from the Android tree (for 3.14)

2014-02-07 Thread Greg KH
On Tue, Feb 04, 2014 at 04:08:33PM -0800, John Stultz wrote: > I recently went through the AOSP common.git android/3.10 tree to > try to pull fixes that haven't been submitted upstream. I've > cherry picked those patches and submitted them for 3.15, but > Greg requested the bugfixes to be

[PATCH RFC/RFT v2 0/8] drivers: cacheinfo support

2014-02-07 Thread Sudeep Holla
From: Sudeep Holla Hi, This series adds a generic cacheinfo support similar to topology. The implementation is based on x86 cacheinfo support. Currently x86, powerpc, ia64 and s390 have their own implementations. While adding similar support to ARM and ARM64, here is the attempt to make it

[PATCH v2] powerpc ticket locks

2014-02-07 Thread Torsten Duwe
Ticket locks for ppc, version 2. Changes since v1: * The atomically exchanged entity is always 32 bits. * asm inline string variations thus removed. * Carry the additional holder hint only #if defined(CONFIG_PPC_SPLPAR) Signed-off-by: Torsten Duwe -- arch/powerpc/include/asm/spinlock_types.h |

[PATCH 03/13] vfs: rename: use common code for dir and non-dir

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi There's actually very little difference between vfs_rename_dir() and vfs_rename_other() so move both inline into vfs_rename() which still stays reasonably readable. Signed-off-by: Miklos Szeredi --- fs/namei.c | 187

[PATCH 01/13] vfs: add d_is_dir()

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi Add d_is_dir(dentry) helper which is analogous to S_ISDIR(). To avoid confusion, rename d_is_directory() to d_can_lookup(). Signed-off-by: Miklos Szeredi --- fs/namei.c | 23 +++ include/linux/dcache.h | 7 ++- 2 files changed, 17

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-07 Thread Will Deacon
Hi Paul, On Fri, Feb 07, 2014 at 04:50:28PM +, Paul E. McKenney wrote: > On Fri, Feb 07, 2014 at 08:44:05AM +0100, Peter Zijlstra wrote: > > On Thu, Feb 06, 2014 at 08:20:51PM -0800, Paul E. McKenney wrote: > > > Hopefully some discussion of out-of-thin-air values as well. > > > > Yes,

[PATCH 00/13] cross rename v4

2014-02-07 Thread Miklos Szeredi
Changes since the last version (based on Al's review): - cross-rename: fix locking of nondirectories for NFSv4 - ext4: split cross-rename and plain rename into separate functions - introduce i_op->rename2 with flags, don't touch ->rename - last (optional) patch to merge ->rename2 back into

[PATCH 04/13] vfs: add renameat2 syscall

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi Add new renameat2 syscall, which is the same as renameat with an added flags argument. Pass flags to vfs_rename() and to i_op->rename() as well. Signed-off-by: Miklos Szeredi --- Documentation/filesystems/Locking | 6 +++-

[PATCH 3/3] sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c

2014-02-07 Thread Rashika Kheria
Move prototype declaration of function to header file oss/pas2.h from oss/pas2_card.c because it is used by more than one file. This eliminates the following warnings in oss/pas2_mixer.c: sound/oss/pas2_mixer.c:62:1: warning: no previous prototype for ‘mix_write’ [-Wmissing-prototypes]

Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support

2014-02-07 Thread Josh Cartwright
On Fri, Feb 07, 2014 at 01:39:52AM -0600, Andy Gross wrote: > On Thu, Feb 06, 2014 at 06:57:48PM +0200, Ivan T. Ivanov wrote: > > From: "Ivan T. Ivanov" > > > > Qualcomm Universal Peripheral (QUP) core is an AHB slave that > > provides a common data path (an output FIFO and an input FIFO) > >

[PATCH 02/13] vfs: rename: move d_move() up

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi Move the d_move() in vfs_rename_dir() up, similarly to how it's done in vfs_rename_other(). The next patch will consolidate these two functions and this is the only structural difference between them. I'm not sure if doing the d_move() after the dput is even valid. But

[PATCH 05/13] vfs: add RENAME_NOREPLACE flag

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi If this flag is specified and the target of the rename exists then the rename syscall fails with EEXIST. The VFS does the existence checking, so it is trivial to enable for most local filesystems. This patch only enables it in ext4. For network filesystems the VFS check

[PATCH 06/13] security: add flags to rename hooks

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi Add flags to security_path_rename() and security_inode_rename() hooks. Signed-off-by: Miklos Szeredi --- fs/cachefiles/namei.c| 2 +- fs/namei.c | 5 +++-- include/linux/security.h | 12 security/security.c | 6 -- 4 files

[PATCH 08/13] vfs: add cross-rename

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi If flags contain RENAME_EXCHANGE then exchange source and destination files. There's no restriction on the type of the files; e.g. a directory can be exchanged with a symlink. Signed-off-by: Miklos Szeredi Reviewed-by: Jan Kara --- fs/dcache.c | 45

[PATCH 09/13] ext4: rename: create ext4_renament structure for local vars

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi Need to split up ext4_rename() into helpers but there are too many local variables involved, so create a new structure. This also, apparently, makes the generated code size slightly smaller. Signed-off-by: Miklos Szeredi Reviewed-by: Jan Kara --- fs/ext4/namei.c | 211

[PATCH 12/13] ext4: add cross rename support

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi Implement RENAME_EXCHANGE flag in renameat2 syscall. Signed-off-by: Miklos Szeredi --- fs/ext4/namei.c | 139 +++- 1 file changed, 138 insertions(+), 1 deletion(-) diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index

[PATCH RFC/RFT v2 8/8] ARM: kernel: add outer cache support for cacheinfo implementation

2014-02-07 Thread Sudeep Holla
From: Sudeep Holla In order to support outer cache in the cacheinfo infrastructure, a new function 'get_info' is added to outer_cache_fns. This function is used to get the outer cache information namely: line size, number of ways of associativity and number of sets. This patch adds 'get_info'

[PATCH 07/13] vfs: lock_two_nondirectories: allow directory args

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi lock_two_nondirectories warned if either of its args was a directory. Instead just ignore the directory args. This is needed for locking in cross rename. Signed-off-by: Miklos Szeredi --- fs/inode.c | 20 1 file changed, 12 insertions(+), 8

[PATCH 10/13] ext4: rename: move EMLINK check up

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi Move checking i_nlink from after ext4_get_first_dir_block() to before. The check doesn't rely on the result of that function and the function only fails on fs corruption, so the order shouldn't matter. Signed-off-by: Miklos Szeredi Reviewed-by: Jan Kara ---

[PATCH RFC/RFT v2 4/8] x86: move cacheinfo sysfs to generic cacheinfo infrastructure

2014-02-07 Thread Sudeep Holla
From: Sudeep Holla This patch removes the redundant sysfs cacheinfo code by making use of the newly introduced generic cacheinfo infrastructure. The private pointer provided by the cache_info is used to implement the AMD L3 cache specific attributes. Signed-off-by: Sudeep Holla Cc: Thomas

[PATCH RFC/RFT v2 7/8] ARM: kernel: add support for cpu cache information

2014-02-07 Thread Sudeep Holla
From: Sudeep Holla This patch adds support for cacheinfo on ARM platforms. On ARMv7, the cache hierarchy can be identified through Cache Level ID register(CLIDR) while the cache geometry is provided by Cache Size ID register(CCSIDR). On architecture versions before ARMv7, CLIDR and CCSIDR is

[PATCH RFC/RFT v2 1/8] drivers: base: support cpu cache information interface to userspace via sysfs

2014-02-07 Thread Sudeep Holla
From: Sudeep Holla This patch adds initial support for providing processor cache information to userspace through sysfs interface. This is based on already existing implementations(x86, ia64, s390 and powerpc) and hence the interface is intended to be fully compatible. The main purpose of this

Re: Subject: Warning in workqueue.c

2014-02-07 Thread Tejun Heo
Hello, (cc'ing Lai as he knows a lot of workqueue code and quoting the whole body for him) Hmmm my memory is a bit rusty and nothing rings a bell immediately. Can you please try the patch at the end of this message and report the debug message? Let's first find out what's going on. Thanks

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-07 Thread Paul E. McKenney
On Fri, Feb 07, 2014 at 08:44:05AM +0100, Peter Zijlstra wrote: > On Thu, Feb 06, 2014 at 08:20:51PM -0800, Paul E. McKenney wrote: > > Hopefully some discussion of out-of-thin-air values as well. > > Yes, absolutely shoot store speculation in the head already. Then drive > a wooden stake through

[PATCH 13/13] vfs: merge rename2 into rename

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi This merges i_op->rename2 back into ->rename. Signed-off-by: Miklos Szeredi --- Documentation/filesystems/Locking | 6 +- Documentation/filesystems/vfs.txt | 8 ++-- drivers/staging/lustre/lustre/llite/namei.c | 3 ++- fs/9p/v9fs.h

[PATCH 11/13] ext4: rename: split out helper functions

2014-02-07 Thread Miklos Szeredi
From: Miklos Szeredi Cross rename (exchange source and dest) will need to call some of these helpers for both source and dest, while overwriting rename currently only calls them for one or the other. This also makes the code easier to follow. Signed-off-by: Miklos Szeredi Reviewed-by: Jan

[PATCH RFC/RFT v2 2/8] ia64: move cacheinfo sysfs to generic cacheinfo infrastructure

2014-02-07 Thread Sudeep Holla
From: Sudeep Holla This patch removes the redundant sysfs cacheinfo code by making use of the newly introduced generic cacheinfo infrastructure. Signed-off-by: Sudeep Holla Cc: Tony Luck Cc: Fenghua Yu Cc: linux-i...@vger.kernel.org --- arch/ia64/kernel/topology.c | 399

[PATCH RFC/RFT v2 6/8] ARM64: kernel: add support for cpu cache information

2014-02-07 Thread Sudeep Holla
From: Sudeep Holla This patch adds support for cacheinfo on ARM64. On ARMv8, the cache hierarchy can be identified through Cache Level ID (CLIDR) register while the cache geometry is provided by Cache Size ID (CCSIDR) register. Since the architecture doesn't provide any way of detecting the

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