Re: [RFC][PATCH v2 5/5] mutex: Give spinners a chance to spin_on_owner if need_resched() triggered while queued

2014-01-31 Thread Peter Zijlstra
On Thu, Jan 30, 2014 at 07:29:37PM -0800, Jason Low wrote: > On Wed, 2014-01-29 at 12:51 +0100, Peter Zijlstra wrote: > > On Tue, Jan 28, 2014 at 02:51:35PM -0800, Jason Low wrote: > > > > But urgh, nasty problem. Lemme ponder this a bit. > > > > OK, please have a very careful look at the below. I

Re: [RFC PATCH 1/3] cpuidle: split cpuidle_idle_call main function into functions

2014-01-31 Thread Daniel Lezcano
On 01/30/2014 08:39 PM, Nicolas Pitre wrote: On Thu, 30 Jan 2014, Daniel Lezcano wrote: /** + * cpuidle_select - ask the cpuidle framework to choose an idle state + * + * @drv: the cpuidle driver + * @dev: the cpuidle device + * + * Returns the index of the idle state. On error it returns: +

Re: [PATCH v3 0/5] can: sja1000: cleanups and new OF property

2014-01-31 Thread Florian Vaussard
On 01/31/2014 02:50 PM, Andreas Larsson wrote: > On 2014-01-31 14:40, Marc Kleine-Budde wrote: >> On 01/31/2014 02:34 PM, Florian Vaussard wrote: >>> Hello, >>> >>> (could someone with a SJA1000 on SPARC perform a functional test >>> to see if interrupts are working? it would be great :-) >>> >>>

Re: [PATCH v3 5/5] can: sja1000: of: add reg-io-width property for 8, 16 and 32-bit register access

2014-01-31 Thread Sergei Shtylyov
Hello. On 31-01-2014 17:34, Florian Vaussard wrote: Add the 'reg-io-width' property for 8, 16 and 32-bit access, like what is currently done with IORESOURCE_MEM_{8,16,32}BIT for non-OF boot. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/sja1000_platform.c | 16 ++

Re: [RFC PATCH 3/3] idle: store the idle state index in the struct rq

2014-01-31 Thread Daniel Lezcano
On 01/31/2014 10:39 AM, Preeti U Murthy wrote: Hi Peter, On 01/31/2014 02:32 PM, Peter Zijlstra wrote: On Fri, Jan 31, 2014 at 02:15:47PM +0530, Preeti Murthy wrote: If the driver does its own random mapping that will break the governor logic. So yes, the states are ordered, the higher the in

Re: [BUG] Linux 3.14 fails to boot with new EFI changes

2014-01-31 Thread Russ Anderson
On Fri, Jan 31, 2014 at 11:07:22AM +0100, Borislav Petkov wrote: > On Thu, Jan 30, 2014 at 02:23:46PM -0800, H. Peter Anvin wrote: > > On 01/30/2014 02:19 PM, Alex Thorlton wrote: > > > > > > The quick answer is I think it is a virtual address, because it does > > > not work in physical mode. If yo

Re: [BUG?] Interrupts enabled after xen_acpi_processor_resume+0x0/0x34 [xen_acpi_processor]

2014-01-31 Thread Stanislaw Gruszka
On Wed, Jan 29, 2014 at 09:25:21AM +0100, Stanislaw Gruszka wrote: > > Looks incomplete, what about the kzalloc() in > > xen_upload_processor_pm_data() and kcalloc()s in check_acpi_ids()? > > Indeed and additionally from check_acpi_ids() we call > acpi_walk_namespace(), which also take mutexes. H

Re: [BUG] Linux 3.14 fails to boot with new EFI changes

2014-01-31 Thread Russ Anderson
On Fri, Jan 31, 2014 at 08:04:28AM +, Matt Fleming wrote: > On Thu, 30 Jan, at 04:19:50PM, Alex Thorlton wrote: > > Re-adding lkml. > > Also add linux-efi. > > > The quick answer is I think it is a virtual address, because > > it does not work in physical mode. If you ever see "virtefi" > >

Re: [PATCH v3 0/5] can: sja1000: cleanups and new OF property

2014-01-31 Thread Andreas Larsson
On 2014-01-31 14:40, Marc Kleine-Budde wrote: On 01/31/2014 02:34 PM, Florian Vaussard wrote: Hello, (could someone with a SJA1000 on SPARC perform a functional test to see if interrupts are working? it would be great :-) Changes since v2: - Dropped patch 1 "can: sja1000: remove unused defines

Re: [PATCH v3 0/5] can: sja1000: cleanups and new OF property

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 02:50 PM, Andreas Larsson wrote: > On 2014-01-31 14:40, Marc Kleine-Budde wrote: >> On 01/31/2014 02:34 PM, Florian Vaussard wrote: >>> Hello, >>> >>> (could someone with a SJA1000 on SPARC perform a functional test >>> to see if interrupts are working? it would be great :-) >>> >>> C

Re: [PATCH v3 0/5] can: sja1000: cleanups and new OF property

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 02:34 PM, Florian Vaussard wrote: > Hello, > > (could someone with a SJA1000 on SPARC perform a functional test > to see if interrupts are working? it would be great :-) > > Changes since v2: > - Dropped patch 1 "can: sja1000: remove unused defines" > - Addressed Marc's comments on

Re: [RFC PATCH] net: wireless: move regulatory timeout work to power efficient workqueue

2014-01-31 Thread Johannes Berg
On Thu, 2014-01-30 at 15:08 -0800, Zoran Markovic wrote: > From: Shaibal Dutta > > For better use of CPU idle time, allow the scheduler to select the CPU > on which the timeout work of regulatory settings would be executed. > This extends CPU idle residency time and saves power. > > This functio

Re: [RFC PATCH] net: rfkill: move poll work to power efficient workqueue

2014-01-31 Thread Johannes Berg
On Thu, 2014-01-30 at 14:43 -0800, Zoran Markovic wrote: > From: Shaibal Dutta > > This patch moves the rfkill poll_work to the power efficient workqueue. > This work does not have to be bound to the CPU that scheduled it, hence > the selection of CPU that executes it would be left to the schedul

[PATCH v3 0/5] can: sja1000: cleanups and new OF property

2014-01-31 Thread Florian Vaussard
Hello, (could someone with a SJA1000 on SPARC perform a functional test to see if interrupts are working? it would be great :-) Changes since v2: - Dropped patch 1 "can: sja1000: remove unused defines" - Addressed Marc's comments on patch 4 and 6 (now 3 and 5) Changes since v1: - Merge sja1000_o

[PATCH v3 1/5] can: sja1000: convert printk to use netdev API

2014-01-31 Thread Florian Vaussard
Use netdev_* where applicable. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/sja1000.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/can/sja1000/sja1000.c b/drivers/net/can/sja1000/sja1000.c index f17c301..55cce47 100644 --- a/drivers/net/can/sj

[PATCH v3 3/5] can: sja1000: fuse of_platform into platform

2014-01-31 Thread Florian Vaussard
The OpenFirmware probe can be merged into the standard platform probe to leverage common code. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/Kconfig | 13 +- drivers/net/can/sja1000/Makefile | 1 - drivers/net/can/sja1000/sja1000_of_platform.c | 221 --

[PATCH v3 5/5] can: sja1000: of: add reg-io-width property for 8, 16 and 32-bit register access

2014-01-31 Thread Florian Vaussard
Add the 'reg-io-width' property for 8, 16 and 32-bit access, like what is currently done with IORESOURCE_MEM_{8,16,32}BIT for non-OF boot. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/sja1000_platform.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff

[PATCH v3 4/5] Documentation: devicetree: sja1000: add reg-io-width binding

2014-01-31 Thread Florian Vaussard
Add the reg-io-width property to describe the width of the memory accesses. Cc: Grant Likely Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: devicet...@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Florian Vaussard --- Documentation/devicetree/bi

[PATCH] RFC: MFD: driver for Atmel Microcontroller on iPaq h3xxx

2014-01-31 Thread Linus Walleij
This adds a driver for the Atmel Microcontroller found on the iPAQ h3xxx series. This device handles some keys, the touchscreen, and the battery monitoring. This is a port of a driver from handhelds.org 2.6.21 kernel, written by Alessandro Gardich based on Andrew Christians original HAL-driver. It

[PATCH v3 2/5] can: sja1000: platform: use devm_* APIs

2014-01-31 Thread Florian Vaussard
Simplify probe and remove functions by converting most of the resources to use devm_* APIs. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/sja1000_platform.c | 46 -- 1 file changed, 12 insertions(+), 34 deletions(-) diff --git a/drivers/net/can/sja1000/

Re: OOPS in nf_ct_unlink_expect_report using Polycom RealPresence Mobile

2014-01-31 Thread Alexey Dobriyan
> Disabling nf_nat_h323 and nf_conntrack_h323 avoids crash - > but video conferencing software is no more usable. > > BUG: unable to handle kernel paging request at 00100104 > IP: [] nf_ct_unlink_expect_report This must be the same bug fixed in SIP module: commit 3f509c689a07a4aa989b426893d8491a7f

Re: igb and bnx2: "NETDEV WATCHDOG: transmit queue timed out" when skb has huge linear buffer

2014-01-31 Thread Zoltan Kiss
On 30/01/14 21:34, Michael Chan wrote: On Thu, 2014-01-30 at 19:08 +, Zoltan Kiss wrote: I've experienced some queue timeout problems mentioned in the subject with igb and bnx2 cards. Please provide the full tx timeout dmesg. bnx2 dumps some diagnostic information during tx timeout that ma

Re: [PATCH 2/2] iio: Add AS3935 lightning sensor support

2014-01-31 Thread Jonathan Cameron
On January 30, 2014 10:37:19 AM GMT+00:00, Peter Meerwald wrote: > >> AS3935 chipset can detect lightning strikes and reports those >> back as events and the esimated distance to the storm. > >pretty cool :) Indeed! > >the distance thing should be documented in >Documentation/ABI/testing/sysfs

Re: OOPS in nf_ct_unlink_expect_report using Polycom RealPresence Mobile

2014-01-31 Thread Mike Galbraith
(CC netdev) On Fri, 2014-01-31 at 12:05 +0100, astx wrote: > Using Polycom video conferencing software my homebrew linux NAT router > crashes with attached kernel oops message. > This error can be reproduced also using kernel 3.2.54. Kernel 2.6.35 > seems to be stable. > > Disabling nf_nat_h

Re: [PATCH v2 4/6] can: sja1000: fuse of_platform into platform

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 02:00 PM, Florian Vaussard wrote: > > > On 01/31/2014 01:51 PM, Marc Kleine-Budde wrote: >> On 01/31/2014 01:49 PM, Marc Kleine-Budde wrote: >>> On 01/31/2014 01:45 PM, Florian Vaussard wrote: Hello Marc, On 01/31/2014 01:33 PM, Marc Kleine-Budde wrote: > On 01/31

Re: [PATCH v3] x86, irq: get correct available vectors for cpu disable

2014-01-31 Thread Prarit Bhargava
On 01/28/2014 04:54 PM, Yinghai Lu wrote: > used_vectors is a bitmap for vectors that are not tracked in per_cpu > vector_irq. > used_vectors contains information on the first 32 exceptions, the system > vectors. > the IA32_SYSCALL_VECTOR (0x80), and the IRQ_MOVE_CLEANUP_VECTOR (0x20). > > assi

Re: [RFC PATCH] net: ipv4: move inetpeer garbage collector work to power efficient workqueue

2014-01-31 Thread Sergei Shtylyov
Hello. On 31-01-2014 3:40, Zoran Markovic wrote: From: Shaibal Dutta Garbage collector work does not have to be bound to the CPU that scheduled it. By moving work to the power-efficient workqueue, the selection of CPU executing the work is left to the scheduler. This extends idle residency

Re: [PATCH v5 00/22] Rewrite XIP code and add XIP support to ext4

2014-01-31 Thread Dave Chinner
On Thu, Jan 30, 2014 at 10:45:26PM -0700, Ross Zwisler wrote: > On Fri, 31 Jan 2014, Dave Chinner wrote: > > The read/write path is broken, Willy. We can't map arbitrary byte > > ranges to the DIO subsystem. I'm now certain that the data > > corruptions I'm seeing are in sub-sector regions from una

Re: [PATCH v2 4/6] can: sja1000: fuse of_platform into platform

2014-01-31 Thread Florian Vaussard
On 01/31/2014 01:51 PM, Marc Kleine-Budde wrote: > On 01/31/2014 01:49 PM, Marc Kleine-Budde wrote: >> On 01/31/2014 01:45 PM, Florian Vaussard wrote: >>> Hello Marc, >>> >>> On 01/31/2014 01:33 PM, Marc Kleine-Budde wrote: On 01/31/2014 11:35 AM, Florian Vaussard wrote: > The OpenFirmwa

Re: [PATCH 4/4] ARM: dts: add B2112 board support

2014-01-31 Thread srinivas kandagatla
On 30/01/14 14:55, Patrice CHOTARD wrote: > From: Alexandre TORGUE > > Add support for B2112 board based on STiD127 SoC. > > Signed-off-by: Alexandre Torgue > Signed-off-by: Maxime Coquelin > --- > arch/arm/boot/dts/Makefile |3 ++- > arch/arm/boot/dts/stid127-b2112.dts | 35

Re: [PATCH 3/4] ARM: dts: Add support of STid127 Soc.

2014-01-31 Thread srinivas kandagatla
Hi Patrice, On 30/01/14 14:55, Patrice CHOTARD wrote: > From: Alexandre TORGUE > > The STid127 integrates all harware components to function as a cable modem s/harware/hardware/ s/STid127/STiD127 Please fix other instances too. > or, in combination with a back end device, as a Gateway set top

Re: [PATCH v2 4/6] can: sja1000: fuse of_platform into platform

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 01:49 PM, Marc Kleine-Budde wrote: > On 01/31/2014 01:45 PM, Florian Vaussard wrote: >> Hello Marc, >> >> On 01/31/2014 01:33 PM, Marc Kleine-Budde wrote: >>> On 01/31/2014 11:35 AM, Florian Vaussard wrote: The OpenFirmware probe can be merged into the standard platform prob

Re: [PATCH v2 4/6] can: sja1000: fuse of_platform into platform

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 01:45 PM, Florian Vaussard wrote: > Hello Marc, > > On 01/31/2014 01:33 PM, Marc Kleine-Budde wrote: >> On 01/31/2014 11:35 AM, Florian Vaussard wrote: >>> The OpenFirmware probe can be merged into the standard platform >>> probe to leverage common code. >> >> Good work, as we want t

Re: [PATCH v3 3/5] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-01-31 Thread Mark Brown
On Fri, Jan 31, 2014 at 11:55:50AM +0100, Maxime Ripard wrote: > + master = devm_spi_alloc_master(&pdev->dev, sizeof(struct sun6i_spi)); > + if (!master) { > + dev_err(&pdev->dev, "Unable to allocate SPI Master\n"); > + return -ENOMEM; > + } This now depends on

[PATCH] watchdog,dw: Add dependency on HAS_IOMEM

2014-01-31 Thread Richard Weinberger
On archs like S390 or um this driver cannot build nor work. Make it depend on HAS_IOMEM to bypass build failures. drivers/built-in.o: In function `dw_wdt_drv_probe': drivers/watchdog/dw_wdt.c:302: undefined reference to `devm_ioremap_resource' Signed-off-by: Richard Weinberger --- drivers/watch

[PATCH] pwm,renesas-tpu: Add dependency on HAS_IOMEM

2014-01-31 Thread Richard Weinberger
On archs like S390 or um this driver cannot build nor work. Make it depend on HAS_IOMEM to bypass build failures. drivers/built-in.o: In function `tpu_probe': drivers/pwm/pwm-renesas-tpu.c:421: undefined reference to `devm_ioremap_resource' Signed-off-by: Richard Weinberger --- drivers/pwm/Kco

Re: [PATCH v2 4/6] can: sja1000: fuse of_platform into platform

2014-01-31 Thread Florian Vaussard
Hello Marc, On 01/31/2014 01:33 PM, Marc Kleine-Budde wrote: > On 01/31/2014 11:35 AM, Florian Vaussard wrote: >> The OpenFirmware probe can be merged into the standard platform >> probe to leverage common code. > > Good work, as we want to replace the existing driver, I'm quite picky on > this p

Re: [PATCH 2/3 v2] pinctrl-adi2: change irq_base from usigned int to int

2014-01-31 Thread Linus Walleij
On Tue, Jan 28, 2014 at 4:02 AM, Sonic Zhang wrote: > From: Sonic Zhang > > Negative irq_base means there is no fixed Linux irq mappings are created from > the platform data. > The driver calls irq_create_mapping to allocate a virtual Linux irq. Those IRQs are not any more "virtual" than any o

Re: [PATCH v2 0/6] can: sja1000: cleanups and new OF property

2014-01-31 Thread Florian Vaussard
Hello Marc, On 01/31/2014 01:37 PM, Marc Kleine-Budde wrote: > On 01/31/2014 11:35 AM, Florian Vaussard wrote: >> Hello, >> >> Changes sinces v1: >> - Merge sja1000_of_platform.c into sja1000_platform.c (patch 4) >> >> The first part of this series performs serveral small cleanups >> (patches 1 to

[PATCH] nand,flctl: Add dependency on HAS_IOMEM and HAS_DMA

2014-01-31 Thread Richard Weinberger
On archs like S390 or um this driver cannot build nor work. Make it depend on HAS_IOMEM and HAS_DMA to bypass build failures. drivers/built-in.o: In function `flctl_probe': drivers/mtd/nand/sh_flctl.c:1097: undefined reference to `devm_ioremap_resource' drivers/built-in.o: In function `flctl_dma_f

Re: [PATCH 2/4] pinctrl: st: add stid127 support

2014-01-31 Thread srinivas kandagatla
Looks good for me. Acked-by: Srinivas Kandagatla On 30/01/14 14:55, Patrice CHOTARD wrote: > From: Alexandre TORGUE > > Add STid127 PIOs (psouth, pwest, peast) in pinctrl. > > Signed-off-by: alexandre torgue > --- > drivers/pinctrl/pinctrl-st.c | 25 + > 1 file cha

Re: [PATCH v2 0/6] can: sja1000: cleanups and new OF property

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 11:35 AM, Florian Vaussard wrote: > Hello, > > Changes sinces v1: > - Merge sja1000_of_platform.c into sja1000_platform.c (patch 4) > > The first part of this series performs serveral small cleanups > (patches 1 to 3). > > Patch 4 merges sja1000_of_platform.c into sja1000_platform.

Re: [PATCH v2 1/6] can: sja1000: remove unused defines

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 11:35 AM, Florian Vaussard wrote: > Remove unused defines for the OF platform. > > Signed-off-by: Florian Vaussard I've overlooked in my first review that this patch is touching the of_platform driver. Please remove the patch, as we want to remove the driver sooner or later. Marc

Re: [PATCH 1/4] ARM: STi: add stid127 soc support

2014-01-31 Thread srinivas kandagatla
Hi Arnd, On 30/01/14 18:39, Arnd Bergmann wrote: > Actually reading the code in this file shows that the L2 cache > initialization is the only nonstandard thing in there. We should > really find a way to get rid of the entire function. I think this will get rid of lot of code left in board-dt. >

Re: [PATCH v2 2/6] can: sja1000: convert printk to use netdev API

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 11:35 AM, Florian Vaussard wrote: > Use netdev_* where applicable. > > Signed-off-by: Florian Vaussard Loks good. Tnx, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dort

Re: [PATCH v2 3/6] can: sja1000: platform: use devm_* APIs

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 11:35 AM, Florian Vaussard wrote: > Simplify probe and remove functions by converting most of the resources > to use devm_* APIs. > > Signed-off-by: Florian Vaussard Looks good. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions

Re: [PATCH v2 4/6] can: sja1000: fuse of_platform into platform

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 11:35 AM, Florian Vaussard wrote: > The OpenFirmware probe can be merged into the standard platform > probe to leverage common code. Good work, as we want to replace the existing driver, I'm quite picky on this patch, see more comments inline. Please don't delete of of_platform driv

Re: [PATCH v2 5/6] Documentation: devicetree: sja1000: add reg-io-width binding

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 11:35 AM, Florian Vaussard wrote: > Add the reg-io-width property to describe the width of the memory > accesses. > > Cc: Grant Likely > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Ian Campbell > Cc: Kumar Gala > Cc: devicet...@vger.kernel.org > Acked-by: Rob Herr

Re: [PATCH v2 6/6] can: sja1000: of: add reg-io-width property for 8, 16 and 32-bit register access

2014-01-31 Thread Marc Kleine-Budde
On 01/31/2014 11:35 AM, Florian Vaussard wrote: > Add the 'reg-io-width' property for 8, 16 and 32-bit access, like > what is currently done with IORESOURCE_MEM_{8,16,32}BIT for non-OF > boot. > > Signed-off-by: Florian Vaussard > --- > drivers/net/can/sja1000/sja1000_platform.c | 13 +++

[PATCH] usb: dwc3: keystone: switch to use runtime pm

2014-01-31 Thread Grygorii Strashko
The Keystone PM management layer has been implemented using PM bus for power management clocks. As result, most of Keystone drivers don't need to manage clocks directly. They just need to enable runtime PM and use it to handle their PM state and clocks. Hence, remove clock management code and swit

Re: [PATCH v4 1/2] mm: add kstrimdup function

2014-01-31 Thread Pavel Machek
Hi! On Fri 2014-01-31 02:46:08, David Rientjes wrote: > On Fri, 31 Jan 2014, Pavel Machek wrote: > > > > kstrimdup will duplicate and trim spaces from the passed in > > > null terminated string. This is useful for strings coming from > > > sysfs that often include trailing whitespace due to user

Re: [PATCH 0/3] spi: core: Introduce devm_spi_alloc_master

2014-01-31 Thread Mark Brown
On Fri, Jan 31, 2014 at 11:23:09AM +0100, Maxime Ripard wrote: > This patchset introduces a devm_spi_alloc_master to the spi core. While most > of > the drivers have a spi_master_put call in the probe, a lot of them using the > devm_spi_register_master function are missing it in the remove functi

[PATCH] ARM: zynq: Reserve not DMAable space in front of the kernel

2014-01-31 Thread Michal Simek
Reserve space from 0x0 - __pa(swapper_pg_dir), if kernel is loaded from 0, which is not DMAable. It is causing problem with MMC driver and others which want to add dma buffers to this space. Signed-off-by: Michal Simek --- Jason: I don't think it is worth to bring 0x8000 magic value and count mi

Re: [PATCH] perf tools: Fix JIT profiling on heap

2014-01-31 Thread Pekka Enberg
On 01/16/2014 03:49 AM, Namhyung Kim wrote: Gaurav reported that perf cannot profile JIT program if it executes the code on heap. This was because current map__new() only handle JIT on anon mappings - extends it to handle no_dso (heap, stack) case too. This patch assumes JIT profiling only prov

Re: Warning at mm/slub.c

2014-01-31 Thread Pekka Enberg
On 01/24/2014 04:21 PM, Peter Zijlstra wrote: Dave Hansen already send a fix for that: lkml.kernel.org/r/52d5746f.2040...@intel.com Pekka, any chance to get that merged? Sorry for the delay - I'm way behind my inbox. It's applied now, thanks! Pekka -- To unsubscribe fr

Re: Suspected Copy Paste error in rtnl_bridge_notify

2014-01-31 Thread Tejun Heo
Hey, Seems suspicious but I don't know the code at all. cc'ing David and netdev and quoting the whole body for them. Thanks. On Fri, Jan 31, 2014 at 11:32:55AM +0530, Yogesh Gaur wrote: > Hello All, > > I want to clarify about following code-snippet from > file: "net/core/rtnetlink.c" > func:

Re: [PATCH] gpio: bcm281xx: Use "unsigned gpio" consistently throughout the code

2014-01-31 Thread Linus Walleij
On Tue, Jan 28, 2014 at 2:32 AM, Markus Mayer wrote: > This patch removes some inconsistencies caused by the use of "int gpio" > in some parts of the code and "unsigned gpio" in others. > > Signed-off-by: Markus Mayer > Reviewed-by: Tim Kryger Patch applied, nice for static syntax checkers. B

Dear user

2014-01-31 Thread ADMIN
Dear user Your email has exceeded 2 GB, which is created by Webmaster,you are currently running at 2.30GB,you can not Send or receive new messages until you check your account.Complete the form below to verify your account. Please complete the details below to confirm your account (1) E-mail

Re: [PATCH 3/3] pinctrl-adi2: fix coding style issue

2014-01-31 Thread Linus Walleij
On Mon, Jan 27, 2014 at 11:23 AM, Sonic Zhang wrote: > From: Sonic Zhang > > Signed-off-by: Sonic Zhang Patch applied. Yours, Linus Walleij -- 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

Re: [PATCH 2/3] pinctrl-adi2: change irq_base from usigned int to int

2014-01-31 Thread Linus Walleij
On Mon, Jan 27, 2014 at 11:23 AM, Sonic Zhang wrote: > From: Sonic Zhang > > Negative irq_base means this gpio port doens't support interrupts. > > Signed-off-by: Sonic Zhang Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH 1/3] pinctrl: Move pint PM storage structure out of blackfin architecture.

2014-01-31 Thread Linus Walleij
On Mon, Jan 27, 2014 at 11:23 AM, Sonic Zhang wrote: > From: Sonic Zhang > > It is better to keep this structure in the pinctrl-adi2 driver. > > Signed-off-by: Sonic Zhang Seems like a good idea, patch applied. (Steven, complain if any problem.) Yours, Linus Walleij -- To unsubscribe from thi

Re: [PATCH v11 0/4] Introducing a queue read/write lock implementation

2014-01-31 Thread Peter Zijlstra
On Fri, Jan 31, 2014 at 11:17:29AM +0100, Peter Zijlstra wrote: > My main point was that we should seriously look at a ticket lock instead > of the MCS one, because while the MCS has better contention behaviour, > we shouldn't optimize locks for the worst contention. In fact, I should have just us

Re: [PATCH] memcg: fix mutex not unlocked on memcg_create_kmem_cache fail path

2014-01-31 Thread Vladimir Davydov
On 01/31/2014 02:42 PM, David Rientjes wrote: > On Fri, 31 Jan 2014, Vladimir Davydov wrote: > >>> diff --git a/mm/memcontrol.c b/mm/memcontrol.c >>> --- a/mm/memcontrol.c >>> +++ b/mm/memcontrol.c >>> @@ -637,6 +637,9 @@ int memcg_limited_groups_array_size; >>> * better kept as an internal repre

OOPS in nf_ct_unlink_expect_report using Polycom RealPresence Mobile

2014-01-31 Thread astx
Using Polycom video conferencing software my homebrew linux NAT router crashes with attached kernel oops message. This error can be reproduced also using kernel 3.2.54. Kernel 2.6.35 seems to be stable. Disabling nf_nat_h323 and nf_conntrack_h323 avoids crash - but video conferencing softwa

[PATCH v3 1/5] clk: sunxi: Add support for PLL6 on the A31

2014-01-31 Thread Maxime Ripard
The A31 has a slightly different PLL6 clock. Add support for this new clock in our driver. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sunxi.c | 45 +++ 2 files changed, 46 insertions(+)

[PATCH v3 3/5] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-01-31 Thread Maxime Ripard
The Allwinner A31 has a new SPI controller IP compared to the older Allwinner SoCs. It supports DMA, but the driver only does PIO for now, and DMA will be supported eventually. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/spi/spi-sun6i.txt | 24 ++ drivers/spi/Kconfig

[PATCH v3 0/5] Add Allwinner A31 SPI controller support

2014-01-31 Thread Maxime Ripard
Hi everyone, This patchset brings support for the SPI controller found in the Allwinner A31 SoC. Even though the controller supports DMA, the driver only supports PIO mode for now. This driver will be used to bring up and test DMA on the SoC, so support for the DMA will come eventually. It doesn

[PATCH v3 4/5] ARM: sun6i: dt: Add SPI controllers to the A31 DTSI

2014-01-31 Thread Maxime Ripard
The A31 has 4 SPI controllers. Add them in the DTSI. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 40 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index 0eea325..

[PATCH v3 2/5] ARM: sun6i: dt: Add PLL6 and SPI module clocks

2014-01-31 Thread Maxime Ripard
The module clocks in the A31 are still compatible with the A10 one. Add the SPI module clocks and the PLL6 in the device tree to allow their use by the SPI controllers. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 46 1 file changed

[PATCH v3 5/5] ARM: sunxi: Enable A31 SPI and SID in the defconfig

2014-01-31 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/configs/sunxi_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 3e2259b..b5df4a5 100644 --- a/arch/arm/configs/sunxi_defconfig +++ b/arch/arm/configs/sunxi_defconfig

RE: [RFC PATCH 0/2] dmaengine: at_hdmac: fix locking according to slave DMA requirements

2014-01-31 Thread Jouko Haapaluoma
Hi Thanks for the patches. We got the DMA working for now but the tasklet_disable() and tasklet_enable() had to be removed from atc_control(). If the device driver calls dmaengine_terminate_all() from the callback (like in our previous deadlock example), the tasklet_disable() will cause another

drm/cirrus: Ignore busy mem region when mapping VRAM

2014-01-31 Thread Stefan Bader
I know this is a gross hack but something like that currently is required to avoid a KVM guest booted from graphical grub mode (so simplefb is taking effect) getting into a state where there is no framebuffer in use at all (since simplefb was removed but cirrus fails to acquire VRAM resources which

Re: [PATCH v4 1/2] mm: add kstrimdup function

2014-01-31 Thread David Rientjes
On Fri, 31 Jan 2014, Pavel Machek wrote: > > kstrimdup will duplicate and trim spaces from the passed in > > null terminated string. This is useful for strings coming from > > sysfs that often include trailing whitespace due to user input. > > Is it good idea? I mean "\n\n/foo bar baz" is valid

Re: [RFC PATCH 3/3] idle: store the idle state index in the struct rq

2014-01-31 Thread Daniel Lezcano
On 01/30/2014 10:02 PM, Nicolas Pitre wrote: On Thu, 30 Jan 2014, Lorenzo Pieralisi wrote: On Thu, Jan 30, 2014 at 05:25:27PM +, Daniel Lezcano wrote: On 01/30/2014 05:35 PM, Peter Zijlstra wrote: On Thu, Jan 30, 2014 at 05:27:54PM +0100, Daniel Lezcano wrote: IIRC, Alex Shi sent a patch

Re: [PATCH] memcg: fix mutex not unlocked on memcg_create_kmem_cache fail path

2014-01-31 Thread David Rientjes
On Fri, 31 Jan 2014, Vladimir Davydov wrote: > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > --- a/mm/memcontrol.c > > +++ b/mm/memcontrol.c > > @@ -637,6 +637,9 @@ int memcg_limited_groups_array_size; > > * better kept as an internal representation in cgroup.c. In any case, the > > * c

Re: [PATCH v4] HID: New hid-cp2112 driver

2014-01-31 Thread Jiri Kosina
On Wed, 29 Jan 2014, David Barksdale wrote: > diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig > index 34e2d39..246a233 100644 > --- a/drivers/hid/Kconfig > +++ b/drivers/hid/Kconfig > @@ -175,6 +175,15 @@ config HID_PRODIKEYS > multimedia keyboard, but will lack support for the musi

[PATCH v2 2/6] can: sja1000: convert printk to use netdev API

2014-01-31 Thread Florian Vaussard
Use netdev_* where applicable. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/sja1000.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/can/sja1000/sja1000.c b/drivers/net/can/sja1000/sja1000.c index f17c301..55cce47 100644 --- a/drivers/net/can/sj

[PATCH v2 3/6] can: sja1000: platform: use devm_* APIs

2014-01-31 Thread Florian Vaussard
Simplify probe and remove functions by converting most of the resources to use devm_* APIs. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/sja1000_platform.c | 46 -- 1 file changed, 12 insertions(+), 34 deletions(-) diff --git a/drivers/net/can/sja1000/

[PATCH v2 5/6] Documentation: devicetree: sja1000: add reg-io-width binding

2014-01-31 Thread Florian Vaussard
Add the reg-io-width property to describe the width of the memory accesses. Cc: Grant Likely Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: devicet...@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Florian Vaussard --- Documentation/devicetree/bi

[PATCH v2 0/6] can: sja1000: cleanups and new OF property

2014-01-31 Thread Florian Vaussard
Hello, Changes sinces v1: - Merge sja1000_of_platform.c into sja1000_platform.c (patch 4) The first part of this series performs serveral small cleanups (patches 1 to 3). Patch 4 merges sja1000_of_platform.c into sja1000_platform.c. Changes are pretty conservatives (mostly copy/paste/move). IRQ

[PATCH v2 1/6] can: sja1000: remove unused defines

2014-01-31 Thread Florian Vaussard
Remove unused defines for the OF platform. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/sja1000_of_platform.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/can/sja1000/sja1000_of_platform.c b/drivers/net/can/sja1000/sja1000_of_platform.c index 047accd..2f29eb9

[PATCH v2 4/6] can: sja1000: fuse of_platform into platform

2014-01-31 Thread Florian Vaussard
The OpenFirmware probe can be merged into the standard platform probe to leverage common code. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/Kconfig | 13 +- drivers/net/can/sja1000/Makefile | 1 - drivers/net/can/sja1000/sja1000_of_platform.c | 218 --

[PATCH v2 6/6] can: sja1000: of: add reg-io-width property for 8, 16 and 32-bit register access

2014-01-31 Thread Florian Vaussard
Add the 'reg-io-width' property for 8, 16 and 32-bit access, like what is currently done with IORESOURCE_MEM_{8,16,32}BIT for non-OF boot. Signed-off-by: Florian Vaussard --- drivers/net/can/sja1000/sja1000_platform.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --g

Re: [PATCH v4 1/2] mm: add kstrimdup function

2014-01-31 Thread Pavel Machek
On Wed 2014-01-29 15:48:23, Sebastian Capella wrote: > kstrimdup will duplicate and trim spaces from the passed in > null terminated string. This is useful for strings coming from > sysfs that often include trailing whitespace due to user input. Is it good idea? I mean "\n\n/foo bar baz" is valid

Re: [PATCH v6 1/2] mm: add kstrimdup function

2014-01-31 Thread David Rientjes
On Thu, 30 Jan 2014, Sebastian Capella wrote: > kstrimdup creates a whitespace-trimmed duplicate of the passed > in null-terminated string. This is useful for strings coming > from sysfs that often include trailing whitespace due to user > input. > > Thanks to Joe Perches for this implementation

Re: [PATCH] irq: fix a Kconfig dependency

2014-01-31 Thread David Rientjes
On Thu, 30 Jan 2014, nitin.a.kam...@intel.com wrote: > From: Nitin A Kamble > > The generic_chip.c uses interfaces from irq_domain.c which is controlled by > the IRQ_DOMAIN config option. > > Add a select statement in the Kconfig to reflect this requirement. > > Without this fix, the generic_c

[PATCH 2/3] spi: core: Update the devm_spi_register_master documentation

2014-01-31 Thread Maxime Ripard
If the devm_spi_register_master function is used together with the spi_alloc_master as advertised in the documentation, it will either lead to a memory leak if spi_put_master is removed, or we will try to access an already freed memory area during the unregistration function. Advertise that you wa

[PATCH 3/3] spi: switch to devm_spi_alloc_master

2014-01-31 Thread Maxime Ripard
Make the existing users of devm_spi_register_master use the devm_spi_alloc_master function to avoid leaking memory. Signed-off-by: Maxime Ripard --- drivers/spi/spi-atmel.c | 8 +++- drivers/spi/spi-bcm2835.c| 15 +-- drivers/spi/spi-bcm63xx-hsspi.c | 8 +++---

[PATCH 1/3] spi: core: Add devm_spi_alloc_master

2014-01-31 Thread Maxime Ripard
Using devm_spi_register_master leads to a memory leak on the spi_master structure. spi_alloc_master uses kzalloc to allocate the spi_master but the introduction of devm_spi_register_master removed all the matching calls to spi_master_put, leaking the spi_master structure. Add a devm_spi_alloc_mas

[PATCH 0/3] spi: core: Introduce devm_spi_alloc_master

2014-01-31 Thread Maxime Ripard
Hi! This patchset introduces a devm_spi_alloc_master to the spi core. While most of the drivers have a spi_master_put call in the probe, a lot of them using the devm_spi_register_master function are missing it in the remove function, leading to leaked resources. Hence, we introduced a devm_spi_al

Re: [RFC PATCH 3/3] idle: store the idle state index in the struct rq

2014-01-31 Thread Peter Zijlstra
On Fri, Jan 31, 2014 at 03:09:49PM +0530, Preeti U Murthy wrote: > > Alternatively, can we enforce sanity on the cpuidle infrastructure to > > make the index naturally ordered? If not, please explain why :-) > > The commit id 71abbbf856a0e70 says that there are SOCs which could have > their target

Re: [PATCH] x86: Build 16-bit code with -m16 where possible

2014-01-31 Thread Pavel Machek
On Wed 2014-01-29 12:11:25, David Woodhouse wrote: > Both clang 3.5 and GCC 4.9 will support this (as of r207196 and r199754 > respectively). Both have been tested to produce booting kernels when the > 16-bit code is built with -m16. (Modulo LLVM PR3997, at least.) Will this break compilation with

Re: [PATCH v2 00/21] pinctrl: mvebu: restructure and remove hardcoded addresses from Dove pinctrl

2014-01-31 Thread Sebastian Hesselbarth
On 01/31/14 11:17, Linus Walleij wrote: On Tue, Jan 28, 2014 at 1:39 AM, Sebastian Hesselbarth wrote: This patch set is one required step for Dove to hop into mach-mvebu. Until now, pinctrl-dove was hardcoding some registers that do not directly belong to MPP core registers. This is not compat

Re: [PATCH v2 09/21] pinctrl: mvebu: dove: provide generic mpp callbacks

2014-01-31 Thread Sebastian Hesselbarth
On 01/31/14 11:13, Linus Walleij wrote: On Tue, Jan 28, 2014 at 1:39 AM, Sebastian Hesselbarth wrote: We want to get rid of passing register addresses to common pinctrl driver, so provide set/get callbacks for generic mpp pins. Signed-off-by: Sebastian Hesselbarth [...] @@ -374,7 +398,7 @@

Re: [PATCH v11 0/4] Introducing a queue read/write lock implementation

2014-01-31 Thread Peter Zijlstra
On Fri, Jan 31, 2014 at 05:03:48AM -0500, George Spelvin wrote: > How about getting rid of that TICKET_MSB mess and doing something like: > > #define TICKET_MASK 0x > > static inline void ticket_spin_unlock(atomic_t *tickets) > { > u32 t = *tickets; > > smp_mb__before_atomic_in

Re: [PATCH v2 00/21] pinctrl: mvebu: restructure and remove hardcoded addresses from Dove pinctrl

2014-01-31 Thread Linus Walleij
On Tue, Jan 28, 2014 at 1:39 AM, Sebastian Hesselbarth wrote: > This patch set is one required step for Dove to hop into mach-mvebu. > Until now, pinctrl-dove was hardcoding some registers that do not > directly belong to MPP core registers. This is not compatible with > what we want for mach-mve

Re: [RFC PATCH 3/3] idle: store the idle state index in the struct rq

2014-01-31 Thread Daniel Lezcano
On 01/31/2014 09:45 AM, Preeti Murthy wrote: Hi, On Thu, Jan 30, 2014 at 10:55 PM, Daniel Lezcano wrote: On 01/30/2014 05:35 PM, Peter Zijlstra wrote: On Thu, Jan 30, 2014 at 05:27:54PM +0100, Daniel Lezcano wrote: struct cpuidle_state *state = &drv->states[rq->index]; And from the state,

Re: [PATCH v2 09/21] pinctrl: mvebu: dove: provide generic mpp callbacks

2014-01-31 Thread Linus Walleij
On Tue, Jan 28, 2014 at 1:39 AM, Sebastian Hesselbarth wrote: > We want to get rid of passing register addresses to common pinctrl > driver, so provide set/get callbacks for generic mpp pins. > > Signed-off-by: Sebastian Hesselbarth OK... > +static int dove_mpp_ctrl_get(struct mvebu_mpp_ctrl *

Re: [BUG] Linux 3.14 fails to boot with new EFI changes

2014-01-31 Thread Borislav Petkov
On Thu, Jan 30, 2014 at 02:23:46PM -0800, H. Peter Anvin wrote: > On 01/30/2014 02:19 PM, Alex Thorlton wrote: > > > > The quick answer is I think it is a virtual address, because it does > > not work in physical mode. If you ever see "virtefi" on the RHEL > > bootline it is because RH switched the

Re: [PATCH] net: set default DEVTYPE for all ethernet based devices

2014-01-31 Thread Veaceslav Falico
On Fri, Jan 31, 2014 at 01:54:03AM +0100, Tom Gundersen wrote: Hi Veaceslav, Thanks for your quick reply. On Thu, Jan 30, 2014 at 4:05 PM, Veaceslav Falico wrote: On Thu, Jan 30, 2014 at 02:20:02PM +0100, Tom Gundersen wrote: In systemd's networkd and udevd, we would like to give the admini

<    1   2   3   4   5   6   >