[RFC v2 PATCH 19/21] KVM: Enable direct EOI for directly routed interrupts to guests

2012-09-06 Thread Tomoki Sekiyama
Enable direct access to EOI MSR of x2apic to accelerate guests. This accelerate handling of interrupts delivered directly to guest from passed-through PCI devices. When a virtual IRQ is injected, this feature is disabled in order to route following EOI to virtual APIC. Then, it is enabled again

[RFC v2 PATCH 21/21] x86: request TLB flush to slave CPU using NMI

2012-09-06 Thread Tomoki Sekiyama
For slave CPUs, it is inapropriate to request TLB flush using IPI. because the IPI may be sent to a KVM guest when the slave CPU is running the guest with direct interrupt routing. Instead, it registers a TLB flush request in per-cpu bitmask and send a NMI to interrupt execution of the guest.

[RFC v2 PATCH 18/21] KVM: route assigned devices' MSI/MSI-X directly to guests on slave CPUs

2012-09-06 Thread Tomoki Sekiyama
When a PCI device is assigned to a guest running on slave CPUs, this routes the device's MSI/MSI-X interrupts directly to the guest. Because the guest uses a different interrupt vector from the host, vector remapping is required. This is safe because slave CPUs only handles interrupts for the

[RFC v2 PATCH 10/21] KVM: proxy slab operations for slave CPUs on online CPUs

2012-09-06 Thread Tomoki Sekiyama
Add some fix-ups that proxy slab operations on online CPUs for the guest, in order to avoid touching slab on slave CPUs where some slab functions are not activated. Currently, slab may be touched on slave CPUs in following 3 cases. For each cases, the fix-ups below are introduced: *

[RFC v2 PATCH 01/21] x86: Split memory hotplug function from cpu_up() as cpu_memory_up()

2012-09-06 Thread Tomoki Sekiyama
Split memory hotplug function from cpu_up() as cpu_memory_up(), which will be used for assigning memory area to off-lined cpus at following patch in this series. Signed-off-by: Tomoki Sekiyama tomoki.sekiyama...@hitachi.com Cc: Avi Kivity a...@redhat.com Cc: Marcelo Tosatti mtosa...@redhat.com

[RFC v2 PATCH 02/21] x86: Add a facility to use offlined CPUs as slave CPUs

2012-09-06 Thread Tomoki Sekiyama
Add a facility of using offlined CPUs as slave CPUs. Slave CPUs are specialized to exclusively run functions specified by online CPUs, which do not run user processes. To use this feature, build the kernel with CONFIG_SLAVE_CPU=y. A slave CPU is launched by calling cpu_slave_up() when the CPU is

[RFC v2 PATCH 03/21] x86: Support hrtimer on slave CPUs

2012-09-06 Thread Tomoki Sekiyama
Adds a facility to use hrtimer on slave CPUs. To initialize hrtimer when slave CPUs are activated, and to shutdown hrtimer when slave CPUs are stopped, this patch adds the slave cpu notifier chain, which call registered callbacks when slave CPUs are up, dying, and died. The registered callbacks

Re: linux-next: build failure after merge of the tty tree

2012-09-06 Thread Alan Cox
On Thu, 6 Sep 2012 15:10:14 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: Hi Greg, After merging the tty tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from drivers/tty/serial/sccnxp.c:20:0: include/linux/serial_core.h: In function

Re: [PATCH] [v2] sata_fsl: add workaround for data length mismatch on freescale V2 controller

2012-09-06 Thread Sergei Shtylyov
Hello. On 06-09-2012 8:28, Shaohui Xie wrote: The freescale V2 SATA controller checks if the received data length matches the programmed length 'ttl', if not, it assumes that this is an error. In ATAPI, the 'ttl' is based on max allocation length and not the actual data transfer length,

[RFC v2 PATCH 06/21] KVM: Add facility to run guests on slave CPUs

2012-09-06 Thread Tomoki Sekiyama
Add path to migrate execution of vcpu_enter_guest to a slave CPU when vcpu-arch.slave_cpu is set. After moving to the slave CPU, it goes back to the online CPU when the guest is exited by reasons that cannot be handled by the slave CPU only (e.g. handling async page faults). On migration,

[RFC v2 PATCH 07/21] KVM: handle page faults of slave guests on online CPUs

2012-09-06 Thread Tomoki Sekiyama
Page faults which occured by the guest running on slave CPUs cannot be handled on slave CPUs because it is running on idle process context. With this patch, the page fault happened in a slave CPU is notified to online CPU using struct kvm_access_fault, and is handled after the user-process for

[RFC v2 PATCH 05/21] KVM: Enable/Disable virtualization on slave CPUs are activated/dying

