[PATCH 1/7] KVM: MMU: update the documentation for reverse mapping of parent_pte

2013-06-19 Thread Xiao Guangrong
Update the document to match the current reverse mapping of parent_pte Signed-off-by: Xiao Guangrong --- Documentation/virtual/kvm/mmu.txt | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/virtual/kvm/mmu.txt b/Documentation/virtual/kvm/mmu.txt index

[PATCH 0/7] KVM: MMU: update mmu documentation

2013-06-19 Thread Xiao Guangrong
As Paolo pointed out that this is the time to update the documentation, this patchest does it to let mmu.txt matches with the current mmu implementation Xiao Guangrong (7): KVM: MMU: update the documentation for reverse mapping of parent_pte KVM: MMU: document clear_spte_count KVM: MMU: docu

[PATCH 4/7] KVM: MMU: document mmio page fault

2013-06-19 Thread Xiao Guangrong
Document it to Documentation/virtual/kvm/mmu.txt Signed-off-by: Xiao Guangrong --- Documentation/virtual/kvm/mmu.txt | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/virtual/kvm/mmu.txt b/Documentation/virtual/kvm/mmu.txt index 5a6b2e2..4fb442b 10064

Re: [PATCH v2 1/4] mfd: Kontron PLD mfd driver

2013-06-19 Thread Thomas Gleixner
On Tue, 18 Jun 2013, Kevin Strasser wrote: This patch set looks reasonable now, except a formal issue. > Signed-off-by: Kevin Strasser > Signed-off-by: Michael Brunner This is wrong, as it says: Kevin authored the code, sent it to Michael and Michael sent it to LKML. The original code wa

[PATCH 5/7] KVM: MMU: document fast page fault in

2013-06-19 Thread Xiao Guangrong
Document fast page fault to Documentation/virtual/kvm/mmu.txt Signed-off-by: Xiao Guangrong --- Documentation/virtual/kvm/mmu.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/virtual/kvm/mmu.txt b/Documentation/virtual/kvm/mmu.txt index 4fb442b..b5ce7dd 100644 --- a/Docu

Re: [PATCH v2 1/4] mfd: Kontron PLD mfd driver

2013-06-19 Thread Samuel Ortiz
Hi Linus, On Wed, Jun 19, 2013 at 10:40:04AM +0200, Linus Walleij wrote: > On Tue, Jun 18, 2013 at 11:04 PM, Kevin Strasser > wrote: > > Add core MFD driver for the on-board PLD found on some Kontron embedded > > modules. The PLD device may provide functions like watchdog, GPIO, UART > > and I2C

[PATCH 3/7] KVM: MMU: document write_flooding_count

2013-06-19 Thread Xiao Guangrong
Document write_flooding_count to Documentation/virtual/kvm/mmu.txt Signed-off-by: Xiao Guangrong --- Documentation/virtual/kvm/mmu.txt | 8 arch/x86/include/asm/kvm_host.h | 5 + 2 files changed, 13 insertions(+) diff --git a/Documentation/virtual/kvm/mmu.txt b/Documentation/vir

Re: [PATCH] arch: sparc: prom: looping issue, need additional length check in the outside looping

2013-06-19 Thread David Miller
From: Chen Gang Date: Thu, 30 May 2013 11:35:22 +0800 > > When "cp >= barg_buf + BARG_LEN-2", it breaks internel looping 'while', > but outside loop 'for' still has effect, so "*cp++ = ' '" will continue > repeating which may cause memory overflow. > > So need additional length check for it in

[PATCH 2/7] KVM: MMU: document clear_spte_count

2013-06-19 Thread Xiao Guangrong
Document it to Documentation/virtual/kvm/mmu.txt Signed-off-by: Xiao Guangrong --- Documentation/virtual/kvm/mmu.txt | 4 arch/x86/include/asm/kvm_host.h | 5 + arch/x86/kvm/mmu.c| 7 --- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation

[PATCH 1/2] perf tools: fix a typo of a Power7 event name

2013-06-19 Thread Runzhen Wang
In the Power7 PMU guide: https://www.power.org/documentation/commonly-used-metrics-for-performance-analysis/ PM_BRU_MPRED is referred to as PM_BR_MPRED. This patch fix the typo by changing the name of the event in kernel and documentation accordingly. Signed-off-by: Runzhen Wang --- .../testing

Re: [PATCH V2 1/15] sparc,leon: Convert to use devm_ioremap_resource

2013-06-19 Thread David Miller
From: Tushar Behera Date: Mon, 17 Jun 2013 14:37:44 +0530 > Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()") > introduced devm_ioremap_resource() and deprecated the use of > devm_request_and_ioremap(). > > While at it, also remove the error message as devm_ioremap_resource(

Re: [PATCH 2/2] spi/pxa2xx: use a flag to check if the device is runtime suspended

