[ PATCH RESEND ] PCI-AER: Do not report successful error recovery for devices with AER-unaware drivers

2012-11-09 Thread Pandarathil, Vijaymohan R
When an error is detected on a PCIe device which does not have an AER-aware driver, prevent AER infrastructure from reporting successful error recovery. This is because the report_error_detected() function that gets called in the first phase of recovery process allows forward progress even when

Re: [PATCH v3 8/7] pppoatm: fix missing wakeup in pppoatm_send()

2012-11-09 Thread David Woodhouse
On Fri, 2012-11-09 at 16:30 -0500, David Miller wrote: > I don't know what to do with this patch because I don't have any > context whatsoever. I sent two replies to Krzysztof's series starting with [PATCH v3 0/7] in Message-Id: <1352240222-363-1-git-send-email-krzys...@podlesie.net> The first

Re: Issues with "x86, um: switch to generic fork/vfork/clone" commit

2012-11-09 Thread Al Viro
On Fri, Nov 09, 2012 at 09:47:54PM -0800, Michel Lespinasse wrote: > On Fri, Nov 9, 2012 at 9:33 PM, Al Viro wrote: > > On Fri, Nov 09, 2012 at 08:57:58PM -0800, Michel Lespinasse wrote: > >> On Fri, Nov 9, 2012 at 8:51 PM, Al Viro wrote: > >> > On Fri, Nov 09, 2012 at 08:36:53PM -0800, Michel

[PATCH] Staging: comedi: drivers: replaced printk with dev_dbg

2012-11-09 Thread Arpith Easow Alexander
This is a patch to the vmk80xx.c file that replaces the printk with dev_dbg. This fixes the warnings found by the checkpatch.pl tool. Signed-off-by: Arpith Easow Alexander --- drivers/staging/comedi/drivers/vmk80xx.c | 30 ++ 1 file changed, 18 insertions(+), 12

Re: Issues with "x86, um: switch to generic fork/vfork/clone" commit

2012-11-09 Thread Michel Lespinasse
On Fri, Nov 9, 2012 at 9:33 PM, Al Viro wrote: > On Fri, Nov 09, 2012 at 08:57:58PM -0800, Michel Lespinasse wrote: >> On Fri, Nov 9, 2012 at 8:51 PM, Al Viro wrote: >> > On Fri, Nov 09, 2012 at 08:36:53PM -0800, Michel Lespinasse wrote: >> >> Hi, >> >> >> >> I'm having an issue booting current

Re: Issues with "x86, um: switch to generic fork/vfork/clone" commit

2012-11-09 Thread Al Viro
On Fri, Nov 09, 2012 at 08:57:58PM -0800, Michel Lespinasse wrote: > On Fri, Nov 9, 2012 at 8:51 PM, Al Viro wrote: > > On Fri, Nov 09, 2012 at 08:36:53PM -0800, Michel Lespinasse wrote: > >> Hi, > >> > >> I'm having an issue booting current linux-next kernels on my test > >> machines. Userspace

[PATCH] perf: call perf_event_comm under task_lock to fix suspicious rcu usage

2012-11-09 Thread Hannes Frederic Sowa
Following RCU warning showed up while executing a shebang-script under perf-record (could even be an empty script) on a 3.7-rc4 stable kernel: [ 32.185108] [ 32.185332] === [ 32.185602] [ INFO: suspicious RCU usage. ] [ 32.185903] 3.7.0-rc4 #1 Not

Re: Issues with "x86, um: switch to generic fork/vfork/clone" commit

2012-11-09 Thread Michel Lespinasse
On Fri, Nov 9, 2012 at 8:51 PM, Al Viro wrote: > On Fri, Nov 09, 2012 at 08:36:53PM -0800, Michel Lespinasse wrote: >> Hi, >> >> I'm having an issue booting current linux-next kernels on my test >> machines. Userspace crashes when it's supposed to pivot to the rootfs. >> With the loglevel=8

Re: Issues with "x86, um: switch to generic fork/vfork/clone" commit

2012-11-09 Thread Al Viro
On Fri, Nov 09, 2012 at 08:36:53PM -0800, Michel Lespinasse wrote: > Hi, > > I'm having an issue booting current linux-next kernels on my test > machines. Userspace crashes when it's supposed to pivot to the rootfs. > With the loglevel=8 kernel parameter, the last messages I see are: > >

tty_ldisc_hangup: waiting (init) for ttyS0 took too long, but we keep waiting...

2012-11-09 Thread Sasha Levin
Hi all, I'm seeing lots of cases when my fuzzing session hangs with a message that starts with: [ 104.670841] tty_ldisc_hangup: waiting (init) for ttyS0 took too long, but we keep waiting... And continues with a hung task spew, such as: [ 242.990329] INFO: task init:1 blocked for more than

