Re: Fwd: [PATCH 6/8] watchdog: davinci: reuse driver for keystone arch

2013-11-12 Thread Santosh Shilimkar
On Wednesday 06 November 2013 06:32 AM, ivan.khoronzhuk wrote: > The keystone arch use the same IP watchdog, so add "ti,keystone-wdt" > compatible and correct identity. > > Signed-off-by: Ivan Khoronzhuk > --- Acked-by: Santosh Shilimkar -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH 00/11] Consolidate asm/fixmap.h files

2013-11-12 Thread Michal Simek
On 11/12/2013 02:22 PM, Mark Salter wrote: > Many architectures provide an asm/fixmap.h which defines support for > compile-time 'special' virtual mappings which need to be made before > paging_init() has run. This suport is also used for early ioremap > on x86. Much of this support is identical ac

Re: Fwd: [PATCH 5/8] watchdog: davinci: add "timeout-sec" property

2013-11-12 Thread Santosh Shilimkar
On Wednesday 06 November 2013 06:32 AM, ivan.khoronzhuk wrote: > Since Davinci WDT has been switched to use WDT core, it became able > to support timeout-sec property, so add it to it's binding description. > > Signed-off-by: Ivan Khoronzhuk > --- Acked-by: Santosh Shilimkar -- To unsubscribe f

Re: Fwd: [PATCH 4/8] watchdog: davinci: add GET_STATUS option support

2013-11-12 Thread Santosh Shilimkar
On Wednesday 06 November 2013 06:32 AM, ivan.khoronzhuk wrote: > When watchdog timer is expired we can know about it thought > GET_STATUS ioctl option. > > Signed-off-by: Ivan Khoronzhuk > --- Acked-by: Santosh Shilimkar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: Fwd: [PATCH 3/8] watchdog: davinci: add GET_TIMELEFT option support

2013-11-12 Thread Santosh Shilimkar
On Wednesday 06 November 2013 06:31 AM, ivan.khoronzhuk wrote: > Currently, the davinci watchdog can be read while counting, > so we can add ability to report the remaining time before > the system will reboot. > > Signed-off-by: Ivan Khoronzhuk > --- Acked-by: Santosh Shilimkar -- To unsubscri

Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels

2013-11-12 Thread Lee Jones
On Tue, 12 Nov 2013, Charles Keepax wrote: > On Mon, Nov 11, 2013 at 11:26:38AM +, Lee Jones wrote: > > > >>> I'm inclined to agree with you though, so if you want to send a patch > > > >>> based on v3.14-rc1 I'd be happy to accept it. > > > >> > > > >> Apologies for causing confusion here I c

Re: Fwd: [PATCH 2/8] watchdog: davinci: use davinci_wdt_device structure to hold device data

2013-11-12 Thread Santosh Shilimkar
On Wednesday 06 November 2013 06:31 AM, ivan.khoronzhuk wrote: > Some SoCs, like Keystone 2, can support more than one WDT and each > watchdog device has to use it's own base address, clock source, > wdd device, so add new davinci_wdt_device structure to hold device In commit avoid struct names ;)

Re: [tip:x86/bsp-hotplug] x86, apic: Disable BSP if boot cpu is AP

2013-11-12 Thread H. Peter Anvin
On 11/12/2013 02:20 AM, HATAYAMA Daisuke wrote: > > Thanks for pointing out that. I think the first two issues has already been > fixed in v3 version. I've just posted v5 version a little time ago. OK, I see now. It looks like it was radically changed, so the branch in the -tip tree is completel

Re: [PATCH 4/5] perf record: mmap output file - v5

2013-11-12 Thread David Ahern
On 11/12/13, 8:19 AM, Peter Zijlstra wrote: On Tue, Nov 12, 2013 at 12:07:51PM -0300, Arnaldo Carvalho de Melo wrote: Em Tue, Nov 12, 2013 at 03:57:07PM +0100, Peter Zijlstra escreveu: On Tue, Nov 12, 2013 at 07:46:56AM -0700, David Ahern wrote: When recording raw_syscalls for the entire syste

Re: [PATCH] perf record: Delete file if a failure occurs writing the perf data file

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 08:25:02AM -0700, David Ahern wrote: > On 11/12/13, 8:04 AM, Peter Zijlstra wrote: > >On Tue, Nov 12, 2013 at 07:51:16AM -0700, David Ahern wrote: > >>> From man mmap: > >>>SIGBUS Attempted access to a portion of the buffer that > >>>does not correspond to

Re: Fwd: [PATCH 1/8] watchdog: davinci: change driver to use WDT core

2013-11-12 Thread Santosh Shilimkar
On Wednesday 06 November 2013 06:31 AM, ivan.khoronzhuk wrote: > To reduce code duplicate and increase code readability use WDT core > code to handle WDT interface. > > Remove io_lock as the WDT core uses mutex to lock each wdt device. > Remove wdt_state as the WDT core track state with its own va

Re: [PATCH 4/5 v2] input: tc3589x-keypad: support probing from device tree

