[RFC 0/3] memory-hotplug: handle page race between allocation and isolation

2012-07-17 Thread Minchan Kim
Memory hotplug has a subtle race problem so this patchset fixes the problem (Look at [3/3] for detail and please confirm the problem before review other patches in this series.) [1/3] is just clean up and help for [2/3]. [2/3] keeps the migratetype information to freed page's index field

[RFC 1/3] mm: use get_page_migratetype instead of page_private

2012-07-17 Thread Minchan Kim
page allocator uses set_page_private and page_private for handling migratetype when it frees page. Let's replace them with [set|get] _page_migratetype to make it more clear. Signed-off-by: Minchan Kim --- include/linux/mm.h | 10 ++ mm/page_alloc.c | 11 +++ mm/page_isol

[RFC 2/3] mm: remain migratetype in freed page

2012-07-17 Thread Minchan Kim
Page allocator doesn't keep migratetype information to page when the page is freed. This patch remains the information to freed page's index field which isn't used by free/alloc preparing so it shouldn't change any behavir except below one. This patch adds a new call site in __free_pages_ok so it

[RFC 3/3] memory-hotplug: bug fix race between isolation and allocation

2012-07-17 Thread Minchan Kim
Like below, memory-hotplug makes race between page-isolation and page-allocation so it can hit BUG_ON in __offline_isolated_pages. CPU A CPU B start_isolate_page_range set_migratetype_isolate spin_lock_irqsave(zone->lock)

[PATCH] sched/rt: Avoid updating RT entry timeout twice within one tick period

2012-07-17 Thread Ying Xue
Firstly please pay attention to below issue which is found in a lower version(2.6.34-rt) rather than mainline rt kernel. Although some big changes have happened from that point to now, especially every softirq does not run as one thread any more, we believe in the latest upstream version the issue

[PATCH 06/11] 3.2.x: timekeeping: Fix leapsecond triggered load spike issue

2012-07-17 Thread John Stultz
This is a backport of 4873fa070ae84a4115f0b3c9dfabc224f1bc7c51 The timekeeping code misses an update of the hrtimer subsystem after a leap second happened. Due to that timers based on CLOCK_REALTIME are either expiring a second early or late depending on whether a leap second has been inserted or

[PATCH 08/11] 3.2.x: hrtimers: Move lock held region in hrtimer_interrupt()

2012-07-17 Thread John Stultz
From: Thomas Gleixner This is a backport of 196951e91262fccda81147d2bcf7fdab08668b40 We need to update the base offsets from this code and we need to do that under base->lock. Move the lock held region around the ktime_get() calls. The ktime_get() calls are going to be replaced with a function w

[PATCH 07/11] 3.2.x: timekeeping: Maintain ktime_t based offsets for hrtimers

2012-07-17 Thread John Stultz
From: Thomas Gleixner This is a backport of 5b9fe759a678e05be4937ddf03d50e950207c1c0 We need to update the hrtimer clock offsets from the hrtimer interrupt context. To avoid conversions from timespec to ktime_t maintain a ktime_t based representation of those offsets in the timekeeper. This puts

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-17 Thread Jon Masters
On 07/16/2012 08:16 AM, Pavel Machek wrote: >> If an implementation supports AArch32 at EL3 there could be some >> physical (or some FPGA config) switch to choose between the two. But >> since AArch64 is mandated, I don't see why one would force AArch32 at >> EL3 and therefore all lower exception

[PATCH 10/11] 3.2.x: hrtimer: Update hrtimer base offsets each hrtimer_interrupt

2012-07-17 Thread John Stultz
This is a backport of 5baefd6d84163443215f4a99f6a20f054ef11236 The update of the hrtimer base offsets on all cpus cannot be made atomically from the timekeeper.lock held and interrupt disabled region as smp function calls are not allowed there. clock_was_set(), which enforces the update on all cp

[PATCH 00/11] 3.2-stable: Fix for leapsecond caused hrtimer/futex issue

2012-07-17 Thread John Stultz
Here is backport of the leapsecond fixes to 3.2-stable. These are less straight forward, and should get closer review. This patch set addresses two issues: 1) Deadlock leapsecond issue that a few reports described. I spent some time over the weekend trying to find a way to reproduce the hard-han

[PATCH 04/11] 3.2.x: time: Move common updates to a function

2012-07-17 Thread John Stultz
From: Thomas Gleixner This is a backport of cc06268c6a87db156af2daed6e96a936b955cc82 While not a bugfix itself, it allows following fixes to backport in a more straightforward manner. CC: Thomas Gleixner CC: Eric Dumazet CC: Richard Cochran Signed-off-by: Thomas Gleixner Cc: Prarit Bhargava

[PATCH 02/11] 3.2.x: ntp: Correct TAI offset during leap second

2012-07-17 Thread John Stultz
From: Richard Cochran This is a backport of dd48d708ff3e917f6d6b6c2b696c3f18c019feed When repeating a UTC time value during a leap second (when the UTC time should be 23:59:60), the TAI timescale should not stop. The kernel NTP code increments the TAI offset one second too late. This patch fixes

[PATCH 01/11] 3.2.x: ntp: Fix leap-second hrtimer livelock

