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

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

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

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

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

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

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

[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

[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

[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

[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

[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

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

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.

[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

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

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

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

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

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

[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

[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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

[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

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

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

[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

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 = >ordered_events; > > > - struct perf_tool

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 >

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

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

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.

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

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

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

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

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

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

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

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

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", _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

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

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

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 = >ordered_events; > > - struct perf_tool *tool = oe->tool; > > + struct perf_tool *tool = session->tool; > >

Re: [PATCH 01/11] clocksource: arm_arch_timer: Rename arch_timer_probed to reflect behaviour

2015-03-31 Thread Ingo Molnar
* Laurent Pinchart wrote: > Hi Ingo, > > On Tuesday 31 March 2015 09:14:52 Ingo Molnar wrote: > > * Daniel Lezcano wrote: > > > From: Laurent Pinchart > > > > > > The arch_timer_probed function returns whether the given time doesn't > > > need to be probed. This can be the case when the

Re: [BUG] perf script segfault

2015-03-31 Thread Jiri Olsa
On Tue, Mar 31, 2015 at 11:57:39AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > struct ordered_events *oe = >ordered_events; > - struct perf_tool *tool = oe->tool; > + struct perf_tool *tool = session->tool; > int fd = perf_data_file__fd(session->file); > u64 head,

Re: [PATCH 2/2] phy: driver for Conexant Digicolor internal USB PHY

2015-03-31 Thread Kishon Vijay Abraham I
Hi, On Tuesday 31 March 2015 09:11 PM, Baruch Siach wrote: Hi Kishon, On Tue, Mar 31, 2015 at 08:56:54PM +0530, Kishon Vijay Abraham I wrote: On Tuesday 31 March 2015 05:04 PM, Baruch Siach wrote: On Sat, Mar 28, 2015 at 04:33:02PM +0100, Marek Vasut wrote: On Friday, March 27, 2015 at

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

2015-03-31 Thread Andrey Danin
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 was reimplemented to use tegra i2c. Use common i2c bindings for NVEC node.

Re: [PATCH v3 6/7] dmaengine: omap-dma: Remove mapping between virtual channels and requests

2015-03-31 Thread Peter Ujfalusi
On 03/27/2015 10:22 PM, Russell King - ARM Linux wrote: > On Fri, Mar 27, 2015 at 02:26:52PM +0200, Peter Ujfalusi wrote: >> Do not direct map the virtual channels to sDMA request number. When the >> sDMA is behind of a crossbar this direct mapping can cause situations when >> certain channel can

Re: [Linux-nvdimm] [PATCH 4/6] SQUSHME: pmem: Micro cleaning

2015-03-31 Thread Boaz Harrosh
On 03/31/2015 06:30 PM, Dan Williams wrote: > On Tue, Mar 31, 2015 at 8:24 AM, Boaz Harrosh wrote: >> On 03/31/2015 06:17 PM, Dan Williams wrote: >>> On Tue, Mar 31, 2015 at 6:27 AM, Boaz Harrosh wrote: Some error checks had unlikely some did not. Put unlikely on all error

Re: [PATCH RFC] nohz,blk-mq: do not create blk-mq workqueues on nohz dedicated CPUs

2015-03-31 Thread Jens Axboe
On 03/31/2015 09:33 AM, Frederic Weisbecker wrote: On Tue, Mar 31, 2015 at 09:07:11AM -0600, Jens Axboe wrote: On 03/31/2015 08:27 AM, Rik van Riel wrote: CPUs with nohz_full do not want disruption from timer interrupts, or other random system things. This includes block mq work. There is

Re: [PATCH 2/2] phy: driver for Conexant Digicolor internal USB PHY

2015-03-31 Thread Baruch Siach
Hi Kishon, On Tue, Mar 31, 2015 at 08:56:54PM +0530, Kishon Vijay Abraham I wrote: > On Tuesday 31 March 2015 05:04 PM, Baruch Siach wrote: > >On Sat, Mar 28, 2015 at 04:33:02PM +0100, Marek Vasut wrote: > >>On Friday, March 27, 2015 at 05:36:29 AM, Baruch Siach wrote: > >>>Add a driver for the

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

2015-03-31 Thread Peter Griffin
Hi Tejun, On Tue, 31 Mar 2015, Tejun Heo wrote: > On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote: > > Currently the ahci_st driver will hang the system on probe, as the > > st_configure_oob function does some register writes before the IP > > is clocked. This patch moves the

Re: [PATCH] Revert "drm/i915: Performed deferred clflush inside set-cache-level"

2015-03-31 Thread Chris Wilson
On Tue, Mar 31, 2015 at 08:40:12PM +0530, Sudip Mukherjee wrote: > This reverts commit <0f71979ab7fbd0c71c41c2798de3d33937915434>. > > my display was getting garbled for a moment very frequently. it looked > like when the screen was getting refreshed then something was going > wrong. > git bisect

Re: [PATCH] ARM: dts: mt8173: support arm64 cpuidle-dt

2015-03-31 Thread Lorenzo Pieralisi
On Tue, Mar 31, 2015 at 04:24:37AM +0100, Howard Chen wrote: > add an idle-states node to describe the mt8173 cpu idle > add a reference to the idle-states node in each CPU node You are also changing the PSCI version in this patch, but I think it is acceptable to have multiple changes at once to

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

2015-03-31 Thread Maxime Coquelin
Hello Tejun, On 03/31/2015 05:29 PM, Tejun Heo wrote: On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote: Currently the ahci_st driver will hang the system on probe, as the st_configure_oob function does some register writes before the IP is clocked. This patch moves the function

[PATCH v2 10/10] KVM: arm64: add trace points for guest_debug debug

2015-03-31 Thread Alex Bennée
This includes trace points for: kvm_arch_setup_guest_debug kvm_arch_clear_guest_debug kvm_handle_guest_debug I've also added some generic register setting trace events so I can watch the register values being built up over time. The local dump_dbg_regs() function dumps all the HW BKPT and

Re: [PATCH RFC] nohz,blk-mq: do not create blk-mq workqueues on nohz dedicated CPUs

2015-03-31 Thread Frederic Weisbecker
On Tue, Mar 31, 2015 at 09:07:11AM -0600, Jens Axboe wrote: > On 03/31/2015 08:27 AM, Rik van Riel wrote: > >CPUs with nohz_full do not want disruption from timer interrupts, > >or other random system things. This includes block mq work. > > > >There is another issue with block mq vs. realtime

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

2015-03-31 Thread Kishon Vijay Abraham I
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 declared in phy.h, migrate over to using them rather than

Re: [Linux-nvdimm] [PATCH 4/6] SQUSHME: pmem: Micro cleaning

2015-03-31 Thread Dan Williams
On Tue, Mar 31, 2015 at 8:24 AM, Boaz Harrosh wrote: > On 03/31/2015 06:17 PM, Dan Williams wrote: >> On Tue, Mar 31, 2015 at 6:27 AM, Boaz Harrosh wrote: >>> >>> Some error checks had unlikely some did not. Put unlikely >>> on all error handling paths. >>> (I like unlikely for error paths

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

2015-03-31 Thread Will Deacon
On Tue, Mar 31, 2015 at 12:46:00AM +0100, Joe Perches wrote: > Use the normal return values for bool functions > > Signed-off-by: Joe Perches > --- > arch/arm64/include/asm/dma-mapping.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

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 08:35:09AM +0100, Peter Griffin wrote: > Currently the ahci_st driver will hang the system on probe, as the > st_configure_oob function does some register writes before the IP > is clocked. This patch moves the function call to after > ahci_platform_enable_resources (which

Re: [PATCH 0/2] workqueue: fix a bug when numa mapping is changed

2015-03-31 Thread Tejun Heo
Hello, Kamezawa. On Tue, Mar 31, 2015 at 03:09:05PM +0900, Kamezawa Hiroyuki wrote: > But this may be considered as API change for most hot-add users. Hmm... Why would it be? What can that possibly break? > So, for now, I vote for detemining ids at online but record it is a good way. If we

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