Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-09-14 Thread Fu Wei
Hi Pratyush, Great thanks for your help on some update for watchdog framework. For " Fix parent of watchdog_devices", I will update my patchset. For the upstreaming patchset"Sysfs status read support", will make a patch. But upstream it when your patchset is merged. On 14 September 2015 at 12:21

Re: [PATCH] debugfs: don't access 4 bytes for a boolean

2015-09-14 Thread Viresh Kumar
On 14-09-15, 17:25, Arnd Bergmann wrote: > I'd say that the argument to debugfs_create_bool() has to match the > access in the functions you are modifying, as well as whatever > gets passed into it by callers. > > By accessing only the first byte, you break all drivers that > call debugfs_create_b

Gelten Sie für dringende Darlehen bieten1.1%

2015-09-14 Thread BancoPosta Online Loans
-- BancoPosta Online Loans Viale Europa, 175-00144 Roma, Italy. Email: bancoposta...@hotmail.com Guten Tag meine Damen und Herren, Brauchen Sie ein Darlehen für einen bestimmten Zweck? BancoPosta in Italien haben einen günstigen Kredit für Sie. Wir bieten gesicherte und ungesicherte persön

Re: [PATCH v2 1/3] sysfs: Support is_visible() on binary attributes

2015-09-14 Thread Guenter Roeck
On 09/14/2015 05:34 AM, Emilio López wrote: According to the sysfs header file: "The returned value will replace static permissions defined in struct attribute or struct bin_attribute." but this isn't the case, as is_visible is only called on struct attribute only. This patch introdu

[PATCH v2] Staging: lustre: lustre: lov: lov_dev.c: Added missing blank line

2015-09-14 Thread Sakshi Vaid
line 158: WARNING: Missing a blank line after declarations line 183: WARNING: Missing a blank line after declarations Added a missing blank line after declartions. Signed-off-by: Sakshi Vaid --- drivers/staging/lustre/lustre/lov/lov_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dr

Re: [RFC 3/5] powerpc: atomic: implement atomic{,64}_{add,sub}_return_* variants

