[PATCH 1/1] hso: fix problem with wrong status code sent by OPTION GTM601 during RING indication

2013-10-02 Thread Dr. H. Nikolaus Schaller
Hi Jan, we are using a GTM601 modem (Firmware 1.7) for a while and have spotted an issue that under some conditions the modem sends a packed wIndex over USB that is rejected by the hso driver making troubles afterwards. Not rejecting makes it work fine. BR, Nikolaus Schaller --- >From f5c7e15b

Re: [PATCH 4/4] kconfig: remove unused definition from scanner

2013-10-02 Thread Yann E. MORIN
Martin, All, On Wednesday 02 October 2013 08:42:59 Dirk Gouders wrote: > Martin Walch writes: > > > From: Martin Walch > > Date: Wed, 2 Oct 2013 06:58:46 +0200 > > Subject: [PATCH 4/4] kconfig: remove unused definition from scanner > > > > The definition ws [ \n\t] is not used anywhere. Drop it

Re: kthread: Make kthread_create() killable.

2013-10-02 Thread David Rientjes
On Tue, 1 Oct 2013, Tetsuo Handa wrote: > > Or, when the system doesn't respond for a long period of time you do > > sysrq+T and you find the TIF_MEMDIE bit set on a process that makes no > > progress exiting. > > In enterprise systems, an operator is not always sitting in front of the > serve

Re: [PATCH v2 2/6] PCI/MSI: Factor out pci_get_msi_cap() interface

2013-10-02 Thread Alexander Gordeev
On Wed, Oct 02, 2013 at 12:43:24PM +1000, Michael Ellerman wrote: > On Tue, Oct 01, 2013 at 12:35:27PM +0200, Alexander Gordeev wrote: > > On Tue, Oct 01, 2013 at 05:51:33PM +1000, Michael Ellerman wrote: > > > The disadvantage is that any restriction imposed on us above the quota > > > can only be

Re: [PATCH 4/4] kconfig: remove unused definition from scanner

2013-10-02 Thread Dirk Gouders
Martin Walch writes: > From: Martin Walch > Date: Wed, 2 Oct 2013 06:58:46 +0200 > Subject: [PATCH 4/4] kconfig: remove unused definition from scanner > > The definition ws [ \n\t] is not used anywhere. Drop it to avoid confusion. Hi Martin, I think you should also regenerate the scanner and a

[PATCH RFC] fs/binfmt_elf: fix memory map for PIE applications

2013-10-02 Thread Timo Teräs
arch/*/include/asm/elf.h comments say: ELF_ET_DYN_BASE is the location that an ET_DYN program is loaded if exec'ed. Typical use of this is to invoke "./ld.so someprog" to test out a new version of the loader. We need to make sure that it is out of the way of the program that it will "exec

Re: [PATCH v2 2/6] PCI/MSI: Factor out pci_get_msi_cap() interface

2013-10-02 Thread Alexander Gordeev
On Tue, Oct 01, 2013 at 10:46:32PM -0400, Mark Lord wrote: > >>> The last pattern makes most of sense to me and could be updated with a > >>> more > >>> clear sequence - a call to (bit modified) pci_msix_table_size() followed > >>> by a call to pci_enable_msix(). I think this pattern can effective

Re: [PATCH net-next] net:drivers/net: Miscellaneous conversions to ETH_ALEN

2013-10-02 Thread Arend van Spriel
On 10/02/2013 04:04 AM, Joe Perches wrote: Convert the memset/memcpy uses of 6 to ETH_ALEN where appropriate. Also convert some struct definitions and u8 array declarations of [6] to ETH_ALEN. For brcmsmac Acked-by: Arend van Spriel Signed-off-by: Joe Perches --- drivers/net/wireless/brc

[PATCH] tools/perf: Fix double/triple-build of the feature detection logic during 'make install' et al

2013-10-02 Thread Ingo Molnar
* Linus Torvalds wrote: > [...] > > Another annoyance during that make was that "make install" seems to want > to re-make the thing I just built. That's absolutely horrible, even if > I've seen too many broken projects do that. Now, for perf it's not as > horrible as for some (because you ca

Re: [PATCH 6/7] x86, kaslr: report kernel offset on panic

2013-10-02 Thread Kees Cook
On Tue, Oct 1, 2013 at 5:38 PM, HATAYAMA Daisuke wrote: > (2013/10/02 4:37), Kees Cook wrote: >> When the system panics, include the kernel offset in the report to assist >> in debugging. >> >> Signed-off-by: Kees Cook >> --- >> arch/x86/kernel/setup.c | 26 ++ >> 1 f

Re: [PATCH 6/7] x86, kaslr: report kernel offset on panic

2013-10-02 Thread Kees Cook
On Tue, Oct 1, 2013 at 6:06 PM, HATAYAMA Daisuke wrote: > (2013/10/02 9:38), HATAYAMA Daisuke wrote: >> (2013/10/02 4:37), Kees Cook wrote: > >>> @@ -1242,3 +1256,15 @@ void __init i386_reserve_resources(void) >>>} >>> >>>#endif /* CONFIG_X86_32 */ >>> + >>> +static struct notifier_block

Re: [PATCH] Staging: android: binder.c: Fixed 80 characters warnings from checkpatch.pl

