Re: [PATCH] ACPI / PM: Infer parent power state from child if unknown, v2

2012-09-11 Thread Aaron Lu
On Tue, Sep 11, 2012 at 10:38:06PM +0200, Rafael J. Wysocki wrote: > It turns out that there are ACPI BIOSes defining device objects with > _PSx and without either _PSC or _PRx. For devices corresponding to > those ACPI objetcs __acpi_bus_get_power() returns ACPI_STATE_UNKNOWN > and their initial

Re: [PATCH v3 6/9] ARM: mvebu: add pinctrl device in DT for Armada 370/XP SoCs

2012-09-11 Thread Thomas Petazzoni
Le Tue, 11 Sep 2012 16:23:19 -0600, Stephen Warren a écrit : > On 09/10/2012 02:39 AM, Sebastian Hesselbarth wrote: > > From: Thomas Petazzoni > > > > The Armada 370 and XP SoCs have configurable muxing for a certain > > number of their pins, controlled through a pinctrl driver. > > Hmmm. I'd

Re: [PATCH v3 1/9] pinctrl: mvebu: pinctrl driver core

2012-09-11 Thread Thomas Petazzoni
Le Tue, 11 Sep 2012 16:17:13 -0600, Stephen Warren a écrit : > > +static struct mvebu_mpp_mode dove_mpp_modes[] = { > + MPP_MODE(0, > + MPP_FUNCTION(0x00, "gpio", NULL), > + MPP_FUNCTION(0x02, "uart2", "rts"), > + MPP_FUNCTION(0x03, "sdio0", "cd"), > +

Re: iwl3945: order 5 allocation during ifconfig up; vm problem?

2012-09-11 Thread Johannes Berg
On Tue, 2012-09-11 at 22:57 -0700, Marc MERLIN wrote: > On Wed, Sep 12, 2012 at 07:16:28AM +0200, Eric Dumazet wrote: > > On Tue, 2012-09-11 at 16:25 -0700, Andrew Morton wrote: > > > > > Asking for a 256k allocation is pretty crazy - this is an operating > > > system kernel, not a userspace appli

Re: [ 92/95] NFS: Fix Oopses in nfs_lookup_revalidate and nfs4_lookup_revalidate

2012-09-11 Thread Suresh Jayaraman
On 09/10/2012 04:13 AM, Ben Hutchings wrote: > 3.2-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Trond Myklebust > > Fix the following Oops in 3.5.1: > > BUG: unable to handle kernel NULL pointer dereference at 0038 > IP:

linux-next: manual merge of the tegra tree with the tree

2012-09-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tegra tree got a conflict in arch/arm/mach-tegra/devices.c arch/arm/mach-tegra/devices.h between commits 2db4ddfe6e23 ("ARM: pmu: remove arm_pmu_type enumeration") from the arm-perf tree and 1ba8216f0bc0 ("usb: move phy driver from mach-tegra to drivers/usb"

[PATCH 2/2] perf ui/browser: Fix first column printing

2012-09-11 Thread Namhyung Kim
From: Namhyung Kim As a side effect of commit f5951d56a2ab ("perf hists browser: Use perf_hpp__format functions") perf report TUI got a problem of not refreshing the first character. Since the previous patch restores the column width of "overhead" to 7 we can start at column 0 now. Signed-off-b

[PATCH 1/2] perf ui/hist: Fix output for 100.00%

2012-09-11 Thread Namhyung Kim
From: Namhyung Kim Current hpp format functions assume that the output will fit to 6 character including % sign (XX.YY%) so used "%5.2f%%" as a format string. However it might be the case if collapsing resulted in a single entry which has 100.00% (7 character) of period. In this case the output

linux-next: manual merge of the tegra tree with the usb tree

2012-09-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tegra tree got a conflict in drivers/usb/phy/tegra_usb_phy.c between commit 1ba8216f0bc0 ("usb: move phy driver from mach-tegra to drivers/usb") from the usb tree and commit b0e51927b1e5 ("ARM: tegra: remove useless includes of ") from the tegra tree. I fix

Re: [PATCH v2] arm: omap: hwmod: make *phy_48m* as the main_clk of ocp2scp

2012-09-11 Thread ABRAHAM, KISHON VIJAY
Hi, On Wed, Sep 12, 2012 at 3:58 AM, Paul Walmsley wrote: > Hi Kishon, Benoît, > > On Fri, 7 Sep 2012, Kishon Vijay Abraham I wrote: > >> Made *ocp2scp_usb_phy_phy_48m* as the main_clk for ocp2scp. Since this >> ocp2scp module does not have any fck but does have a single opt_clock, >> it is added

Re: [PATCH] Add a page cache-backed balloon device driver.

2012-09-11 Thread Rusty Russell
Mike Waychison writes: > On Mon, Sep 10, 2012 at 3:59 PM, Michael S. Tsirkin wrote: >> On Mon, Sep 10, 2012 at 01:37:06PM -0400, Mike Waychison wrote: >>> On Mon, Sep 10, 2012 at 5:05 AM, Michael S. Tsirkin wrote: >>> > On Tue, Jun 26, 2012 at 01:32:58PM -0700, Frank Swiderski wrote: >>> >> This

Re: [RFCv3] virtio_console: Add support for virtio remoteproc serial

2012-09-11 Thread Rusty Russell
sjur.brandel...@stericsson.com writes: > I actually like this new approach better. > It solves the issues Michael has pointed out, and we don't have to > think through side effects of weired combination of feature bits. Agreed. Just one thing, should it depend on CONFIG_REMOTEPROC? And have OMAP

Re: [RFC 1/2] virtio_console: Add support for DMA memory allocation

2012-09-11 Thread Rusty Russell
"Michael S. Tsirkin" writes: >> virtio: don't crash when device is buggy >> >> Because of a sanity check in virtio_dev_remove, a buggy device can crash >> kernel. And in case of rproc it's userspace so it's not a good idea. >> We are unloading a driver so how bad can it be? >> Be less aggressive

Re: [PATCH v2 2/2] virtio-ring: Allocate indirect buffers from cache when possible

2012-09-11 Thread Rusty Russell
Thomas Lendacky writes: > I ran some TCP_RR and TCP_STREAM sessions, both host-to-guest and > guest-to-host, with a form of the histogram patch applied against a > RHEL6.3 kernel. The histogram values were reset after each test. Hey, thanks! This is exactly what I wanted to see... > 60 session

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

2012-09-11 Thread Rusty Russell
"Michael S. Tsirkin" writes: > We have several options: > 1. No memory overcommit feature. This is always the case ATM! > 2. Do not hot-plug assigned device. > 3. Hot-unplug assigned device. > 4. Some assigned devices can be able to handle memory errors >e.g. using ATS. Limit hotplug to these.

Re: [PATCH 4/5] perf ui/browser: Use perf_hpp__format functions

2012-09-11 Thread Namhyung Kim
On Sat, 08 Sep 2012 23:05:43 +0900, Namhyung Kim wrote: > On Fri, 7 Sep 2012 17:32:18 -0700, Arnaldo Carvalho de Melo wrote: >> I folded the patch below so that we have the lines starting at column 1 >> like before, i.e. we were using " %5.2f" for the overhead and now you >> changed it to "%5.2f".

Re: [PATCH v4 00/21] OMAP UART Patches

2012-09-11 Thread Felipe Balbi
Hi, On Tue, Sep 11, 2012 at 10:02:48PM +, Paul Walmsley wrote: > > Hi Felipe > > Just tested these OMAP serial changes at commit > e36851d0fa94b0f7802b3cc80406dbd3ef4f2f16 ("serial: omap: fix compile > breakage"). There's good news and bad news... > > The good news is that after applying

Re: [RFC v8 PATCH 00/20] memory-hotplug: hot-remove physical memory

2012-09-11 Thread Minchan Kim
On Tue, Sep 11, 2012 at 01:18:24PM +0800, Jerry wrote: > Hi Kim, > > Thank you for your kindness. Let me clarify this: > > On ARM architecture, there are 32 bits physical addresses space. However, > the addresses space is divided into 8 banks normally. Each bank > disabled/enabled by a chip selec

Re: [PATCH] gpio: pcf857x: fixup smatch WARNING

2012-09-11 Thread Linus Walleij
On Wed, Sep 12, 2012 at 7:19 AM, Kuninori Morimoto wrote: > This patch fixes it > > Reported-by: Fengguang Wu > Signed-off-by: Kuninori Morimoto Hey you fix things quicker than I can read my mail :-) :-) Thanks! Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH] spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function