2012-09-06 Thread Tomoki Sekiyama
Enable virtualization when slave CPUs are activated, and disable when the CPUs are dying using slave CPU notifier call chain. In x86, TSC kHz must also be initialized by tsc_khz_changed when the new slave CPUs are activated. Signed-off-by: Tomoki Sekiyama tomoki.sekiyama...@hitachi.com Cc: Avi

Re: [RFC v2 PATCH 00/21] KVM: x86: CPU isolation and direct interrupts delivery to guests

2012-09-06 Thread Avi Kivity
On 09/06/2012 02:27 PM, Tomoki Sekiyama wrote: This RFC patch series provides facility to dedicate CPUs to KVM guests and enable the guests to handle interrupts from passed-through PCI devices directly (without VM exit and relay by the host). With this feature, we can improve throughput and

[PATCH] swim: Add missing spinlock init

2012-09-06 Thread Jean Delvare
It doesn't seem this spinlock was properly initialized. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Finn Thain fth...@telegraphics.com.au Cc: Geert Uytterhoeven ge...@linux-m68k.org --- I can't even build-test this. drivers/block/swim.c |1 + 1 file changed, 1 insertion(+) ---

Re: [Ping^3] Re: [PATCH] sg_io: allow UNMAP and WRITE SAME without CAP_SYS_RAWIO