Issues with "x86, um: switch to generic fork/vfork/clone" commit

2012-11-09 Thread Michel Lespinasse
Hi, I'm having an issue booting current linux-next kernels on my test machines. Userspace crashes when it's supposed to pivot to the rootfs. With the loglevel=8 kernel parameter, the last messages I see are: Checking root filesystem in pivot_root init. [6.252717] usb 2-1: link

NULL pointer dereference at task_numa_fault+0x36/0x140

2012-11-09 Thread Shuah Khan
I ran into NULL pointer dereference at task_numa_fault+0x36/0x140 when I was installing guest OS in a vm in kvm virt env. My test system doesn't have NUMA config and runs with Fake NUMA node: [0.00] ACPI: Local APIC address 0xfee0 [0.00] No NUMA configuration found [

[RESEND] [PATCH] Documentation/java.txt: add Java 7 support

2012-11-09 Thread Jonathan Callen
The sample wrapper currently fails on some Java 7 .class files. This updates the wrapper to properly handle those files. Signed-off-by: Jonathan Callen --- Documentation/java.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/java.txt b/Documentation/java.txt index

RE: [PATCH] extcon : callback function to read cable property

2012-11-09 Thread anish kumar
On Fri, 2012-11-09 at 14:05 +, Tc, Jenny wrote: > > I think that the role of extcon subsystem notify changed > > state(attached/detached) of cable to notifiee, but if you want to add > > property feature of cable, you should solve ambiguous issues. > > > > First, > > This patch only support

Re: [PATCH v2] of/address: sparc: Declare of_address_to_resource() as an extern function for sparc again

2012-11-09 Thread David Miller
From: Andreas Larsson Date: Mon, 5 Nov 2012 11:53:18 +0100 > This bug-fix makes sure that of_address_to_resource is defined extern for > sparc > so that the sparc-specific implementation of of_address_to_resource() is once > again used when including include/linux/of_address.h in a sparc

Re: [PATCH 04/11] ARM: set arch_gettimeoffset directly

2012-11-09 Thread Ryan Mallon
On 10/11/12 08:07, Stephen Warren wrote: > On 11/08/2012 04:06 PM, Ryan Mallon wrote: >> On 09/11/12 08:01, Stephen Warren wrote: >>> remove ARM's struct sys_timer .offset function pointer, and instead >>> directly set the arch_gettimeoffset function pointer when the timer >>> driver is

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-09 Thread Joel A Fernandes
Hi Pantelis, On Fri, Nov 9, 2012 at 2:13 AM, Pantelis Antoniou wrote: Option C: U-Boot loads both the base and overlay FDT files, merges them, and passes the resolved tree to the kernel. >>> >>> Could be made to work. Only really required if Joanne wants the >>> cape

Re: [PATCH] dmatest: Fix NULL pointer dereference on ioat

2012-11-09 Thread viresh kumar
On Sat, Nov 10, 2012 at 2:27 AM, Jon Mason wrote: > device_control is an optional and not implemented in all DMA drivers. > Any calls to these will result in a NULL pointer dereference. dmatest > makes two of these calls when completing the kernel thread and removing > the module. These are

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-09 Thread Joel A Fernandes
On Fri, Nov 9, 2012 at 8:29 AM, David Gibson wrote: > On Fri, Nov 09, 2012 at 12:32:09AM -0500, Joel A Fernandes wrote: >> Hi Pantelis, >> >> I hope I'm not too late to reply as I'm traveling. >> >> On Nov 6, 2012, at 5:30 AM, Pantelis Antoniou >> wrote: >> >> >> Joanne has purchased one of

Re: [PATCH 00/31] numa/core patches

2012-11-09 Thread Alex Shi
On Sat, Nov 3, 2012 at 8:21 PM, Mel Gorman wrote: > On Sat, Nov 03, 2012 at 07:04:04PM +0800, Alex Shi wrote: >> > >> > In reality, this report is larger but I chopped it down a bit for >> > brevity. autonuma beats schednuma *heavily* on this benchmark both in >> > terms of average operations per

Re: [PATCH v3 02/11] clk: davinci - add PSC clock driver

2012-11-09 Thread Mike Turquette
Quoting Murali Karicheri (2012-11-05 07:10:52) > On 11/03/2012 08:07 AM, Sekhar Nori wrote: > > On 10/25/2012 9:41 PM, Murali Karicheri wrote: > >> This is the driver for the Power Sleep Controller (PSC) hardware > >> found on DM SoCs as well Keystone SoCs (c6x). This driver borrowed > >> code

