[PATCH v4 4/4] dw_dmac: return proper residue value

2013-01-25 Thread Andy Shevchenko
Currently the driver returns full length of the active descriptor which is wrong. We have to go throught the active descriptor and substract the length of each sent children in the chain from the total length along with the actual data in the DMA channel registers. The cyclic case is not handled b

[PATCH v4 0/4] dw_dmac: return actual residue value

2013-01-25 Thread Andy Shevchenko
The patch series is targeted for getting proper residue value. Since v3: - split dwc_get_residue() from dwc_tx_status and improve locking there - patch 1/4 "dw_dmac: remove unnecessary tx_list field in dw_dma_chan" was amended a bit to simplify patch 4/4 Since v2: - get rid of dwc_update_residu

[PATCH v4 2/4] dw_dmac: introduce total_len field in struct dw_desc

2013-01-25 Thread Andy Shevchenko
By this new field we distinguish a total length of the chain and the individual length of each descriptor in the chain. Signed-off-by: Andy Shevchenko Acked-by: Viresh Kumar --- drivers/dma/dw_dmac.c | 12 ++-- drivers/dma/dw_dmac_regs.h |1 + 2 files changed, 7 insertions(+)

[PATCH v4 1/4] dw_dmac: remove unnecessary tx_list field in dw_dma_chan

2013-01-25 Thread Andy Shevchenko
The soft LLP mode is working for active descriptor only. So, we do not need to have a copy of its pointer. Signed-off-by: Andy Shevchenko Acked-by: Viresh Kumar --- drivers/dma/dw_dmac.c | 20 +++- drivers/dma/dw_dmac_regs.h |1 - 2 files changed, 15 insertions(+), 6

[PATCH v4 3/4] dw_dmac: fill individual length of descriptor

2013-01-25 Thread Andy Shevchenko
It will be useful to have the length of the transfer in the descriptor. The cyclic transfer functions remained untouched. Signed-off-by: Andy Shevchenko Acked-by: Viresh Kumar --- drivers/dma/dw_dmac.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-01-25 Thread Linus Walleij
On Thu, Jan 24, 2013 at 9:52 PM, Aaron Sierra wrote: > In ICH5 and earlier the GPIOBASE and GPIOCTRL registers are found at > offsets 0x58 and 0x5C, respectively. This patch allows GPIO access to > properly be enabled (and disabled) for these chipsets. > > Signed-off-by: Agócs Pál > Signed-off-b

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Andy Shevchenko
On Fri, Jan 25, 2013 at 11:30 AM, Viresh Kumar wrote: > On Fri, Jan 25, 2013 at 2:49 PM, Andy Shevchenko > wrote: >> On Fri, Jan 25, 2013 at 11:07 AM, Viresh Kumar >> wrote: >>> Who is going to right on ctlhi/lo? > > Ahh, my English :( (/s/right/write) > >> dwc_do_single_block() >> >>> we write

[PATCH 1/3] acpi, memory-hotplug: Parse SRAT before memblock is ready.

2013-01-25 Thread Tang Chen
On linux, the pages used by kernel could not be migrated. As a result, if a memory range is used by kernel, it cannot be hot-removed. So if we want to hot-remove memory, we should prevent kernel from using it. The way now used to prevent this is specify a memory range by movablemem_map boot option

[PATCH 3/3] acpi, memory-hotplug: Support getting hotplug info from SRAT.

2013-01-25 Thread Tang Chen
We now provide an option for users who don't want to specify physical memory address in kernel commandline. /* * For movablemem_map=acpi: * * SRAT:|_| |_| |_| |_| .. * node id:0 1

[PATCH 0/3] Support SRAT for movablemem_map boot option.

2013-01-25 Thread Tang Chen
Here, we do two things: 1) patch1 ~ patch2: Prevent memblock from allocating memory in memory to be set as ZONE_MOVABLE. 2) patch3: Provide movablemem_map=acpi option for users who don't want to specify physical address in kernel

