Re: [PATCH 08/16] virtio_net: drop config_enable

2014-10-06 Thread Michael S. Tsirkin
On Mon, Oct 06, 2014 at 03:02:38PM -0400, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Sun, 5 Oct 2014 19:07:13 +0300 > > > Now that virtio core ensures config changes don't arrive during probing, > > drop config_enable flag in virtio net. > > On removal, flush is now sufficient to gu

Re: [PATCH] target/file: fix inclusive vfs_fsync_range() end

2014-10-06 Thread Christoph Hellwig
On Mon, Oct 06, 2014 at 04:40:13PM -0700, Zach Brown wrote: > Both of the file target's calls to vfs_fsync_range() got the end offset > off by one. The range is inclusive, not exclusive. It would sync a bit > more data than was required. > > The sync path already tested the length of the range a

[PATCH v3] clocksource: arch_timer: Allow the device tree to specify uninitialized CNTVOFF

2014-10-06 Thread Sonny Rao
From: Doug Anderson Some 32-bit (ARMv7) systems are architected like this: * The firmware doesn't know and doesn't care about hypervisor mode and we don't want to add the complexity of hypervisor there. * The firmware isn't involved in SMP bringup or resume. * The ARCH timer come up with an

Re: [PATCH] usb: gadget: f_fs: add "zombie" mode

2014-10-06 Thread Robert Baldyga
On 10/07/2014 04:28 AM, Felipe Balbi wrote: > Hi, > > On Mon, Oct 06, 2014 at 01:25:14PM +0200, Robert Baldyga wrote: >> Since we can compose gadgets from many functions, there is the problem >> related to gadget breakage while FunctionFS daemon being closed. In some >> cases it's strongly desired

Re: [PATCH v2 4/5] perf/sdt: Delete SDT events from cache

2014-10-06 Thread Hemant Kumar
On 10/07/2014 08:47 AM, Namhyung Kim wrote: On Wed, 01 Oct 2014 08:18:41 +0530, Hemant Kumar wrote: This patch adds the support to delete SDT events from the cache. To delete an event corresponding to a file, first the cache is read into the file_hash list. The key is calculated from the file n

Re: [PATCH v2 2/5] perf/sdt: Add SDT events into a cache

2014-10-06 Thread Hemant Kumar
On 10/07/2014 08:29 AM, Namhyung Kim wrote: On Wed, 01 Oct 2014 08:17:48 +0530, Hemant Kumar wrote: This patch adds a new sub-command to perf : sdt-cache. sdt-cache command can be used to add, remove and dump SDT events. This patch adds support to only "add" the SDT events. The rest of the patc

Re: [PATCH v3 0/5] powerpc/perf: Miscellaneous fixes

2014-10-06 Thread Sukadev Bhattiprolu
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote: | Miscellaenous fixes for perf and 24x7 counters in powerpc. | | Patches 1,3,4 were submitted earlier as a part of the parametrized | events for 24x7 counters. But they are not directly related to the | parametrized events. | | Patch 2 simpl

Re: [PATCH v9 1/3] drm: rockchip: Add basic drm driver

2014-10-06 Thread Andrzej Hajda
On 10/07/2014 05:56 AM, Mark yao wrote: > On 2014年09月30日 21:31, Andrzej Hajda wrote: >> Hi Mark, > Hi Andrzej, > Sorry for replying late, I have a vacation before. > Thanks for your review. >> On 09/30/2014 03:03 PM, Mark Yao wrote: >>> From: Mark yao >>> (...) >>> +#ifdef CONFIG_PM_SLEEP

Re: [PATCH] x86, MCE, AMD: move invariant code out from loop body

2014-10-06 Thread Chen Yucong
On Mon, 2014-10-06 at 23:27 +0200, Borislav Petkov wrote: > On Thu, Oct 02, 2014 at 11:20:12PM +0800, Chen Yucong wrote: > > From: Chen Yucong > > Subject: [PATCH] x86, MCE, AMD: move invariant code out from loop body > > > > "mce_threshold_vector = amd_threshold_interrupt;" is loop invariant cod

Re: [PATCH v2 1/5] perf/sdt: ELF support for SDT

2014-10-06 Thread Hemant Kumar
Hi Namhyung, On 10/07/2014 07:50 AM, Namhyung Kim wrote: Hi Hemant, On Wed, 01 Oct 2014 08:17:24 +0530, Hemant Kumar wrote: This patch serves as the basic support to identify and list SDT events in binaries. When programs containing SDT markers are compiled, gcc with the help of assembler di