[PATCH] rapidio: fix kernel-doc warnings

2012-11-09 Thread Randy Dunlap
From: Randy Dunlap Fix rapidio kernel-doc warnings: Warning(drivers/rapidio/rio.c:415): No description found for parameter 'local' Warning(drivers/rapidio/rio.c:415): Excess function parameter 'lstart' description in 'rio_map_inb_region' Warning(include/linux/rio.h:290): No description found

Re: [PATCH v2] pstore/ram: no timekeeping calls when unavailable

2012-11-09 Thread John Stultz
On 11/05/2012 02:00 PM, Kees Cook wrote: We must not call timekeeping functions unless they are available. If we dump before they have resumed, avoid a WARN_ON by setting the timestamp to 0. Since the "ram" pstore driver can be a module, we must have timekeeping_suspended exported.

net, batman: NULL ptr deref in batadv_iv_ogm_queue_add

2012-11-09 Thread Sasha Levin
3.7.0-rc4-next-20121109-sasha-00013-g9407f3c #125 [ 469.921756] RIP: 0010:[] [] batadv_iv_ogm_queue_add+0x20/0x700 [ 469.921756] RSP: :880013361c08 EFLAGS: 00010292 [ 469.921756] RAX: 0062 RBX: RCX: 8800622d2c00 [ 469.921756] RDX: 001a

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2012-11-09 Thread John Stultz
On 10/16/2012 10:23 AM, Peter Zijlstra wrote: On Tue, 2012-10-16 at 12:13 +0200, Stephane Eranian wrote: Hi, There are many situations where we want to correlate events happening at the user level with samples recorded in the perf_event kernel sampling buffer. For instance, we might want to

Re: [PATCH] leds: leds-pwm: Convert to use devm_get_pwm

2012-11-09 Thread Bryan Wu
On Wed, Nov 7, 2012 at 3:42 AM, Peter Ujfalusi wrote: > Update the driver to use the new API for requesting pwm so we can take > advantage of the pwm_lookup table to find the correct pwm to be used for the > LED functionality. > If the devm_get_pwm fails we fall back to legacy mode to try to get

Re: [PATCH V4 0/3] Add clock framework for armada 370/XP

2012-11-09 Thread Mike Turquette
Quoting Gregory CLEMENT (2012-10-30 11:23:30) > Hello Mike, > > I hope this 4th version will meet your expectations. Beside the > corrections you have asked I also changed the way I get resources for > the clocks. Instead of referring to a node name, now I refer to a > compatible name which

Re: [PATCH] mtd: gpmi: remove unneccessary header

2012-11-09 Thread Huang Shijie
On Fri, Nov 9, 2012 at 10:10 AM, Artem Bityutskiy wrote: > On Sat, 2012-10-27 at 10:23 +0800, Huang Shijie wrote: >> 于 2012年10月26日 21:41, Artem Bityutskiy 写道: >> > On Sat, 2012-10-13 at 13:03 -0400, Huang Shijie wrote: >> > > The whole gpmi-nand driver has turned to pure devicetree supported. >>

[PATCH 11/12] perf tests: Final cleanup for builtin-test move

2012-11-09 Thread Jiri Olsa
Final function renames to match test__* style and include cleanup. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/perf.h | 1 - tools/perf/tests/attr.c

[PATCH 00/12] perf tests: Move tests from builtin-test

2012-11-09 Thread Jiri Olsa
hi, I discussed with Arnaldo of moving tests from builtin-test into separated objects.. here it is. I swear not to touch test code for a while after this one ;-) Attached patches: 01/12 perf tests: Move test__vmlinux_matches_kallsyms into separate object 02/12 perf tests: Move

Re: [PATCH 1/9 v3] cgroup: add cgroup_subsys->post_create()

2012-11-09 Thread Glauber Costa
On 11/09/2012 06:22 PM, Tejun Heo wrote: > Hey, Daniel. > > On Fri, Nov 09, 2012 at 12:09:38PM +0100, Daniel Wagner wrote: >> On 08.11.2012 20:07, Tejun Heo wrote:> Subject: cgroup: add >> cgroup_subsys->post_create() >>> >>> Currently, there's no way for a controller to find out whether a new

[PATCH 03/32] perf, x86: Basic Haswell PEBS support v3

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add basic PEBS support for Haswell. The constraints are similar to SandyBridge with a few new events. v2: Readd missing pebs_aliases v3: Readd missing hunk. Fix some constraints. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.h |2 ++

[PATCH 06/32] perf, x86: Support PERF_SAMPLE_ADDR on Haswell