2013-10-02 Thread Dan Carpenter
On Tue, Oct 01, 2013 at 09:39:48PM -0400, Mathieu Rhéaume wrote: > Fixed a lot of warnings from checkpatch.pl about the 80 characters per line > limitation. > The code was better in the original, sorry. Also this doesn't apply to linux-next from Friday. regards, dan carpenter -- To unsubscrib

Re: [PATCH] Staging : android: binder.c: Prefer seq_puts to seq_printf

2013-10-02 Thread Dan Carpenter
On Tue, Oct 01, 2013 at 09:57:36PM -0400, Mathieu Rhéaume wrote: > This patch changes seq_printf for seq_puts in binder.c. > It fixes the warnings emitted by checkpatch.pl. Which warnings? Seems like a false positive somehow because seq_puts() is totally wrong here. This doesn't compile. regard

Re: [PATCH v3] Staging : android: binder.c: Prefer seq_puts to seq_printf

2013-10-02 Thread Dan Carpenter
On Wed, Oct 02, 2013 at 01:02:39AM -0400, Mathieu Rhéaume wrote: > Changes since v2: > * Fixed the indent in the method calls that had too many tab. > > >8--8< > > This patch changes seq_printf for seq_puts in binder.c. > It fixes the warnings

Re: [PATCH] perf tools: Speed up git-version test on re-make