2013-06-19 Thread Mark Brown
On Wed, Jun 19, 2013 at 10:44:37AM +0300, Mika Westerberg wrote: > I agree that it is better handled outside of the driver (or provide some > API for drivers). One thing that immediately came to mind is > adding pm_runtime_suspending() that could be used here like: > ssp_int() > { > if (pm_

Re: [PATCH V3 5/5] input: pxa27x-keypad: add device tree support

2013-06-19 Thread Arnd Bergmann
On Wednesday 19 June 2013 16:38:38 Chao Xie wrote: > >> index 000..f8674f7 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/input/pxa27x-keypad.txt > >> @@ -0,0 +1,60 @@ > >> +* Marvell PXA Keypad controller > >> + > >> +Required Properties > >> +- compatible : should be "marvell

Re: [lustre] WARNING: at kernel/mutex.c:341 mutex_lock_nested()

2013-06-19 Thread Peng Tao
On Tue, Jun 18, 2013 at 4:20 PM, Peng Tao wrote: > On Tue, Jun 18, 2013 at 7:36 AM, Dilger, Andreas > wrote: >> On 2013/17/06 2:52 AM, "Peng Tao" wrote: >> >>>On Thu, Jun 13, 2013 at 9:56 AM, Fengguang Wu >>>wrote: Greetings, I got the below dmesg and the first bad commit is

Re: [PATCH] arch: sparc: prom: looping issue, need additional length check in the outside looping

2013-06-19 Thread Chen Gang
On 06/19/2013 05:13 PM, David Miller wrote: > From: Chen Gang > Date: Thu, 30 May 2013 11:35:22 +0800 > >> >> When "cp >= barg_buf + BARG_LEN-2", it breaks internel looping 'while', >> but outside loop 'for' still has effect, so "*cp++ = ' '" will continue >> repeating which may cause memory over

Re: [PATCH 2/2] spi/pxa2xx: use a flag to check if the device is runtime suspended

2013-06-19 Thread Russell King - ARM Linux
On Tue, Jun 18, 2013 at 07:09:48PM +0100, Mark Brown wrote: > On Tue, Jun 18, 2013 at 05:29:45PM +0300, Mika Westerberg wrote: > > Current code calls pm_runtime_suspended() in the interrupt handler to check > > if the device is suspended or not. However, runtime PM status of the device > > is only

Re: linux-next: build failure after merge of the final tree (staging tree related)

2013-06-19 Thread Peng Tao
On Wed, Jun 19, 2013 at 4:10 PM, Stephen Rothwell wrote: > Hi all, > > After merging the final tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > In file included from > drivers/staging/lustre/include/linux/libcfs/libcfs.h:203:0, > from drivers/staging/

[GIT] Sparc

2013-06-19 Thread David Miller
Various sparc bug fixes, in particular: 1) TSB hashes have to be flushed before TLB on sparc64, from Dave Kleikamp. 2) LEON timer interrupts can get stuck, from Andreas Larsson. 3) Sparc64 needs to handle lack of address-congruence devicetree property, from Bob Picco. Please pull, thanks

Re: [PATCH] ncpfs: fix rmdir returns Device or resource busy

2013-06-19 Thread Luis Henriques
Dave Chiluk writes: > 1d2ef5901483004d74947bbf78d5146c24038fe7 caused a regression in ncpfs such > that > directories could no longer be removed. This was because ncp_rmdir checked > to see if a dentry could be unhashed before allowing it to be removed. Since > 1d2ef5901483004d74947bbf78d5146c2

Re: [RFC PATCH v3 0/2] drivers: mfd: Versatile Express SPC support

2013-06-19 Thread Samuel Ortiz
Hi Pawel, On Tue, Jun 18, 2013 at 10:29:42AM +0100, Pawel Moll wrote: > On Tue, 2013-06-18 at 10:09 +0100, Samuel Ortiz wrote: > > Hi Pawell, > > Double l in the wrong place ;-) Apologies... > > > If you feel strongly about it, I'm ready to split it into mfd_cells and > > > move the gpio and l

Re: [PATCH v2] Make transparent hugepages cpuset aware

2013-06-19 Thread Robin Holt
On Tue, Jun 18, 2013 at 05:01:23PM -0700, David Rientjes wrote: > On Tue, 18 Jun 2013, Alex Thorlton wrote: > > > Thanks for your input, however, I believe the method of using a malloc > > hook falls apart when it comes to static binaries, since we wont' have > > any shared libraries to hook into.

Re: [PATCH v2] mfd: vexpress: Make the driver optional for arm and arm64

2013-06-19 Thread Samuel Ortiz
Hi Pawel, On Tue, Jun 11, 2013 at 11:56:02AM +0100, Pawel Moll wrote: > The driver can be used on either arm or arm64 platforms, but > the latter doesn't have any platform-specific configuration > options, so it must be possible to manually enable the driver. > > As the gpiolib is optional for ar

Re: [PATCH 2/2] spi/pxa2xx: use a flag to check if the device is runtime suspended

2013-06-19 Thread Mark Brown
On Wed, Jun 19, 2013 at 10:25:08AM +0100, Russell King - ARM Linux wrote: > On Tue, Jun 18, 2013 at 07:09:48PM +0100, Mark Brown wrote: > > This sounds like a problem which will affect a lot of devices and hence > > ought to be handled better by the PM core or at least frameworks in > > general.

Re: [PATCH 03/10] idr: Rewrite ida

2013-06-19 Thread Steven Whitehouse
Hi, On Tue, 2013-06-18 at 17:02 -0700, Kent Overstreet wrote: > This is a new, from scratch implementation of ida that should be > simpler, faster and more space efficient. > [...] > > This does mean that the entire bitmap is stored in one contiguous memory > allocation - and as currently imple

Re: [PATCH REBASE] i2c-designware: make SDA hold time configurable