2012-11-09 Thread Andi Kleen
From: Andi Kleen Haswell supplies the address for every PEBS memory event, so always fill it in when the user requested it. It will be 0 when not useful (no memory access) Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel_ds.c |4 1 files changed, 4 insertions(+), 0

perf PMU support for Haswell v6

2012-11-09 Thread Andi Kleen
[Updated version for the latest master tree and various fixes, addressing review feedback. See end for details. This should be ready for merging now, just waiting for Peter] This adds perf PMU support for the upcoming Haswell core. The patchkit is fairly large, mainly due to various

[PATCH 01/32] perf, x86: Add PEBSv2 record support

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add support for the v2 PEBS format. It has a superset of the v1 PEBS fields, but has a longer record so we need to adjust the code paths. The main advantage is the new "EventingRip" support which directly gives the instruction, not off-by-one instruction. So with precise == 2

[PATCH 08/32] perf, x86: Disable LBR recording for unknown LBR_FMT

2012-11-09 Thread Andi Kleen
From: Andi Kleen When the LBR format is unknown disable LBR recording. This prevents crashes when the LBR address is misdecoded and mis-sign extended. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel_lbr.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff

[PATCH 25/32] tools, perf: Add a precise event qualifier

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add a precise qualifier, like cpu/event=0x3c,precise=1/ This is needed so that the kernel can request enabling PEBS for TSX events. The parser bails out on any sysfs parse errors, so this is needed in any case to handle any event on the TSX perf kernel. Signed-off-by: Andi

[PATCH 20/32] perf, x86: Add Haswell specific transaction flag reporting

2012-11-09 Thread Andi Kleen
From: Andi Kleen In the PEBS handler report the transaction flags using the new generic transaction flags facility. Most of them come from the "tsx_tuning" field in PEBSv2, but the abort code is derived from the RAX register reported in the PEBS record. Signed-off-by: Andi Kleen ---

[PATCH 14/32] perf, core: Add a concept of a weightened sample

2012-11-09 Thread Andi Kleen
From: Andi Kleen For some events it's useful to weight sample with a hardware provided number. This expresses how expensive the action the sample represent was. This allows the profiler to scale the samples to be more informative to the programmer. There is already the period which is used

[PATCH 18/32] perf, x86: Support for printing PMU state on spurious PMIs v3

2012-11-09 Thread Andi Kleen
From: Andi Kleen I had some problems with spurious PMIs, so print the PMU state on a spurious one. This will not interact well with other NMI users. Disabled by default, has to be explicitely enabled through sysfs. Optional, but useful for debugging. v2: Move to /sys/devices/cpu v3: Print in

[PATCH 02/32] perf, x86: Basic Haswell PMU support v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add basic Haswell PMU support. Similar to SandyBridge, but has a few new events. Further differences are handled in followon patches. There are some new counter flags that need to be prevented from being set on fixed counters. Contains fixes from Stephane Eranian v2: Folded

[PATCH 13/32] perf, x86: Avoid checkpointed counters causing excessive TSX aborts v3

2012-11-09 Thread Andi Kleen
From: Andi Kleen With checkpointed counters there can be a situation where the counter is overflowing, aborts the transaction, is set back to a non overflowing checkpoint, causes interupt. The interrupt doesn't see the overflow because it has been checkpointed. This is then a spurious PMI,

[PATCH 22/32] perf, tools: Point --sort documentation to --help

2012-11-09 Thread Andi Kleen
From: Andi Kleen The --sort documentation for top and report was hopelessly out-of-date Instead of having two more places that would need to be updated, just point to --help. Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-report.txt |2 +-

[PATCH 24/32] perf, tools: Add arbitary aliases and support names with -

2012-11-09 Thread Andi Kleen
From: Andi Kleen - Add missing scanner symbol for arbitrary aliases inside the config region. - looks nicer than _, so allow - in the event names. Used for various of the arch perfmon and Haswell events. Signed-off-by: Andi Kleen --- tools/perf/util/parse-events.l |2 ++ 1 files changed,

[PATCH 09/32] perf, x86: Support LBR filtering by INTX/NOTX/ABORT v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add LBR filtering for branch in transaction, branch not in transaction or transaction abort. This is exposed as new sample types. v2: Rename ABORT to ABORTTX Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event_intel_lbr.c | 31 +--

[PATCH 27/32] perf, x86: Support CPU specific sysfs events

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add a way for the CPU initialization code to register additional events, and merge them into the events attribute directory. Used in the next patch. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.c | 29 +

[PATCH 17/32] perf, tools: Handle XBEGIN like a jump

2012-11-09 Thread Andi Kleen
From: Andi Kleen So that the browser still shows the abort label Signed-off-by: Andi Kleen --- tools/perf/util/annotate.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 7a34dd1..b14d4df 100644 ---