2012-09-11 Thread Shubhrajyoti
On Wednesday 12 September 2012 08:51 AM, Mark Brown wrote: > On Tue, Sep 11, 2012 at 12:13:20PM +0530, Shubhrajyoti D wrote: >> > Currently in omap2_mcspi_txrx_dma the tx and the rx support is >> > interleaved. Make the rx related code in omap2_mcspi_rx_dma >> > and the tx related code omap2_mcspi_

Re: [PATCH 1/2] writeback: add dirty_background_time per bdi variable

2012-09-11 Thread Fengguang Wu
> I will update simple table for this result in changelog in patch. That would be good, thanks a lot for the testing! Thanks, Fengguang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

Re: runtime PM and special power switches

2012-09-11 Thread Dave Airlie
On Wed, Sep 12, 2012 at 3:13 PM, Dave Airlie wrote: > On Wed, Sep 12, 2012 at 8:58 AM, Rafael J. Wysocki wrote: >> On Wednesday, September 12, 2012, Dave Airlie wrote: >>> On Wed, Sep 12, 2012 at 7:32 AM, Alan Stern >>> wrote: >>> > On Tue, 11 Sep 2012, Rafael J. Wysocki wrote: >>> > >>> >> Hi,

[PATCH] perf, tools: Stop perf stat -p when profiled process exits

2012-09-11 Thread Andi Kleen
From: Andi Kleen When counting a process with perf stat -p check if the process died and exit collection if yes. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/built

[v2 PATCH 2/2] netprio_cgroup: Use memcpy instead of the for-loop to copy priomap

2012-09-11 Thread Srivatsa S. Bhat
Replace the current (inefficient) for-loop with memcpy, to copy priomap. Signed-off-by: Srivatsa S. Bhat --- net/core/netprio_cgroup.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/net/core/netprio_cgroup.c b/net/core/netprio_cgroup.c index fd339bb0..83bbd0e 1

[v2 PATCH 1/2] netprio_cgroup: Remove update_netdev_tables() since it is unnecessary

2012-09-11 Thread Srivatsa S. Bhat
The update_netdev_tables() function appears to be unnecessary, since the write_update_netdev_table() function will adjust the priomaps as and when required anyway. So drop the usage of update_netdev_tables() entirely. Signed-off-by: Srivatsa S. Bhat --- net/core/netprio_cgroup.c | 32