Re: [perfmon2] [PATCH RESEND V5 0/6] perf, amd: Enable AMD family 15h northbridge counters

2013-01-25 Thread Stephane Eranian
Hi Jacob, I will apply this patch to libpfm4. But I have a question. Why aren't the other uncore events included here as well? I am talking about the events listed in BKDG sections 3.16.2 to 3.16.6? Are those NOT supported by your kernel patchset? On Thu, Jan 24, 2013 at 11:06 PM, Jacob Shin w

[PATCH 2/3] acpi, memory-hotplug: Extend movablemem_map ranges to the end of node.

2013-01-25 Thread Tang Chen
When implementing movablemem_map boot option, we introduced an array movablemem_map.map[] to store the memory ranges to be set as ZONE_MOVABLE. Since ZONE_MOVABLE is the latst zone of a node, if user didn't specify the whole node memory range, we need to extend it to the node end so that we can us

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Andy Shevchenko
On Fri, Jan 25, 2013 at 11:39 AM, Viresh Kumar wrote: > On 25 January 2013 15:07, Andy Shevchenko wrote: >> Yeah, the keyword is "look". 1 per million cases it could be true. I >> think this discussion is going to the dead end. >> Anyone else would like to argue for one or the other opinion? >> >

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Viresh Kumar
On 25 January 2013 15:07, Andy Shevchenko wrote: > Yeah, the keyword is "look". 1 per million cases it could be true. I > think this discussion is going to the dead end. > Anyone else would like to argue for one or the other opinion? > > I might obey your way with the commentary that with quite lo

[PATCH v3] PCI: Document PCIE BUS MPS parameters

2013-01-25 Thread Yijing Wang
v0->v1: Update MPS parameters as non-arch and add MRRS description into pcie_bus_perf parameter suggested by Andrew Murray. v1->v2: Update some semantic problems and add MPS and MRRS explanation suggested by Joe Lawrence and Randy Dunlap. v2->v3: Upda

Re: [PATCH 1/2] x86, Kconfig: Move PARAVIRT_DEBUG into the paravirt menu

