[PATCH 5/9] x86/asm/entry/64: simplify looping around preempt_schedule_irq

2015-03-31 Thread Denys Vlasenko
At exit_intr label, we test whether interrupt/exception was in kernel. If it did, we jump to preemption check. If preemption does happen (IOW if we call preempt_schedule_irq), we go back to exit_intr. But it's pointless, we already know that test succeeded last time, preemption doesn't change the

[PATCH 2/9] x86/asm/entry/32: Use PUSH instructions to build pt_regs on stack

2015-03-31 Thread Denys Vlasenko
This mimics the recent similar 64-bit change. Saves ~110 bytes of code. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anvin" CC: Andy Lutomirski CC: Oleg Nesterov CC: Frederic Weisbecker CC: Alexei Starovoitov CC: Wi

[PATCH 6/9] x86/asm/entry/64: tidy up some instructions

2015-03-31 Thread Denys Vlasenko
Tidy up TEST insns width to use shorter insn form, Use logically correct JZ mnemonic instead of JE (this doesn't change code). Replace several BT insns with equivalent, but shorter TEST insns. Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petk

[PATCH_V3 0/2] mtd: nand: jz4780: Add nand and bch driver

2015-03-31 Thread Zubair Lutfullah Kakakhel
Hi, Two patches based on 4.0-rc6 that add NAND and BCH controller drivers for the Ingenic JZ4780 SoC. Hope these can make it in time for 4.1. Tested on the MIPS Creator CI20. Core JZ4780 support is still in-flight. Review and feedback welcome. V2 - > V3 Rebase to 4.0-rc6 Binding changes and f

[PATCH_V3 2/2] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-03-31 Thread Zubair Lutfullah Kakakhel
From: Alex Smith Add a driver for NAND devices connected to the NEMC on JZ4780 SoCs, as well as the hardware BCH controller. DMA is not currently implemented. While older 47xx SoCs also have a BCH controller, they are incompatible with the one in the 4780 due to differing register/bit positions,

[PATCH_V3 1/2] dt-bindings: binding for jz4780-{nand,bch}

2015-03-31 Thread Zubair Lutfullah Kakakhel
From: Alex Smith Add DT bindings for NAND devices connected to the NEMC on JZ4780 SoCs, as well as the hardware BCH controller, used by the jz4780_{nand,bch} drivers. Signed-off-by: Alex Smith Signed-off-by: Zubair Lutfullah Kakakhel --- V2 - > V3 Rebase to 4.0-rc6 Changed ingenic,ecc-size to

[PATCH 2/2] Drivers: hv: hv_balloon: correctly handle num_pages>INT_MAX case

2015-03-31 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov balloon_wrk.num_pages is __u32 and it comes from host in struct dm_balloon where it is also __u32. We, however, use 'int' in balloon_up() and in case we happen to receive num_pages>INT_MAX request we'll end up allocating zero pages as 'num_pages < alloc_unit' check in alloc

[PATCH 1/2] Drivers: hv: hv_balloon: correctly handle val.freeram

2015-03-31 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov 'Drivers: hv: hv_balloon: refuse to balloon below the floor' fix does not correctly handle the case when val.freeram < num_pages as val.freeram is __kernel_ulong_t and the 'val.freeram - num_pages' value will be a huge positive value instead of being negative. Usually host

[PATCH 0/2] Drivers: hv: hv_balloon: two additional corner cases in balloon_up()

2015-03-31 Thread K. Y. Srinivasan
PATCH 1/2 addresses a real issue introduced by the 'Drivers: hv: hv_balloon: refuse to balloon below the floor' fix, PATCH 2/2 addresses a currently impossible issue (as Hyper-V host never asks to balloon more than INT_MAX pages) and is rather a cleanup. The patch is supposed to be applied on top

Re: [PATCH v3 2/3] drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test

2015-03-31 Thread Russell King - ARM Linux
On Mon, Mar 09, 2015 at 05:43:19PM +0800, Yakir Yang wrote: > As for 1920x1080 display resolution, we should turn on the > Transmitter Trailer-B. > > Signed-off-by: Yakir Yang > --- BTW, one of: drm/rockchip: dw_hdmi-rockchip: ... drm/rockchip: dw_hdmi: ... drm: rockchip: dw_hdmi-rockchip: .

Re: [PATCH v3 1/7] dmaengine: of_dma: Support for DMA routers

2015-03-31 Thread Peter Ujfalusi
On 03/28/2015 03:44 AM, Arnd Bergmann wrote: > On Friday 27 March 2015, Peter Ujfalusi wrote: >> +Required property: >> +- dma-device: phandle of the DMA controller. The router is >> modifying >> + the DMA requests for this controller. > > This property seems rather

Re: [PATCH V2 3/3] pinctrl: Add Pistachio SoC pin control driver

2015-03-31 Thread Andrew Bresticker
Hi Paul, On Tue, Mar 31, 2015 at 1:10 AM, Paul Bolle wrote: > The patch adds a mismatch between the Kconfig symbol (a bool) and the > code (which suggests that a modular build is also possible). Nearly all of the pinctrl drivers (with the exception of qcom and intel) are like this. They use a b

Re: [PATCH 23/25] netfilter: Use bool function return values of true/false not 1/0

2015-03-31 Thread Pablo Neira Ayuso
On Mon, Mar 30, 2015 at 04:46:21PM -0700, Joe Perches wrote: > Use the normal return values for bool functions > > Signed-off-by: Joe Perches Acked-by: Pablo Neira Ayuso -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.o

Re: d63e2e1f3df breaks sparc/T5-8

2015-03-31 Thread Yinghai Lu
On Mon, Mar 30, 2015 at 9:10 PM, David Ahern wrote: > On 3/30/15 7:06 PM, Yinghai Lu wrote: > To make sure I am on the same page: these are a new round of patches? clear > out the old, apply these? Clear out the old and apply these new ones. Thanks Yinghai -- To unsubscribe from this list: send

Re: [PATCH] xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX

2015-03-31 Thread Joe Perches
On Tue, 2015-03-31 at 16:57 +0200, Roger Pau Monné wrote: > El 31/03/15 a les 23.14, Tao Chen ha escrit: > > Define pr_fmt macro with {xen-blkback: } prefix, then remove all use > > of DRV_PFX in the pr and DPRINTK sentences. It will simplify the code. [] > > diff --git a/drivers/block/xen-blkback/

Re: [PATCH v4] spi: Add SPI driver for Mikrotik RB4xx series boards

2015-03-31 Thread Andy Shevchenko
On Tue, Mar 31, 2015 at 7:25 PM, Bert Vermeulen wrote: > This driver mediates access between the connected CPLD and other devices > on the bus. > > The m25p80-compatible boot flash and (some models) MMC use regular SPI, > bitbanged as required by the SoC. However the SPI-connected CPLD has > a "fa

Re: [PATCH 19/25] sched: Use bool function return values of true/false not 1/0

2015-03-31 Thread Joe Perches
On Tue, 2015-03-31 at 11:03 +0200, Ingo Molnar wrote: > * Peter Zijlstra wrote: > > On Mon, Mar 30, 2015 at 04:46:17PM -0700, Joe Perches wrote: > > > Use the normal return values for bool functions > > > > > > Update the other sets of ret in try_wait_for_completion. > > > > I'm missing a why; w

Re: [PATCH v4 10/15] serial: stm32-usart: Add STM32 USART Driver

2015-03-31 Thread Andy Shevchenko
On Tue, Mar 31, 2015 at 7:24 PM, Maxime Coquelin wrote: > This drivers adds support to the STM32 USART controller, which is a > standard serial driver. > > Tested-by: Chanwoo Choi > Signed-off-by: Maxime Coquelin Few minor comments below. > --- > drivers/tty/serial/Kconfig | 17 + > dr

Re: another pmem variant V2

2015-03-31 Thread Ingo Molnar
* Christoph Hellwig wrote: > On Tue, Mar 31, 2015 at 06:14:15PM +0300, Boaz Harrosh wrote: > > We can not accept it as is right now. > > Who is we? > > > We have conducted farther tests. And it messes up NUMA. > > Only you if you use the memmap option in weird ways. > > Sounds like I should

Re: [PATCH] x86/asm/entry/64: better check for canonical address

2015-03-31 Thread Ingo Molnar
* Denys Vlasenko wrote: > > I guess they could optimize it by adding a single "I am a modern > > OS executing regular userspace" flag to the descriptor [or > > expressing the same as a separate instruction], to avoid all that > > legacy crap that won't trigger on like 99.99% of systems ..

Re: [RFC] [PATCH 0/7] fs: add blkdev name format specifier

2015-03-31 Thread Jens Axboe
On 03/31/2015 10:01 AM, Dmitry Monakhov wrote: Currently in order to print block_device name one should use blkdev() helper which requires temproral buffer of size BDEVNAME_SIZE (32bytes). This is very ineffective because result in stack usage bloating for deep IO call traces where stack usage i

Re: [PATCH] x86: Factor out common CPU initialization code

2015-03-31 Thread Boris Ostrovsky
On 03/31/2015 11:55 AM, Ingo Molnar wrote: * Boris Ostrovsky wrote: Some of x86 bare-metal and Xen CPU initialization code is common between the two and therefore can be factored out to avoid code duplication. As a side effect, doing so will also extend the fix provided by commit a7fcf28d431

Re: [GIT PULL] selftest: Add futex functional tests

2015-03-31 Thread Shuah Khan
On 03/31/2015 10:24 AM, Darren Hart wrote: > On 3/31/15, 8:32 AM, "Shuah Khan" wrote: > >> Hi Daren, >> >> On 03/27/2015 04:17 PM, Darren Hart wrote: >>> Hi Shuah, >>> >>> This series begins the process of migrating my futextest tests into >>> kselftest. >>> I've started with only the functional

[PATCH 4/7] fs: use block_device name vsprintf helper

2015-03-31 Thread Dmitry Monakhov
Signed-off-by: Dmitry Monakhov --- fs/btrfs/super.c |4 +--- fs/buffer.c | 21 ++--- fs/ext2/xattr.c |6 ++ fs/ext3/super.c |5 ++--- fs/ext3/xattr.c |5 ++--- fs/ext4/page-io.c |5 ++--- fs/ext4/xattr.c |6

[PATCH 6/7] block/partitions: use block_device name vsprintf helper

2015-03-31 Thread Dmitry Monakhov
Signed-off-by: Dmitry Monakhov --- block/partitions/amiga.c | 13 ++--- block/partitions/sgi.c |9 - block/partitions/sun.c |9 - 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/block/partitions/amiga.c b/block/partitions/amiga.c index 2b135

[PATCH 1/7] lib/vsprintf: add %*pg format specifier

2015-03-31 Thread Dmitry Monakhov
This allow to directly print block_device name. Currently one should use bdevname() with temporal char buf[BDEVNAME_SIZE]. This is very ineffective because bloat stack usage for deep IO call-traces Example: %pg ->sda, sda1 or loop0p1 Signed-off-by: Dmitry Monakhov --- Documentation

[PATCH 7/7] drivers: use block_device name vsprintf helper

2015-03-31 Thread Dmitry Monakhov
Signed-off-by: Dmitry Monakhov --- drivers/block/drbd/drbd_req.c |6 ++ drivers/block/pktcdvd.c | 14 -- drivers/scsi/wd7000.c |6 +- drivers/target/target_core_iblock.c |4 +--- 4 files changed, 8 insertions(+), 22 deletions(-)

[PATCH 5/7] md: use block_device name vsprintf helper

2015-03-31 Thread Dmitry Monakhov
Signed-off-by: Dmitry Monakhov --- drivers/md/bcache/debug.c|6 +- drivers/md/bcache/io.c |8 +-- drivers/md/bcache/super.c| 32 -- drivers/md/dm-cache-target.c |5 +- drivers/md/dm-table.c| 32 - drivers/md/dm-thin.c |8 +-- driv

[PATCH 3/7] block: use block_device name vsprintf helper

2015-03-31 Thread Dmitry Monakhov
Signed-off-by: Dmitry Monakhov --- block/blk-core.c | 30 -- block/blk-settings.c |9 ++--- 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 794c3e7..88a4c94 100644 --- a/block/blk-core.c +++ b/bl

Re: [RFC PATCH 2/2] Kbuild: avoid partial linking of drivers/built-in.o

2015-03-31 Thread Russell King - ARM Linux
On Tue, Mar 31, 2015 at 05:27:22PM +0100, Dave Martin wrote: > On Tue, Mar 31, 2015 at 11:22:29AM -0400, Nicolas Pitre wrote: > > I'm using -ffunction-sections as well for the kernel size reduction work > > I'm currently doing. The linker script has to be adapted so .text.* is > > specified alon

[PATCH 2/7] fs: use gendisk->disk_name where possible

2015-03-31 Thread Dmitry Monakhov
gendisk with part==0 is obviously gendisk->disk_name. Signed-off-by: Dmitry Monakhov --- fs/block_dev.c | 12 +++- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 2e522ae..ec43814 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -

[RFC] [PATCH 0/7] fs: add blkdev name format specifier

2015-03-31 Thread Dmitry Monakhov
Currently in order to print block_device name one should use blkdev() helper which requires temproral buffer of size BDEVNAME_SIZE (32bytes). This is very ineffective because result in stack usage bloating for deep IO call traces where stack usage is close to maximum values. It is reasonable to i

[PATCH v4 05/15] dt-bindings: Document the STM32 reset bindings

2015-03-31 Thread Maxime Coquelin
This adds documentation of device tree bindings for the STM32 reset controller. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/reset/st,stm32-rcc.txt | 107 + 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetr

[PATCH v4 06/15] drivers: reset: Add STM32 reset driver

2015-03-31 Thread Maxime Coquelin
The STM32 MCUs family IPs can be reset by accessing some registers from the RCC block. The list of available reset lines is documented in the DT bindings. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- drivers/reset/Makefile | 1 + drivers/reset/reset-stm32.c | 124 +

[PATCH v4 04/15] clocksource/drivers: Add ARM System timer driver

2015-03-31 Thread Maxime Coquelin
This patch adds clocksource support for ARMv7-M's System timer, also known as SysTick. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- drivers/clocksource/Kconfig | 7 drivers/clocksource/Makefile | 1 + drivers/clocksource/armv7m_systick.c | 79 ++

[PATCH v4 03/15] dt-bindings: Document the ARM System timer bindings

2015-03-31 Thread Maxime Coquelin
This adds documentation of device tree bindings for the ARM System timer. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/arm/armv7m_systick.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bind

[PATCH v4 00/15] Add support to STMicroelectronics STM32 family

2015-03-31 Thread Maxime Coquelin
This fourth round mainly addresses comments made on UART and clocksource drivers. See below changelog for more details. STM32 MCUs are Cortex-M CPU, used in various applications (consumer electronics, industrial applications, hobbyists...). Datasheets, user and programming manuals are publicly ava

[PATCH v4 01/15] scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel

2015-03-31 Thread Maxime Coquelin
When Kernel is executed in place from ROM, the symbol addresses can be lower than the page offset. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- scripts/link-vmlinux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinu

Re: [PATCH 2/4] soc: Mediatek: Add SCPSYS power domain driver

2015-03-31 Thread Kevin Hilman
Hi Sascha, Sascha Hauer writes: > This adds a power domain driver for the Mediatek SCPSYS unit. > > The System Control Processor System (SCPSYS) has several power > management related tasks in the system. The tasks include thermal > measurement, dynamic voltage frequency scaling (DVFS), interrup

Re: [RFC PATCH 2/2] Kbuild: avoid partial linking of drivers/built-in.o

2015-03-31 Thread Dave Martin
On Tue, Mar 31, 2015 at 11:22:29AM -0400, Nicolas Pitre wrote: > On Mon, 30 Mar 2015, Ard Biesheuvel wrote: > > > On 30 March 2015 at 16:13, Michal Marek wrote: [...] > > > What you could do is to add a Kconfig option to arch/arm/Kconfig adding > > > -ffunction-sections to the compiler flags. T

[PATCH v4 07/15] dt-bindings: Document the STM32 timer bindings

2015-03-31 Thread Maxime Coquelin
This adds documentation of device tree bindings for the STM32 timer. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/timer/st,stm32-timer.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/

[PATCH v4 08/15] clockevents/drivers: Add STM32 Timer driver

2015-03-31 Thread Maxime Coquelin
STM32 MCUs feature 16 and 32 bits general purpose timers with prescalers. The drivers detects whether the time is 16 or 32 bits, and applies a 1024 prescaler value if it is 16 bits. Reviewed-by: Linus Walleij Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- drivers/clocksource/Kconfi

[PATCH v4 15/15] MAINTAINERS: Add entry for STM32 MCUs

2015-03-31 Thread Maxime Coquelin
Add a MAINTAINER entry covering all STM32 machine and drivers files. Signed-off-by: Maxime Coquelin --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ddc5a8c..08c08c4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1467,6 +1467,14 @@ F:

[PATCH v4 13/15] ARM: dts: Introduce STM32F429 MCU

2015-03-31 Thread Maxime Coquelin
The STMicrolectornics's STM32F419 MCU has the following main features: - Cortex-M4 core running up to @180MHz - 2MB internal flash, 256KBytes internal RAM - FMC controller to connect SDRAM, NOR and NAND memories - SD/MMC/SDIO support - Ethernet controller - USB OTFG FS & HS controllers - I2C

[PATCH v4 12/15] ARM: dts: Add ARM System timer as clockevent in armv7m

2015-03-31 Thread Maxime Coquelin
Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- arch/arm/boot/dts/armv7-m.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/armv7-m.dtsi b/arch/arm/boot/dts/armv7-m.dtsi index 5a660d0..b1ad7cf 100644 --- a/arch/arm/boot/dts/armv7-m.dtsi +++ b/arch/arm/bo

[PATCH v4 10/15] serial: stm32-usart: Add STM32 USART Driver

2015-03-31 Thread Maxime Coquelin
This drivers adds support to the STM32 USART controller, which is a standard serial driver. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- drivers/tty/serial/Kconfig | 17 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/stm32-usart.c | 743 +

[PATCH v4 11/15] ARM: Add STM32 family machine

2015-03-31 Thread Maxime Coquelin
STMicrolectronics's STM32 series is a family of Cortex-M microcontrollers. It is used in various applications, and proposes a wide range of peripherals. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- Documentation/arm/stm32/overview.txt | 32 ++ Doc

[PATCH v4 14/15] ARM: configs: Add STM32 defconfig

2015-03-31 Thread Maxime Coquelin
This patch adds a new config for STM32 MCUs. STM32F429 Discovery board boots successfully with this config applied. Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- arch/arm/configs/stm32_defconfig | 71 1 file changed, 71 insertions(+) create

[PATCH v4 09/15] dt-bindings: Document the STM32 USART bindings

2015-03-31 Thread Maxime Coquelin
This adds documentation of device tree bindings for the STM32 USART Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/serial/st,stm32-usart.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/s

[PATCH v4 02/15] ARM: ARMv7-M: Enlarge vector table up to 256 entries

2015-03-31 Thread Maxime Coquelin
>From Cortex-M reference manuals, the nvic supports up to 240 interrupts. So the number of entries in vectors table is up to 256. This patch adds a new config flag to specify the number of external interrupts. Some ifdeferies are added in order to respect the natural alignment without wasting too

Re: [PATCH v3 0/3] Improve eye-diagram & single-ended test for rk3288 hdmi

2015-03-31 Thread Russell King - ARM Linux
On Mon, Mar 09, 2015 at 05:42:21PM +0800, Yakir Yang wrote: > RK3288 hdmi eye-diagram test would fail when pixel clock is 148.5MHz, > and single-ended test would failed when display mode is 74.25MHz. Has anyone reviewed these changes yet? I don't see any replies, nor are they in David's git tree.

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 01:14:20PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: > > On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: > > > On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: > > > > > > SNIP

[PATCH v4] spi: Add SPI driver for Mikrotik RB4xx series boards

2015-03-31 Thread Bert Vermeulen
This driver mediates access between the connected CPLD and other devices on the bus. The m25p80-compatible boot flash and (some models) MMC use regular SPI, bitbanged as required by the SoC. However the SPI-connected CPLD has a "fast write" mode, in which two bits are transferred by SPI clock cycl

Re: [GIT PULL] selftest: Add futex functional tests

2015-03-31 Thread Darren Hart
On 3/31/15, 8:32 AM, "Shuah Khan" wrote: >Hi Daren, > >On 03/27/2015 04:17 PM, Darren Hart wrote: >> Hi Shuah, >> >> This series begins the process of migrating my futextest tests into >>kselftest. >> I've started with only the functional tests, as the performance and >>stress may >> not be appr

Re: [PATCH] TESTCASE: of: OOPS when disabling node via OF_DYNAMIC

2015-03-31 Thread Pantelis Antoniou
Hi Wolfram, > On Mar 31, 2015, at 18:12 , Wolfram Sang wrote: > > From: Wolfram Sang > > I wanted to disable a node via OF_DYNAMIC by setting its status to disabled. > This code is the minimal testcase, the same happens in a more complex > scenario. > There is something wrong with freeing res

Re: [PATCH v3 2/2] perf tool: Fix ppid for synthesized fork events

2015-03-31 Thread Don Zickus
On Mon, Mar 30, 2015 at 02:35:58PM -0600, David Ahern wrote: > 363b785f38 added synthesized fork events and set a thread's parent id > to itself. Since we are already processing /proc//status the ppid > can be determined properly. Make it so. Acked-by: Don Zickus > > Signed-off-by: David Ahern

Re: [PATCH v2 1/2] perf tool: Refactor comm/tgid lookup

2015-03-31 Thread Don Zickus
On Mon, Mar 30, 2015 at 02:35:57PM -0600, David Ahern wrote: > Rather than parsing /proc/pid/status file one line at a time, read > it into a buffer in one shot and search for all strings in one pass. > > tgid conversion also simplified -- removing the isspace walk. As > noted by Arnaldo those are

Re: [PATCH v6] arm: perf: Directly handle SMP platforms with one SPI

2015-03-31 Thread Will Deacon
Hi Daniel, On Wed, Mar 04, 2015 at 01:25:45PM +, Daniel Thompson wrote: > Some ARM platforms mux the PMU interrupt of every core into a single > SPI. On such platforms if the PMU of any core except 0 raises an interrupt > then it cannot be serviced and eventually, if you are lucky, the spuriou

[PATCH 3/6] Input: Implement dev_pm_ops.prepare()

2015-03-31 Thread Tomeu Vizoso
Have it return 1 in both input_dev_type and input_class (for evdev handlers) so that input devices that are runtime-suspended won't be suspended when the system goes to a sleep state. This can make resume times considerably shorter because these devices don't need to be resumed when the system is a

[PATCH 2/6] [media] v4l2-core: Implement dev_pm_ops.prepare()

2015-03-31 Thread Tomeu Vizoso
Have it return 1 so that video devices that are runtime-suspended won't be suspended when the system goes to a sleep state. This can make resume times considerably shorter because these devices don't need to be resumed when the system is awaken. Signed-off-by: Tomeu Vizoso --- drivers/media/v4l2

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 01:14:20PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: > > On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: > > > On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: > > > > > > SN

Re: [PATCH v2] ftracetest: Convert exit -1 to exit $FAIL

2015-03-31 Thread Shuah Khan
On 03/30/2015 01:50 PM, Steven Rostedt wrote: > On Mon, 30 Mar 2015 16:21:00 +1100 > Michael Ellerman wrote: > >> POSIX says that exit takes an unsigned integer between 0 and 255, so >> using -1 doesn't work on POSIX shells. >> >> There is already a well-defined failure code, $FAIL (1), so use th

Re: linux-next: Tree for Mar 31 (build failures and culprits)

2015-03-31 Thread Guenter Roeck
On Wed, Apr 01, 2015 at 12:02:21AM +1100, Stephen Rothwell wrote: > Hi all, > > Changes since 20150330: > > The arm64 tree gained a conflict against the arm-soc tree. > > The idle tree gained a build failure so I used the version from > next-20150327. > > The tip tree gained conflicts against t

Re: [PATCH 0/5] x86/asm/entry/64: simplifications

2015-03-31 Thread Denys Vlasenko
On 03/31/2015 05:47 PM, Ingo Molnar wrote: > > * Denys Vlasenko wrote: > >> This patchset simplifies jump maze in entry_64.S a bit by moving >> "retint_kernel" code block, and follows up with simplifications >> which become obvious after the move. > > So I got conflicts with latest tip:master w

[PATCH 4/6] [media] media-devnode: Implement dev_pm_ops.prepare callback

2015-03-31 Thread Tomeu Vizoso
Have it return 1 so that media device nodes that are runtime-suspended won't be suspended when the system goes to a sleep state. This can make resume times considerably shorter because these devices don't need to be resumed when the system is awaken. Signed-off-by: Tomeu Vizoso --- drivers/media

Re: [PATCH] ftracetest: Cope properly with stack tracer not being enabled

2015-03-31 Thread Shuah Khan
On 03/30/2015 03:36 PM, Steven Rostedt wrote: > On Mon, 30 Mar 2015 16:21:40 +1100 > Michael Ellerman wrote: > >> If the stack tracer (CONFIG_STACK_TRACER) is disabled, the >> fgraph-filter-stack test blows chunks: >> >> [8] ftrace - function graph filters with stack tracer [FAIL] >> + r

Re: another pmem variant V2

2015-03-31 Thread Christoph Hellwig
On Tue, Mar 31, 2015 at 06:14:15PM +0300, Boaz Harrosh wrote: > We can not accept it as is right now. Who is we? > We have conducted farther tests. And it messes up NUMA. Only you if you use the memmap option in weird ways. Sounds like I should simply remove the memmap= option so people don't a

[PATCH 1/6] [media] uvcvideo: Enable runtime PM of descendant devices

2015-03-31 Thread Tomeu Vizoso
So UVC devices can remain runtime-suspended when the system goes into a sleep state, they and all of their descendant devices need to have runtime PM enable. Signed-off-by: Tomeu Vizoso --- drivers/media/usb/uvc/uvc_driver.c | 4 drivers/media/usb/uvc/uvc_status.c | 3 +++ 2 files changed,

[PATCH 5/6] Input: evdev - Enable runtime PM of the evdev input handler

2015-03-31 Thread Tomeu Vizoso
So ancestor devices can remain runtime-suspended when the system goes into a sleep state, they and all of their descendant devices need to have runtime PM enabled. Signed-off-by: Tomeu Vizoso --- drivers/input/evdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/evdev.c b

Re: [PATCH v2 6/6] MAINTAINERS: Add phy-miphy28lp.c to ARCH/STI architecture

2015-03-31 Thread Kishon Vijay Abraham I
Hi, On Monday 30 March 2015 08:47 PM, Peter Griffin wrote: This patch adds the phy-miphy28lp.c phy driver found on STMicroelectronics stih407 family SoC's into the STI arch section of the maintainers file. Signed-off-by: Peter Griffin Acked-by: Lee Jones --- MAINTAINERS | 1 + 1 file chang

[PATCH 6/6] USB / PM: Allow USB devices to remain runtime-suspended when sleeping

2015-03-31 Thread Tomeu Vizoso
Have dev_pm_ops.prepare return 1 for USB devices, interfaces, endpoints and ports so that USB devices can remain runtime-suspended when the system goes to a sleep state. Also enable runtime PM for endpoints, which is another requirement for the above to work. Signed-off-by: Tomeu Vizoso --- dri

[PATCH 0/6] Allow UVC devices to remain runtime-suspended when sleeping

2015-03-31 Thread Tomeu Vizoso
Hi, this series contain what I needed to do in order to have my USB webcam to not be resumed when the system resumes, reducing considerably the total time that resuming takes. It makes use of the facility that Rafael Wysocki added in aae4518b3 ("PM / sleep: Mechanism to avoid resuming runtime-

Re: [BUG] perf script segfault

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 05:50:48PM +0200, Jiri Olsa escreveu: > On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: > > On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: > > > > SNIP > > > > > struct ordered_events *oe = &session->ordered_events; > > > - struct pe

Re: [PATCH] bochs-drm: disable video before changing video mode

2015-03-31 Thread Alexander Beregalov
On 19 March 2015 at 11:26, Gerd Hoffmann wrote: > On Mi, 2015-03-18 at 12:37 -0400, Chris Ruffin wrote: >> qemu and simics simulators both seem to expect that video should be disabled >> before changing the video mode. > > Not required for qemu. qemu allows updating the modesetting registers > (x

RE: [PATCH 7/7] staging: comedi: comedi_fops: extend spin-lock scope in comedi_event()

2015-03-31 Thread Hartley Sweeten
On Tuesday, March 31, 2015 2:43 AM, Ian Abbott wrote: > On 30/03/15 17:47, Hartley Sweeten wrote: >> On Friday, March 27, 2015 8:13 AM, Ian Abbott wrote: >>> `comedi_event()` is called from low-level drivers to handle comedi >>> asynchronous command event flags. As a safety check, it checks the >>

Re: [PATCH 3/3] dt: paz00: define nvec as child of i2c bus

2015-03-31 Thread Andrey Danin
Added Wolfram Sang and linux-i2c ML On 31.03.2015 18:46, Andrey Danin wrote: On 31.03.2015 17:09, Stephen Warren wrote: On 03/31/2015 12:40 AM, Andrey Danin wrote: Hi, Thanks for the review. On 03.02.2015 0:20, Stephen Warren wrote: On 01/29/2015 12:20 AM, Andrey Danin wrote: NVEC driver w

[PATCH] powerpc: fix memory corruption by pnv_alloc_idle_core_states

2015-03-31 Thread Jan Stancek
Space allocated for paca is based off nr_cpu_ids, but pnv_alloc_idle_core_states() iterates paca with cpu_nr_cores()*threads_per_core, which is using NR_CPUS. This causes pnv_alloc_idle_core_states() to write over memory, which is outside of paca array and may later lead to various panics. Fixes:

Re: [RFC] SQUASHME: pmem: Split up pmem_probe from pmem_alloc

2015-03-31 Thread Christoph Hellwig
On Tue, Mar 31, 2015 at 05:21:15PM +0300, Boaz Harrosh wrote: > -static int pmem_probe(struct platform_device *pdev) > +static int pmem_alloc(struct resource *res, struct device *dev, > + struct pmem_device **o_pmem) > { please return the pmem device or an ERR_PTR() here. Excep

Re: [PATCH 1/2] phy: spear1310-miphy: Return proper error for spear1310_miphy_xlate

2015-03-31 Thread Kishon Vijay Abraham I
Hi, On Wednesday 25 March 2015 02:31 PM, Axel Lin wrote: The of_xlate callback should return ERR_PTR on error. Signed-off-by: Axel Lin --- drivers/phy/phy-spear1310-miphy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-spear1310-miphy.c b/drivers/p

Re: another pmem variant V2

2015-03-31 Thread Christoph Hellwig
On Tue, Mar 31, 2015 at 01:25:46PM +0300, Boaz Harrosh wrote: > The problem I see is that if I state a memmap=nn!aa that crosses a NUMA > boundary then the machine will not boot. > So BTW for sure I need that "don't merge E820_PMEM ranges" patch because > otherwise I will not be able to boot if I h

Re: [PATCH 11/25] x86: Use bool function return values of true/false not 1/0

2015-03-31 Thread Paolo Bonzini
On 31/03/2015 01:46, Joe Perches wrote: > Use the normal return values for bool functions > > Signed-off-by: Joe Perches > --- > arch/x86/include/asm/archrandom.h | 2 +- > arch/x86/include/asm/dma-mapping.h | 2 +- > arch/x86/include/asm/kvm_para.h| 2 +- > arch/x86/kvm/cpuid.h

Re: [PATCH 01/25] arm: Use bool function return values of true/false not 1/0

2015-03-31 Thread Marc Zyngier
On Tue, 31 Mar 2015 16:58:28 +0100 Paolo Bonzini wrote: > On 31/03/2015 01:45, Joe Perches wrote: > > Use the normal return values for bool functions > > > > Signed-off-by: Joe Perches > > --- > > arch/arm/include/asm/dma-mapping.h | 8 > > arch/arm/include/asm/kvm_emulate.h | 2 +-

Re: [PATCH net-next V3 00/23] ptp: get ready for 2038

2015-03-31 Thread David Miller
From: Richard Cochran Date: Sun, 29 Mar 2015 23:11:50 +0200 > This series converts the core driver methods of the PTP Hardware Clock > (PHC) subsystem to use the 64 bit version of the timespec structure, > making the core API ready for the year 2038. Looks great, series applied, thanks Richard.

Re: [PATCH 2/2] kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat

2015-03-31 Thread Shuah Khan
On 03/26/2015 10:20 AM, John Stultz wrote: > On Thu, Mar 26, 2015 at 4:32 AM, Prarit Bhargava wrote: >> On 03/25/2015 07:44 PM, John Stultz wrote: >>> For the default run_timers target, the timers tests takes the >>> majority of kselftests runtime. >>> >>> So this patch reduces the default runtime

Re: [PATCH 1/3] phy: core: Add devm_of_phy_get_by_index to phy-core

2015-03-31 Thread Kishon Vijay Abraham I
On Friday 27 March 2015 04:37 AM, Dmitry Torokhov wrote: On Wed, Mar 25, 2015 at 05:04:32PM -0700, Arun Ramamurthy wrote: On 15-03-25 03:03 PM, Kishon Vijay Abraham I wrote: Hi, On Saturday 21 March 2015 02:59 AM, Arun Ramamurthy wrote: On 15-03-20 02:26 PM, Dmitry Torokhov wrote: Hi A

Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Tejun Heo
On Tue, Mar 31, 2015 at 04:36:27PM +0100, Peter Griffin wrote: > This patch (and also the DT documentation change) can go via your tree. Maxime > will take the stih407 DT patch. Hmmm... The first patch doesn't apply to libata/for-4.1? Thanks. -- tejun -- To unsubscribe from this list: send the

Re: [PATCHv2 0/5] ft1000 driver checkpatch.pl fixes

2015-03-31 Thread Greg Kroah-Hartman
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Thu, Mar 26, 2015 at 08:16:14PM -0700, Janakarajan Natarajan wrote: > I resent v2 because I didn't know if my previous patchset had been accepted or > not. Then it's really not a 'v2' patch series,

Re: [PATCH 01/25] arm: Use bool function return values of true/false not 1/0

2015-03-31 Thread Paolo Bonzini
On 31/03/2015 01:45, Joe Perches wrote: > Use the normal return values for bool functions > > Signed-off-by: Joe Perches > --- > arch/arm/include/asm/dma-mapping.h | 8 > arch/arm/include/asm/kvm_emulate.h | 2 +- > arch/arm/mach-omap2/powerdomain.c | 14 +++--- > 3 files cha

Re: Re: [PATCH v4 3/3] vt: fix console lock vs. kernfs s_active lock order

2015-03-31 Thread Greg Kroah-Hartman
On Fri, Mar 27, 2015 at 08:46:57AM +0100, Daniel Vetter wrote: > On Thu, Mar 26, 2015 at 11:05:45PM +0200, Imre Deak wrote: > > On Thu, 2015-03-26 at 22:01 +0100, Greg Kroah-Hartman wrote: > > > On Thu, Mar 26, 2015 at 12:59:05PM -0700, Jesse Barnes wrote: > > > > On 12/16/2014 09:42 AM, Daniel Vet

Re: [RFC PATCH] x86: optimize IRET returns to kernel

2015-03-31 Thread Denys Vlasenko
On 03/31/2015 03:54 PM, Andy Lutomirski wrote: > On Tue, Mar 31, 2015 at 5:46 AM, Denys Vlasenko wrote: >> This is not proposed to be merged yet. >> >> Andy, this patch is in spirit of your crazy ideas of repurposing >> instructions for the roles they weren't intended for :) >> >> Recently I measu

Re: [PATCH 01/25] arm: Use bool function return values of true/false not 1/0

2015-03-31 Thread Tony Lindgren
* Joe Perches [150330 16:47]: > Use the normal return values for bool functions > > Signed-off-by: Joe Perches Acked-by: Tony Lindgren > --- > arch/arm/include/asm/dma-mapping.h | 8 > arch/arm/include/asm/kvm_emulate.h | 2 +- > arch/arm/mach-omap2/powerdomain.c | 14 +++

Re: [PATCH] staging: lustre: replace kzalloc with copy_from_user with memdup_user

2015-03-31 Thread gre...@linuxfoundation.org
On Tue, Mar 31, 2015 at 05:15:23PM +0200, Julia Lawall wrote: > On Tue, 31 Mar 2015, Dhere, Chaitanya (C.) wrote: > > > This patch replaces kzalloc and copy_from_user with memdup_user call > > This change was detected with coccinelle tool > > > > Signed-off-by: Chaitanya Dhere > > --- > > driver

Re: [PATCH 3/9] perf sched replay: Alloc the memory of pid_to_task dynamically to adapt to the unexpected change of pid_max

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu: > On 3/31/15 7:46 AM, Yunlong Song wrote: > >-BUG_ON(pid >= MAX_PID); > >+if (sched->pid_to_task == NULL) { > >+if (sysctl__read_int("kernel/pid_max", &pid_max) < 0) > >+pid_max = MAX_PID; > >+

Re: [PATCH v2 1/6] phy: miphy365x: Use the generic phy type constants in dt-bindings/phy/phy.h

2015-03-31 Thread Maxime Coquelin
Hi Kishon, On 03/31/2015 05:30 PM, Kishon Vijay Abraham I wrote: Maxime, On Tuesday 31 March 2015 01:10 PM, Lee Jones wrote: On Tue, 31 Mar 2015, Kishon Vijay Abraham I wrote: Hi Patrice, Maxime, On Monday 30 March 2015 08:47 PM, Peter Griffin wrote: Now there are generic phy type constants

Re: [PATCH v2 1/2] perf tool: Refactor comm/tgid lookup

2015-03-31 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 31, 2015 at 04:35:46PM +0200, Jiri Olsa escreveu: > On Mon, Mar 30, 2015 at 02:35:57PM -0600, David Ahern wrote: > > Rather than parsing /proc/pid/status file one line at a time, read > > it into a buffer in one shot and search for all strings in one pass. > > > > tgid conversion also

Re: [PATCH] x86: Factor out common CPU initialization code

2015-03-31 Thread Ingo Molnar
* Boris Ostrovsky wrote: > Some of x86 bare-metal and Xen CPU initialization code is common between the > two > and therefore can be factored out to avoid code duplication. > > As a side effect, doing so will also extend the fix provided by commit > a7fcf28d431e ("x86/asm/entry: Replace this_c

Re: [PATCH 1/2] kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM

2015-03-31 Thread Shuah Khan
Hi John, I am seeing checkpatch warnings on this patch. See below. On 03/26/2015 05:31 AM, Prarit Bhargava wrote: > > > On 03/25/2015 07:44 PM, John Stultz wrote: >> The set-timer-lat test fails when testing CLOCK_BOOTTIME_ALARM >> or CLOCK_REALTIME_ALARM when the user isn't running as root or

Re: [PATCH 0/5] x86/asm/entry/64: simplifications

2015-03-31 Thread Ingo Molnar
* Denys Vlasenko wrote: > This patchset simplifies jump maze in entry_64.S a bit by moving > "retint_kernel" code block, and follows up with simplifications > which become obvious after the move. So I got conflicts with latest tip:master with 3 of the 5 patches, so I probably missed one of you

Re: [PATCHv4 20/24] mm, thp: remove compound_lock

2015-03-31 Thread Aneesh Kumar K.V
static void put_compound_page(struct page *page) > { > struct page *page_head; > - unsigned long flags; > > if (likely(!PageTail(page))) { > if (put_page_testzero(page)) { > @@ -108,58 +101,33 @@ static void put_compound_page(struct page *page) > /

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 05:48:44PM +0200, Jiri Olsa wrote: > On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: > > SNIP > > > struct ordered_events *oe = &session->ordered_events; > > - struct perf_tool *tool = oe->tool; > > + struct perf_tool *tool = session->tool

<    2   3   4   5   6   7   8   9   10   11   >