Re: [dm-devel] [PATCH v5 12/12] block: Only clone bio vecs that are in use

2012-08-09 Thread Tejun Heo
Hello, On Wed, Aug 08, 2012 at 04:47:46PM -0700, Muthu Kumar wrote: > You are changing the meaning of __bio_clone() here. In old code, the > number of io_vecs, bi_idx, bi_vcnt are preserved. But in this modified > code, you are mapping bio_src's bi_iovec[bi_idx] to bio_dests > bi_iovec[0] and also

Re: [PATCH] ALSA: hda/realtek - Keep analog bypass muted on ALC892

2012-08-09 Thread Takashi Iwai
At Thu, 9 Aug 2012 08:47:19 +0200, Thierry Reding wrote: > > Unmuting the analog bypass causes any input to be directly bypassed to > the outputs, which is usually not expected by the user. > > Signed-off-by: Thierry Reding > --- > Note that this patch could be generalized to include all codec

Re: [PATCH v5 10/12] block: Add bio_clone_kmalloc()

2012-08-09 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 11:55:04PM -0700, Tejun Heo wrote: > On Wed, Aug 08, 2012 at 06:57:04PM -0700, Kent Overstreet wrote: > > That means bio_clone_kmalloc will just become: > > > > static inline struct bio *bio_clone_kmalloc(struct bio *bio, > > gfp_t gf

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 08:57:13AM +0200, Takashi Iwai wrote: > At Thu, 9 Aug 2012 08:45:23 +0200, > Thierry Reding wrote: > > > > Recent changes to the firmware loading helpers cause drivers to stall > > when firmware is loaded during the module_init() call. The snd-hda-intel > > module requests

RE: [PATCH 6/7] regulator: lp872x: set_current_limit should select the maximum current in specific range

2012-08-09 Thread Kim, Milo
> -Original Message- > From: Axel Lin [mailto:axel@gmail.com] > Sent: Wednesday, August 08, 2012 9:23 PM > To: Mark Brown > Cc: Kim, Milo; Girdwood, Liam; linux-kernel@vger.kernel.org > Subject: [PATCH 6/7] regulator: lp872x: set_current_limit should select > the maximum current in spec

Re: [RFC PATCH v2 10/16] ACPIHP: system device hotplug driver skeleton

2012-08-09 Thread Tang Chen
Hi Liu~ I compiled this driver as a module, acpihp_drv. And when I loaded this module, it gave the following error message: # modprobe acpihp_drv (the command hangs up, no return after 10 min) #dmesg .. [ 126.643350] BUG: unable to handle kernel NULL pointer dereference at 007

[PATCH net-next] time: jiffies_delta_to_clock_t() helper to the rescue

2012-08-09 Thread Eric Dumazet
From: Eric Dumazet Various /proc/net files sometimes report crazy timer values, expressed in clock_t units. This happens when an expired timer delta (expires - jiffies) is passed to jiffies_to_clock_t(). This function has an overflow in : return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_

Re: [PATCH] ALSA: hda/realtek - Keep analog bypass muted on ALC892

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 09:02:10AM +0200, Takashi Iwai wrote: > At Thu, 9 Aug 2012 08:47:19 +0200, > Thierry Reding wrote: > > > > Unmuting the analog bypass causes any input to be directly bypassed to > > the outputs, which is usually not expected by the user. > > > > Signed-off-by: Thierry Red

Re: [PATCH v5 08/12] block: Introduce new bio_split()

2012-08-09 Thread Tejun Heo
On Wed, Aug 08, 2012 at 06:39:23PM -0700, Kent Overstreet wrote: > On Wed, Aug 08, 2012 at 04:05:32PM -0700, Tejun Heo wrote: > > One more thing. > > > > On Mon, Aug 06, 2012 at 03:08:37PM -0700, Kent Overstreet wrote: > > > + if (bio_integrity(bio)) { > > > + bio_integrity_clone(ret, bio,

Re: Using vanilla kernels headers to do backport testing -- issues with memcpy()

2012-08-09 Thread Sedat Dilek
On Thu, Aug 9, 2012 at 5:30 AM, Luis R. Rodriguez wrote: > On Wed, Aug 8, 2012 at 5:43 AM, Ozan Çağlayan wrote: >> On Tue, Aug 7, 2012 at 10:28 PM, Luis R. Rodriguez >> wrote: > >>> mcgrof@garbanzo ~/compat (git::master)$ objdump -T >>> /home/mcgrof/compat-ksrc/lib/modules/3.4.4-030404-generic/

Re: [PATCH 01/22] ARM: add mechanism for late code patching

2012-08-09 Thread Tixy
On Wed, 2012-08-08 at 12:56 -0400, Nicolas Pitre wrote: > On Wed, 8 Aug 2012, Russell King - ARM Linux wrote: > > Done correctly, it shouldn't be a problem, but I wouldn't say that > > arch/arm/kernel/kprobes-test*.c is done correctly. It's seen quite > > a number of patching attempts since it was

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Takashi Iwai
At Thu, 9 Aug 2012 09:08:13 +0200, Thierry Reding wrote: > > On Thu, Aug 09, 2012 at 08:57:13AM +0200, Takashi Iwai wrote: > > At Thu, 9 Aug 2012 08:45:23 +0200, > > Thierry Reding wrote: > > > > > > Recent changes to the firmware loading helpers cause drivers to stall > > > when firmware is loa

Re: [PATCH v5 08/12] block: Introduce new bio_split()

2012-08-09 Thread Kent Overstreet
On Thu, Aug 09, 2012 at 12:22:17AM -0700, Tejun Heo wrote: > On Wed, Aug 08, 2012 at 06:39:23PM -0700, Kent Overstreet wrote: > > On Wed, Aug 08, 2012 at 04:05:32PM -0700, Tejun Heo wrote: > > > One more thing. > > > > > > On Mon, Aug 06, 2012 at 03:08:37PM -0700, Kent Overstreet wrote: > > > > +

Re: [PATCH] ALSA: hda/realtek - Keep analog bypass muted on ALC892

2012-08-09 Thread Takashi Iwai
At Thu, 9 Aug 2012 09:18:48 +0200, Thierry Reding wrote: > > On Thu, Aug 09, 2012 at 09:02:10AM +0200, Takashi Iwai wrote: > > At Thu, 9 Aug 2012 08:47:19 +0200, > > Thierry Reding wrote: > > > > > > Unmuting the analog bypass causes any input to be directly bypassed to > > > the outputs, which

Re: [PATCH 10/10] leds: renesas: fix error handling

2012-08-09 Thread Arnd Bergmann
On Thursday 09 August 2012, Bryan Wu wrote: > > On Thu, Aug 9, 2012 at 5:27 AM, Arnd Bergmann wrote: > > bfe4c041 "leds: convert Renesas TPU LED driver to devm_kzalloc() and > > cleanup error exit path" introduced a possible case in which r_tpu_probe > > calls iounmap on a wild pointer. This chan

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 09:31:30AM +0200, Takashi Iwai wrote: > At Thu, 9 Aug 2012 09:08:13 +0200, > Thierry Reding wrote: > > > > On Thu, Aug 09, 2012 at 08:57:13AM +0200, Takashi Iwai wrote: > > > At Thu, 9 Aug 2012 08:45:23 +0200, > > > Thierry Reding wrote: > > > > > > > > Recent changes to

[PATCH] alarmtimer: implement minimum alarm interval for allowing suspend

2012-08-09 Thread Todd Poynor
alarmtimer suspend return -EBUSY if the next alarm will fire in less than 2 seconds. This allows one RTC seconds tick to occur subsequent to this check before the alarm wakeup time is set, ensuring the wakeup time is still in the future (assuming the RTC does not tick one more second prior to sett

Re: [RFC PATCH v2 10/16] ACPIHP: system device hotplug driver skeleton

2012-08-09 Thread Jiang Liu
Hi Tang, Thanks for testing. Currently there's a limitation that you need to insert acpihp_enum driver first. Will fix this issue in next version. Regards! Gerry On 2012-8-9 15:12, Tang Chen wrote: > Hi Liu~ > > I compiled this driver as a module, acpihp_drv. And

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Takashi Iwai
At Thu, 9 Aug 2012 09:36:42 +0200, Thierry Reding wrote: > > On Thu, Aug 09, 2012 at 09:31:30AM +0200, Takashi Iwai wrote: > > At Thu, 9 Aug 2012 09:08:13 +0200, > > Thierry Reding wrote: > > > > > > On Thu, Aug 09, 2012 at 08:57:13AM +0200, Takashi Iwai wrote: > > > > At Thu, 9 Aug 2012 08:45:2

Re: [RFC]block: disable discard request merge temporarily

2012-08-09 Thread Christoph Hellwig
On Thu, Aug 09, 2012 at 01:28:03PM +0800, Shaohua Li wrote: > The SCSI discard request merge never worked, and looks no solution for in > future, let's disable it temporarily. > > Signed-off-by: Shaohua Li Looks good and is equivalent to what I proposed over a year aggo, Reviewed-by: Christoph

Re: [PATCH 09/10] ARM: rpc: Fix building RiscPC

2012-08-09 Thread Russell King - ARM Linux
On Wed, Aug 08, 2012 at 11:27:57PM +0200, Arnd Bergmann wrote: > ARMv3 support was removed in 357c9c1f07 "ARM: Remove support for ARMv3 > ARM610 and ARM710 CPUs", which explicitly left parts of the CPU32v3 > support in place for building RiscPC. However, this does not actually > build in my test se

Re: [PATCH 2/6] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-09 Thread Mel Gorman
On Thu, Aug 09, 2012 at 08:51:27AM +0900, Minchan Kim wrote: > > > > > Just out of curiosity. > > > > > What's the problem did you see? (ie, What's the problem do this patch > > > > > solve?) > > > > > > > > Everythign in this series is related to the problem in the leader - high > > > > order al

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Takashi Iwai
At Thu, 09 Aug 2012 09:42:48 +0200, Takashi Iwai wrote: > > At Thu, 9 Aug 2012 09:36:42 +0200, > Thierry Reding wrote: > > > > On Thu, Aug 09, 2012 at 09:31:30AM +0200, Takashi Iwai wrote: > > > At Thu, 9 Aug 2012 09:08:13 +0200, > > > Thierry Reding wrote: > > > > > > > > On Thu, Aug 09, 2012 a

Re: [PATCH] ALSA: hda/realtek - Keep analog bypass muted on ALC892

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 09:33:43AM +0200, Takashi Iwai wrote: > At Thu, 9 Aug 2012 09:18:48 +0200, > Thierry Reding wrote: > > > > On Thu, Aug 09, 2012 at 09:02:10AM +0200, Takashi Iwai wrote: > > > At Thu, 9 Aug 2012 08:47:19 +0200, > > > Thierry Reding wrote: > > > > > > > > Unmuting the analo

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 09:50:57AM +0200, Takashi Iwai wrote: > At Thu, 09 Aug 2012 09:42:48 +0200, > Takashi Iwai wrote: > > > > At Thu, 9 Aug 2012 09:36:42 +0200, > > Thierry Reding wrote: > > > > > > On Thu, Aug 09, 2012 at 09:31:30AM +0200, Takashi Iwai wrote: > > > > At Thu, 9 Aug 2012 09:08

RE: [PATCH] net: add new QCA alx ethernet driver

2012-08-09 Thread Joe Perches
On Thu, 2012-08-09 at 06:49 +, Ren, Cloud wrote: > Luis has ever asked joe for adding as a Signed-off-by. At that time joe agreed > with it. What I replied to Luis and some qca list was: On Fri, 2012-01-20 at 19:49 -0800, Joe Perches wrote: > On Fri, 2012-01-20 at 18:25 -0800, Luis R. Rodrigu

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 09:42:48AM +0200, Takashi Iwai wrote: > At Thu, 9 Aug 2012 09:36:42 +0200, > Thierry Reding wrote: > > > > On Thu, Aug 09, 2012 at 09:31:30AM +0200, Takashi Iwai wrote: > > > At Thu, 9 Aug 2012 09:08:13 +0200, > > > Thierry Reding wrote: > > > > > > > > On Thu, Aug 09, 201

Re: [PATCH 3/5] mm: compaction: Capture a suitable high-order page immediately when it is made available

2012-08-09 Thread Mel Gorman
On Thu, Aug 09, 2012 at 10:33:58AM +0900, Minchan Kim wrote: > Hi Mel, > > Just one questoin below. > Sure! Your questions usually get me thinking about the right part of the series, this series in particular :) > > > > @@ -708,6 +750,10 @@ static int compact_zone(struct zone *zone, struct >

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Takashi Iwai
At Thu, 9 Aug 2012 10:07:13 +0200, Thierry Reding wrote: > > On Thu, Aug 09, 2012 at 09:42:48AM +0200, Takashi Iwai wrote: > > At Thu, 9 Aug 2012 09:36:42 +0200, > > Thierry Reding wrote: > > > > > > On Thu, Aug 09, 2012 at 09:31:30AM +0200, Takashi Iwai wrote: > > > > At Thu, 9 Aug 2012 09:08:13

[PATCH v2 1/3] mfd: add lp8788 mfd driver

2012-08-09 Thread Kim, Milo
TI LP8788 PMU supports regulators, battery charger, RTC, ADC, backlight driver and current sinks. Patch v2. (a) For interrupt handling, use generic irq rather than irq-domain (b) Replace EXPORT_SYMBOL() with EXPORT_SYMBOL_GPL() for regmap apis (c) Remove adc functions in mfd driver : add new iio

[PATCH 2/3] iio: adc: add new lp8788 adc driver

2012-08-09 Thread Kim, Milo
TI LP8788 has ADC function. The result of LP878 ADC is used in the LP8788 power supply driver. (such like getting the battery voltage, temperature and etc) Signed-off-by: Milo(Woogyom) Kim --- drivers/iio/adc/Kconfig |6 + drivers/iio/adc/Makefile |1 + drivers/iio/adc/lp8788_ad

[PATCH v2 3/3] power_supply: add new lp8788 charger driver

2012-08-09 Thread Kim, Milo
TI LP8788 PMU has the battery charger function. Patch v2. use iio consumer apis for adc results rather than raw lp8788 functions (battery voltage and battery temperature ) Signed-off-by: Milo(Woogyom) Kim --- drivers/power/Kconfig |7 + drivers/power/Makefile |1 + driv

Re: [PATCH 5/5] mm: have order > 0 compaction start near a pageblock with free pages

2012-08-09 Thread Mel Gorman
On Thu, Aug 09, 2012 at 09:12:12AM +0900, Minchan Kim wrote: > > > > > > Second, it updates compact_cached_free_pfn in a more limited set of > > circumstances. > > > > If a scanner has wrapped, it updates compact_cached_free_pfn to the end > > of the zone. When a wrapped scanner isolates a p

Re: [PATCH 2/6] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-09 Thread Minchan Kim
On Thu, Aug 09, 2012 at 08:49:50AM +0100, Mel Gorman wrote: > On Thu, Aug 09, 2012 at 08:51:27AM +0900, Minchan Kim wrote: > > > > > > Just out of curiosity. > > > > > > What's the problem did you see? (ie, What's the problem do this > > > > > > patch solve?) > > > > > > > > > > Everythign in thi

RE: [PATCH] net: add new QCA alx ethernet driver

2012-08-09 Thread Ren, Cloud
>-Original Message- >From: Joe Perches [mailto:j...@perches.com] >Sent: Thursday, August 09, 2012 3:58 PM > >On Thu, 2012-08-09 at 06:49 +, Ren, Cloud wrote: >> Luis has ever asked joe for adding as a Signed-off-by. At that time >> joe agreed with it. > >What I replied to Luis and some

Re: [PATCH 3/5] kmemleak: use rbtree instead of prio tree

2012-08-09 Thread Catalin Marinas
On Wed, Aug 08, 2012 at 06:07:39PM +0100, Michel Lespinasse wrote: > kmemleak uses a tree where each node represents an allocated memory object > in order to quickly find out what object a given address is part of. > However, the objects don't overlap, so rbtrees are a better choice than > prio tre

RE: [PATCH 1/6] mfd: add lp8788 mfd driver

2012-08-09 Thread Kim, Milo
> > +static irqreturn_t lp8788_irq_handler(int irq, void *ptr) > > +{ > > + struct lp8788_irq_data *irqd = ptr; > > + unsigned long delay = msecs_to_jiffies(DEBOUNCE_MSEC); > > + > > + queue_delayed_work(irqd->thread, &irqd->work, delay); > > + > > + return IRQ_HANDLED; > > +} > > Why a de

Re: [RFC PATCH 4/4] ftrace/x86: Add support for -mfentry to x86_64

2012-08-09 Thread Masami Hiramatsu
(2012/08/08 4:38), Steven Rostedt wrote: > From: Steven Rostedt > > If the kernel is compiled with gcc 4.6.0 which supports -mfentry, > then use that instead of mcount. > > With mcount, frame pointers are forced with the -pg option and we > get something like: > > : >55

Re: [PATCH 3/5] mm: compaction: Capture a suitable high-order page immediately when it is made available

2012-08-09 Thread Minchan Kim
On Thu, Aug 09, 2012 at 09:11:20AM +0100, Mel Gorman wrote: > On Thu, Aug 09, 2012 at 10:33:58AM +0900, Minchan Kim wrote: > > Hi Mel, > > > > Just one questoin below. > > > > Sure! Your questions usually get me thinking about the right part of the > series, this series in particular :) > > > >

Re: [RFC PATCH v2 10/16] ACPIHP: system device hotplug driver skeleton

2012-08-09 Thread Tang Chen
Hi Liu ~ On 08/09/2012 03:40 PM, Jiang Liu wrote: > Hi Tang, > Thanks for testing. > Currently there's a limitation that you need to insert acpihp_enum > driver first. Sorry, I didn't make it clear. I did load acpihp_enum module first, and then load acpihp_drv. And I just tried it

Re: [PATCH 5/5] mm: have order > 0 compaction start near a pageblock with free pages

2012-08-09 Thread Minchan Kim
On Thu, Aug 09, 2012 at 09:23:28AM +0100, Mel Gorman wrote: > On Thu, Aug 09, 2012 at 09:12:12AM +0900, Minchan Kim wrote: > > > > > > > > > Second, it updates compact_cached_free_pfn in a more limited set of > > > circumstances. > > > > > > If a scanner has wrapped, it updates compact_cached_fr

Re: [PATCH 5/5] mm: have order > 0 compaction start near a pageblock with free pages

2012-08-09 Thread Minchan Kim
On Wed, Aug 08, 2012 at 08:08:44PM +0100, Mel Gorman wrote: > commit [7db8889a: mm: have order > 0 compaction start off where it left] > introduced a caching mechanism to reduce the amount work the free page > scanner does in compaction. However, it has a problem. Consider two process > simultaneou

[PATCH v7 0/8] Raid: enable talitos xor offload for improving performance

2012-08-09 Thread qiang.liu
Hi all, The following 8 patches enabling fsl-dma and talitos offload raid operations for improving raid performance and balancing CPU load. These patches include talitos, fsl-dma and carma module (caram uses some features of fsl-dma). Write performance will be improved by 25-30% tested by iozone

[PATCH v7 1/8] Talitos: Support for async_tx XOR offload

2012-08-09 Thread qiang.liu
From: Qiang Liu Expose Talitos's XOR functionality to be used for RAID parity calculation via the Async_tx layer. Cc: Herbert Xu Cc: David S. Miller Signed-off-by: Dipen Dudhat Signed-off-by: Maneesh Gupta Signed-off-by: Kim Phillips Signed-off-by: Vishnu Suresh Signed-off-by: Qiang Liu -

[PATCH v7 2/8] fsl-dma: remove attribute DMA_INTERRUPT of dmaengine

2012-08-09 Thread qiang.liu
From: Qiang Liu Delete attribute DMA_INTERRUPT because fsl-dma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu Acked-by: Ira W. Snyder --- drivers/dma/fsldma.c |

[PATCH v7 3/8] fsl-dma: add fsl_dma_free_descriptor() to reduce code duplication

2012-08-09 Thread qiang.liu
From: Qiang Liu There are several places where descriptors are freed using identical code. Put this code into a function to reduce code duplication. Cc: Dan Williams Cc: Dan Williams Cc: Vinod Koul Signed-off-by: Ira W. Snyder --- drivers/dma/fsldma.c | 38

[PATCH v7 4/8] fsl-dma: move functions to avoid forward declarations

2012-08-09 Thread qiang.liu
From: Qiang Liu These functions will be modified in the next patch in the series. By moving the function in a patch separate from the changes, it will make review easier. Cc: Dan Williams Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Ira W. Snyder Signed-off-by: Qiang Liu ---

[PATCH v7 5/8] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-09 Thread qiang.liu
From: Qiang Liu Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race condition when dma engine is uesd by o

[PATCH v7 6/8] fsl-dma: use spin_lock_bh to instead of spin_lock_irqsave

2012-08-09 Thread qiang.liu
From: Qiang Liu The use of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required should be used instead. Interrupts will be turned off and context will be saved, there is needless to use irqsave. Change all instances of spin_lock

[PATCH v7 7/8] fsl-dma: fix a warning of unitialized cookie

2012-08-09 Thread qiang.liu
From: Qiang Liu Fix a warning of unitialized value when compile with -Wuninitialized. Cc: Dan Williams Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu Reported-by: Kim Phillips Acked-by: Ira W. Snyder --- drivers/dma/fsldma.c |2 +- 1 files changed, 1 insertions(

[PATCH v7 8/8] carma: remove unnecessary DMA_INTERRUPT capability

2012-08-09 Thread qiang.liu
From: Qiang Liu These drivers set the DMA_INTERRUPT capability bit when requesting a DMA controller channel. This was historical, and is no longer needed. Recent changes to the drivers/dma/fsldma.c driver have removed support for this flag. This makes the carma drivers unable to find a DMA chann

Re: Re: [RFC PATCH] block:Fix some problems about handling plug in blk_queue_bio().

2012-08-09 Thread Shaohua Li
2012/8/8 Jianpeng Ma : > On 2012-08-08 11:06 Shaohua Li Wrote: >>2012/8/8 Jianpeng Ma : >>> I think there are three problems about handling plug in blk_queue_bio(): >>> 1:if request_count >= BLK_MAX_REQUEST_COUNT, avoid unnecessary >>> plug->should_sort judge. >>this makes sense, though not a big

Re: [Regression] "x86-64/efi: Use EFI to deal with platform wall clock" prevents my machine from booting

2012-08-09 Thread Matt Fleming
On Tue, 2012-08-07 at 11:50 +0100, Jan Beulich wrote: > > > > I managed to find a machine to reproduce this on and it looks like the > > ASUS firmware engineers are upto their old tricks of referencing > > physical addresses after we've taken control of the memory map, > > Yippie. On such systems

[PATCH] perf/x86: disable PEBS on a guest entry.

2012-08-09 Thread Gleb Natapov
If PMU counter has PEBS enabled it is not enough to disable counter on a guest entry since PEBS memory write can overshoot guest entry and corrupt guest memory. Disabling PEBS during guest entry solves the problem. Tested-by: David Ahern Signed-off-by: Gleb Natapov diff --git a/arch/x86/kernel/c

Re: recv(...,MSG_TRUNC)

2012-08-09 Thread ibrahem . batta
On Saturday, June 29, 2002 10:40:18 PM UTC+3, Samuel Thibault wrote: > (Previous mail seemed to be garbaged by mime attachment) > > Hello, > > man recv says, about flags : > >MSG_TRUNC > Return the real length of the packet, even when it > was longer than the

Re: [PATCH v2 06/10] ARM: davinci: don't use broken ntosd2_init_i2c

2012-08-09 Thread Arnd Bergmann
On second thought, there is probably no use in keeping the broken function around, and we can just kill it off. If someone wants to add an i2c device to the bus, they can always add the init code back as well. 8<- Subject: ARM: davinci: don't use broken ntosd2_init_i2c ntosd2_init_i2c walks t

Re: [PATCH v6 1/3] mm: introduce compaction and migration for virtio ballooned pages

2012-08-09 Thread Mel Gorman
On Wed, Aug 08, 2012 at 07:53:19PM -0300, Rafael Aquini wrote: > Memory fragmentation introduced by ballooning might reduce significantly > the number of 2MB contiguous memory blocks that can be used within a guest, > thus imposing performance penalties associated with the reduced number of > trans

Re: [RFC PATCH 1/6] virtio/console: Add splice_write support

2012-08-09 Thread Amit Shah
On (Tue) 24 Jul 2012 [11:37:07], Yoshihiro YUNOMAE wrote: > From: Masami Hiramatsu > > Enable to use splice_write from pipe to virtio-console port. > This steals pages from pipe and directly send it to host. > > Note that this may accelerate only the guest to host path. > > Signed-off-by: Masam

[2.6.32+drm33-longterm] Linux 2.6.32.59+drm33.26

2012-08-09 Thread Stefan Bader
I am announcing the release of the 2.6.32.59+drm33.26 longterm tree. This tree is based on 2.6.32 and generally has all of the stable updates applied. Except those to the DRM subsystem, which was based on 2.6.33 and took updates from that upstream stable as long as that existed. It will continue t

Re: Using vanilla kernels headers to do backport testing -- issues with memcpy()

2012-08-09 Thread Luis R. Rodriguez
On Thu, Aug 9, 2012 at 12:27 AM, Sedat Dilek wrote: > I am not an English native but this sentence sounds a bit strange to > me ("used" followed by "require" and double "Linux"?). > I can imagine what you want to express but have no better wording right now. > > 180 + echo -e " This was added s

Re: [RFC PATCH 2/6] virtio/console: Add a failback for unstealable pipe buffer

2012-08-09 Thread Amit Shah
On (Tue) 24 Jul 2012 [11:37:18], Yoshihiro YUNOMAE wrote: > From: Masami Hiramatsu > > Add a failback memcpy path for unstealable pipe buffer. > If buf->ops->steal() fails, virtio-serial tries to > copy the page contents to an allocated page, instead > of just failing splice(). > > Signed-off-by

[PATCH, RFC 1/9] thp: huge zero page: basic preparation

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" For now let's allocate the page on hugepage_init(). We'll switch to lazy allocation later. We are not going to map the huge zero page until we can handle it properly on all code paths. is_huge_zero_{pfn,pmd}() functions will be used by following patches to check wheth

[PATCH, RFC 3/9] thp: copy_huge_pmd(): copy huge zero page

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" It's easy to copy huge zero page. Just set destination pmd to huge zero page. It's safe to copy huge zero page since we have none yet :-p Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(

[PATCH, RFC 0/9] Introduce huge zero page

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if THP is enabled. The main reason for that big difference is lacking zero page in THP case. We have to allocate a real page on read page fault. A program

[PATCH, RFC 2/9] thp: zap_huge_pmd(): zap huge zero pmd

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" We don't have a real page to zap in huge zero page case. Let's just clear pmd and remove it from tlb. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 27 +-- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git a/mm/huge_m

[PATCH, RFC 7/9] thp: implement splitting pmd for huge zero page

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" We can't split huge zero page itself, but we can split the pmd which points to it. On splitting the pmd we create a table with all ptes set to normal zero page. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 36 1 fil

[PATCH, RFC 5/9] thp: change_huge_pmd(): keep huge zero page write-protected

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" We want to get page fault on write attempt to huge zero page, so let's keep it write-protected. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index

[PATCH, RFC 9/9] thp: lazy huge zero page allocation

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Instead of allocating huge zero page on hugepage_init() we can postpone it until first huge zero page map. It saves memory if THP is not in use. cmpxchg() is used to avoid race on huge_zero_pfn initialization. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c |

[PATCH v3] xfs: check for possible overflow in xfs_ioc_trim

2012-08-09 Thread Tomas Racek
If range.start or range.minlen is bigger than filesystem size, return invalid value error. This fixes possible overflow in BTOBB macro when passed value was nearly ULLONG_MAX. Signed-off-by: Tomas Racek --- fs/xfs/xfs_discard.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) dif

[PATCH, RFC 8/9] thp: setup huge zero page on non-write page fault

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" All code paths seems covered. Now we can map huge zero page on read page fault. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 4df5841

[PATCH, RFC 6/9] thp: add address parameter to split_huge_page_pmd()

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" It's required to implement huge zero pmd splitting. Signed-off-by: Kirill A. Shutemov --- Documentation/vm/transhuge.txt |4 ++-- arch/x86/kernel/vm86_32.c |2 +- fs/proc/task_mmu.c |2 +- include/linux/huge_mm.h| 10 ++

[PATCH, RFC 4/9] thp: do_huge_pmd_wp_page(): handle huge zero page

2012-08-09 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" On right access to huge zero page we alloc a new page and clear it. In fallback path we create a new table and set pte around fault address to the newly allocated page. All other ptes set to normal zero page. Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h

Re: Re: [RFC PATCH 1/6] virtio/console: Add splice_write support

2012-08-09 Thread Masami Hiramatsu
(2012/08/09 18:00), Amit Shah wrote: > On (Tue) 24 Jul 2012 [11:37:07], Yoshihiro YUNOMAE wrote: >> From: Masami Hiramatsu >> >> Enable to use splice_write from pipe to virtio-console port. >> This steals pages from pipe and directly send it to host. >> >> Note that this may accelerate only the gu

Re: [PATCH] ALSA: hda - Defer probe when loading patch firmware

2012-08-09 Thread Takashi Iwai
At Thu, 09 Aug 2012 10:21:15 +0200, Takashi Iwai wrote: > > At Thu, 9 Aug 2012 10:07:13 +0200, > Thierry Reding wrote: > > > > On Thu, Aug 09, 2012 at 09:42:48AM +0200, Takashi Iwai wrote: > > > At Thu, 9 Aug 2012 09:36:42 +0200, > > > Thierry Reding wrote: > > > > > > > > On Thu, Aug 09, 2012 a

Re: [PATCH 2/6] mm: vmscan: Scale number of pages reclaimed by reclaim/compaction based on failures

2012-08-09 Thread Mel Gorman
On Thu, Aug 09, 2012 at 05:27:15PM +0900, Minchan Kim wrote: > > > > + * pages reclaimed based on the number of consecutive allocation > > > > + * failures > > > > + */ > > > > + zone = lruvec_zone(lruvec); > > > > + if (zone->compact_order_failed >= sc->order) > > > > > > I

Re: [PATCH] mmc: sdio: Fix PM_SLEEP related build warnings

2012-08-09 Thread Rafael J. Wysocki
On Thursday, August 09, 2012, Thierry Reding wrote: > Power management callbacks defined by SIMPLE_DEV_PM_OPS are only used if > the PM_SLEEP Kconfig symbol has been defined. If not, the compiler will > complain about them being unused. > > Signed-off-by: Thierry Reding The pm_no_operation() thi

[patch v2 1/1] HID:hid-multitouch: Add ELAN prouction request when resume

2012-08-09 Thread Scott Liu
Some of ELAN's production need to with set_idle commmand when reusme. Signed-off-by: Scott Liu --- drivers/hid/hid-ids.h|3 +++ drivers/hid/hid-multitouch.c | 20 2 files changed, 23 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h inde

Re: [RFC PATCH 2/6] virtio/console: Add a failback for unstealable pipe buffer

2012-08-09 Thread Borislav Petkov
On Thu, Aug 09, 2012 at 02:33:12PM +0530, Amit Shah wrote: > > @@ -807,9 +807,31 @@ static int pipe_to_sg(struct pipe_inode_info *pipe, > > struct pipe_buffer *buf, > > > > len = min(buf->len, sd->len); > > sg_set_page(&(sgl->sg[sgl->n]), buf->page, len, buf->offset); > >

Re: [RFC PATCH 2/6] virtio/console: Add a failback for unstealable pipe buffer

2012-08-09 Thread Masami Hiramatsu
(2012/08/09 18:03), Amit Shah wrote: > On (Tue) 24 Jul 2012 [11:37:18], Yoshihiro YUNOMAE wrote: >> From: Masami Hiramatsu >> >> Add a failback memcpy path for unstealable pipe buffer. >> If buf->ops->steal() fails, virtio-serial tries to >> copy the page contents to an allocated page, instead >>

Re: [PATCH] alarmtimer: implement minimum alarm interval for allowing suspend

2012-08-09 Thread Rafael J. Wysocki
On Thursday, August 09, 2012, Todd Poynor wrote: > alarmtimer suspend return -EBUSY if the next alarm will fire in less > than 2 seconds. This allows one RTC seconds tick to occur subsequent > to this check before the alarm wakeup time is set, ensuring the wakeup > time is still in the future (ass

Re: [PATCH] mmc: sdio: Fix PM_SLEEP related build warnings

2012-08-09 Thread Thierry Reding
On Thu, Aug 09, 2012 at 11:27:02AM +0200, Rafael J. Wysocki wrote: > On Thursday, August 09, 2012, Thierry Reding wrote: > > Power management callbacks defined by SIMPLE_DEV_PM_OPS are only used if > > the PM_SLEEP Kconfig symbol has been defined. If not, the compiler will > > complain about them b

Re: [PATCH 0/5][RFC] Fallocate Volatile Ranges v6

2012-08-09 Thread Michel Lespinasse
Hi John, On Fri, Jul 27, 2012 at 8:57 PM, John Stultz wrote: > So after not getting too much positive feedback on my last > attempt at trying to use a non-shrinker method for managing > & purging volatile ranges, I decided I'd go ahead and try > to implement something along Minchan's ERECLAIM LRU

[PATCH] Intel xhci: Only switch the switchable ports

2012-08-09 Thread Keng-Yu Lin
With a previous patch to enable the EHCI/XHCI port switching, it switches all the available ports. The assumption is not correct because the BIOS may expect some ports not switchable by the OS. There are two more registers that contains the information of the switchable and non-switchable ports.

[PATCH] mmc: sdio: Fix PM_SLEEP related build warnings

2012-08-09 Thread Thierry Reding
Power management callbacks defined by SIMPLE_DEV_PM_OPS are only used if the PM_SLEEP Kconfig symbol has been defined. If not, the compiler will complain about them being unused. However, since the callback for this driver doesn't do anything it can just as well be dropped. Signed-off-by: Thierry

[PATCH v2 0/2] Enhance DMABUF with reference counting for exporter module

2012-08-09 Thread Tomasz Stanislawski
Hello, This patchset adds reference counting for an exporter module to DMABUF framework. Moreover, it adds setup of an owner field for exporters in DRM subsystem. v1: Original v2: - split patch into DMABUF and DRM part - allow owner to be NULL Regards, Tomasz Stanislawski Tomasz Stanislawsk

[PATCH v2 1/2] dma-buf: add reference counting for exporter module

2012-08-09 Thread Tomasz Stanislawski
This patch adds reference counting on a module that exported dma-buf and implements its operations. This prevents the module from being unloaded while DMABUF file is in use. Signed-off-by: Tomasz Stanislawski Acked-by: Sumit Semwal Acked-by: Daniel Vetter CC: linux-...@vger.kernel.org --- Docu

[PATCH v2 2/2] drm: set owner field to for all DMABUF exporters

2012-08-09 Thread Tomasz Stanislawski
This patch sets owner field in DMABUF operations for all DMABUF exporters in DRM subsystem. This prevents an exporting module from being unloaded while exported DMABUF descriptor is in use. Signed-off-by: Tomasz Stanislawski Acked-by: Sumit Semwal Acked-by: Daniel Vetter --- drivers/gpu/drm/e

Re: [RFC PATCH v2 10/16] ACPIHP: system device hotplug driver skeleton

2012-08-09 Thread Jiang Liu
On 2012-8-9 16:41, Tang Chen wrote: > Hi Liu ~ > > On 08/09/2012 03:40 PM, Jiang Liu wrote: >> Hi Tang, >> Thanks for testing. >> Currently there's a limitation that you need to insert acpihp_enum >> driver first. > > Sorry, I didn't make it clear. I did load acpihp_enum module first,

Re: [PATCH 1/3] dma-fence: dma-buf synchronization (v7)

2012-08-09 Thread Maarten Lankhorst
Hey Sumit, Op 08-08-12 08:35, Sumit Semwal schreef: > Hi Maarten, > > On 8 August 2012 00:17, Maarten Lankhorst > wrote: >> Op 07-08-12 19:53, Maarten Lankhorst schreef: >>> A dma-fence can be attached to a buffer which is being filled or consumed >>> by hw, to allow userspace to pass the buffer

Re: [PATCH] usb: otg: twl4030-usb: spin_unlock_irq in interrupt handler

2012-08-09 Thread Felipe Balbi
Hi, On Sat, Jul 21, 2012 at 11:40:18AM +0400, Denis Efremov wrote: > The replacement of spin_lock_irq/spin_unlock_irq pair in > twl4030_usb_linkstat function by > spin_lock_irqsave/spin_lock_irqrestore pair. > The twl4030_usb_linkstat function is called from twl4030_usb_irq > interrupt handler. Th

[PATCH] block: Potential null pointer dereference in pkt_generic_packet()

2012-08-09 Thread Marina Makienko
The function blk_get_request() can return NULL. It can lead to further error in pkt_generic_packet(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Marina Makienko --- drivers/block/pktcdvd.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff -

Re: [PATCH 1/5] [RFC] Add volatile range management code

2012-08-09 Thread Michel Lespinasse
On Fri, Jul 27, 2012 at 8:57 PM, John Stultz wrote: > v5: > * Drop intervaltree for prio_tree usage per Michel & > Dmitry's suggestions. Actually, I believe the ranges you need to track are non-overlapping, correct ? If that is the case, a simple rbtree, sorted by start-of-range address, would

Re: Using vanilla kernels headers to do backport testing -- issues with memcpy()

2012-08-09 Thread Sedat Dilek
On Thu, Aug 9, 2012 at 11:01 AM, Luis R. Rodriguez wrote: > On Thu, Aug 9, 2012 at 12:27 AM, Sedat Dilek wrote: >> I am not an English native but this sentence sounds a bit strange to >> me ("used" followed by "require" and double "Linux"?). >> I can imagine what you want to express but have no b

Re: [PATCH] mmc: sdio: Fix PM_SLEEP related build warnings

2012-08-09 Thread Rafael J. Wysocki
On Thursday, August 09, 2012, Thierry Reding wrote: > On Thu, Aug 09, 2012 at 11:27:02AM +0200, Rafael J. Wysocki wrote: > > On Thursday, August 09, 2012, Thierry Reding wrote: > > > Power management callbacks defined by SIMPLE_DEV_PM_OPS are only used if > > > the PM_SLEEP Kconfig symbol has been

RE: [PATCHv2 1/4] modem_shm: Add Modem Access Framework

2012-08-09 Thread Arun MURTHY
> On Wed, Aug 08, 2012 at 05:36:05AM +0200, Arun MURTHY wrote: > > > On Tue, Aug 07, 2012 at 12:24:28PM +0530, Arun Murthy wrote: > > > > Adds Modem Access Framework, which allows for registering platform > > > specific > > > > modem access mechanisms. The framework also exposes APIs for > > > > cl

Re: [PATCH] mmc: sdio: Fix PM_SLEEP related build warnings

2012-08-09 Thread Rafael J. Wysocki
On Thursday, August 09, 2012, Thierry Reding wrote: > Power management callbacks defined by SIMPLE_DEV_PM_OPS are only used if > the PM_SLEEP Kconfig symbol has been defined. If not, the compiler will > complain about them being unused. However, since the callback for this > driver doesn't do anyth

Re: [RFC PATCH 2/6] virtio/console: Add a failback for unstealable pipe buffer

2012-08-09 Thread Amit Shah
On (Thu) 09 Aug 2012 [18:24:58], Masami Hiramatsu wrote: > (2012/08/09 18:03), Amit Shah wrote: > > On (Tue) 24 Jul 2012 [11:37:18], Yoshihiro YUNOMAE wrote: > >> From: Masami Hiramatsu > >> > >> Add a failback memcpy path for unstealable pipe buffer. > >> If buf->ops->steal() fails, virtio-serial

Re: [RFC PATCH 2/6] virtio/console: Add a failback for unstealable pipe buffer

2012-08-09 Thread Avi Kivity
On 08/09/2012 12:55 PM, Amit Shah wrote: > On (Thu) 09 Aug 2012 [18:24:58], Masami Hiramatsu wrote: >> (2012/08/09 18:03), Amit Shah wrote: >> > On (Tue) 24 Jul 2012 [11:37:18], Yoshihiro YUNOMAE wrote: >> >> From: Masami Hiramatsu >> >> >> >> Add a failback memcpy path for unstealable pipe buffer

ext4fs error "ext4_mb_generate_buddy:741:group 16, 8160 clusters in bitmap, 4064 in gd" (with repro)

2012-08-09 Thread Paolo Bonzini
Here is how to reproduce it. It happens during fstrim. I found other occurrences of the error in the mailing list, but they were not related to trim so they may be something different. modprobe scsi_debug dev_size_mb=256 lbpws=1 dd if=/dev/zero of=/dev/sdb bs=1M fdisk /dev/sdb >> create a

Re: [PATCH v2 1/3] mfd: add lp8788 mfd driver

2012-08-09 Thread Mark Brown
On Thu, Aug 09, 2012 at 08:22:38AM +, Kim, Milo wrote: > TI LP8788 PMU supports regulators, battery charger, RTC, > ADC, backlight driver and current sinks. > Patch v2. > (a) For interrupt handling, use generic irq rather than irq-domain This seems like a very substantial step backwards, why

  1   2   3   4   5   6   7   >