2012-07-17 Thread John Stultz
From: John Stultz This is a backport of 6b43ae8a619d17c4935c3320d2ef9e92bdeed05d This should have been backported when it was commited, but I mistook the problem as requiring the ntp_lock changes that landed in 3.4 in order for it to occur. Unfortunately the same issue can happen (with only one

Re: [PATCH] xfs: fix comment typo of struct xfs_da_blkinfo.

2012-07-17 Thread Christoph Hellwig
On Tue, Jul 17, 2012 at 11:33:33AM +0800, Chen Baozi wrote: > I'd really love to. Right now, I am working on syslinux to support booting on > xfs partition (under pcacjr's mentoring)??? which I thought would be a nice > start to get familiar with xfs (and I did learn a lot from it). So I think >

[PATCH 03/11] 3.2.x: timekeeping: Fix CLOCK_MONOTONIC inconsistency during leapsecond

2012-07-17 Thread John Stultz
From: John Stultz This is a backport of fad0c66c4bb836d57a5f125ecd38bed653ca863a which resolves a bug the previous commit. Commit 6b43ae8a61 (ntp: Fix leap-second hrtimer livelock) broke the leapsecond update of CLOCK_MONOTONIC. The missing leapsecond update to wall_to_monotonic causes discontin

[PATCH 11/11] 3.2.x: timekeeping: Add missing update call in timekeeping_resume()

2012-07-17 Thread John Stultz
From: Thomas Gleixner This is a backport of 3e997130bd2e8c6f5aaa49d6e3161d4d29b43ab0 The leap second rework unearthed another issue of inconsistent data. On timekeeping_resume() the timekeeper data is updated, but nothing calls timekeeping_update(), so now the update code in the timer interrupt

[PATCH 05/11] 3.2.x: hrtimer: Provide clock_was_set_delayed()

2012-07-17 Thread John Stultz
This is a backport of f55a6faa384304c89cfef162768e88374d3312cb clock_was_set() cannot be called from hard interrupt context because it calls on_each_cpu(). For fixing the widely reported leap seconds issue it is necessary to call it from hard interrupt context, i.e. the timer tick code, which doe

[PATCH 09/11] 3.2.x: timekeeping: Provide hrtimer update function

2012-07-17 Thread John Stultz
From: Thomas Gleixner This is a backport of f6c06abfb3972ad4914cef57d8348fcb2932bc3b To finally fix the infamous leap second issue and other race windows caused by functions which change the offsets between the various time bases (CLOCK_MONOTONIC, CLOCK_REALTIME and CLOCK_BOOTTIME) we need a fun

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-17 Thread Jon Masters
On 07/16/2012 04:24 AM, Avi Kivity wrote: > Can the same kernel image run in both EL1 and EL2? I noticed some .if > ELs in the assembler files. I guess they could be compiled multiple > times and the correct version chosen at runtime, or patched up like x86 > does with alternative(). > One of t

Re: [PATCH 00/11] 3.2-stable: Fix for leapsecond caused hrtimer/futex issue

2012-07-17 Thread John Stultz
On 07/17/2012 12:05 AM, John Stultz wrote: 1) Deadlock leapsecond issue that a few reports described. I spent some time over the weekend trying to find a way to reproduce the hard-hang issue some folks were reporting after the leapsecond. Initially I didn't think the 6b43ae8a619d17 leap-second h

Re: [PATCHv3 0/3] perf tool: Add new event group management

2012-07-17 Thread Stephane Eranian
On Mon, Jul 9, 2012 at 1:05 PM, Jiri Olsa wrote: > > On Fri, Jul 06, 2012 at 03:42:54AM +0200, Stephane Eranian wrote: > > On Fri, Jul 6, 2012 at 3:32 AM, Ulrich Drepper wrote: > > > On Thu, Jul 5, 2012 at 12:15 PM, Stephane Eranian > > > wrote: > > >> I don't understand why you actually need t

[PATCH] snd-opti9xx: Implement suspend/resume