Re: [PATCH ftrace/for-next ] tracing/kprobes: Replace startup test with selftest script

2014-10-06 Thread Masami Hiramatsu
(2014/10/07 7:33), Steven Rostedt wrote: > On Mon, 06 Oct 2014 11:48:06 + > Masami Hiramatsu wrote: > >> Replace the kprobe_tracer's startup test with two selftest scripts. >> These test cases are testing that the kprobe_event can accept a >> kprobe event with $stack related arguments and a k

[PATCH 01/44] kernel: Add support for poweroff handler call chain

2014-10-06 Thread Guenter Roeck
Various drivers implement architecture and/or device specific means to remove power from the system. For the most part, those drivers set the global variable pm_power_off to point to a function within the driver. This mechanism has a number of drawbacks. Typically only one scheme to remove power

[PATCH 02/44] memory: emif: Use API function to determine poweroff capability

2014-10-06 Thread Guenter Roeck
Use have_kernel_poweroff() to determine if the kernel is able to power off the system. Cc: Santosh Shilimkar Signed-off-by: Guenter Roeck --- drivers/memory/emif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index 04644e7

[PATCH 05/44] mfd: as3722: Drop reference to pm_power_off from devicetree bindings

2014-10-06 Thread Guenter Roeck
Devicetree bindings are supposed to be operating system independent and should thus not describe how a specific functionality is implemented in Linux. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Signed-off-by: Guenter Roeck --- Documentation/devicetree/bindings/mfd/as3722.txt | 3 +-- 1 f

[PATCH 07/44] qnap-poweroff: Drop reference to pm_power_off from devicetree bindings

2014-10-06 Thread Guenter Roeck
Replace reference to pm_power_off (which is an implementation detail) and replace it with a more generic description of the driver's functionality. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Signed-off-by: Guenter Roeck --- Documentation/devicetree/bindings/power_supply/qnap-poweroff.txt

[PATCH 04/44] m68k: Replace mach_power_off with pm_power_off

2014-10-06 Thread Guenter Roeck
Replace mach_power_off with pm_power_off to simplify the subsequent move of pm_power_off to generic code. Cc: Geert Uytterhoeven Cc: Greg Ungerer Cc: Joshua Thompson Signed-off-by: Guenter Roeck --- arch/m68k/emu/natfeat.c | 3 ++- arch/m68k/include/asm/machdep.h | 1 - arch/m68k/kern

[PATCH 10/44] mfd: axp20x: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Lee Jones Cc: Samuel Ortiz Signed-off-by: Guenter Roeck --- drivers/mfd/axp20x.c

[PATCH 06/44] gpio-poweroff: Drop reference to pm_power_off from devicetree bindings

2014-10-06 Thread Guenter Roeck
pm_power_off is an implementation detail. Replace it with a more generic description of the driver's functionality. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Signed-off-by: Guenter Roeck --- Documentation/devicetree/bindings/gpio/gpio-poweroff.txt | 10 +- 1 file changed, 5 inse

Re: [PATCH v2] perf tools: fix off-by-one error in maps

2014-10-06 Thread Namhyung Kim
Hi Stephane, On Mon, 6 Oct 2014 10:35:32 +0200, Stephane Eranian wrote: > This patch fixes off-by-one errors in the management of maps. > A map is defined by start address and length as implemented by map__new(): > > map__init(map, type, start, start + len, pgoff, dso); > > map->start = addr; > ma

[PATCH 09/44] mfd: palmas: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Samuel Ortiz Cc: Lee Jones Signed-off-by: Guenter Roeck --- drivers/mfd/palmas.c

[PATCH 11/44] mfd: retu: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Lee Jones Cc: Samuel Ortiz Signed-off-by: Guenter Roeck --- drivers/mfd/retu-mfd.c |

[PATCH 14/44] mfd: tps80031: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Samuel Ortiz Cc: Lee Jones Signed-off-by: Guenter Roeck --- drivers/mfd/tps80031.c

linux-next: manual merge of the percpu tree with the s390 tree

2014-10-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the percpu tree got a conflict in arch/s390/kernel/vtime.c between commit 4dc0f1e9c0a9 ("s390/idle: consolidate idle functions and definitions") from the s390 tree and commit eb7e7d766326 ("s390: Replace __get_cpu_var uses") from the percpu tree. I fixed it up

