[PATCH v7 0/11] KGDB/KDB FIQ (NMI) debugger

2012-09-13 Thread Anton Vorontsov
Hi all, Here comes the lucky v7: - Per Alan Cox's suggestion added hangup method and removed a small leftover; - Per Colin Cross' suggestion moved IRQ quiescing logic into poll_get_char routine. IIUC, Alan is less unhappy about it. As a result, clear_irq() callback dropped. These patches

input_to_handler: unable to handle kernel NULL pointer dereference

2012-09-13 Thread Jiri Slaby
Hi, -next commit "Input: Send events one packet at a time" seems like broke the input layer: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [< (null)>] (null) PGD 0 Oops: 0010 [#1] SMP Modules linked in: CPU 0 Pid: 0, comm: swapper/0 Not tainted

Re: [PATCH 1/2] coredump: pass siginfo_t* to do_coredump() and below, not merely signr

2012-09-13 Thread Oleg Nesterov
On 09/13, Denys Vlasenko wrote: > > This is a preparatory patch for the introduction of NT_SIGINFO elf note. I think the changelog should explain what the patch does. With this patch we pass "siginfo_t *info" instead of "int signr" to do_coredump() and put it into coredump_params, this "info"

[PATCH 06/11] tty/serial/amba-pl011: Quiesce interrupts in poll_get_char

2012-09-13 Thread Anton Vorontsov
We need to quiesce interrupts in the poll_get_char routine, otherwise, if used with KGDB NMI debugger, we'll keep reentering the NMI. Quiescing interrupts is pretty straightforward, except for TXIM interrupt. The interrupt has "ready to transmit" meaning, so it's almost always raised, and the

[PATCH 08/11] ARM: Move some macros from entry-armv to entry-header

2012-09-13 Thread Anton Vorontsov
Just move the macros into header file as we would want to use them for KGDB FIQ entry code. The following macros were moved: - svc_entry - usr_entry - kuser_cmpxchg_check - vector_stub To make kuser_cmpxchg_check actually work across different files, we also have to make

[PATCH 11/11] ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

2012-09-13 Thread Anton Vorontsov
If enabled, kernel will able to enter KGDB upon serial line activity on UART ports. Note that even with this patch and CONFIG_KGDB_FIQ is enabled, you still need to pass kgdb_fiq.enable=1 kernel command line option, otherwise UART will behave in a normal way. By default UART0 is used, but this

Re: [PATCH] perf record: Change error message on failure

2012-09-13 Thread Ingo Molnar
* Robert Richter wrote: > Only report > > No CONFIG_PERF_EVENTS=y kernel support configured? > > if the syscall fails with ENOSYS. In other cases CONFIG_PERF_EVENTS is > set and might confuse users. The default message is now: > > Not all events could be opened. Indeed, and it would be

[PATCH 10/11] ARM: VIC: Add a couple of low-level FIQ management helpers

2012-09-13 Thread Anton Vorontsov
Just a couple of calls to manage VIC FIQ routing. We'll use them for KGDB FIQ support on ARM Versatile machines. Signed-off-by: Anton Vorontsov --- arch/arm/common/vic.c | 28 arch/arm/include/asm/hardware/vic.h | 2 ++ 2 files changed, 30

[PATCH 09/11] ARM: Add KGDB/KDB FIQ debugger generic code

2012-09-13 Thread Anton Vorontsov
The FIQ debugger may be used to debug situations when the kernel stuck in uninterruptable sections, e.g. the kernel infinitely loops or deadlocked in an interrupt or with interrupts disabled. By default KGDB FIQ is disabled in runtime, but can be enabled with kgdb_fiq.enable=1 kernel command line

[PATCH 07/11] tty/serial: Add kgdb_nmi driver

2012-09-13 Thread Anton Vorontsov
This special driver makes it possible to temporary use NMI debugger port as a normal console by issuing 'nmi_console' command (assuming that the port is attached to KGDB). Unlike KDB's disable_nmi command, with this driver you are always able to go back to the debugger using KGDB escape sequence

[PATCH 04/11] tty/serial/core: Introduce poll_init callback

2012-09-13 Thread Anton Vorontsov
It was noticed that polling drivers (like KGDB) are not able to use serial ports if the ports were not previously initialized via console. I.e. when booting with console=ttyAMA0 kgdboc=ttyAMA0, everything works fine, but with console=ttyFOO kgdboc=ttyAMA0, the kgdboc doesn't work. This is

[PATCH 01/11] kernel/debug: Mask KGDB NMI upon entry

2012-09-13 Thread Anton Vorontsov
The new arch callback should manage NMIs that usually cause KGDB to enter. That is, not all NMIs should be enabled/disabled, but only those that issue kgdb_handle_exception(). We must mask it as serial-line interrupt can be used as an NMI, so if the original KGDB-entry cause was say a breakpoint,

[PATCH 03/11] kdb: Turn KGDB_KDB=n stubs into static inlines

2012-09-13 Thread Anton Vorontsov
This makes the stubs actually usable, since e.g. 'foo = kdb_register();' leads to build errors in !KGDB_KDB case. Plus, with static inlines we do type checking. Signed-off-by: Anton Vorontsov --- include/linux/kdb.h | 29 - 1 file changed, 16 insertions(+), 13

[PATCH 05/11] tty/serial/amba-pl011: Implement poll_init callback

2012-09-13 Thread Anton Vorontsov
The callback is used to initialize the hardware, nothing else should be done, i.e. we should not request interrupts (but we can and do unmask some of them, as they might be useful for NMI entry). As a side-effect, the patch also fixes a division by zero[1] when booting with kgdboc options

Re: [PATCH] arm: tegra: fixing compilation error

2012-09-13 Thread Stephen Warren
On 09/12/2012 11:16 PM, Venu Byravarasu wrote: > As usb_phy.h got moved from mach to include/linux/usb > and renamed as tegra_usb_phy.h, correcting it in the include > path. This should no longer be necessary assuming there's a new linux-next today. (Note that I did point out this issue on our

[PATCH 02/11] kdb: Implement disable_nmi command

2012-09-13 Thread Anton Vorontsov
This command disables NMI-entry. If NMI source has been previously shared with a serial console ("debug port"), this effectively releases the port from KDB exclusive use, and makes the console available for normal use. Of course, NMI can be reenabled, enable_nmi modparam is used for that:

Re: [GIT PULL] sound fixes for 3.6-rc6

2012-09-13 Thread Junio C Hamano
Takashi Iwai writes: >> I can't reproduce here. What is your exact request-pull invocation? This question was not answerd. Did you ask request-pull to ask for a branch to be pulled, or did you ask it to ask for the tag to be pulled? If the former, I would have say it is a pebcak. Linus asked

Re: [GIT PULL 00/20] perf/core improvements and fixes

2012-09-13 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > Best Regards, > > - Arnaldo > > The following changes since commit d5cb2aef4fda355fbafe8db4f425b73ea94d2019: > > Merge tag 'perf-core-for-mingo' of >

Re: [PATCH][GIT PULL][v3.7] trace: Don't declare trace_*_rcuidle functions in modules

2012-09-13 Thread Ingo Molnar
* Steven Rostedt wrote: > Ingo, > > Josh made a change to the tracing code that affects both the > work Paul McKenney and I are currently doing. At the last > Kernel Summit back in August, Linus said when such a case > exists, it is best to make a separate branch based off of his > tree

Re: [PATCH] perf record: Change error message on failure

2012-09-13 Thread Robert Richter
On 13.09.12 17:07:20, Ingo Molnar wrote: > > * Robert Richter wrote: > > > Only report > > > > No CONFIG_PERF_EVENTS=y kernel support configured? > > > > if the syscall fails with ENOSYS. In other cases CONFIG_PERF_EVENTS is > > set and might confuse users. The default message is now: > > >

Re: [ 34/95] USB: option: add ZTE K5006-Z

2012-09-13 Thread Thomas Schäfer
, BENQ_PRODUCT_H10) }, { USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWM_652) }, { USB_DEVICE(ALINK_VENDOR_ID, DLINK_PRODUCT_DWM_652_U5) }, /* Yes, ALINK_VENDOR_ID */ I tested the new patch with linux-next-20120913 It works as expected, at least for the K5006-Z. Sorry for the confusion I

