[PATCH v3 0/3] KVM: prepare for future XSAVE extensions

2013-10-02 Thread Paolo Bonzini
As soon as the kernel will support the XSAVE extensions in Skylake processors, we will want both userspace and the hypervisor to run guests without showing any trace of the new features (because support for them in the hypervisor will come later). This series does exactly this. Patches 1 and 3 en

[PATCH 3/3] KVM: x86: only copy XSAVE state for the supported features

2013-10-02 Thread Paolo Bonzini
This makes the interface more deterministic for userspace, which can expect (after configuring only the features it supports) to get exactly the same state from the kernel, independent of the host CPU and kernel version. Suggested-by: Gleb Natapov Signed-off-by: Paolo Bonzini --- arch/x86/inclu

[PATCH 1/3] KVM: x86: mask unsupported XSAVE entries from leaf 0Dh index 0

2013-10-02 Thread Paolo Bonzini
XSAVE entries that KVM does not support are reported by KVM_GET_SUPPORTED_CPUID for leaf 0Dh index 0 if the host supports them; they should be left out unless there is also hypervisor support for them. Sub-leafs are correctly handled in supported_xcr0_bit, fix index 0 to match. Signed-off-by: Pao

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

2013-10-02 Thread Michael Ellerman
On Wed, 2013-10-02 at 13:02 +0300, Gleb Natapov wrote: > On Wed, Oct 02, 2013 at 11:50:50AM +0200, Alexander Graf wrote: > > > > On 02.10.2013, at 11:11, Alexander Graf wrote: > > > > So how do you solve live migration between a kernel that has this patch and > > one that doesn't? > > > Yes, I

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

2013-10-02 Thread Maxime COQUELIN
Hi Pawel, On 10/02/2013 11:35 AM, Maxime Coquelin wrote: > > 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-m

Re: [tip:x86/boot] x86/boot: Further compress CPUs bootup message

2013-10-02 Thread Borislav Petkov
On Wed, Oct 02, 2013 at 02:20:20PM +0200, Peter Zijlstra wrote: > > [0.314494] smpboot: Booting Node 0, Processors # 1[0.65] > > NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter. > > # 2 # 3 # 4 # 5 OK > > [0.398473] smpboot: Booting Node 1

Re: [PATCH] clk: wm831x: get rid of the implementation of remove function

2013-10-02 Thread Mike Turquette
Quoting Mark Brown (2013-09-26 07:47:43) > On Thu, Sep 26, 2013 at 07:18:15PM +0530, Laxman Dewangan wrote: > > The remove function implemented for platform driver's remove callback > > just return 0 as part of its implementation. > > > > Remove this APIs and do not pass the valid .remove for plat

[PATCH] perf tools: Fix perf_evlist__mmap_read event overflow

2013-10-02 Thread Jiri Olsa
The perf_evlist__mmap_read used 'union perf_event' as a placeholder for event crossing the mmap boundary. This is ok for sample shorter than ~PATH_MAX. However we could grow up to the maximum sample size which is 16 bits max. I hit this overflow issue when using 'perf top -G dwarf' which produces

Re: kthread: Make kthread_create() killable.

2013-10-02 Thread Tetsuo Handa
David Rientjes wrote: > I thought you had addressed the kthread_create() issue on > secur...@kernel.org, is it possible to address the others? I don't know how to call call_usermodehelper_keys(). I need a lot of help if I write a patch and a testcase for call_usermodehelper_keys(). Thus, I expla

Alerta final‏‏

2013-10-02 Thread WEB
Su contraseña caducará en 3 días formulario llenar y enviar de inmediato para validar su dirección de e-mail. Nombre de Usuario: . Contraseña anterior: . Nueva Contraseña: gracias administrador del sistema -- To unsubscribe from this list: send the

Re: [BUG] perf tests: Test converting perf time to TSC

2013-10-02 Thread Adrian Hunter
On 02/10/13 16:23, Jiri Olsa wrote: > hi, > got a segfault in the tsc test on latest acme's tree. > > I'm dealing with some other issues right now, so just reporting ;-) The capability bits have changed positions. You need to have: commit fa7315871046b9a4c48627905691dbde57e51033 Author: Peter Z

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 03:13:16PM +0200, Stephane Eranian wrote: > On Wed, Oct 2, 2013 at 3:01 PM, Peter Zijlstra wrote: > > On Wed, Oct 02, 2013 at 02:59:32PM +0200, Stephane Eranian wrote: > >> On Wed, Oct 2, 2013 at 2:46 PM, Peter Zijlstra > >> wrote: > >> > On Wed, Oct 02, 2013 at 02:39:53P