[PATCH 16/44] mfd: tps6586x: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Samuel Ortiz Cc: Lee Jones Signed-off-by: Guenter Roeck --- drivers/mfd/tps6586x.c |

[PATCH 15/44] mfd: dm355evm_msp: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Samuel Ortiz Cc: Lee Jones Signed-off-by: Guenter Roeck --- drivers/mfd/dm355evm_msp.

RE: [PATCH v2 net-next] r8169:add support for RTL8168EP

2014-10-06 Thread Hau
> -Original Message- > From: Francois Romieu [mailto:rom...@fr.zoreil.com] > Sent: Tuesday, October 07, 2014 6:13 AM > To: Hau > Cc: net...@vger.kernel.org; nic_swsd; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v2 net-next] r8169:add support for RTL8168EP > > Hau : > [...] > > Do

[PATCH 18/44] mfd: twl4030-power: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Make twl4030_power_off static as it is only called from the twl4030-power driver. Cc: Samuel

[PATCH 12/44] mfd: ab8500-sysctrl: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Linus Walleij Cc: Lee Jones Cc: Samuel Ortiz Signed-off-by: Guenter Roeck --- driver

[PATCH 22/44] power/reset: as3722-poweroff: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Sebastian Reichel Cc: Dmitry Eremin-Solenikov Cc: David Woodhouse Signed-off-by: Guent

[PATCH 13/44] mfd: max8907: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Note that this patch fixes a problem on driver unload as side effect: The old code did not re

[PATCH 19/44] ipmi: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a high priority value of 192 to reflect that the original code overwrites pm_power_off unconditionally. Register poweroff handler after the ipmi system is ready, and unregister it prior to cleanup. This a

[PATCH 23/44] power/reset: qnap-poweroff: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with default priority value of 128 to reflect that the original code generates an error if another poweroff handler has already been registered when the driver is loaded. Cc: Sebastian Reichel Cc: Dmitry Erem

[PATCH 17/44] mfd: tps65910: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Samuel Ortiz Cc: Lee Jones Signed-off-by: Guenter Roeck --- drivers/mfd/tps65910.c

[PATCH 21/44] power/reset: gpio-poweroff: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Other changes: Drop note that there can not be an additional instance of this driver. The or

[PATCH 27/44] x86: apm: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with high priority value of 192 to reflect that the original code overwrites existing poweroff handlers. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: Jiri Kosina Signed-off-by: Guenter Roeck

[PATCH 26/44] x86: iris: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with high priority value of 192 to reflect that the original code overwrites existing poweroff handlers. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Signed-off-by: Guenter Roeck --- arch/x86/pl

[PATCH 28/44] x86: olpc: Register xo1 poweroff handler with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with high priority value of 192 to reflect that the driver explicitly wants to override default poweroff handlers. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Signed-off-by: Guenter Roeck --- a

[PATCH 29/44] staging: nvec: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with default priority value of 128 since we don't know any better. Cc: Julian Andres Klode Cc: Marc Dietrich Cc: Greg Kroah-Hartman Signed-off-by: Guenter Roeck --- drivers/staging/nvec/nvec.c | 24 ++

[PATCH 20/44] power/reset: restart-poweroff: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of seting pm_power_off directly. Register as poweroff handler of last resort since the driver does not really power off the system but executes a restart. Cc: Sebastian Reichel Cc: Dmitry Eremin-Solenikov Cc: David Woodhouse Signed-off-by: Guenter

[PATCH 31/44] arm: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Always use register_poweroff_handler_simple as there is no indication that more than one poweroff handler is registered. If the poweroff handler only resets the system or puts the CPU in sleep mode, select a priority o

[PATCH 24/44] power/reset: msm-powroff: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Select proprity 0 since the code does not really poweroff the system. Signed-off-by: Guenter Roeck --- drivers/power/reset/msm-poweroff.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --g

[PATCH 32/44] arm64: psci: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Guenter Roeck --- arch/arm64/kernel/psci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c

[PATCH 35/44] m68k: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Cc: Geert Uytterhoeven Cc: Joshua Thompson Signed-off-by: Guenter Roeck --- arch/m68k/emu/natfeat.c | 2 +- arch/m68k/mac/config.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/m68k/e