2013-11-12 Thread Sebastian Reichel
Hi, On Tue, Nov 12, 2013 at 03:13:38PM +0100, Linus Walleij wrote: > + plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); > + plat->enable_wakeup = of_property_read_bool(np, "linux,wakeup"); There is currently discussion going on for the property name of autorepeat:

[PATCH 4/5 v3] input: tc3589x-keypad: support probing from device tree

2013-11-12 Thread Linus Walleij
Implement device tree probing for the tc3589x keypad driver. This is modeled on the STMPE keypad driver and tested on the Ux500 TVK1281618 UIB. Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Use two local u32 variables to avoid weirdness in u8 casting of the resulting values to the pointe

Re: [seqcount] INFO: trying to register non-static key.

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 10:15:41AM -0500, Vivek Goyal wrote: > I see that we allocate per cpu stats but don't do any initializations. > > static void tg_stats_alloc_fn(struct work_struct *work) > { > static struct tg_stats_cpu *stats_cpu; /* this fn is non-reentrant */ > struct de

Re: [PATCH] usb: phy: remove dead code

2013-11-12 Thread Felipe Balbi
On Sun, Nov 10, 2013 at 07:37:37PM +0100, Michal Nazarewicz wrote: > From: Michal Nazarewicz no SoB, cannot apply. I already had this patch in my tree but didn't send it. I'm fine with using yours but I need SoB and commit log. -- balbi signature.asc Description: Digital signature

Re: [PATCH 1/7] arm: dt: zynq: Remove 'clock-ranges' from TTC nodes

2013-11-12 Thread Daniel Lezcano
On 11/08/2013 10:21 PM, Soren Brinkmann wrote: The bindings for the TTC changed in commit 'arm: zynq: Use standard timer binding' (e932900a3279b5dbb6d8f43c7b369003620e137c). That change removed possible subnodes from this driver rendering the 'clock-ranges' property invalid for this node. Signed