2013-10-02 Thread Namhyung Kim
On Wed, 2 Oct 2013 08:50:42 +0200, Ingo Molnar wrote: > * Namhyung Kim wrote: > >> On Tue, 1 Oct 2013 16:46:18 +0200, Ingo Molnar wrote: >> >> [SNIP] >> > >> > -$(OUTPUT)PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE >> > +$(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD >> >@$(SHELL_PATH) util/PER

Re: [PATCH 1/3] perf tools: Separate lbfd check out of NO_DEMANGLE condition

2013-10-02 Thread Jiri Olsa
On Wed, Oct 02, 2013 at 10:18:32AM +0900, Namhyung Kim wrote: > Hi Jiri, > > On Sun, 29 Sep 2013 15:52:06 +0900, Namhyung Kim wrote: > > Hi Jiri, > > > > 2013-09-27 (금), 16:32 +0200, Jiri Olsa: > >> We fail build with NO_DEMANGLE with missing -lbfd externals error. > >> The reason is that we now u

Re: [PATCH] [workqueue] check values of pwq and wq in print_worker_info() before use

2013-10-02 Thread Helge Deller
On 10/02/2013 12:50 AM, James Bottomley wrote: > On Wed, 2013-10-02 at 00:07 +0200, Helge Deller wrote: >> On 10/01/2013 11:40 PM, James Bottomley wrote: >>> On Tue, 2013-10-01 at 16:43 -0400, Tejun Heo wrote: Hello, On Tue, Oct 01, 2013 at 10:35:20PM +0200, Helge Deller wrote: >

[PATCH] acpi/mem_hotplug: Use defined marco METHOD_NAME__STA

2013-10-02 Thread Zhang Yanfei
From: Zhang Yanfei We already have predefined marco for method name "_STA', so using the marco instead of directly using the string. Signed-off-by: Zhang Yanfei --- drivers/acpi/acpi_memhotplug.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/acpi_mem

Re: [Add SMP support for Allwinner A20: PATCH V4 0/3]

2013-10-02 Thread Daniel Lezcano
On 10/01/2013 05:42 PM, Fan Rong wrote: This is the version 4 patch. It use smp_prepare_cpus replacing early_init as cpuconfigure map init funcation caller and use sun7i replacing sunxi7i as funcation name and variable name. Hi Fan, your patchset does not have a changelog neither a descrip

[PATCH] perf tool: simplify a git command in PERF-VERSION-GEN

2013-10-02 Thread Ramkumar Ramachandra
Replace a complex git log invocation with a simpler git rev-parse invocation. Cc: Ingo Molnar Cc: Namhyung Kim Cc: Arnaldo Carvalho de Melo Signed-off-by: Ramkumar Ramachandra --- tools/perf/util/PERF-VERSION-GEN | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/u

Re: [PATCH 3/3] KVM: PPC: Book3S: Add support for hwrng found on some powernv systems

2013-10-02 Thread Paolo Bonzini
Il 01/10/2013 23:44, Benjamin Herrenschmidt ha scritto: > On Tue, 2013-10-01 at 13:19 +0200, Paolo Bonzini wrote: >> Il 01/10/2013 11:38, Benjamin Herrenschmidt ha scritto: >>> So for the sake of that dogma you are going to make us do something that >>> is about 100 times slower ? (and possibly inv

Re: [PATCH 1/3] perf tools: Separate lbfd check out of NO_DEMANGLE condition

2013-10-02 Thread Namhyung Kim
Hi Jiri, On Wed, 2 Oct 2013 10:17:57 +0200, Jiri Olsa wrote: > On Wed, Oct 02, 2013 at 10:18:32AM +0900, Namhyung Kim wrote: >> It seems that it needs libdl for loading plugins. Adding -ldl makes >> above build successfully. So we need to add -ldl for EXTLIBS IMHO. >> Without it, make NO_GTK2=1

Re: [PATCH 1/4] i2c: busses: i2c-st: Add ST I2C controller

2013-10-02 Thread Maxime COQUELIN
On 10/01/2013 10:45 PM, Stephen Warren wrote: > On 10/01/2013 04:39 AM, Maxime COQUELIN wrote: >> This patch adds support to SSC (Synchronous Serial Controller) >> I2C driver. This IP also supports SPI protocol, but this is not >> the aim of this driver. >> >> This IP is embedded in all ST SoCs fo

[PATCH] backlight: lm3630: fix sparse warning.

2013-10-02 Thread Daniel Jeong
This patch is to fix sparse warning due to mixing different enum type. Signed-off-by: Daniel Jeong --- drivers/video/backlight/lm3630a_bl.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c inde

[GIT PULL] pinctrl fixes for v3.12

2013-10-02 Thread Linus Walleij
Hi Linus, here is a smallish batch of fixes for the pin control stuff in v3.12. All but the topmost commit were tested in Linux-next prior to Stephens leave. Please pull them in! Yours, Linus Walleij The following changes since commit 272b98c6455f00884f0350f775c5342358ebb73f: Linux 3.12-rc1

Re: [PATCH 2/2] cpufreq: make return type of lock_policy_rwsem_{read|write}() as void

2013-10-02 Thread Viresh Kumar
On 30 September 2013 23:58, Rafael J. Wysocki wrote: > On Monday, September 16, 2013 08:40:17 PM Viresh Kumar wrote: >> lock_policy_rwsem_{read|write}() currently has return type of int but it >> always >> return zero and hence its return type must be void instead. This patch makes >> its >> ret

Re: [PATCH] intel-iommu: Fix leaks in pagetable freeing

2013-10-02 Thread Borislav Petkov
On Sat, Jun 15, 2013 at 10:27:19AM -0600, Alex Williamson wrote: > At best the current code only seems to free the leaf pagetables and > the root. If you're unlucky enough to have a large gap (like any > QEMU guest with more than 3G of memory), only the first chunk of leaf > pagetables are freed (

Re: [PATCH 3/3] KVM: PPC: Book3S: Add support for hwrng found on some powernv systems

2013-10-02 Thread Paolo Bonzini
Il 02/10/2013 07:09, Paul Mackerras ha scritto: > On Tue, Oct 01, 2013 at 01:19:06PM +0200, Paolo Bonzini wrote: > >> Anyhow, I would like to know more about this hwrng and hypercall. >> >> Does the hwrng return random numbers (like rdrand) or real entropy (like >> rdseed that Intel will add in Br

Re: [PATCH] usb: gadget: Add UDC driver for Aeroflex Gaisler GRUSBDC

2013-10-02 Thread Andreas Larsson
On 2013-10-01 16:19, Felipe Balbi wrote: Hi, On Tue, Oct 01, 2013 at 10:34:47AM +0200, Andreas Larsson wrote: +/* #define VERBOSE_DEBUG */ we don't want this, we want verbose debug to be selectable on Kconfig, which already is ;-) I was only aware of CONFIG_USB_GADGET_DEBUG leading to DEBUG

Re: linux-next: build failure after merge of the akpm tree

2013-10-02 Thread Frederic Weisbecker
On Wed, Sep 25, 2013 at 02:43:28PM -0700, Andrew Morton wrote: > On Wed, 25 Sep 2013 14:32:14 -0700 (PDT) Hugh Dickins > wrote: > > > On Wed, 25 Sep 2013, Andrew Morton wrote: > > > On Wed, 25 Sep 2013 11:06:43 +1000 Stephen Rothwell > > > wrote: > > > > Hi Andrew, > > > > > > > > After mergi

Re: [PATCH 11/11] perf: Avoid uninitialized sample type reference in __perf_event__output_id_sample

2013-10-02 Thread Peter Zijlstra
On Mon, Sep 30, 2013 at 01:29:12PM -0700, Andi Kleen wrote: > From: Andi Kleen > > __perf_event__output_id_sample looks at data->type to decide > what to output. > > A lot of of the custom output functions, for example perf_log_throttle > start with perf_event_header__init_id, which only initial

[PATCH] perf tool: add example to perf-trace documentation

2013-10-02 Thread Ramkumar Ramachandra
It's not clear that perf trace must be run as a privileged user, so include an example demonstrating its usage with sudo. While at it, update the synopsis to include options. Cc: Ingo Molnar Cc: Namhyung Kim Cc: Arnaldo Carvalho de Melo Cc: David Ahern Signed-off-by: Ramkumar Ramachandra ---

Re: [PATCH 1/4] i2c: busses: i2c-st: Add ST I2C controller

2013-10-02 Thread Wolfram Sang
> >> +Optional properties : > >> +- i2c-min-scl-pulse-width-us : The minimum valid SCL pulse width that is > >> allowed > >> + through the deglitch circuit. In units of us. > >> +- i2c-min-sda-pulse-width-us : The minimum valid SDA pulse width that is > >> allowed > >> + through the deglitch c

Re: using mmc2 on panda [was: Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet]

2013-10-02 Thread Arend van Spriel
On 10/01/2013 03:19 PM, Balaji T K wrote: Hi Roger, It has been a while, but I would like to pickup this thread. We have a couple of pandaboards used as test setup. These have an SDIO adapter hooked up to expansion connector A using MMC2. I have attached the patch file (just ignore platform_data

Re: [PATCH 3/3] KVM: PPC: Book3S: Add support for hwrng found on some powernv systems

2013-10-02 Thread Benjamin Herrenschmidt
On Wed, 2013-10-02 at 10:46 +0200, Paolo Bonzini wrote: > > Thanks. Any chance you can give some numbers of a kernel hypercall and > a userspace hypercall on Power, so we have actual data? For example a > hypercall that returns H_PARAMETER as soon as possible. I don't have (yet) numbers at han

Re: [PATCH] hotplug: Optimize {get,put}_online_cpus()

2013-10-02 Thread Peter Zijlstra
On Tue, Oct 01, 2013 at 08:07:50PM +0200, Oleg Nesterov wrote: > > > But note that you do not strictly need this change. Just kill > > > cpuhp_waitcount, > > > then we can change cpu_hotplug_begin/end to use xxx_enter/exit we discuss > > > in > > > another thread, this should likely "join" all sy

Re: [PATCH 3/3] KVM: PPC: Book3S: Add support for hwrng found on some powernv systems

2013-10-02 Thread Alexander Graf
On 02.10.2013, at 11:06, Benjamin Herrenschmidt wrote: > On Wed, 2013-10-02 at 10:46 +0200, Paolo Bonzini wrote: > >> >> Thanks. Any chance you can give some numbers of a kernel hypercall and >> a userspace hypercall on Power, so we have actual data? For example a >> hypercall that returns H_

Re: [PATCH 6/7] x86, kaslr: report kernel offset on panic

2013-10-02 Thread HATAYAMA Daisuke
(2013/10/02 16:48), Kees Cook wrote: On Tue, Oct 1, 2013 at 5:38 PM, HATAYAMA Daisuke wrote: (2013/10/02 4:37), Kees Cook wrote: When the system panics, include the kernel offset in the report to assist in debugging. Signed-off-by: Kees Cook --- arch/x86/kernel/setup.c | 26

[PATCH v2] USB: gadget: s3c-hsotg: fix maxpacket size

2013-10-02 Thread Robert Baldyga
This patch changes ep maxpacket value from 512 to 1024, because it's needed to handle interupt and isochronous endpoints in high-speed mode. This change doesn't affect on driver functioning, because fifo size (3072) is still enough for the maximum transaction payload (3*1024 for high-speed high-ban

[PATCH] HID: multitouch: Fix GeneralTouch products and add more PIDs

2013-10-02 Thread Benjamin Tissoires
From: Luosong GeneralTouch products should use the quirk SLOT_IS_CONTACTID instead of SLOT_IS_CONTACTNUMBER. Adding PIDs 0101,e100,0102,0106,010a from the new products. Tested on new and older products by GeneralTouch engineers. Signed-off-by: Luosong Signed-off-by: Benjamin Tissoires --- H

[QUERY] Why does perf-trace need me to be root?

2013-10-02 Thread Ramkumar Ramachandra
Hi, All the other perf tooling can be used as a normal user. At one point, I had to touch /proc/sys/kernel/perf_event_paranoid to get me numbers on a PMU event without a symbolic name, but that's about it. perf-trace seems to be the exception though: artagnon|perf-core=:~/src/linux/tools/perf$

[PATCH] of/of_reserved_mem.c: fix typo

2013-10-02 Thread Prabhakar Lad
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/of/of_reserved_mem.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index 0fe40c7..c7a1ea3 100644 --- a/drivers/of/of_reserved_mem.c +++ b/drivers

Re: [PATCH] perf auto-dep: Speed up feature tests by building them in parallel

2013-10-02 Thread Jiri Olsa
On Mon, Sep 30, 2013 at 06:42:10PM +0200, Ingo Molnar wrote: > > This series (with combo patch attached) implements (much) faster > perf-tools feature-auto-detection. > > I used 3 tricks to implement feature auto-dependencies and to speed up > feature detection: > > - standalone Makefile in

[PATCH] tools/perf/build: Automatically build in parallel, based on number of CPUs in the system

2013-10-02 Thread Ingo Molnar
This patch below fixes another tools/perf build system annoyance: that it does not build in parallel by default. The effect is that for example 'make install' will build in parallel (dependent on number of CPUs in the system) and then install the result. Thanks, Ingo

Re: [PATCH 1/4] i2c: busses: i2c-st: Add ST I2C controller

2013-10-02 Thread Maxime COQUELIN
On 10/02/2013 11:02 AM, Wolfram Sang wrote: +Optional properties : +- i2c-min-scl-pulse-width-us : The minimum valid SCL pulse width that is allowed + through the deglitch circuit. In units of us. +- i2c-min-sda-pulse-width-us : The minimum valid SDA pulse width that is

Re: [PATCH] perf tool: simplify a git command in PERF-VERSION-GEN

2013-10-02 Thread Ingo Molnar
* Ramkumar Ramachandra wrote: > Replace a complex git log invocation with a simpler git rev-parse > invocation. > > Cc: Ingo Molnar > Cc: Namhyung Kim > Cc: Arnaldo Carvalho de Melo > Signed-off-by: Ramkumar Ramachandra > --- > tools/perf/util/PERF-VERSION-GEN | 2 +- > 1 file changed, 1 i

Re: [PATCH v2] serial: 8250_dw: Improve unwritable LCR workaround

2013-10-02 Thread Heikki Krogerus
Hi, On Tue, Oct 01, 2013 at 10:18:08AM -0700, Tim Kryger wrote: > When configured with UART_16550_COMPATIBLE=NO or in versions prior to > the introduction of this option, the Designware UART will ignore writes > to the LCR if the UART is busy. The current workaround saves a copy of > the last wri

Re: [PATCH 3/3] KVM: PPC: Book3S: Add support for hwrng found on some powernv systems

2013-10-02 Thread Alexander Graf
On 02.10.2013, at 11:11, Alexander Graf wrote: > > On 02.10.2013, at 11:06, Benjamin Herrenschmidt wrote: > >> On Wed, 2013-10-02 at 10:46 +0200, Paolo Bonzini wrote: >> >>> >>> Thanks. Any chance you can give some numbers of a kernel hypercall and >>> a userspace hypercall on Power, so we h

[PATCH 09/16] sched/wait: Collapse __wait_event_interruptible_exclusive()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/tty.h | 21 + include/linux/wait.h | 192 +++ 2 f

[PATCH 04/16] sched/wait: Introduce ___wait_event()

2013-10-02 Thread Peter Zijlstra
There's far too much duplication in the __wait_event macros; in order to fix this introduce ___wait_event() a macro with the capability to replace most other macros. With the previous patches changing the various __wait_event*() implementations to be more uniform; we can now collapse the lot witho

[PATCH 03/16] sched/wait: Change the wait_exclusive control flow

2013-10-02 Thread Peter Zijlstra
Purely a preparatory patch; it changes the control flow to match what will soon be generated by generic code so that that patch can be a unity transform. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/wait.h |9 + 1 file changed, 5 insertions(+), 4 deleti

Re: applesmc oops in 3.10/3.11

2013-10-02 Thread Henrik Rydberg
> > Patch added on top of 3.12.0-0.rc3.git0.1.fc20.x86_64 and built. But after > > ~dozen reboots, I'm not triggering the problem. The only items in dmesg > > with smc in it: > > > > [ 13.799819] applesmc: key=261 fan=2 temp=14 index=14 acc=1 lux=2 kbd=1 > > [ 13.833402] input: applesmc as

[PATCH 16/16] sched/wait: Make the __wait_event*() interface more friendly

2013-10-02 Thread Peter Zijlstra
Change all __wait_event*() implementations to match the corresponding wait_event*() signature for convenience. In particular this does away with the weird 'ret' logic. Since there are __wait_event*() users this requires we update them too. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra

[PATCH 01/16] sched/wait: Make the signal_pending() checks consistent

2013-10-02 Thread Peter Zijlstra
There's two patterns to check signals in the __wait_event*() macros: if (!signal_pending(current)) { schedule(); continue; } ret = -ERESTARTSYS; break; And the more natural: if (signal_pending(current)) { ret = -ERESTARTSYS; break; } schedule(); Cha

[PATCH 13/16] sched/wait: Collapse __wait_event_interruptible_tty()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/tty.h | 21 + include/linux/wait.h | 192 +++ 2 f

[PATCH 02/16] sched/wait: Change timeout logic

2013-10-02 Thread Peter Zijlstra
Commit 4c663cf ("wait: fix false timeouts when using wait_event_timeout()") introduced an additional condition check after a timeout but there's a few issues; - it forgot one site - it put the check after the main loop; not at the actual timeout check. Cure both; by wrapping the condition (a

[PATCH 08/16] sched/wait: Collapse __wait_event_interruptible_timeout()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/tty.h | 21 + include/linux/wait.h | 192 +++ 2 f

[PATCH 00/16] sched/wait: Collapse __wait_event macros -v5

2013-10-02 Thread Peter Zijlstra
While poking at the cpu hotplug implementation I had a desire to use wait_event() with schedule_preempt_disabled() and found the ridiculous amount of duplication in linux/wait.h. These patches cure all the bloat and inconsistencies of these macros that me and others noticed, while also making it '

[PATCH 07/16] sched/wait: Collapse __wait_event_interruptible()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/tty.h | 21 + include/linux/wait.h | 192 +++ 2 f

[PATCH 14/16] sched/wait: Collapse __wait_event_killable()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -582,22 +582,7 @@ do {

[PATCH 06/16] sched/wait: Collapse __wait_event_timeout()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/tty.h | 21 + include/linux/wait.h | 192 +++ 2 f

[PATCH 05/16] sched/wait: Collapse __wait_event()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/wait.h | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) --- a/include/linux/wait.h

[PATCH 12/16] sched/wait: Collapse __wait_event_interruptible_lock_irq_timeout()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/tty.h | 21 + include/linux/wait.h | 192 +++ 2 f

[PATCH 11/16] sched/wait: Collapse __wait_event_interruptible_lock_irq()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/tty.h | 21 + include/linux/wait.h | 192 +++ 2 f

[PATCH 10/16] sched/wait: Collapse __wait_event_lock_irq()

2013-10-02 Thread Peter Zijlstra
Reduce macro complexity by using the new ___wait_event() helper. No change in behaviour, identical generated code. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- include/linux/tty.h | 21 + include/linux/wait.h | 192 +++ 2 f

[PATCH 15/16] sched/wait: Collapse __wait_event_hrtimeout()

2013-10-02 Thread Peter Zijlstra
While not a whole-sale replacement like the others we can still reduce the size of __wait_event_hrtimeout() considerably by noting that the actual core of __wait_event_hrtimeout() is identical to what ___wait_event() generates. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra --- includ

Re: [PATCH] tick: make sleep length calculation more accurate

2013-10-02 Thread Daniel Lezcano
On 10/01/2013 11:31 PM, Stephen Boyd wrote: On 09/27/13 03:52, Daniel Lezcano wrote: The sleep_length is computed in the tick_nohz_stop_sched_tick function but it is used later in the code with in between the local irq enabled. cpu_idle_loop tick_nohz_idle_enter [ exits with local ir

Re: [PATCH 8/8] perf tools: Get current comm instead of last one

2013-10-02 Thread Frederic Weisbecker
On Thu, Sep 26, 2013 at 05:58:10PM +0900, Namhyung Kim wrote: > From: Namhyung Kim > > At insert time, a hist entry should reference comm at the time > otherwise it'll get the last comm anyway. > > Signed-off-by: Namhyung Kim > Cc: Frederic Weisbecker > Link: http://lkml.kernel.org/n/tip-n6pyk

Re: [PATCH 3/3] KVM: PPC: Book3S: Add support for hwrng found on some powernv systems

2013-10-02 Thread Gleb Natapov
On Wed, Oct 02, 2013 at 11:50:50AM +0200, Alexander Graf wrote: > > On 02.10.2013, at 11:11, Alexander Graf wrote: > > > > > On 02.10.2013, at 11:06, Benjamin Herrenschmidt wrote: > > > >> On Wed, 2013-10-02 at 10:46 +0200, Paolo Bonzini wrote: > >> > >>> > >>> Thanks. Any chance you can giv

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Peter Zijlstra
On Tue, Oct 01, 2013 at 10:11:56PM +0300, Adrian Hunter wrote: > Hi > > It does not seem possible to use set-output between > task contexts of different types (e.g. a software event > to a hardware event) > > If you look at perf_event_set_output(): > > /* >* If its not a pe

Re: [PATCH -v2] EFI: Runtime services virtual mapping

2013-10-02 Thread Borislav Petkov
On Mon, Sep 23, 2013 at 08:06:38PM -0700, H. Peter Anvin wrote: > Okay... I see two problems. > > 1. It looks like we subtract the region size after, rather than before, > assigning an address. > Ok, so I'm looking at this agan and, actually, we really do subtract the region size *before* we as

Re: [PATCH 1/3] perf tools: Separate lbfd check out of NO_DEMANGLE condition

2013-10-02 Thread Ingo Molnar
* Namhyung Kim wrote: > Hi Jiri, > > On Wed, 2 Oct 2013 10:17:57 +0200, Jiri Olsa wrote: > > On Wed, Oct 02, 2013 at 10:18:32AM +0900, Namhyung Kim wrote: > >> It seems that it needs libdl for loading plugins. Adding -ldl makes > >> above build successfully. So we need to add -ldl for EXTLIBS

[PATCH v4] USB: gadget: epautoconf: fix ep maxpacket check

2013-10-02 Thread Robert Baldyga
This patch fix validation of maxpacket value given in endpoint descriptor. Add check of maxpacket for bulk endpoints. If maxpacket is not set in descriptor, it's set to maximum value for given type on endpoint in used speed. Correct maxpacket value is: FULL-SPEEDHIGH-SPEED

Re: [PATCH] perf auto-dep: Speed up feature tests by building them in parallel

2013-10-02 Thread Ingo Molnar
* Jiri Olsa wrote: > > @@ -388,7 +410,7 @@ else > >has_cplus_demangle := $(call > > try-cc,$(SOURCE_CPLUS_DEMANGLE),$(FLAGS_CPLUS_DEMANGLE),demangle) > >ifeq ($(has_cplus_demangle),y) > > EXTLIBS += -liberty > > -CFLAGS += -DHAVE_CPLUS_DEMANGLE >

Re: [PATCH 3/4] regulator: da9052: Use apply_[reg|bit] with regmap based voltage_sel operations

2013-10-02 Thread Michael Grzeschik
Hi Axel, Mark, we should not play to much with generous functions for this pmics. With this patch we loose the fix_io code path from da9052_reg_update. include/linux/mfd/da9052.h ... if (da9052->fix_io) { ret = da9052->fix_io(da9052, reg); if (ret < 0)

Re: [PATCH 1/8] perf callchain: Convert children list to rbtree

2013-10-02 Thread Frederic Weisbecker
On Thu, Sep 26, 2013 at 05:58:03PM +0900, Namhyung Kim wrote: > From: Namhyung Kim > > Current collapse stage has a scalability problem which can be > reproduced easily with parallel kernel build. This is because it > needs to traverse every children of callchain linearly during the > collapse/m

Re: [PATCH] hotplug: Optimize {get,put}_online_cpus()

2013-10-02 Thread Srivatsa S. Bhat
On 10/01/2013 11:44 PM, Srivatsa S. Bhat wrote: > On 10/01/2013 11:06 PM, Peter Zijlstra wrote: >> On Tue, Oct 01, 2013 at 10:41:15PM +0530, Srivatsa S. Bhat wrote: >>> However, as Oleg said, its definitely worth considering whether this >>> proposed >>> change in semantics is going to hurt us in

Re: [PATCH v3 03/10] ARM: OMAP2+: omap-usb-host: Get rid of platform_data from struct usbhs_phy_data

2013-10-02 Thread Roger Quadros
Hi Tony, On 09/24/2013 11:53 AM, Roger Quadros wrote: > The platform data bits can be inferred from the other members of > struct usbhs_phy_data. So get rid of the platform_data member. > > Build the platform data for the PHY device in usbhs_init_phys() instead. > > Signed-off-by: Roger Quadros

Re: using mmc2 on panda [was: Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet]

2013-10-02 Thread Arend van Spriel
On 10/01/2013 01:29 PM, Luca Coelho wrote: Hi, On Tue, 2013-10-01 at 12:53 +0200, Arend van Spriel wrote: On 10/01/2013 11:53 AM, Roger Quadros wrote: On 10/01/2013 12:49 PM, Roger Quadros wrote: Hi Arend, On 10/01/2013 11:05 AM, Arend van Spriel wrote: On 07/19/2013 12:57 PM, Arend van Spr

Re: [PATCH v3 04/10] ARM: OMAP2+: usb-host: Adapt to USB phy-nop RESET line changes

2013-10-02 Thread Roger Quadros
Hi Tony, On 09/24/2013 11:53 AM, Roger Quadros wrote: > The USB phy-nop nop driver expects the RESET line information > to be sent as a GPIO number via platform data. Adapt to that. > > Signed-off-by: Roger Quadros Need your Ack on this one as well. cheers, -roger > --- > arch/arm/mach-omap2

Re: spinlock contention of files->file_lock

2013-10-02 Thread Al Viro
On Wed, Oct 02, 2013 at 07:13:19AM +0200, Ingo Molnar wrote: > > * Al Viro wrote: > > > On Tue, Oct 01, 2013 at 02:41:58PM -0700, Eric Dumazet wrote: > > > Maybe I am missing something obvious ? > > > > Yes. do_execve_common() starts with unshare_files(); there can be > > no other thread capab

Re: [PATCH] clocksource: arm_arch_timer: Use clocksource for suspend timekeeping

2013-10-02 Thread Daniel Lezcano
On 09/27/2013 10:13 PM, Stephen Boyd wrote: The ARM architected timers keep counting during suspend so we can mark this clocksource with the CLOCK_SOURCE_SUSPEND_NONSTOP flag. This flag will indicate that this clocksource can be used for calculating suspend time and injecting sleep time into the

[PATCH 1/1] virt/kvm/iommu.c: Add leading zeros to device's BDF notation in debug messages

2013-10-02 Thread Andre Richter
When KVM (de)assigns PCI(e) devices to VMs, a debug message is printed including the BDF notation of the respective device. Currently, the BDF notation does not have the commonly used leading zeros. This produces messages like "assign device 0:1:8.0", which look strange at first sight. The patch f

[PATCH] bq2415x_charger: fix max battery regulation voltage

2013-10-02 Thread Alexandre Belloni
As per the datasheets, maximum battery regulation voltage is 4440mV. The formula is (voltage - offset) / step, so the maximum value is: (4440 - 3500) / 20 = 47 Signed-off-by: Alexandre Belloni --- drivers/power/bq2415x_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH V2] tick: Make sleep length calculation more accurate

2013-10-02 Thread Daniel Lezcano
The sleep_length is computed in the tick_nohz_stop_sched_tick function but it is used later in the code with in between the local irq enabled. cpu_idle_loop tick_nohz_idle_enter [ exits with local irq enabled ] __tick_nohz_idle_enter tick_nohz_stop_sched_tick ... arch_cpu_id

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Frederic Weisbecker
On Wed, Oct 02, 2013 at 12:03:50PM +0200, Peter Zijlstra wrote: > On Tue, Oct 01, 2013 at 10:11:56PM +0300, Adrian Hunter wrote: > > Hi > > > > It does not seem possible to use set-output between > > task contexts of different types (e.g. a software event > > to a hardware event) > > > > If you l

Re: [PATCH 0/3] New descriptor-based GPIO interface

2013-10-02 Thread Linus Walleij
On Sat, Sep 28, 2013 at 12:33 PM, Alexandre Courbot wrote: > On Fri, Sep 27, 2013 at 9:06 PM, Linus Walleij > wrote: >> I've applied it now, but no idea whether it will hit the last -next tree in >> time, hopefully at the very last second ... > > Crap, looks like it did not make it. :( I hope w

Re: [PATCH v2] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-10-02 Thread Robert Baldyga
On 10/01/2013 04:45 PM, Felipe Balbi wrote: Hello, Hi, On Tue, Sep 24, 2013 at 11:47:16AM +0200, Robert Baldyga wrote: Hello, This is update for my proposal for isochronous transfers support in s3c-hsotg driver. I've fixed issuses pointed by Bartlomiej Zolnierkiewicz. For more information, ple

Re: [PATCH 1/1] virt/kvm/iommu.c: Add leading zeros to device's BDF notation in debug messages

2013-10-02 Thread Gleb Natapov
On Wed, Oct 02, 2013 at 12:23:26PM +0200, Andre Richter wrote: > When KVM (de)assigns PCI(e) devices to VMs, a debug message is printed > including the BDF notation of the respective device. Currently, the BDF > notation does not have the commonly used leading zeros. This produces > messages like "

Re: [PATCH 09/10] pwm-backlight: Use an optional power supply

2013-10-02 Thread Mark Brown
On Tue, Oct 01, 2013 at 11:31:27PM +0200, Thierry Reding wrote: > On Tue, Oct 01, 2013 at 02:59:43PM -0600, Stephen Warren wrote: > > OK, hopefully it (the regulator core) complains about the missing DT > > property though; I assume you're using regulator_get() not > > regulator_get_optional(), si

Re: [PATCH 1/2] pinctrl: palmas: do not abort pin configuration for BIAS_DEFAULT

2013-10-02 Thread Linus Walleij
On Fri, Sep 27, 2013 at 6:06 PM, Stephen Warren wrote: > [Laxman] >> Hmm.. When I added the PIN_DEFAULT, I just though that do not update >> anything in the register and implemented like that. >> There is nothing "default" option in HW. > > The description of that pinconfig option is: > >> 7970cb7

Re: [PATCH 1/2] pinctrl: palmas: do not abort pin configuration for BIAS_DEFAULT

2013-10-02 Thread Laxman Dewangan
On Wednesday 02 October 2013 04:10 PM, Linus Walleij wrote: On Fri, Sep 27, 2013 at 6:06 PM, Stephen Warren wrote: Presumably given this, LinusW shouldn't have actually applied this patch, since presumably it prevents any other driver from accepting PIN_CONFIG_BIAS_DISABLE even in cases where it

Re: using mmc2 on panda [was: Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet]

2013-10-02 Thread Luca Coelho
On Wed, 2013-10-02 at 12:20 +0200, Arend van Spriel wrote: > On 10/01/2013 01:29 PM, Luca Coelho wrote: > > Hi, > > > > On Tue, 2013-10-01 at 12:53 +0200, Arend van Spriel wrote: > >> On 10/01/2013 11:53 AM, Roger Quadros wrote: > >>> On 10/01/2013 12:49 PM, Roger Quadros wrote: > Hi Arend, >

Re: [PATCH 2/5] gpio: samsung: Use CONFIG_ARCH_S3C64XX to check for S3C64xx support

2013-10-02 Thread Linus Walleij
On Sat, Sep 28, 2013 at 8:21 PM, Tomasz Figa wrote: > Since CONFIG_PLAT_S3C64XX is going to be removed, this patch modifies > the gpio-samsung driver to use the proper way of checking for S3C64xx > support - CONFIG_ARCH_S3C64XX. > > Signed-off-by: Tomasz Figa Acked-by: Linus Walleij I assume

[GIT PULL - resend ] clocksource: new material for 3.13

2013-10-02 Thread Daniel Lezcano
Hi Thomas, Ingo this pull request has the following content: - Soren added FEAT_PERCPU to a clock device when it is local per cpu. This feature prevents the clock framework to choose a per cpu timer as a broadcast timer. This problem arised when the ARM global timer is used when switching to th

Re: [PATCH] gpio: arizona: Use the of_node from the Arizona device

2013-10-02 Thread Linus Walleij
On Sun, Sep 29, 2013 at 10:00 PM, Charles Keepax wrote: > We need to use the of_node from the main Arizona device as that > holds our configuration. > > Signed-off-by: Charles Keepax Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: spinlock contention of files->file_lock

2013-10-02 Thread Ingo Molnar
* Al Viro wrote: > On Wed, Oct 02, 2013 at 07:13:19AM +0200, Ingo Molnar wrote: > > > > * Al Viro wrote: > > > > > On Tue, Oct 01, 2013 at 02:41:58PM -0700, Eric Dumazet wrote: > > > > Maybe I am missing something obvious ? > > > > > > Yes. do_execve_common() starts with unshare_files(); th

[PATCH 2/3] net: mv643xx_eth: fix orphaned statistics timer crash

2013-10-02 Thread Sebastian Hesselbarth
The periodic statistics timer gets started at port _probe() time, but is stopped on _stop() only. In a modular environment, this can cause the timer to access already deallocated memory, if the module is unloaded without starting the eth device. To fix this, we add the timer right before the port i

[PATCH 3/3] net: mv643xx_eth: fix missing device_node for port devices

2013-10-02 Thread Sebastian Hesselbarth
DT-based mv643xx_eth probes and creates platform_devices for the port devices on its own. To allow fixups for ports based on the device_node, we need to set .of_node of the corresponding device with the correct node. Signed-off-by: Sebastian Hesselbarth --- Cc: David Miller Cc: Lennert Buytenhek

Re: [PATCH] drivers: misc: add gpio wakeup driver

2013-10-02 Thread Mark Brown
On Tue, Oct 01, 2013 at 04:05:07PM +0200, Daniel Mack wrote: > On 01.10.2013 16:01, Fabio Estevam wrote: > > Isn't it the same as the existing 'gpio-key,wakeup' ? > Of course, I know the gpio-input driver can provide similar > functionality. My intention was just provide a way to wake up the syst

  1   2   3   4   5   6   7   8   9   10   >