[PATCH 25/44] power/reset: vexpress-poweroff: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Signed-off-by: Guenter Roeck --- drivers/power/reset/vexpress-poweroff.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/power/reset/vexpress-poweroff.c b/drivers/pow

[PATCH 33/44] avr32: atngw100: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Cc: Haavard Skinnemoen Cc: Hans-Christian Egtvedt Signed-off-by: Guenter Roeck --- arch/avr32/boards/atngw100/mrmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/avr32/boards/atngw100/mr

[PATCH 39/44] x86: ce4100: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Signed-off-by: Guenter Roeck --- arch/x86/platform/ce4100/ce4100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/ce410

linux-next: manual merge of the percpu tree with the s390 tree

2014-10-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the percpu tree got a conflict in arch/s390/kernel/processor.c between commit dfcc8c377711 ("s390/vtime: do not reset idle data on CPU hotplug") from the s390 tree and commit eb7e7d766326 ("s390: Replace __get_cpu_var uses") from the percpu tree. I fixed it up

[PATCH 36/44] mips: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. If there is an indication that there can be more than one poweroff handler, use register_poweroff_handler, otherwise use register_poweroff_handler_simple to register the poweroff handler. If the poweroff handler only

[PATCH 37/44] sh: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Signed-off-by: Guenter Roeck --- arch/sh/boards/board-sh7785lcr.c | 2 +- arch/sh/boards/board-urquell.c | 2 +- arch/sh/boards/mach-highlander/setup.c | 2 +- arch/sh/boards/mach-landisk/setup.c| 2

[PATCH 34/44] ia64: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with lower priority of 64 to reflect that the call is expected to be replaced at some point. Cc: Tony Luck Cc: Fenghua Yu Signed-off-by: Guenter Roeck --- arch/ia64/sn/kernel/setup.c | 4 ++-- 1 file chang

[PATCH net-next] r8152: use mutex for hw settings

2014-10-06 Thread Hayes Wang
Use mutex to avoid that the serial hw settings would be interrupted by other settings. Although there is no problem now, it makes the driver more safe. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 69 +++-- 1 file changed, 67 insertions(+),

[PATCH 41/44] x86: pmc_atom: Register poweroff handler with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with a low priority value of 64 to reflect that the original code only sets pm_power_off if it was not already set. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Signed-off-by: Guenter Roeck ---

[PATCH 40/44] x86: intel-mid: Drop registration of dummy poweroff handlers

2014-10-06 Thread Guenter Roeck
A dummy poweroff handler does not serve any purpose. Drop it. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Signed-off-by: Guenter Roeck --- arch/x86/platform/intel-mid/intel-mid.c | 5 - arch/x86/platform/intel-mid/mfld.c | 5 - 2 files changed, 10 deletions(-) diff --

[PATCH 43/44] hwmon: (ab8500) Call kernel_power_off instead of pm_power_off

2014-10-06 Thread Guenter Roeck
Drivers should not call pm_power_off directly; it is not guaranteed to be non-NULL. Call kernel_power_off instead. Cc: Jean Delvare Reviewed-by: Jean Delvare Signed-off-by: Guenter Roeck --- drivers/hwmon/ab8500.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 38/44] x86: lguest: Register with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Cc: Rusty Russell Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Signed-off-by: Guenter Roeck --- arch/x86/lguest/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lguest

[PATCH 44/44] kernel: Remove pm_power_off

2014-10-06 Thread Guenter Roeck
No users of pm_power_off are left, so it is safe to remove the function. Cc: Rafael J. Wysocki Cc: Pavel Machek Cc: Len Brown Signed-off-by: Guenter Roeck --- include/linux/pm.h | 1 - kernel/power/poweroff_handler.c | 10 +- 2 files changed, 1 insertion(+), 10 deletions

linux-next: manual merge of the percpu tree with the s390 tree

