Re: [sqlite] light weight write barriers

2012-10-24 Thread david
On Thu, 25 Oct 2012, Theodore Ts'o wrote: On Thu, Oct 25, 2012 at 12:18:47AM -0500, Nico Williams wrote: By trusting fsync(). And if you don't care about immediate Durability you can run the fsync() in a background thread and mark the associated transaction as completed in the next transactio

[PATCH] staging: csr: Fix coding style

2012-10-24 Thread SeongJae Park
Fix coding style for csr_log.h Signed-off-by: SeongJae Park --- drivers/staging/csr/csr_log.h | 165 - 1 file changed, 80 insertions(+), 85 deletions(-) diff --git a/drivers/staging/csr/csr_log.h b/drivers/staging/csr/csr_log.h index b280856..26657a5 100

[PATCH V2] ARM: dt: tegra: ventana: define pinmux for ddc

2012-10-24 Thread Mark Zhang
Tegra 2's I2C2 controller can be routed to either the PTA or DDC pin group on Ventana. So: - Remove the HDMI function definition of pta pingroup - Define child i2c adapters(ddc & pta) for I2C2 controller Signed-off-by: Mark Zhang --- arch/arm/boot/dts/tegra20-ventana.dts | 69 +

Re: [RFC v2 0/2] vmevent: A bit reworked pressure attribute + docs + man page

2012-10-24 Thread Pekka Enberg
On Thu, Oct 25, 2012 at 9:40 AM, Minchan Kim wrote: > Your description doesn't include why we need new vmevent_fd(2). > Of course, it's very flexible and potential to add new VM knob easily but > the thing we is about to use now is only VMEVENT_ATTR_PRESSURE. > Is there any other use cases for swa

Re: [RFC] Kdump with signed images

2012-10-24 Thread Kees Cook
On Wed, Oct 24, 2012 at 10:43 PM, Mimi Zohar wrote: > On Wed, 2012-10-24 at 13:19 -0400, Vivek Goyal wrote: >> On Tue, Oct 23, 2012 at 09:44:59AM -0700, Eric W. Biederman wrote: >> > Matthew Garrett writes: >> > >> > > On Tue, Oct 23, 2012 at 10:59:20AM -0400, Vivek Goyal wrote: >> > > >> > >> Bu

[PATCH 3/3] kgdb/kgdbts: support ppc64

2012-10-24 Thread Tiejun Chen
We can't look up the address of the entry point of the function simply via that function symbol for all architectures. For PPC64 ABI, actually there is a function descriptors structure. A function descriptor is a three doubleword data structure that contains the following values: * The fi

[PATCH 1/3] powerpc/book3e: load critical/machine/debug exception stack

2012-10-24 Thread Tiejun Chen
We always alloc critical/machine/debug check exceptions. This is different from the normal exception. So we should load these exception stack properly like we did for booke. Signed-off-by: Tiejun Chen --- arch/powerpc/kernel/exceptions-64e.S | 27 +++ 1 file changed, 27

[PATCH 2/3] powerpc/book3e: support kgdb for kernel space

2012-10-24 Thread Tiejun Chen
Currently we need to skip this for supporting KGDB. Signed-off-by: Tiejun Chen --- arch/powerpc/kernel/exceptions-64e.S |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S index 43b654a..c5564d4 1

Re: [tip:x86/urgent] x86, mm: Find_early_table_space based on ranges that are actually being mapped

2012-10-24 Thread Yinghai Lu
On Wed, Oct 24, 2012 at 2:49 PM, tip-bot for Jacob Shin wrote: > Commit-ID: 844ab6f993b1d32eb40512503d35ff6ad0c57030 > Gitweb: http://git.kernel.org/tip/844ab6f993b1d32eb40512503d35ff6ad0c57030 > Author: Jacob Shin > AuthorDate: Wed, 24 Oct 2012 14:24:44 -0500 > Committer: H. Peter Anvi

[PATCH] Staging: csr: bh: fixing spaces coding style issues

2012-10-24 Thread Chihau Chau
Fixed some coding style issues replacing spaces for tab at the end of some lines Signed-off-by: Chihau Chau --- drivers/staging/csr/bh.c | 19 +-- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/staging/csr/bh.c b/drivers/staging/csr/bh.c index addee05..

Re: [PATCH 06/21] ocfs2: drop vmtruncate

2012-10-24 Thread Marco Stornelli
2012/10/25 Joel Becker : > On Tue, Oct 23, 2012 at 02:48:38PM +0200, Marco Stornelli wrote: >> 2012/10/23 Joel Becker : >> > On Tue, Oct 23, 2012 at 10:58:42AM +0200, Marco Stornelli wrote: >> >> 2012/10/23 Joel Becker : >> >> > On Sat, Oct 20, 2012 at 02:19:00PM +0200, Marco Stornelli wrote: >> >>

Re: [RFC v2 0/2] vmevent: A bit reworked pressure attribute + docs + man page