[PATCH 19/32] perf, core: Add generic transaction flags v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add a generic qualifier for transaction events, as a new sample type that returns a flag word. This is particularly useful for qualifying aborts: to distinguish aborts which happen due to asynchronous events (like conflicts caused by another CPU) versus instructions that lead to

[PATCH 30/32] perf, x86: Add a Haswell precise instructions event v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add a instructions-p event alias that uses the PDIR randomized instruction retirement event. This is useful to avoid some systematic sampling shadow problems. Normally PEBS sampling has a systematic shadow. With PDIR enabled the hardware adds some randomization that

[PATCH 16/32] perf, tools: Add support for weight v3

2012-11-09 Thread Andi Kleen
From: Andi Kleen perf record has a new option -W that enables weightened sampling. Add sorting support in top/report for the average weight per sample and the total weight sum. This allows to both compare relative cost per event and the total cost over the measurement period. Add the necessary

[PATCH 21/32] perf, tools: Add support for record transaction flags v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add the glue in the user tools to record transaction flags with --transaction (-T was already taken) and dump them. Followon patches will use them. v2: Fix manpage Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-record.txt |4 +++- tools/perf/builtin-record.c

[PATCH 31/32] perf, tools: Default to cpu// for events v3

2012-11-09 Thread Andi Kleen
From: Andi Kleen When an event fails to parse and it's not in a new style format, try to parse it again as a cpu event. This allows to use sysfs exported events directly without //, so I can use perf record -e tx-aborts ... instead of perf record -e cpu/tx-aborts/ v2: Handle multiple events

[PATCH 26/32] perf, x86: improve sysfs event mapping with event string

2012-11-09 Thread Andi Kleen
From: Stephane Eranian This patch extends Jiri's changes to make generic events mapping visible via sysfs. The patch extends the mechanism to non-generic events by allowing the mappings to be hardcoded in strings. This mechanism will be used by the PEBS-LL patch later on. [AK: Make

[PATCH 28/32] perf, x86: Add Haswell TSX event aliases v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add infrastructure to generate event aliases in /sys/devices/cpu/events/ And use this to set up user friendly aliases for the common TSX events. TSX tuning relies heavily on the PMU, so it's important to be user friendly. This replaces the generic transaction events in an

[PATCH 29/32] perf, tools: Add perf stat --transaction v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the intx and intx_checkpoint qualifiers. Transaction Starts and Elision Starts, to compute the average transaction length.

[PATCH 32/32] perf, tools: List kernel supplied event aliases in perf list v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen List the kernel supplied pmu event aliases in perf list It's better when the users can actually see them. v2: Fix pattern matching Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-list.txt |4 +- tools/perf/builtin-list.c |3 +

[PATCH 23/32] perf, tools: Add browser support for transaction flags v3

2012-11-09 Thread Andi Kleen
From: Andi Kleen Add histogram support for the transaction flags. Each flags instance becomes a separate histogram. Support sorting and displaying the flags in report and top. The patch is fairly large, but it's really mostly just plumbing to pass the flags around. v2: Increase column. Fix

[PATCH 05/32] perf, kvm: Support the intx/intx_cp modifiers in KVM arch perfmon emulation v4

2012-11-09 Thread Andi Kleen
From: Andi Kleen This is not arch perfmon, but older CPUs will just ignore it. This makes it possible to do at least some TSX measurements from a KVM guest Cc: a...@redhat.com Cc: g...@redhat.com v2: Various fixes to address review feedback v3: Ignore the bits when no CPUID. No #GP. Force raw

[PATCH 12/32] perf, x86: Support full width counting

2012-11-09 Thread Andi Kleen
From: Andi Kleen Recent Intel CPUs have a new alternative MSR range for perfctrs that allows writing the full counter width. Enable this range if the hardware reports it using a new capability bit. This lowers overhead of perf stat slightly because it has to do less interrupts to accumulate the

[PATCH 10/32] perf, tools: Add abort_tx,no_tx,in_tx branch filter options to perf record -j v3

2012-11-09 Thread Andi Kleen
From: Andi Kleen Make perf record -j aware of the new in_tx,no_tx,abort_tx branch qualifiers. v2: ABORT -> ABORTTX v3: Add more _ Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-record.txt |3 +++ tools/perf/builtin-record.c |3 +++ 2 files changed, 6

[PATCH 04/32] perf, x86: Support the TSX intx/intx_cp qualifiers v2

2012-11-09 Thread Andi Kleen
From: Andi Kleen Implement the TSX transaction and checkpointed transaction qualifiers for Haswell. This allows e.g. to profile the number of cycles in transactions. The checkpointed qualifier requires forcing the event to counter 2, implement this with a custom constraint for Haswell. Also

