Re: [PATCH v5 11/12] block: Add bio_clone_bioset()

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 11:52:51PM -0700, Tejun Heo wrote: > On Wed, Aug 08, 2012 at 07:56:10PM -0700, Kent Overstreet wrote: > > > So, bio_clone() loses its function comment. Also, does it even make > > > sense to call bio_clone() from fs_bio_set? > > > > I'll re add the function comment if you

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

2012-08-08 Thread Takashi Iwai
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 firmware if the patch= parameter is used to load a patch > file. This pat

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

2012-08-08 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. Signed-off-by: Thierry Reding --- drivers/mmc/core/sdio_bus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH] Consolidate bio_clone_bioset(), bio_kmalloc()

2012-08-08 Thread Tejun Heo
On Wed, Aug 08, 2012 at 07:38:11PM -0700, Kent Overstreet wrote: > So here's my initial stab at it. Tell me if you think this is too > contorted: At the first glance, looks okay to me. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

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

2012-08-08 Thread Tejun Heo
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 gfp_mask) > { > return bio_clone_bioset(bio, gfp_mask, BIO_KMAL

Re: [BUG] perf: sharing of cpuctx between core and ibs PMU causes problems

2012-08-08 Thread Yan, Zheng
On 08/09/2012 08:51 AM, Stephane Eranian wrote: > Hi, > > I ran into a problem on my AMD box whereby I would hit the > WARN_ON_ONCE(cpuctx->cgrp) in perf_cgroup_switch(). > > It took me a while to track this down. It turns out that the > list_for_each_entry_rcu() loop had multiple iterations. Tha

Re: [PATCH v5 11/12] block: Add bio_clone_bioset()

2012-08-08 Thread Tejun Heo
On Wed, Aug 08, 2012 at 07:56:10PM -0700, Kent Overstreet wrote: > > So, bio_clone() loses its function comment. Also, does it even make > > sense to call bio_clone() from fs_bio_set? > > I'll re add the function comment if you want, just for a single line > wrapper I don't know if it's worth the

[PATCH] backlight: lp855x: add FAST bit description for LP8556

2012-08-08 Thread Kim, Milo
LP8556 backlight driver supports fast refresh mode when exiting the low power mode. This bit can be configurable in the platform side. Signed-off-by: Milo(Woogyom) Kim --- include/linux/platform_data/lp855x.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux

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

2012-08-08 Thread Ren, Cloud
>-Original Message- >From: David Miller [mailto:da...@davemloft.net] >Sent: 2012年8月9日 14:18 >To: Ren, Cloud >Cc: j...@perches.com; net...@vger.kernel.org; linux-kernel@vger.kernel.org; >qca-linux-team; nic-devel; Huang, Xiong; hao-ran@canonical.com; Rodriguez, >Luis >Subject: Re: [PAT

3.5 kernel NULL pointer dereference net_tx_action

2012-08-08 Thread Jörg-Volker Peetz
Dear maintainers, with kernel 3.5 on debian x86_64 and wpa_supplicant 1.0 on an MSI laptop trying to start the wireless network adapter, results in a kernel oops: BUG: unable to handle kernel NULL pointer dereference at 0082 IP: [] net_tx_action+0xd0/0xd0 PGD 392aa067 PUD 390b7067 PMD

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

2012-08-08 Thread Thierry Reding
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 variants that have this second channel. As I don't have access to all the

Re: [PATCH] thermal: Fix potential NULL pointer accesses

2012-08-08 Thread Zhang Rui
On 三, 2012-08-08 at 23:25 -0700, Guenter Roeck wrote: > On Thu, Aug 09, 2012 at 08:44:55AM +0800, Zhang Rui wrote: > > On 二, 2012-08-07 at 22:36 -0700, Guenter Roeck wrote: > > > The type parameter in thermal_zone_device_register and > > > thermal_cooling_device_register can be NULL, indicating tha

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

2012-08-08 Thread Thierry Reding
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 firmware if the patch= parameter is used to load a patch file. This patch works around the problem by deferring the probe in such cases, whi

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

2012-08-08 Thread Tejun Heo
Hello, Kent. On Wed, Aug 08, 2012 at 06:19:28PM -0700, Kent Overstreet wrote: > If bio_split returned an error, it'd make the code more convoluted - > you'd have to do work on either the split or the original bio, and then > repeat the same check later when it's time to break out of the loop. I r

Re: [RFC] netconsole.txt: "nc" needs "-p" to specify the listening port

2012-08-08 Thread Dirk Gouders
Cong Wang writes: > On 08/03/2012 02:33 PM, Dirk Gouders wrote: >> >> From b3aec70d785d338b1b643fece6606cd32addaf0c Mon Sep 17 00:00:00 2001 >> From: Dirk Gouders >> Date: Thu, 2 Aug 2012 22:20:16 +0200 >> Subject: [PATCH] netconsole.txt: revision of examples for the receiver of >> kernel mess

[PATCH] gpio: Fix debug message in of_get_named_gpio_flags()

2012-08-08 Thread Thierry Reding
This was probably missed in the conversion done in commit 3d0f7cf ("gpio: Adjust of_xlate API to support multiple GPIO chips"). Signed-off-by: Thierry Reding --- drivers/gpio/gpiolib-of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio

Re: [dm-devel] [PATCH v2 2/2] dm: verity support data device offset (Linux 3.4.7)

2012-08-08 Thread Milan Broz
On 08/09/2012 02:40 AM, Wesley Miaw wrote: > On Aug 8, 2012, at 1:56 PM, Milan Broz wrote: > >> On 08/08/2012 10:46 PM, Wesley Miaw wrote: >> >>> I did modify veritysetup on my own so the format and verify >>> commands will work with regular files on disk instead of having >>> to mount through lo

[PATCH] HID: multitouch: Add support for eGalax 0x73f7

2012-08-08 Thread Thierry Reding
Signed-off-by: Thierry Reding --- drivers/hid/hid-ids.h| 1 + drivers/hid/hid-multitouch.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 5a91bf6..9614a65 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -270,6

Re: [PATCH v5 05/12] block: Kill bi_destructor

2012-08-08 Thread Tejun Heo
Hello, On Wed, Aug 8, 2012 at 11:12 PM, Kent Overstreet wrote: > But if it's a pointer to heap allocated memory, but the bio was embedded > in another struct? I've seen a fair number of instances of that (md, off > the top of my head). > > If you're sure that in a normal config the slab allocator

Re: [PATCH v5 03/12] block: Add bio_reset()

2012-08-08 Thread Tejun Heo
Hello, On Wed, Aug 8, 2012 at 11:06 PM, Kent Overstreet wrote: > On Wed, Aug 08, 2012 at 11:00:19PM -0700, Tejun Heo wrote: >> Anyways, understood. Can you *please* put some comment what bits are >> being preserved across reset then? Things like this aren't obvious at >> all and need ample expl

Re: [PATCH v2] gpio: Add Avionic Design N-bit GPIO expander support

2012-08-08 Thread Thierry Reding
On Sun, Aug 05, 2012 at 12:50:54PM +0200, Linus Walleij wrote: > On Mon, Jul 30, 2012 at 9:47 AM, Thierry Reding > wrote: > > On Sun, Jul 29, 2012 at 07:13:57PM +0200, Linus Walleij wrote: > >> On Mon, Jul 23, 2012 at 1:59 PM, Thierry Reding > >> wrote: > > >> > +- interrupt-controller: Marks th

Re: [PATCH] thermal: Fix potential NULL pointer accesses

2012-08-08 Thread Guenter Roeck
On Thu, Aug 09, 2012 at 08:44:55AM +0800, Zhang Rui wrote: > On 二, 2012-08-07 at 22:36 -0700, Guenter Roeck wrote: > > The type parameter in thermal_zone_device_register and > > thermal_cooling_device_register can be NULL, indicating that no sysfs > > attribute > > for the type should be created.

Re: [PATCH v2] perf script python: Correct handler check and spelling errors

2012-08-08 Thread Namhyung Kim
On Thu, 9 Aug 2012 13:46:13 +0800, Feng Tang wrote: > From efbf00591514aa1d6134a3b940dc627d1a7cc8f8 Mon Sep 17 00:00:00 2001 > From: Feng Tang > Date: Thu, 9 Aug 2012 12:50:56 +0800 > Subject: [PATCH] perf script python: Correct handler check and spelling errors > > Correct the checking for handle

Re: [PATCH net-next 0/7] sctp: network namespace support Part 2: per net tunables

2012-08-08 Thread David Miller
From: ebied...@xmission.com (Eric W. Biederman) Date: Tue, 07 Aug 2012 10:17:02 -0700 > Since I am motivated to get things done, and since there has been much > grumbling about my patches not implementing tunables, I have added > tunable support on top of my last patchset. > > I have performed ba

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

2012-08-08 Thread David Miller
From: "Ren, Cloud" Date: Thu, 9 Aug 2012 04:44:08 + > I only want to do some additional explanations to david. It makes nothing > with original patch. Stop this TOP POSTING, it's bad etiquette on a technical mailing list. Look at how other people write their email responses on this mailing

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

2012-08-08 Thread Bryan Wu
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 changes the one case that was > missed in the same way as t

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

2012-08-08 Thread David Miller
From: Joe Perches Date: Wed, 08 Aug 2012 21:09:42 -0700 > On Thu, 2012-08-09 at 02:27 +, Ren, Cloud wrote: >> Hi David, > [] >> The alx driver only supports two new nics(l1f/l2f) now. It doesn't >> supersede atl1c driver. >> Atl1c driver still supports old nics. > [] >> -Original Messag

Re: [PATCH v5 05/12] block: Kill bi_destructor

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 11:05:17PM -0700, Tejun Heo wrote: > Hello, > > On Wed, Aug 08, 2012 at 05:21:54PM -0700, Kent Overstreet wrote: > > > What's wrong with good ol' NULL? > > > > If it's NULL, we can't distinguish between bios where that field wasn't > > set (i.e. bios that were statically a

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

2012-08-08 Thread David Miller
From: "Ren, Cloud" Date: Thu, 9 Aug 2012 02:27:35 + > The alx driver only supports two new nics(l1f/l2f) now. It doesn't supersede > atl1c driver. > Atl1c driver still supports old nics. There is no worse act than quoting a huge patch, only to provide two lines of text. Doing so is an eno

Re: [PATCH v5 03/12] block: Add bio_reset()

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 11:00:19PM -0700, Tejun Heo wrote: > Anyways, understood. Can you *please* put some comment what bits are > being preserved across reset then? Things like this aren't obvious at > all and need ample explanation. I did, in the header: #define BIO_RESET_BITS 12 /* Fl

Re: [PATCH v5 05/12] block: Kill bi_destructor

2012-08-08 Thread Tejun Heo
Hello, On Wed, Aug 08, 2012 at 05:21:54PM -0700, Kent Overstreet wrote: > > What's wrong with good ol' NULL? > > If it's NULL, we can't distinguish between bios where that field wasn't > set (i.e. bios that were statically allocated somewhere) from bios that > were allocated by bio_kmalloc(). >

Re: [PATCH v5 03/12] block: Add bio_reset()

2012-08-08 Thread Tejun Heo
Hello, On Wed, Aug 08, 2012 at 05:07:11PM -0700, Kent Overstreet wrote: > > > +void bio_reset(struct bio *bio) > > > +{ > > > + unsigned long flags = bio->bi_flags & (~0UL << BIO_RESET_BITS); > > > > How many flags are we talking about? If there aren't too many, I'd > > prefer explicit BIO_FLAGS

[GIT PULL] DMA-mapping fixups for v3.6-rc2

2012-08-08 Thread Marek Szyprowski
Hi Linus, I would like to ask for pulling a set of fixup patches for ARM dma-mapping extensions merged in v3.6-rc1. The following changes since commit 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee: Linux 3.6-rc1 (2012-08-02 16:38:10 -0700) with the top-most commit d9e0d149b5dcc2ef4688afc572b9906bc

[PATCH] bio: Fix potential memory leak in bio_find_or_create_slab()

2012-08-08 Thread Alexey Khoroshilov
Do not leak memory by updating pointer with potentially NULL realloc return value. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- fs/bio.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fs/bio.c b/fs/bio.c

Re: [PATCH v5 5/5] perf script: Add event_analyzing_sample.py as a sample for general event handling

2012-08-08 Thread Namhyung Kim
On Thu, 9 Aug 2012 13:28:43 +0800, Feng Tang wrote: > On Thu, 9 Aug 2012 14:19:29 +0900 >> Btw, by any chance do you plan to add support to callchains? I think >> it's very nice to have. > > No, it's not on the plan list :). My next plan is to integrate the perf > script to the perf report framewor

[PATCH v2] perf script python: Correct handler check and spelling errors

2012-08-08 Thread Feng Tang
>From efbf00591514aa1d6134a3b940dc627d1a7cc8f8 Mon Sep 17 00:00:00 2001 From: Feng Tang Date: Thu, 9 Aug 2012 12:50:56 +0800 Subject: [PATCH] perf script python: Correct handler check and spelling errors Correct the checking for handler returned by PyDict_GetItemString(), also fix some spelling e

Re: [PATCH] pwm: Add missing static storage class specifiers in core.c file

2012-08-08 Thread Thierry Reding
On Thu, Aug 02, 2012 at 12:32:42PM +0530, Sachin Kamat wrote: > Fixes the following sparse warnings: > drivers/pwm/core.c:152:6: warning: > symbol 'of_pwmchip_add' was not declared. Should it be static? > drivers/pwm/core.c:165:6: warning: > symbol 'of_pwmchip_remove' was not declared. Should it be

Re: [PATCH v2] pwm: Add support for configuring the PWM polarity

2012-08-08 Thread Thierry Reding
On Tue, Jul 24, 2012 at 07:35:32PM +0530, Philip, Avinash wrote: > Some hardware supports inverting the polarity of the PWM signal. This > commit adds support to the PWM framework to allow users of the PWM API > to configure the polarity. Note that in order to reduce complexity, > changing the pola

Re: [PATCH v2] pwm: add devm_pwm_get() and devm_pwm_put()

2012-08-08 Thread Thierry Reding
On Wed, Aug 01, 2012 at 07:20:58PM +0900, Alexandre Courbot wrote: > Add resource managed variants of pwm_get() and pwm_put() for > convenience. Code is largely inspired by the equivalent devm functions > of the regulator framework. > > Signed-off-by: Alexandre Courbot Applied, with minor editor

Re: [PATCH v2 1/3] pwm: samsung: add missing device pointer to struct pwm_chip

2012-08-08 Thread Thierry Reding
On Fri, Aug 03, 2012 at 03:45:56PM +0900, Jingoo Han wrote: > This patch adds missing device pointer to struct pwm_chip. If the > device pointer is NULL, pwmchip_add() will return error. > > Signed-off-by: Jingoo Han Thanks, applied to for-next and master. Thierry pgpACRUwaGRj5.pgp Descriptio

Re: [PATCH] pwm: Remove a redundant error message when devm_request_and_ioremap fails

2012-08-08 Thread Thierry Reding
On Fri, Aug 03, 2012 at 09:43:54PM +0800, Axel Lin wrote: > The implementation in devm_request_and_ioremap() already shows error message, > so no need to show dev_err again if devm_request_and_ioremap() fails. > > Signed-off-by: Axel Lin > Cc: Stephen Warren > Cc: Philip, Avinash > --- Applied

Re: [PATCH] perf script python: Correct handler check and spelling errors

2012-08-08 Thread Namhyung Kim
On Thu, 9 Aug 2012 13:24:01 +0800, Feng Tang wrote: > From 3332f03c6e8f641e26430a25704c364c2f30d833 Mon Sep 17 00:00:00 2001 > From: Feng Tang > Date: Thu, 9 Aug 2012 12:50:56 +0800 > Subject: [PATCH] perf script python: Correct handler check and spelling errors > > Correct the checking for handle

Re: PROBLEM: snd_hda_intel bug during boot

2012-08-08 Thread Alexei Kornienko
Hi, Yes it used to work with 2.6 kernel. Ok I will do a bisect and try to find the source of the problem. I'll notify you if I'll find something but don't expect it to be fast cause the problem happens on my home laptop (pretty old and rusty :) ) and I also have a lot of other stuff to do. Regard

Re: [PATCH v5 5/5] perf script: Add event_analyzing_sample.py as a sample for general event handling

2012-08-08 Thread Feng Tang
On Thu, 9 Aug 2012 14:19:29 +0900 Namhyung Kim wrote: > Hi, > > On Thu, 9 Aug 2012 12:30:07 +0800, Feng Tang wrote: > > Hi Namhyung, > > > > Many thanks for your valuable comments, I'll fold the fixes into an > > incremental patch. > > > > On Thu, 9 Aug 2012 10:30:34 +0900 > > Namhyung Kim wrot

Re: [PATCH] dma-buf: add reference counting for exporter module

2012-08-08 Thread Sumit Semwal
Hi Tomasz, On 8 August 2012 19:36, Daniel Vetter wrote: > On Wed, Aug 08, 2012 at 03:53:10PM +0200, Tomasz Stanislawski wrote: >> Hi Laurent, >> >> On 08/08/2012 03:35 PM, Laurent Pinchart wrote: >> > Hi Tomasz, >> > >> > Thanks for the patch. Thanks for the patch; may I ask you to split it into

RE: [PATCH 4/6] ARM: s3c24xx: use new PWM driver

2012-08-08 Thread Kukjin Kim
Arnd Bergmann wrote: > > On Wednesday 08 August 2012, Kukjin Kim wrote: > > > diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach- > s3c24xx/Kconfig > > index e249611..d56b0f7 100644 > > --- a/arch/arm/mach-s3c24xx/Kconfig > > +++ b/arch/arm/mach-s3c24xx/Kconfig > > @@ -483,7 +483,7 @@ con

[PATCH] perf script python: Correct handler check and spelling errors

2012-08-08 Thread Feng Tang
>From 3332f03c6e8f641e26430a25704c364c2f30d833 Mon Sep 17 00:00:00 2001 From: Feng Tang Date: Thu, 9 Aug 2012 12:50:56 +0800 Subject: [PATCH] perf script python: Correct handler check and spelling errors Correct the checking for handler returned by PyDict_GetItemString(), also fix some spelling e

[RFC]block: disable discard request merge temporarily

2012-08-08 Thread Shaohua Li
The SCSI discard request merge never worked, and looks no solution for in future, let's disable it temporarily. Signed-off-by: Shaohua Li diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 4e72a9d..0e6efb1 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -601,7

Re: [PATCH v5 5/5] perf script: Add event_analyzing_sample.py as a sample for general event handling

2012-08-08 Thread Namhyung Kim
Hi, On Thu, 9 Aug 2012 12:30:07 +0800, Feng Tang wrote: > Hi Namhyung, > > Many thanks for your valuable comments, I'll fold the fixes into an > incremental patch. > > On Thu, 9 Aug 2012 10:30:34 +0900 > Namhyung Kim wrote: > >> On Wed, 8 Aug 2012 17:57:55 +0800, Feng Tang wrote: >> > Currently

Re: What happened to TRIM support for raid linear/0/1/10?

2012-08-08 Thread Shaohua Li
2012/8/9 NeilBrown : > On Wed, 8 Aug 2012 13:10:51 + (GMT) Holger Kiehl > wrote: > >> Hello, >> >> I have been using the patches posted by Shaohua Li on 16th March 2012: >> >> http://lkml.indiana.edu/hypermail/linux/kernel/1203.2/00048.html >> >> for several month on a very busy file serve

Re: RFC: mutex: hung tasks on SMP platforms with asm-generic/mutex-xchg.h

2012-08-08 Thread Nicolas Pitre
On Tue, 7 Aug 2012, Will Deacon wrote: > Hello, > > ARM recently moved to asm-generic/mutex-xchg.h for its mutex implementation > after our previous implementation was found to be missing some crucial > memory barriers. However, I'm seeing some problems running hackbench on > SMP platforms due to

v3.5 Oops in i2c_algo_bit.c:bit_xfer+0x23/0x870: i915 or i2c?

2012-08-08 Thread George Spelvin
I'm trying to run a v3.5 kernel (plus some -stable patches from Ted Ts'o) on an Ubuntu system. Things are generally working except for the following Oops on each boot, which prevents the graphics system from loading. [ 36.187972] [drm] Initialized drm 1.1.0 20060810 [ 36.230306] kvm: VM_EXIT_

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

2012-08-08 Thread Ren, Cloud
Hi Jeo I only want to do some additional explanations to david. It makes nothing with original patch. Thanks cloud -Original Message- From: Joe Perches [mailto:j...@perches.com] Sent: 2012年8月9日 12:10 To: Ren, Cloud Cc: da...@davemloft.net; net...@vger.kernel.org; linux-kernel@vger.kernel

Re: [PATCH 2/5] x86/uprobes: implement x86 specific arch_uprobe_*_step

2012-08-08 Thread Ananth N Mavinakayanahalli
On Wed, Aug 08, 2012 at 04:53:45PM +0200, Oleg Nesterov wrote: > On 08/08, Sebastian Andrzej Siewior wrote: ... > >> ->insn[0] doesn't look right, we should skip the prefixes. insn_init() insn_get_opcode() if (OPCODE1() == 0x9d) is always the right way of doing it. ... > And in any case it wo

[RFC PATCH] mm: introduce N_LRU_MEMORY to distinguish between normal and movable memory

2012-08-08 Thread Hanjun Guo
From: Wu Jianguo Hi all, Now, We have node masks for both N_NORMAL_MEMORY and N_HIGH_MEMORY to distinguish between normal and highmem on platforms such as x86. But we still don't have such a mechanism to distinguish between "normal" and "movable" memory. As suggested by Christoph Lameter in th

Re: [Regression, post-3.5] System suspend broken on the Mackerel board

2012-08-08 Thread Paul Mundt
On Wed, Aug 08, 2012 at 11:23:04AM +0200, Rafael J. Wysocki wrote: > On Tuesday, August 07, 2012, Paul Mundt wrote: > > On Sun, Aug 05, 2012 at 12:02:43AM +0200, Rafael J. Wysocki wrote: > > > On Wednesday, August 01, 2012, Paul Mundt wrote: > > > > Turns out we can just collapse the probe/init stu

Re: [PATCH v5 5/5] perf script: Add event_analyzing_sample.py as a sample for general event handling

2012-08-08 Thread Feng Tang
Hi Namhyung, Many thanks for your valuable comments, I'll fold the fixes into an incremental patch. On Thu, 9 Aug 2012 10:30:34 +0900 Namhyung Kim wrote: > On Wed, 8 Aug 2012 17:57:55 +0800, Feng Tang wrote: > > Currently only trace point events are supported in perf/python script, > > the fir

[GIT PULL] sh updates for 3.6-rc2

2012-08-08 Thread Paul Mundt
The following changes since commit f4ba394c1b02e7fc2179fda8d3941a5b3b65efb6: Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2012-08-08 20:06:43 +0300) are available in the git repository at: git://github.com/pmundt/linux-sh tags/sh-for-linus for you to fetch changes up to

Re: [RFC PATCH 3/4] ftrace: Do not test frame pointers if -mfentry is used

2012-08-08 Thread H. Peter Anvin
On 08/08/2012 08:45 PM, Linus Torvalds wrote: > > Btw, it might be lovely to consider the concept of "Kconfig variables > set by shell-scripts". > > We currently have a metric sh*t-ton of Makefile magic for testing > various things like this, and integrating it into Kconfig might be a > good idea

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

2012-08-08 Thread Joe Perches
On Thu, 2012-08-09 at 02:27 +, Ren, Cloud wrote: > Hi David, [] > The alx driver only supports two new nics(l1f/l2f) now. It doesn't supersede > atl1c driver. > Atl1c driver still supports old nics. [] > -Original Message- > From: Ren, Cloud > Sent: 2012年8月9日 18:15 [] > This driver s

Re: [PATCH v2] gpio/omap: add *remove* callback in platform_driver

2012-08-08 Thread DebBarma, Tarun Kanti
On Wed, Aug 8, 2012 at 10:40 PM, Kevin Hilman wrote: > Tarun Kanti DebBarma writes: > >> Add *remove* callback so that necessary cleanup operations are >> performed when device is unregistered. The device is deleted >> from the list and associated clock handle is released by >> calling clk_put()

Re: [RFC PATCH 3/4] ftrace: Do not test frame pointers if -mfentry is used

2012-08-08 Thread Steven Rostedt
On Thu, 2012-08-09 at 06:45 +0300, Linus Torvalds wrote: > On Wed, Aug 8, 2012 at 3:49 PM, Steven Rostedt wrote: > > > > No, CONFIG_HAVE_FENTRY just means fentry is supported, it does not mean > > that it is being used. It only gets used if CC_USING_FENTRY is set, > > which is set by the Makefile

Re: [RFC PATCH 3/4] ftrace: Do not test frame pointers if -mfentry is used

2012-08-08 Thread Linus Torvalds
On Wed, Aug 8, 2012 at 3:49 PM, Steven Rostedt wrote: > > No, CONFIG_HAVE_FENTRY just means fentry is supported, it does not mean > that it is being used. It only gets used if CC_USING_FENTRY is set, > which is set by the Makefile at time of compile. Btw, it might be lovely to consider the concep

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

2012-08-08 Thread Luis R. Rodriguez
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/build/scripts/genksyms/genksyms <-- snip --> >> Bleh: >> >> 000

Re: What happened to TRIM support for raid linear/0/1/10?

2012-08-08 Thread NeilBrown
On Wed, 8 Aug 2012 13:10:51 + (GMT) Holger Kiehl wrote: > Hello, > > I have been using the patches posted by Shaohua Li on 16th March 2012: > > http://lkml.indiana.edu/hypermail/linux/kernel/1203.2/00048.html > > for several month on a very busy file server (serving 9 million files > w

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

2012-08-08 Thread Kent Overstreet
On Wed, Aug 8, 2012 at 8:19 PM, Kent Overstreet wrote: > In particular, if this change breaks anything then the new bio_split() > _will_ break things. > > We need to be clear about our interfaces; in this case bi_idx and > bi_vcnt, in particular. Either this is a safe change, or it's not. If > no

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

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 04:47:46PM -0700, Muthu Kumar wrote: > Tejun, > > This is changing the semantics of the clone. Sorry, I missed this > thread and replied separately. But anyway, replying it again here: > > > On Wed, Aug 8, 2012 at 4:28 PM, Tejun Heo wrote: > > On Mon, Aug 06, 2012 at 07:

Re: [ 040/122] batman-adv: fix skb->data assignment

2012-08-08 Thread Ben Hutchings
On Tue, 2012-08-07 at 15:25 -0700, Greg Kroah-Hartman wrote: > From: Greg KH > > 3.5-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Antonio Quartulli > > commit d2b6cc8e460494251442a877fcbc150faa175b4f upstream. [...] This is a duplic

linux-next: Tree for Aug 9

2012-08-08 Thread Stephen Rothwell
Hi all, Changes since 20120807: Renamed tree: s5p to samsung The osd tree gained a conflict against the nfs tree. The tty tree still has its build failures for which I have disabled 2 staging drivers and applied a patch. It lost its conflicts. I have still reverted 3 commits from the signal t

RE: [PATCH 1/1] proc: add /proc/pid/shmaps

2012-08-08 Thread Hugh Dickins
On Thu, 9 Aug 2012, Ren, Qiaowei wrote: > On Wed, 8 Aug 2012, David Rientjes wrote: > > On Wed, 8 Aug 2012, Qiaowei Ren wrote: > > > > > Add a shmaps entry to /proc/pid: show information about shared memory in > > > an address space. > > > > > > People that use shared memory and want to perform

Re: [PATCH 11/11] perf scripts python: Add event_analyzing_sample.py as a sample for general event handling

2012-08-08 Thread Namhyung Kim
Hi Arnaldo and Ingo, On Wed, 8 Aug 2012 14:13:48 -0300, Arnaldo Carvalho de Melo wrote: > From: Feng Tang > > Currently only trace point events are supported in perf/python script, > the first 3 patches of this serie add the support for all types of > events. This script is just a simple sample

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

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 04:30:07PM -0700, Tejun Heo wrote: > Hello, > > On Mon, Aug 06, 2012 at 03:08:41PM -0700, Kent Overstreet wrote: > > @@ -459,10 +460,10 @@ void __bio_clone(struct bio *bio, struct bio *bio_src) > > bio->bi_sector = bio_src->bi_sector; > > bio->bi_bdev = bio_src->bi_

Re: [RFC PATCH 3/4] ftrace: Do not test frame pointers if -mfentry is used

2012-08-08 Thread Masami Hiramatsu
(2012/08/08 21:49), Steven Rostedt wrote: > On Wed, 2012-08-08 at 13:34 +0900, Masami Hiramatsu wrote: >> >>> -#ifdef CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST >>> +#if defined(CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST) && >>> !defined(CC_USING_FENTRY) >> >> I think CONFIG_HAVE_FENTRY would better unselect >>

Re: [PATCH v5 11/12] block: Add bio_clone_bioset()

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 04:21:20PM -0700, Tejun Heo wrote: > On Mon, Aug 06, 2012 at 03:08:40PM -0700, Kent Overstreet wrote: > > This consolidates some code, and will help in a later patch changing how > > bio cloning works. > > I think it would be better to introduce bio_clone*() functions in a

[PATCH] Consolidate bio_clone_bioset(), bio_kmalloc()

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 04:15:52PM -0700, Tejun Heo wrote: > > +struct bio *bio_clone_kmalloc(struct bio *bio, gfp_t gfp_mask) > > +{ > > + struct bio *b = bio_kmalloc(gfp_mask, bio->bi_max_vecs); > > Can't we use %NULL bioset as an indication to allocate from kmalloc > instead of duping interfa

Re: [dm-devel] [PATCH v2 1/2] dm: verity support data device offset (Linux 3.4.7)

2012-08-08 Thread Alasdair G Kergon
On Thu, Aug 09, 2012 at 12:40:22AM +, Wesley Miaw wrote: > Apologies if the version increment is incorrect; I was not sure if the minor > or patch number should be incremented. I assume the different version number > is > what would be used to detect if the data offset option is supported. Tha

[PATCHv2 1/8] arm: vt8500: Add device tree files for VIA/Wondermedia SoC's

2012-08-08 Thread Tony Prisk
Add device tree files for VT8500, WM8505 and WM8650 SoC's and reference boards. Signed-off-by: Tony Prisk --- arch/arm/boot/dts/vt8500-bv07.dts | 31 + arch/arm/boot/dts/vt8500.dtsi | 99 + arch/arm/boot/dts/wm8505-ref.dts | 31 + arch/arm/b

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

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 04:15:52PM -0700, Tejun Heo wrote: > On Mon, Aug 06, 2012 at 03:08:39PM -0700, Kent Overstreet wrote: > > How about the following? > > There was no API to kmalloc bio and clone and osdblk was using > explicit bio_kmalloc() + __bio_clone(). (my guess here) As this is > inc

[PATCH] VFS: d_obtain_alias needs to use "/" as default name.

2012-08-08 Thread NeilBrown
NFS appears to use d_obtain_alias() to create the root dentry rather than d_make_root. This can cause 'prepend_path()' to complain that the root has a weird name if an NFS filesystem is lazily unmounted. e.g. if "/mnt" is an NFS mount then { cd /mnt; umount -l /mnt ; ls -l /proc/self/cwd; } wi

[PATCHv2 0/8] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-08 Thread Tony Prisk
This patchset updates arch-vt8500 to devicetree and removes all the old-style code. Support for WM8650 has also been added. Example dts/dtsi files are given for the three currently supported models. Major changes: GPIO code has been converted to a platform_device and rewritten as WM8505 support

[PATCHv2 2/8] rtc: vt8500: Add devicetree support for vt8500-rtc

2012-08-08 Thread Tony Prisk
Signed-off-by: Tony Prisk --- drivers/rtc/rtc-vt8500.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c index 9e94fb1..07bf193 100644 --- a/drivers/rtc/rtc-vt8500.c +++ b/drivers/rtc/rtc-vt8500.c @@ -23,6 +23,7 @@

[PATCHv2 5/8] video: vt8500: Add devicetree support for vt8500-fb and wm8505-fb

2012-08-08 Thread Tony Prisk
Update vt8500-fb, wm8505-fb and wmt-ge-rops to support device tree bindings. Small change in wm8505-fb.c to support WM8650 framebuffer color format. Signed-off-by: Tony Prisk --- drivers/video/Kconfig |6 +-- drivers/video/vt8500lcdfb.c | 79 ++- drive

[PATCHv2 4/8] usb: vt8500: Add devicetree support for vt8500-ehci and -uhci.

2012-08-08 Thread Tony Prisk
Add devicetree support for vt8500-ehci. Convert vt8500-uhci to a generic non-pci platform-uhci with device tree support. Signed-off-by: Tony Prisk --- drivers/usb/host/Kconfig |4 +- drivers/usb/host/ehci-vt8500.c | 25 -- drivers/usb/host/uhci-hcd.c |5 ++ drivers/u

[PATCHv2 8/8] arm: vt8500: gpio: Devicetree support for arch-vt8500

2012-08-08 Thread Tony Prisk
Converted the existing arch-vt8500 gpio to a platform_device. Added support for WM8505 and WM8650 GPIO controllers. Signed-off-by: Tony Prisk --- drivers/gpio/Kconfig |6 + drivers/gpio/Makefile |1 + drivers/gpio/gpio-vt8500.c | 313 ++

[PATCHv2 7/8] arm: vt8500: doc: Add device tree bindings for arch-vt8500 devices

2012-08-08 Thread Tony Prisk
Bindings for gpio, interrupt controller, power management controller, timer, realtime clock, serial uart, ehci and uhci controllers and framebuffer controllers used on the arch-vt8500 platform. Framebuffer binding also specifies a 'display' node which is required for determining the lcd panel data

[PATCHv2 3/8] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-08 Thread Tony Prisk
Signed-off-by: Tony Prisk --- drivers/tty/serial/vt8500_serial.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/vt8500_serial.c b/drivers/tty/serial/vt8500_serial.c index 2be006f..dee6715 100644 --- a/drivers/tty/serial/vt8500_serial.c +++ b/dri

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

2012-08-08 Thread Minchan Kim
Hi Rafael, 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 numbe

Re: [ 029/109] batman-adv: fix skb->data assignment

2012-08-08 Thread Ben Hutchings
On Tue, 2012-08-07 at 15:34 -0700, Greg Kroah-Hartman wrote: > From: Greg KH > > 3.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Antonio Quartulli > > commit d2b6cc8e460494251442a877fcbc150faa175b4f upstream. [...] This was applied

Re: [dm-devel] [PATCH v2 2/2] dm: verity support data device offset (Linux 3.4.7)

2012-08-08 Thread Alasdair G Kergon
On Thu, Aug 09, 2012 at 12:40:23AM +, Wesley Miaw wrote: > This isn't as polished because I pretty much just added support to do what I > needed. I'm not sure if the LKML is the right place to post, so let me know if > I should send this somewhere else. cryptsetup patches are best sent to the

Re: [PATCH v6 3/3] mm: add vm event counters for balloon pages compaction

2012-08-08 Thread Rik van Riel
On 08/08/2012 06:53 PM, Rafael Aquini wrote: This patch is only for testing report purposes and shall be dropped in case of the rest of this patchset getting accepted for merging. I wonder if it would make sense to just keep these statistics, so if a change breaks balloon migration in the futur

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

2012-08-08 Thread Kent Overstreet
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, gfp, bs); > > + bio_integrity_trim(ret, 0, bio_sectors(ret));

Re: [PATCH v6 2/3] virtio_balloon: introduce migration primitives to balloon pages

2012-08-08 Thread Rik van Riel
On 08/08/2012 06:53 PM, 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 transparent huge pages that c

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

2012-08-08 Thread Rik van Riel
On 08/08/2012 06:53 PM, 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 transparent huge pages that c

Re: [PATCH v5 5/5] perf script: Add event_analyzing_sample.py as a sample for general event handling

2012-08-08 Thread Namhyung Kim
On Wed, 8 Aug 2012 17:57:55 +0800, Feng Tang wrote: > Currently only trace point events are supported in perf/python script, > the first 3 patches of this serie add the support for all types of s/serie/series/ > events. This script is just a simple sample to show how to gather the > basic inform

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

2012-08-08 Thread Minchan Kim
Hi Mel, Just one questoin below. On Wed, Aug 08, 2012 at 08:08:42PM +0100, Mel Gorman wrote: > While compaction is migrating pages to free up large contiguous blocks for > allocation it races with other allocation requests that may steal these > blocks or break them up. This patch alters direct c

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

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 03:58:39PM -0700, Tejun Heo wrote: > Hello, > > On Mon, Aug 06, 2012 at 03:08:37PM -0700, Kent Overstreet wrote: > > /** > > + * bio_split - split a bio > > + * @bio: bio to split > > + * @sectors: number of sectors to split from the front of @bio > > + * @gfp: g

Re: [PATCH v5 4/5] perf script: Add a python library EventClass.py

2012-08-08 Thread Namhyung Kim
On Wed, 8 Aug 2012 17:57:54 +0800, Feng Tang wrote: > This library defines several class types for perf events which could > help to better analyze the event samples. Currently there are just a > few classes, PerfEvent is the base class for all perf events, PebsEvent > is a HW base Intel x86 PEBS

Re: [PATCH v5 3/5] perf script/python: Pass event/thread/dso name and symbol info to event handler in python

2012-08-08 Thread Namhyung Kim
On Wed, 8 Aug 2012 17:57:53 +0800, Feng Tang wrote: > Also as suggested by Arnaldo, pack all these parameters to a dictionary, > which is more expandable for adding new parameters while keeping the > compatibility for old scripts. > Just minor nits. > Signed-off-by: Feng Tang > Cc: David Ahern

Re: [PATCH v5 1/5] perf script: Add general python handler to process non-tracepoint events

2012-08-08 Thread Namhyung Kim
Hi, Feng On Wed, 8 Aug 2012 17:57:51 +0800, Feng Tang wrote: > This patch just follows Robert Richter's idea and the commit 37a058ea0 > "perf script: Add generic perl handler to process events" > to similarly add a python handler for general events other than tracepoints. > > For non-tracep

[BUG] perf: sharing of cpuctx between core and ibs PMU causes problems

2012-08-08 Thread Stephane Eranian
Hi, I ran into a problem on my AMD box whereby I would hit the WARN_ON_ONCE(cpuctx->cgrp) in perf_cgroup_switch(). It took me a while to track this down. It turns out that the list_for_each_entry_rcu() loop had multiple iterations. That's normal, we have CPU PMU and IBS PMU. But what caused the

  1   2   3   4   5   6   7   >