2012-09-06 Thread Paolo Bonzini
Il 06/09/2012 13:31, Ric Wheeler ha scritto: Both of these commands are destructive. WRITE_SAME (if done without the discard bits set) can also take a very long time to be destructive and tie up the storage. FORMAT_UNIT has the same characteristics and yet it is allowed (btw, I don't think

Re: [PATCH V2] regulator: tps6586x: register regulator even if no init data

2012-09-06 Thread Laxman Dewangan
On Wednesday 05 September 2012 09:03 PM, Stephen Warren wrote: On 09/05/2012 02:02 AM, Laxman Dewangan wrote: On Wednesday 05 September 2012 02:17 AM, Stephen Warren wrote: On 08/29/2012 09:01 AM, Laxman Dewangan wrote: Register all TPS6586x regulators even if there is no regulator init data

RE: [PATCH] [v2] sata_fsl: add workaround for data length mismatch on freescale V2 controller

2012-09-06 Thread Xie Shaohui-B21989
hstatus = ioread32(hcr_base + HSTATUS); sata_fsl_scr_read(ap-link, SCR_ERROR, SError); + /* Read command completed register */ + done_mask = ioread32(hcr_base + CC); + + /* Workaround for data length mismatch errata */ + if (unlikely(hstatus

Re: WARNING: at fs/inode.c:280 drop_nlink+0x31/0x33()

2012-09-06 Thread Jeff Layton
On Fri, 31 Aug 2012 11:03:45 -0700 Nick Pasich n...@nickandbarb.net wrote: On Fri, Aug 31, 2012 at 09:21:38AM -0700, Jeff Layton wrote: On Fri, 31 Aug 2012 08:32:06 -0700 Nick Pasich n...@nickandbarb.net wrote: On Fri, Aug 31, 2012 at 12:00:26PM +0400, Pavel Shilovsky wrote:

Re: [PATCH] swim: Add missing spinlock init

2012-09-06 Thread Geert Uytterhoeven
On Thu, Sep 6, 2012 at 1:48 PM, Jean Delvare kh...@linux-fr.org wrote: It doesn't seem this spinlock was properly initialized. Quiet possible. There's no SMP on m68k, so all spinlock ops expand to nothing. Signed-off-by: Jean Delvare kh...@linux-fr.org Cc: Finn Thain

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-06 Thread Michal Hocko
On Wed 05-09-12 13:12:38, Tejun Heo wrote: Hello, Michal. On Wed, Sep 05, 2012 at 04:49:42PM +0200, Michal Hocko wrote: Can we settle on the following 3 steps? 1) warn about flat hierarchies (give it X releases) - I will push it to as many Suse code streams as possible (hope other

Re: [Ping^3] Re: [PATCH] sg_io: allow UNMAP and WRITE SAME without CAP_SYS_RAWIO

2012-09-06 Thread Ric Wheeler
On 09/06/2012 07:49 AM, Paolo Bonzini wrote: Il 06/09/2012 13:31, Ric Wheeler ha scritto: Both of these commands are destructive. WRITE_SAME (if done without the discard bits set) can also take a very long time to be destructive and tie up the storage. FORMAT_UNIT has the same characteristics

[HELP][X86 Disassembler Engine Patch] How to get the individual patches for x86 disassembler engine.

2012-09-06 Thread Chen Gang
Hello Masami Hiramatsu After read your mail [RFC PATCH -tip 00/16] in-kernel x86 disassember to linux-kernel@vger.kernel.org I am very interested in your patch for x86 disassembler. I think it is valuable (at least, for me). The link git://github.com/mhiramat/linux.git SEEMS for integrated

[PATCH v3 00/14] MFD/ASoC/Input: twl4030-audio submodule DT support

2012-09-06 Thread Peter Ujfalusi
Hello, Generated on top of: git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/omap Changed since v2: - Added commit message to patch 2 (as Tero requested it) - Fixed patch 6 (dt: Add empty...) since the previous patch caused x86_64 build to fail due to missing struct before

[PATCH v3 02/14] MFD: twl4030-audio: Convert to use devm_kzalloc

2012-09-06 Thread Peter Ujfalusi
To clean up the module probe and remove functions. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c index

[PATCH v3 04/14] MFD: twl-core: Add API to query the HFCLK rate

2012-09-06 Thread Peter Ujfalusi
CFG_BOOT register's HFCLK_FREQ field hold information about the used HFCLK frequency. Add possibility for users to get the configured rate based on this register. This register was configured during boot, without it the chip would not operate correctly, so we can trust on this information.

[PATCH v3 06/14] dt: Add empty of_find_node_by_name() function

2012-09-06 Thread Peter Ujfalusi
This commit adds an empty of_find_node_by_name() function for !CONFIG_OF builds. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/of.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 1b11632..5c7a158 100644 ---

[PATCH v3 10/14] ARM: OMAP/ASoC: Zoom2: Let the codec to handle the hs_extmute GPIO

2012-09-06 Thread Peter Ujfalusi
Remove the use of set_hs_extmute callback and let the codec driver to handle the extmute GPIO. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-omap2/board-zoom-peripherals.c | 9 ++--- arch/arm/mach-omap2/include/mach/board-zoom.h | 2 -- sound/soc/omap/zoom2.c

[PATCH v3 11/14] ASoC/MFD: twl4030: Remove set_hs_extmute callback from platform data

2012-09-06 Thread Peter Ujfalusi
We no longer have users for the set_hs_extmute callback which has been replaced by hs_extmute_gpio so the codec driver can handle the external mute if it is needed by the board. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- include/linux/i2c/twl.h| 2 -- sound/soc/codecs/twl4030.c

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-06 Thread Glauber Costa
On 09/06/2012 04:06 PM, Michal Hocko wrote: On Wed 05-09-12 13:12:38, Tejun Heo wrote: Hello, Michal. On Wed, Sep 05, 2012 at 04:49:42PM +0200, Michal Hocko wrote: Can we settle on the following 3 steps? 1) warn about flat hierarchies (give it X releases) - I will push it to as many Suse

[PATCH v3 14/14] ASoC: twl4030: Support for DT booted kernel

2012-09-06 Thread Peter Ujfalusi
When the kernel has been booted with DT blob the platform data is NULL for the driver. We need to construct the pdata based on the DT information for runtime use. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 57

Re: [PATCH] virtio-balloon spec: provide a version of the silent deflate feature that works

2012-09-06 Thread Paolo Bonzini
Il 06/09/2012 12:53, Michael S. Tsirkin ha scritto: It is useful because it lets guests inflate the balloon aggressively, and then use ballooned-out pages even in places where the guest OS cannot sleep, such as kmalloc(GFP_ATOMIC). Interesting. Do you intend to develop a driver patch using

[PATCH v3 09/14] ASoC: twl4030: Move hs_extmute GPIO handling to driver

2012-09-06 Thread Peter Ujfalusi
The external mute (if it is in use) is handled by a GPIO line. Prepare to remove the set_hs_extmute callback and replace it with: hs_extmute_gpio: the GPIO number to use for external mute When the users of set_hs_extmute has been converted the callback can be removed. Signed-off-by: Peter

[PATCH v3 12/14] ASoC: twl4030: Convert to use devm_kzalloc

2012-09-06 Thread Peter Ujfalusi
Allocate the private data with devm_kzalloc. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 27ccea4..413e698 100644 ---

[PATCH v3 13/14] ASoC: twl4030: Add pointer to pdata within the private data

2012-09-06 Thread Peter Ujfalusi
Access the pdata via a pointer within the twl4030_priv structure. In preparation for DeviceTree support. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- sound/soc/codecs/twl4030.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH v3 08/14] Input: twl4030-vibra: Support for DT booted kernel

2012-09-06 Thread Peter Ujfalusi
Add support when the kernel has been booted with DT blob. In this case the pdata is NULL, we need to reach up to the core node and check if the codec part has been enabled to determine if we need to coexist with the codec or not. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

[PATCH v3 07/14] MFD: twl4030-audio: Add DT support

2012-09-06 Thread Peter Ujfalusi
Support for loading the twl4030 audio module via devicetree. Sub devices for codec and vibra will be created as mfd devices once the core MFD driver is loaded when the kernel is booted with a DT blob. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com ---

Re: [PATCH v7 1/7] drivers: usb: phy: add a new driver for omap usb2 phy

2012-09-06 Thread ABRAHAM, KISHON VIJAY
Hi, On Mon, Aug 6, 2012 at 6:37 PM, Kishon Vijay Abraham I kis...@ti.com wrote: All phy related programming like enabling/disabling the clocks, powering on/off the phy is taken care of by this driver. It is also used for OTG related functionality like srp. This also includes device tree

Re: [PATCH 2/3] x86/mce: Pack boolean MCE flags into a structure

2012-09-06 Thread Borislav Petkov
On Thu, Sep 06, 2012 at 12:18:31PM +0530, Naveen N. Rao wrote: I know I'm contradicting the feedback you got from Borislav here, but is this code churn really worth it to save 40 bytes? I don't think so. Well, to answer Tony's question, I wanted to have all those config booleans at the

[PATCH v3 01/14] MFD: twl4030-audio: Clean up MODULE_* and platform_driver part

2012-09-06 Thread Peter Ujfalusi
Place the MODULE_* lines in the same block and add MODULE_DESCRIPTION. Rearange the platform_driver structure at the same time. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v3 05/14] MFD: twl4030-audio: Get audio MCLK via twl-core API instead of pdata