[PATCH 11/32] perf, tools: Support sorting by intx, abort branch flags

2012-11-09 Thread Andi Kleen
From: Andi Kleen Extend the perf branch sorting code to support sorting by intx or abort qualifiers. Also print out those qualifiers. Signed-off-by: Andi Kleen --- tools/perf/builtin-report.c |3 +- tools/perf/builtin-top.c|4 ++- tools/perf/perf.h |4 ++-

[PATCH 15/32] perf, x86: Support weight samples for PEBS

2012-11-09 Thread Andi Kleen
From: Andi Kleen When a weighted sample is requested, first try to report the TSX abort cost on Haswell. If that is not available report the memory latency. This allows profiling both by abort cost and by memory latencies. Memory latencies requires enabling a different PEBS mode (LL). When both

[PATCH 07/32] perf, x86: Support Haswell v4 LBR format

2012-11-09 Thread Andi Kleen
From: Andi Kleen Haswell has two additional LBR from flags for TSX: intx and abort, implemented as a new v4 version of the LBR format. Handle those in and adjust the sign extension code to still correctly extend. The flags are exported similarly in the LBR record to the existing misprediction

Re: [PATCH v2] pstore/ram: no timekeeping calls when unavailable

2012-11-09 Thread Kees Cook
On Fri, Nov 9, 2012 at 4:56 PM, John Stultz wrote: > On 11/05/2012 02:00 PM, Kees Cook wrote: >> >> We must not call timekeeping functions unless they are available. If we >> dump >> before they have resumed, avoid a WARN_ON by setting the timestamp to 0. >> >> Since the "ram" pstore driver can

Re: [PATCH RFT RESEND linux-next] sparc: dma-mapping: support debug_dma_mapping_error

2012-11-09 Thread Shuah Khan
On Fri, 2012-11-09 at 19:54 -0500, David Miller wrote: > From: Shuah Khan > Date: Fri, 09 Nov 2012 17:52:23 -0700 > > > On Fri, 2012-11-09 at 19:38 -0500, David Miller wrote: > >> From: Shuah Khan > >> Date: Fri, 26 Oct 2012 10:13:09 -0600 > >> > >> > Add support for debug_dma_mapping_error()

[PATCH 05/12] perf tests: Move test__PERF_RECORD into separate object

2012-11-09 Thread Jiri Olsa
Separating test__PERF_RECORD test from the builtin-test into perf-record object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile | 1 +

[PATCH 4/4] perf, amd: Enable northbridge performance counters on AMD family 15h

2012-11-09 Thread Jacob Shin
On AMD family 15h processors, there are 4 new performance counters (in addition to 6 core performance counters) that can be used for counting northbridge events (i.e. DRAM accesses). Their bit fields are almost identical to the core performance counters. However, the same set of MSRs are shared

[PATCH 2/4] perf, amd: Refactor northbridge event constraints handler for code sharing

2012-11-09 Thread Jacob Shin
Breakout and generalize family 10h northbridge event contraints code so that later we can reuse the same code path with other AMD processor families that have the same northbridge event constraints. Based on previous patch by Robert Richter Signed-off-by: Jacob Shin Signed-off-by: Robert

[PATCH 3/4] perf, x86: Move MSR address offset calculation to architecture specific files

2012-11-09 Thread Jacob Shin
Move counter index to MSR address offset calculation to architecture specific files. This prepares the way for perf_event_amd to enable counter addresses that are not contiguous -- for example AMD Family 15h processors have 6 core performance counters starting at 0xc0010200 and 4 northbridge

[PATCH 0/4] perf, amd: Enable AMD family 15h northbridge counters

2012-11-09 Thread Jacob Shin
The following patchset enables 4 additional performance counters in AMD family 15h processors that counts northbridge events -- such as DRAM accesses. This patchset is based on previous work done by Robert Richter : https://lkml.org/lkml/2012/6/19/324 The main differences are: - The

[PATCH 1/4] perf, amd: Simplify northbridge event constraints handler

2012-11-09 Thread Jacob Shin
From: Robert Richter Code simplification, there is no functional change. Signed-off-by: Robert Richter Signed-off-by: Jacob Shin --- arch/x86/kernel/cpu/perf_event_amd.c | 68 +- 1 file changed, 26 insertions(+), 42 deletions(-) diff --git