2013-06-19 Thread Wolfram Sang
Hi, On Wed, Jun 12, 2013 at 04:47:45PM +0200, Christian Ruppert wrote: > On Mon, Jun 10, 2013 at 05:29:55PM +0200, Wolfram Sang wrote: > > On Tue, May 14, 2013 at 03:04:02PM +0200, Christian Ruppert wrote: > > > This patch makes the SDA hold time configurable through device tree. > > > > > > [reb

Re: [PATCH] kernel/timer.c: using spin_lock_irqsave instead of spin_lock + local_irq_save, especially when CONFIG_LOCKDEP not defined

2013-06-19 Thread Chen Gang
On 06/19/2013 04:41 PM, Thomas Gleixner wrote: > On Wed, 19 Jun 2013, Chen Gang wrote: > >> > >> > When CONFIG_LOCKDEP is not defined, spin_lock_irqsave() is not equal to >> > spin_lock() + local_irq_save(). >> > >> > In __mod_timer(), After call spin_lock_irqsave() with 'base->lock' in >> > loc

Re: [PATCH v2 1/4] mfd: Kontron PLD mfd driver

2013-06-19 Thread Mark Brown
On Wed, Jun 19, 2013 at 11:11:27AM +0200, Samuel Ortiz wrote: > On Wed, Jun 19, 2013 at 10:40:04AM +0200, Linus Walleij wrote: > > Not really my business, but I think if I was to implement this > > inter-module API I would use regmap for this read/write marshalling > > right here. > I thought abo

Re: [PATCH v2 1/2] mfd: tps65910: Fix crash in i2c_driver .probe

2013-06-19 Thread Lee Jones
On Wed, 19 Jun 2013, Samuel Ortiz wrote: > Hi Lee, > > On Wed, Jun 19, 2013 at 09:18:59AM +0100, Lee Jones wrote: > > On Tue, 18 Jun 2013, Tuomas Tynkkynen wrote: > > > > > Commit "i2c: core: make it possible to match a pure device tree driver" > > > changed semantics of the i2c probing for devi

Re: [patch v8 9/9] sched/tg: remove blocked_load_avg in balance

2013-06-19 Thread Alex Shi
On 06/17/2013 10:01 PM, Peter Zijlstra wrote: > On Mon, Jun 17, 2013 at 05:20:46AM -0700, Paul Turner wrote: >> > On Fri, Jun 7, 2013 at 12:20 AM, Alex Shi wrote: >>> > > blocked_load_avg sometime is too heavy and far bigger than runnable load >>> > > avg, that make balance make wrong decision. So

[GIT PULL] mfd: for-next from Lee

2013-06-19 Thread Lee Jones
Sam, Just a small pre-vacation pull-request for MFD: The following changes since commit e578438820cdca91cb5eab477ec062236433ce5f: mfd: ssbi: Use devm_* and simplify code (2013-06-18 09:41:15 +0200) are available in the git repository at: git://git.linaro.org/people/ljones/linux-3.0-ux500.g

[PATCH] ipvs: SH fallback and L4 hashing

2013-06-19 Thread Alexander Frolkin
By default the SH scheduler rejects connections that are hashed onto a realserver of weight 0. This patch adds a flag to make SH choose a different realserver in this case, instead of rejecting the connection. The patch also adds a flag to make SH include the source port (TCP, UDP, SCTP) in the h

Re: [net-next rfc 1/3] net: avoid high order memory allocation for queues by using flex array

2013-06-19 Thread Eric Dumazet
On Wed, 2013-06-19 at 12:11 +0300, Michael S. Tsirkin wrote: > Well KVM supports up to 160 VCPUs on x86. > > Creating a queue per CPU is very reasonable, and > assuming cache line size of 64 bytes, netdev_queue seems to be 320 > bytes, that's 320*160 = 51200. So 12.5 pages, order-4 allocation. >

Re: [PATCH] mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree

2013-06-19 Thread Chen Gang
On 06/19/2013 04:53 PM, Mel Gorman wrote: > On Wed, Jun 19, 2013 at 02:55:13PM +0800, Chen Gang wrote: >> > >> > 'lru' may be used without initialized, so need regressing part of the >> > related patch. >> > >> > The related patch: >> > "3abf380 mm: remove lru parameter from __lru_cache_add and

Re: [PATCH v2 1/2] mfd: tps65910: Fix crash in i2c_driver .probe

2013-06-19 Thread Wolfram Sang
On Wed, Jun 19, 2013 at 10:27:40AM +0200, Samuel Ortiz wrote: > Hi Lee, > > On Wed, Jun 19, 2013 at 09:18:59AM +0100, Lee Jones wrote: > > On Tue, 18 Jun 2013, Tuomas Tynkkynen wrote: > > > > > Commit "i2c: core: make it possible to match a pure device tree driver" > > > changed semantics of the

Re: [PATCH 1/2] mfd: davinci_voicecodec: Fix build breakage

2013-06-19 Thread Sachin Kamat
Hi Lee, On 18 June 2013 15:35, Sachin Kamat wrote: > Include the missing header file to fix the following build error: > drivers/mfd/davinci_voicecodec.c: In function ‘davinci_vc_probe’: > drivers/mfd/davinci_voicecodec.c:86:3: error: implicit declaration of function > ‘io_v2p’ [-Werror=implicit-

Re: [PATCH 3/4] KVM: PPC: Add support for IOMMU in-kernel handling

2013-06-19 Thread Alexander Graf
On 19.06.2013, at 06:59, Benjamin Herrenschmidt wrote: > On Wed, 2013-06-19 at 13:05 +0930, Rusty Russell wrote: >> symbol_get() won't try to load a module; it'll just fail. This is what >> you want, since they must have vfio in the kernel to get a valid fd... > > Ok, cool. I suppose what we wa

Re: [PATCH] kernel/timer.c: using spin_lock_irqsave instead of spin_lock + local_irq_save, especially when CONFIG_LOCKDEP not defined

2013-06-19 Thread Thomas Gleixner
On Wed, 19 Jun 2013, Chen Gang wrote: > On 06/19/2013 04:41 PM, Thomas Gleixner wrote: > > On Wed, 19 Jun 2013, Chen Gang wrote: > > > >> > > >> > When CONFIG_LOCKDEP is not defined, spin_lock_irqsave() is not equal to > >> > spin_lock() + local_irq_save(). > >> > > >> > In __mod_timer(), After

Re: [PATCH 3/5] tty/8250_dw: Add support for OCTEON UARTS.

2013-06-19 Thread Arnd Bergmann
On Tuesday 18 June 2013 12:12:53 David Daney wrote: > +static unsigned int dw8250_serial_inq(struct uart_port *p, int offset) > +{ > + offset <<= p->regshift; > + > + return (u8)__raw_readq(p->membase + offset); > +} > + > +static void dw8250_serial_outq(struct uart_port *p, int offset,

Re: [Part3 PATCH v2 0/4] Support hot-remove local pagetable pages.

2013-06-19 Thread Vasilis Liaskovitis
Hi Tang, On Wed, Jun 19, 2013 at 03:29:06PM +0800, Tang Chen wrote: > Hi Vasilis, Yinghai, > > On 06/19/2013 01:05 AM, Vasilis Liaskovitis wrote: > .. > > > >This could be a design problem of part3: if we allow local pagetable memory > >to not be offlined but allow the offlining to return succ

Re: [PATCH v5] i2c: omap: correct usage of the interrupt enable register

2013-06-19 Thread Wolfram Sang
On Mon, Jun 03, 2013 at 10:37:20AM +0300, Oleksandr Dmytryshyn wrote: > We've been lucky not to have any interrupts fire during the suspend > path, otherwise we would have unpredictable behaviour in the kernel. > > Based on the logic of the kernel code interrupts from i2c should be > prohibited du

[PATCH v3 net-next 0/1] net: lls select poll support

2013-06-19 Thread Eliezer Tamir
David, Here is a rework of the select/poll patch. One question: do we need in sock_poll() to test that sock->sk is not null? (Thanks to Willem de Bruijn for pointing this out.) When select or poll are used on a lot of sockets the sysctl value needs to be set higher than 50. For 300 sockets a se

[PATCH v3 net-next] net: poll/select low latency socket support

2013-06-19 Thread Eliezer Tamir
select/poll busy-poll support. Split sysctl value into two separate ones, one for read and one for poll. updated Documentation/sysctl/net.txt Add a new poll flag POLL_LL. When this flag is set, sock poll will call sk_poll_ll() if possible. sock_poll sets this flag in its return value to indicate

Re: [PATCH v2] mn10300: Fix include dependency in irqflags.h et al.

2013-06-19 Thread David Howells
ddaney.c...@gmail.com wrote: > From: David Daney > > We need to pick up the definition of raw_smp_processor_id() from > asm/smp.h. For the !SMP case, we need to supply a definition of > raw_smp_processor_id(). > > Because of the include dependencies we cannot use smp_call_func_t in > asm/smp.h

Re: [PATCH 2/2] spi/pxa2xx: use a flag to check if the device is runtime suspended

2013-06-19 Thread Russell King - ARM Linux
On Wed, Jun 19, 2013 at 10:39:38AM +0100, Mark Brown wrote: > On Wed, Jun 19, 2013 at 10:25:08AM +0100, Russell King - ARM Linux wrote: > > On Tue, Jun 18, 2013 at 07:09:48PM +0100, Mark Brown wrote: > > > > This sounds like a problem which will affect a lot of devices and hence > > > ought to be

Re: [Part1 PATCH v5 00/22] x86, ACPI, numa: Parse numa info earlier

2013-06-19 Thread Vasilis Liaskovitis
On Tue, Jun 18, 2013 at 01:19:12PM -0700, Yinghai Lu wrote: > On Tue, Jun 18, 2013 at 10:10 AM, Vasilis Liaskovitis > wrote: > >> could be found at: > >> > >> git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git > >> for-x86-mm > >> > >> and it is based on today's Linu

Re: [PATCH] kvm api doc: fix section numbers

2013-06-19 Thread Paolo Bonzini
Il 19/06/2013 03:42, Alexey Kardashevskiy ha scritto: > Signed-off-by: Alexey Kardashevskiy > --- > Documentation/virtual/kvm/api.txt |8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Documentation/virtual/kvm/api.txt > b/Documentation/virtual/kvm/api.txt > ind

Re: [PATCH v2 1/2] mfd: tps65910: Fix crash in i2c_driver .probe

2013-06-19 Thread Samuel Ortiz
Hi Wolfram, On Wed, Jun 19, 2013 at 12:00:20PM +0200, Wolfram Sang wrote: > > > Applied with Stephen's Reviewed-by, thanks. > > According to Wolfgang, this is not needed as he will revert the i2c > > commits that are causing those crashes. > > I would not take it for now. > > "Wolfram", please ;)

Re: [GIT PULL] mfd: for-next from Lee

2013-06-19 Thread Samuel Ortiz
Hi Lee, On Wed, Jun 19, 2013 at 10:54:36AM +0100, Lee Jones wrote: > Sam, > > Just a small pre-vacation pull-request for MFD: > > The following changes since commit e578438820cdca91cb5eab477ec062236433ce5f: > > mfd: ssbi: Use devm_* and simplify code (2013-06-18 09:41:15 +0200) > > are avail

Re: [PATCH] kernel/timer.c: using spin_lock_irqsave instead of spin_lock + local_irq_save, especially when CONFIG_LOCKDEP not defined

2013-06-19 Thread Chen Gang
On 06/19/2013 05:59 PM, Thomas Gleixner wrote: > Lockdep tracks lock ordering and the context in which a lock is > taken. The timer base lock can be taken in interrupt context, so it > always needs to be taken with interrupts disabled. That's what lockdep > cares about. > > And > spin_lock_

Re: i2c: introduce i2c helper i2c_find_client_by_name()

2013-06-19 Thread Wolfram Sang
> Even you prefer to extend v4l2, you still need this helper. > The idea is just to move the unregister/register from a specific ISP driver > to v4l2. > > I think you misunderstood my pionts somehow. Let me clarfiy a little bit: > > Current solution: > 1. Platform codes(on top of DT/ACPI5/SFI) d

Re: [PATCH v2 1/4] ARM: dts: omap4-panda: Add USB Host support

2013-06-19 Thread Benoit Cousson
On 06/19/2013 02:46 AM, Tony Lindgren wrote: * Roger Quadros [130619 00:42]: Hi Benoit, On 06/19/2013 04:17 AM, Benoit Cousson wrote: Hi Roger, On 06/18/2013 11:04 AM, Roger Quadros wrote: Provide the RESET and Power regulators for the USB PHY, the USB Host port mode and the PHY device. Al

Re: [RFC] i2c: add deprecation warning for class based instantiation

2013-06-19 Thread Wolfram Sang
On Fri, Jun 07, 2013 at 11:09:26AM +0200, Wolfram Sang wrote: > Class based instantiation can cause huge delays when booting. This > mechanism was used when it was not possible to describe slaves on I2C > busses. We now have other mechanisms, so most embedded I2C will not need > classes and it was

[PATCH] ARM: dts: Update range for vdd_arm on EXYNOS4412-origen board

2013-06-19 Thread Tushar Behera
EXYNOS4412 cpufreq driver requires the range of vdd_arm regulator to be from .9v to 1.35v. Since vdd_arm regulator (BUCK2 on S5M8767) has a supported range of .6v to 1.6v, the constraints are updated to match the requirement from cpufreq driver. Signed-off-by: Tushar Behera --- arch/arm/boot/dts

Re: [PATCH] kernel/kthread.c: need spin_lock_irq() for 'worker' before main looping, since it can "WARN_ON(worker->task)".

2013-06-19 Thread Chen Gang
On 06/19/2013 04:41 PM, Tejun Heo wrote: > On Wed, Jun 19, 2013 at 12:03:38PM +0800, Chen Gang wrote: >> > >> > Since "WARN_ON(worker->task)", we can not assume that 'worker->task' >> > will be NULL before set 'current' to it. >> > >> > So need let 'worker' lock protected too, just like it alread

Re: [PATCH v5] Soft limit rework

2013-06-19 Thread Michal Hocko
On Tue 18-06-13 15:01:21, Johannes Weiner wrote: > On Tue, Jun 18, 2013 at 02:09:39PM +0200, Michal Hocko wrote: > > My primary test case was a parallel kernel build with 2 groups (make > > is running with -j4 with a distribution .config in a separate cgroup > > without any hard limit) on a 8 CPU m

Re: [PATCH] kernel/timer.c: using spin_lock_irqsave instead of spin_lock + local_irq_save, especially when CONFIG_LOCKDEP not defined

2013-06-19 Thread Chen Gang
On 06/19/2013 05:59 PM, Thomas Gleixner wrote: > I'm well aware how that works. And there is no difference whether you > do: > > local_irq_save(flags); > spin_lock(&lock); > or > spin_lock_irqsave(&lock, flags); if CONFIG_LOCKDEP is not defined, they are not semantically the sam

Re: [PATCH v3 1/1] pinctrl: add Intel BayTrail GPIO/pinctrl support

2013-06-19 Thread Mathias Nyman
On 06/18/2013 06:17 PM, Linus Walleij wrote: On Tue, Jun 18, 2013 at 1:33 PM, Mathias Nyman wrote: Add support for gpio on Intel BayTrail platforms. BayTrail supports 3 banks of gpios called SCORE, NCORE ans SUS with 102, 28 and 44 gpio pins. Supports gpio interrupts and ACPI gpio events Pin

[PATCH v2] mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree

2013-06-19 Thread Chen Gang
'lru' may be used without initialized, so need regressing part of the related patch. The related patch: "3abf380 mm: remove lru parameter from __lru_cache_add and lru_cache_add_lru" Signed-off-by: Chen Gang --- mm/vmscan.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --g

Re: [PATCH 1/7] KVM: MMU: update the documentation for reverse mapping of parent_pte

2013-06-19 Thread Paolo Bonzini
Il 19/06/2013 11:09, Xiao Guangrong ha scritto: > Update the document to match the current reverse mapping of > parent_pte > > Signed-off-by: Xiao Guangrong > --- > Documentation/virtual/kvm/mmu.txt | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/Documentat

Re: [PATCH 1/1] arm: add bandgap DT entry for OMAP5

2013-06-19 Thread Benoit Cousson
Hi Eduardo, On 06/18/2013 09:36 PM, Eduardo Valentin wrote: > Add bandgap device DT entry for OMAP5 dtsi. > > Cc: "Benoît Cousson" > Cc: Tony Lindgren > Cc: Russell King > Cc: linux-o...@vger.kernel.org > Cc: devicetree-disc...@lists.ozlabs.org > Cc: linux-arm-ker...@lists.infradead.org > Cc:

Re: [PATCH] ARM: dts: AM43x EPOS EVM support

2013-06-19 Thread Benoit Cousson
Hi Afzal, On 06/14/2013 09:03 AM, Afzal Mohammed wrote: Add AM43x ePOS EVM minimal DT source - this is a minimal one to get it booting. Also include it in omap2plus dtbs and document bindings. The hardware is under development. Signed-off-by: Afzal Mohammed --- Hi Benoit, This is based on yo

[net] checkpatch: modify logFunction regular expression to allow repeated front tags

2013-06-19 Thread Jeff Kirsher
From: Jacob Keller The previous logFunction regular expression allowed names for log functions like dev_warn or e_dbg and so forth, but some log functions are of the forms similar to e_dev_warn, (adding an additional tag in front of a standard name like dev_warn). This patch modifies checkpatch

Re: [PATCH 2/8] FMC: add needed headers

2013-06-19 Thread Arnd Bergmann
On Wednesday 12 June 2013 09:13:36 Alessandro Rubini wrote: > + */ > +struct fmc_operations { > + uint32_t (*readl)(struct fmc_device *fmc, int offset); > + void (*writel)(struct fmc_device *fmc, uint32_t value, int offset); > + int (*validate)(struct fmc_device *fmc, struct fmc_d

Re: [PATCH] kernel/timer.c: using spin_lock_irqsave instead of spin_lock + local_irq_save, especially when CONFIG_LOCKDEP not defined

2013-06-19 Thread Thomas Gleixner
On Wed, 19 Jun 2013, Chen Gang wrote: > On 06/19/2013 05:59 PM, Thomas Gleixner wrote: > > Lockdep tracks lock ordering and the context in which a lock is > > taken. The timer base lock can be taken in interrupt context, so it > > always needs to be taken with interrupts disabled. That's what lockd

Re: [PATCH v2 1/7] gpio: davinci: coding style correction

2013-06-19 Thread Sekhar Nori
On 6/14/2013 3:05 PM, Philip Avinash wrote: > Make some minor coding style fixes. Use proper multi-line > commenting style, arrange include files alphabetically use > macros for bit definitions. Its a register offset, not bit definition. > > Signed-off-by: Philip Avinash > Signed-off-by: Sekhar

Re: [PATCH] kernel/timer.c: using spin_lock_irqsave instead of spin_lock + local_irq_save, especially when CONFIG_LOCKDEP not defined

2013-06-19 Thread Thomas Gleixner
On Wed, 19 Jun 2013, Chen Gang wrote: > On 06/19/2013 05:59 PM, Thomas Gleixner wrote: > > I'm well aware how that works. And there is no difference whether you > > do: > > > > local_irq_save(flags); > > spin_lock(&lock); > > or > > spin_lock_irqsave(&lock, flags); > > if CONFIG_LOCK

Re: [PATCH 3/5] tty/8250_dw: Add support for OCTEON UARTS.

2013-06-19 Thread Ralf Baechle
On Wed, Jun 19, 2013 at 12:01:06PM +0200, Arnd Bergmann wrote: > This breaks building on 32 bit architectures as I found on my daily ARM > builds: __raw_writeq cannot be defined on architectures that don't have > native 64 bit data access instructions. It's also wrong to use the > __raw_* variant,

[PATCH v10] i2c: exynos5: add High Speed I2C controller driver

2013-06-19 Thread Naveen Krishna Chatradhi
Adds support for High Speed I2C driver found in Exynos5 and later SoCs from Samsung. Driver only supports Device Tree method. Changes since v1: 1. Added FIFO functionality 2. Added High speed mode functionality 3. Remove SMBUS_QUICK 4. Remove the debugfs functionality 5. Use devm_* functions wher

Re: [PATCH 2/2] spi/pxa2xx: use a flag to check if the device is runtime suspended

2013-06-19 Thread Mika Westerberg
On Wed, Jun 19, 2013 at 11:05:15AM +0100, Russell King - ARM Linux wrote: > On Wed, Jun 19, 2013 at 10:39:38AM +0100, Mark Brown wrote: > > On Wed, Jun 19, 2013 at 10:25:08AM +0100, Russell King - ARM Linux wrote: > > > On Tue, Jun 18, 2013 at 07:09:48PM +0100, Mark Brown wrote: > > > > > > This s

Re: [PATCH -v11 resend 10/11] arm, change reboot_mode to use enum reboot_mode

2013-06-19 Thread Arnd Bergmann
On Thursday 06 June 2013 06:47:23 Robin Holt wrote: > Preparing to move the parsing of reboot= to generic kernel code > forces the change in reboot_mode handling to use the enum. > > Signed-off-by: Robin Holt > To: Andrew Morton > Cc: Russell King > Cc: Russ Anderson > Cc: Robin Holt > Cc: H.

Re: [PATCH v2 1/4] ARM: dts: omap4-panda: Add USB Host support

2013-06-19 Thread Roger Quadros
On 06/19/2013 01:10 PM, Benoit Cousson wrote: > On 06/19/2013 02:46 AM, Tony Lindgren wrote: >> * Roger Quadros [130619 00:42]: >>> Hi Benoit, >>> >>> On 06/19/2013 04:17 AM, Benoit Cousson wrote: Hi Roger, On 06/18/2013 11:04 AM, Roger Quadros wrote: > Provide the RESET and Pow

Re: [PATCH v3 0/6] KVM: MMU: fast invalidate all mmio sptes

2013-06-19 Thread Paolo Bonzini
Il 10/06/2013 19:03, Gleb Natapov ha scritto: > On Mon, Jun 10, 2013 at 10:43:52PM +0900, Takuya Yoshikawa wrote: >> On Mon, 10 Jun 2013 16:39:37 +0800 >> Xiao Guangrong wrote: >> >>> On 06/10/2013 03:56 PM, Gleb Natapov wrote: On Fri, Jun 07, 2013 at 04:51:22PM +0800, Xiao Guangrong wrote: >

Re: [PATCH 2/8] FMC: add needed headers

2013-06-19 Thread Alessandro Rubini
> The use of the 'readl' and 'writel' identifiers here causes build errors on > architectures where those are macros. This renames the fields to > read32/write32 > to avoid the problem. Thanks. I'll apply the same to my repo and related drivers. Acked-by: Alessandro Rubini /alessandro -- To u

Re: [PATCH v2 1/3] ARM: tegra: basic support for Trusted Foundations

2013-06-19 Thread Dave Martin
On Fri, Jun 14, 2013 at 05:43:03PM +0900, Alexandre Courbot wrote: > On Thu, Jun 13, 2013 at 11:35 PM, Dave Martin wrote: > >> diff --git a/Documentation/devicetree/bindings/arm/tegra.txt > >> b/Documentation/devicetree/bindings/arm/tegra.txt > >> index ed9c853..d59bc19 100644 > >> --- a/Document

Re: [uio 1/2] fix uio_pdrv_genirq with device tree but no interrupt

2013-06-19 Thread Pavel Machek
On Tue 2013-06-18 15:44:04, Greg KH wrote: > What's with the odd [uio] in the Subject? What happened to the > universal [PATCH 1/2] format? > > Ick, I'll fix this up this time, but come on, you know better... Sorry about that. It seems every maintainer has slightly different rules for that... I

Re: [PATCH V3 5/5] input: pxa27x-keypad: add device tree support

2013-06-19 Thread Gerhard Sittig
On Wed, Jun 19, 2013 at 16:38 +0800, Chao Xie wrote: > > On Wed, Jun 19, 2013 at 4:22 PM, Marek Vasut wrote: > > > >> Signed-off-by: Chao Xie > >> [ ... ] > >> +++ b/Documentation/devicetree/bindings/input/pxa27x-keypad.txt > >> @@ -0,0 +1,60 @@ > >> +* Marvell PXA Keypad controller > >> + > >>

[PATCH 1/8] ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare.

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/clocksource/tcb_clksrc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/tcb_clksrc.c b/dri

[PATCH 5/8] usb: gadget: at91_udc: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/gadget/at91_udc.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/at91_udc.c b/drive

[PATCH 7/8] USB: ohci-at91: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/host/ohci-at91.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/u

Re: [RFC PATCH 1/3] pstore-ram: use write-combine mappings

2013-06-19 Thread Wei Ni
> Atomic operations are undefined behavior on ARM for device or strongly > ordered memory types. So use write-combine variants for mappings. This > corresponds to normal, non-cacheable memory on ARM. For many other > architectures, this change should not change the mapping type. Hi, all I have met

Re: [PATCH v2 2/7] gpio: davinci: move to platform device

2013-06-19 Thread Sekhar Nori
On 6/14/2013 3:05 PM, Philip Avinash wrote: > From: KV Sujith > > Modify GPIO Davinci driver to be compliant to standard platform drivers. > The driver did not have platform driver structure or a probe. Instead, > had a davinci_gpio_setup() function which is called in the pure_init > sequence. Th

[PATCH] usb: gadget: at91_udc: call at91udc_of_init only when needed

2013-06-19 Thread Arnd Bergmann
This avoids a build error in at91sam9261_9g10_defconfig: drivers/usb/gadget/at91_udc.c: In function 'at91udc_probe': drivers/usb/gadget/at91_udc.c:1685:34: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] board->vbus_active_low = (flags & OF_GPIO_ACTIVE_LOW) ?

[PATCH 0/8] ARM: at91: prepare the move to common clk framework

2013-06-19 Thread Boris BREZILLON
Hello, This patch series was formerly part of the at91 common clk patch series. It prepares the move to common clk framework by replacing all the clk_enable and clk_disable calls by clk_prepare_unable and clk_disable_unprepare to avoid common clock framework warnings. This patch series was taken

Re: [PATCH v3 0/6] KVM: MMU: fast invalidate all mmio sptes

2013-06-19 Thread Xiao Guangrong
On 06/19/2013 07:08 PM, Paolo Bonzini wrote: > Il 10/06/2013 19:03, Gleb Natapov ha scritto: >> On Mon, Jun 10, 2013 at 10:43:52PM +0900, Takuya Yoshikawa wrote: >>> On Mon, 10 Jun 2013 16:39:37 +0800 >>> Xiao Guangrong wrote: >>> On 06/10/2013 03:56 PM, Gleb Natapov wrote: > On Fri, Jun

[PATCH 4/8] tty: atmel_serial: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/tty/serial/atmel_serial.c | 41 - 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/drivers/

Re: [PATCH v2 1/4] ARM: dts: omap4-panda: Add USB Host support

2013-06-19 Thread Benoit Cousson
On 06/19/2013 06:03 AM, Roger Quadros wrote: On 06/19/2013 01:10 PM, Benoit Cousson wrote: On 06/19/2013 02:46 AM, Tony Lindgren wrote: * Roger Quadros [130619 00:42]: Hi Benoit, On 06/19/2013 04:17 AM, Benoit Cousson wrote: Hi Roger, On 06/18/2013 11:04 AM, Roger Quadros wrote: Provide t

Re: [PATCH 1/5] drivers/misc: Support for RF interface device framework

2013-06-19 Thread Lars-Peter Clausen
On 06/18/2013 09:44 AM, Akhil Goyal wrote: [...] >>> +/* >>> + * Spin_locks are changed to mutexes if PREEMPT_RT is enabled, >>> + * i.e they can sleep. This fact is problem for us because >>> + * add_wait_queue()/wake_up_all() takes wait queue spin lock. >>> + * Since spin lock

Re: [PATCH 2/7] KVM: MMU: document clear_spte_count

2013-06-19 Thread Paolo Bonzini
Il 19/06/2013 11:09, Xiao Guangrong ha scritto: > Document it to Documentation/virtual/kvm/mmu.txt While reviewing the docs, I looked at the code. Why can't this happen? CPU 1: __get_spte_lockless CPU 2: __update_clear_spte_slow --

[PATCH 2/8] at_hdmac: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/dma/at_hdmac.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_

Re: [PATCH 3/3] perf tools: include termios.h explicitly

2013-06-19 Thread Ingo Molnar
* Joonsoo Kim wrote: > Building perf for android is failed, because it can't find definition of > struct winsize. This definition is in termios.h, so I add this header > to util.h to solve the problem. It is missed by commit '2c803e52' which > moves get_term_dimensions() from builtin-top.c to ut

[PATCH 3/8] mmc: atmel-mci: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/mmc/host/atmel-mci.c | 29 - 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/atmel

[PATCH 6/8] ehci-atmel.c: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/host/ehci-atmel.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb

Re: [PATCH 2/7] KVM: MMU: document clear_spte_count

2013-06-19 Thread Paolo Bonzini
Il 19/06/2013 11:09, Xiao Guangrong ha scritto: > Document it to Documentation/virtual/kvm/mmu.txt Edits inline, please ack. > Signed-off-by: Xiao Guangrong > --- > Documentation/virtual/kvm/mmu.txt | 4 > arch/x86/include/asm/kvm_host.h | 5 + > arch/x86/kvm/mmu.c| 7

[PATCH RFC] net: lls epoll support

2013-06-19 Thread Eliezer Tamir
This is a wild hack, just as a POC to show the power or LLS with epoll. We assume that we only ever need to poll on one device queue, so the first FD that reports POLL_LL gets saved aside so we can poll on. While this assumption is wrong in so many ways, it's very easy to satisfy with a micro-b

[PATCH] sh/kprobes: Fix illslot handler not to unregister but disarm kprobe

2013-06-19 Thread Masami Hiramatsu
Fix illegal slot exception handler not to unregister the kprobe but just to disarm it. Since the unregister_kprobe must sleep (by synchronize_sched), it must not be called from any exception/ interrupt handlers. Disarming is safe because it just recovers original instruction code. Signed-off-by: M

Re: [GIT PULL] RAS: Fix typos

2013-06-19 Thread Ingo Molnar
* Borislav Petkov wrote: > Hi guys, > > please pull. > > Thanks. > > The following changes since commit d683b96b072dc4680fc74964eca77e6a23d1fa6e: > > Linux 3.10-rc4 (2013-06-02 17:11:17 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git

RE: linux-next: manual merge of the samsung tree with the usb tree

2013-06-19 Thread Kukjin Kim
Stephen Rothwell wrote: > > Hi Kukjin, > Hi, > Today's linux-next merge of the samsung tree got a conflict in > drivers/usb/Kconfig between commit d9ea21a77927 ("usb: host: make > USB_ARCH_HAS_?HCI obsolete") from the usb tree and commit 58d5b72088cc > ("USB: Check for ARCH_EXYNOS separately") f

Re: [PATCH v2 3/7] ARM: davinci: da8xx: creation of gpio platform device

2013-06-19 Thread Sekhar Nori
On 6/14/2013 3:05 PM, Philip Avinash wrote: > From: KV Sujith > > gpio controller resource information being associated with > davinci_soc_info structure and not created any device. Hence davinci > gpio didn't fall under proper device model. This patch creates gpio > davinci as a platform device

Re: [PATCH 2/7] KVM: MMU: document clear_spte_count

2013-06-19 Thread Xiao Guangrong
On 06/19/2013 07:32 PM, Paolo Bonzini wrote: > Il 19/06/2013 11:09, Xiao Guangrong ha scritto: >> Document it to Documentation/virtual/kvm/mmu.txt > > While reviewing the docs, I looked at the code. > > Why can't this happen? > > CPU 1: __get_spte_lockless CPU 2: __update_clear_spte

Re: [GIT PULL] Some error injection fixes to queue for 3.11

2013-06-19 Thread Ingo Molnar
* Luck, Tony wrote: > The following changes since commit d683b96b072dc4680fc74964eca77e6a23d1fa6e: > > Linux 3.10-rc4 (2013-06-02 17:11:17 +0900) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git > tags/please-pull-einj > > for you

<    1   2   3   4   5   6   7   8   9   >