2012-09-06 Thread Peter Ujfalusi
twl-core has API to get the boot time configured HFCLK rate which has the same rate as the audio MCLK. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl4030-audio.c

[PATCH v3 03/14] MFD: twl4030-audio: Rearange and clean-up the probe function

2012-09-06 Thread Peter Ujfalusi
To facilitate the device tree support the probe function need to be rearanged. Small cleanup in the APLL frequency selection part as well. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/mfd/twl4030-audio.c | 34 -- 1 file changed, 16

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-06 Thread Michal Hocko
On Thu 06-09-12 16:09:20, Glauber Costa wrote: On 09/06/2012 04:06 PM, Michal Hocko wrote: On Wed 05-09-12 13:12:38, Tejun Heo wrote: Hello, Michal. On Wed, Sep 05, 2012 at 04:49:42PM +0200, Michal Hocko wrote: Can we settle on the following 3 steps? 1) warn about flat hierarchies

Re: [PATCH v2 1/5] fat: allocate persistent inode numbers

2012-09-06 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: In this long discusstion about the FAT acceptance over NFS, our belief is still that the objective should be to reduce errors as much as possible and then if there are certain scenarios - at least that could be highlighted as a limitation in

Re: [PATCH] [mcelog] Start using the new sysfs tunables location

2012-09-06 Thread Andi Kleen
The change is still under discussion. Stage one is to add the new global pathnames in addition to keeping the old per-cpu ones. Also fix all utilities (just mcelog(8) as far as we know) to prefer the new paths. But why do you even want to change it? Does it fix anything? AFAIK the old setup

Re: [PATCH v3 03/23] serial: omap: don't access the platform_device

2012-09-06 Thread Felipe Balbi
On Wed, Sep 05, 2012 at 01:27:21PM -0700, Greg KH wrote: On Thu, Aug 23, 2012 at 01:32:43PM +0300, Felipe Balbi wrote: The driver doesn't need to know about its platform_device. Everything the driver needs can be done through the struct device pointer. In case we need to use the

Re: [PATCH v3 20/23] serial: omap: fix software flow control

2012-09-06 Thread Felipe Balbi
On Wed, Sep 05, 2012 at 01:27:49PM -0700, Greg KH wrote: On Thu, Aug 23, 2012 at 01:33:00PM +0300, Felipe Balbi wrote: From: Vikram Pandita vikram.pand...@ti.com Software flow control register bits were not defined correctly. Also clarify the IXON and IXOFF logic to reflect what

Re: [PATCH] [mcelog] Start using the new sysfs tunables location

2012-09-06 Thread Naveen N. Rao
On 09/06/2012 05:58 PM, Andi Kleen wrote: The change is still under discussion. Stage one is to add the new global pathnames in addition to keeping the old per-cpu ones. Also fix all utilities (just mcelog(8) as far as we know) to prefer the new paths. But why do you even want to change it?

Re: [Ping^3] Re: [PATCH] sg_io: allow UNMAP and WRITE SAME without CAP_SYS_RAWIO

2012-09-06 Thread Paolo Bonzini
Il 06/09/2012 14:08, Ric Wheeler ha scritto: According to the standard, the translation layer can write a user-provided pattern to every sector in the disk. It's an optional feature and libata doesn't do that, but it is still possible. It is not possible today with our stack though, any

Re: [PATCH 0/5] Memory policy corruption fixes V2

2012-09-06 Thread Josh Boyer
On Tue, Aug 21, 2012 at 3:29 AM, Mel Gorman mgor...@suse.de wrote: On Mon, Aug 20, 2012 at 05:36:29PM +0100, Mel Gorman wrote: This is a rebase with some small changes to Kosaki's mempolicy memory corruption fixlet series. I had expected that Kosaki would have revised the series by now but