Re: [PATCH v6 0/4] Runtime Interpreted Power Sequences

2012-09-13 Thread Stephen Warren
On 09/13/2012 01:29 AM, Mark Brown wrote: > On Thu, Sep 13, 2012 at 04:26:34PM +0900, Alex Courbot wrote: >> On Thursday 13 September 2012 15:19:30 Mark Brown wrote: On Thursday 13 September 2012 14:25:53 Mark Brown wrote: > It would be sensible to make sure that the framework is done in

Re: [PATCH] perf record: Change error message on failure

2012-09-13 Thread Ingo Molnar
* Robert Richter wrote: > On 13.09.12 17:07:20, Ingo Molnar wrote: > > > > * Robert Richter wrote: > > > > > Only report > > > > > > No CONFIG_PERF_EVENTS=y kernel support configured? > > > > > > if the syscall fails with ENOSYS. In other cases CONFIG_PERF_EVENTS is > > > set and might

Re: [PATCH] pwm: Move AB8500 PWM driver to PWM framework

2012-09-13 Thread Thierry Reding
On Fri, Sep 07, 2012 at 03:22:09PM +0200, Thierry Reding wrote: > On Mon, Sep 03, 2012 at 01:28:44PM +0200, Arun MURTHY wrote: > > > On Sun, Sep 2, 2012 at 12:30 PM, Thierry Reding > > design.de> wrote: > > > > > > > This commit moves the driver to drivers/pwm and converts it to the new > > > >

Re: [GIT PULL] sound fixes for 3.6-rc6

2012-09-13 Thread Takashi Iwai
At Thu, 13 Sep 2012 08:14:27 -0700, Junio C Hamano wrote: > > Takashi Iwai writes: > > >> I can't reproduce here. What is your exact request-pull invocation? > > This question was not answerd. It was (a sort of), but let me clarify again. In my original pull request, I did git-request-pull

Re: [PATCH v2 03/15] dmaengine: Add no_wakeup parameter to dmaengine_prep_dma_cyclic()

2012-09-13 Thread Lars-Peter Clausen
On 09/13/2012 03:37 PM, Peter Ujfalusi wrote: > The dmaengine_prep_dma_cyclic() function primarily used by audio for cyclic > transfer required by ALSA. > With this new parameter it is going to be possible to enable the > SNDRV_PCM_INFO_NO_PERIOD_WAKEUP mode on platforms where it is possible. >

