[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

[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

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

[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

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

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

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

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

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

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

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.

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

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 @@

[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

[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 @@

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

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

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:

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;

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

[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

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

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

[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

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

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

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

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 >

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

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

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

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 =

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

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.

[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 +

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 >

[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; }

[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 ++-

[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 ++

[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

[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 +++

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

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

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

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

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

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

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

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

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:

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

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

[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

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

2012-08-08 Thread Ren, Qiaowei
Thanks for your reply. There are so many contents in /proc/pid/maps, and usually only a very small minority of those are about shared memory in address space of every process. So I hope that a new file maybe provide some convenience. Could you tell me how to get such information except

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-08 Thread Namhyung Kim
On Wed, 8 Aug 2012 11:24:34 +0400, Andrey Wagin wrote: > 2012/8/8 Namhyung Kim : >> On Wed, 8 Aug 2012 09:02:18 +0400, Andrey Wagin wrote: >>> 2012/8/8 Namhyung Kim : > > $ ./perf record -e sched:sched_stat_sleep -e sched:sched_switch \ > -e sched:sched_process_exit -gP

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

2012-08-08 Thread Zhang Rui
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. Only call strlen() and strcpy() on type if it > is > not NULL. > >

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

2012-08-08 Thread Wesley Miaw
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 loop >> devices. > > Which veritysetup? In upstream

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

2012-08-08 Thread Wesley Miaw
On Aug 8, 2012, at 1:31 PM, Milan Broz wrote: > On 08/08/2012 08:46 PM, Mikulas Patocka wrote: > >> The problem with the patch is that it changes interface to the userspace >> tool. The userspace tool veritysetup already exists in recent cryptsetup >> package, so we can't change the interface

Re: [PATCH] perf: Add a new sort order: SORT_INCLUSIVE (v6)

2012-08-08 Thread Namhyung Kim
Hi, Arun On Wed, 8 Aug 2012 12:16:30 -0700, Arun Sharma wrote: > On 3/30/12 10:43 PM, Arun Sharma wrote: >> [ Meant to include v6 ChangeLog as well. Technical difficulties.. ] >> >> v6 ChangeLog: >> >> rebased to tip:perf/core and fixed a minor problem in computing >> the total period in

Re: [PATCH v5 01/12] block: Generalized bio pool freeing

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 03:25:15PM -0700, Tejun Heo wrote: > On Mon, Aug 06, 2012 at 03:08:30PM -0700, Kent Overstreet wrote: > > @@ -422,7 +409,11 @@ void bio_put(struct bio *bio) > > if (atomic_dec_and_test(>bi_cnt)) { > > bio_disassociate_task(bio); > > bio->bi_next

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

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 03:22:23PM -0700, Tejun Heo wrote: > Hello, > > On Mon, Aug 06, 2012 at 03:08:34PM -0700, Kent Overstreet wrote: > > Now that we've got generic code for freeing bios allocated from bio > > pools, this isn't needed anymore. > > > > This also changes the semantics of

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

2012-08-08 Thread Kent Overstreet
On Mon, Aug 06, 2012 at 11:19:21PM -0400, Mike Snitzer wrote: > On Mon, Aug 06 2012 at 6:08pm -0400, > Kent Overstreet wrote: > > > Now that we've got generic code for freeing bios allocated from bio > > pools, this isn't needed anymore. > > > > This also changes the semantics of bio_free() a

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

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

Re: [PATCH v5 04/12] pktcdvd: Switch to bio_kmalloc()

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 03:13:59PM -0700, Tejun Heo wrote: > Hello, > > On Mon, Aug 06, 2012 at 03:08:33PM -0700, Kent Overstreet wrote: > > This is prep work for killing bi_destructor - previously, pktcdvd had > > its own pkt_bio_alloc which was basically duplication bio_kmalloc(), > >

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

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 03:11:29PM -0700, Tejun Heo wrote: > Hello, > > On Mon, Aug 06, 2012 at 03:08:32PM -0700, Kent Overstreet wrote: > > Reusing bios is something that's been highly frowned upon in the past, > > but driver code keeps doing it anyways. If it's going to happen anyways, > > we

linux-next: manual merge of the osd tree with the nfs tree

2012-08-08 Thread Stephen Rothwell
Hi Boaz, Today's linux-next merge of the osd tree got a conflict in fs/nfs/nfs4proc.c between commit 47fbf7976e0b ("NFSv4.1: Remove a bogus BUG_ON() in nfs4_layoutreturn_done") from the nfs tree and commit d8e8b68405db ("pnfs: Don't BUG on info received from Server") from the osd tree. I just

Re: [PATCH] x86/pci: Allow x86 platforms to use translation offsets

2012-08-08 Thread Yinghai Lu
On Wed, Aug 8, 2012 at 4:42 PM, wrote: > From: Charlie Mear > > The memory range descriptors in the _CRS control method contain an > address translation offset for host bridges. This value is used to > translate addresses across the bridge. The support to use _TRA values > is present for

Re: NULL pointer dereference in selinux_ip_postroute_compat

2012-08-08 Thread Casey Schaufler
On 8/8/2012 2:54 PM, Eric Dumazet wrote: By the way, once this proved to be an issue that involved more than just SELinux it needed to go onto the LSM list as well. > On Wed, 2012-08-08 at 16:46 -0400, Paul Moore wrote: >> On Wednesday, August 08, 2012 10:32:52 PM Eric Dumazet wrote: >>> On Wed,

Re: [PATCH v5 02/12] dm: Use bioset's front_pad for dm_rq_clone_bio_info

2012-08-08 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 03:06:12PM -0700, Tejun Heo wrote: > Hello, > > On Mon, Aug 06, 2012 at 03:08:31PM -0700, Kent Overstreet wrote: > > Previously, dm_rq_clone_bio_info needed to be freed by the bio's > > destructor to avoid a memory leak in the blk_rq_prep_clone() error path. > > This gets

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

2012-08-08 Thread Minchan Kim
On Wed, Aug 08, 2012 at 09:51:12AM +0100, Mel Gorman wrote: > On Wed, Aug 08, 2012 at 05:27:38PM +0900, Minchan Kim wrote: > > On Wed, Aug 08, 2012 at 08:55:26AM +0100, Mel Gorman wrote: > > > On Wed, Aug 08, 2012 at 10:48:24AM +0900, Minchan Kim wrote: > > > > Hi Mel, > > > > > > > > Just out of

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

2012-08-08 Thread Muthu Kumar
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:16:33PM -0400, Mikulas Patocka wrote: >> Hi Kent >> >> When you change the

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

2012-08-08 Thread Tejun Heo
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_bdev; > bio->bi_flags |= 1 << BIO_CLONED; > +

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

2012-08-08 Thread Tejun Heo
On Mon, Aug 06, 2012 at 07:16:33PM -0400, Mikulas Patocka wrote: > Hi Kent > > When you change the semantics of an exported function, rename that > function. There may be external modules that use __bio_clone and this > change could silently introduce bugs in them. > > Otherwise, the patchset

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

2012-08-08 Thread Tejun Heo
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 separate patch and convert the users in a different one. > /** > -

Re: [PATCH] PM QoS: Add a metric : Bus Throughput.

2012-08-08 Thread Kyungmin Park
+ Myungjoo Ham, It used at devfreq. Mr. Ham can you explain it in detail? Thank you, Kyungmin Park , On 8/9/12, Rafael J. Wysocki wrote: > On Wednesday, August 08, 2012, Jonghwa Lee wrote: >> Bus throughput metric is added to PM QoS in order to control the >> frequency of memory interfaces and

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

2012-08-08 Thread Tejun Heo
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 inconvenient and there will be more users of it in the future, add

Re: [PATCH v5 09/12] block: Rework bio_pair_split()

2012-08-08 Thread Tejun Heo
Hello, On Mon, Aug 06, 2012 at 03:08:38PM -0700, Kent Overstreet wrote: > This changes bio_pair_split() to use the new bio_split() underneath, > which gets rid of the single page bio limitation. The various callers > are fixed up for the slightly different struct bio_pair, and to remove > the

[PATCH 1/3] remoteproc: add rproc_report_crash function to notify rproc crashes

2012-08-08 Thread Fernando Guzman Lugo
This patch is exporting the rproc_report_crash function which can be used to report a rproc crash to the remoteproc core. This function is specially thought to be called by low-level remoteproc driver code in case of detecting a crash (remoteproc is not functional anymore). Using this function

[PATCH 2/3] remoteproc: recover a remoteproc when it has crashed

2012-08-08 Thread Fernando Guzman Lugo
This patch is introducing rproc_trigger_recover function which is in charge of recovering the rproc. One way to recover the rproc after a crash is resetting all its virtio devices. Doing that, all rpmsg drivers are restored along with the rpmsg devices and that also causes the reset of the

Re: [PATCH 07/11] net/stmmac: mark probe function as __devinit

2012-08-08 Thread David Miller
From: Arnd Bergmann Date: Wed, 8 Aug 2012 16:47:24 +0200 > Driver probe functions are generally __devinit so they will be > discarded after initialization for non-hotplug kernels. > This was found by a new warning after patch 6a228452d "stmmac: Add > device-tree support" adds a new __devinit

[PATCH 3/3] remoteproc: create debugfs entry to disable/enable recovery dynamically

2012-08-08 Thread Fernando Guzman Lugo
Add a debugfs entry (named recovery) so that recovery can be disabled dynamically at runtime. This entry is very useful when you are trying to debug a rproc crash. Without this a recovery will take place making impossible to debug the issue. Original idea from Ohad Ben-Cohen and contributions

Re: [PATCH] lpc_eth: remove obsolete ifdefs

2012-08-08 Thread David Miller
From: Roland Stigge Date: Wed, 8 Aug 2012 15:18:54 +0200 > The #ifdefs regarding CONFIG_ARCH_LPC32XX_MII_SUPPORT and > CONFIG_ARCH_LPC32XX_IRAM_FOR_NET are obsolete since the symbols have been > removed from Kconfig and replaced by devicetree based configuration. > > Signed-off-by: Roland

[PATCH 0/3] remoteproc: introduce rproc recovery

2012-08-08 Thread Fernando Guzman Lugo
These set of patches make possible the remoteproc recover after a crash. This is a hard recovery, that means the remoteproc is reset and it will start from the beginning. When a crash happen all the virtio devices are destroyed. Therefore, both rpmsg drivers and devices are gracefully removed

Re: [PATCH] net/core: Fix potential memory leak in dev_set_alias()

2012-08-08 Thread David Miller
From: Alexey Khoroshilov Date: Wed, 8 Aug 2012 14:33:25 +0400 > 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 Applied, thanks. -- To unsubscribe

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

2012-08-08 Thread Tejun Heo
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)); > + bio_integrity_trim(bio, bio_sectors(ret),

  1   2   3   4   5   6   7   8   9   10   >