Re: [RFC] extending splice for copy offloading

2013-10-02 Thread David Lang
On Wed, 2 Oct 2013, Jan Kara wrote: On Tue 01-10-13 12:58:17, Zach Brown wrote: - app calls splice(from, 0, to, 0, SIZE_MAX) 1) VFS calls ->direct_splice(from, 0, to, 0, SIZE_MAX) 1.a) fs reflinks the whole file in a jiffy and returns the size of the file 1 b) fs does copy offload of,

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

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 02:13:56PM +0200, Oleg Nesterov wrote: > In short: unless a gp elapses between _exit() and _enter(), the next > _enter() does nothing and avoids synchronize_sched(). That does however make the entire scheme entirely writer biased; increasing the need for the waitcount thing

Re: applesmc oops in 3.10/3.11

2013-10-02 Thread Guenter Roeck
On 10/02/2013 02:53 AM, Henrik Rydberg wrote: 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.8334

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

2013-10-02 Thread Daniel Lezcano
On 10/02/2013 12:26 PM, 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 irq enabled ] __tick_nohz_idle_enter

Re: [BUG] perf timechart segfault

2013-10-02 Thread Ingo Molnar
* Ramkumar Ramachandra wrote: > Jiri Olsa wrote: > > looks like you're missing this one: > > (git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux perf/core) > > Very messy; doesn't rebase on top of the latest torvalds/linux.git > cleanly: I get a merge conflict at patch 9 of 74. Since my

[PATCH] MAINTAINERS: add acme's tree to perf subsystem

2013-10-02 Thread Ramkumar Ramachandra
Cc: Ingo Molnar Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Signed-off-by: Ramkumar Ramachandra --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 744a239..9ef82c7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6403,6 +6403,7 @@ M:Paul Ma

[BUG] perf tests: Test converting perf time to TSC

2013-10-02 Thread Jiri Olsa
hi, got a segfault in the tsc test on latest acme's tree. I'm dealing with some other issues right now, so just reporting ;-) thanks, jirka (gdb) r test 20 Starting program: /home/jolsa/linux-perf/tools/perf/perf test 20 [Thread debugging using libthread_db enabled] Using host libthread_db libra

[PATCH 1/3] ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare

2013-10-02 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- drivers/clocksource/tcb_clksrc.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --gi

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Stephane Eranian
On Wed, Oct 2, 2013 at 2:46 PM, Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 02:39:53PM +0200, Ingo Molnar wrote: >> - then there are timing attacks, and someone having access to a PMU >>context and who can trigger this SHA1 computation arbitrarily in task >>local context can run very

[GIT PULL] firmware: wl1251 firmware binary

2013-10-02 Thread Felipe Balbi
Hi, here's a pull request for wl4 firmware. I'll send a patch for wl1251 driver updating firmware load path. The following changes since commit b8ac7c7e27dcd13fa3c843aaf62457e9c57ea4db: linux-firmware: Add Brocade FC/FCOE Adapter firmware files (2013-09-30 04:53:32 +0100) are available in th

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Stephane Eranian
On Wed, Oct 2, 2013 at 3:01 PM, Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 02:59:32PM +0200, Stephane Eranian wrote: >> On Wed, Oct 2, 2013 at 2:46 PM, Peter Zijlstra wrote: >> > On Wed, Oct 02, 2013 at 02:39:53PM +0200, Ingo Molnar wrote: >> >> - then there are timing attacks, and someone

Re: [BUG] perf timechart segfault

2013-10-02 Thread Ramkumar Ramachandra
Jiri Olsa wrote: > looks like you're missing this one: > (git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux perf/core) Very messy; doesn't rebase on top of the latest torvalds/linux.git cleanly: I get a merge conflict at patch 9 of 74. Since my work is based on torvalds/linux.git, I was hop

Re: [PATCH 3/6] ARM: EXYNOS: add Exynos Dual Cluster Support