2012-10-24 Thread Minchan Kim
Hi Anton, On Mon, Oct 22, 2012 at 04:19:28AM -0700, Anton Vorontsov wrote: > Hi all, > > So this is the second RFC. The main change is that I decided to go with > discrete levels of the pressure. I am very happy with that because I already have yelled it several time. > > When I started writin

[RFC] cpufreq: Make sure target freq is within limits

2012-10-24 Thread Viresh Kumar
Hi Rafael, __cpufreq_driver_target() must not pass target frequency beyond the limits of current policy. Today most of cpufreq platform drivers are doing this check in their target routines. Why not move it to __cpufreq_driver_target(). I wanted to get your opinion on this before making changes

Re: [GIT PULL] pinctrl patches for v3.7-rc3+

2012-10-24 Thread Linus Walleij
On Thu, Oct 25, 2012 at 8:31 AM, Linus Walleij wrote: > On Thu, Oct 25, 2012 at 2:04 AM, Linus Torvalds > wrote: > >> On Wed, Oct 24, 2012 at 4:57 AM, Linus Walleij >> wrote: >>> >>> here are some accumulated pinctrl patches since -rc1, with a >>> verboser description in the (signed) tag. >> >>

Re: [PATCH] aoe: avoid using skb member after dev_queue_xmit

2012-10-24 Thread Dan Carpenter
On Wed, Oct 24, 2012 at 03:08:07PM -0700, Andrew Morton wrote: > On Wed, 24 Oct 2012 14:26:13 -0400 > Ed Cashin wrote: > > > After calling dev_queue_xmit it is no longer safe to access the > > members of the skb. > > > > Reported-by: Dan Carpenter > > hm, that was clever. How did Dan detect t

[PATCH v4] serial/arc-uart: Add New Driver

2012-10-24 Thread Vineet.Gupta1
From: Vineet Gupta Hi Greg, Rebased off of tty-next and verfied that it builds fine. Please consider applying. Thanks, Vineet v4: * UAPI disintegration fallout for serial_core.h * rebased off of tty-next v3: * Removed empty arc_serial_set_ldisc() * More set_termios fixes - CSIZE forced to CS8

Re: [PATCH] ARM: dt: tegra: ventana: define pinmux for ddc

2012-10-24 Thread Mark Zhang
On 10/23/2012 01:14 AM, Stephen Warren wrote: On 10/22/2012 01:29 AM, Mark Zhang wrote: On 10/19/2012 11:48 PM, Stephen Warren wrote: On 10/18/2012 11:58 PM, Mark Zhang wrote: Define pinmux for DDC. The DDC pinmux in Ventana is 2 pins in I2C2. +++ b/arch/arm/boot/dts/tegra20-ventana.dts

Re: [GIT PULL] pinctrl patches for v3.7-rc3+

2012-10-24 Thread Linus Walleij
On Thu, Oct 25, 2012 at 2:04 AM, Linus Torvalds wrote: > On Wed, Oct 24, 2012 at 4:57 AM, Linus Walleij > wrote: >> >> here are some accumulated pinctrl patches since -rc1, with a >> verboser description in the (signed) tag. > > Hmm. Your description contains several commits that were already >

[PATCH] serial/arc-uart: Add new driver

2012-10-24 Thread Vineet.Gupta1
From: Vineet Gupta Driver for non-standard on-chip UART, instantiated in the ARC (Synopsys) FPGA Boards such as ARCAngel4/ML50x Signed-off-by: Vineet Gupta --- drivers/tty/serial/Kconfig | 25 ++ drivers/tty/serial/Makefile |1 + drivers/tty/serial/arc_uart.c| 747 +++

Re: [PATCH 000/193] remove CONFIG_EXPERIMENTAL

2012-10-24 Thread Kees Cook
On Wed, Oct 24, 2012 at 6:25 PM, wrote: > On Tue, 23 Oct 2012 13:01:13 -0700, Kees Cook said: >> This config item has not carried much meaning for a while now and is >> almost always enabled by default (especially in distro builds). As agreed >> during the Linux kernel summit, it should be remove

Re: [PATCH v2 1/3] drivers: bus: ocp2scp: add pdata support

2012-10-24 Thread Felipe Balbi
Hi, On Wed, Oct 24, 2012 at 05:48:07PM -0700, Tony Lindgren wrote: > * Tony Lindgren [121016 09:53]: > > * Kishon Vijay Abraham I [121007 23:01]: > > > ocp2scp was not having pdata support which makes *musb* fail for non-dt > > > boot in OMAP platform. The pdata will have information about the d

Re: [PATCH] exec: do not leave bprm->interp on stack

2012-10-24 Thread Kees Cook
On Wed, Oct 24, 2012 at 9:16 PM, Al Viro wrote: > On Wed, Oct 24, 2012 at 04:20:32PM -0700, Kees Cook wrote: >> If a series of scripts are executed, each triggering module loading via >> unprintable bytes in the script header, kernel stack contents can leak >> into the command line. >> >> Normally

Re: [RFC][PATCH] sched: Fix a deadlock of cpu-hotplug