2013-01-25 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Jan 25, 2013 at 10:20:32AM +0100, Ingo Molnar wrote: > > Maybe it's related, but I had to resolve two conflicts when > > merging your two patches to tip:x86/cpu and then to > > tip:master - first in arch/x86/Kconfig, then in > > arch/x86/include/asm/hypervi

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Viresh Kumar
On Fri, Jan 25, 2013 at 2:49 PM, Andy Shevchenko wrote: > On Fri, Jan 25, 2013 at 11:07 AM, Viresh Kumar > wrote: >> Who is going to right on ctlhi/lo? Ahh, my English :( (/s/right/write) > dwc_do_single_block() > >> we write to ctlhi/lo only when we program new >> transfer. and that is not go

Re: [PATCH 1/2] x86, Kconfig: Move PARAVIRT_DEBUG into the paravirt menu

2013-01-25 Thread Borislav Petkov
On Fri, Jan 25, 2013 at 10:20:32AM +0100, Ingo Molnar wrote: > Maybe it's related, but I had to resolve two conflicts when merging > your two patches to tip:x86/cpu and then to tip:master - first in > arch/x86/Kconfig, then in arch/x86/include/asm/hypervisor.h. > > The second conflict looked harmle

Re: [PATCH 06/13] sg_io: whitelist a few more commands for multimedia devices

2013-01-25 Thread Paolo Bonzini
Il 24/01/2013 23:55, Tejun Heo ha scritto: > On Thu, Jan 24, 2013 at 04:00:42PM +0100, Paolo Bonzini wrote: >> Strangely, a couple of MMC commands were never included. Add them too. > > What are the justifications for adding these commands to the filter? > Are there users requesting these? I thi

Re: [PATCH 2/2] mutex: use spin_[un]lock instead of arch_spin_[un]lock

2013-01-25 Thread Ingo Molnar
* nan chen wrote: > 2013/1/25 Ingo Molnar > > > > > * Andrew Morton wrote: > > > > > On Thu, 24 Jan 2013 17:22:45 +0800 > > > Yuanhan Liu wrote: > > > > > > > Use spin_[un]lock instead of arch_spin_[un]lock in mutex-debug.h so > > > > that we can collect the lock statistics of spin_lock_mute

Re: [PATCH 1/2] x86, Kconfig: Move PARAVIRT_DEBUG into the paravirt menu

2013-01-25 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Jan 25, 2013 at 09:21:26AM +0100, Ingo Molnar wrote: > > > > So, these two patches, on top of -tip, produce: > > > > vmw_balloon.c:(.init.text+0x8506): undefined reference to `x86_hyper' > > vmw_balloon.c:(.init.text+0x850a): undefined reference to `x86_hyper

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Andy Shevchenko
On Fri, Jan 25, 2013 at 11:07 AM, Viresh Kumar wrote: > On 25 January 2013 14:34, Andy Shevchenko wrote: >> Okay, we have to have a protection here because get_sent reads two >> registers consequentially. This means we could end up with scenario >> with threads 1 and 2 >> >> 1. read ctlhi >> 2. w

Re: [PATCH V7 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive

2013-01-25 Thread Wanlong Gao
- for (i = 0; i < vi->max_queue_pairs; i++) { - int cpu = set ? i : -1; - virtqueue_set_affinity(vi->rq[i].vq, cpu); - virtqueue_set_affinity(vi->sq[i].vq, cpu); - } + if (set) { + i = 0; + for_each_onli

Re: [PATCH v2] PCI: Document PCIE BUS MPS parameters

2013-01-25 Thread Yijing Wang
Hi Bjorn, Thanks for your review and comments! Please refer to inlined comment bellow. On 2013/1/25 12:57, Bjorn Helgaas wrote: > [+cc Jon, can you make sure this documentation is accurate?] > >> >> diff --git a/Documentation/kernel-parameters.txt >> b/Documentation/kernel-parameters.txt >> i

Re: [PATCH V7 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive

2013-01-25 Thread Jason Wang
On 01/25/2013 05:05 PM, Wanlong Gao wrote: > On 01/25/2013 05:00 PM, Jason Wang wrote: >> On 01/25/2013 04:36 PM, Wanlong Gao wrote: >>> As Michael mentioned, set affinity and select queue will not work very >>> well when CPU IDs are not consecutive, this can happen with hot unplug. >>> Fix this bu

Re: [PATCH next-20130124] Sound: pci: Fix unused variable warning in patch_sigmatel.c

2013-01-25 Thread Takashi Iwai
At Fri, 25 Jan 2013 00:38:06 +0200, Stratos Karafotis wrote: > > Fix the following build warnings > > sound/pci/hda/patch_sigmatel.c: In function ‘stac92hd71bxx_fixup_hp’: > sound/pci/hda/patch_sigmatel.c:2434:24: warning: unused variable ‘spec’ > [-Wunused-variable] Thanks for catching. But s

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Viresh Kumar
On 25 January 2013 14:34, Andy Shevchenko wrote: > Okay, we have to have a protection here because get_sent reads two > registers consequentially. This means we could end up with scenario > with threads 1 and 2 > > 1. read ctlhi > 2. write ctlhi > 2. write ctllo > 1. read ctllo Who is going to ri

Re: [PATCH V7 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive

2013-01-25 Thread Wanlong Gao
On 01/25/2013 05:00 PM, Jason Wang wrote: > On 01/25/2013 04:36 PM, Wanlong Gao wrote: >> As Michael mentioned, set affinity and select queue will not work very >> well when CPU IDs are not consecutive, this can happen with hot unplug. >> Fix this bug by traversal the online CPUs, and create a per

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Andy Shevchenko
On Fri, Jan 25, 2013 at 10:56 AM, Andy Shevchenko wrote: > On Fri, 2013-01-25 at 09:43 +0530, Viresh Kumar wrote: >> On Thu, Jan 24, 2013 at 6:37 PM, Andy Shevchenko >> wrote: >> > diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c >> > +static inline u32 dwc_get_residue(struct dw_dma_ch

Re: [PATCH v7 07/18] perf: add generic memory sampling interface

2013-01-25 Thread Ingo Molnar
* Stephane Eranian wrote: > This patch adds PERF_SAMPLE_DSRC. > > PERF_SAMPLE_DSRC collects the data source, i.e., where > did the data associated with the sampled instruction > come from. Information is stored in a perf_mem_dsrc > structure. It contains opcode, mem level, tlb, snoop, > lock in

Re: [PATCH V7 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive

2013-01-25 Thread Jason Wang
On 01/25/2013 04:36 PM, Wanlong Gao wrote: > As Michael mentioned, set affinity and select queue will not work very > well when CPU IDs are not consecutive, this can happen with hot unplug. > Fix this bug by traversal the online CPUs, and create a per cpu variable > to find the mapping from CPU to

[PATCHv2] ARM: mxs: dt: Add Crystalfontz CFA-10037 device tree support

2013-01-25 Thread Maxime Ripard
The CFA-10037 is another expansion board for the CFA-10036 module, with only a USB Host, a Ethernet device and a lot of gpios. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/imx28-cfa10037.dts | 77 ++ arch/arm/

Re: [PATCH v1 1/8] usb: otg: palmas-usb: make palmas-usb as a comparator driver

2013-01-25 Thread Felipe Balbi
On Fri, Jan 25, 2013 at 02:14:07PM +0530, kishon wrote: > On Friday 25 January 2013 01:13 PM, Felipe Balbi wrote: > >Hi, > > > >On Fri, Jan 25, 2013 at 08:42:24AM +0530, Kishon Vijay Abraham I wrote: > >>palmas-usb is made as a comparator driver to omap usb2 phy, so that > >>omap usb can make use o

[PATCH V2 3/3] Xen ACPI cpu hotplug

2013-01-25 Thread Liu, Jinsong
>From 82f36ae635f404ae8518c4813bafeb2dbbefdfa8 Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Fri, 25 Jan 2013 15:43:34 +0800 Subject: [PATCH 3/3] Xen ACPI cpu hotplug This patch implement real Xen ACPI cpu hotplug driver as module. When loaded, it replaces Xen stub driver. For booting existed

[PATCH V2 2/3] Move xen_acpi_get_pxm to Xen acpi.h

2013-01-25 Thread Liu, Jinsong
>From ede9d238638c12dc80e08187500f4ef163e49a49 Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Fri, 25 Jan 2013 15:42:31 +0800 Subject: [PATCH 2/3] Move xen_acpi_get_pxm to Xen acpi.h So that it could be reused by Xen CPU hotplug logic. Signed-off-by: Liu, Jinsong --- drivers/xen/xen-acpi-mem

[PATCH V2 1/3] Xen stub driver for CPU hotplug

2013-01-25 Thread Liu, Jinsong
>From 74028ed6e4190ba0ea8ec87cba1d28de95a128bf Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Thu, 24 Jan 2013 22:12:30 +0800 Subject: [PATCH 1/3] Xen stub driver for CPU hotplug Add Xen stub driver for CPU hotplug, early occupy to block native, will be replaced later by real Xen processor driv

Re: [PATCH v3.5] dw_dmac: return proper residue value

2013-01-25 Thread Andy Shevchenko
On Fri, 2013-01-25 at 09:43 +0530, Viresh Kumar wrote: > On Thu, Jan 24, 2013 at 6:37 PM, Andy Shevchenko > wrote: > > Currently the driver returns full length of the active descriptor which is > > wrong. We have to go throught the active descriptor and substract the > > length of > > each sent

[PATCH V4 2/2] Xen ACPI memory hotplug

2013-01-25 Thread Liu, Jinsong
>From 8e9d4d9b17bfb3831c6a49ad9b72c1395bde2d6b Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Thu, 24 Jan 2013 20:19:47 +0800 Subject: [PATCH 2/2] Xen ACPI memory hotplug This patch implements real Xen acpi memory hotplug driver as module. When loaded, it replaces Xen stub driver. When an acpi

[PATCH 2/2] gpio: pca953x: use managed resources

2013-01-25 Thread Linus Walleij
Using the devm_* managed resources the pca driver can be simplified and cut down on boilerplate code. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-pca953x.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c b/dri

[PATCH 1/2] gpio: pca953x: use simple irqdomain

2013-01-25 Thread Linus Walleij
This switches the legacy irqdomain to the simple one, which will auto-allocate descriptors, and also make sure that we use irq_create_mapping() in the to_irq function. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-pca953x.c | 35 ++- 1 file changed, 10 insert

Re: [PATCH v7 00/18] perf: add memory access sampling support

2013-01-25 Thread Ingo Molnar
* Stephane Eranian wrote: > This patch series had a new feature to the kernel perf_events > interface and corresponding user level tool, perf. Can I add your Signed-off-by tag to the patches you picked up from Andi? Thanks, Ingo -- To unsubscribe from this list: send the line "unsub

[PATCH V4 1/2] Xen stub driver for memory hotplug

2013-01-25 Thread Liu, Jinsong
>From ccd5a2e956b51579a641a4b7922e95f9f4a51bbb Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Thu, 24 Jan 2013 20:16:59 +0800 Subject: [PATCH 1/2] Xen stub driver for memory hotplug This patch create a file (xen-stub.c) for Xen stub drivers. Xen stub drivers are used to reserve space for Xen dr

[PATCH 2/3] ARM: dts: mxs: Add muxing options for the third PWM

2013-01-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/imx28.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi index 13b7053..7ba4966 100644 --- a/arch/arm/boot/dts/imx28.dtsi +++ b/arch/arm/boot/dts/imx28.dtsi @@ -502,6

[PATCH 3/3] ARM: dts: mxs: Add the LCD to the 10049 board

2013-01-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10049.dts | 99 ++ arch/arm/mach-mxs/mach-mxs.c | 22 2 files changed, 121 insertions(+) diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts inde

[PATCH 1/3] fb: backlight: Add the Himax HX-8357B LCD controller

2013-01-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard Cc: Andrew Morton --- drivers/video/backlight/Kconfig |7 + drivers/video/backlight/Makefile |1 + drivers/video/backlight/hx8357.c | 482 ++ 3 files changed, 490 insertions(+) create mode 100644 drivers/video/backlight/

Re: [BUG] panda board locks up on boot

2013-01-25 Thread Russell King - ARM Linux
On Thu, Jan 24, 2013 at 10:01:26PM -0500, Steven Rostedt wrote: > I've recently started testing my work on arm boards and have found that > they both don't boot under the latest kernel anymore. I already posted > about my snowball board, but my panda board also locks up. You need to enable DMA eng

Re: [PATCH v3 2/3] gpio: pca953x: add support for pca9505

2013-01-25 Thread Linus Walleij
On Fri, Jan 25, 2013 at 9:36 AM, Gregory CLEMENT wrote: > Well, at the beginning I thought adding support for pca9505 was just a matter > of a couple of lines to add. Then I realized that I need to handle the 40 bits > case, and I ended up refactoring all access to the registers. So now I am on

Re: [PATCH 1/2] x86, Kconfig: Move PARAVIRT_DEBUG into the paravirt menu

2013-01-25 Thread Borislav Petkov
On Fri, Jan 25, 2013 at 09:21:26AM +0100, Ingo Molnar wrote: > > So, these two patches, on top of -tip, produce: > > vmw_balloon.c:(.init.text+0x8506): undefined reference to `x86_hyper' > vmw_balloon.c:(.init.text+0x850a): undefined reference to `x86_hyper_vmware' Hmm, I somehow can't trigger i

Re: [PATCH v3 1/4] drivers: usb: phy: add a new driver for usb part of control module

2013-01-25 Thread kishon
On Friday 25 January 2013 02:15 PM, Felipe Balbi wrote: hi, On Fri, Jan 25, 2013 at 02:12:41PM +0530, kishon wrote: On Friday 25 January 2013 01:18 PM, Felipe Balbi wrote: On Thu, Jan 24, 2013 at 09:32:46PM -0800, Stephen Warren wrote: On 01/24/2013 06:19 PM, Kishon Vijay Abraham I wrote: Ad

Re: [PATCH v3 1/4] drivers: usb: phy: add a new driver for usb part of control module

2013-01-25 Thread Felipe Balbi
hi, On Fri, Jan 25, 2013 at 02:12:41PM +0530, kishon wrote: > On Friday 25 January 2013 01:18 PM, Felipe Balbi wrote: > >On Thu, Jan 24, 2013 at 09:32:46PM -0800, Stephen Warren wrote: > >>On 01/24/2013 06:19 PM, Kishon Vijay Abraham I wrote: > >>>Added a new driver for the usb part of control mod

Re: [PATCH 2/4] ARM: OMAP2+: dpll: am335x - avoid freqsel

2013-01-25 Thread Paul Walmsley
On Tue, 22 Jan 2013, Afzal Mohammed wrote: > am335x does not have freqsel, avoid it. > > Signed-off-by: Afzal Mohammed Thanks, queued for 3.9. - Paul -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH v1 1/8] usb: otg: palmas-usb: make palmas-usb as a comparator driver

2013-01-25 Thread kishon
On Friday 25 January 2013 01:13 PM, Felipe Balbi wrote: Hi, On Fri, Jan 25, 2013 at 08:42:24AM +0530, Kishon Vijay Abraham I wrote: palmas-usb is made as a comparator driver to omap usb2 phy, so that omap usb can make use of palmas for srp and also to set vbus. Signed-off-by: Kishon Vijay Abra

RE: [BUG] panda board locks up on boot

2013-01-25 Thread Mats Liljegren
Hi Steven, Do you have CONFIG_CPU_FREQ enabled? As I posted earlier in linux-kernel forum ("Failed booting PandaBoard ES with Linux 3.8 RC4" two days ago) my PandaBoard ES hangs while booting with this option enabled. It works fine without it. I have not bisected it down to a single commit thou

Re: [PATCH v3 1/4] drivers: usb: phy: add a new driver for usb part of control module

2013-01-25 Thread kishon
On Friday 25 January 2013 01:18 PM, Felipe Balbi wrote: On Thu, Jan 24, 2013 at 09:32:46PM -0800, Stephen Warren wrote: On 01/24/2013 06:19 PM, Kishon Vijay Abraham I wrote: Added a new driver for the usb part of control module. This has an API to power on the USB2 phy and an API to write to th

Re: [BUG] Bug in netprio_cgroup and netcls_cgroup ?

2013-01-25 Thread Li Zefan
BTW, isn't this a similar to what should happen with the block io cgroup? What is the behavior with a fd writing to a file in the scenario you describe above? >>> >>> It forbids task moving in this case: >>> >>> /* >>> * We cannot support shared io contexts, as we have no mean

[PATCH 2/2] ARM: dts: cfa10049: Change the SPI3 bus to spi-gpio

2013-01-25 Thread Maxime Ripard
The DAC found on the last chip select requires a word length of 12 bits, which is not supported by the SSP controller of the iMX28. Use bitbanging for that bus to support such a length. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10049.dts | 78 ++---

[PATCH 1/2] spi: spi-gpio: Add checks for the dt properties

2013-01-25 Thread Maxime Ripard
The bindings assumed that the gpios properties were always there, which made the NO_TX and NO_RX mode not usable from device tree. Add extra checks to make sure that the driver can work if either MOSI or MISO is not used. Signed-off-by: Maxime Ripard Cc: Mark Brown --- drivers/spi/spi-gpio.c |

[PATCH V7 2/3] virtio-net: split out clean affinity function

2013-01-25 Thread Wanlong Gao
Split out the clean affinity function to virtnet_clean_affinity(). Cc: Rusty Russell Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: Eric Dumazet Cc: "David S. Miller" Cc: virtualizat...@lists.linux-foundation.org Cc: net...@vger.kernel.org Signed-off-by: Wanlong Gao Acked-by: Michael S. Tsirkin

[PATCH v1/1] mfd: i2c issue fix for da9052/53

2013-01-25 Thread Ashish Jangam
An issue has been reported where the PMIC either locks up or fails to respond following a system Reset. This could result in a second write in which the bus writes the current content of the write buffer to address of the last I2C access. The failure case is where this unwanted write transfers inc

[PATCH V7 3/3] virtio-net: reset virtqueue affinity when doing cpu hotplug

2013-01-25 Thread Wanlong Gao
Add a cpu notifier to virtio-net, so that we can reset the virtqueue affinity if the cpu hotplug happens. It improve the performance through enabling or disabling the virtqueue affinity after doing cpu hotplug. Cc: Rusty Russell Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: Eric Dumazet Cc: "Dav

Re: [PATCH v3 2/3] gpio: pca953x: add support for pca9505

2013-01-25 Thread Gregory CLEMENT
On 01/25/2013 09:16 AM, Linus Walleij wrote: > On Tue, Jan 22, 2013 at 10:10 PM, Gregory CLEMENT > wrote: > >> Now that pca953x driver can handle GPIO expanders with more than 32 >> bits this patch adds the support for the pca9505 which cam with 40 >> GPIOs. >> >> Signed-off-by: Gregory CLEMENT

[PATCH V7 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive

2013-01-25 Thread Wanlong Gao
As Michael mentioned, set affinity and select queue will not work very well when CPU IDs are not consecutive, this can happen with hot unplug. Fix this bug by traversal the online CPUs, and create a per cpu variable to find the mapping from CPU to the preferable virtual-queue. Cc: Rusty Russell C

Re: [patch v1 2/5] regulator: da9055 change irq state to default

2013-01-25 Thread Ashish Jangam
On Thu, 2013-01-24 at 00:03 +0800, Mark Brown wrote: > On Mon, Jan 21, 2013 at 02:05:12PM +0530, Ashish Jangam wrote: > > > > What makes you say that there is a dependency here? It's really not at > > > all obvious why a change to the primary IRQ signalling mechanism would > > > affect the intern

[PATCH] regulators: max8998: fix incorrect min_uV value for ldo10

2013-01-25 Thread Marek Szyprowski
Correct value for minimal voltage for ldo10 output is 95 uV. This patch fixes the typo introduced by patch adf6178ad5552a7f2f742a8c85343c50 ("regulator: max8998: Use uV in voltage_map_desc"), what solves broken probe of max8998 in v3.8-rc4. Signed-off-by: Marek Szyprowski Cc: sta...@vger.kern

Re: [PATCH 0/3, v2] x86: xor-block handling adjustments

2013-01-25 Thread Ingo Molnar
* Jan Beulich wrote: > >>> On 24.01.13 at 18:32, "H. Peter Anvin" wrote: > > On 01/24/2013 11:15 AM, Ingo Molnar wrote: > >> > >> * Jan Beulich wrote: > >> > >>> v2 of this series is merely updated on top of the changes between > >>> 3.6 and 3.7-rc (which includes the dropping of what previo

Re: [PATCH 0/3, v2] x86: xor-block handling adjustments

2013-01-25 Thread Jan Beulich
>>> On 24.01.13 at 18:32, "H. Peter Anvin" wrote: > On 01/24/2013 11:15 AM, Ingo Molnar wrote: >> >> * Jan Beulich wrote: >> >>> v2 of this series is merely updated on top of the changes between >>> 3.6 and 3.7-rc (which includes the dropping of what previously was >>> the second patch in a fou

Re: [PATCH v3 0/2] Input: twl6040-vibra cleanups (devm_* conversion, system wq)

2013-01-25 Thread Dmitry Torokhov
Hi Peter, On Thu, Jan 24, 2013 at 12:44:29PM +0100, Peter Ujfalusi wrote: > Hi Dmitry, > > On 01/14/2013 04:34 PM, Peter Ujfalusi wrote: > > Hi Dmitry, > > > > Changes since v2: > > - twl4030-vibra patches are left out (they have been applied) > > - Do not use devm_input_allocate_device() in twl

Re: [PATCH v2] sched: add a tuning knob to allow changing RR tmeslice

2013-01-25 Thread Ingo Molnar
* Clark Williams wrote: > On Thu, 24 Jan 2013 17:59:55 +0100 > Ingo Molnar wrote: > > > > > * Clark Williams wrote: > > > > > This version stores the user-input value in a separate > > > location from the jiffies values used by the scheduler, to > > > prevent a race condition. > > > > >

Re: [PATCH v2 1/4] ARM: OMAP2+: dpll: round rate to closest value

2013-01-25 Thread Paul Walmsley
Hi On Wed, 23 Jan 2013, Afzal Mohammed wrote: > Currently round rate function would return proper rate iff requested > rate exactly matches the PLL lockable rate. This causes set_rate to > fail if exact rate could not be set. Instead round rate may return > closest rate possible (less than the re

Re: [PATCH v3 3/3] arm: mvebu: enable gpio expander over i2c on Mirabox platform

2013-01-25 Thread Linus Walleij
On Tue, Jan 22, 2013 at 10:10 PM, Gregory CLEMENT wrote: > The Globalscale Mirabox platform can be connected to the JTAG/GPIO box > through the Multi-IO port. The GPIO box use the NXP PCA9505 I/O port > expansion IC to provide 40-bit parallel input/output GPIOs. This patch > enable the use of thi

Re: [PATCH v3 2/3] gpio: pca953x: add support for pca9505

2013-01-25 Thread Linus Walleij
On Tue, Jan 22, 2013 at 10:10 PM, Gregory CLEMENT wrote: > Now that pca953x driver can handle GPIO expanders with more than 32 > bits this patch adds the support for the pca9505 which cam with 40 > GPIOs. > > Signed-off-by: Gregory CLEMENT Patch applied, thanks. But guys, this driver contains

[PATCH v2] cpuset: fix cpuset_print_task_mems_allowed() vs rename() race

2013-01-25 Thread Li Zefan
rename() will change dentry->d_name. The result of this race can be worse than seeing partially rewritten name, but we might access a stale pointer because rename() will re-allocate memory to hold a longer name. It's safe in the protection of dentry->d_lock. v2: check NULL dentry before acquiring

[PATCH] MFD:rtsx:Avoid kernel panic if rtsx_pci_sdmmc not probed

2013-01-25 Thread wei_wang
From: Wei WANG If rtsx_pci_sdmmc is not probed, function pointer pcr->slots[].card_event will point to NULL, and thus rtsx_pci_card_detect will reference a NULL pointer. Check card_event pointer before referencing it can avoid kernel panic. Signed-off-by: Wei WANG --- drivers/mfd/rtsx_pcr.c |

Re: [PATCH v2] sched: Fix print format for u64

2013-01-25 Thread Ingo Molnar
* Paul Turner wrote: > On Thu, Jan 24, 2013 at 11:19 PM, Ingo Molnar wrote: > > > > * Fabio Estevam wrote: > > > >> On Thu, Jan 24, 2013 at 12:19 PM, Ingo Molnar wrote: > >> > >> > I suppose - is this patch warning-free both on 64-bit and 32-bit > >> > systems? > >> > >> Yes, just confirmed t

Re: [PATCH v3 1/3] gpio: pca953x: make the register access by GPIO bank

2013-01-25 Thread Linus Walleij
On Tue, Jan 22, 2013 at 10:10 PM, Gregory CLEMENT wrote: > Until now the pca953x driver accessed all the bank of a given register > in a single command using only a 32 bits variable. New expanders from > the pca53x family come with 40 GPIOs which no more fit in a 32 > variable. This patch make ac

<    3   4   5   6   7   8