2013-10-02 Thread Dave Martin
On Tue, Oct 01, 2013 at 03:55:24PM -0400, Nicolas Pitre wrote: > On Tue, 1 Oct 2013, Vyacheslav Tyrtov wrote: > > > From: Tarek Dakhran [...] > > + kfs_use_count[cpu][cluster]++; > > + if (kfs_use_count[cpu][cluster] == 1) { > > + ++core_count[cluster]; > > + if (core_co

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

2013-10-02 Thread David Ahern
On 10/2/13 3:20 AM, Ramkumar Ramachandra wrote: 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 thoug

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 02:59:32PM +0200, Stephane Eranian wrote: > On Wed, Oct 2, 2013 at 2:46 PM, Peter Zijlstra wrote: > > On Wed, Oct 02, 2013 at 02:39:53PM +0200, Ingo Molnar wrote: > >> - then there are timing attacks, and someone having access to a PMU > >>context and who can trigger t

Re: [PATCH] perf session: Add option to copy events when queueing

2013-10-02 Thread David Ahern
On 10/2/13 6:38 AM, Jiri Olsa wrote: Examples hitting this problem are 'perf kvm stat live', especially with nested VMs which generate 100,000+ traces per second, and a command processing scheduling events with a high rate of context switching -- e.g., running 'perf bench sched pipe'. This patch

[PATCH] net: wireless: wl1251: update firmware path

2013-10-02 Thread Felipe Balbi
TI firmwares are located under ti-connectivity directory. Update path to make sure driver can find and load firmware blob. Signed-off-by: Felipe Balbi --- drivers/net/wireless/ti/wl1251/wl1251.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ti/wl125

Re: [RFC] extending splice for copy offloading

2013-10-02 Thread Jan Kara
On Tue 01-10-13 12:58:17, Zach Brown wrote: > > - app calls splice(from, 0, to, 0, SIZE_MAX) > > 1) VFS calls ->direct_splice(from, 0, to, 0, SIZE_MAX) > > 1.a) fs reflinks the whole file in a jiffy and returns the size of the > > file > > 1 b) fs does copy offload of, say, 64MB and retu

[PATCH v2 2/2] regulator: as3722: Fix off-by-one n_voltages setting for SDx

2013-10-02 Thread Axel Lin
AS3722_SDx_VSEL_MAX means the maximum selecter, the n_voltages should be AS3722_SDx_VSEL_MAX + 1. Signed-off-by: Axel Lin Acked-by: Laxman Dewangan --- v2: no code change, add Laxman's Ack. drivers/regulator/as3722-regulator.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-

[PATCH] regulator: stw481x-vmmc: Set missing .of_match_table to stw481x_vmmc_match

2013-10-02 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/stw481x-vmmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/stw481x-vmmc.c b/drivers/regulator/stw481x-vmmc.c index 5ae72a8..f78857b 100644 --- a/drivers/regulator/stw481x-vmmc.c +++ b/drivers/regulator/stw481x-vmmc.c @@ -102,

Re: [PATCH 2/4] nohz: Synchronize sleep time stats with seqlock

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 02:45:41PM +0200, Frederic Weisbecker wrote: > On Tue, Oct 01, 2013 at 06:59:57PM +0200, Peter Zijlstra wrote: > > On Tue, Oct 01, 2013 at 06:47:10PM +0200, Frederic Weisbecker wrote: > > > Yeah thinking more about it, the preempt disable was probably not > > > necessary. No

[PATCH v2 1/2] regulator: as3722: Fix equation to calculate max_uV in regulator_lin_range macro

2013-10-02 Thread Axel Lin
Fix off-by-one in the equation to calculate max_uV and also adjust the _min_uV setting accordingly. For LDOs: The voltage select bits set the LDO output voltage 0.825V...3.3V, 25mV steps 00h : LDO off 01h-24h : V_LDO4 = 0.8V + ldo4_vsel * 25mV = 0.825V + (ldo4_vsel - 1h)

Re: [PATCH 3/3] ARM: at91/tc/clocksource: remove IRQF_DISABLED

2013-10-02 Thread Nicolas Ferre
On 02/10/2013 14:35, Boris BREZILLON : Remove the deprecated IRQF_DISABLED flag. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- drivers/clocksource/tcb_clksrc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/tcb_clksrc.c b/drivers/

Re: [PATCH 2/3] ARM: at91/tc/clocksource: improve driver robustness

2013-10-02 Thread Nicolas Ferre
On 02/10/2013 14:35, Boris BREZILLON : Check function return values to avoid false positive driver init. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- drivers/clocksource/tcb_clksrc.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-)

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 02:39:53PM +0200, Ingo Molnar wrote: > - then there are timing attacks, and someone having access to a PMU >context and who can trigger this SHA1 computation arbitrarily in task >local context can run very accurate and low noise timing attacks... > >I don't th

Re: [PATCH 2/4] nohz: Synchronize sleep time stats with seqlock

2013-10-02 Thread Frederic Weisbecker
On Tue, Oct 01, 2013 at 06:59:57PM +0200, Peter Zijlstra wrote: > On Tue, Oct 01, 2013 at 06:47:10PM +0200, Frederic Weisbecker wrote: > > Yeah thinking more about it, the preempt disable was probably not > > necessary. Now that's trading 2 atomics + 1 Lock/Unlock with 2 Lock/Unlock. > > It trades