Re: [PATCH RESEND v2 1/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-09 Thread Paul E. McKenney
On Fri, Nov 09, 2012 at 07:10:48PM +0100, Oleg Nesterov wrote: > On 11/09, Paul E. McKenney wrote: > > > > On Fri, Nov 09, 2012 at 04:46:56PM +0100, Oleg Nesterov wrote: > > > Contrary, I am going to try to add some complications later, so that > > > it can have more users. In particular, I think

Re: [PATCH RFT RESEND linux-next] sparc: dma-mapping: support debug_dma_mapping_error

2012-11-09 Thread David Miller
From: Shuah Khan Date: Fri, 09 Nov 2012 17:52:23 -0700 > On Fri, 2012-11-09 at 19:38 -0500, David Miller wrote: >> From: Shuah Khan >> Date: Fri, 26 Oct 2012 10:13:09 -0600 >> >> > Add support for debug_dma_mapping_error() call to avoid warning from >> > debug_dma_unmap() interface when it

Re: [PATCH RFT RESEND linux-next] sparc: dma-mapping: support debug_dma_mapping_error

2012-11-09 Thread Shuah Khan
On Fri, 2012-11-09 at 19:38 -0500, David Miller wrote: > From: Shuah Khan > Date: Fri, 26 Oct 2012 10:13:09 -0600 > > > Add support for debug_dma_mapping_error() call to avoid warning from > > debug_dma_unmap() interface when it checks for mapping error checked > > status. Without this patch,

[PATCH 12/12] perf tests: Check for mkstemp return value in dso-data test

2012-11-09 Thread Jiri Olsa
Adding check for mkstemp return error value in dso-data test. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/tests/dso-data.c | 4 1 file changed, 4 insertions(+)

[RFC] dt/platform: Use cell-index for device naming if available

2012-11-09 Thread Stepan Moskovchenko
Use the cell-index property to construct names for platform devices, falling back on the existing scheme of using the device register address if cell-index is not specified. The cell-index property is a more useful device identifier, especially in systems containing several numbered instances of

[PATCH 04/12] perf tests: Move test__basic_mmap into separate object

2012-11-09 Thread Jiri Olsa
Separating test__basic_mmap test from the builtin-test into mmap-basic object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile | 1 +

[PATCH 03/12] perf tests: Move test__open_syscall_event_on_all_cpus into separate object

2012-11-09 Thread Jiri Olsa
Separating test__open_syscall_event_on_all_cpus test from the builtin-test into open-syscall-all-cpus object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile

[PATCH 07/12] perf tests: Move perf_evsel__roundtrip_name_test into separate object

2012-11-09 Thread Jiri Olsa
Separating perf_evsel__roundtrip_name_test test from the builtin-test into evsel-roundtrip-name object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile

[PATCH 02/12] perf tests: Move test__open_syscall_event into separate object

2012-11-09 Thread Jiri Olsa
Separating test__open_syscall_event test from the builtin-test into open-syscall object. Adding util object under tests directory to gather help functions common to more tests. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter

[PATCH 09/12] perf tests: Move test__syscall_open_tp_fields into separate object

2012-11-09 Thread Jiri Olsa
Separating test__syscall_open_tp_fields test from the builtin-test into open-syscall-tp-fields object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile

[PATCH 08/12] perf tests: Move perf_evsel__tp_sched_test into separate object

2012-11-09 Thread Jiri Olsa
Separating perf_evsel__tp_sched_test test from the builtin-test into evsel-tp-sched object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile | 1 +

[PATCH 10/12] perf tests: Move pmu tests into separate object

2012-11-09 Thread Jiri Olsa
Separating pmu's object tests into pmu object under tests directory. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile | 1 +

[PATCH 06/12] perf tests: Move test__rdpmc into separate object

2012-11-09 Thread Jiri Olsa
Separating test__rdpmc test from the builtin-test into rdpmc object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile | 1 +

[PATCH 01/12] perf tests: Move test__vmlinux_matches_kallsyms into separate object

2012-11-09 Thread Jiri Olsa
Separating test__vmlinux_matches_kallsyms test from the builtin-test into vmlinux-kallsyms object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile

Re: [PATCH RFT RESEND linux-next] sparc: dma-mapping: support debug_dma_mapping_error

2012-11-09 Thread David Miller
From: Shuah Khan Date: Fri, 26 Oct 2012 10:13:09 -0600 > Add support for debug_dma_mapping_error() call to avoid warning from > debug_dma_unmap() interface when it checks for mapping error checked > status. Without this patch, device driver failed to check map error > warning is generated. > >

Re: WARNING: at kernel/rcutree.c:1562 rcu_do_batch()

2012-11-09 Thread Paul E. McKenney
On Fri, Nov 09, 2012 at 12:23:30PM +0800, Fengguang Wu wrote: > Paul, > > I got the below warning in stable kernel 3.6.3. linux-next does > not have this issue. Bisect shows that the first bad commit is > > commit b1420f1c8bfc30ecf6380a31d0f686884834b599 > Author: Paul E. McKenney > Date: Thu

Re: [PATCH 1/2] drm: Add NVIDIA Tegra20 support

2012-11-09 Thread Stephen Warren
o patches and the two arch/arm/mach-tegra patches you posted, directly on top of next-20121109, and I see the following build failure: > drivers/gpu/drm/tegra/output.c: In function 'tegra_output_init': > drivers/gpu/drm/tegra/output.c:166:9: error: 'struct tegra_output' has no > member named '

[RFC] Ever wonder what 21+ years of kernel development look like?

2012-11-09 Thread Darrick J. Wong
Hi all, With the upcoming U.S. holiday, are you worried that there won't be much work going on for a few days? Or perhaps you have kids who need a babysitter while mom and dad hack code for a few hours? Maybe you've gotten tired of fast-forwarding^W^W^Wwatching commercials on TV? This is not

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-09 Thread Grant Likely
On Fri, Nov 9, 2012 at 11:23 PM, Stephen Warren wrote: > On 11/09/2012 09:28 AM, Grant Likely wrote: >> On Tue, Nov 6, 2012 at 10:37 PM, Stephen Warren >> wrote: > ... >>> I do rather suspect this use-case is quite common. NVIDIA certainly has >>> a bunch of development boards with pluggable

[PATCHv2] Bluetooth: Add support for BCM20702A0 [0b05, 17b5]

2012-11-09 Thread Jeff Cook
Vendor-specific ID for BCM20702A0. Support for bluetooth over Asus Wi-Fi GO!, included with Asus P8Z77-V Deluxe. T: Bus=07 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=ff(vend.) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=0b05 ProdID=17b5 Rev=01.12 S:

Re: [PATCH] virtio-scsi: Fix incorrect lock release order in virtscsi_kick_cmd

2012-11-09 Thread Paolo Bonzini
Il 09/11/2012 20:31, Nicholas A. Bellinger ha scritto: >> That's done on purpose. After you do virtqueue_add_buf, you don't need >> the sg list anymore, nor the lock that protects it. The cover letter is >> at https://lkml.org/lkml/2012/6/13/295 and had this text: >> >> This series reorganizes

Re: scsi target, likely GPL violation

2012-11-09 Thread Andy Grover
On 11/08/2012 06:08 PM, Nicholas A. Bellinger wrote: > Support for certified VAAI is part of our commercial target core. The > target core constitutes a stand-alone kernel subsystem of which we are > the sole copyright owners. In addition, our target contains a number of > backend drivers, of

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-09 Thread Grant Likely
On Fri, Nov 9, 2012 at 11:06 PM, Stephen Warren wrote: > On 11/05/2012 01:40 PM, Grant Likely wrote: >> As promised, here is my early draft to try and capture what device >> tree overlays need to do and how to get there. Comments and >> suggestions greatly appreciated. > > Here's one other

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-09 Thread Grant Likely
On Fri, Nov 9, 2012 at 10:57 PM, Stephen Warren wrote: > On 11/08/2012 07:26 PM, David Gibson wrote: > ... >> I also think graft will handle most of your use cases, although as I >> said I don't fully understand the implications of some of them, so I >> could be wrong. So, the actual insertion

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-09 Thread Stephen Warren
On 11/09/2012 09:28 AM, Grant Likely wrote: > On Tue, Nov 6, 2012 at 10:37 PM, Stephen Warren wrote: ... >> I do rather suspect this use-case is quite common. NVIDIA certainly has >> a bunch of development boards with pluggable >> PMIC/audio/WiFi/display/..., and I believe there's some ability to

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-09 Thread Stephen Warren
On 11/08/2012 07:26 PM, David Gibson wrote: ... > So, let me take a stab at this from a more bottom-up approach, and see > if we meet in the middle somewhere. As I discussed in the other > thread with Daniel Mack, I can see two different operationso on the > fdt that might be useful in this

Re: [PATCH 02/11] time: convert arch_gettimeoffset to a pointer

2012-11-09 Thread John Stultz
On 11/08/2012 01:01 PM, Stephen Warren wrote: From: Stephen Warren Currently, whenever CONFIG_ARCH_USES_GETTIMEOFFSET is enabled, each arch core provides a single implementation of arch_gettimeoffset(). In many cases, different sub-architectures, different machines, or different timer

[PATCH] target: Update copyright ownership to 2012

2012-11-09 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hello everyone, This patch to update copyright year to current for principal target core ownership is now being pushed into target-pending/for-next. Signed-off-by: Nicholas Bellinger --- drivers/target/target_core_alua.c|5 +++--

  1   2   3   4   5   6   7   8   9   10   >