Re: [PATCH 1/2] Staging: Comedi: dyna_pci10xx: Replace printk with dev_info

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 04:46:02PM +0200, Bruce Humphrey wrote: > Thanks for all the comments! > > My own answers are from the complete linux kernel newbie point of view! > That's why I'm writing them even if they seem obvious, to make sure. > > > data[n] = 0; > > > -

Re: [PATCH] Add 2-level GPUVM pagetables support to radeon driver.

2012-09-13 Thread Christian König
Hi Dmitry, as I already noted in our internal discussion, the first step to hierarchical page table support should be to cleanup the set_page interface. Please see the attached patch, it does exactly this. I suggest that you rebase on it and try to don't touch the chipset specific code in

Re: [PATCH v2 1/5] fat: allocate persistent inode numbers

2012-09-13 Thread OGAWA Hirofumi
"J. Bruce Fields" writes: >> > Current -mm means the best-effort work only if inode cache is not >> > evicted. I.e. if there is no inode cache anymore on server, server >> > would return ESTALE. So I guess the behavior would not be stable >> > relatively. >> Hi OGAWA. >> Sorry for late

Re: [PATCH 2/2] coredump: add a new elf note with siginfo fields of the signal

2012-09-13 Thread Oleg Nesterov
On 09/13, Denys Vlasenko wrote: > > This patch adds a new elf note, NT_SIGINFO, which contains > the remaining fields of siginfo_t. I can't really comment this patch, but... > +struct coredump_siginfo { > +/* int csi_signo; in prstatus.pr_info.si_signo instead */ > +/* int

Re: [PATCH v6 1/4] Runtime Interpreted Power Sequences

2012-09-13 Thread Stephen Warren
On 09/13/2012 01:08 AM, Alex Courbot wrote: > On Thursday 13 September 2012 14:54:09 Tomi Valkeinen wrote: >> * PGP Signed by an unknown key >> >> On Thu, 2012-09-13 at 15:36 +0900, Alex Courbot wrote: >> >>> On Thursday 13 September 2012 14:22:57 Tomi Valkeinen wrote: >>> >>> >>>

Re: [PATCH 3/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-09-13 Thread Federico Vaga
> typo: steaming -> streaming :-) fixed > The header and esp. the source could really do with more > documentation. It is not at all clear from the code what the > dma-streaming allocator does and how it differs from other > allocators. The other allocators are not documented and to understand

Re: [PATCH v2 03/15] dmaengine: Add no_wakeup parameter to dmaengine_prep_dma_cyclic()

2012-09-13 Thread Russell King - ARM Linux
On Thu, Sep 13, 2012 at 05:27:09PM +0200, Lars-Peter Clausen wrote: > Hm... Do you think it would work as well if we implement this by setting the > callback for the descriptor to NULL? If the callback is NULL there is > nothing to at the end of a transfer/period and the dma engine driver may >

[PATCH v4 02/10] pinctrl: mvebu: dove pinctrl driver

2012-09-13 Thread Sebastian Hesselbarth
This patch adds a SoC specific pinctrl driver for Marvell Dove SoCs plus DT binding documentation. This driver will use the mvebu pinctrl driver core. Signed-off-by: Sebastian Hesselbarth Acked-by: Linus Walleij --- v2: - restructured pinctrl/Kconfig to hide pinctrl driver as it will be

[PATCH v4 04/10] pinctrl: mvebu: add pinctrl driver for Armada 370