2012-10-24 Thread Srivatsa S. Bhat
On 10/25/2012 09:02 AM, Michael Wang wrote: > On 10/24/2012 05:38 PM, Peter Zijlstra wrote: >> On Wed, 2012-10-24 at 17:25 +0800, Huacai Chen wrote: >>> We found poweroff sometimes fails on our computers, so we have the >>> lock debug options configured. Then, when we do poweroff or take a >>> cpu

Re: Kdump with signed images

2012-10-24 Thread Mimi Zohar
On Wed, 2012-10-24 at 13:36 -0400, Vivek Goyal wrote: > On Tue, Oct 23, 2012 at 09:19:27AM -0700, Eric W. Biederman wrote: > > Vivek Goyal writes: > > > > > On Tue, Oct 23, 2012 at 09:18:54AM -0400, Vivek Goyal wrote: > > > > > > [..] > > >> > >> There are 3 options for trusting /sbin/kexec. The

Re: [sqlite] light weight write barriers

2012-10-24 Thread Theodore Ts'o
On Thu, Oct 25, 2012 at 12:18:47AM -0500, Nico Williams wrote: > > By trusting fsync(). And if you don't care about immediate Durability > you can run the fsync() in a background thread and mark the associated > transaction as completed in the next transaction to be written after > the fsync() co

arch/x86/Kconfig: not select X86_MPPARSE when SFI is present

2012-10-24 Thread Bin Gao
MPS tables are not needed for systems that have proper ACPI support. This is also true for systems that have SFI in place. So this patch is to exclude X86_MPPARSE when either ACPI or SFI is present. Signed-off-by: Bin Gao --- arch/x86/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 delet

Re: lots of suspicious RCU traces

2012-10-24 Thread Sergey Senozhatsky
On (10/25/12 00:32), Frederic Weisbecker wrote: > > My understanding is (I may be wrong) that we can schedule() from ptrace > > chain to > > some arbitrary task, which will continue its execution from the point where > > RCU assumes > > CPU as not idle, while CPU in fact still in idle state -- no

Re: lots of suspicious RCU traces

2012-10-24 Thread Sergey Senozhatsky
On (10/25/12 00:32), Frederic Weisbecker wrote: > First of all, thanks a lot for your report. > > 2012/10/24 Sergey Senozhatsky : > > On (10/24/12 20:06), Oleg Nesterov wrote: > >> On 10/24, Sergey Senozhatsky wrote: > >> > > >> > small question, > >> > > >> > ptrace_notify() and forward calls are

[PATCH 2/2] Remove struct CsrEvent

2012-10-24 Thread SeongJae Park
Nobody use struct CsrEvent. Remove it. Signed-off-by: SeongJae Park --- drivers/staging/csr/csr_framework_ext_types.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/csr/csr_framework_ext_types.h b/drivers/staging/csr/csr_framework_ext_types.h index d97c2de.

[PATCH 1/2] Remove CsrEventHandle and functions using it

2012-10-24 Thread SeongJae Park
Nobody use CsrEventHandle, Nobody call function using it as parameter. So, remove it. Signed-off-by: SeongJae Park --- drivers/staging/csr/csr_framework_ext.h | 61 - drivers/staging/csr/csr_framework_ext_types.h |2 - 2 files changed, 63 deletions(-) diff --

Re: [RFC] Kdump with signed images

2012-10-24 Thread Mimi Zohar
On Wed, 2012-10-24 at 13:19 -0400, Vivek Goyal wrote: > On Tue, Oct 23, 2012 at 09:44:59AM -0700, Eric W. Biederman wrote: > > Matthew Garrett writes: > > > > > On Tue, Oct 23, 2012 at 10:59:20AM -0400, Vivek Goyal wrote: > > > > > >> But what about creation of a new program which can call kexec_

Re: [sqlite] light weight write barriers

2012-10-24 Thread Theodore Ts'o
On Wed, Oct 24, 2012 at 03:03:00PM -0700, da...@lang.hm wrote: > Like what is being described for sqlite, loosing the tail end of the > messages is not a big problem under normal conditions. But there is > a need to be sure that what is there is complete up to the point > where it's lost. > > this

[GIT PULL] CMA and DMA-mapping fixes for v3.7-rc3

2012-10-24 Thread Marek Szyprowski
Hi Linus, I would like to ask for pulling some minor fixes for both CMA (Contiguous Memory Allocator) and DMA-mapping framework for v3.7-rc3. The following changes since commit 6f0c0580b70c89094b3422ba81118c7b959c7556: Linux 3.7

The idea about scheduler test module(STM)

2012-10-24 Thread Michael Wang
Hi, Folks Charles has raised a problem that we don't have any tool yet for testing the scheduler with out any disturb from other subsystem, and I also found it's hard to test scheduler optimize patch, since the improvement could be easily eaten by other subsystem like IO. So Let's check the tools

Re: [PATCH v2 00/10] sta2x11-mfd patches

2012-10-24 Thread Alessandro Rubini
> this is v2 of a patchset already submitted on 2012/09/12 Thanks Davide. For the whole series: Acked-by: Alessandro Rubini /alessandro -- 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 htt