linux-next: build failure after merge of the staging tree

2012-09-11 Thread Stephen Rothwell
Hi Greg, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/hid/hid-sensor-hub.c: In function 'sensor_hub_probe': drivers/hid/hid-sensor-hub.c:599:3: error: too few arguments to function 'mfd_add_devices' Caused by commit 401ca24fb34a ("HID:

Re: [PATCH 2/2] netprio_cgroup: Optimize the priomap copy loop slightly

2012-09-11 Thread Srivatsa S. Bhat
On 09/11/2012 05:12 PM, David Laight wrote: >> -for (i = 0; >> - old_priomap && (i < old_priomap->priomap_len); >> - i++) >> -new_priomap->priomap[i] = old_priomap->priomap[i]; >> +if (old_priomap) { >> +old_len = old_priomap->priomap_len; >> + >> +

Re: [PATCH v3 1/9] pinctrl: mvebu: pinctrl driver core

2012-09-11 Thread Linus Walleij
On Wed, Sep 12, 2012 at 12:17 AM, Stephen Warren wrote: > the drivers in this patch seem to invert the data-structures a > little - in other words, instead of defining a global list of functions, > they define a list of groups, and for each group, list the functions > that can be selected on to i

Re: [PATCH 1/2] writeback: add dirty_background_time per bdi variable

2012-09-11 Thread Namjae Jeon
2012/9/12, Namjae Jeon : > 2012/9/12, Fengguang Wu : >> On Wed, Sep 12, 2012 at 08:12:40AM +0900, Namjae Jeon wrote: >>> >> >>> >> To be frank, no realistic NFS servers will use USB disk as backing >>> >> storage. So that rational for reducing "initial" delays is weak. >>> >> Continuous write perfo

Re: [PATCH] HID: picolcd_fb: Use flush_delayed_work instead of flush_delayed_work_sync

2012-09-11 Thread Bruno Prémont
Hi Axel, On Wed, 12 Sep 2012 13:39:09 Axel Lin wrote: > Seems this is a left over of commit 4382973 > "workqueue: deprecate flush[_delayed]_work_sync()" It is, see https://lkml.org/lkml/2012/9/6/297 for a previous patch. This should fix itself when Linus merges Tejun's workqueue changes and pico

Re: iwl3945: order 5 allocation during ifconfig up; vm problem?

2012-09-11 Thread Marc MERLIN
On Wed, Sep 12, 2012 at 07:16:28AM +0200, Eric Dumazet wrote: > On Tue, 2012-09-11 at 16:25 -0700, Andrew Morton wrote: > > > Asking for a 256k allocation is pretty crazy - this is an operating > > system kernel, not a userspace application. > > > > I'm wondering if this is due to a recent change

linux-next: manual merge of the staging tree with the thermal tree

2012-09-11 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in drivers/staging/omap-thermal/omap-thermal-common.c between commit 76f726fb24bd ("Thermal: Remove tc1/tc2 in generic thermal layer") from the thermal tree and commit 765a1939a364 ("staging: omap-thermal: fix polling period sett

Re: [RFC v8 PATCH 00/20] memory-hotplug: hot-remove physical memory

2012-09-11 Thread Wen Congyang
At 09/10/2012 09:52 PM, Vasilis Liaskovitis Wrote: > Hi, > > On Mon, Sep 10, 2012 at 10:01:44AM +0800, Wen Congyang wrote: >> At 09/10/2012 09:46 AM, Yasuaki Ishimatsu Wrote: >>> Hi Wen, >>> >>> 2012/09/01 5:49, Andrew Morton wrote: On Tue, 28 Aug 2012 18:00:07 +0800 we...@cn.fujitsu.com

[PATCH] HID: picolcd_fb: Use flush_delayed_work instead of flush_delayed_work_sync

2012-09-11 Thread Axel Lin
Seems this is a left over of commit 4382973 "workqueue: deprecate flush[_delayed]_work_sync()" This fixes below build warning: CC [M] drivers/hid/hid-picolcd_fb.o drivers/hid/hid-picolcd_fb.c: In function 'picolcd_exit_framebuffer': drivers/hid/hid-picolcd_fb.c:611:2: warning: 'flush_delayed_w

Re: [GIT] Digital signature library bugfix

2012-09-11 Thread Linus Torvalds
On Wed, Sep 12, 2012 at 11:34 AM, James Morris wrote: > > - if (!err && len == hlen) > - err = memcmp(out2, h, hlen); > + if (err || len != hlen) { > + err = -EINVAL; > + goto err; > + } > + > + err = memcmp(out2, h, hlen); > > err

linux-next: manual merge of the usb tree with the usb.current tree

2012-09-11 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/dwc3/gadget.c between commit f4a53c55117b ("usb: dwc3: gadget: fix pending isoc handling") from the usb.current tree and commit 348e026fafe2 ("usb: dwc3: gadget: Fix sparse warnings") from the usb tree. I fixed it up

linux-next: manual merge of the usb tree with the usb.current tree

2012-09-11 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/musb/tusb6010.c between commit ff41aaa3b6c1 ("usb: musb: tusb6010: fix error path in tusb_probe()") from the usb.current tree and commit 65b3d52d02a5 ("usb: musb: add musb_ida for multi instance support") from the usb

hot-added cpu is not asiggned to the correct node

2012-09-11 Thread Yasuaki Ishimatsu
When I hot-added CPUs and memories simultaneously using container driver, all the hot-added CPUs were mistakenly assigned to node0. Accoding to my DSDT, hot-added CPUs and memorys have PXM#1. So in my system, these devices should be assigned to node1 as follows: --- Expected result ls /sys/device

[RFC PATCH 0/2] Add UIO device supporting dynamic memory allocation

2012-09-11 Thread Damian Hobson-Garcia
Reposting: I realized that this series should have gone out to a broader list. My apologies to those who those who will recieve a duplicate post. Hello all, I've been using this UIO driver for allocation/deallocation of memory regions through an IOMMU via the dma-mapping API, but it seems that i

[RFC PATCH 1/2] Add new uio device for dynamic memory allocation

2012-09-11 Thread Damian Hobson-Garcia
This device extends the uio_pdrv_genirq driver to provide limited dynamic memory allocation for UIO devices. This allows UIO devices to use CMA and IOMMU allocated memory regions. This driver is based on the uio_pdrv_genirq driver and provides the same generic interrupt handling capabilities. Lik

[RFC PATCH 2/2] ARM: shmobile: sh7372: Change VPU UIO to uio_dmem_genirq

2012-09-11 Thread Damian Hobson-Garcia
This allows the VPU memory to be allocated dynamically only when it is needed. Signed-off-by: Damian Hobson-Garcia --- arch/arm/mach-shmobile/setup-sh7372.c | 19 ++- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/a

Iptables log-level does not work with kernel 3.6-rc

2012-09-11 Thread auto75914331
This rule $IPTABLES -A RULE_0_in -j LOG --log-level notice --log-prefix "DENY in: " result with linux 3.6-rc5 Sep 12 06:37:29 x kernel: <5>DENY in: IN=eth0 OUT= MAC=... result with linux 3.5.3 and older: Sep 9 10:43:01 x kernel: DENY in: IN=eth0 OUT= MAC.. Thanks --

[PATCH] gpio: pcf857x: fixup smatch WARNING

2012-09-11 Thread Kuninori Morimoto
6e20a0a429bd4dc07d6de16d9c247270e04e4aa0 (gpio: pcf857x: enable gpio_to_irq() support) added new smatch warnings drivers/gpio/gpio-pcf857x.c:288 pcf857x_probe() error: we previously \ assumed 'pdata' could be null (see line 277) drivers/gpio/gpio-pcf857x.c:364 pcf857x_probe() warn: variabl

Re: iwl3945: order 5 allocation during ifconfig up; vm problem?

2012-09-11 Thread Eric Dumazet
On Tue, 2012-09-11 at 16:25 -0700, Andrew Morton wrote: > Asking for a 256k allocation is pretty crazy - this is an operating > system kernel, not a userspace application. > > I'm wondering if this is due to a recent change, but I'm having trouble > working out where the allocation call site is.

Re: runtime PM and special power switches

2012-09-11 Thread Dave Airlie
On Wed, Sep 12, 2012 at 8:58 AM, Rafael J. Wysocki wrote: > On Wednesday, September 12, 2012, Dave Airlie wrote: >> On Wed, Sep 12, 2012 at 7:32 AM, Alan Stern >> wrote: >> > On Tue, 11 Sep 2012, Rafael J. Wysocki wrote: >> > >> >> Hi, >> >> >> >> On Tuesday, September 11, 2012, Dave Airlie wrot

Re: [PATCH] fs: prevent double-free on an error path in core dumper

2012-09-11 Thread Cong Wang
On Tue, 2012-09-11 at 17:59 +0200, Oleg Nesterov wrote: > But, again, the caller does free_note_info(), so why > elf_note_info_init() > tries to handle the kmalloc failures? Afaics, we can simplify the code > and fix the bug. > > What do you think about the patch below? Looks reasonable and neat

linux-next: manual merge of the workqueues tree with the omap_dss2 tree

2012-09-11 Thread Stephen Rothwell
Hi Tejun, Today's linux-next merge of the workqueues tree got a conflict in drivers/video/omap2/displays/panel-taal.c between commit 5e56ad44b4d2 ("OMAPDSS: Taal: use devm_* functions") from the omap_dss2 tree and commit 203b42f73174 ("workqueue: make deferrable delayed_work initializer names cons

[PATCH] kbuild: setlocalversion: ignore private tags while reporting local version

2012-09-11 Thread Tushar Behera
The output 'git describe' is relative to the immediate preceding tag. When the immediate tag preceding the HEAD is a private tag, setlocalversion extracts information with respect to the private tag and wrongly reports them with respect to Linux tag. Fixing this to extract information with respect

[3.5.0 BUG] vmx_handle_exit: unexpected, valid vectoring info (0x80000b0e)

2012-09-11 Thread Fengguang Wu
Hi, 3 of my test boxes running v3.5 kernel become unaccessible and I find two of them kept emitting this dmesg: vmx_handle_exit: unexpected, valid vectoring info (0x8b0e) and exit reason is 0x31 The other one has froze and the above lines are the last dmesg. Any ideas? Thanks, Fengguang --

Re: [RFC] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-11 Thread Colin Cross
On Tue, Sep 11, 2012 at 9:06 PM, Anton Vorontsov wrote: > On Tue, Sep 11, 2012 at 08:42:46PM -0700, Colin Cross wrote: > [...] >> > The "problem" is in the last step. If we exit NMI without making UART >> > know that we're done with the interrupt, we will reenter the NMI >> > immediately, even wit

linux-next: manual merge of the kvm tree with Linus' tree

2012-09-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in arch/x86/kvm/i8259.c between commit 749c59fd15b2 ("KVM: PIC: fix use of uninitialised variable") from Linus' tree and commit ec798660cf72 ("KVM: cleanup pic reset") from the kvm tree. The latter removed the code fixed by the forme

Re: Storage related regression in linux-next 20120824

2012-09-11 Thread Zheng Liu
On Sun, Sep 09, 2012 at 04:50:47PM -0400, Jeff Garzik wrote: > On 09/09/2012 04:36 PM, Hugh Dickins wrote: > >On Sun, Sep 9, 2012 at 1:28 PM, Jeff Garzik wrote: > >>I'll send Linus a patch to disable. > > > >Thanks, but no, the change in question hasn't reached Linus yet, it's > >just a linux-next

Re: [Resend][PATCH V3] trace,x86: add x86 irq vector tracepoints

2012-09-11 Thread H. Peter Anvin
On 09/11/2012 05:00 PM, Seiji Aguchi wrote: Thomas, Please review my patch as we talked in Plumbers. Is there any measurable latency added here? These are some of the most performance- (or at least latency-)critical paths in the kernel. -hpa -- H. Peter Anvin, Intel Open Source T

Re: [PATCH 1/2] module: add syscall to load module from fd

2012-09-11 Thread H. Peter Anvin
On 09/06/2012 11:13 AM, Kees Cook wrote: Instead of (or in addition to) kernel module signing, being able to reason about the origin of a kernel module would be valuable in situations where an OS already trusts a specific file system, file, etc, due to things like security labels or an existing r

Re: [RFC] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-11 Thread Anton Vorontsov
On Tue, Sep 11, 2012 at 08:42:46PM -0700, Colin Cross wrote: [...] > > The "problem" is in the last step. If we exit NMI without making UART > > know that we're done with the interrupt, we will reenter the NMI > > immediately, even without any new characters from the UART. > > The UART irq line sh

Re: [PATCH 1/3] tracing,x86: add a TSC trace_clock; reset buffer on clock change

2012-09-11 Thread Steven Rostedt
On Tue, 2012-09-11 at 19:41 -0700, David Sharp wrote: > In order to promote interoperability between userspace tracers and ftrace, > add a trace_clock that reports raw TSC values which will then be recorded > in the ring buffer. Userspace tracers that also record TSCs are then on > exactly the same

linux-next: manual merge of the trivial tree with the mfd tree

2012-09-11 Thread Stephen Rothwell
Hi Jiri, Today's linux-next merge of the trivial tree got a conflict in drivers/video/backlight/88pm860x_bl.c between commit a6ccdcd98c39 ("mfd: 88pm860x: Use REG resource for backlight") from the mfd tree and commit e1c9ac420ef1 ("Revert "backlight: fix memory leak on obscure error path"") from t

Re: [RFC] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-11 Thread Colin Cross
On Tue, Sep 11, 2012 at 8:32 PM, Anton Vorontsov wrote: > On Tue, Sep 11, 2012 at 03:15:40PM +0100, Alan Cox wrote: >> Anton Vorontsov wrote: >> > This patch implements a new callback: clear_irqs. It is used for the >> >> This bit I still really don't like. I would like to know what the generic >

[GIT] Digital signature library bugfix

2012-09-11 Thread James Morris
Please apply for v3.6. The following changes since commit 0bd1189e239c76eb3a50e458548fbe7e4a5dfff1: Linus Torvalds (1): Merge branch 'for-3.6-fixes' of git://git.kernel.org/.../tj/wq are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-s

Re: [PATCH v3] trace: Move trace event enable from fs_initcall to core_initcall

2012-09-11 Thread Ezequiel Garcia
On Tue, Sep 11, 2012 at 9:34 PM, Steven Rostedt wrote: > On Sat, 2012-09-08 at 17:01 -0300, Ezequiel Garcia wrote: >> This patch splits trace event initialization in two stages: >> * ftrace enable >> * sysfs event entry creation >> >> This allows to capture trace events from an earlier point >>

Re: [PATCH 09/12] thp: introduce khugepaged_prealloc_page and khugepaged_alloc_page

2012-09-11 Thread Xiao Guangrong
On 09/12/2012 10:03 AM, Hugh Dickins wrote: > What brought me to look at it was hitting "BUG at mm/huge_memory.c:1842!" > running tmpfs kbuild swapping load (with memcg's memory.limit_in_bytes > forcing out to swap), while I happened to have CONFIG_NUMA=y. > > That's the VM_BUG_ON(*hpage) on entr

[RFC] tty/serial/kgdboc: Add and wire up clear_irqs callback

2012-09-11 Thread Anton Vorontsov
On Tue, Sep 11, 2012 at 03:15:40PM +0100, Alan Cox wrote: > Anton Vorontsov wrote: > > This patch implements a new callback: clear_irqs. It is used for the > > This bit I still really don't like. I would like to know what the generic > IRQ folks thing about it and if Thomas Gleixner has any brill

Re: [PATCH V3 1/3] drivers/char/tpm: Add new device driver to support IBM vTPM

2012-09-11 Thread James Morris
On Fri, 7 Sep 2012, Kent Yoder wrote: > > > James did accept my pull request, so these are already in > > > security-next... > > > > For the driver itself, it's not a big issue (though I did found issue > > while reviewing it so it will need another round of updates). For the > > code that chan

Re: [PATCH 1/3] Add ratelimited printk for different alert levels

2012-09-11 Thread Joe Perches
On Wed, 2012-09-12 at 03:43 +0530, raghu.prabh...@gmail.com wrote: > Ratelimited printk will be useful in printing xfs messages which are otherwise > not required to be printed always due to their high rate (to prevent kernel > ring > buffer from overflowing), while at the same time required to be

Re: [PATCH] spi: omap2-mcspi: Cleanup the omap2_mcspi_txrx_dma function

2012-09-11 Thread Mark Brown
On Tue, Sep 11, 2012 at 12:13:20PM +0530, Shubhrajyoti D wrote: > Currently in omap2_mcspi_txrx_dma the tx and the rx support is > interleaved. Make the rx related code in omap2_mcspi_rx_dma > and the tx related code omap2_mcspi_tx_dma and call the functions. I'd ideally like some testing from the

Re: [PATCH] tpm: fix tpm_acpi sparse warning on different address spaces

2012-09-11 Thread James Morris
On Tue, 4 Sep 2012, Kent Yoder wrote: > acpi_os_map_memory expects its return value to be in the __iomem address > space. Tag the variable we're using as such and use memcpy_fromio to > avoid further sparse warnings. > > Signed-off-by: Kent Yoder Applied to git://git.kernel.org/pub/scm/linux/ke

Re: [PATCH 16/16] ARM: spear: move platform_data definitions

2012-09-11 Thread viresh kumar
On Tue, Sep 11, 2012 at 6:32 PM, Arnd Bergmann wrote: > Platform data for device drivers should be defined in > include/linux/platform_data/*.h, not in the architecture > and platform specific directories. > > This moves such data out of the spear include directories > > Signed-off-by: Arnd Bergma

make tar*-pkg considered dangerous

2012-09-11 Thread Andi Kleen
Hi, We've had some incidents with people destroying Fedore 17 installs (to the point of reinstall) by installing a kernel tarball generated with make tar*-pkg The problem is that the tarball includes /lib/{modules,firmware}, but on FC17 /lib is a symlink. tar when it unpacks the tarball replace

[PATCH] CodingStyle: Add networking specific block comment style

2012-09-11 Thread Joe Perches
The block comment style in net/ and drivers/net is non-standard. Document it. Signed-off-by: Joe Perches --- > This conflicts with the preferred style for long (multi-line) comments > documented in > ./Documentation/CodingStyle. If this is the way comments should be done in > the > networking

Re: [PATCH 1/2] module: add syscall to load module from fd

2012-09-11 Thread James Morris
On Mon, 10 Sep 2012, Rusty Russell wrote: > Kees Cook writes: > > On Fri, Sep 7, 2012 at 10:12 AM, Mimi Zohar > > wrote: > >> This method is a consistent and extensible approach to verifying the > >> integrity of file data/metadata, including kernel modules. The only > >> downside to this appro

Re: [PATCH] samples/seccomp: fix 31 bit build on s390

2012-09-11 Thread James Morris
On Sat, 8 Sep 2012, Heiko Carstens wrote: > >From cea999ef4e68e23c70e64baf054768bdebe15e1b Mon Sep 17 00:00:00 2001 > From: Heiko Carstens > Date: Sat, 8 Sep 2012 10:23:42 +0200 > Subject: [PATCH] samples/seccomp: fix 31 bit build on s390 > > On s390 the flag to force 31 builds is -m31 instead o

Re: [alsa-devel] [PATCH] ASoC: codecs: Add DA9055 codec driver

2012-09-11 Thread Mark Brown
On Tue, Sep 11, 2012 at 08:33:43PM +0530, Ashish Chavan wrote: > +/* LDO voltage level value */ > +static const char * const da9055_ldo_lvl_select_txt[] = { > + "1.05V", "1.1V", "1.2V", "1.4V" > +}; > +static const struct soc_enum da9055_ldo_lvl_select = > + SOC_ENUM_SINGLE(DA9055_LDO_CTR

linux-next: manual merge of the mfd tree with Linus' tree

2012-09-11 Thread Stephen Rothwell
Hi Samuel, Today's linux-next merge of the mfd tree got a conflict in Documentation/devicetree/bindings/regulator/tps6586x.txt between commit 7f852e0584f6 ("regulator: tps6586x: correct vin pin for sm0/sm1/sm2") from Linus' tree and commit 566a725dff0d ("mfd: dt: tps6586x: Add power off control")

[PATCH 2/3] tracing: reset ring buffer when changing trace_clocks

2012-09-11 Thread David Sharp
Because the "tsc" clock isn't in nanoseconds, the ring buffer must be reset when changing clocks so that incomparable timestamps don't end up in the same trace. Tested: Confirmed switching clocks resets the trace buffer. Signed-off-by: David Sharp --- kernel/trace/trace.c |8 1 file

Re: [PATCH] Fix queueing work if !bdi_cap_writeback_dirty()

2012-09-11 Thread Fengguang Wu
On Wed, Sep 12, 2012 at 03:28:42AM +0900, OGAWA Hirofumi wrote: > > If bdi has BDI_CAP_NO_WRITEBACK, bdi_forker_thread() doesn't start > writeback thread. This means there is no consumer of work item made > by bdi_queue_work(). > > This adds to checking of !bdi_cap_writeback_dirty(sb->s_bdi) befo

[PATCH 3/3] tracing: format non-nanosec times from tsc clock without a decimal point.

2012-09-11 Thread David Sharp
With the addition of the "tsc" clock, formatting timestamps to look like fractional seconds is misleading. Mark clocks as either in nanoseconds or not, and format non-nanosecond timestamps as decimal integers. Tested: $ cd /sys/kernel/debug/tracing/ $ cat trace_clock [local] global tsc $ echo sche

[PATCH 1/3] tracing,x86: add a TSC trace_clock; reset buffer on clock change

2012-09-11 Thread David Sharp
In order to promote interoperability between userspace tracers and ftrace, add a trace_clock that reports raw TSC values which will then be recorded in the ring buffer. Userspace tracers that also record TSCs are then on exactly the same time base as the kernel and events can be unambiguously inter

[PATCH 0/3] TSC trace_clock

2012-09-11 Thread David Sharp
As discussed at Plumbers, here are my patches to add a TSC clock to ftrace. Also noticeable is that the formatting patch improves the output of the "counter" clock. David Sharp (3): tracing,x86: add a TSC trace_clock; reset buffer on clock change tracing: reset ring buffer when changing trace_

Query of zram/zsmalloc promotion

2012-09-11 Thread Minchan Kim
Hi all, I would like to promote zram/zsmalloc from staging tree. I already tried it https://lkml.org/lkml/2012/8/8/37 but I didn't get any response from you guys. I think zram/zsmalloc's code qulity is good and they are used for many embedded vendors for a long time. So it's proper time to promot

Re: [PATCH 09/12] thp: introduce khugepaged_prealloc_page and khugepaged_alloc_page

2012-09-11 Thread Xiao Guangrong
On 09/12/2012 10:03 AM, Hugh Dickins wrote: > On Mon, 13 Aug 2012, Xiao Guangrong wrote: > >> They are used to abstract the difference between NUMA enabled and NUMA >> disabled >> to make the code more readable >> >> Signed-off-by: Xiao Guangrong >> --- >> mm/huge_memory.c | 166 >> ++

Re: [ 34/95] USB: option: add ZTE K5006-Z

2012-09-11 Thread Ben Hutchings
On Tue, 2012-09-11 at 09:43 +0200, Bjørn Mork wrote: > Thomas Schäfer writes: > > > Am Montag, 10. September 2012 um 00:42:24 schrieb Ben Hutchings: > >> 3.2-stable review patch. If anyone has any objections, please let me know. > > > > > > > > referring to > > > > http://www.spinics.net/lists/l

Re: [PATCH 16/18] perf evsel: Introduce perf_evsel__{str,int}val methods

2012-09-11 Thread Namhyung Kim
On Tue, 11 Sep 2012 20:53:08 -0300, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > Wrappers to the libtraceevent routines, so that we can further reduce > the surface contact perf builtins have with it. I just realized that this breaks the python extension: namhyung@sejong:

RE: [PATCH 15/16] ARM: samsung: move platform_data definitions

2012-09-11 Thread Kukjin Kim
Arnd Bergmann wrote: > > Platform data for device drivers should be defined in > include/linux/platform_data/*.h, not in the architecture > and platform specific directories. > > This moves such data out of the samsung include directories > > Signed-off-by: Arnd Bergmann > Cc: Kukjin Kim Yeah

[PATCH 2/2] perf sched: Fixup for the die() removal

2012-09-11 Thread Namhyung Kim
From: Namhyung Kim The commit a116e05dcf61 ("perf sched: Remove die() calls") replaced die() call to pr_debug + return -1, but it should be pr_err otherwise it'll not show up unless -v option is given. Fix it. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 14 +++--- 1 f

[PATCH 1/2] perf test: Fixup for the die() removal

2012-09-11 Thread Namhyung Kim
From: Namhyung Kim The commit 32c7f7383a09 ("perf test: Remove die() calls") replaced die() call to pr_debug + return -1, but it should be pr_err otherwise it'll not show up unless -v option is given. Fix it. Signed-off-by: Namhyung Kim --- tools/perf/builtin-test.c | 8 1 file chang

Re: [PATCH 09/12] thp: introduce khugepaged_prealloc_page and khugepaged_alloc_page

2012-09-11 Thread Hugh Dickins
On Mon, 13 Aug 2012, Xiao Guangrong wrote: > They are used to abstract the difference between NUMA enabled and NUMA > disabled > to make the code more readable > > Signed-off-by: Xiao Guangrong > --- > mm/huge_memory.c | 166 > -- > 1 files

Re: [PATCH 16/18] perf evsel: Introduce perf_evsel__{str,int}val methods

2012-09-11 Thread Namhyung Kim
On Tue, 11 Sep 2012 20:53:08 -0300, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > Wrappers to the libtraceevent routines, so that we can further reduce > the surface contact perf builtins have with it. [snip] > +char *perf_evsel__strval(struct perf_evsel *evsel, struct perf_

Re: [V4 PATCH 27/27] memory,hotplug: Don't modify the zone_start_pfn outside of zone_span_writelock()

2012-09-11 Thread Lai Jiangshan
On 09/11/2012 06:18 PM, Yasuaki Ishimatsu wrote: > Hi Lai, > > 2012/09/11 18:44, Lai Jiangshan wrote: >> On 09/11/2012 08:40 AM, Yasuaki Ishimatsu wrote: >>> Hi Lai, >>> >>> Using memory_online to hot-added node's memory, the following kernel >>> messages >>> were shown. Is this a known issue? >>

Re: + mm-mmapc-replace-find_vma_prepare-with-clearer-find_vma_links.patch added to -mm tree

2012-09-11 Thread David Rientjes
On Tue, 11 Sep 2012, Hugh Dickins wrote: > > > This does revert 2.6.27's dfe195fb79e88 ("mm: fix uninitialized variables > > > for find_vma_prepare callers"), but it looks like gcc 4.3.0 was one of > > > those releases too eager to shout about uninitialized variables: only > > > copy_vma() warns w

[PATCH 2/2] memory-hotplug: don't replace lowmem pages with highmem

2012-09-11 Thread Minchan Kim
[1] reporeted that lowmem pages could be replaced by highmem pages during migration of CMA and fixed. Quote from [1]'s description " The filesystem layer expects pages in the block device's mapping to not be in highmem (the mapping's gfp mask is set in bdget()), but CMA can currently r

[PATCH 1/2] mm: refactor out __alloc_contig_migrate_alloc

2012-09-11 Thread Minchan Kim
__alloc_contig_migrate_alloc can be used by memory-hotplug so refactor out(move + rename as a common name) it into page_isolation.c. Cc: Kamezawa Hiroyuki Cc: Yasuaki Ishimatsu Cc: Michal Nazarewicz Cc: Marek Szyprowski Cc: Wen Congyang Signed-off-by: Minchan Kim --- This patch is intended

Re: [PATCH] clk: Make the managed clk functions generically available

2012-09-11 Thread Greg Ungerer
On 12/09/12 00:50, Artem Bityutskiy wrote: On Tue, 2012-09-11 at 16:44 +0200, Lars-Peter Clausen wrote: On 09/10/2012 02:39 AM, Russell King - ARM Linux wrote: On Mon, Sep 10, 2012 at 08:20:21AM +0800, Mark Brown wrote: [...] OK, that's what I'd thought was going on - it was the fact that you'

Re: [RFC PATCH 3/3] perf tool: Allow wildcard in PMU name

2012-09-11 Thread Yan, Zheng
On 09/11/2012 10:05 PM, Jiri Olsa wrote: > On Mon, Sep 10, 2012 at 03:53:51PM +0800, Yan, Zheng wrote: >> From: "Yan, Zheng" >> > > SNIP > >> +int parse_events_add_pmu(struct list_head **_list, int *idx, >> char *name, struct list_head *head_config) >> { >> struct per

Re: [PATCH v2 1/2] cgroups: add documentation on extended attributes usage

2012-09-11 Thread Li Zefan
> v2: update cgroups.txt instead of creating a new file > > Cc: Li Zefan > Cc: Tejun Heo > Cc: Hugh Dickins > Cc: Hillf Danton > Cc: Lennart Poettering > Signed-off-by: Aristeu Rozanski > Acked-by: Li Zefan > --- > Documentation/cgroups/cgroups.txt | 24 ++-- > 1 f

Re: [PATCH 01/18] perf test: Remove die() calls

2012-09-11 Thread Namhyung Kim
On Tue, 11 Sep 2012 18:03:10 -0700, Arnaldo Carvalho de Melo wrote: > Em Wed, Sep 12, 2012 at 09:24:33AM +0900, Namhyung Kim escreveu: >> Hi, Arnaldo >> >> On Tue, 11 Sep 2012 20:52:53 -0300, Arnaldo Carvalho de Melo wrote: >> > From: Arnaldo Carvalho de Melo >> > >> > Just use pr_err() + return

RE: [PATCH] checkpatch: Check networking specific block comment style

2012-09-11 Thread Allan, Bruce W
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Joe Perches > Sent: Tuesday, September 11, 2012 5:48 PM > To: Andrew Morton > Cc: Andy Whitcroft; David Miller; LKML; netdev > Subject: [PATCH] checkpatch: Check networking specif

Re: [PATCH signal#execve2] syscalls,x86: Add execveat() system call (v3)

2012-09-11 Thread Al Viro
On Wed, Sep 12, 2012 at 01:55:52AM +0100, Meredydd Luff wrote: > Al (in particular): I've reworked this on top of your generic > execve() changes, as well as incorporating feedback from HPA. > Could you take another look please (and merge if all is well)? > > [v3: now rebased onto signal.git#execv

RE: [PATCH 1/1] pci-iov: Fix warnings when CONFIG_PCI_IOV is enabled

2012-09-11 Thread Jiang Wang
-Original Message- From: Bjorn Helgaas [mailto:bhelg...@google.com] Sent: Tuesday, September 11, 2012 4:35 PM To: Jiang Wang Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Chaitanya Lala; Francis St. Amant; Jiang Wang Subject: Re: [PATCH 1/1] pci-iov: Fix warnings when CONF

Re: [PATCH 15/18] perf sched: Use perf_tool as ancestor

2012-09-11 Thread Namhyung Kim
On Tue, 11 Sep 2012 20:53:07 -0300, Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > So that we can remove all the globals. > > Before: > >text data bss dec hex filename > 1586833110368 1438600 3135801 2fd939 /tmp/oldperf > > After: > >text

Re: [PATCH tip/core/rcu 04/15] rcu: Permit RCU_NONIDLE() to be used from interrupt context

2012-09-11 Thread Paul E. McKenney
On Fri, Sep 07, 2012 at 11:16:07AM -0400, Steven Rostedt wrote: > On Fri, 2012-09-07 at 07:47 -0700, Josh Triplett wrote: > > On Fri, Sep 07, 2012 at 07:24:41AM -0700, Paul E. McKenney wrote: > > > On Thu, Sep 06, 2012 at 11:09:40PM -0700, Josh Triplett wrote: > > > > On Thu, Sep 06, 2012 at 03:54:

  1   2   3   4   5   6   >