2012-09-13 Thread Sebastian Hesselbarth
From: Thomas Petazzoni This pinctrl driver is not a full-blown pinctrl driver from scratch: it relies on the common pinctrl-mvebu driver, which is used for all Marvell EBU SoCs. Signed-off-by: Thomas Petazzoni Acked-by: Linus Walleij --- v2: - removed arch/arm/*/Kconfig changes and added note

[PATCH v4 09/10] arm: mvebu: split Kconfig options for Armada 370 and XP

2012-09-13 Thread Sebastian Hesselbarth
From: Thomas Petazzoni Until now, all the code for Armada 370 and XP was common, so we had a single Kconfig option to support all boards using both SoCs. With the addition of pinctrl drivers, this situation has changed: those two SoCs are radically different in terms of pinctrl, so they have two

[PATCH v4 10/10] arm: mvebu: select the pinctrl drivers for Armada 370 and Armada XP platforms

2012-09-13 Thread Sebastian Hesselbarth
From: Thomas Petazzoni This patch actually enables pinctrl drivers for Armada 370 and XP. Signed-off-by: Thomas Petazzoni --- Cc: Sebastian Hesselbarth Cc: Thomas Petazzoni Cc: Grant Likely Cc: Rob Herring Cc: Rob Landley Cc: Russell King Cc: Lior Amsalem Cc: Andrew Lunn Cc: Jason

Re: [PATCH 3/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-09-13 Thread Federico Vaga
> On Thursday, September 13, 2012 3:53 PM Federico Vaga wrote: > > Signed-off-by: Federico Vaga > > A few words explaining why this memory handling module is required or > beneficial will definitely improve the commit :) ok, I will write some lines > > +static void

[PATCH v4 08/10] ARM: mvebu: adjust Armada XP evaluation board DTS

2012-09-13 Thread Sebastian Hesselbarth
From: Thomas Petazzoni The Armada XP evaluation board is based on the MV78460 Armava XP SoC. Now that we have separate .dtsi files for the three different SoCs of the Armada XP family, use the appropriate one as include for the Armada XP evaluation board .dts file. Signed-off-by: Thomas

[PATCH v4 06/10] ARM: mvebu: Add pinctrl support to Armada XP SoCs

2012-09-13 Thread Sebastian Hesselbarth
From: Thomas Petazzoni This commits adds the necessary device tree information to define the compatible property for the pinctrl driver instance of Armada XP SoCs. Until now, the device tree representation considered the Armada XP as a single SoC. But in fact, there are three different SoCs in

Re: [PATCH v6 1/4] Runtime Interpreted Power Sequences

2012-09-13 Thread Stephen Warren
On 09/13/2012 12:02 AM, Alex Courbot wrote: > On Thursday 13 September 2012 06:07:13 Stephen Warren wrote: >> On 09/12/2012 03:57 AM, Alexandre Courbot wrote: >>> Some device drivers (panel backlights especially) need to follow precise >>> sequences for powering on and off, involving gpios,

[PATCH v4 05/10] pinctrl: mvebu: add pinctrl driver for Armada XP

2012-09-13 Thread Sebastian Hesselbarth
From: Thomas Petazzoni This pinctrl driver is not a full-blown pinctrl driver from scratch: it relies on the common pinctrl-mvebu driver, which is used for all Marvell EBU SoCs. Signed-off-by: Thomas Petazzoni Acked-by: Linus Walleij --- v2: - replaced variant with enum and used bitops.h Cc:

[PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-13 Thread Sebastian Hesselbarth
This patch adds a SoC specific pinctrl driver for Marvell Kirkwood SoCs plus DT binding documentation. This driver will use the mvebu pinctrl driver core. Signed-off-by: Sebastian Hesselbarth --- v2: - restructured pinctrl/Kconfig to hide pinctrl driver as it will be always selected by

[PATCH v4 01/10] pinctrl: mvebu: pinctrl driver core

2012-09-13 Thread Sebastian Hesselbarth
This patch adds a pinctrl driver core for Marvell SoCs plus DT binding documentation. This core driver will be used by SoC family specific drivers, i.e. Armada XP, Armada 370, Dove, Kirkwood, aso. Signed-off-by: Sebastian Hesselbarth Signed-off-by: Thomas Petazzoni --- v2: - restructured

Re: [PATCH v4 00/10] pinctrl: mvebu: pinctrl driver

2012-09-13 Thread Thomas Petazzoni
Dear Sebastian Hesselbarth, On Thu, 13 Sep 2012 17:41:42 +0200, Sebastian Hesselbarth wrote: > This patch set adds a core pinctrl driver for Marvell MVEBU SoCs and > SoC specific stubs for Armada 370, Armada XP, Dove, and Kirkwood. > The SoC specific stubs use the pinctrl-mvebu core driver that

Re: [PATCH 2/2] coredump: add a new elf note with siginfo fields of the signal

2012-09-13 Thread Oleg Nesterov
forgot to mention... On 09/13, Oleg Nesterov wrote: > > Not sure this is right. I think fill_siginfo_note() should either do > memcpy() and let userspace to decode this (raw) info, or this layout > should be unified with copy_siginfo_to_user(). And note that we simply do not know what this

Re: [PATCH v3 21/31] arm64: 32-bit (compat) applications support

2012-09-13 Thread Catalin Marinas
On Thu, Sep 13, 2012 at 12:03:27PM +0100, Arnd Bergmann wrote: > On Thursday 13 September 2012, Catalin Marinas wrote: > > +#ifdef __ARCH_WANT_COMPAT_SYS_SENDFILE > > +asmlinkage int compat_sys_sendfile(int out_fd, int in_fd, > > + compat_off_t __user *offset, s32

Re: [PATCH] perf, tools: Stop perf stat -p when profiled process exits v2

2012-09-13 Thread Andi Kleen
On Wed, Sep 12, 2012 at 08:54:18AM -0600, David Ahern wrote: > On 9/12/12 8:40 AM, Andi Kleen wrote: > >-while(!done) sleep(1); > >+char piddir[40]; > >+if (target.pid && access("/proc", X_OK) == 0) > >+snprintf(piddir, sizeof piddir,

Re: [PATCH 4/5] mm: have order > 0 compaction start near a pageblock with free pages

2012-09-13 Thread Rik van Riel
On 08/14/2012 12:41 PM, Mel Gorman wrote: commit [7db8889a: mm: have order > 0 compaction start off where it left] introduced a caching mechanism to reduce the amount work the free page scanner does in compaction. However, it has a problem. Consider two process simultaneously scanning free pages

Re: [Xen-devel] [PATCH 09/10] xen/swiotlb: Fix compile warnings when using plain integer instead of NULL pointer.

2012-09-13 Thread Ian Jackson
Konrad Rzeszutek Wilk writes ("[Xen-devel] [PATCH 09/10] xen/swiotlb: Fix compile warnings when using plain integer instead of NULL pointer."): > arch/x86/xen/pci-swiotlb-xen.c:96:1: warning: Using plain integer as NULL > pointer > arch/x86/xen/pci-swiotlb-xen.c:96:1: warning: Using plain

Re: [Xen-devel] [PATCH 09/10] xen/swiotlb: Fix compile warnings when using plain integer instead of NULL pointer.

2012-09-13 Thread Ian Jackson
Ian Jackson writes ("Re: [Xen-devel] [PATCH 09/10] xen/swiotlb: Fix compile warnings when using plain integer instead of NULL pointer."): > Konrad Rzeszutek Wilk writes ("[Xen-devel] [PATCH 09/10] xen/swiotlb: Fix > compile warnings when using plain integer instead of NULL pointer."): > >

Re: [PATCH v3 02/31] arm64: Kernel booting and initialisation

2012-09-13 Thread Christopher Covington
Hi Catalin and Will, On 09/12/2012 09:49 AM, Catalin Marinas wrote: > On Wed, Sep 12, 2012 at 01:08:58PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: >> On 17:11 Mon 10 Sep , Catalin Marinas wrote: >>> On Sun, Sep 09, 2012 at 06:20:46PM +0100, Jean-Christophe PLAGNIOL-VILLARD >>> wrote:

Re: input_to_handler: unable to handle kernel NULL pointer dereference

2012-09-13 Thread Dmitry Torokhov
On Thu, Sep 13, 2012 at 05:05:44PM +0200, Jiri Slaby wrote: > Hi, > > -next commit "Input: Send events one packet at a time" seems like broke > the input layer: Right, Henrik has a patch for this. Thanks. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[PATCH] perf, tools: Stop perf stat -p when profiled process exits v3

2012-09-13 Thread Andi Kleen
From: Andi Kleen When counting a process with perf stat -p check if the process died and exit collection if yes. v2: Add more checks, handle non -p again. Handle /proc not there. v3: Handle multi pid case. Fix non /proc error path Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c | 14

Re: [PATCH 1/7] perf: Enable function tracing for perf core

2012-09-13 Thread Steven Rostedt
On Sat, 2012-09-08 at 15:06 +0200, Frederic Weisbecker wrote: > On Sat, Sep 08, 2012 at 07:55:16AM -0400, Steven Rostedt wrote: > > According to Steven R. there is no reason left to not support > > function tracing for the perf core. This makes it easier to debug > > perf. > > > > Don't remove

Re: [Xen-devel] [PATCH 09/10] xen/swiotlb: Fix compile warnings when using plain integer instead of NULL pointer.

2012-09-13 Thread Ian Jackson
Ian Jackson writes ("Re: [Xen-devel] [PATCH 09/10] xen/swiotlb: Fix compile warnings when using plain integer instead of NULL pointer."): > Oh wait this is Linux kernel code, not in Xen? Still, > Documentation/CodingStyle doesn't say that NULL is required. Someone on irc found me this rant from

Re: [PATCH 2/2] checksyscalls: ignore kcmp system call

2012-09-13 Thread Heiko Carstens
On Fri, Sep 07, 2012 at 04:02:34PM +0400, Cyrill Gorcunov wrote: > On Fri, Sep 07, 2012 at 01:31:31PM +0200, Heiko Carstens wrote: > > Now that the checksyscalls script works again it will warn about the missing > > "kcmp" system call on all architectures but x86. > > Since according to git commit

Re: [PATCH 1/3 v2] mm: Batch unmapping of file mapped pages in shrink_page_list

2012-09-13 Thread Tim Chen
On Tue, 2012-09-11 at 12:05 +0100, Mel Gorman wrote: > > One *massive* change here that is not called out in the changelog is that > the reclaim path now holds the page lock on multiple pages at the same > time waiting for them to be batch unlocked in __remove_mapping_batch. > This is suspicious

Re: [PATCH 0/3 v2] mm: Batch page reclamation under shink_page_list

2012-09-13 Thread Tim Chen
On Tue, 2012-09-11 at 14:36 +0900, Minchan Kim wrote: > > If you send next versions, please use git-format-patch --thread style. > Quote from man > " If given --thread, git-format-patch will generate In-Reply-To and > References >headers to make the second and subsequent patch

Re: [PATCH] pinctrl: document semantics vs GPIO

2012-09-13 Thread Stephen Warren
On 09/13/2012 01:01 AM, Linus Walleij wrote: > From: Linus Walleij > > The semantics of the interactions between GPIO and pinctrl may be > unclear, e.g. which one do you request first? This amends the > documentation to make this clear. > +Drivers needing both pin control and GPIOs >

Re: [PATCH 1/2] ARM: SoC: convert MSM SMP to SoC descriptor

2012-09-13 Thread David Brown
On Thu, Sep 13, 2012 at 08:47:19AM +, Arnd Bergmann wrote: > On Wednesday 12 September 2012, David Brown wrote: > > > > From: Marc Zyngier > > > > Convert MSM SMP platforms to use the SoC descriptor to provide > > their SMP and CPU hotplug operations. > > > > Cc: David Brown > >

Re: [PATCH v2] arm: omap: hwmod: make *phy_48m* as the main_clk of ocp2scp

2012-09-13 Thread Benoit Cousson
Hi Paul, On 09/12/2012 12:28 AM, Paul Walmsley wrote: > Hi Kishon, Benoît, > > On Fri, 7 Sep 2012, Kishon Vijay Abraham I wrote: > >> Made *ocp2scp_usb_phy_phy_48m* as the main_clk for ocp2scp. Since this >> ocp2scp module does not have any fck but does have a single opt_clock, >> it is added

[PATCH] power: battery: Generic battery driver using IIO

2012-09-13 Thread anish kumar
From: anish kumar In this version: Addressed concerns raised by lars: a. made the adc_bat per device. b. get the IIO channel using hardcoded channel names. c. Minor issues related to gpio_is_valid and some code refactoring. Signed-off-by: anish kumar --- drivers/power/generic-adc-battery.c

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-13 Thread Alan Cox
On Thu, 13 Sep 2012 16:54:01 +0400 Cyrill Gorcunov wrote: > On Thu, Sep 13, 2012 at 01:51:31PM +0100, Alan Cox wrote: > > > +static int pty_get_lock(struct tty_struct *tty, int __user *arg) > > > +{ > > > + int locked = test_bit(TTY_PTY_LOCK, >flags); > > > + if (put_user(locked, arg)) > > > +

[PATCH] eeepc-laptop: fix device reference count leakage in eeepc_rfkill_hotplug()

2012-09-13 Thread Jiang Liu
Fix a device reference count leakage issue in function eeepc_rfkill_hotplug(). Signed-off-by: Jiang Liu Signed-off-by: Bjorn Helgaas --- drivers/platform/x86/eeepc-laptop.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/eeepc-laptop.c

Re: [PATCH 2/2] checksyscalls: ignore kcmp system call

2012-09-13 Thread Cyrill Gorcunov
On Thu, Sep 13, 2012 at 06:02:37PM +0200, Heiko Carstens wrote: > On Fri, Sep 07, 2012 at 04:02:34PM +0400, Cyrill Gorcunov wrote: > > On Fri, Sep 07, 2012 at 01:31:31PM +0200, Heiko Carstens wrote: > > > Now that the checksyscalls script works again it will warn about the > > > missing > > >

Re: [RFC] tty: Add get- ioctls to fetch tty status

2012-09-13 Thread Cyrill Gorcunov
On Thu, Sep 13, 2012 at 05:25:07PM +0100, Alan Cox wrote: > On Thu, 13 Sep 2012 16:54:01 +0400 > Cyrill Gorcunov wrote: > > > On Thu, Sep 13, 2012 at 01:51:31PM +0100, Alan Cox wrote: > > > > +static int pty_get_lock(struct tty_struct *tty, int __user *arg) > > > > +{ > > > > + int locked

Re: [PATCH v7 0/11] KGDB/KDB FIQ (NMI) debugger

2012-09-13 Thread Alan Cox
On Thu, 13 Sep 2012 08:01:33 -0700 Anton Vorontsov wrote: > Hi all, > > Here comes the lucky v7: > > - Per Alan Cox's suggestion added hangup method and removed a small > leftover; > - Per Colin Cross' suggestion moved IRQ quiescing logic into > poll_get_char routine. IIUC, Alan is less

Re: RCU lockup in the SMP idle thread, help...

2012-09-13 Thread John Stultz
On 09/13/2012 05:36 AM, Linus Walleij wrote: Hi Paul et al, I have this sporadic lockup in the SMP idle thread on ARM U8500: root@ME:/ root@ME:/ root@ME:/ INFO: rcu_preempt detected stalls on CPUs/tasks: { 0} (detected by 1, t=23190 jiffies) [] (unwind_backtrace+0x0/0xf8) from []

Re: [PATCH] Add 2-level GPUVM pagetables support to radeon driver.

2012-09-13 Thread Dmitry Cherkassov
Christian, > as I already noted in our internal discussion, the first step to > hierarchical page table support should be to cleanup the set_page interface. > Please see the attached patch, it does exactly this. I suggest that you > rebase on it and try to don't touch the chipset specific code in

Re: [PATCH v7 0/11] KGDB/KDB FIQ (NMI) debugger

2012-09-13 Thread Anton Vorontsov
On Thu, Sep 13, 2012 at 06:04:57PM +0100, Alan Cox wrote: > On Thu, 13 Sep 2012 08:01:33 -0700 > Anton Vorontsov wrote: > > > Hi all, > > > > Here comes the lucky v7: > > > > - Per Alan Cox's suggestion added hangup method and removed a small > > leftover; > > - Per Colin Cross' suggestion

Re: [PATCH v3 4/5] IIO : ADC: tiadc: Add support of TI's ADC driver

2012-09-13 Thread Dmitry Torokhov
On Thu, Sep 13, 2012 at 01:13:30PM +0100, Jonathan Cameron wrote: > On 13/09/12 11:40, Patil, Rachna wrote: > >This patch adds support for TI's ADC driver. > >This is a multifunctional device. > >Analog input lines are provided on which > >voltage measurements can be carried out. > >You can have

Re: RCU lockup in the SMP idle thread, help...

2012-09-13 Thread Paul E. McKenney
On Thu, Sep 13, 2012 at 09:49:14AM -0700, John Stultz wrote: > On 09/13/2012 05:36 AM, Linus Walleij wrote: > >Hi Paul et al, > > > >I have this sporadic lockup in the SMP idle thread on ARM U8500: > > > >root@ME:/ > >root@ME:/ > >root@ME:/ INFO: rcu_preempt detected stalls on CPUs/tasks: { 0} >

Re: [PATCH net-next] drivers/net: Enable IOMMU pass through for be2net

2012-09-13 Thread Craig Hada
On 9/13/2012 9:27 AM, Hada, Craig M wrote: This patch sets the coherent DMA mask to 64-bit after the be2net driver has been acknowledged that the system is 64-bit DMA capable. The coherent DMA mask is examined by the Intel IOMMU driver to determine whether to allow pass through context

Re: [PATCH v2] arm: omap: hwmod: make *phy_48m* as the main_clk of ocp2scp

2012-09-13 Thread Paul Walmsley
On Thu, 13 Sep 2012, Benoit Cousson wrote: > In this case, the ocp2scp IP is just the *bus controller* to access the > real USB_UTMI_PHY IP. > > The TRM diagram does not show that level of detail unfortunately. You > can check the PRCM spec (Figure 78 : CD_L3_INIT_USB clock scheme) to see > the

Re: [PATCH v3 02/31] arm64: Kernel booting and initialisation

2012-09-13 Thread Catalin Marinas
On Thu, Sep 13, 2012 at 04:56:11PM +0100, Christopher Covington wrote: > On 09/12/2012 09:49 AM, Catalin Marinas wrote: > > On Wed, Sep 12, 2012 at 01:08:58PM +0100, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > >> On 17:11 Mon 10 Sep , Catalin Marinas wrote: > >>> On Sun, Sep 09, 2012 at

Re: [PATCH v3 10/10] thp: implement refcounting for huge zero page

2012-09-13 Thread Andrea Arcangeli
Hi Kirill, On Wed, Sep 12, 2012 at 01:07:53PM +0300, Kirill A. Shutemov wrote: > - hpage = alloc_pages(GFP_TRANSHUGE | __GFP_ZERO, HPAGE_PMD_ORDER); The page is likely as large as a pageblock so it's unlikely to create much fragmentation even if the __GFP_MOVABLE is set. Said that I guess it

Re: [PATCH v3 00/23] Introduce Xen support on ARM

2012-09-13 Thread Stefano Stabellini
Russell, sorry for not CC'ing you on the entire patch series in the past, I'll do it in the next iteration of the series (that TBH is nearly identical to this one apart from being 3.6-rc5 based). Are you happy with it? Given that the changes are entirely contained within arch/arm/xen and

Re: [PATCH REPOST RFC cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them

2012-09-13 Thread Tejun Heo
Hello, Michal. On Thu, Sep 13, 2012 at 02:14:38PM +0200, Michal Hocko wrote: > I would like to see use_hierarchy go away. The only concern I have is > to warn only if somebody is doing something wrong (aka flat > hierarchies). Or better put it this way. Do not warn in cases which do > not change

Re: [PATCH v2] USB: PHY: Re-organize Tegra USB PHY driver

2012-09-13 Thread Stephen Warren
On 09/13/2012 01:02 AM, Venu Byravarasu wrote: > NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. > In order to support USB PHY drivers on these SoCs, existing > PHY driver is split into SoC agnostic common USB PHY driver > and Tegra20-specific USB phy driver. This will facilitate >

Re: [PATCH REPOST RFC cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them

2012-09-13 Thread Tejun Heo
Hello, Glauber. On Thu, Sep 13, 2012 at 04:01:40PM +0400, Glauber Costa wrote: > This is getting confusing for me as well, because I don't know if your > reply was targeted towards me or Michal. As for me, I am in agreement > with what you did, and I merely replied to Michal's concern and >

[PATCH -mm] coredump: add support for %d=__get_dumpable() in core name

2012-09-13 Thread Oleg Nesterov
https://bugzilla.redhat.com/show_bug.cgi?id=787135 Some coredump handlers want to create a core file in a way compatible with standard behavior. Standard behavior with fs.suid_dumpable = 2 is to create core file with uid=gid=0. However, there was no way for coredump handler to know that the

[PATCH] Xen backend support for paged out grant targets.

2012-09-13 Thread Andres Lagar-Cavilla
Since Xen-4.2, hvm domains may have portions of their memory paged out. When a foreign domain (such as dom0) attempts to map these frames, the map will initially fail. The hypervisor returns a suitable errno, and kicks an asynchronous page-in operation carried out by a helper. The foreign domain

Re: [PATCH 2/2] coredump: add a new elf note with siginfo fields of the signal

2012-09-13 Thread Roland McGrath
I agree with Oleg. If there is an NT_SIGINFO note, it should contain exactly the siginfo_t layout and data that we otherwise expose to userland already. That is, it must match what PTRACE_GETSIGINFO reports, which (I think) also matches exactly what appears on the stack for a signal delivery.

Re: input_to_handler: unable to handle kernel NULL pointer dereference

2012-09-13 Thread Henrik Rydberg
On Thu, Sep 13, 2012 at 08:57:38AM -0700, Dmitry Torokhov wrote: > On Thu, Sep 13, 2012 at 05:05:44PM +0200, Jiri Slaby wrote: > > Hi, > > > > -next commit "Input: Send events one packet at a time" seems like broke > > the input layer: > > Right, Henrik has a patch for this. Yep, it just missed

Re: [PATCH v3 10/10] thp: implement refcounting for huge zero page

2012-09-13 Thread Kirill A. Shutemov
On Thu, Sep 13, 2012 at 07:16:13PM +0200, Andrea Arcangeli wrote: > Hi Kirill, > > On Wed, Sep 12, 2012 at 01:07:53PM +0300, Kirill A. Shutemov wrote: > > - hpage = alloc_pages(GFP_TRANSHUGE | __GFP_ZERO, HPAGE_PMD_ORDER); > > The page is likely as large as a pageblock so it's unlikely to

Re: [PATCH REPOST RFC cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them

2012-09-13 Thread Michal Hocko
On Thu 13-09-12 10:18:32, Tejun Heo wrote: > Hello, Michal. > > On Thu, Sep 13, 2012 at 02:14:38PM +0200, Michal Hocko wrote: > > I would like to see use_hierarchy go away. The only concern I have is > > to warn only if somebody is doing something wrong (aka flat > > hierarchies). Or better put

[GIT PATCH] Driver core fixes for 3.6-rc6

2012-09-13 Thread Greg KH
The following changes since commit fea7a08acb13524b47711625eebea40a0ede69a0: Linux 3.6-rc3 (2012-08-22 13:29:06 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ tags/driver-core-3.6-rc6 for you to fetch changes up to

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Dan Carpenter
On Wed, Sep 12, 2012 at 02:55:29PM +0200, Samuel Iglesias Gonsalvez wrote: > From: Jens Taprogge > > This way interrupt handling becomes independent of the channel number. > > Signed-off-by: Jens Taprogge > Signed-off-by: Samuel Iglesias Gonsalvez > --- > @@ -213,7 +206,7 @@ static int

[GIT PATCH] staging fixes for 3.6-rc6

2012-09-13 Thread Greg KH
The following changes since commit fea7a08acb13524b47711625eebea40a0ede69a0: Linux 3.6-rc3 (2012-08-22 13:29:06 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-3.6-rc6 for you to fetch changes up to

Re: [PATCH 3/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-09-13 Thread Jonathan Corbet
On Thu, 13 Sep 2012 17:46:32 +0200 Federico Vaga wrote: > > A few words explaining why this memory handling module is required or > > beneficial will definitely improve the commit :) > > ok, I will write some lines In general, all of these patches need *much* better changelogs (i.e. they

[GIT PATCH] TTY fixes for 3.6-rc6

2012-09-13 Thread Greg KH
The following changes since commit fea7a08acb13524b47711625eebea40a0ede69a0: Linux 3.6-rc3 (2012-08-22 13:29:06 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-3.6-rc6 for you to fetch changes up to

[GIT PATCH] USB fixes for 3.6-rc6

2012-09-13 Thread Greg KH
The following changes since commit 4cbe5a555fa58a79b6ecbb6c531b8bab0650778d: Linux 3.6-rc4 (2012-09-01 10:39:58 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.6-rc6 for you to fetch changes up to

Re: [PATCH RFC cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them

2012-09-13 Thread Tejun Heo
Hello, Glauber. On Thu, Sep 13, 2012 at 03:53:56PM +0400, Glauber Costa wrote: > Here is where the Kconfig option comes to play. If we do it in the > kernel, userspace doesn't have to do anything. I spoke with Lennart and > Kay, and at least from a systemd PoV, they would much rather not provide

Re: [PATCH v3 01/20] Input: Break out MT data

2012-09-13 Thread Henrik Rydberg
On Wed, Sep 12, 2012 at 10:15:28PM -0700, Dmitry Torokhov wrote: > On Sat, Sep 01, 2012 at 09:46:56PM +0200, Henrik Rydberg wrote: > > Move all MT-related things to a separate place. This saves some > > bytes for non-mt input devices, and prepares for new MT features. > > > > Signed-off-by:

Re: [PATCH 07/24] Staging: ipack/devices/ipoctal: Store isr masks in ipoctal_channel

2012-09-13 Thread Dan Carpenter
On Thu, Sep 13, 2012 at 08:43:12PM +0300, Dan Carpenter wrote: > On Wed, Sep 12, 2012 at 02:55:29PM +0200, Samuel Iglesias Gonsalvez wrote: > > From: Jens Taprogge > > > > This way interrupt handling becomes independent of the channel number. > > > > Signed-off-by: Jens Taprogge > >

Re: [PATCH REPOST RFC cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them

2012-09-13 Thread Tejun Heo
Hello, Daniel. On Thu, Sep 13, 2012 at 01:16:29PM +0100, Daniel P. Berrange wrote: > If you want application developers / users to understand this, then > you really need to update the Documentation/cgroups/cgroups.txt file > to provide suitable recommendations on use of hierarchies. As it >

Re: [PATCH v3 05/20] Input: Send events one packet at a time

2012-09-13 Thread Henrik Rydberg
> Filter handlers do not typically have ->event() methods, that's the > reason for reported panic. If we decide to rewind the tree, I will amend the fix here. Thanks, Henrik -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 3/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-09-13 Thread Jonathan Corbet
On Thu, 13 Sep 2012 17:42:33 +0200 Federico Vaga wrote: > > The header and esp. the source could really do with more > > documentation. It is not at all clear from the code what the > > dma-streaming allocator does and how it differs from other > > allocators. > > The other allocators are not

Re: [PATCH RFC cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them

2012-09-13 Thread Tejun Heo
Hey, Glauber. On Thu, Sep 13, 2012 at 04:03:54PM +0400, Glauber Costa wrote: > > I might / probably work on it and am hoping to coerce Vivek into it > > too. If you wanna jump in, please be my guest. > > I am devoting part of my time to general cgroup stuff, I can definitely > help you with

<    6   7   8   9   10   11   12   13   14   >