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 gregory.clem...@free-electrons.com 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

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

2013-01-25 Thread Ingo Molnar
* Paul Turner p...@google.com wrote: On Thu, Jan 24, 2013 at 11:19 PM, Ingo Molnar mi...@kernel.org wrote: * Fabio Estevam feste...@gmail.com wrote: On Thu, Jan 24, 2013 at 12:19 PM, Ingo Molnar mi...@kernel.org wrote: I suppose - is this patch warning-free both on 64-bit and

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

2013-01-25 Thread wei_wang
From: Wei WANG wei_w...@realsil.com.cn 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

[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

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 gregory.clem...@free-electrons.com 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

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 gregory.clem...@free-electrons.com 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.

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: [PATCH v2] sched: add a tuning knob to allow changing RR tmeslice

2013-01-25 Thread Ingo Molnar
* Clark Williams willi...@redhat.com wrote: On Thu, 24 Jan 2013 17:59:55 +0100 Ingo Molnar mi...@kernel.org wrote: * Clark Williams willi...@redhat.com wrote: This version stores the user-input value in a separate location from the jiffies values used by the scheduler, to

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 twl6040-vibra

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 h...@zytor.com wrote: On 01/24/2013 11:15 AM, Ingo Molnar wrote: * Jan Beulich jbeul...@suse.com 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

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

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

[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

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 internal

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 gregory.clem...@free-electrons.com 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.

[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

[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 ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Cc:

[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

[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 ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Cc: Jason Wang jasow...@redhat.com Cc: Eric Dumazet erdnet...@gmail.com Cc: David S. Miller da...@davemloft.net Cc:

[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 maxime.rip...@free-electrons.com Cc: Mark

[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 maxime.rip...@free-electrons.com --- arch/arm/boot/dts/imx28-cfa10049.dts | 78

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 to support * two tasks

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

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

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

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 af...@ti.com 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

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 module. This

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:

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 it

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 gregory.clem...@free-electrons.com 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

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

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

2013-01-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Cc: Andrew Morton a...@linux-foundation.org --- drivers/video/backlight/Kconfig |7 + drivers/video/backlight/Makefile |1 + drivers/video/backlight/hx8357.c | 482 ++ 3 files changed, 490

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

2013-01-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- 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

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

2013-01-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- 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 +++

[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 jinsong@intel.com 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

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

2013-01-25 Thread Ingo Molnar
* Stephane Eranian eran...@google.com 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:

[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 linus.wall...@linaro.org --- drivers/gpio/gpio-pca953x.c | 35 ++-

[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 linus.wall...@linaro.org --- drivers/gpio/gpio-pca953x.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git

[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 jinsong@intel.com 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

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 andriy.shevche...@linux.intel.com 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

[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 jinsong@intel.com 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

[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 jinsong@intel.com 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

[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 jinsong@intel.com 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.

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 of palmas for

[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 maxime.rip...@free-electrons.com --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/imx28-cfa10037.dts | 77

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 the

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

2013-01-25 Thread Ingo Molnar
* Stephane Eranian eran...@google.com 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,

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 andriy.shevche...@linux.intel.com wrote: On Fri, 2013-01-25 at 09:43 +0530, Viresh Kumar wrote: On Thu, Jan 24, 2013 at 6:37 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: diff --git a/drivers/dma/dw_dmac.c

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 cpu

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

2013-01-25 Thread Viresh Kumar
On 25 January 2013 14:34, Andy Shevchenko andy.shevche...@gmail.com 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

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 such

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 bug by

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 index

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_online_cpu(cpu) { +

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 viresh.ku...@linaro.org wrote: On 25 January 2013 14:34, Andy Shevchenko andy.shevche...@gmail.com 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

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

2013-01-25 Thread Ingo Molnar
* Borislav Petkov b...@alien8.de 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

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

2013-01-25 Thread Ingo Molnar
* nan chen nach...@gmail.com wrote: 2013/1/25 Ingo Molnar mi...@kernel.org * Andrew Morton a...@linux-foundation.org wrote: On Thu, 24 Jan 2013 17:22:45 +0800 Yuanhan Liu yuanhan@linux.intel.com wrote: Use spin_[un]lock instead of arch_spin_[un]lock in mutex-debug.h so

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 harmless,

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 think

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 andy.shevche...@gmail.com wrote: On Fri, Jan 25, 2013 at 11:07 AM, Viresh Kumar viresh.ku...@linaro.org 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

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

2013-01-25 Thread Ingo Molnar
* Borislav Petkov b...@alien8.de 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

[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: Update

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

2013-01-25 Thread Viresh Kumar
On 25 January 2013 15:07, Andy Shevchenko andy.shevche...@gmail.com 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

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 viresh.ku...@linaro.org wrote: On 25 January 2013 15:07, Andy Shevchenko andy.shevche...@gmail.com 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

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

[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

[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

[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

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 viresh.ku...@linaro.org wrote: On Fri, Jan 25, 2013 at 2:49 PM, Andy Shevchenko andy.shevche...@gmail.com wrote: On Fri, Jan 25, 2013 at 11:07 AM, Viresh Kumar viresh.ku...@linaro.org wrote: Who is going to right on ctlhi/lo? Ahh, my English

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 asie...@xes-inc.com 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

[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 andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma/dw_dmac.c |3 +++ 1 file changed, 3

[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 andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma/dw_dmac.c | 20 +++-

[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

[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 andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma/dw_dmac.c | 12 ++--

[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

[PATCH V8 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 ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Cc: Jason Wang jasow...@redhat.com Cc: Eric Dumazet erdnet...@gmail.com Cc: David S. Miller da...@davemloft.net Cc:

[PATCH] media: tvp514x: enable TVP514X for media controller based usage

2013-01-25 Thread Prabhakar Lad
From: Manjunath Hadli manjunath.ha...@ti.com add support for TVP514x as a media entity and support for pad operations. The decoder supports 1 output pad. The default format code was V4L2_MBUS_FMT_YUYV10_2X10 changed it to V4L2_MBUS_FMT_UYVY8_2X8. Signed-off-by: Manjunath Hadli

[PATCH V8 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

[PATCH V8 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 ru...@rustcorp.com.au Cc: Michael S. Tsirkin m...@redhat.com Cc:

Re: [PATCH] Subtract min_free_kbytes from dirtyable memory

2013-01-25 Thread paul . szabo
Dear Minchan, So what's the effect for user? ... It seems you saw old kernel. ... Current kernel includes ... So I think we don't need this patch. As I understand now, my patch is right and needed for older kernels; for newer kernels, the issue has been fixed in equivalent ways; it was an

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

2013-01-25 Thread Viresh Kumar
On Fri, Jan 25, 2013 at 3:17 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: 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

[perf PATCH resend] Fix possible double free on error

2013-01-25 Thread Thomas Jarosch
Can only be triggered via CROSS_COMPILE env var. Detected by cppcheck. Signed-off-by: Thomas Jarosch thomas.jaro...@intra2net.com --- tools/perf/arch/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c index 3e975cb..aacef07 100644 ---

User namespaces and the memory control group

2013-01-25 Thread Eric W. Biederman
For anyone who cares about resource control setting up the memory control group in combination with user namespaces is strongly recommended. User namespaces are a particular problem when it comes to resource control. Not all of the resources you can create with a user namespace currently have

[git pull] ioapic-cleanups-for-v3.9

2013-01-25 Thread Joerg Roedel
Hi Ingo, The following changes since commit 7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619: Linux 3.8-rc4 (2013-01-17 19:25:45 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/ioapic-cleanups-for-v3.9 for you to fetch changes up

Re: [PATCH 02/13] sg_io: reorganize list of allowed commands

2013-01-25 Thread Paolo Bonzini
Il 24/01/2013 23:58, Tejun Heo ha scritto: +#define sgio_bitmap_set(cmd, mask, rw) \ +if ((mask) != 0) __set_bit((cmd), filter-rw##_ok) + +#define D (1u TYPE_DISK) /* Direct Access Block Device (SBC-3) */ +#define T (1u TYPE_TAPE) /* Sequential Access Device

[perf PATCH v2] Use pclose() instead of fclose() on pipe stream

2013-01-25 Thread Thomas Jarosch
cppcheck message: [tools/perf/util/sort.c:277]: (error) Mismatching allocation and deallocation: fp Also fix descriptor leak on error and always initialize the fp variable. Signed-off-by: Thomas Jarosch thomas.jaro...@intra2net.com --- tools/perf/util/sort.c | 5 +++-- 1 file changed, 3

Re: [PATCH] pci-sysfs: replace mutex_lock with mutex_trylock to avoid potential deadlock situation

2013-01-25 Thread Gu Zheng
Hi Bjorn, Thanks for your review and comments! Please refer to inlined comments below. On 01/25/2013 07:12 AM, Bjorn Helgaas wrote: On Thu, Dec 27, 2012 at 12:42 AM, Lin Feng linf...@cn.fujitsu.com wrote: There is a potential deadlock situation when we manipulate the pci-sysfs user

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

2013-01-25 Thread Joe Perches
On Fri, 2013-01-25 at 10:09 +0100, Takashi Iwai wrote: 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’

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:32:41AM +0100, Ingo Molnar wrote: That's ok. I'll apply them to tip:x86/cpu and then resolve the conflicts against tip:master. Ok, I redid them against tip:x86/cpu and am running build tests. Will send out later after a sufficient number of randconfigs passes.

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

2013-01-25 Thread Paul Bolle
On Fri, 2013-01-25 at 10:47 +0100, Linus Walleij wrote: On Thu, Jan 24, 2013 at 9:52 PM, Aaron Sierra asie...@xes-inc.com 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

Re: Doubts about listen backlog and tcp_max_syn_backlog

2013-01-25 Thread Leandro Lucarella
On Thu, Jan 24, 2013 at 10:12:46PM -0800, Nivedita SInghvi wrote: I was just kind of quoting the name given by netstat: SYNs to LISTEN sockets dropped (for kernel 3.0, I noticed newer kernels don't have this stat anymore, or the name was changed). I still don't know if we are talking about

[PATCH v2 5/5] wlcore: move wl12xx_platform_data up and make it truly optional

2013-01-25 Thread Luciano Coelho
The platform data is used not only by wlcore-based drivers, but also by wl1251. Move it up in the directory hierarchy to reflect this. Additionally, make it truly optional. At the moment, disabling platform data while wl1251_sdio or wlcore_sdio are enabled doesn't work, but it will be necessary

Re: [PATCH 4/4] async: replace list of active domains with global list of pending items

2013-01-25 Thread James Hogan
On 25 January 2013 01:01, Tejun Heo t...@kernel.org wrote: Hello, On Fri, Jan 25, 2013 at 12:13:45AM +, James Hogan wrote: Should it have this? + else + INIT_LIST_HEAD(entry-global_list) I think it would be better to have INIT_LIST_HEAD() during @entry initialization.

[PATCH 0/3] leds-pwm: Defer PWM calls if PWM can sleep

2013-01-25 Thread Florian Vaussard
Hello, When using the leds-pwm module with external PWM chips connected through I2C, the kernel will panic when settings a trigger. In this case, PWM calls can sleep, and should be deferred. Patch 1 and 2 add the necessary API to the PWM subsystem, and update matching drivers. Patch 3 updates

[PATCH 1/3] pwm: Add pwm_cansleep() as exported API to users

2013-01-25 Thread Florian Vaussard
Calls to some external PWM chips can sleep. To help users, add pwm_cansleep() API. Signed-off-by: Florian Vaussard florian.vauss...@epfl.ch --- drivers/pwm/core.c | 12 include/linux/pwm.h | 10 ++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git

[PATCH 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-01-25 Thread Florian Vaussard
Call to led_pwm_set() can happen inside atomic context, like triggers. If the PWM call can sleep, defer using a worker. Signed-off-by: Florian Vaussard florian.vauss...@epfl.ch --- drivers/leds/leds-pwm.c | 45 +++-- 1 files changed, 39 insertions(+), 6

[PATCH 2/3] pwm: Add can_sleep property to drivers

2013-01-25 Thread Florian Vaussard
Calls to PWM drivers connected through I2C can sleep. Use the new can_sleep property. Signed-off-by: Florian Vaussard florian.vauss...@epfl.ch --- drivers/pwm/pwm-twl-led.c |1 + drivers/pwm/pwm-twl.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH] NET/PHY: Eliminate the algorithm of forced ethernet speed reduction

2013-01-25 Thread Kirill Kapranov
NET/PHY: Eliminate the forced speed reduction algorithm. In case of the fixed speed set up for NIC (e.g. ethtool -s eth0 autoneg off speed 100 duplex full) with ethernet cable plugged off, mentioned algorithm slows down NIC speed, so the further hooking up gives no result. AFAIK, this behaviour

Re: [PATCH 4/4] async: replace list of active domains with global list of pending items

2013-01-25 Thread James Hogan
On 25 January 2013 10:08, James Hogan ja...@albanarts.com wrote: On 25 January 2013 01:01, Tejun Heo t...@kernel.org wrote: Hello, On Fri, Jan 25, 2013 at 12:13:45AM +, James Hogan wrote: Should it have this? + else + INIT_LIST_HEAD(entry-global_list) I think it would

Re: [PATCH 2/5] jump label: constify lookup functions

2013-01-25 Thread Borislav Petkov
On Thu, Jan 24, 2013 at 11:15:10PM -0500, Sasha Levin wrote: Sorry about this. I didn't have the ability to build all arches over here :( Seen this already: https://www.kernel.org/pub/tools/crosstool/ ? -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --

  1   2   3   4   5   6   7   8   9   10   >