2015-09-14 Thread Will Deacon
On Mon, Sep 14, 2015 at 01:11:56PM +0100, Peter Zijlstra wrote: > On Mon, Sep 14, 2015 at 02:01:53PM +0200, Peter Zijlstra wrote: > > The scenario is: > > > > CPU0CPU1 > > > > unlock(x) > > smp_store_release(&x->loc

[PATCH] pptp: avoid releasing the sock too early

2015-09-14 Thread Sasha Levin
Since we're using RCU we can't free the sock structure before RCU lets us, otherwise we're risking getting use-after-frees accessing it: [982915.329359] BUG: KASan: use after free in pptp_connect+0xbe3/0xc10 at addr 88006903e540 [982915.333044] Read of size 2 by task trinity-c4/27338 [982915.

Re: [PATCH v3] powerpc32: memset: only use dcbz once cache is enabled

2015-09-14 Thread Christophe LEROY
Le 14/09/2015 17:20, Scott Wood a écrit : On Mon, 2015-09-14 at 08:21 +0200, Christophe Leroy wrote: memset() uses instruction dcbz to speed up clearing by not wasting time loading cache line with data that will be overwritten. Some platform like mpc52xx do no have cache active at startup and

[PATCH] atm: deal with setting entry before mkip was called

2015-09-14 Thread Sasha Levin
If we didn't call ATMARP_MKIP before ATMARP_ENCAP the VCC descriptor is non-existant and we'll end up dereferencing a NULL ptr: [1033173.491930] kasan: GPF could be caused by NULL-ptr deref or user memory accessirq event stamp: 123386 [1033173.493678] general protection fault: [#1] PREEMPT S

[RFT PATCH] mips: e55_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: capcella_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: bigsur_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: lasat_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: fuloong2e_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: lemote2f_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: malta_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: malta_kvm_guest_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: malta_kvm_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: maltaaprp_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: maltasmvp_eva_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: malta_qemu_32r6_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: maltaup_xpa_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: workpad_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: maltaup_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[RFT PATCH] mips: mpc30x_defconfig: convert to use libata PATA drivers

2015-09-14 Thread Bartlomiej Zolnierkiewicz
IDE subsystem has been deprecated since 2009 and the majority (if not all) of Linux distributions have switched to use libata for ATA support exclusively. However there are still some users (mostly old or/and embedded non-x86 systems) that have not converted from using IDE subsystem to libata PATA

[PATCH] mips: sb1250_swarm_defconfig: disable IDE subsystem

2015-09-14 Thread Bartlomiej Zolnierkiewicz
This patch disables deprecated IDE subsystem in sb1250_swarm_defconfig (no IDE host drivers are selected in this config so there is no valid reason to enable IDE subsystem itself). Signed-off-by: Bartlomiej Zolnierkiewicz --- arch/mips/configs/sb1250_swarm_defconfig | 3 --- 1 file changed, 3 de

Re: [RFCv5 PATCH 38/46] sched: scheduler-driven cpu frequency selection

2015-09-14 Thread Juri Lelli
On 04/09/15 14:27, Juri Lelli wrote: > On 15/08/15 13:35, Peter Zijlstra wrote: >> On Tue, Jul 07, 2015 at 07:24:21PM +0100, Morten Rasmussen wrote: >>> diff --git a/kernel/sched/cpufreq_sched.c b/kernel/sched/cpufreq_sched.c >>> new file mode 100644 >>> index 000..5020f24 >>> --- /dev/null >>>

Re: [rcu:rcu/dev 70/71] kernel/rcu/sync.c:68:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at include/linux/rcupdate.h:541)

2015-09-14 Thread Oleg Nesterov
On 09/12, Paul E. McKenney wrote: > > I should have noticed this... Heh, me too :/ Thanks a lot Fengguang! > The new rcu_lockdep_assert() is RCU_LOCKDEP_WARN(). I am guessing > that you would like to also make rcu_sync_lockdep_assert() be > RCU_SYNC_LOCKDEP_WARN()? I am fine either way. Unless

Re: [PATCH v2 2/5] seccomp: make underlying bpf ref counted as well

2015-09-14 Thread Tycho Andersen
Hi Daniel, On Fri, Sep 11, 2015 at 08:28:19PM +0200, Daniel Borkmann wrote: > I think due to the given insns restrictions on classic seccomp, this > could work for "most cases" (see below) for the time being until pointer > sanitation is resolved and that seccomp-only restriction from the dump > c

Re: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-14 Thread Tejun Heo
Hello, Arnd. On Mon, Sep 14, 2015 at 09:45:33AM +0200, Arnd Bergmann wrote: > In general, we really want to leave drivers with a COMPILE_TEST dependency > so they at least get cross-built on x86, ideally on all architectures. Yeah, as long as it doesn't trigger silly warnings or errors on x86, CO

Re: [Bugfix 0/3] Convert eata driver to a normal PCI device driver

2015-09-14 Thread Arthur Marsh
Jiang Liu wrote on 14/09/15 12:38: Hi Authur, As suggested by Bjorn, patch 1-2 set implement a PCI device driver to manage eata PCI devices. And patch 3 tries to support PCI device hot-removal for eata, but I have no change to test due to limited knowledge about scsi subsystem and lacki

Re: [PATCH v3 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-14 Thread Punit Agrawal
Mark Rutland writes: > On Mon, Sep 14, 2015 at 04:01:09PM +0100, Punit Agrawal wrote: >> Mark Rutland writes: >> [...] >> >> After seeing the mapping already published, I am wondering if there is >> any value in duplicating the information. If there are no objections, >> I'll update this pat

[PATCH] README: Add ARC architecture

2015-09-14 Thread Vineet Gupta
ARC support was added back in 2013 but I missed updating here Reported-by: Francois Bedard Signed-off-by: Vineet Gupta --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index a326a6a6a46f..f4756ee1c918 100644 --- a/README +++ b/README @@ -24,7 +24,7

Re: [PATCH 14/39] SUNRPC: drop null test before destroy functions

2015-09-14 Thread J. Bruce Fields
ACK, but assuming Trond takes this one.--b. On Sun, Sep 13, 2015 at 02:15:07PM +0200, Julia Lawall wrote: > Remove unneeded NULL test. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ expression x; @@ > -if (x != NULL) > \(kmem_cache_dest

Re: [PATCH 22/39] nfsd: drop null test before destroy functions

2015-09-14 Thread J. Bruce Fields
Thanks, applying.--b. On Sun, Sep 13, 2015 at 02:15:15PM +0200, Julia Lawall wrote: > Remove unneeded NULL test. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ expression x; @@ > -if (x != NULL) { > \(kmem_cache_destroy\|mempool_destroy

Re: [PATCH] KVM: nVMX: nested VPID emulation

2015-09-14 Thread Bandan Das
Wanpeng Li writes: > VPID is used to tag address space and avoid a TLB flush. Currently L0 use > the same VPID to run L1 and all its guests. KVM flushes VPID when switching > between L1 and L2. > > This patch advertises VPID to the L1 hypervisor, then address space of L1 and > L2 can be separ

[PATCH] iio: gyro: ssp_gyro_sensor: Use devm_iio_device_register

2015-09-14 Thread Vaishali Thakkar
Use resourced managed function devm_iio_device_register to make error path simpler. To be compatible with the change, the remove function is removed as it is now redundant. Signed-off-by: Vaishali Thakkar --- drivers/iio/gyro/ssp_gyro_sensor.c | 12 +--- 1 file changed, 1 insertion(+), 1

Re: [HPDD-discuss] [PATCH] nfsd: add a new EXPORT_OP_NOWCC flag to struct export_operations

2015-09-14 Thread bfie...@fieldses.org
On Sat, Sep 12, 2015 at 06:24:54AM -0400, Jeff Layton wrote: > On Sat, 12 Sep 2015 04:41:33 + > "Dilger, Andreas" wrote: > > > On 2015/09/11, 4:20 AM, "HPDD-discuss on behalf of Jeff Layton" > > > > wrote: > > > > >With NFSv3 nfsd will always attempt to send along WCC data to the > > >clien

[PATCH] arm: dma-mapping: fix build warning with new DMA_ERROR_CODE definition

2015-09-14 Thread Andre Przywara
Commit 96231b2686b5: ("ARM: 8419/1: dma-mapping: harmonize definition of DMA_ERROR_CODE") changed the definition of DMA_ERROR_CODE to use dma_addr_t, which makes the compiler barf on assigning this to an "int" variable on ARM with LPAE enabled: --- In file included from /src/linux/i

Re: [PATCH v2 11/23] ARM/dmaengine: edma: Merge the two drivers under drivers/dmaengine

2015-09-14 Thread Tony Lindgren
* Peter Ujfalusi [150911 05:35]: > Move the code out from arch/arm/common and merge it inside of the dmaengine > driver. > This change is done with as minimal change to the code as possible to avoid > any possibilities to introducing regression. You should check your git config so it uses -M opti

Re: [PATCH v3] powerpc32: memset: only use dcbz once cache is enabled

2015-09-14 Thread Scott Wood
On Mon, 2015-09-14 at 17:44 +0200, Christophe LEROY wrote: > Le 14/09/2015 17:20, Scott Wood a écrit : > > On Mon, 2015-09-14 at 08:21 +0200, Christophe Leroy wrote: > > > memset() uses instruction dcbz to speed up clearing by not wasting time > > > loading cache line with data that will be overwri

Re: [PATCH] serial: sccnxp: convert devm irq to non devm version

2015-09-14 Thread Fabio Estevam
On Sun, Sep 13, 2015 at 10:44 AM, Julia Lawall wrote: > --- a/drivers/tty/serial/sccnxp.c > +++ b/drivers/tty/serial/sccnxp.c > @@ -963,11 +963,9 @@ static int sccnxp_probe(struct platform_device *pdev) > sccnxp_write(&s->port[0], SCCNXP_IMR_REG, 0); > > if (!s->poll) { > -

Re: [PATCH 14/39] SUNRPC: drop null test before destroy functions

2015-09-14 Thread Trond Myklebust
On Mon, Sep 14, 2015 at 12:07 PM, J. Bruce Fields wrote: > ACK, but assuming Trond takes this one.--b. No problem. I'll pick it up... Cheers Trond > On Sun, Sep 13, 2015 at 02:15:07PM +0200, Julia Lawall wrote: >> Remove unneeded NULL test. >> >> The semantic patch that makes this change is a

Re: [rcu:rcu/dev 70/71] kernel/rcu/sync.c:68:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at include/linux/rcupdate.h:541)

2015-09-14 Thread Paul E. McKenney
On Mon, Sep 14, 2015 at 05:55:20PM +0200, Oleg Nesterov wrote: > On 09/12, Paul E. McKenney wrote: > > > > I should have noticed this... > > Heh, me too :/ > > Thanks a lot Fengguang! > > > The new rcu_lockdep_assert() is RCU_LOCKDEP_WARN(). I am guessing > > that you would like to also make rc

Re: [PATCH 00/11] ARM: OMAP/DTS: dra7/72-evm/beagle-x15: Audio support

2015-09-14 Thread Tony Lindgren
* Peter Ujfalusi [150914 01:54]: > Hi Tony, > > On 08/24/2015 10:19 AM, Peter Ujfalusi wrote: > > Hi, > > > > this series will enable analog audio (via onboard aic310x codec) for > > dra7-evm, > > dra72-evm and am57xx-beagle-x15 boards. > > In these board McASP3 is connected to the codec and fo

Re: [PATCH v2] powerpc32: memcpy/memset: only use dcbz once cache is enabled

2015-09-14 Thread Scott Wood
On Sat, 2015-09-12 at 11:57 +0200, christophe leroy wrote: > Le 11/09/2015 03:24, Michael Ellerman a écrit : > > On Thu, 2015-09-10 at 17:05 -0500, Scott Wood wrote: > > > > > > I don't think this duplication is what Michael meant by "the normal cpu > > > feature sections". What else is going to

Re: [PATCH] arm: dma-mapping: fix build warning with new DMA_ERROR_CODE definition

2015-09-14 Thread Russell King - ARM Linux
On Mon, Sep 14, 2015 at 05:13:18PM +0100, Andre Przywara wrote: > Commit 96231b2686b5: ("ARM: 8419/1: dma-mapping: harmonize definition > of DMA_ERROR_CODE") changed the definition of DMA_ERROR_CODE to use > dma_addr_t, which makes the compiler barf on assigning this to an > "int" variable on ARM w

Re: [PATCH V3 2/4] ACPI/scan: Clean up acpi_check_dma

2015-09-14 Thread Bjorn Helgaas
On Wed, Aug 26, 2015 at 08:54:37PM +0700, Suravee Suthikulpanit wrote: > The original name of acpi_check_dma() function does not clearly tell what > exactly it is checking. Also, returning two boolean values (one to indicate > device is DMA capability, and the other to inidicate device coherency s

Re: [PATCH V3] mmc: block: Add new ioctl to send multi commands

2015-09-14 Thread Grant Grundler
On Mon, Sep 14, 2015 at 8:00 AM, Jon Hunter wrote: > From: Seshagiri Holi > > Certain eMMC devices allow vendor specific device information to be read > via a sequence of vendor commands. These vendor commands must be issued > in sequence and an atomic fashion. One way to support this would be to

[PATCH 01/27] perf tests: Take into account address of each objdump line

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jan Stancek objdump output can contain repeated bytes. At the moment test reads all output sequentially, assuming each address is represented in output only once: 8164efb3 : 8164efb3: c1 5d 00 ebrcrl $0xeb,0x0(%rbp) 8164efb7: 00 4c 8b 5cadd

[PATCH 17/27] perf env: Read msr pmu type from header

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Kan Liang Get msr pmu type when processing pmu_mappings Signed-off-by: Kan Liang Acked-by: Jiri Olsa Link: http://lkml.kernel.org/n/tip-3ngei63gepydwxhvytl2w...@git.kernel.org [ Fixed it up wrt moving perf_env from header.h ] Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/

[PATCH 03/27] perf tests: Stop reading if objdump output crossed sections

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jan Stancek objdump output can span across multiple sections: Disassembly of section .text: 0008 : 8: 48 89 e5mov%rsp,%rbp b: 53 push %rbx c: 8b 01 mov(%rcx),%eax

[PATCH 02/27] perf tests: Make objdump disassemble zero blocks

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jan Stancek Add -z parameter to avoid skipping zero blocks: 816704fe : 816704fe: 7b 34 jnp 81670534 ... 81670501 : 81670501: 0f ba e2 03 bt $0x3,%edx 81670505: 73 11 jae 81670518 Signed-off-by: Jan

[GIT PULL 00/27] perf/core2 improvements and fixes

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Hi Ingo, Please consider pulling, this should have all the issues related to that 'socket' sort order/filter fixed. I reordered some patches I did to get the right infrastructure in place and merged a few fixes from me, Jiri, so that we have a clean bisect

[PATCH 04/27] perf tests: Print objdump/dso buffers if they don't match

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jan Stancek Signed-off-by: Jan Stancek Acked-by: Adrian Hunter Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/d0f42f786bc0e965918e0f422df25617a12a4021.1441181335.git.jsta

Re: [PATCH 3/4] fs: add fput_queue

2015-09-14 Thread Al Viro
On Mon, Sep 14, 2015 at 10:19:18AM -0400, Jeff Layton wrote: > > > + * borrow the infrastructure used by kthreads, and the task can then just > > > + * called flush_delayed_fput to ensure that the final fput has completed. > > > > Are you sure that it's not a typo? > > I don't think so, but it co

[PATCH 12/27] perf env: Rename some leftovers from rename to perf_env

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In ce80d3bef9ff ("perf tools: Rename perf_session_env to perf_env") we forgot to rename a few functions to the "perf_env" prefix, do it now. Tested-by: Wang Nan Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Ka

[PATCH 16/27] perf tools: Add tools/include into tags directories

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding tools/include into tags directories, to have include definitions reachable via tags/cscope. Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Matt Fleming Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Raphael Beamonte Link: http://lkml.kern

[PATCH 22/27] perf machine: Add pointer to sample's environment

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The 'struct machine' represents the machine where the samples were/are being collected, and we also have a 'struct perf_env' with extra details about such machine, that we were collecting at 'perf.data' creation time but we also needed when no perf.data file is bein

[PATCH 21/27] perf env: Introduce read_cpu_topology_map() method

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Out of the code to write the cpu topology map in the perf.data file header. Now if one needs the CPU topology map for the running machine, one needs to call perf_env__read_cpu_topology_map(perf_env) and the info will be stored in perf_env.cpu. For now we're using

[PATCH 10/27] perf tests: Introduce iterator function for tests

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Matt Fleming In preparation for introducing more arrays of tests, e.g. "arch tests" (architecture-specific tests), abstract the code to iterate over the list of tests into a helper function. This way, code that uses a 'struct test' doesn't need to worry about how the tests are grouped toge

[PATCH 20/27] perf cpu_map: Use sysfs__read_int in get_{core,socket}_id()

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We have the tools/lib/ sysfs__read_int() for that, avoid code duplication. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Cc: Stephane Eranian Cc: Wang Nan Link: http://lkml.kernel

[PATCH 27/27] perf test: Add entry for hists socket filter

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Kan Liang Add test case for hists socket filter. Signed-off-by: Kan Liang Cc: Adrian Hunter Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1441377946-44429-5-git-send-email-kan.li...@intel.com Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 26/27] perf hists browser: Zoom in/out for processor socket

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Kan Liang Currently, users can zoom in/out for threads and dso in 'perf top' and 'perf report'. This patch extends it for the processor sockets. 'S' is the short key to zoom into current Processor Socket. Signed-off-by: Kan Liang Tested-by: Arnaldo Carvalho de Melo Cc: Adrian Hunter C

[PATCH 18/27] tools lib api fs: Introduce sysfs__read_{int,ull}()

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To read either an int or an unsigned long long value from the given file. E.g.: $ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq 320 $ ./sysfs__read_ull devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu0/cpufreq/

[PATCH 14/27] perf hists browser: Fixup the "cpu" column width calculation

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since we were not setting it to at least 3 chars ('CPU'), it was being reset to zero when recalculating the columns width when refreshing the screen, in 'perf top'. Fix it. Tested-by: Wang Nan Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Frederic W

[PATCH 23/27] perf tools: Add processor socket info to hist_entry and addr_location

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Kan Liang This information will come from perf.data files of from the current system, cached when needed, such as when the 'socket' sort order gets introduced. Signed-off-by: Kan Liang Cc: Adrian Hunter Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Cc: Wang Nan

Re: [PATCH] pptp: avoid releasing the sock too early

2015-09-14 Thread Eric Dumazet
On Mon, 2015-09-14 at 11:40 -0400, Sasha Levin wrote: > Since we're using RCU we can't free the sock structure before RCU lets us, > otherwise we're risking getting use-after-frees accessing it: > > Signed-off-by: Sasha Levin > --- > drivers/net/ppp/pptp.c |9 - > include/linux/if

[PATCH 19/27] tools lib api cpu: Introduce cpu.[ch] to obtain cpu related information

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo E.g.: $ ./cpu__get_max_freq 320 It does that, as Kan's patch does, by looking at these files: $ cat /sys/devices/system/cpu/online 0-3 $ ./sysfs__read_ull devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu0/cpufreq/cpuinf

[PATCH 25/27] perf report: Introduce --socket-filter option

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Kan Liang Introduce --socket-filter option for 'perf report' to only show entries for a processor socket that match this filter. $ perf report --socket-filter 1 --stdio # To display the perf.data header info, please use --header/--header-only options. # # Total Lost Samples: 0 #

[PATCH v3 6/8] acpi: gsi: Add acpi_set_irq_model to initialize the GSI layer

2015-09-14 Thread Marc Zyngier
In order to start embrassing irqdomains at the GSI level, introduce a new initializer: void acpi_set_irq_model(enum acpi_irq_model_id model, unsigned long domain_token, int (*populate)(struct acpi_gsi_descriptor *,

[PATCH v3 8/8] acpi: gsi: Cleanup acpi_register_gsi

2015-09-14 Thread Marc Zyngier
As the only user of drivers/acpi/gsi.c is now using acpi_set_irq_model to set acpi_gsi_descriptor_populate to something meaningful, we can always rely on that information to be present (its absence is an error), and guarantee that new interrupt controllers will use this API. Take this opportunity

[PATCH 11/27] perf env: Move perf_env out of header.h and session.c into separate object

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since it can be used separately from 'perf_session' and 'perf_header', move it to separate include file and object, next csets will try to move a perf_env__init() routine. Tested-by: Wang Nan Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Frederic We

[PATCH v3 7/8] irqchip: GIC: Switch ACPI support to stacked domains

2015-09-14 Thread Marc Zyngier
Now that the basic ACPI GSI code is irq domain aware, make sure that the ACPI support in the GIC doesn't pointlessly deviate from the DT path. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic.c | 54 --- 1 file changed, 42 insertions(+), 12 dele

[PATCH 09/27] perf test: Add entry to test cpu topology

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Kan Liang This patch test cpu core_id and socket_id which are stored in perf_env. Commiter note: # perf test topo 40: Test topology in session: Ok # perf test -v topo 40: Test topology in session: --- start --- test child forked, pid 31767 templ file: /tmp/perf-test-VTZ1PL

[PATCH v3 3/8] genirq: irqdomain: Allow a domain to be identified with non-DT data

2015-09-14 Thread Marc Zyngier
Now that irqdomains are not directly tied to device nodes, let's make sure that they can be identified by other types of data. For this, we implement the method suggested in a previous patch, where device_token is a small integer representing data stored in an IDR. We end-up with a bunch of funct

[PATCH v3 0/8] Making the generic ACPI GSI layer irqdomain aware

2015-09-14 Thread Marc Zyngier
The irqdomain code is not entierely ACPI friendly, as it has some built-in knowledge of the device-tree. Nothing too harmful, but enough to scare the ARM ACPI developpers which end up with their own version of the square wheel. This small patch series adapt the irqdomain code to remove the hurdles

[PATCH v3 5/8] acpi: gsi: Always perform an irq domain lookup

2015-09-14 Thread Marc Zyngier
Instead of directly passing NULL to the various irq_domain functions, start by looking up the domain with a domain_token. As domain_token is permanently set to NULL, the lookup function will return the same value (no domain found) and the default will be used, preserving the current behaviour. Si

[PATCH v3 0/2] lib/string_helpers.c: fix infinite loop in string_get_size()

2015-09-14 Thread Vitaly Kuznetsov
This patch series prevents string_get_size() from entering an infinite loop on some inputs and adds several basic tests for string_get_size() including one to test for the issue. Changes since v2: - Add a comment explaining the fix to string_get_size() [James Bottomley] - Add string_get_size() tes

Re: [RFC 3/5] powerpc: atomic: implement atomic{,64}_{add,sub}_return_* variants

2015-09-14 Thread Paul E. McKenney
On Mon, Sep 14, 2015 at 04:38:48PM +0100, Will Deacon wrote: > On Mon, Sep 14, 2015 at 01:11:56PM +0100, Peter Zijlstra wrote: > > On Mon, Sep 14, 2015 at 02:01:53PM +0200, Peter Zijlstra wrote: > > > The scenario is: > > > > > > CPU0CPU1 > > > > > >

[PATCH v3 2/2] lib/test-string_helpers.c: add string_get_size() tests

2015-09-14 Thread Vitaly Kuznetsov
Add a couple of simple tests for string_get_size(). The last one will hang the kernel without the 'lib/string_helpers.c: fix infinite loop in string_get_size()' fix. Signed-off-by: Vitaly Kuznetsov --- lib/test-string_helpers.c | 27 +++ 1 file changed, 27 insertions(+)

[PATCH v3 1/2] lib/string_helpers.c: fix infinite loop in string_get_size()

2015-09-14 Thread Vitaly Kuznetsov
Some string_get_size() calls (e.g.: string_get_size(1, 512, STRING_UNITS_10, ..., ...) string_get_size(15, 64, STRING_UNITS_10, ..., ...) ) result in an infinite loop. The problem is that if size is equal to divisor[units]/blk_size and is smaller than divisor[units] we'll end up with size == 0 wh

[PATCH v3 2/8] genirq: irqdomain: Remove irqdomain dependency on struct device_node

2015-09-14 Thread Marc Zyngier
struct device_node is very much DT specific, and the original authors of the irqdomain subsystem recognized that tie, and went as far as mentionning that this could be replaced by some "void *token", should another firmware infrastructure be using it. As we move ACPI on arm64 towards this model to

[PATCH 08/27] perf tools: Switch to tracing_path interface on appropriate places

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Using tracing_path interface on several places, that more or less copy the functionality of tracing_path interface. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Matt Fleming Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Raphael Beamonte Cc: Steven Rostedt Link: http://lkml.kern

[PATCH v3 1/8] genirq: irqdomain: Use an accessor for the of_node field

2015-09-14 Thread Marc Zyngier
The struct irq_domain contains a "struct device_node *" field (of_node) that is almost the only link between the irqdomain and the device tree infrastructure. In order to prepare for the removal of that field, convert all users outside of kernel/irq/irqdomain.c to use an accessor. Signed-off-by:

[PATCH 24/27] perf tools: Introduce new sort type "socket" for the processor socket

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Kan Liang This patch enable perf report to sort by processor socket: $ perf report --stdio --sort socket,comm,dso,symbol # To display the perf.data header info, please use --header/--header-only options. # # Total Lost Samples: 0 # # Samples: 686 of event 'cycles' # Event c

[PATCH v3 4/8] genirq: irqdomain: Add irq_create_acpi_mapping

2015-09-14 Thread Marc Zyngier
In order to help ACPI on arm64 to make use of most of the irqdomain goodies, add a new entry point (irq_create_acpi_mapping) which mimics irq_create_of_mapping, except that it takes a new struct acpi_gsi_descriptor, which is the pendent of of_phandle_args in the OF world. We assume that the way th

Re: [PATCH v2 2/5] seccomp: make underlying bpf ref counted as well

2015-09-14 Thread Daniel Borkmann
On 09/14/2015 06:00 PM, Tycho Andersen wrote: On Fri, Sep 11, 2015 at 08:28:19PM +0200, Daniel Borkmann wrote: I think due to the given insns restrictions on classic seccomp, this could work for "most cases" (see below) for the time being until pointer sanitation is resolved and that seccomp-onl

[PATCH 06/27] tools lib api fs: Replace debugfs/tracefs objects interface with fs.c

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Switching to the fs.c related filesystem framework. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Matt Fleming Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Raphael Beamonte Cc: Steven Rostedt Link: http://lkml.kernel.org/r/1441180605-24737-14-git-send-email-jo...@kernel.org Sig

[PATCH 15/27] perf evsel: Remove forward declaration of 'struct perf_evlist'

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We have no use for it in evsel.h. Tested-by: Wang Nan Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-um03yjrgyi3bj1hzqiqs4..

[PATCH 13/27] perf env: Adopt perf_header__set_cmdline

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Move this from two globals to perf_env global, that eventually will be just perf_header->env or something else, to ease the refactoring series, leave it as a global and go on reading more of its fields, not as part of the header writing process but as a perf_env ini

[PATCH 07/27] tools lib api fs: Remove debugfs, tracefs and findfs objects

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We have all the functionality in fs.c, let's remove unneeded objects. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Matt Fleming Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Raphael Beamonte Cc: Steven Rostedt Link: http://lkml.kernel.org/r/1441180605-24737-15-git-send-email-jo

[PATCH 05/27] tools lib api fs: Make tracing_path_strerror_open message generic

2015-09-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Making tracing_path__strerror_open_tp message generic by mentioning both debugfs/tracefs words in error message plus the tracing_path instead of debugfs_mountpoint. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Matt Fleming Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Raphael Beam

[PATCH] drivers: stating: wilc1000: Add a check for SPI availability

2015-09-14 Thread Chandra S Gorentla
NULL pointer deference is observed in the wilc1000.ko module with bus type SPI and when SPI is not ready. Signed-off-by: Chandra S Gorentla --- Following are the steps to reproduce. $ sudo insmod drivers/staging/wilc1000/wilc1000.ko $ sudo ifconfig wlan1 up wlan1 in the above command is the de

Re: [PATCH] atm: deal with setting entry before mkip was called

2015-09-14 Thread Eric Dumazet
On Mon, 2015-09-14 at 11:48 -0400, Sasha Levin wrote: > > diff --git a/net/atm/clip.c b/net/atm/clip.c > index 17e55df..4407b2f 100644 > --- a/net/atm/clip.c > +++ b/net/atm/clip.c > @@ -317,6 +317,9 @@ static int clip_constructor(struct neighbour *neigh) > > static int clip_encap(struct atm_v

Re: [RFC PATCH] vfio/pci: Use kernel VPD access functions

2015-09-14 Thread Alex Williamson
On Sat, 2015-09-12 at 01:11 +, Rustad, Mark D wrote: > Alex, > > > On Sep 11, 2015, at 11:16 AM, Alex Williamson > > wrote: > > > > RFC - Is this something we should do? > > Superficially this looks pretty good. I need to think harder to be sure of > the details. > > > Should we consider

Re: [PATCH] atm: deal with setting entry before mkip was called

2015-09-14 Thread Sasha Levin
On 09/14/2015 12:50 PM, Eric Dumazet wrote: > On Mon, 2015-09-14 at 11:48 -0400, Sasha Levin wrote: > >> >> diff --git a/net/atm/clip.c b/net/atm/clip.c >> index 17e55df..4407b2f 100644 >> --- a/net/atm/clip.c >> +++ b/net/atm/clip.c >> @@ -317,6 +317,9 @@ static int clip_constructor(struct neighb

Re: [PATCH] atm: deal with setting entry before mkip was called

2015-09-14 Thread Eric Dumazet
On Mon, 2015-09-14 at 13:00 -0400, Sasha Levin wrote: > I've tried to be consistent with a similar check within clip_mkip() and > clip_setentry(): > > if (!vcc->push) > return -EBADFD; > > So calling clip_setentry() before clip_mkip() would also give you -EBADFD. > Okay

[4.3-rc1 regression] modular 8250 doesn't load

2015-09-14 Thread Mikael Pettersson
I have CONFIG_SERIAL_8250=m. With 4.2 '/sbin/modprobe 8250' worked and resulted in: [ 41.354550] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 41.375156] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A With 4.3-rc1 however the command fails and logs the

Re: [PATCH] atm: deal with setting entry before mkip was called

2015-09-14 Thread Sasha Levin
On 09/14/2015 01:07 PM, Eric Dumazet wrote: > On Mon, 2015-09-14 at 13:00 -0400, Sasha Levin wrote: > >> I've tried to be consistent with a similar check within clip_mkip() and >> clip_setentry(): >> >> if (!vcc->push) >> return -EBADFD; >> >> So calling clip_setentry() bef

<    1   2   3   4   5   6   7   8   9   >