Re: [PATCH] [mcelog] Start using the new sysfs tunables location

2012-09-06 Thread Alan Cox
On Thu, 06 Sep 2012 18:04:27 +0530 Naveen N. Rao naveen.n@linux.vnet.ibm.com wrote: On 09/06/2012 05:58 PM, Andi Kleen wrote: The change is still under discussion. Stage one is to add the new global pathnames in addition to keeping the old per-cpu ones. Also fix all utilities (just

[PATCH 5/9] pwm i.MX: add devicetree support

2012-09-06 Thread Sascha Hauer
From: Philipp Zabel p.za...@pengutronix.de At the same time remove platform based support. No user for this driver has made it into mainline so far, so all we break is out of tree stuff. Signed-off-by: Philipp Zabel p.za...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de

Re: [RFC v2] memory-hotplug: remove MIGRATE_ISOLATE from free_area-free_list

2012-09-06 Thread Michal Nazarewicz
On Thu, Sep 06 2012, Minchan Kim wrote: Normally, MIGRATE_ISOLATE type is used for memory-hotplug. But it's irony type because the pages isolated would exist as free page in free_area-free_list[MIGRATE_ISOLATE] so people can think of it as allocatable pages but it is *never* allocatable. It

[PATCH 1/9] pwm i.MX: factor out SoC specific functions

2012-09-06 Thread Sascha Hauer
To make the code more flexible. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Shawn Guo shawn@linaro.org Reviewed-by: Benoît Thébaudeau benoit.thebaud...@advansee.com --- drivers/pwm/pwm-imx.c | 145 - 1 file changed, 82

[PATCH 4/9] pwm i.MX: Use module_platform_driver

2012-09-06 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Shawn Guo shawn@linaro.org Reviewed-by: Benoît Thébaudeau benoit.thebaud...@advansee.com --- drivers/pwm/pwm-imx.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/pwm/pwm-imx.c

[PATCH 6/9] pwm i.MX: use per clock unconditionally

2012-09-06 Thread Sascha Hauer
The i.MX pwm core has two clocks: The ipg clock and the ipg highfreq (peripheral) clock. The ipg clock has to be enabled for this hardware to work. The actual pwm output can either be driven by the ipg clock or the ipg highfreq. The ipg highfreq has the advantage that it runs even when the SoC is

[PATCH 3/9] pwm i.MX: add functions to enable/disable pwm.

2012-09-06 Thread Sascha Hauer
We used to enable/disable the pwm only by switching the clock on or off. Instead, use the dedicated register bits. These differ on different SoCs, so introduce a SoC specific function for this. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Shawn Guo shawn@linaro.org

[PATCH 7/9] pwm i.MX: fix clock lookup

2012-09-06 Thread Sascha Hauer
From: Philipp Zabel p.za...@pengutronix.de The i.MX pwm core has two clocks: The ipg clock and the ipg highfreq (peripheral) clock. The ipg clock has to be enabled for this hardware to work. The actual pwm output can either be driven by the ipg clock or the ipg highfreq. The ipg highfreq has the

[PATCH 8/9] ARM i.MX53: Add pwm support

2012-09-06 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Shawn Guo shawn@linaro.org Reviewed-by: Benoît Thébaudeau benoit.thebaud...@advansee.com --- arch/arm/boot/dts/imx53.dtsi| 14 ++ arch/arm/mach-imx/clk-imx51-imx53.c |4 2 files changed, 18

Re: [PATCH] virtio-balloon spec: provide a version of the silent deflate feature that works

2012-09-06 Thread Michael S. Tsirkin
On Thu, Sep 06, 2012 at 02:13:14PM +0200, Paolo Bonzini wrote: Il 06/09/2012 12:53, Michael S. Tsirkin ha scritto: It is useful because it lets guests inflate the balloon aggressively, and then use ballooned-out pages even in places where the guest OS cannot sleep, such as

[PATCH v4 00/21] OMAP UART Patches

2012-09-06 Thread Felipe Balbi
Hi guys, here's v4 of the omap uart patchset. No changes other than a rebase on top of Greg's tty-next branch and Tony's Acked-by being added to a couple patches Note: I'm resending the series with Vikram's Software Flow Control fix anyway as it can just be ignored if it's decided it needs to go

[PATCH v4 03/21] serial: add OMAP-specific defines

2012-09-06 Thread Felipe Balbi
OMAP has some extra Interrupt types which can be really useful for SW. Let's define them so we can later use those in OMAP's serial driver. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com ---

[PATCH v4 07/21] serial: omap: stick to put_autosuspend

2012-09-06 Thread Felipe Balbi
Everytime we're done using our TTY, we want the pm timer to be reinitilized. By sticking to pm_runtime_pm_autosuspend() we make sure that this will always be the case. The idea behind this patch is to make sure we will always reinitialize the pm timer so that we don't fall into a situation where

[PATCH v4 05/21] serial: omap: refactor receive_chars() into rdi/rlsi handlers

2012-09-06 Thread Felipe Balbi
receive_chars() was getting too big and too difficult to follow. By splitting it into separate RDI and RSLI handlers, we have smaller functions which are easy to understand and only touch the pieces which they need to touch. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh

[PATCH v4 10/21] serial: omap: make sure to suspend device before remove

2012-09-06 Thread Felipe Balbi
before removing the driver, let's make sure to force device into a suspended state in order to conserve power. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 1 + 1

[PATCH v4 09/21] serial: omap: drop unnecessary check from remove

2012-09-06 Thread Felipe Balbi
if platform_get_drvdata() returns NULL, that's quite a nasty bug on the driver which we want to catch ASAP. Otherwise, that check is hugely unneeded. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com ---

[PATCH v4 14/21] serial: omap: drop inline from IRQ handler prototype

2012-09-06 Thread Felipe Balbi
it makes no sense to mark our IRQ handler inline since it's passed as a function pointer when enabling the IRQ line. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v4 13/21] serial: omap: optimization with section annotations

2012-09-06 Thread Felipe Balbi
Two functions: omap_serial_fill_features_erratas() and of_get_uart_port_info() are only called from probe(). Marking them as __devinit gives us another oportunity to free some code after .init.text is done. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Ruchika Kharwar

[PATCH v4 15/21] serial: omap: unlock the port lock

2012-09-06 Thread Felipe Balbi
From: Ruchika Kharwar ruch...@ti.com This patch unlocks the port lock before calling a serial_core API and re-acquires the port lock after calling it. This patch fixes a system freeze issue seen when the serial_core API uart_write_wakeup() eventually attempts to acquire the port lock already

[PATCH v4 18/21] serial: omap: fix software flow control

2012-09-06 Thread Felipe Balbi
From: Vikram Pandita vikram.pand...@ti.com Software flow control register bits were not defined correctly. Also clarify the IXON and IXOFF logic to reflect what userspace wants. Cc: sta...@vger.kernel.org Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Vikram Pandita

[PATCH v4 20/21] serial: omap: move uart_omap_port definition to C file

2012-09-06 Thread Felipe Balbi
nobody needs to access the uart_omap_port structure other than omap-serial.c file. Let's move that structure definition to the C source file in order to prevent anyone from accessing our structure. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Tony Lindgren t...@atomide.com

[PATCH v4 21/21] serial: omap: enable RX and TX FIFO usage

2012-09-06 Thread Felipe Balbi
enable RX FIFO for 16 characters and TX FIFO for 16 spaces. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c

Re: [RFC v2] memory-hotplug: remove MIGRATE_ISOLATE from free_area-free_list

2012-09-06 Thread Michal Nazarewicz
On Thu, Sep 06 2012, Lai Jiangshan wrote: +found: + next_pfn = page_to_pfn(page); + list_for_each_entry_from(page, isolated_pages, lru) { + if (page_to_pfn(page) != next_pfn) + return false; + pfn = page_to_pfn(page); + pfn =

[PATCH v4 19/21] serial: omap: remove unnecessary header and add a missing one

2012-09-06 Thread Felipe Balbi
this driver doesn't use any from plat/dmtimer.h, so we can remove it without any problems. This will, however cause a problem because omap-serial.c was relying on indirect inclusion of linux/platform_device.h, let's fix the issue by including linux/platform_device.h on omap-serial.c as it should

[PATCH v4 17/21] serial: omap: make sure to put() on poll_get_char

2012-09-06 Thread Felipe Balbi
if we would reach serial_omap_get_char() while Data Ready bit isn't set, we would return from it without kicking our pm timer. This would mean we would, eventually, have an unbalanced pm_runtime_get on our device which would prevent it from ever sleeping again. Tested-by: Shubhrajyoti D

[PATCH v4 16/21] serial: omap: implement set_wake

2012-09-06 Thread Felipe Balbi
This has been missing from OMAP UART driver for quite a while and it's simple enough to implement it. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v4 12/21] serial: omap: fix sequence of pm_runtime_* calls.

2012-09-06 Thread Felipe Balbi
From: Ruchika Kharwar ruch...@ti.com pm_runtime_enable() needs to be invoked before pm_runtime_use_autosuspend(), and pm_runtime_set_autosuspend_delay() functions. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Signed-off-by: Nishanth Menon n...@ti.com Signed-off-by: Ruchika Kharwar

[PATCH v4 11/21] serial: omap: don't save IRQ flags on hardirq

2012-09-06 Thread Felipe Balbi
When we're running our hardirq handler, there's not need to disable IRQs with spin_lock_irqsave() because IRQs are already disabled. It also makes no difference if we save or not IRQ flags. Switch over to simple spin_lock/spin_unlock and drop the flags variable. Tested-by: Shubhrajyoti D

[PATCH v4 08/21] serial: omap: set dev-drvdata before enabling pm_runtime

2012-09-06 Thread Felipe Balbi
by the time we call our first pm_runtme_get_sync() after enable pm_runtime, our resume method might be called. To avoid problems, we must make sure that our dev-drvdata is set correctly before our resume method gets called. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar

[PATCH v4 06/21] serial: omap: move THRE check to transmit_chars()

2012-09-06 Thread Felipe Balbi
since all other IRQ types now do all necessary checks inside their handlers, transmit_chars() was the only one left expecting serial_omap_irq() to check THRE for it. We can move THRE check to transmit_chars() in order to make serial_omap_irq() more uniform. Tested-by: Shubhrajyoti D

Re: A workaround for request_firmware() stuck in module_init

2012-09-06 Thread Alan Cox
Sorry, I don't see anyone explained clearly why request_firmware() can't be called inside module_init() in module case, so maybe it is a bit early to say it is a fix on 'bug', :-) Because the firmware load may trigger a need to load a driver to load the firmware. dev_discard_firmware()

[PATCH v3] pwm i.MX: add devicetree support

2012-09-06 Thread Sascha Hauer
The following is the third version of the i.MX pwm series. I integrated the remaining comments from Shawn and Benoît and added their tags. So Thierry, please pull the attached patches. The pull request only contains the pwm framework specific patches, the remaining two I'd like to push via the

[PATCH 2/9] pwm i.MX: remove unnecessary if in pwm_[en|dis]able

2012-09-06 Thread Sascha Hauer
The pwm core makes sure that pwm_enable/disable are called only once. Still keep the enabled state since we will need it in pwm_config. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Reviewed-by: Shawn Guo shawn@linaro.org Reviewed-by: Benoît Thébaudeau benoit.thebaud...@advansee.com ---

[PATCH v4 04/21] serial: omap: simplify IRQ handling

2012-09-06 Thread Felipe Balbi
quite a few changes here, though they are pretty obvious. In summary we're making sure to detect which interrupt type we need to handle before calling the underlying interrupt handling procedure. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com

[PATCH v4 02/21] serial: omap: drop DMA support

2012-09-06 Thread Felipe Balbi
The current support is known to be broken and a later patch will come re-adding it using dma engine API. Tested-by: Shubhrajyoti D shubhrajy...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Felipe Balbi ba...@ti.com --- drivers/tty/serial/omap-serial.c | 330

[PATCH v4 01/21] serial: omap: don't access the platform_device

2012-09-06 Thread Felipe Balbi
The driver doesn't need to know about its platform_device. Everything the driver needs can be done through the struct device pointer. In case we need to use the OMAP-specific PM function pointers, those can make sure to find the device's platform_device pointer so they can find the struct

Re: 3.4.10 N_GSM tty_io WARNING and lockup

2012-09-06 Thread Alan Cox
On Wed, 05 Sep 2012 12:56:03 +0200 khal...@piap.pl (Krzysztof Hałasa) wrote: Hi, I'm trying to use GSM tty line discipline. Basically echo AT+CMUX=0 /dev/ttyS0 set termios (speed etc.) int ldisc = N_GSM0710; ioctl(fd, TIOCSETD, ldisc); Baffled at this point. If you set some other

Re: [RFC v2] memory-hotplug: remove MIGRATE_ISOLATE from free_area-free_list

2012-09-06 Thread Michal Nazarewicz
+pfn = page_to_pfn(page); +if (pfn = end_pfn) +return false; +if (pfn = start_pfn) +goto found; On Thu, Sep 06 2012, Lai Jiangshan wrote: this test is wrong. use this: if ((pfn = start_pfn) (start_pfn pfn +

[PATCH 9/9] ARM i.MX: remove PWM platform support

2012-09-06 Thread Sascha Hauer
As the pwm driver now is devicetree only, remove the platform support for this device. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-imx/clk-imx21.c |1 - arch/arm/mach-imx/clk-imx25.c |8 --- arch/arm/mach-imx/clk-imx27.c

Re: [RFC] memory-hotplug: remove MIGRATE_ISOLATE from free_area-free_list

2012-09-06 Thread Michal Nazarewicz
On Wed, Sep 05, 2012 at 07:28:23PM +0200, Michal Nazarewicz wrote: If you ask me, I'm not convinced that this improves anything. On Thu, Sep 06 2012, Minchan Kim wrote: At least, it removes MIGRATE_ISOLATE type in free_area-free_list which is very irony type as I mentioned. I really don't

Re: [PATCH v7 1/7] drivers: usb: phy: add a new driver for omap usb2 phy

2012-09-06 Thread Arnd Bergmann
On Thursday 06 September 2012, ABRAHAM, KISHON VIJAY wrote: diff --git a/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt b/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt index d2fe064..bb0c7f4 100644 --- a/Documentation/devicetree/bindings/bus/omap-ocp2scp.txt +++

Re: snd-usb: delay: estimated 0, actual 352

2012-09-06 Thread Takashi Iwai
At Thu, 6 Sep 2012 11:43:48 +0200, Markus Trippelsdorf wrote: On 2012.09.06 at 10:21 +0200, Takashi Iwai wrote: At Thu, 06 Sep 2012 09:35:26 +0200, Takashi Iwai wrote: In short, a patch like below may fix the issue (note: completely untested!) No it doesn't, unfortunately... OK,

[PATCH 0/8] thp: transparent hugepages on s390

2012-09-06 Thread Gerald Schaefer
This patch series adds support for transparent hugepages on s390. Small changes to common code are necessary with regard to a different pgtable_t, tlb flushing and kvm behaviour on s390, see patches 2 to 4. Also, (x86) Kconfig is touched by patch 1. Changes since RFC v2: [PATCH 1/8] introduce

[PATCH 1/8] thp, x86: introduce HAVE_ARCH_TRANSPARENT_HUGEPAGE

2012-09-06 Thread Gerald Schaefer
Cleanup patch in preparation for transparent hugepage support on s390. Adding new architectures to the TRANSPARENT_HUGEPAGE config option can make the depends line rather ugly, like depends on (X86 || (S390 64BIT)) MMU. This patch adds a HAVE_ARCH_TRANSPARENT_HUGEPAGE instead. x86 already has

[PATCH 4/8] thp: make MADV_HUGEPAGE check for mm-def_flags

2012-09-06 Thread Gerald Schaefer
This adds a check to hugepage_madvise(), to refuse MADV_HUGEPAGE if VM_NOHUGEPAGE is set in mm-def_flags. On s390, the VM_NOHUGEPAGE flag will be set in mm-def_flags for kvm processes, to prevent any future thp mappings. In order to also prevent MADV_HUGEPAGE on such an mm, hugepage_madvise()

[PATCH 2/8] thp: remove assumptions on pgtable_t type

2012-09-06 Thread Gerald Schaefer
The thp page table pre-allocation code currently assumes that pgtable_t is of type struct page *. This may not be true for all architectures, so this patch removes that assumption by replacing the functions prepare_pmd_huge_pte() and get_pmd_huge_pte() with two new functions that can be defined

[PATCH 8/8] thp, s390: architecture backend for thp on s390

2012-09-06 Thread Gerald Schaefer
This implements the architecture backend for transparent hugepages on s390. Signed-off-by: Gerald Schaefer gerald.schae...@de.ibm.com --- arch/s390/Kconfig | 1 + arch/s390/include/asm/hugetlb.h | 18 +--- arch/s390/include/asm/pgtable.h | 189

[PATCH 6/8] thp, s390: thp pagetable pre-allocation for s390

2012-09-06 Thread Gerald Schaefer
This patch is part of the architecture backend for thp on s390. It provides the pagetable pre-allocation functions pgtable_trans_huge_deposit() and pgtable_trans_huge_withdraw(). Unlike other archs, s390 has no struct page * as pgtable_t, but rather a pointer to the page table. So instead of

[PATCH 5/8] thp, s390: thp splitting backend for s390

2012-09-06 Thread Gerald Schaefer
This patch is part of the architecture backend for thp on s390. It provides the functions related to thp splitting, including serialization against gup. Unlike other archs, pmdp_splitting_flush() cannot use a tlb flushing operation to serialize against gup on s390, because that wouldn't be stopped

Re: [PATCH] virtio-balloon spec: provide a version of the silent deflate feature that works

2012-09-06 Thread Paolo Bonzini
Il 06/09/2012 14:51, Michael S. Tsirkin ha scritto: On Thu, Sep 06, 2012 at 02:13:14PM +0200, Paolo Bonzini wrote: Il 06/09/2012 12:53, Michael S. Tsirkin ha scritto: It is useful because it lets guests inflate the balloon aggressively, and then use ballooned-out pages even in places where the

[PATCH 3/8] thp: introduce pmdp_invalidate()

2012-09-06 Thread Gerald Schaefer
On s390, a valid page table entry must not be changed while it is attached to any CPU. So instead of pmd_mknotpresent() and set_pmd_at(), an IDTE operation would be necessary there. This patch introduces the pmdp_invalidate() function, to allow architecture-specific implementations.

<    5   6   7   8   9   10   11   12   13   14   >