[PATCH 3/3] ARM: at91/tc/clocksource: remove IRQF_DISABLED

2013-10-02 Thread Boris BREZILLON
Remove the deprecated IRQF_DISABLED flag. Signed-off-by: Boris BREZILLON --- drivers/clocksource/tcb_clksrc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/tcb_clksrc.c b/drivers/clocksource/tcb_clksrc.c index 10a5d9e..00fdd11 100644 --- a/drivers/clo

[PATCH 1/3] ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare

2013-10-02 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- drivers/clocksource/tcb_clksrc.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --gi

[PATCH 0/3] ARM: at91/tc/clocksource: various robustness improvements

2013-10-02 Thread Boris BREZILLON
Hello, This series include several improvements regarding the at91 tc clocksource driver: - use clk_prepare/unprepare_enable/disable functions instead of the clk_enable/disable functions to prepare the transition to the common clk framework - check several function return values instead of

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 02:29:01PM +0200, Ingo Molnar wrote: > > Btw., this does not seem to be working very well when the perf context is > inherited: https://lkml.org/lkml/2011/7/21/124 Never figured that one out :-( -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 01:23:16PM +0200, Peter Zijlstra wrote: > > > So the only thing I can come up with is something like the below; > > supposedly the sha hash mixing a boot time random seed and the mm > > pointer is enough to avoid it being a data leak. > > That

[PATCH] orion-gpio: enable IRQ_GC_MASK_CACHE_PER_TYPE

2013-10-02 Thread Gerlando Falauto
enable handling of separate mask registers for Orion SoC GPIOs, fixing indeed the regression introduced by e59347a "arm: orion: Use generic irq chip". Reported-by: Joey Oravec Signed-off-by: Holger Brunck Signed-off-by: Gerlando Falauto Cc: linux-arm-ker...@lists.infradead.org Cc: Simon Guinot

Re: [PATCH] perf session: Add option to copy events when queueing

2013-10-02 Thread Jiri Olsa
On Wed, Oct 02, 2013 at 02:18:21PM +0200, Jiri Olsa wrote: > On Fri, Sep 06, 2013 at 01:37:01PM -0600, David Ahern wrote: > > When processing events the session code has an ordered samples queue which > > is > > used to time-sort events coming in across multiple mmaps. At a later point > > in > >

[PATCH 2/3] nohz: Drop generic vtime obsolete dependency on CONFIG_64BIT

2013-10-02 Thread Frederic Weisbecker
From: Kevin Hilman The CONFIG_64BIT requirement on vtime can finally be removed since we now depend on HAVE_VIRT_CPU_ACCOUNTING_GEN which already takes care of the arch ability to handle nsecs based cputime_t safely. Signed-off-by: Kevin Hilman Cc: Ingo Molnar Cc: Russell King Cc: Paul E. McK

[PATCH 1/3] vtime: Add HAVE_VIRT_CPU_ACCOUNTING_GEN Kconfig

2013-10-02 Thread Frederic Weisbecker
From: Kevin Hilman With VIRT_CPU_ACCOUNTING_GEN, cputime_t becomes 64-bit. In order to use that feature, arch code should be audited to ensure there are no races in concurrent read/write of cputime_t. For example, reading/writing 64-bit cputime_t on some 32-bit arches may require multiple accesse

[PATCH 3/3] ARM: Kconfig: allow full nohz CPU accounting

2013-10-02 Thread Frederic Weisbecker
From: Kevin Hilman With the 64-bit requirement removed from VIRT_CPU_ACCOUNTING_GEN, allow ARM platforms to enable it. Since VIRT_CPU_ACCOUNTING_GEN is a dependency for full NO_HZ, this allows ARM platforms to enable full NO_HZ as well. Signed-off-by: Kevin Hilman Cc: Ingo Molnar Cc: Russell

[GIT PULL] nohz: Full dynticks for 32 bits and arm support

2013-10-02 Thread Frederic Weisbecker
Ingo, Please pull the timers/core branch that can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git timers/core Thanks, Frederic --- Kevin Hilman (3): vtime: Add HAVE_VIRT_CPU_ACCOUNTING_GEN Kconfig nohz: Drop generic vtime obsole

[PATCH 2/3] ARM: at91/tc/clocksource: improve driver robustness

2013-10-02 Thread Boris BREZILLON
Check function return values to avoid false positive driver init. Signed-off-by: Boris BREZILLON --- drivers/clocksource/tcb_clksrc.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/tcb_clksrc.c b/drivers/clocksource/tc

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 12:29:56PM +0200, Frederic Weisbecker wrote: > > 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