Re: [PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc

2013-11-12 Thread Matt Porter
On Tue, Nov 12, 2013 at 09:40:38AM +0100, Pantelis Antoniou wrote: > Hi Grant, > > On Nov 11, 2013, at 7:47 PM, Grant Likely wrote: > > > On Fri, 8 Nov 2013 17:06:10 +0200, Pantelis Antoniou > > wrote: > >> Add a runtime interface to /proc to enable generic device tree overlay > >> usage. > >>

Re: [PATCH] perf record: Delete file if a failure occurs writing the perf data file

2013-11-12 Thread David Ahern
On 11/12/13, 8:04 AM, Peter Zijlstra wrote: On Tue, Nov 12, 2013 at 07:51:16AM -0700, David Ahern wrote: From man mmap: SIGBUS Attempted access to a portion of the buffer that does not correspond to the file (for example, beyond the end of the file, ... SIGBUS is b

Re: [PATCH 4/5] perf record: mmap output file - v5

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 12:07:51PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Nov 12, 2013 at 03:57:07PM +0100, Peter Zijlstra escreveu: > > On Tue, Nov 12, 2013 at 07:46:56AM -0700, David Ahern wrote: > > > When recording raw_syscalls for the entire system, e.g., > > > perf record -e raw

Re: [PATCH v2] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2013-11-12 Thread Nicolas Pitre
On Tue, 12 Nov 2013, Nicolas Pitre wrote: > On Tue, 12 Nov 2013, Måns Rullgård wrote: > > > It might be possible to extract this information from relocation tables. > > True, but only for individual .o files. Once the linker puts them > together the information is lost, and trying to infer wha

Release of Linux MTI-3.10-LTS kernel.

2013-11-12 Thread Steven J. Hill
Imagination Technologies is pleased to announce the release of its 3.10 LTS (Long-Term Support) MIPS kernel. The changelog below is based off the stable Linux 3.10.14 release done by Greg Kroah-Hartman in commit 8c15abc94c737f9120d3d4a550abbcbb9be121f6 back on October 1st. The code repository is

Re: [seqcount] INFO: trying to register non-static key.

2013-11-12 Thread Vivek Goyal
On Tue, Nov 12, 2013 at 11:01:40AM +0100, Peter Zijlstra wrote: > On Tue, Nov 12, 2013 at 05:41:47PM +0800, Fengguang Wu wrote: > > On Mon, Nov 11, 2013 at 04:45:51PM +0100, Peter Zijlstra wrote: > > > On Mon, Nov 11, 2013 at 09:29:27AM +0800, Fengguang Wu wrote: > > > > Greetings, > > > > > > > >

Re: imx-drm/ipuv3-crtc.ko fails to link

2013-11-12 Thread Josh Boyer
On Tue, Nov 12, 2013 at 9:57 AM, Sascha Hauer wrote: > Hi Josh, > > On Tue, Nov 12, 2013 at 09:32:08AM -0500, Josh Boyer wrote: >> On Mon, Nov 11, 2013 at 11:22 AM, Josh Boyer >> wrote: >> > Hi All, >> > >> > With v3.12-2839-gedae583 (Linus' tree as of this morning), the >> > ipuv3-crtc.ko modul

Re: [PATCH v4] mm, oom: Fix race when selecting process to kill

2013-11-12 Thread Michal Hocko
On Mon 11-11-13 16:21:57, Sameer Nanda wrote: > The selection of the process to be killed happens in two spots: > first in select_bad_process and then a further refinement by > looking for child processes in oom_kill_process. Since this is > a two step process, it is possible that the process selec

Re: [RFC PATCH] cpufreq: cpufreq-cpu0: do not allow transitions with regulators suspended

2013-11-12 Thread Nishanth Menon
On 11/12/2013 12:03 AM, Viresh Kumar wrote: > Cc'ing Shawn as well. > > Sorry for being really late.. I just forgot about it :( Thanks for responding :) > > On 24 October 2013 23:38, Nishanth Menon wrote: >> For platforms where regulators are used, regulator access tends to be >> disabled as p

Re: [PATCH 05/11] metag: use generic fixmap.h

2013-11-12 Thread James Hogan
On 12/11/13 13:22, Mark Salter wrote: > Signed-off-by: Mark Salter > CC: James Hogan > CC: linux-me...@vger.kernel.org Acked-by: James Hogan Thanks James > --- > arch/metag/include/asm/fixmap.h | 32 +--- > 1 file changed, 1 insertion(+), 31 deletions(-) > > diff

[PATCH v4 00/15] usb: phy: msm: Fixes, cleanups and DT support

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Hi, Patches have been tested on top of Stephen's clock controller patches[1] and recent fixes for chipidea msm glue layer driver posted here[2]. Hardware platform AP8074 DragonBoard. Only gadget mode utilized for now. CV Test Suite engine "Chapter 9 tests" are passing e

Re: [patch 1/6] hardirq: Make hardirq bits generic

2013-11-12 Thread Geert Uytterhoeven
Hi Thomas, On Mon, Nov 11, 2013 at 9:52 PM, Thomas Gleixner wrote: > Some more thoughts on this. > > The whole nesting check in the exisiting low level entry code and what > I tried to resemble with the irq_exit_nested() is pretty pointless. > > Let's look at auto_inthandler and ret_from_exceptio

Re: [PATCH 4/5] perf record: mmap output file - v5

2013-11-12 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 12, 2013 at 03:57:07PM +0100, Peter Zijlstra escreveu: > On Tue, Nov 12, 2013 at 07:46:56AM -0700, David Ahern wrote: > > When recording raw_syscalls for the entire system, e.g., > > perf record -e raw_syscalls:*,sched:sched_switch -a -- sleep 1 > > > > you end up with a negative f

Re: [Xen-devel] [PATCH 2/2] swiotlb-xen: xen_swiotlb_map_page: do not error out if dma_capable fails

2013-11-12 Thread Russell King - ARM Linux
On Tue, Nov 12, 2013 at 09:48:32AM -0500, Konrad Rzeszutek Wilk wrote: > On Tue, Nov 12, 2013 at 02:12:00PM +, Stefano Stabellini wrote: > > Many ARM devices do not set the dma_mask correctly today. > > As a consequence dma_capable fails for them regardless of the address > > passed to it. > >

Re: [PATCH] perf record: Delete file if a failure occurs writing the perf data file

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 07:51:16AM -0700, David Ahern wrote: > > From man mmap: > >SIGBUS Attempted access to a portion of the buffer that > >does not correspond to the file (for example, beyond > >the end of the file, ... SIGBUS is basically the std fail for any fault;

Re: [PATCH v6 3/4] perf,x86: add Intel RAPL PMU support

2013-11-12 Thread Andi Kleen
> I don't know where Andi got that cpu starting was parallel now. > Andi? I know there was some work on it, but maybe it hasn't been merged yet. > > If hotplug is not parallel, then we can drop that RAPL hotplug_lock > I added. I guess your patch is ok without lock for now, sorry for the object

ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board

2013-11-12 Thread Alex Ling
Add a minimal board dts file for EXYNOS4412 based FriendlyARM's TINY4412 board. This patch including adds the node to support peripherals like UART, SD card on SDMMC2 port, and this patch adds GPIO connected LEDS and configure its properties like following: LED1: use 'heartbeat' trigger, blinking w

[PATCH v4 08/15] usb: phy: msm: Remove HSUSB prefix from regulator names

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Prefix did not bring any useful information. Currently none of the MSM platforms define these regulators, so it is safe to rename them. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --

[PATCH v4 03/15] usb: phy: msm: Migrate to Managed Device Resource allocation

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Move memory, regulators, clocks and irq allocation to devm_* variants. Properly check for valid clk handles. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 192 - 1 file changed, 74 insertions(+), 118 deletions(

[PATCH v4 07/15] usb: phy: msm: Remove unused pclk_src_name

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" There are no references to 'pclk_src_name' in plaform code, so it is unused. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 26 +- include/linux/usb/msm_hsusb.h |5 - 2 files changed, 1 insertion(+), 30 deletions(-) d

[PATCH v4 06/15] usb: phy: msm: Replace custom enum usb_mode_type with enum usb_dr_mode

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Use enum usb_dr_mode and drop default usb_dr_mode from platform data. USB DT bindings states: dr_mode: "...In case this attribute isn't passed via DT, USB DRD controllers should default to OTG...", so remove redundand field. Signed-off-by: Ivan T. Ivanov --- arch/arm/ma

[PATCH v4 02/15] usb: phy: msm: Move global regulators variables to driver state

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 82 - include/linux/usb/msm_hsusb.h |3 ++ 2 files changed, 42 insertions(+), 43 deletions(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-

[PATCH v4 04/15] usb: phy: msm: Remove unnecessarily check for valid regulators.

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Whether regulators are available or not is checked at driver probe. If they are not available driver will refuse to load, so no need to check them again. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 10 -- 1 file changed, 10 deletions(-) d

Re: [RFC] Coverity 1128444 - Dereference after null check (FORWARD_NULL) in glock.c

2013-11-12 Thread Geyslan Gregório Bem
2013/11/12 Steven Whitehouse : > Hi, > > On Tue, 2013-11-12 at 12:53 -0200, Geyslan Gregório Bem wrote: >> Hello, >> >> Coverity detected in 'fs/gfs2/glock.c' a possible dereference after >> null check. Maybe a positive one. >> >> There is a initial check for possible 'gl' NULL. After that 'gl' is

Re: [PATCH 4/5] perf record: mmap output file - v5

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 07:46:56AM -0700, David Ahern wrote: > When recording raw_syscalls for the entire system, e.g., > perf record -e raw_syscalls:*,sched:sched_switch -a -- sleep 1 > > you end up with a negative feedback loop as perf itself calls write() fairly > often. This patch handles

[PATCH v4 13/15] usb: phy: msm: Correct USB PHY Reset sequence for newer platform

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" On few legacy platforms, USB PHY is having dedicated reset clk. It is used to reset USB PHY after putting USB PHY into low power mode and for calibration of USB PHY. Putting USB PHY into low power mode is causing ulpi read/write timeout as expected. USB PHY reset clk is not

Re: imx-drm/ipuv3-crtc.ko fails to link

2013-11-12 Thread Sascha Hauer
Hi Josh, On Tue, Nov 12, 2013 at 09:32:08AM -0500, Josh Boyer wrote: > On Mon, Nov 11, 2013 at 11:22 AM, Josh Boyer > wrote: > > Hi All, > > > > With v3.12-2839-gedae583 (Linus' tree as of this morning), the > > ipuv3-crtc.ko module fails to link with the following messages: > > > > ERROR: "ipu_

[PATCH v4 11/15] usb: phy: msm: Use reset framework for LINK and PHY resets

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Signed-off-by: Ivan T. Ivanov Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/usb/msm-hsusb.txt |9 ++ drivers/usb/phy/phy-msm-usb.c | 30 ++-- include/linux/usb/msm_hsusb.h |3 ++

[PATCH v4 10/15] usb: phy: msm: Add device tree support and binding information

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Allows MSM OTG controller to be specified via device tree. Signed-off-by: Ivan T. Ivanov Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/usb/msm-hsusb.txt | 57 +- drivers/usb/phy/phy-msm-usb.c | 79 +++

[PATCH v4 12/15] usb: phy: msm: Add support for secondary PHY control

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Allow support to use 2nd HSPHY with USB2 Core. Some platforms may have configuration to allow USB controller work with any of the two HSPHYs present. By default driver configures USB core to use primary HSPHY. Add support to allow user select 2nd HSPHY using DT parameter.

[PATCH v4 09/15] usb: phy: msm: Properly check result from platform_get_irq()

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Function return negative code on error. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 258bca2..fa8e672d 100644 ---

Re: [RFC] Coverity 1128444 - Dereference after null check (FORWARD_NULL) in glock.c

2013-11-12 Thread Steven Whitehouse
Hi, On Tue, 2013-11-12 at 12:53 -0200, Geyslan Gregório Bem wrote: > Hello, > > Coverity detected in 'fs/gfs2/glock.c' a possible dereference after > null check. Maybe a positive one. > > There is a initial check for possible 'gl' NULL. After that 'gl' is > dereferenced in the looping check by _

Re: [PATCH v2] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2013-11-12 Thread Nicolas Pitre
On Tue, 12 Nov 2013, Måns Rullgård wrote: > Nicolas Pitre writes: > > > On Tue, 12 Nov 2013, Ben Dooks wrote: > > > >> Given these are single instructoins for ARM, is it possible we could > >> make a table of all the callers and fix them up when we initialise > >> as we do for the SMP/UP case an

[PATCH v4 15/15] usb: phy: msm: Vote for corner of VDD CX instead of voltage of VDD CX

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" New platform uses RBCPR hardware feature, with that voting for absolute voltage of VDD CX is not required. Hence vote for corner of VDD CX which uses nominal corner voltage on VDD CX. Signed-off-by: Ivan T. Ivanov Cc: Mayank Rana Cc: devicet...@vger.kernel.org --- .../d

Re: [PATCH v5 4/4] MCS Lock: Barrier corrections

2013-11-12 Thread Waiman Long
On 11/11/2013 04:17 PM, Tim Chen wrote: You could then augment that with [cmp]xchg_{acquire,release} as appropriate. +/* * In order to acquire the lock, the caller should declare a local node and * pass a reference of the node to this function in addition to the lock. * If the lock has

[PATCH v4 14/15] usb: phy: msm: Handle disconnect events

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Put the transceiver in non-driving mode. Otherwise host may not detect soft-disconnection. Signed-off-by: Ivan T. Ivanov Cc: Pavankumar Kondeti --- drivers/usb/phy/phy-msm-usb.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/phy/ph

[PATCH v4 05/15] usb: phy: msm: Fix checkpatch.pl warnings

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" This fixes following: WARNING: quoted string split across lines WARNING: Prefer seq_puts to seq_printf Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 39 ++- 1 file changed, 14 insertions(+), 25 deletions(-) diff

[PATCH v4 01/15] usb: phy: msm: Move mach dependent code to platform data

2013-11-12 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" This patch fix compilation error when driver is compiled in multi-platform builds. drivers/built-in.o: In function `msm_otg_link_clk_reset': ./drivers/usb/phy/phy-msm-usb.c:314: undefined reference to `clk_reset' ./drivers/usb/phy/phy-msm-usb.c:318: undefined reference to

Re: [PATCH v6 1/3] qrwlock: A queue read/write lock implementation

2013-11-12 Thread Waiman Long
On 11/12/2013 09:48 AM, Waiman Long wrote: This patch introduces a new read/write lock implementation that put waiting readers and writers into a queue instead of actively contending the lock like the current read/write lock implementation. This will improve performance in highly contended situat

[RFC] Coverity 1128444 - Dereference after null check (FORWARD_NULL) in glock.c

2013-11-12 Thread Geyslan Gregório Bem
Hello, Coverity detected in 'fs/gfs2/glock.c' a possible dereference after null check. Maybe a positive one. There is a initial check for possible 'gl' NULL. After that 'gl' is dereferenced in the looping check by __lockref_is_dead(). What do you think? 1875static int gfs2_glock_iter_next(stru

[PATCH 2/5] perf tool: Round mmap pages to power 2 - v2

2013-11-12 Thread David Ahern
Currently perf requires the -m / --mmap_pages option to be a power of 2. To be more user friendly perf should automatically round this up to the next power of 2. Currently: $ perf record -m 3 -a -- sleep 1 --mmap_pages/-m value must be a power of two.sleep: Terminated With patch: $ perf rec

[PATCH 4/5] perf record: mmap output file - v5

2013-11-12 Thread David Ahern
When recording raw_syscalls for the entire system, e.g., perf record -e raw_syscalls:*,sched:sched_switch -a -- sleep 1 you end up with a negative feedback loop as perf itself calls write() fairly often. This patch handles the problem by mmap'ing the file in chunks of 64M at a time and copies

Re: [PATCH] ipvs: Remove unused variable ret from sync_thread_master()

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 02:21:39PM -, David Laight wrote: > Shame there isn't a process flag to indicate that the process > will sleep uninterruptibly and that it doesn't matter. > So don't count to the load average and don't emit a warning > if it has been sleeping for a long time. A process

[PATCH v6 1/5] qrwlock: A queue read/write lock implementation

2013-11-12 Thread Waiman Long
This patch introduces a new read/write lock implementation that put waiting readers and writers into a queue instead of actively contending the lock like the current read/write lock implementation. This will improve performance in highly contended situation by reducing the cache line bouncing effec

[PATCH v6 3/5] qrwlock: Enable fair queue read/write lock

2013-11-12 Thread Waiman Long
By default, queue rwlock is fair among writers and gives preference to readers allowing them to steal lock even if a writer is waiting. However, there is a desire to have a fair variant of rwlock that is more deterministic. To enable this, fair variants of lock initializers are added by this patch

Re: [PATCH] perf record: Delete file if a failure occurs writing the perf data file

2013-11-12 Thread David Ahern
Ingo: On 11/11/13, 7:43 AM, David Ahern wrote: On 11/11/13, 2:37 AM, Ingo Molnar wrote: * David Ahern wrote: If perf fails to write data to the data file (e.g., ENOSPC error) it fails with the message: failed to write perf data, error: No space left on device and stops — killing the wor

[PATCH v6 1/3] qrwlock: A queue read/write lock implementation

2013-11-12 Thread Waiman Long
This patch introduces a new read/write lock implementation that put waiting readers and writers into a queue instead of actively contending the lock like the current read/write lock implementation. This will improve performance in highly contended situation by reducing the cache line bouncing effec

Re: [PATCH 03/11] arm: use generic fixmap.h

2013-11-12 Thread Mark Salter
On Tue, 2013-11-12 at 08:22 -0500, Mark Salter wrote: > Signed-off-by: Mark Salter > CC: Russell King > CC: linux-arm-ker...@lists.infradead.org > --- > arch/arm/include/asm/fixmap.h | 25 ++--- > 1 file changed, 6 insertions(+), 19 deletions(-) Okay, this one is wrong. I ju

[PATCH v6 5/5] qrwlock: Use smp_store_release() in write_unlock()

2013-11-12 Thread Waiman Long
This patch modifies the queue_write_unlock() function to use the new smp_store_release() function in another pending patch. This patch should only be merged if the other patch was merged. Signed-off-by: Waiman Long --- include/asm-generic/qrwlock.h |4 +--- 1 files changed, 1 insertions(+),

Re: [Xen-devel] [PATCH 2/2] swiotlb-xen: xen_swiotlb_map_page: do not error out if dma_capable fails

2013-11-12 Thread Konrad Rzeszutek Wilk
On Tue, Nov 12, 2013 at 02:12:00PM +, Stefano Stabellini wrote: > Many ARM devices do not set the dma_mask correctly today. > As a consequence dma_capable fails for them regardless of the address > passed to it. Wouldn't the DMA API debug warn of bad usage. > In xen_swiotlb_map_page we curren

[PATCH v6 4/5] qrwlock: Use the mcs_spinlock helper functions for MCS queuing

2013-11-12 Thread Waiman Long
There is a pending MCS lock patch series that adds a generic MCS locking helper functions to do MCS-style locking. This patch will enable the queue rwlock to use that generic MCS lock/unlock primitives for internal queuing. This patch should only be merged after the merging of that generic MCS lock

[PATCH v6 2/5] qrwlock x86: Enable x86 to use queue read/write lock

2013-11-12 Thread Waiman Long
This patch makes the necessary changes at the x86 architecture specific layer to enable the presence of the CONFIG_QUEUE_RWLOCK kernel option to replace the read/write lock by the queue read/write lock. It also enables CONFIG_ARCH_QUEUE_RWLOCK which will force the use of queue read/write lock for

[PATCH v6 0/5] qrwlock: Introducing a queue read/write lock implementation

2013-11-12 Thread Waiman Long
v5->v6: - Modify queue_read_can_lock() to avoid false positive result. - Move the two slowpath functions' performance tuning change from patch 4 to patch 1. - Add a new optional patch to use the new smp_store_release() function if that is merged. v4->v5: - Fix wrong definitions for QW_M

[PATCH 3/5] perf tool: Refactor mmap_pages parsing

2013-11-12 Thread David Ahern
Logic will be re-used for the out-pages argument for mmap based writes in perf-record. Signed-off-by: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Adrian Hunter --- tools/perf/util/evlist.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) diff

[PATCH 1/5] perf record: Fix segfault with --no-mmap-pages

2013-11-12 Thread David Ahern
Adrian reported a segfault when using --no-out-pages: $ tools/perf/perf record -vv --no-out-pages uname Segmentation fault (core dumped) The same occurs with --no-mmap-pages. Fix by checking that str is non-NULL before parsing it. Reported-by: Adrian Hunter Signed-off-by: David Ahern Cc: Adrian

[PATCH 0/5] perf record: mmap output file - v5

2013-11-12 Thread David Ahern
Next round or mmap based output. This round addresses re-use of mmap-pages argument parsing, adds -O shortcut for --out-pages, allows -O0 to use write instead of mmap, and handles out of space failures. David Ahern (5): perf record: Fix segfault with --no-mmap-pages perf tool: Round mmap pages

[PATCH 5/5] perf record: Handle out of space failures writing data with mmap

2013-11-12 Thread David Ahern
If the filesystem where a file is written using mmap fills perf record gets a SIGBUS and terminated. Handle the SIGBUS by using longjmp to bounce out of the memcpy and fail the write. Signed-off-by: David Ahern Cc: Ingo Molnar Cc: Frederic Weisbecker Cc: Peter Zijlstra Cc: Jiri Olsa Cc: Namhy

Re: [Xen-devel] [PATCH 1/2] swiotlb-xen: add missing xen_dma_map_page call

2013-11-12 Thread Konrad Rzeszutek Wilk
On Tue, Nov 12, 2013 at 02:11:59PM +, Stefano Stabellini wrote: > swiotlb-xen is missing a xen_dma_map_page call in > xen_swiotlb_map_sg_attrs, in the slow path. s/slow/bounce buffer/ I believe? > > Signed-off-by: Stefano Stabellini > --- > drivers/xen/swiotlb-xen.c |5 + > 1 files

Re: [RFC] Coverity 1128445 - Reliance on integer endianness

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 12:19:13PM -0200, Geyslan Gregório Bem wrote: > Hi, > > Coverity detected in 'arch/x86/kernel/cpu/perf_event_intel_uncore.c' a > possible reliance on integer endianness. Is that a positive one? > > static u64 ivt_uncore_irp_read_counter(struct intel_uncore_box *box, > stru

Re: [PATCH v2] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2013-11-12 Thread Nicolas Pitre
On Tue, 12 Nov 2013, Måns Rullgård wrote: > Nicolas Pitre writes: > > > What about this patch which I think is currently your best option. Note > > it would need to use the facilities from asm/opcodes.h to make it endian > > agnostic. > > > > diff --git a/arch/arm/kernel/setup.c b/arch/arm/ke

scripts: checkpatch.pl & Lindent (minor complaint)

2013-11-12 Thread Mimi Zohar
Hi, scripts/Lindent and scripts/checkpatch disagree whether the fields in a statically initialized array should be blank separated. static struct ima_rule_entry default_rules[] = { {.action = DONT_MEASURE,.fsmagic = PROC_SUPER_MAGIC,.flags = IMA_FSMAGIC}, Lindent adds a blank before

Re:Answer back

2013-11-12 Thread lee hyuk
I would like to discuss a very important crude oil project withyou,kindly revert back to me if this is your valid email address forfurther information. Regards, Lee -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org M

3.12 BUG() on ext4, kernel crash on nbd-client when nbd server rebooting

2013-11-12 Thread Denys Fedoryshchenko
Hi I just did some fault testing for test nbd setup, and found that if i reboot nbd server i will get immediately BUG() message on nbd client and filesystem that i cannot unmount, and any operations on it will freeze and lock processes trying to access it. Kernel 3.12, x86_64 Please let me

RE: [PATCH] ipvs: Remove unused variable ret from sync_thread_master()

2013-11-12 Thread David Laight
> > I've done this in the past so that the code sleeps interruptibly > > unless there is a signal pending - which would cause it to return > > early. > > > > /* Tell scheduler we are going to sleep... */ > > if (signal_pending(current)) > > /* We don't want waking immediately (again

[PATCH] perf trace: Simplify '--summary' output

2013-11-12 Thread Pekka Enberg
The output of 'perf trace --summary' tries to be too cute with formatting and makes it very hard to read. Simplify it in the spirit of "strace -c": [penberg@localhost libtrading]$ perf trace -a --duration 1 --summary -- sleep 1 ^C Summary of events: dbus-daemon (555), 10 events, 0.0%, 0.0

Re: [PATCH 10/10] perf tests: Use lower sample_freq in sw clock event period test

2013-11-12 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 12, 2013 at 09:07:36AM +0200, Adrian Hunter escreveu: > On 11/11/13 22:22, Arnaldo Carvalho de Melo wrote: > > We were using it at 10 kHz, which doesn't work in machines where somehow > > the max freq was auto reduced by the kernel: > > > > [root@ssdandy ~]# perf test 19 > > 19: Test so

Re: [PATCH v2] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2013-11-12 Thread Måns Rullgård
Nicolas Pitre writes: > On Tue, 12 Nov 2013, Ben Dooks wrote: > >> Given these are single instructoins for ARM, is it possible we could >> make a table of all the callers and fix them up when we initialise >> as we do for the SMP/UP case and for page-offset? > > Not really. Calls to those functi

Re: [PATCH v2] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2013-11-12 Thread Nicolas Pitre
On Tue, 12 Nov 2013, Ben Dooks wrote: > Given these are single instructoins for ARM, is it possible we could > make a table of all the callers and fix them up when we initialise > as we do for the SMP/UP case and for page-offset? Not really. Calls to those functions are generated by the compiler

Re: [RFC] Coverity 1128445 - Reliance on integer endianness

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 12:19:13PM -0200, Geyslan Gregório Bem wrote: Cc: kernel...@googlegroups.com Don't cross-post to lists that don't allow public posts, and very much don't cross-post to lists that bounce in incomprehensible gibberish :/ -- To unsubscribe from this list: send the line "unsu

Re: [RFC] Coverity 1128445 - Reliance on integer endianness

2013-11-12 Thread Geyslan Gregório Bem
2013/11/12 Peter Zijlstra : > On Tue, Nov 12, 2013 at 12:19:13PM -0200, Geyslan Gregório Bem wrote: > > Cc: kernel...@googlegroups.com > > Don't cross-post to lists that don't allow public posts, and very much > don't cross-post to lists that bounce in incomprehensible gibberish :/ > Ok. No more.

Re: [RFC] Coverity 1128445 - Reliance on integer endianness

2013-11-12 Thread Geyslan Gregório Bem
2013/11/12 Måns Rullgård : > Geyslan Gregório Bem writes: > >> Hi, >> >> Coverity detected in 'arch/x86/kernel/cpu/perf_event_intel_uncore.c' a >> possible reliance on integer endianness. Is that a positive one? > > No, x86 is always little endian. > >> static u64 ivt_uncore_irp_read_counter(struc

Re: [RFC] Coverity 1128445 - Reliance on integer endianness

2013-11-12 Thread Måns Rullgård
Geyslan Gregório Bem writes: > Hi, > > Coverity detected in 'arch/x86/kernel/cpu/perf_event_intel_uncore.c' a > possible reliance on integer endianness. Is that a positive one? No, x86 is always little endian. > static u64 ivt_uncore_irp_read_counter(struct intel_uncore_box *box, > struct perf_

[PATCH -v2] ipvs: Remove unused variable ret from sync_thread_master()

2013-11-12 Thread Geert Uytterhoeven
net/netfilter/ipvs/ip_vs_sync.c: In function 'sync_thread_master': net/netfilter/ipvs/ip_vs_sync.c:1640:8: warning: unused variable 'ret' [-Wunused-variable] Commit 35a2af94c7ce7130ca292c68b1d27fcfdb648f6b ("sched/wait: Make the __wait_event*() interface more friendly") changed how the interrupti

Release of Linux MTI-3.10-LTS kernel.

2013-11-12 Thread Steven J. Hill
Imagination Technologies is pleased to announce the release of its 3.10 LTS (Long-Term Support) MIPS kernel. The changelog below is based off the stable Linux 3.10.14 release done by Greg Kroah-Hartman in commit 8c15abc94c737f9120d3d4a550abbcbb9be121f6 back on October 1st. The code repository is

Re: imx-drm/ipuv3-crtc.ko fails to link

2013-11-12 Thread Josh Boyer
On Mon, Nov 11, 2013 at 11:22 AM, Josh Boyer wrote: > Hi All, > > With v3.12-2839-gedae583 (Linus' tree as of this morning), the > ipuv3-crtc.ko module fails to link with the following messages: > > ERROR: "ipu_plane_disable" [drivers/staging/imx-drm/ipuv3-crtc.ko] undefined! > ERROR: "ipu_plane_e

Re: [PATCH] ipvs: Remove unused variable ret from sync_thread_master()

2013-11-12 Thread Peter Zijlstra
On Tue, Nov 12, 2013 at 02:21:39PM -, David Laight wrote: > > > @@ -1637,7 +1637,7 @@ static int sync_thread_master(void *data) > > > continue; > > > } > > > while (ip_vs_send_sync_msg(tinfo->sock, sb->mesg) < 0) { > > > - int ret = __wait_e

Re: [PATCH 4/4] extcon: arizona: Eliminate dead error handling code

2013-11-12 Thread Charles Keepax
On Tue, Nov 12, 2013 at 09:15:29AM +0900, Chanwoo Choi wrote: > Hi CHarles, > > On 11/08/2013 10:19 PM, Charles Keepax wrote: > > As a small disclaimer I would personally prefer to not merge this patch. > > I have added it based on previous code review of the other patches in > > this chain. > >

Re: 3.10.16 cgroup_mutex deadlock

2013-11-12 Thread Michal Hocko
On Tue 12-11-13 18:17:20, Li Zefan wrote: > Cc more people > > On 2013/11/12 6:06, Shawn Bohrer wrote: > > Hello, > > > > This morning I had a machine running 3.10.16 go unresponsive but > > before we killed it we were able to get the information below. I'm > > not an expert here but it looks li

Re: mm/zswap: change to writethrough

2013-11-12 Thread Dan Streetman
On Tue, Nov 12, 2013 at 4:11 AM, Bob Liu wrote: > > On 11/12/2013 03:12 AM, Dan Streetman wrote: >> Seth, have you (or anyone else) considered making zswap a writethrough >> cache instead of writeback? I think that it would significantly help >> the case where zswap fills up and starts writing ba

Re: [PATCH 1/4] extcon: arizona: Add defines for microphone detection levels

2013-11-12 Thread Charles Keepax
On Mon, Nov 11, 2013 at 11:26:38AM +, Lee Jones wrote: > > >>> I'm inclined to agree with you though, so if you want to send a patch > > >>> based on v3.14-rc1 I'd be happy to accept it. > > >> > > >> Apologies for causing confusion here I checked your tree for the > > >> patch and didn't see i

Re: [PATCH] x86/smpboot: Make the code more consistent

2013-11-12 Thread Ingo Molnar
* Borislav Petkov wrote: > On Tue, Nov 12, 2013 at 01:39:37PM +0100, Ingo Molnar wrote: > > Mind applying the attached cleanup patch first, before doing fixes to > > the printout? No change in functionality. Mildly tested. > > Yeah, boots fine in my strange topology kvm configuration here. We s

RE: [PATCH] ipvs: Remove unused variable ret from sync_thread_master()

2013-11-12 Thread David Laight
> > @@ -1637,7 +1637,7 @@ static int sync_thread_master(void *data) > > continue; > > } > > while (ip_vs_send_sync_msg(tinfo->sock, sb->mesg) < 0) { > > - int ret = __wait_event_interruptible(*sk_sleep(sk), > > So ideally there's be a c

Re: [PATCH v2] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2013-11-12 Thread Måns Rullgård
Nicolas Pitre writes: > What about this patch which I think is currently your best option. Note > it would need to use the facilities from asm/opcodes.h to make it endian > agnostic. > > diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c > index 6a1b8a81b1..379cffe4ab 100644 > ---

Re: [PATCH net 1/2] tuntap: limit head length of skb allocated

2013-11-12 Thread Jason Wang
- 原始邮件 - > We currently use hdr_len as a hint of head length which is advertised by > guest. But when guest advertise a very big value, it can lead to an 64K+ > allocating of kmalloc() which has a very high possibility of failure when > host > memory is fragmented or under heavy stress. T

<    1   2   3   4   5   6   7   8   >