Re: [PATCH 1/2] arm: mvebu: increase atomic coherent pool size for armada 370/XP

2012-10-24 Thread Marek Szyprowski
Hello, On 10/24/2012 3:49 PM, Gregory CLEMENT wrote: For Armada 370/XP we have the same problem that for the commit cb01b63, so we applied the same solution: "The default 256 KiB coherent pool may be too small for some of the Kirkwood devices, so increase it to make sure that devices will be abl

Re: [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung

2012-10-24 Thread Justin P. Mattock
On Tue, Oct 23, 2012 at 10:06:52AM -0700, Justin P. Mattock wrote: > This is happening both with MAINLINE and NEXT. > > basically system is running fine, then under load system becomes > really sluggish and unresponsive. I was able to get dmesg of the > error..: > > [ 7745.007008] ath9k 0

Re: [PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-24 Thread Geert Uytterhoeven
On Wed, Oct 24, 2012 at 11:53 PM, Juri Lelli wrote: > +#ifdef __SIZEOF_INT128__ /* gcc-4.6+ */ > + unsigned __int128 val; > +#endif So the definition of val depends on (gcc) __SIZEOF_INT128__... > +/* > + * Make usage of __int128 dependent on arch code so they can > + * judge if gcc is doi

Re: [sqlite] light weight write barriers

2012-10-24 Thread Nico Williams
On Wed, Oct 24, 2012 at 8:04 PM, wrote: > On Wed, 24 Oct 2012, Nico Williams wrote: >> COW is "copy on write", which is actually a bit of a misnomer -- all >> COW means is that blocks aren't over-written, instead new blocks are >> written. In particular this means that inodes, indirect blocks, d

Re: [sqlite] light weight write barriers

2012-10-24 Thread Theodore Ts'o
On Tue, Oct 23, 2012 at 03:53:11PM -0400, Vladislav Bolkhovitin wrote: > Yes, SCSI has full support for ordered/simple commands designed > exactly for that task: to have steady flow of commands even in case > when some of them are ordered. SCSI does, yes --- *if* the device actually implements

Re: shmem_getpage_gfp VM_BUG_ON triggered. [3.7rc2]

2012-10-24 Thread Ni zhan Chen
On 10/25/2012 12:36 PM, Hugh Dickins wrote: On Wed, 24 Oct 2012, Dave Jones wrote: Machine under significant load (4gb memory used, swap usage fluctuating) triggered this... WARNING: at mm/shmem.c:1151 shmem_getpage_gfp+0xa5c/0xa70() Pid: 29795, comm: trinity-child4 Not tainted 3.7.0-rc2+ #49

Re: pi futex oops in __lock_acquire

2012-10-24 Thread Darren Hart
On 10/24/2012 01:24 PM, Dave Jones wrote: > I've been able to trigger this for the last week or so. > Unclear whether this is a new bug, or my fuzzer got smarter, but I see the > pi-futex code hasn't changed since the last time it found something.. > > > BUG: unable to handle kernel NULL pointe

Re: [PATCH] [RESEND 2] Take over futex of dead task only if FUTEX_WAITERS is not set

2012-10-24 Thread Siddhesh Poyarekar
On 25 October 2012 10:06, Darren Hart wrote: > Absolutely, that was great. Siddhesh, any objection to this test being > incorporated into futextest? > > http://git.kernel.org/?p=linux/kernel/git/dvhart/futextest.git;a=summary > I have no objection to the test being incorporated into futextest. T

Re: [PATCH] [RESEND 2] Take over futex of dead task only if FUTEX_WAITERS is not set

2012-10-24 Thread Darren Hart
On 10/24/2012 11:08 AM, Thomas Gleixner wrote: > On Wed, 24 Oct 2012, Siddhesh Poyarekar wrote: > >>> Now there is a different solution to that problem. Do not look at the >>> user space value at all and enforce a lookup of possibly available >>> pi_state. If pi_state can be found, then the new

Re: shmem_getpage_gfp VM_BUG_ON triggered. [3.7rc2]

2012-10-24 Thread Hugh Dickins
On Wed, 24 Oct 2012, Dave Jones wrote: > Machine under significant load (4gb memory used, swap usage fluctuating) > triggered this... > > WARNING: at mm/shmem.c:1151 shmem_getpage_gfp+0xa5c/0xa70() > Pid: 29795, comm: trinity-child4 Not tainted 3.7.0-rc2+ #49 > Call Trace: > [] warn_slowpath_com

Re: [PATCH] [RESEND 2] Take over futex of dead task only if FUTEX_WAITERS is not set

2012-10-24 Thread Darren Hart
On 10/23/2012 01:29 PM, Thomas Gleixner wrote: > Darren, Siddhesh, > > On Tue, 23 Oct 2012, Darren Hart wrote: > >> Hi Siddesh, >> >> Thanks for the patch and your work to isolate it in the glibc bug 14076. >> >> On 10/21/2012 08:20 PM, Siddhesh Poyarekar wrote: >>> In futex_lock_pi_atomic, we

RE: [PATCH v2] Support Elan Touchscreen eKTF product.

2012-10-24 Thread 劉嘉駿
Hi Dmitry, Thanks for review. > -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Thursday, October 25, 2012 2:13 AM > To: Scott Liu > Cc: linux-in...@vger.kernel.org; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > Benjamin Tissoires;

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-24 Thread Fengguang Wu
Hi Chen, > But how can bdi related ra_pages reflect different files' readahead > window? Maybe these different files are sequential read, random read > and so on. It's simple: sequential reads will get ra_pages readahead size while random reads will not get readahead at all. Talking about the be

Re: [PATCH V5] PWM: Add SPEAr PWM chip driver support

2012-10-24 Thread Viresh Kumar
On 25 October 2012 09:39, Shiraz Hashim wrote: > Add support for PWM chips present on SPEAr platforms. These PWM > chips support 4 channel output with programmable duty cycle and > frequency. > > More details on these PWM chips can be obtained from relevant > chapter of reference manual, present a

Re: [PATCH 1/2 V2] memory_hotplug: fix possible incorrect node_states[N_NORMAL_MEMORY]

2012-10-24 Thread KOSAKI Motohiro
On Wed, Oct 24, 2012 at 5:43 AM, Lai Jiangshan wrote: > Currently memory_hotplug only manages the node_states[N_HIGH_MEMORY], > it forgets to manage node_states[N_NORMAL_MEMORY]. it may cause > node_states[N_NORMAL_MEMORY] becomes incorrect. > > Example, if a node is empty before online, and we on

[PATCH V5] PWM: Add SPEAr PWM chip driver support

2012-10-24 Thread Shiraz Hashim
Add support for PWM chips present on SPEAr platforms. These PWM chips support 4 channel output with programmable duty cycle and frequency. More details on these PWM chips can be obtained from relevant chapter of reference manual, present at following[1] location. 1. http://www.st.com/internet/mcu

Re: [PATCH V4] PWM: Add SPEAr PWM chip driver support

2012-10-24 Thread Shiraz Hashim
On Wed, Oct 24, 2012 at 07:51:37AM +0200, Thierry Reding wrote: > On Mon, Oct 22, 2012 at 04:36:41PM +0530, Shiraz Hashim wrote: > [...] > > +struct spear_pwm_chip { > > + void __iomem *mmio_base; > > + struct clk *clk; > > + struct pwm_chip chip; > > My editor shows a tab between pwm_chip a

Re: [PATCH] exec: do not leave bprm->interp on stack

2012-10-24 Thread Al Viro
On Wed, Oct 24, 2012 at 04:20:32PM -0700, Kees Cook wrote: > If a series of scripts are executed, each triggering module loading via > unprintable bytes in the script header, kernel stack contents can leak > into the command line. > > Normally execution of binfmt_script and binfmt_misc happens > r

linux-next: Tree for Oct 25

2012-10-24 Thread Stephen Rothwell
Hi all, Changes since 201201024: New tree: akpm-current The modules tree lost its conflict. The pm tree lost its build failure. The usb tree gained a conflict against the usb.current tree. The staging tree gained a conflict against the staging.current tree. The akpm tree lost its 2 build fai

[PATCH v11 1/6] start vm after reseting it

2012-10-24 Thread Hu Tao
From: Wen Congyang The guest should run after reseting it, but it does not run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. We don't set runstate to RUN_STATE_PAUSED when reseting the guest, so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED to

Re: [PATCH V2 6/6] Thermal: Add ST-Ericsson DB8500 thermal properties and platform data.

2012-10-24 Thread Hongbo Zhang
[...] >> /* >> + * Thermal Sensor >> + */ >> + >> +static struct resource db8500_thsens_resources[] = { >> + { >> + .name = "IRQ_HOTMON_LOW", >> + .start = IRQ_PRCMU_HOTMON_LOW, >> + .end= IRQ_PRCMU_HOTMON_LOW, >> + .flags = IORES

[PATCH V2 10/23] printk: Rename log_wait to printk_log_wait

2012-10-24 Thread Joe Perches
Make this generic variable more specific to the printk subsystem to allow this variable to be used without a specific extern. Also update fs/proc/kmsg.c as it uses log_wait. Signed-off-by: Joe Perches --- fs/proc/kmsg.c |4 ++-- kernel/printk/printk.c | 12 ++-- 2 files ch

[PATCH v11 4/6] add a new qevent: QEVENT_GUEST_PANICKED

2012-10-24 Thread Hu Tao
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang --- monitor.c |1 + monitor.h |1 + 2 files changed, 2 insertions(+) diff --git a/monitor.c b/monitor.c index d17ae2d..d2e4bbf 100644 --- a/monitor.c +++ b/monitor.c @@ -457,6 +457,7 @@ static const char *

Re: [tip:sched/core] sched: Track the runnable average on a per-task entity basis

2012-10-24 Thread li guang
在 2012-10-24三的 02:43 -0700,tip-bot for Paul Turner写道: > Commit-ID: 9d85f21c94f7f7a84d0ba686c58aa6d9da58fdbb > Gitweb: http://git.kernel.org/tip/9d85f21c94f7f7a84d0ba686c58aa6d9da58fdbb > Author: Paul Turner > AuthorDate: Thu, 4 Oct 2012 13:18:29 +0200 > Committer: Ingo Molnar > CommitDa

[PATCH V2 23/23] printk: Move kmsg_dump functions to separate file

2012-10-24 Thread Joe Perches
Generic restructuring. Create kmsg_dump.c, add to Makefile and remove from printk.c Signed-off-by: Joe Perches --- kernel/printk/Makefile|1 + kernel/printk/kmsg_dump.c | 328 + kernel/printk/printk.c| 318 ---

[PATCH V2 22/23] printk: Add printk_syslog.c and .h

2012-10-24 Thread Joe Perches
Move syslog functions to a separate file. Add compilation unit to Makefile. Add missing #include Reported-by: Yuanhan Liu Signed-off-by: Joe Perches --- kernel/printk/Makefile|1 + kernel/printk/printk.c| 351 + kernel/printk/printk_

[PATCH V2 21/23] printk: Move functions printk_print_time and printk_msg_print_text

2012-10-24 Thread Joe Perches
Move these functions to printk_log. Move the static function print_prefix too. Add "#include " to printk_log.c. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 112 --- kernel/printk/printk_log.c | 114

[PATCH V2 20/23] printk: Prefix print_time and msg_print_text with printk_

2012-10-24 Thread Joe Perches
Make these static functions global and prefix them with printk_. Create declarations for these functions in printk_log.h Signed-off-by: Joe Perches --- kernel/printk/printk.c | 43 --- kernel/printk/printk_log.h |4 2 files changed, 28 inser

[PATCH V2 19/23] printk: Move devkmsg bits to separate file

2012-10-24 Thread Joe Perches
Move the devkmsg_ functions and kmsg_fops declaration to devkmsg.c. Add devkmsg.o to Makefile. Signed-off-by: Joe Perches --- kernel/printk/Makefile |1 + kernel/printk/devkmsg.c | 309 +++ kernel/printk/printk.c | 296

[PATCH V2 18/23] printk: Rename and move 2 #defines to printk_log.h

2012-10-24 Thread Joe Perches
Rename the LOG_LINE_MAX and PREFIX_MAX #defines with PRINTK_ prefixes. Move the defines to printk_log.h Remove duplicate define too. Fixed redefined PRINTK_LOG_LINE_MAX and PRINTK_PREFIX_MAX. Reported-by: Yuanhan Liu Signed-off-by: Joe Perches --- kernel/printk/printk.c | 22

[PATCH V2 17/23] printk: Make wait_queue_head_t printk_log_wait extern

2012-10-24 Thread Joe Perches
Move the variable to the .h file too. Signed-off-by: Joe Perches --- kernel/printk/printk_log.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/printk/printk_log.h b/kernel/printk/printk_log.h index 0327f8d..e846f1d 100644 --- a/kernel/printk/printk_log.h +++ b/ke

[PATCH V2 16/23] printk: Add printk_log.c

2012-10-24 Thread Joe Perches
Move print_log variables and functions into a separate file. Signed-off-by: Joe Perches --- kernel/printk/Makefile |1 + kernel/printk/printk.c | 128 - kernel/printk/printk_log.c | 149 3 files change

[PATCH V2 15/23] printk: Add and use printk_log.h

2012-10-24 Thread Joe Perches
Create a header file for printk_log functions and variables. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 91 +-- kernel/printk/printk_log.h | 115 2 files changed, 116 insertions(+), 90 deletions(-)

Re: [PATCH V2 6/6] Thermal: Add ST-Ericsson DB8500 thermal properties and platform data.

2012-10-24 Thread Hongbo Zhang
On 24 October 2012 22:32, Joe Perches wrote: > On Wed, 2012-10-24 at 19:58 +0800, hongbo.zhang wrote: >> This patch adds device tree properties for ST-Ericsson DB8500 thermal driver, >> also adds the platform data to support the old fashion. > > Just a trivial note: > >> diff --git a/arch/arm/mach

[PATCH V2 14/23] printk: Rename LOG_ALIGN to PRINTK_LOG_ALIGN

2012-10-24 Thread Joe Perches
Make the #define more specific to the printk subsystem. Signed-off-by: Joe Perches --- kernel/printk/printk.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 0134b2e..bc0b4ed 100644 --- a/kernel/printk/printk.c

[PATCH V2 13/23] printk: Remove static from printk_ variables

2012-10-24 Thread Joe Perches
Allow a separation of functions and variables into multiple files. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 46 +++--- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 3

[PATCH V2 12/23] printk: Rename clear_seq and clear_idx variables

2012-10-24 Thread Joe Perches
Make these variables more specific to the printk log subsystem adding prefix printk_log_. This allows them to become non-static. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 34 +- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/kern

[PATCH V2 11/23] printk: Rename logbuf_lock to printk_logbuf_lock

2012-10-24 Thread Joe Perches
Make this generic name more specific to the printk subsystem and allow it to become non-static. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 102 1 files changed, 51 insertions(+), 51 deletions(-) diff --git a/kernel/printk/printk.c b

[PATCH V2 09/23] printk: Rename enum log_flags to printk_log_flags

2012-10-24 Thread Joe Perches
Make this generic enum more specific to the printk subsystem. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 32 +--- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 992c064..341f2d9 100

[PATCH V2 08/23] printk: Rename log_ variables and functions

2012-10-24 Thread Joe Perches
Make these generic names more specific to the printk subsystem and allow these variables and functions to become non-static. Rename log_text to printk_log_text. Rename log_dict to printk_log_dict. Rename log_from_idx to printk_log_from_idx. Rename log_next to printk_log_next. Rename log_store to p

[PATCH V2 07/23] printk: Rename log_first and log_next variables

2012-10-24 Thread Joe Perches
Make these generic names more specific to the printk subsystem and allow these variables to become non-static. Rename log_first_idx to printk_log_first_idx. Rename log_first_seq to printk_log_first_seq. Rename log_next_idx to printk_log_next_idx. Rename log_next_seq to printk_log_next_seq. Signed

[PATCH V2 06/23] printk: Rename log_buf and __LOG_BUF_LEN

2012-10-24 Thread Joe Perches
Make these generic names more specific to the printk subsystem and allow these variables to become non-static. Rename log_buf to printk_log_buf. Rename __LOG_BUF_LEN define to __PRINTK_LOG_BUF_LEN. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 76

[PATCH V2 05/23] printk: rename struct log to struct printk_log

2012-10-24 Thread Joe Perches
Rename the struct to enable moving portions of printk.c to separate files. The rename changes output of /proc/vmcoreinfo. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 80 1 files changed, 40 insertions(+), 40 deletions(-) diff --git

[PATCH V2 04/23] printk: Use pointer for console_cmdline indexing

2012-10-24 Thread Joe Perches
Make the code a bit more compact by always using a pointer for the active console_cmdline. Move overly indented code to correct indent level. Signed-off-by: Joe Perches --- kernel/printk/printk.c | 49 +-- 1 files changed, 26 insertions(+), 23 delet

[PATCH V2 03/23] printk: Move braille console support into separate braille.[ch] files

2012-10-24 Thread Joe Perches
Create files with prototypes and static inlines for braille support. Make braille_console functions return 1 on success. Corrected CONFIG_A11Y_BRAILLE_CONSOLE=n _braille_console_setup return value to NULL. link: http://lkml.kernel.org/r/1350999678-17441-1-git-send-email-ming@canonical.com

[PATCH V2 02/23] printk: Add console_cmdline.h

2012-10-24 Thread Joe Perches
Add an include file for the console_cmdline struct so that the braille console driver can be separated. Signed-off-by: Joe Perches --- kernel/printk/console_cmdline.h | 14 ++ kernel/printk/printk.c | 13 - 2 files changed, 18 insertions(+), 9 deletions(-) c

[PATCH V2 01/23] printk: Move to separate directory for easier modification

2012-10-24 Thread Joe Perches
Make it easier to break up printk into bite-sized chunks. Remove printk path/filename from comment. Signed-off-by: Joe Perches --- kernel/Makefile |3 ++- kernel/printk/Makefile |1 + kernel/{ => printk}/printk.c |2 -- 3 files changed, 3 insertions(+), 3 deletion

[PATCH V2 00/23] printk: refactoring

2012-10-24 Thread Joe Perches
Make printk a bit more readable. Created directory: kernel/printk Created source files: printk.cGeneric printk and console routines printk_log.[ch] Log buffer routines printk_syslog.[ch] syslog(2) routines braille.c

[PATCH v11 5/6] introduce a new qom device to deal with panicked event

2012-10-24 Thread Hu Tao
If the target is x86/x86_64, the guest's kernel will write 0x01 to the port KVM_PV_EVENT_PORT when it is panciked. This patch introduces a new qom device kvm_pv_ioport to listen this I/O port, and deal with panicked event according to panicked_action's value. The possible actions are: 1. emit QEVEN

[PATCH v11 6/6] allower the user to disable pv event support

2012-10-24 Thread Hu Tao
From: Wen Congyang Signed-off-by: Wen Congyang --- hw/pc_piix.c|6 +- qemu-config.c |4 qemu-options.hx |3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index fb67dc1..864d356 100644 --- a/hw/pc_piix.c +++ b/hw/pc_pii

Re: mmotm 2012-10-24-17-15 uploaded

2012-10-24 Thread Stephen Rothwell
Hi Andrew, On Wed, 24 Oct 2012 17:16:27 -0700 a...@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2012-10-24-17-15 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ I have split this series so that all the next tagged patches before linux-next.patch are in the akpm-cu

[PATCH v11 3/6] add a new runstate: RUN_STATE_GUEST_PANICKED

2012-10-24 Thread Hu Tao
From: Wen Congyang The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang --- qapi-schema.json |6 +- qmp.c|3 ++- vl.c |7 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.j

[PATCH v11] kvm: notify host when the guest is panicked

2012-10-24 Thread Hu Tao
We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is panicked. If management app does not do auto dump, the guest's user can do dump by hand

[PATCH v11 2/6] update kernel headers

2012-10-24 Thread Hu Tao
update kernel headers to add pv event macros. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- linux-headers/asm-x86/kvm_para.h |1 + linux-headers/linux/kvm_para.h |6 ++ 2 files changed, 7 insertions(+) diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86/

linux-next: build warning after merge of the akpm tree

2012-10-24 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (x86_64 allmodconfig) produced this warning: mm/rmap.c: In function 'try_to_unmap_cluster': mm/rmap.c:1364:9: warning: unused variable 'pud' [-Wunused-variable] mm/rmap.c:1363:9: warning: unused variable 'pgd' [-Wunused-variable] I

Re: [RFC][PATCH] sched: Fix a deadlock of cpu-hotplug

2012-10-24 Thread Michael Wang
On 10/24/2012 05:38 PM, Peter Zijlstra wrote: > On Wed, 2012-10-24 at 17:25 +0800, Huacai Chen wrote: >> We found poweroff sometimes fails on our computers, so we have the >> lock debug options configured. Then, when we do poweroff or take a >> cpu down via cpu-hotplug, kernel complain as below. To

Re: linux-next: build warnings after merge of the akpm tree

2012-10-24 Thread Stephen Rothwell
Hi Andrew, On Thu, 25 Oct 2012 14:28:54 +1100 Stephen Rothwell wrote: > > After merging the akpm tree, today's linux-next build (powerpc > ppc64_defconfig) produced these warnings: > > drivers/infiniband/hw/cxgb3/cxio_resource.c: In function > '__cxio_init_resource_fifo': > drivers/infiniband/

linux-next: build warnings after merge of the akpm tree

2012-10-24 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) produced these warnings: drivers/infiniband/hw/cxgb3/cxio_resource.c: In function '__cxio_init_resource_fifo': drivers/infiniband/hw/cxgb3/cxio_resource.c:62:3: warning: comparison of distinct pointer typ

RE: [PATCH] extcon : callback function to read cable property

2012-10-24 Thread Tc, Jenny
> Subject: Re: [PATCH] extcon : callback function to read cable property > > On 10/19/2012 12:13 PM, Tc, Jenny wrote: > > > > > >> Subject: Re: [PATCH] extcon : callback function to read cable > >> property > >> > >> I think the reason why we have extcon is in first place is to >

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-24 Thread YingHang Zhu
On Thu, Oct 25, 2012 at 10:58 AM, Fengguang Wu wrote: > Hi Chen, > >> But how can bdi related ra_pages reflect different files' readahead >> window? Maybe these different files are sequential read, random read >> and so on. > > It's simple: sequential reads will get ra_pages readahead size while >

Re: [PATCH] mm: readahead: remove redundant ra_pages in file_ra_state

2012-10-24 Thread YingHang Zhu
On Thu, Oct 25, 2012 at 10:38 AM, Fengguang Wu wrote: > Hi YingHang, > >> Actually I've talked about it with Fengguang, he advised we should unify the >> ra_pages in struct bdi and file_ra_state and leave the issue that >> spreading data >> across disks as it is. >> Fengguang, what's you opinion a

Re: [PATCH 1/5] mm: compaction: Move migration fail/success stats to migrate.c

2012-10-24 Thread David Rientjes
On Mon, 22 Oct 2012, Mel Gorman wrote: > The compact_pages_moved and compact_pagemigrate_failed events are > convenient for determining if compaction is active and to what > degree migration is succeeding but it's at the wrong level. Other > users of migration may also want to know if migration is

[RFC] Support volatile range for anon vma

2012-10-24 Thread Minchan Kim
This patch introudce new madvise behavior MADV_VOLATILE and MADV_NOVOLATILE for anonymous pages. It's different with John Stultz's version which considers only tmpfs. This patch cannot cover John's one so if below idea is proved as reasonable maybe, we can unify both concepts and I hope interface c

Re[2]:[RESEND PATCH] module: Fix kallsyms to show the last symbol properly

2012-10-24 Thread Masaki Kimura
Hi Rusty, Thank you for your review of my patch and improvement for it. >So I prefer the following fix: I also prefer your way of fix from readability point of view. I tested your patch and confirmed that it works fine. Best Regards, Masaki -- To unsubscribe from this list: send the line "unsub

Re: mmotm 2012-10-24-17-15 uploaded (uml)

2012-10-24 Thread Stephen Rothwell
Hi Randy, On Wed, 24 Oct 2012 18:17:59 -0700 Randy Dunlap wrote: > > uml on x86_64 defconfig: > > arch/um/drivers/chan_kern.c: In function 'tty_receive_char': > arch/um/drivers/chan_kern.c:89:42: error: 'struct tty_struct' has no member > named 'raw' Caused by commit 53c5ee2cfb4d ("TTY: move l

  1   2   3   4   5   6   7   8   9   >