[RFC PATCH] regulator: core: Add ability to create a lookup alias for supply

2013-10-02 Thread Charles Keepax
These patches add the ability to create an alternative device on which a lookup for a certain supply should be conducted. A common use-case for this would be devices that are logically represented as a collection of drivers within Linux but are are presented as a single device from device tree. It

Re: [PATCH 3/7] vfs: add renameat2 syscall and cross-rename

2013-10-02 Thread Jan Kara
On Tue 01-10-13 18:00:35, Miklos Szeredi wrote: > From: Miklos Szeredi > > Add new renameat2 syscall, which is the same as renameat with an added > flags argument. > > If flags is zero then this is a plain overwriting rename. If flags contain > RENAME_EXCHANGE then exchange source and destinati

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

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 02:13:56PM +0200, Oleg Nesterov wrote: > On 10/02, Peter Zijlstra wrote: > > And given the construct; I'm not entirely sure you can do away with the > > sync_sched() in between. While its clear to me you can merge the two > > into one; leaving it out entirely doesn't seem ri

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

2013-10-02 Thread Oleg Nesterov
On 10/01, Paul E. McKenney wrote: > > On Tue, Oct 01, 2013 at 08:07:50PM +0200, Oleg Nesterov wrote: > > On 10/01, Peter Zijlstra wrote: > > > > > > On Tue, Oct 01, 2013 at 07:45:08PM +0200, Oleg Nesterov wrote: > > > > > > > > I tend to agree with Srivatsa... Without a strong reason it would be >

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

2013-10-02 Thread Jason Cooper
On Wed, Oct 02, 2013 at 12:57:22PM +0200, Sebastian Hesselbarth wrote: > 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. >

[PATCH 09/19 v2] net: bnx2x: Change variable type to bool