2014-10-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the percpu tree got a conflict in arch/s390/kernel/irq.c between commit 201b275f0459 ("s390/nohz: use a per-cpu flag for arch_needs_cpu") from the s390 tree and commit eb7e7d766326 ("s390: Replace __get_cpu_var uses") from the percpu tree. I fixed it up (the fo

linux-next: manual merge of the percpu tree with the s390 tree

2014-10-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the percpu tree got a conflict in arch/s390/include/asm/cputime.h between commit 201b275f0459 ("s390/nohz: use a per-cpu flag for arch_needs_cpu") from the s390 tree and commit eb7e7d766326 ("s390: Replace __get_cpu_var uses") from the percpu tree. I fixed it u

Re: [PATCH v2 3/5] powerpc/powernv: Add winkle infrastructure

2014-10-06 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 13:16 +0530, Shreyas B. Prabhu wrote: > Winkle causes power to be gated off to the entire chiplet. Hence the > hypervisor/firmware state in the entire chiplet is lost. > > This patch adds necessary infrastructure to support waking up from > hypervisor state loss. Specifically

Re: Workable vintage driver support mechanism? (Re: [alsa-devel] [PATCH v3] ES938 support for ES18xx driver)

2014-10-06 Thread Takashi Iwai
At Mon, 6 Oct 2014 20:41:50 +0200, Andreas Mohr wrote: > > On Mon, Oct 06, 2014 at 04:13:12PM +0200, Takashi Iwai wrote: > > At Mon, 6 Oct 2014 15:55:18 +0200, > > Ondrej Zary wrote: > > > ES938 does not depend on ES18xx and can be connected to any device with > > > MIDI > > > interface. Maybe t

[PATCH 42/44] efi: Register poweroff handler with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with low priority value of 64 since the efi code states that this is a poweroff handler of last resort. Cc: Matt Fleming Signed-off-by: Guenter Roeck --- drivers/firmware/efi/reboot.c | 23 +

[PATCH 30/44] acpi: Register poweroff handler with kernel poweroff handler

2014-10-06 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with high priority value of 192 to reflect that the driver explicitly overrides existing poweroff handlers. Cc: Rafael J. Wysocki Cc: Len Brown Signed-off-by: Guenter Roeck --- drivers/acpi/sleep.c | 15 ++

[PATCH 03/44] hibernate: Call have_kernel_poweroff instead of checking pm_power_off

2014-10-06 Thread Guenter Roeck
Poweroff handlers may now be installed with register_poweroff_handler. Use the new API function have_kernel_poweroff to determine if a poweroff handler has been installed. Cc: Rafael J. Wysocki Cc: Pavel Machek Cc: Len Brown Signed-off-by: Guenter Roeck --- kernel/power/hibernate.c | 2 +- 1

Re: [PATCH] perf top: Add a visual cue for toggle zeroing of samples

2014-10-06 Thread Namhyung Kim
Hi Taeung, On Sun, 5 Oct 2014 15:49:34 +0900, Taeung Song wrote: > When 'perf top' is run, one can't easily find a difference > between -z option and normal output. > So I added a visual cue to know whether it is the zeroing or not. [SNIP] > +static int hists__browser_title(struct hists *hists,

Re: [PATCH v2 2/5] powerpc: Adding macro for accessing Thread Switch Control Register

2014-10-06 Thread Benjamin Herrenschmidt
Just fold that one in the patch that uses that register On Wed, 2014-10-01 at 13:16 +0530, Shreyas B. Prabhu wrote: > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: linuxppc-...@lists.ozlabs.org > Signed-off-by: Shreyas B. Prabhu > --- > arch/powerpc/include/asm/

Re: [PATCH v2 1/5] powerpc/powernv: Add OPAL call to save and restore

2014-10-06 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 13:16 +0530, Shreyas B. Prabhu wrote: > PORE can be programmed to restore hypervisor registers when waking up > from deep cpu idle states like winkle. Tell us a bit more about what "PORE" is. IE, explain a tiny engine will reconfigure the core and its ucode can be patched to

Re: [PATCH v2 3/3] powerpc/powernv/cpuidle: Add workaround to enable fastsleep

2014-10-06 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 13:16 +0530, Shreyas B. Prabhu wrote: > From: Preeti U Murthy > > Fast sleep is an idle state, where the core and the L1 and L2 > caches are brought down to a threshold voltage. This also means that > the communication between L2 and L3 caches have to be fenced. However > th

[RESUBMIT PATCH v3 8/8] devicetree: regulator: sky81452: Add compatible string for device binding

2014-10-06 Thread Gyungoh Yoo
Signed-off-by: Gyungoh Yoo --- Documentation/devicetree/bindings/regulator/sky81452-regulator.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/sky81452-regulator.txt b/Documentation/devicetree/bindings/regulator/sky81452-regulator.txt index 88

[RESUBMIT PATCH v3 7/8] regulator: sky81452: Add compatible string for device binding

2014-10-06 Thread Gyungoh Yoo
Signed-off-by: Gyungoh Yoo --- drivers/regulator/sky81452-regulator.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/sky81452-regulator.c b/drivers/regulator/sky81452-regulator.c index 97aff0c..f895d1b 100644 --- a/drivers/regulator/

Re: [PATCH v2 2/3] powerpc/kvm/book3s_hv: Enable CPUs to run guest after waking up from fast-sleep

2014-10-06 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 13:15 +0530, Shreyas B. Prabhu wrote: > When guests have to be launched, the secondary threads which are offline > are woken up to run the guests. Today these threads wake up from nap > and check if they have to run guests. Now that the offline secondary > threads can go to fa

[RESUBMIT PATCH v3 6/8] devicetree: i2c: Add SKY81452 to the Trivial Devices list

2014-10-06 Thread Gyungoh Yoo
Signed-off-by: Gyungoh Yoo --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt index 6af570e..ff77879 100644 --- a/D

Re: [PATCH v2 1/3] powerpc/powernv: Enable Offline CPUs to enter deep idle states

2014-10-06 Thread Benjamin Herrenschmidt
On Wed, 2014-10-01 at 13:15 +0530, Shreyas B. Prabhu wrote: > From: "Srivatsa S. Bhat" > > The offline cpus Arguably "cpus" here should be "secondary threads" to make the commit message a bit more comprehensible. A few more nits below... > should enter deep idle states so as to gain maximum > p

[RESUBMIT PATCH v3 5/8] devicetree: Add vendor prefix for Skyworks Solutions, Inc.

2014-10-06 Thread Gyungoh Yoo
Signed-off-by: Gyungoh Yoo --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index ac7269f..c755978 100644 --- a/Documentation

[RESUBMIT PATCH v3 4/8] devicetree: backlight: add new SKY81452 backlight binding

2014-10-06 Thread Gyungoh Yoo
Signed-off-by: Gyungoh Yoo --- .../video/backlight/sky81452-backlight.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/backlight/sky81452-backlight.txt diff --git a/Documentation/devicetree/bindings/video/back

[RESUBMIT PATCH v3 3/8] devicetree: mfd: Add new SKY81452 mfd binding

2014-10-06 Thread Gyungoh Yoo
Signed-off-by: Gyungoh Yoo --- Documentation/devicetree/bindings/mfd/sky81452.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sky81452.txt diff --git a/Documentation/devicetree/bindings/mfd/sky81452.txt b/Documentation/

Re: [perf] BUG: unable to handle kernel NULL pointer dereference at 00000085

2014-10-06 Thread Fengguang Wu
> > [ 267.547006] debug: unmapping init [mem 0xc28f9000-0xc2b03fff] > > [ 267.694378] random: init urandom read with 4 bits of entropy available > > [ 279.465522] sock: process `trinity-main' is using obsolete setsockopt > > SO_BSDCOMPAT > > [ 285.269144] BUG: unable to handle kernel NULL poin

[RESUBMIT PATCH v3 2/8] backlight: Add support Skyworks SKY81452 backlight driver

2014-10-06 Thread Gyungoh Yoo
Signed-off-by: Gyungoh Yoo --- drivers/video/backlight/Kconfig | 10 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/sky81452-backlight.c | 347 +++ 3 files changed, 358 insertions(+) create mode 100644 drivers/video/backlight

linux-next: manual merge of the kvm tree with the s390 tree

2014-10-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in arch/s390/mm/pgtable.c between commit 9511571c4f0e ("s390: mm: fixing calls of pte_unmap_unlock") from the s390 tree and commit dc77d344b41f ("KVM: s390/mm: fix up indentation of set_guest_storage_key") from the kvm tree. I fixed

[RESUBMIT PATCH v3 1/8] mfd: Add support for Skyworks SKY81452 driver

2014-10-06 Thread Gyungoh Yoo
Signed-off-by: Gyungoh Yoo --- drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/mfd/sky81452.c | 111 +++ include/linux/mfd/sky81452.h | 32 + 4 files changed, 156 insertions(+) create mode 100644 d

Re: [GIT PULL] KEYS:

2014-10-06 Thread James Morris
c867d07e3c861e75509650b8a359351d634db93a: > > Merge branch 'next' of > git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity into next > (2014-10-02 19:47:23 +1000) > > are available in the git repository at: > > > git://git.kernel.org/p

Re: [perf] BUG: unable to handle kernel NULL pointer dereference at 00000085

2014-10-06 Thread Fengguang Wu
Hi Peter, On Sat, Oct 04, 2014 at 07:24:56PM +0200, Peter Zijlstra wrote: > On Sat, Oct 04, 2014 at 09:46:22PM +0800, Fengguang Wu wrote: > > Hi Peter, > > > > 0day kernel testing robot got the below dmesg and the first bad commit is > > > > git://git.kernel.org/pub/scm/linux/kernel/git/peterz/q

[RESUBMIT PATCH v3 0/8] Adding Skyworks SKY81452 device drivers

2014-10-06 Thread Gyungoh Yoo
This patch set includes regulator and backlight driver for SKY81452. Also it includes documents for device tree and module. v3: Cleaned-up DBG messages. Cleaned-up DT. v2: Split the patches for each sub-system. Added 'reg' attribute for I2C address in device tree documents Added 'compatible' attr

Re: Perf lockups / stack overflows on v3.17-rc6, x86_64, arm, arm64

2014-10-06 Thread Vince Weaver
On Mon, 6 Oct 2014, Mark Rutland wrote: > So far I haven't been able to trigger the above failure on v3.17, so perhaps > some patch has fixed that. > > With the same seed (1411654897) I can trigger a hw_breakpoint warning > relatively repeatably (logs for a couple of instances below). I see thos

Re: [PATCH] regulator: rk808: Fix min_uV for DCDC1 & DCDC2

2014-10-06 Thread Doug Anderson
Chris and Mark, On Mon, Oct 6, 2014 at 8:29 PM, Chris Zhong wrote: > > On 10/01/2014 06:52 AM, Mark Brown wrote: >> >> On Tue, Sep 30, 2014 at 06:57:51PM +0200, Heiko Stübner wrote: >>> >>> Am Dienstag, 30. September 2014, 09:43:47 schrieb Doug Anderson: On Tue, Sep 30, 2014 at 2:44 AM,

linux-kernel,We are distributors of mailbox production

2014-10-06 Thread Rankin
HI, Good day! We are mailbox supplier, and we have researched & designed some new product. If you are interested in, I'll Email you a catalogue of our various products Our Advantage Small volume products , materials , packaging , custom content, etc. according to customer requirements to complete

Re: [PATCH resend] MIPS: Allow FPU emulator to use non-stack area.

2014-10-06 Thread David Daney
On 10/06/2014 05:49 PM, Rich Felker wrote: On Mon, Oct 06, 2014 at 05:33:18PM -0700, David Daney wrote: [...] Why not? It will emit any instructions we care to make it emit. If we want it to emit crypto instructions with patented algorithms, then it will do that. But we would still like to

Re: pull request: wireless-next 2014-10-03

2014-10-06 Thread David Miller
From: David Miller Date: Sun, 05 Oct 2014 21:38:53 -0400 (EDT) > From: David Miller > Date: Sun, 05 Oct 2014 21:35:11 -0400 (EDT) > >> From: "John W. Linville" >> Date: Fri, 3 Oct 2014 14:01:52 -0400 >> >>> Please pull tihs batch of updates intended for the 3.18 stream! >> >> Pulled, thanks

[PATCH v3] clocksource: arch_timer: Fix code to use physical timers when requested

2014-10-06 Thread Sonny Rao
This is a bug fix for using physical arch timers when the arch_timer_use_virtual boolean is false. It restores the arch_counter_get_cntpct() function after removal in 0d651e4e "clocksource: arch_timer: use virtual counters" We need this on certain ARMv7 systems which are architected like this:

Re: [PATCH resend] MIPS: Allow FPU emulator to use non-stack area.

2014-10-06 Thread David Daney
On 10/06/2014 06:02 PM, Kevin D. Kissell wrote: On 10/06/2014 01:23 PM, David Daney wrote: From: David Daney In order for MIPS to be able to support a non-executable stack, we need to supply a method to specify a userspace area that can be used for executing emulated branch delay slot instruct

[PATCH v7 1/2] mfd/axp20x: extend axp20x to support axp288 pmic

2014-10-06 Thread Jacob Pan
X-Powers AXP288 is a customized PMIC for Intel Baytrail-CR platforms. Similar to AXP202/209, AXP288 comes with USB charger, more LDO and BUCK channels, and AD converters. It also provides extended status and interrupt reporting capabilities than the devices currently supported in axp20x.c. In addi

[PATCH v7 2/2] iio/adc: add support for axp288 adc

2014-10-06 Thread Jacob Pan
Platform driver for X-Powers AXP288 ADC, which is a sub-device of the customized AXP288 PMIC for Intel Baytrail-CR platforms. GPADC device enumerates as one of the MFD cell devices. It uses IIO infrastructure to communicate with userspace and consumer drivers. Usages of ADC channels include batter

[PATCH v7 0/2] Initial support for XPowers AXP288 PMIC

2014-10-06 Thread Jacob Pan
X-Powers AXP288 is a customized PMIC found on some Intel Baytrail-CR platforms. It comes with sub-functions such as USB charging, fuel gauge, ADC, and many LDO and BUCK channels. By extending the existing AXP20x driver, this patchset adds basic support for AXP288 PMIC with ADC as one MFD cell devi

[PATCH] MIPS: rtlx: Remove unnecessary KERN_DEBUG in rtlx.c

2014-10-06 Thread Masanari Iida
This patch remove unnecessary KERNL_DEBUG in pr_debug() within rtlx.c. Signed-off-by: Masanari Iida --- arch/mips/kernel/rtlx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index 31b1b76..c5c4fd5 100644 --- a/arch/mips/

[PATCH] kexec: Remove unnecessary KERN_ERR from kexec.c

2014-10-06 Thread Masanari Iida
This patch remove unnecessary KERN_ERR from pr_err() within kexec.c. Signed-off-by: Masanari Iida --- kernel/kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kexec.c b/kernel/kexec.c index 2abf9f6..9a8a01a 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -600

Re: [resend rfc v5]pwm: add BCM2835 PWM driver

2014-10-06 Thread Stephen Warren
On 10/02/2014 04:41 AM, Bart Tanghe wrote: > Add pwm driver for Broadcom BCM2835 processor (Raspberry Pi) > > Signed-off-by: Bart Tanghe > --- > Changes in v5: By v5, I would drop "rfc" from the email subject. > diff --git a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt > b/Documentati

Re: [PATCH] regulator: rk808: Fix min_uV for DCDC1 & DCDC2

2014-10-06 Thread Chris Zhong
On 10/01/2014 06:52 AM, Mark Brown wrote: On Tue, Sep 30, 2014 at 06:57:51PM +0200, Heiko Stübner wrote: Am Dienstag, 30. September 2014, 09:43:47 schrieb Doug Anderson: On Tue, Sep 30, 2014 at 2:44 AM, Chris Zhong wrote: - REGULATOR_LINEAR_RANGE(70, 0, 63, 12500), + REGULATO

Re: [PATCH v2 4/5] perf/sdt: Delete SDT events from cache

2014-10-06 Thread Namhyung Kim
On Wed, 01 Oct 2014 08:18:41 +0530, Hemant Kumar wrote: > This patch adds the support to delete SDT events from the cache. > To delete an event corresponding to a file, first the cache is read into > the file_hash list. The key is calculated from the file name. > And then, the file_list for that fi

RE: [PATCH V5 11/16] perf, core: Pass perf_sample_data to perf_callchain()

2014-10-06 Thread Liang, Kan
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Wednesday, September 24, 2014 10:15 AM > To: Liang, Kan > Cc: eran...@google.com; linux-kernel@vger.kernel.org; mi...@redhat.com; > pau...@samba.org; a...@kernel.org; a...@linux.intel.com; Yan, Zheng > Subje

RE: [PATCH V5 14/16] perf, x86: enable LBR callstack when recording callchain

2014-10-06 Thread Liang, Kan
> > On Wed, Sep 10, 2014 at 10:09:11AM -0400, kan.li...@intel.com wrote: > > From: Kan Liang > > > > If a task specific event wants user space callchain but does not want > > branch stack sampling, enable the LBR call stack facility implicitly. > > The LBR call stack facility can help perf to ge

Re: [PATCH v2 2/5] perf/sdt: Add SDT events into a cache

2014-10-06 Thread Namhyung Kim
On Wed, 01 Oct 2014 08:17:48 +0530, Hemant Kumar wrote: > This patch adds a new sub-command to perf : sdt-cache. > sdt-cache command can be used to add, remove and dump SDT events. > This patch adds support to only "add" the SDT events. The rest of the > patches add support to rest of them. > > Whe

  1   2   3   4   5   6   7   >