2012-07-17 Thread Ondrej Zary
Implement suspend/resume support for Opti 92x and 93x chips. Tested with Opti 929A+AD1848 and Opti 931. Signed-off-by: Ondrej Zary --- a/sound/isa/opti9xx/opti92x-ad1848.c +++ b/sound/isa/opti9xx/opti92x-ad1848.c @@ -136,8 +136,8 @@ struct snd_opti9xx { #ifdef OPTi93X unsigned long mc_i

[PATCH 1/1] Add Wondermedia Technologies (wmt) to docs/devicetree/vendor-bindings.txt

2012-07-17 Thread Tony Prisk
>From 756ae5c2f475d679649adff99058679b651af8d9 Mon Sep 17 00:00:00 2001 From: Tony Prisk Date: Tue, 17 Jul 2012 19:09:31 +1200 Subject: [PATCH] Add Wondermedia Technologies (wmt) to vendor-prefixes.txt Signed-off-by: Tony Prisk --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1

Re: [PATCH v3 2/2] block: split discard into aligned requests

2012-07-17 Thread Christoph Hellwig
Looks good. Any chance we can get this into the 3.6 queue (and possibly -stable)? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: [PATCH 0/5] ubi: Fix bad PEBs reserve caclulation

2012-07-17 Thread Shmulik Ladkani
Hi Artem, On Mon, 16 Jul 2012 18:33:57 +0300 Artem Bityutskiy wrote: > But one more think is the mtd web-site. I've grepped for '1%' and there > are plenty of them. I've changed them all to 2% more or less > mechanically - only cleaned up one section by removing out-of-date > information. Would y

Re: [PATCH RESEND 0/3] scsi: fix internal write cache issue on usb hdd.

2012-07-17 Thread James Bottomley
On Mon, 2012-07-16 at 16:48 -0700, Greg KH wrote: > On Sat, Jul 07, 2012 at 11:04:45PM -0400, Namjae Jeon wrote: > > From: Namjae Jeon > > > > The numbers of USB HDDs(All USB HDD I checked) does not respond > > correctly to scsi mode sense command for retrieving the write cache > > page status. E

Re: [PATCH V2] [SCSI] async: Fixup arguments of async_synchronize_full_domain in alsa-soc

2012-07-17 Thread James Bottomley
On Mon, 2012-07-16 at 15:56 -0700, Dan Williams wrote: > On Mon, Jul 16, 2012 at 3:17 PM, Marek Vasut wrote: > [..] > > sound/soc/soc-dapm.c |2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > V2: CC proper people, hopefully proper mailing list > > Adjust the patch subject wi

Re: linux-next: Tree for July 12 (v4l2-ioctl.c)

2012-07-17 Thread Stephen Rothwell
Hi all, On Tue, 17 Jul 2012 08:48:37 +0200 Hans Verkuil wrote: > > On Tue July 17 2012 04:25:35 Ming Lei wrote: > > On Thu, Jul 12, 2012 at 11:49 PM, Randy Dunlap wrote: > > > > > > on i386 and/or x86_64, drivers/media/video/v4l2-ioctl.c has too many > > > errors to be listed here. This is the

Re: [PATCH RESEND] gpio: of_get_named_gpio_flags() return -EPROBE_DEFER if GPIO not yet available

2012-07-17 Thread Mark Brown
On Tue, Jul 17, 2012 at 12:16:48AM +0200, Linus Walleij wrote: > On Sun, Jul 15, 2012 at 11:11 PM, Mark Brown > > I had thought a version of this > > had been submitted already and was in a similar place to the one for > > gpio_request(). > Me to... Greg just merged the driver core patch for pus

[PATCH] gpiolib: arizona: Add WM5110 support

2012-07-17 Thread Mark Brown
Signed-off-by: Mark Brown --- drivers/gpio/gpio-arizona.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c index 0c1becf..8740d2e 100644 --- a/drivers/gpio/gpio-arizona.c +++ b/drivers/gpio/gpio-arizona.c @@ -112,6 +112,7 @@ static i

Re: [PATCH] sd: do not set changed flag on all unit attention conditions

2012-07-17 Thread James Bottomley
On Mon, 2012-07-16 at 19:20 +0200, Paolo Bonzini wrote: > Il 16/07/2012 18:18, James Bottomley ha scritto: > >> > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > >> > index b583277..6d8ca08 100644 > >> > --- a/drivers/scsi/scsi_lib.c > >> > +++ b/drivers/scsi/scsi_lib.c > >> > @@ -

Re: [opensuse-kernel] Re: [RFC] Simplifying kernel configuration for distro issues

2012-07-17 Thread Geert Uytterhoeven
On Mon, Jul 16, 2012 at 10:56 PM, Linus Torvalds wrote: > On Mon, Jul 16, 2012 at 12:26 PM, wrote: >> Some of the proposed ways to implement the minimum distro kernel would not >> allow you to override the distro defaults because they would be implemented >> by setting dependancies, not by selec

Re: [patch -next] ext4: locking issue on error path

2012-07-17 Thread Zheng Liu
On Tue, Jul 17, 2012 at 09:31:06AM +0300, Dan Carpenter wrote: > We recently changed how the locking worked here, but this error path was > missed. > > Signed-off-by: Dan Carpenter Sorry, it is my fault. Thanks for pointing out this bug. Regards, Zheng > > diff --git a/fs/ext4/inode.c b/fs/e

[PATCH v2 00/11] omap: musb: Add device tree support

2012-07-17 Thread Kishon Vijay Abraham I
This patch series adds device tree support for MUSB and device tree support for all the related modules to get MUSB working in OMAP platform. A new omap-usb2 phy driver has been added (with only dt suppport) to perform phy configurations. Previously this configuration was performed by twl6030, usi

[PATCH v2 02/11] arm/dts: omap: Add omap-usb2 dt data

2012-07-17 Thread Kishon Vijay Abraham I
Add omap-usb2 data node in omap4 device tree file. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap4.dtsi |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index bda5df3..4d2dcc1 100644 --- a/a

[PATCH v2 06/11] arm/dts: Add twl6030-usb data

2012-07-17 Thread Kishon Vijay Abraham I
Add twl6030-usb data node in twl6030 device tree file Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap4-panda.dts |4 arch/arm/boot/dts/omap4-sdp.dts |4 arch/arm/boot/dts/twl6030.dtsi|6 ++ 3 files changed, 14 insertions(+), 0 deletions(-) diff -

[PATCH v2 04/11] arm: omap: hwmod: add a new addr space in otg for writing to control module

2012-07-17 Thread Kishon Vijay Abraham I
The mailbox register for usb otg in omap is present in control module. On detection of any events VBUS or ID, this register should be written to send the notification to musb core. Till we have a separate control module driver to write to control module, omap2430 will handle the register writes to

[PATCH v2 05/11] drivers: usb: twl6030: Add dt support for twl6030 usb

2012-07-17 Thread Kishon Vijay Abraham I
Add device tree support for twl6030 usb driver. Update the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/usb/twl-usb.txt| 22 +++ drivers/usb/otg/twl6030-usb.c | 39 +-

[PATCH v2 10/11] arm/dts: omap: Add usb_otg and glue data

2012-07-17 Thread Kishon Vijay Abraham I
Add usb otg data node in omap4/omap3 device tree file. Also update the node with board specific setting in omapx-.dts file. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap3-beagle.dts |6 ++ arch/arm/boot/dts/omap3-evm.dts|6 ++ arch/arm/boot/dts/omap3.dtsi

[PATCH v2 11/11] arm: omap: phy: remove unused functions from omap-phy-internal.c

2012-07-17 Thread Kishon Vijay Abraham I
All the unnessary functions in omap-phy-internal is removed. These functionality are now handled by omap-usb2 phy driver. Cc: Felipe Balbi Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- arch/arm/mach-omap2/omap_phy_internal.c | 138 --- arch/arm/

[PATCH v2 03/11] drivers: usb: otg: make twl6030_usb as a comparator driver to omap_usb2

2012-07-17 Thread Kishon Vijay Abraham I
All the PHY configuration other than VBUS, ID GND and OTG SRP are removed from twl6030. The phy configurations are taken care by the dedicated usb2 phy driver. So twl6030 is made as comparator driver for VBUS and ID detection. Writing to control module which is now handled in omap2430.c should be

[PATCH v2 07/11] drivers: usb: twl4030: Add device tree support for twl4030 usb

2012-07-17 Thread Kishon Vijay Abraham I
Add device tree support for twl4030 usb driver. Update the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/usb/twl-usb.txt| 19 ++ drivers/usb/otg/twl4030-usb.c | 26 +++

[PATCH v2 09/11] drivers: usb: musb: Add device tree support for omap musb glue

2012-07-17 Thread Kishon Vijay Abraham I
Added device tree support for omap musb driver and updated the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt | 34 - drivers/usb/musb/omap2430.c| 55

[PATCH v2 01/11] drivers: usb: otg: add a new driver for omap usb2 phy

2012-07-17 Thread Kishon Vijay Abraham I
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 support for usb2 phy driver and the documentation with device tree binding information is

[PATCH v2 08/11] arm/dts: Add twl4030-usb data

2012-07-17 Thread Kishon Vijay Abraham I
Add twl4030-usb data node in twl4030 device tree file. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/twl4030.dtsi | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi index 22f4

Re: mm,numad,rcu: hang on OOM

2012-07-17 Thread Sasha Levin
Hi Paul, I've been running with your patch below for a while now, and haven't encountered the issue again. On 07/01/2012 03:15 AM, Paul E. McKenney wrote: > On Fri, Jun 29, 2012 at 06:44:41PM +0200, Sasha Levin wrote: >> Hi all, >> >> While fuzzing using trinity on a KVM tools guest with todays

sched, debug: INFO: possible irq lock inversion dependency detected

2012-07-17 Thread Sasha Levin
Hi all, While fuzzing using trinity inside a KVM tools guest using the latest linux-next, I've encountered a hang within the guest. When I've tried dumping tasks using sysrq-t I got the following: [ 138.777386] = [ 138.777386] [ INFO: po

Re: [PATCH] timekeeping: Add missing update call in timekeeping_resume()

2012-07-17 Thread Konstantin Khlebnikov
I run into the same regression in s2ram between v3.5-rc6 and v3.5-rc7. This patch helps. Thanks. Tested-by: Konstantin Khlebnikov John Stultz wrote: From: Thomas Gleixner Linus, Since Thomas is on vacation I wanted to send you his fix to resolve the suspend regression from the leapsec

Re: [PATCH RFC V4 2/3] kvm: Note down when cpu relax intercepted or pause loop exited

2012-07-17 Thread Avi Kivity
On 07/16/2012 08:24 PM, Raghavendra K T wrote: > So are you saying allow vcpu to spin in non over-commit scenarios? So > that we avoid all yield_to etc... > > ( Or even in some other place where it is useful). When is yielding useful, if you're not overcommitted? -- error compiling committee.

[char-misc-next] mei: use module_pci_driver

2012-07-17 Thread Tomas Winkler
Signed-off-by: Tomas Winkler --- drivers/misc/mei/main.c | 39 +-- 1 files changed, 1 insertions(+), 38 deletions(-) diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 0d98c2e..0923302 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc

[char-misc-next] mei: use module_pci_driver

2012-07-17 Thread Tomas Winkler
Change-Id: I960feed4157ad1b178f68f4a0b3968e185ed0b36 Signed-off-by: Tomas Winkler --- drivers/misc/mei/main.c | 39 +-- 1 files changed, 1 insertions(+), 38 deletions(-) diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 0d98c2e..0923302 10

Re: [PATCH 0/5] Add vhost-blk support

2012-07-17 Thread Asias He
On 07/16/2012 07:58 PM, Stefan Hajnoczi wrote: On Thu, Jul 12, 2012 at 4:35 PM, Asias He wrote: This patchset adds vhost-blk support. vhost-blk is a in kernel virito-blk device accelerator. Compared to userspace virtio-blk implementation, vhost-blk gives about 5% to 15% performance improvement.

Re: [PATCH RFC V4 3/3] kvm: Choose better candidate for directed yield

2012-07-17 Thread Avi Kivity
On 07/16/2012 07:10 PM, Rik van Riel wrote: > On 07/16/2012 06:07 AM, Avi Kivity wrote: > >>> +{ >>> +bool eligible; >>> + >>> +eligible = !vcpu->ple.cpu_relax_intercepted || >>> +(vcpu->ple.cpu_relax_intercepted&& >>> + vcpu->ple.dy_eligible); >>> + >>> +if (vc

Re: [PATCH RFC V4 2/3] kvm: Note down when cpu relax intercepted or pause loop exited

2012-07-17 Thread Raghavendra K T
On 07/17/2012 01:52 PM, Avi Kivity wrote: On 07/16/2012 08:24 PM, Raghavendra K T wrote: So are you saying allow vcpu to spin in non over-commit scenarios? So that we avoid all yield_to etc... ( Or even in some other place where it is useful). When is yielding useful, if you're not overcommit

Re: [PATCH] sd: do not set changed flag on all unit attention conditions

2012-07-17 Thread Paolo Bonzini
Il 17/07/2012 09:45, James Bottomley ha scritto: > On Mon, 2012-07-16 at 19:20 +0200, Paolo Bonzini wrote: >> Il 16/07/2012 18:18, James Bottomley ha scritto: > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > index b583277..6d8ca08 100644 > --- a/drivers/scsi/scsi_lib.c

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-17 Thread Catalin Marinas
On Mon, Jul 16, 2012 at 09:24:26AM +0100, Avi Kivity wrote: > On 07/15/2012 03:16 PM, Catalin Marinas wrote: > > > > The AArch32 execution mode is optional, so it depends on the actual CPU > > implementation (while AArch64 is mandatory). If the implementation > > supports it, the most likely scena

Re: [alsa-devel] [PATCH] snd-opti9xx: Implement suspend/resume

2012-07-17 Thread Rajeev kumar
Hello Ondrej, On 7/17/2012 12:46 PM, Ondrej Zary wrote: Implement suspend/resume support for Opti 92x and 93x chips. Tested with Opti 929A+AD1848 and Opti 931. Signed-off-by: Ondrej Zary +#ifdef CONFIG_PM +static int snd_opti9xx_suspend(struct snd_card *card) +{ + struct snd_opti9xx

Re: [PATCH] sd: do not set changed flag on all unit attention conditions

2012-07-17 Thread James Bottomley
On Tue, 2012-07-17 at 10:34 +0200, Paolo Bonzini wrote: > Il 17/07/2012 09:45, James Bottomley ha scritto: > > On Mon, 2012-07-16 at 19:20 +0200, Paolo Bonzini wrote: > >> Il 16/07/2012 18:18, James Bottomley ha scritto: > > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > >

Re: [PATCH] driver core: move uevent call to driver_register

2012-07-17 Thread Sebastian Ott
Hi, On Mon, 16 Jul 2012, Greg Kroah-Hartman wrote: > On Tue, Jul 17, 2012 at 09:35:02AM +0800, Ming Lei wrote: > > On Tue, Jul 3, 2012 at 1:08 AM, Sebastian Ott > > wrote: > > > > > --- a/drivers/base/driver.c > > > +++ b/drivers/base/driver.c > > > @@ -187,6 +187,9 @@ int driver_register(struc

Re: [PATCH RFT] regulator: palmas: Fix calcuating selector in palmas_map_voltage_smps

2012-07-17 Thread Graeme Gregory
Good catch, thanks I totally forgot about the range bit in that function. Acked-by: Graeme Gregory On 17/07/12 04:29, Axel Lin wrote: > The logic of calculating selector in palmas_map_voltage_smps() does not match > the logic to list voltage in palmas_list_voltage_smps(). > > We use below equati

Re: [alsa-devel] [PATCH] snd-opti9xx: Implement suspend/resume

2012-07-17 Thread Ondrej Zary
On Tuesday 17 July 2012, Rajeev kumar wrote: > Hello Ondrej, > > On 7/17/2012 12:46 PM, Ondrej Zary wrote: > > Implement suspend/resume support for Opti 92x and 93x chips. > > Tested with Opti 929A+AD1848 and Opti 931. > > > > Signed-off-by: Ondrej Zary > > > > > +#ifdef CONFIG_PM > > +static int

Re: [PATCH] driver core: move uevent call to driver_register

2012-07-17 Thread Sebastian Ott
Hi, On Tue, 17 Jul 2012, Ming Lei wrote: > On Tue, Jul 3, 2012 at 1:08 AM, Sebastian Ott > wrote: > > > --- a/drivers/base/driver.c > > +++ b/drivers/base/driver.c > > @@ -187,6 +187,9 @@ int driver_register(struct device_driver > > ret = driver_add_groups(drv, drv->groups); > >

Re: [PATCH 0/5] Add vhost-blk support

2012-07-17 Thread Paolo Bonzini
Il 17/07/2012 10:29, Asias He ha scritto: > So, vhost-blk at least saves ~6 syscalls for us in each request. Are they really 6? If I/O is coalesced by a factor of 3, for example (i.e. each exit processes 3 requests), it's really 2 syscalls per request. Also, is there anything we can improve? P

Re: [PATCH V2] [SCSI] async: Fixup arguments of async_synchronize_full_domain in alsa-soc

2012-07-17 Thread Marek Vasut
Dear James Bottomley, > On Mon, 2012-07-16 at 15:56 -0700, Dan Williams wrote: > > On Mon, Jul 16, 2012 at 3:17 PM, Marek Vasut wrote: > > [..] > > > > > sound/soc/soc-dapm.c |2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > V2: CC proper people, hopefully proper maili

Re: [PATCH] sd: do not set changed flag on all unit attention conditions

2012-07-17 Thread Paolo Bonzini
Il 17/07/2012 10:40, James Bottomley ha scritto: >> > >> > It's not specific to virtio-scsi, in fact I expect that virtio-scsi will >> > be almost always used with non-removable disks. >> > >> > However, QEMU's SCSI target is not used just for virtio-scsi (for >> > example it can be used for USB

Re: [alsa-devel] [PATCH] snd-opti9xx: Implement suspend/resume

2012-07-17 Thread Takashi Iwai
At Tue, 17 Jul 2012 09:16:44 +0200, Ondrej Zary wrote: > > Implement suspend/resume support for Opti 92x and 93x chips. > Tested with Opti 929A+AD1848 and Opti 931. > > Signed-off-by: Ondrej Zary Applied now. Thanks. Takashi > > --- a/sound/isa/opti9xx/opti92x-ad1848.c > +++ b/sound/isa/op

Re: [alsa-devel] [PATCH] snd-opti9xx: Implement suspend/resume

2012-07-17 Thread Rajeev kumar
On 7/17/2012 2:21 PM, Ondrej Zary wrote: static struct pnp_card_driver opti9xx_pnpc_driver = { > > .flags = PNP_DRIVER_RES_DISABLE, > > .name = "opti9xx", > > Why this is opti why not OPTi It's not my code. This patch is just adding suspend/resume and not chang

[PATCH 0/5] cpusets: dynamical scheduler domain flags

2012-07-17 Thread Michael Wang
From: Michael Wang This patch set provide a way for user to dynamically configure the scheduler domain flags, which usually to be static. We can do the configuration through cpuset cgroup, new file will be found under each hierarchy: sched_smt_domain_flag -- appear when CONFIG_SCHED_SMT

[PATCH 1/5] cpusets: add basic variables

2012-07-17 Thread Michael Wang
From: Michael Wang Add the variables we need for the implementation of dynamical domain flags. Signed-off-by: Michael Wang --- include/linux/sched.h | 22 ++ kernel/cpuset.c |7 +++ 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/include/linu

[PATCH 2/5] cpusets: add functions and code for initialization

2012-07-17 Thread Michael Wang
From: Michael Wang Add the functions and code which will do initialization for dynamical domain flags. Signed-off-by: Michael Wang --- include/linux/sched.h | 10 -- kernel/cpuset.c |8 ++-- kernel/sched/core.c |2 +- 3 files changed, 15 insertions(+), 5 deletions

[PATCH 3/5] cpusets: enable the dynamical domain flags

2012-07-17 Thread Michael Wang
From: Michael Wang We will record the domain flags for cpuset in update_domain_attr and use it to replace the static domain flags in set_domain_attribute. Signed-off-by: Michael Wang --- kernel/cpuset.c |7 +++ kernel/sched/core.c | 10 +- 2 files changed, 16 insertions(+

[PATCH 4/5] cpusets: add fundamental functions for recording

2012-07-17 Thread Michael Wang
From: Michael Wang Add the fundamental functions which will help to record the status of dynamical domain flags for cpuset. Signed-off-by: Michael Wang --- kernel/cpuset.c | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/kernel/cpuset.c b/

[PATCH 5/5] cpusets: add the configuration facility

2012-07-17 Thread Michael Wang
From: Michael Wang Add the facility for user to configure the dynamical domain flags and enable/disable it. Signed-off-by: Michael Wang --- kernel/cpuset.c | 85 +++ 1 files changed, 85 insertions(+), 0 deletions(-) diff --git a/kernel/cpu

Re: [PATCH RFC V4 3/3] kvm: Choose better candidate for directed yield

2012-07-17 Thread Raghavendra K T
On 07/17/2012 01:59 PM, Avi Kivity wrote: On 07/16/2012 07:10 PM, Rik van Riel wrote: On 07/16/2012 06:07 AM, Avi Kivity wrote: +{ +bool eligible; + +eligible = !vcpu->ple.cpu_relax_intercepted || +(vcpu->ple.cpu_relax_intercepted&& + vcpu->ple.dy_eligible); + +

Re: [PATCH] sd: do not set changed flag on all unit attention conditions

2012-07-17 Thread James Bottomley
On Tue, 2012-07-17 at 10:54 +0200, Paolo Bonzini wrote: > Il 17/07/2012 10:40, James Bottomley ha scritto: > >> > > >> > It's not specific to virtio-scsi, in fact I expect that virtio-scsi will > >> > be almost always used with non-removable disks. > >> > > >> > However, QEMU's SCSI target is not

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-17 Thread Arnd Bergmann
On Tuesday 17 July 2012, Jon Masters wrote: > On 07/16/2012 08:16 AM, Pavel Machek wrote: > > >> If an implementation supports AArch32 at EL3 there could be some > >> physical (or some FPGA config) switch to choose between the two. But > >> since AArch64 is mandated, I don't see why one would forc

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-17 Thread Arnd Bergmann
On Tuesday 17 July 2012, Christoph Hellwig wrote: > On Sun, Jul 15, 2012 at 07:43:07PM +, Arnd Bergmann wrote: > > Yes, I agree that's the best way to handle this. Compared to other > > architectures, I think x86 is the only that allows booting either a > > 32 or 64 bit kernel on the same syste

Re: [PATCH 1/2] drivers: bus: add a new driver for omap-ocp2scp

2012-07-17 Thread Arnd Bergmann
On Tuesday 17 July 2012, ABRAHAM, KISHON VIJAY wrote: > On Mon, Jul 16, 2012 at 7:43 PM, Kishon Vijay Abraham I wrote: > > Adds a new driver *omap-ocp2scp*. This driver takes the responsibility of > > creating all the devices that is connected to OCP2SCP. In the case of OMAP4, > > USB2PHY is conne

Re: [PATCH] mfd: anatop: matches should be NULL when populate child devices

2012-07-17 Thread Samuel Ortiz
Hi Richard, On Mon, Jul 16, 2012 at 04:55:57PM +0800, Richard Zhao wrote: > Signed-off-by: Richard Zhao > --- > drivers/mfd/anatop-mfd.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied, thanks. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.co

Re: [PATCH 0/5] Add vhost-blk support

2012-07-17 Thread Asias He
On 07/17/2012 04:52 PM, Paolo Bonzini wrote: Il 17/07/2012 10:29, Asias He ha scritto: So, vhost-blk at least saves ~6 syscalls for us in each request. Are they really 6? If I/O is coalesced by a factor of 3, for example (i.e. each exit processes 3 requests), it's really 2 syscalls per reques

[PATCH] perf/x86: Fix LLC-* and node-* events on Intel SandyBridge

2012-07-17 Thread Yan, Zheng
From: "Yan, Zheng" LLC-* and node-* events require using the OFFCORE_RESPONSE events on SandyBridge, but the hw_cache_extra_regs is left uninitialized. This patch adds the missing extra register configure table for SandyBridge. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event_intel

Re: [PATCH] sd: do not set changed flag on all unit attention conditions

2012-07-17 Thread Paolo Bonzini
Il 17/07/2012 11:11, James Bottomley ha scritto: > We don't do stuff just because the standards allows it; just the > opposite: we try to use the smallest implementations from the standards > we can get away with just because the more things we do, the more > exceptions and broken devices we come a

Setreuid distinction about (uid_t)-1

2012-07-17 Thread Adrián
Hi folks, first I'd like to apologize if the question I'm asking is dumb or a little bit out of the scope of the list. I've been doing some testing on setuid functions family lately, and I found a weird behaviour I'm not able to explain myself. I'm using this small program to try and switch the ui

Re: [PATCH 0/5] Add vhost-blk support

2012-07-17 Thread Paolo Bonzini
Il 17/07/2012 11:21, Asias He ha scritto: >> It depends. Like vhost-scsi, vhost-blk has the problem of a crippled >> feature set: no support for block device formats, non-raw protocols, >> etc. This makes it different from vhost-net. > > Data-plane qemu also has this cripppled feature set proble

Re: [RFC/PATCH] Use kernel supplied MMU info for kvm tool

2012-07-17 Thread Matt Evans
Hi Michael, On 2012-07-17 06:00, Michael Ellerman wrote: This is a series for kvmtool that uses a newish kernel API to get MMU info, which is then fed to the guest. Currently we just make a good guess based on the PVR, but that is potentially flakey in a few ways. The most notable is that if y

Re: [PATCH] xfs: fix comment typo of struct xfs_da_blkinfo.

2012-07-17 Thread Chen Baozi
On Jul 17, 2012, at 3:06 PM, Christoph Hellwig wrote: > On Tue, Jul 17, 2012 at 11:33:33AM +0800, Chen Baozi wrote: >> I'd really love to. Right now, I am working on syslinux to support booting >> on xfs partition (under pcacjr's mentoring)??? which I thought would be a >> nice start to get fam

getsockopt/setsockopt with SO_RCVBUF and SO_SNDBUF "non-standard" behaviour

2012-07-17 Thread Eugen Dedu
Hi all, I looked on Internet and at the old thread http://lkml.indiana.edu/hypermail/linux/kernel/0108.0/0275.html, but the issue is still not settled as far as I see. I need to have the highest memory available for snd/rcv buffer and I need to know/confirm how much it allocated for my proce

Re: [PATCH] mm: setup pageblock_order before it's used by sparse

2012-07-17 Thread Jiang Liu
Hi Ben, Any update about this topic? Thanks! Gerry On 2012-7-6 9:24, Benjamin Herrenschmidt wrote: > On Thu, 2012-07-05 at 18:00 -0700, Yinghai Lu wrote: >> cma, dma_continugous_reserve is referring pageblock_order very early >> too. >> just after init_memory_mapping() for

[PATCH] mm/memcg: remove redundant checking on root memcg

2012-07-17 Thread Wanpeng Li
Function __mem_cgroup_cancel_local_charge is only called by mem_cgroup_move_parent. For this case, root memcg has been checked by mem_cgroup_move_parent. So we needn't check that again in function __mem_cgroup_cancel_local_charge and just remove the check in function __mem_cgroup_cancel_local_charg

Re: [PATCH 0/5] Add vhost-blk support

2012-07-17 Thread Michael S. Tsirkin
On Tue, Jul 17, 2012 at 10:52:10AM +0200, Paolo Bonzini wrote: > Il 17/07/2012 10:29, Asias He ha scritto: > > So, vhost-blk at least saves ~6 syscalls for us in each request. > > Are they really 6? If I/O is coalesced by a factor of 3, for example > (i.e. each exit processes 3 requests), it's r

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-17 Thread Alan Cox
> Right, I would say that with any CPU core more powerful than this one > or with more than a few of these, you will also have trouble coming > up with workloads that really require the CPU performance but don't > also require a 64 bit virtual address space in either user space > or kernel. There

Re: [PATCH V3] tmp patch to fix hotplug issue in CMCI storm

2012-07-17 Thread Chen Gong
On Mon, Jul 16, 2012 at 10:22:16AM +0200, Thomas Gleixner wrote: > Date: Mon, 16 Jul 2012 10:22:16 +0200 (CEST) > From: Thomas Gleixner > To: Chen Gong > cc: tony.l...@intel.com, borislav.pet...@amd.com, pet...@infradead.org, > x...@kernel.org, linux-kernel@vger.kernel.org > Subject: Re: [P

Re: linux-next: Tree for July 17 (mfd: AB3100 - ab3100_probe: undefined reference to `rand_initialize_irq')

2012-07-17 Thread Sedat Dilek
On Tue, Jul 17, 2012 at 7:41 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20120716: > > The vfs tree lost its build failure. > > The l2-mtd tree gained a conflict against the mtd tree. > > The battery tree tree lost its build failure. > > The regulator tree gained conflicts against the

Re: [PATCH 0/5] Add vhost-blk support

2012-07-17 Thread Michael S. Tsirkin
On Tue, Jul 17, 2012 at 11:32:45AM +0200, Paolo Bonzini wrote: > Il 17/07/2012 11:21, Asias He ha scritto: > >> It depends. Like vhost-scsi, vhost-blk has the problem of a crippled > >> feature set: no support for block device formats, non-raw protocols, > >> etc. This makes it different from vho

Re: Kerneloops.org defunct?

2012-07-17 Thread Alan Cox
> The reporting tool(Abrt) complicated the reporting and kerneloops.org > DNS still doesn't associated with the required ip address. ( Arjan? ) Anton - just talk to the kernel.org maintainers and get oops.kernel.org set up somewhere and be done with it. > - Starting from the Fedora 18 kernel

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

2012-07-17 Thread Alan Cox
On Tue, 17 Jul 2012 13:45:06 +1000 Stephen Rothwell wrote: > Hi Greg, > > After merging the tty tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > drivers/tty/tty_ioctl.c: In function 'set_sgflags': > drivers/tty/tty_ioctl.c:741:9: error: request for member 'c_ifla

Re: [PATCH REBASE] regulator: tps65910: set input_supply on desc unconditionally

2012-07-17 Thread Mark Brown
On Tue, Jul 17, 2012 at 11:34:06AM +0530, Laxman Dewangan wrote: > Set the supply_name in the regulator descriptor unconditionally > and make this parameter as required parameter in the device > node for successfully registration of the regulator. Applied, thanks. signature.asc Description: Digi

Re: [PATCH RFT] regulator: palmas: Fix calcuating selector in palmas_map_voltage_smps

2012-07-17 Thread Mark Brown
On Tue, Jul 17, 2012 at 11:29:03AM +0800, Axel Lin wrote: > The logic of calculating selector in palmas_map_voltage_smps() does not match > the logic to list voltage in palmas_list_voltage_smps(). Applied, thanks. signature.asc Description: Digital signature

Re: [RFC 3/3] memory-hotplug: bug fix race between isolation and allocation

2012-07-17 Thread Bob Liu
Hi Minchan, On Tue, Jul 17, 2012 at 3:01 PM, Minchan Kim wrote: > Like below, memory-hotplug makes race between page-isolation > and page-allocation so it can hit BUG_ON in __offline_isolated_pages. > > CPU A CPU B > > start_isolate_page_range > set_migra

  1   2   3   4   5   6   7   >