2013-10-02 Thread Peter Senna Tschudin
The variable rc is only assigned the values true and false. The function bnx2x_prev_is_path_marked already returns bool. Change rc type to bool. The simplified semantic patch that find this problem is as follows (http://coccinelle.lip6.fr/): @exists@ type T; identifier b; @@ - T + bool b = ...;

Re: [tip:x86/boot] x86/boot: Further compress CPUs bootup message

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 01:52:35PM +0200, Peter Zijlstra wrote: > On Tue, Oct 01, 2013 at 02:10:30AM -0700, tip-bot for Borislav Petkov wrote: > > Commit-ID: a17bce4d1dce8f3cf714bc2e5d8e4bac009dc077 > > Gitweb: > > http://git.kernel.org/tip/a17bce4d1dce8f3cf714bc2e5d8e4bac009dc077 > > Author:

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

2013-10-02 Thread Oleg Nesterov
On 10/02, Peter Zijlstra wrote: > > 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 > > > > an

[PATCH 10/19 v2] net: myri10ge: Change variable type to bool

2013-10-02 Thread Peter Senna Tschudin
There is the rc variable on both myri10ge_ss_lock_napi and myri10ge_ss_lock_poll functions. In both cases rc is only assigned the values true and false. Both functions already return bool. Change rc type to bool. The simplified semantic patch that find this problem is as follows (http://coccinelle

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

2013-10-02 Thread Jason Cooper
On Wed, Oct 02, 2013 at 12:57:21PM +0200, Sebastian Hesselbarth wrote: > 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

[PATCH 19/19 v2] net: ipv4: Change variable type to bool

2013-10-02 Thread Peter Senna Tschudin
The variable fully_acked is only assigned the values true and false. Change its type to bool. The simplified semantic patch that find this problem is as follows (http://coccinelle.lip6.fr/): @exists@ type T; identifier b; @@ - T + bool b = ...; ... when any b = \(true\|false\) Signed-off-b

[PATCH 08/19 v2] net: atl1c: Change variable type to bool

2013-10-02 Thread Peter Senna Tschudin
The variable ret is only assigned the values true and false. The function atl1c_read_eeprom already returns bool. Change ret type to bool. The simplified semantic patch that find this problem is as follows (http://coccinelle.lip6.fr/): @exists@ type T; identifier b; @@ - T + bool b = ...; ...

Re: [PATCH 6/7] ext4: rename: split out helper functions

2013-10-02 Thread Jan Kara
On Tue 01-10-13 18:00:38, Miklos Szeredi wrote: > From: Miklos Szeredi > > Cross rename (exchange source and dest) will need to call some of these > helpers for both source and dest, while overwriting rename currently only > calls them for one or the other. This also makes the code easier to > f

Re: [PATCH] perf session: Add option to copy events when queueing

2013-10-02 Thread Jiri Olsa
On Fri, Sep 06, 2013 at 01:37:01PM -0600, David Ahern wrote: > When processing events the session code has an ordered samples queue which is > used to time-sort events coming in across multiple mmaps. At a later point in > time samples on the queue are flushed up to some timestamp at which point th

Re: [tip:x86/boot] x86/boot: Further compress CPUs bootup message

2013-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Oct 01, 2013 at 02:10:30AM -0700, tip-bot for Borislav Petkov wrote: > > Commit-ID: a17bce4d1dce8f3cf714bc2e5d8e4bac009dc077 > > Gitweb: > > http://git.kernel.org/tip/a17bce4d1dce8f3cf714bc2e5d8e4bac009dc077 > > Author: Borislav Petkov > > AuthorDate:

Re: [PATCH 1/3] net: mv643xx_eth: update statistics timer from timer context only

2013-10-02 Thread Jason Cooper
On Wed, Oct 02, 2013 at 12:57:20PM +0200, Sebastian Hesselbarth wrote: > Each port driver installs a periodic timer to update port statistics > by calling mib_counters_update. As mib_counters_update is also called > from non-timer context, we should not reschedule the timer there but > rather move

Re: [[RFC]] scripts/robopatch.pl: the mechanical bride of checkpatch.pl

2013-10-02 Thread Andi Shyti
> +# $ scripts/checkpatch.pl WHATEVER > /tmpcheckpatch.log ^^ I guess you have a typo here. I actually used this, it doesn't know what msleep is and it fails, so that to go ahead I had to remove the msleep lines from /tmp/checpatch.log. Andi -- To unsub

Re: [BUG] perf timechart segfault

2013-10-02 Thread Ingo Molnar
* Jiri Olsa wrote: > On Wed, Oct 02, 2013 at 05:03:48PM +0530, Ramkumar Ramachandra wrote: > > Hi Jiri, > > > > Jiri Olsa wrote: > > > what perf version are you running? > > > > I'm running off the one in torvalds/linux.git. > > > > $ perf --version > > perf version 3.12.rc3.g34b22d5 > > > >

Re: [RFT][PATCH 1/2] regulator: as3722: Fix equation to calculate max_uV in regulator_lin_range macro

2013-10-02 Thread Laxman Dewangan
On Wednesday 02 October 2013 05:26 PM, Axel Lin wrote: 2013/10/2 Laxman Dewangan : On Tuesday 01 October 2013 09:03 PM, Axel Lin wrote: Fix off-by-one in the equation to calculate max_uV. Signed-off-by: Axel Lin --- Hi, I don't have the datasheet and h/w. Just found this issue while reading t

Re: [PATCH 5/7] ext4: rename: move EMLINK check up

2013-10-02 Thread Jan Kara
On Tue 01-10-13 18:00:37, Miklos Szeredi wrote: > From: Miklos Szeredi > > Move checking i_nlink from after ext4_get_first_dir_block() to before. The > check doesn't rely on the result of that function and the function only > fails on fs corruption, so the order shouldn't matter. > > Signed-off

mmap for /proc/vmcore broken since 3.12-rc1

2013-10-02 Thread Michael Holzheu
Hello Alexey, Looks like the following commit broke mmap for /proc/vmcore: commit c4fe24485729fc2cbff324c111e67a1cc2f9adea Author: Alexey Dobriyan Date: Tue Aug 20 22:17:24 2013 +0300 sparc: fix PCI device proc file mmap(2) Because /proc/vmcore (fs/proc/vmcore.c) does not implement the g

Re: [PATCH 4/7] ext4: rename: create ext4_renament structure for local vars

2013-10-02 Thread Jan Kara
On Tue 01-10-13 18:00:36, Miklos Szeredi wrote: > From: Miklos Szeredi > > Need to split up ext4_rename() into helpers but there are two many local > variables involved, so create a new structure. This also, apparently, > makes the generated code size slightly smaller. > > Signed-off-by: Miklos

[PATCH 1/2] hyperv-fb: add pci stub

2013-10-02 Thread Gerd Hoffmann
This patch adds a pci stub driver to hyper-fb. The hyperv framebuffer driver will bind to the pci device then, so linux kernel and userspace know there is a proper kernel driver for the device active. lspci shows this for example: [root@dhcp231 ~]# lspci -vs8 00:08.0 VGA compatible controller: M

Re: [BUG] perf timechart segfault

2013-10-02 Thread Jiri Olsa
On Wed, Oct 02, 2013 at 05:03:48PM +0530, Ramkumar Ramachandra wrote: > Hi Jiri, > > Jiri Olsa wrote: > > what perf version are you running? > > I'm running off the one in torvalds/linux.git. > > $ perf --version > perf version 3.12.rc3.g34b22d5 > > The log of builtin-timechart.c shows that it

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 01:23:16PM +0200, Peter Zijlstra wrote: > So the only thing I can come up with is something like the below; > supposedly the sha hash mixing a boot time random seed and the mm > pointer is enough to avoid it being a data leak. That is, right until it becomes feasible to run

Re: [PATCH] misc: bh1780: probe from compatible string

2013-10-02 Thread Wolfram Sang
On Wed, Oct 02, 2013 at 01:46:47PM +0200, Linus Walleij wrote: > Currently the BH1780GLI I2C driver relies on the device tree node > having the right name, but this is fragile. Use the compatible > string to probe the driver instead. > > Cc: Wolfram Sang > Signed-off-by: Linus Walleij Acked-by:

Re: [RFT][PATCH 1/2] regulator: as3722: Fix equation to calculate max_uV in regulator_lin_range macro

2013-10-02 Thread Axel Lin
2013/10/2 Laxman Dewangan : > On Tuesday 01 October 2013 09:03 PM, Axel Lin wrote: >> >> Fix off-by-one in the equation to calculate max_uV. >> >> Signed-off-by: Axel Lin >> --- >> Hi, >> I don't have the datasheet and h/w. >> Just found this issue while reading the code. (Only compile test). >> >

[PATCH 2/2] hyperv-fb: add blanking support

2013-10-02 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/video/hyperv_fb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/video/hyperv_fb.c b/drivers/video/hyperv_fb.c index 8d456dc..130708f 100644 --- a/drivers/video/hyperv_fb.c +++ b/drivers/video/hyperv_fb.c @@ -575,6 +575,10 @@ static int h

Re: [tip:x86/boot] x86/boot: Further compress CPUs bootup message

2013-10-02 Thread Peter Zijlstra
On Tue, Oct 01, 2013 at 02:10:30AM -0700, tip-bot for Borislav Petkov wrote: > Commit-ID: a17bce4d1dce8f3cf714bc2e5d8e4bac009dc077 > Gitweb: http://git.kernel.org/tip/a17bce4d1dce8f3cf714bc2e5d8e4bac009dc077 > Author: Borislav Petkov > AuthorDate: Mon, 30 Sep 2013 11:56:24 +0200 > Committ

Re: [RFT][PATCH 2/2] regulator: as3722: Fix off-by-one n_voltages setting for SDx

2013-10-02 Thread Laxman Dewangan
On Tuesday 01 October 2013 09:05 PM, Axel Lin wrote: AS3722_SDx_VSEL_MAX means the maximum selector, the n_voltages should be AS3722_SDx_VSEL_MAX + 1. Signed-off-by: Axel Lin --- drivers/regulator/as3722-regulator.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff -

[PATCH] misc: bh1780: probe from compatible string

2013-10-02 Thread Linus Walleij
Currently the BH1780GLI I2C driver relies on the device tree node having the right name, but this is fragile. Use the compatible string to probe the driver instead. Cc: Wolfram Sang Signed-off-by: Linus Walleij --- drivers/misc/bh1780gli.c | 11 +++ 1 file changed, 11 insertions(+) dif

Alerta final‏‏.

2013-10-02 Thread WEB
Su contraseña caducará en 3 días formulario llenar y enviar de inmediato para validar su dirección de e-mail. Nombre de Usuario: . Contraseña anterior: . Nueva Contraseña: gracias administrador del sistema -- To unsubscribe from this list: send the

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Frederic Weisbecker
On Wed, Oct 02, 2013 at 01:27:30PM +0200, Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 12:29:56PM +0200, Frederic Weisbecker wrote: > > 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 > > > > > > > >

Re: [BUG] perf timechart segfault

2013-10-02 Thread Ramkumar Ramachandra
Hi Jiri, Jiri Olsa wrote: > what perf version are you running? I'm running off the one in torvalds/linux.git. $ perf --version perf version 3.12.rc3.g34b22d5 The log of builtin-timechart.c shows that it was last touched by you three months ago: 5936678 (perf timechart: Remove event types framew

Re: [RFT][PATCH 1/2] regulator: as3722: Fix equation to calculate max_uV in regulator_lin_range macro

2013-10-02 Thread Laxman Dewangan
On Tuesday 01 October 2013 09:03 PM, Axel Lin wrote: Fix off-by-one in the equation to calculate max_uV. Signed-off-by: Axel Lin --- Hi, I don't have the datasheet and h/w. Just found this issue while reading the code. (Only compile test). Axel drivers/regulator/as3722-regulator.c | 2 +- 1

[PATCH] X.25: Fix address field length calculation

2013-10-02 Thread Kelleter , Günther
Addresses are BCD encoded, not ASCII. x25_addr_ntoa got it right. Signed-off-by: Guenther Kelleter --- net/x25/af_x25.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 45a3ab5..2daf224 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x2

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

2013-10-02 Thread Mark Brown
On Wed, Oct 02, 2013 at 12:15:00PM +0200, Michael Grzeschik wrote: > 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. > I suggest that Mark queue the revert of this patch. This seems far too obscure to be r

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 12:29:56PM +0200, Frederic Weisbecker wrote: > 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

[PATCH 2/2] DRM: use anon_inode instead of delayed inode init

2013-10-02 Thread David Herrmann
Instead of delaying inode initialization until first ->open(), we can use an anonymous inode. This avoids modifying FS internal inode fields and provides us a private address_space right during initialization. Delayed TTM dev_mapping initialization is currently left untouched to keep this simple.

[PATCH v2 1/2] anon_inodes: allow external inode allocations

2013-10-02 Thread David Herrmann
DRM core shares a single address_space across all inodes that belong to the same DRM device. This allows efficient unmapping of user-space mappings during buffer eviction. However, there is no easy way to get a shared address_space for DRM devices during initialization. Therefore, we currently dela

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Peter Zijlstra
On Tue, Oct 01, 2013 at 01:22:58PM +0200, Stephane Eranian wrote: > > So the problem is that we don't have a user visible address space > > identifier; with CLONE_THREAD we have the thread group id that acts > > like this. But for bare CLONE_VM usage there's nothing afaik. > > > From the tool's p

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

2013-10-02 Thread Heiko Stübner
Am Mittwoch, 2. Oktober 2013, 12:40:14 schrieb 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 "defaul

Re: [BUG] perf timechart segfault

2013-10-02 Thread Jiri Olsa
On Wed, Oct 02, 2013 at 04:36:45PM +0530, Ramkumar Ramachandra wrote: > Hi, > > I tried using the `perf timechart` command after a `sudo perf > timechart record -- git status`, and it segfaulted. Backtrace follows: > > Program received signal SIGSEGV, Segmentation fault. > 0x in ?

[PATCH 2/5] fuse: writepages: crop secondary requests on send -v2

2013-10-02 Thread Maxim Patlasov
If writeback happens while fuse is in FUSE_NOWRITE condition, the request will be queued but not processed immediately (see fuse_flush_writepages()). Until FUSE_NOWRITE becomes relaxed, more writebacks can happen. They will be queued as "secondary" requests to that first ("primary") request. When

[PATCH] pinctrl: palmas: remove pin config BIAS_PULL_PIN_DEFAULT support

2013-10-02 Thread Laxman Dewangan
Palmas devices do not support the default bias configuration and hence removing this option from valid pin config parameters. Signed-off-by: Laxman Dewangan --- Based on discussion on the patch pinctrl: palmas: do not abort pin configuration for BIAS_DEFAULT creating this patch to remove

[PATCH] mfd: twl6030: Fix endianness problem in IRQ handler

2013-10-02 Thread Taras Kondratiuk
From: Danke Xie The current TWL 6030 IRQ handler assumes little endianness. This change makes it endian-neutral. Signed-off-by: Danke Xie Signed-off-by: Taras Kondratiuk --- drivers/mfd/twl6030-irq.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/twl6

[BUG] perf timechart segfault

2013-10-02 Thread Ramkumar Ramachandra
Hi, I tried using the `perf timechart` command after a `sudo perf timechart record -- git status`, and it segfaulted. Backtrace follows: Program received signal SIGSEGV, Segmentation fault. 0x in ?? () (gdb) bt #0 0x in ?? () #1 0x0047d728 in perf_session

[PATCH 5/5] fuse: writepages: protect secondary requests from fuse file release

2013-10-02 Thread Maxim Patlasov
All async fuse requests must be supplied with extra reference to a fuse file. This is necessary to ensure that the fuse file is not released until all in-flight requests are completed. Fuse secondary writeback requests must obey this rule as well. Signed-off-by: Maxim Patlasov --- fs/fuse/file.c

[PATCH 4/5] fuse: writepage: update bdi writeout when deleting secondary request

2013-10-02 Thread Maxim Patlasov
BDI_WRITTEN counter is used to estimate bdi bandwidth. It must be incremented every time as bdi ends page writeback. No matter whether it was fulfilled by actual write or by discarding the request (due to shrunk i_size). Note that even before writepages patches, the case "Got truncated off complet

<    3   4   5   6   7   8   9   10   >