Re: [PATCH] rtl8187: fix use after free on failure path in rtl8187_init_urbs()

2013-09-01 Thread Hin-Tak Leung
-- On Sat, Aug 31, 2013 22:18 BST Alexey Khoroshilov wrote: >In case of __dev_alloc_skb() failure rtl8187_init_urbs() >calls usb_free_urb(entry) where 'entry' can points to urb >allocated at the previous iteration. That means refcnt will be >decremented incorrectly and

Re: [PATCH] rwsem: add rwsem_is_contended

2013-09-01 Thread Michel Lespinasse
Hi Josef, On Fri, Aug 30, 2013 at 7:14 AM, Josef Bacik wrote: > Btrfs uses an rwsem to control access to its extent tree. Threads will hold a > read lock on this rwsem while they scan the extent tree, and if need_resched() > they will drop the lock and schedule. The transaction commit needs to

Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount

2013-09-01 Thread George Spelvin
> If "bool" had real advantages (like having a dense array > representation, for example), that would be one thing. It doesn't. > Sure, now you can take an address of a bool (which you couldn't > generally do efficiently if it really was a bit array), but it also > means that in practice, "bool" is

Re: [PATCH 08/10] kexec: Disable at runtime if the kernel enforces module loading restrictions

2013-09-01 Thread Geert Uytterhoeven
On Mon, Aug 19, 2013 at 6:10 PM, Matthew Garrett wrote: > kexec permits the loading and execution of arbitrary code in ring 0, which > is something that module signing enforcement is meant to prevent. It makes > sense to disable kexec in this situation. Any plans for signed kexec code? Gr{oetje,

Re: [PATCH] KVM: mmu: allow page tables to be in read-only slots

2013-09-01 Thread Gleb Natapov
On Fri, Aug 30, 2013 at 02:41:37PM +0200, Paolo Bonzini wrote: > Page tables in a read-only memory slot will currently cause a triple > fault because the page walker uses gfn_to_hva and it fails on such a slot. > > OVMF uses such a page table; however, real hardware seems to be fine with > that as

Re: [PATCH 2/2] ARM: Dove: Add the audio device to the Cubox DT

2013-09-01 Thread Sebastian Hesselbarth
Jean-Francois, Sorry for the messy reply, posting from mobile. Can you please try <&si5351 1>, iirc audio ist connected to it. I will also look it up later. Sebastian On August 31, 2013 12:51:28 PM Jean-Francois Moine wrote: On Wed, 28 Aug 2013 12:14:24 +0200 Sebastian Hesselbarth wrote:

Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount

2013-09-01 Thread Sedat Dilek
On Fri, Aug 30, 2013 at 6:52 PM, Linus Torvalds wrote: > On Fri, Aug 30, 2013 at 9:37 AM, Sedat Dilek wrote: >> >> Where is this a.out file from or how to generate it? > > Oh, that's just the silly threaded test-binary. I don't know what you > called it. > > As to your config options, yesh, you h

[PATCH] btrfs: use list_for_each_entry_safe() when delete items

2013-09-01 Thread Azat Khuzhin
Replace list_for_each_entry() by list_for_each_entry_safe() in __btrfs_close_devices() list_for_each_entry() { list_replace_rcu(); call_rcu(); <--We may free the device, if we get next device by the current one, the page fault

Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount

2013-09-01 Thread Sedat Dilek
On Sun, Sep 1, 2013 at 12:01 PM, Sedat Dilek wrote: > On Fri, Aug 30, 2013 at 6:52 PM, Linus Torvalds > wrote: >> On Fri, Aug 30, 2013 at 9:37 AM, Sedat Dilek wrote: >>> >>> Where is this a.out file from or how to generate it? >> >> Oh, that's just the silly threaded test-binary. I don't know wh

[PATCHv2 00/25] perf tool: Add support for multiple data file storage

2013-09-01 Thread Jiri Olsa
hi, sending the support for multiple file storage. Initial RFC is here: http://marc.info/?l=linux-kernel&m=137408381902423&w=2 v2 changes: - reworked perf mmap size setup to be able to get the mmap size value easily later - added perf.data read/write test for v2 and v3 for both endiani

[PATCH 10/25] perf tools: Introduce swap_features function

2013-09-01 Thread Jiri Olsa
Introducing swap_features function to make the swapping code more clear and extensible. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern --

[PATCH 02/25] perf tools: Add possibility to specify mmap size

2013-09-01 Thread Jiri Olsa
Adding possibility to specify mmap size via -m/--mmap-pages by appending unit size character (B/K/M/G) to the number, like: $ perf record -m 8K ls $ perf record -m 2M ls The size is rounded up appropriately to follow perf mmap restrictions. If no unit is specified the number provides pages as

[PATCH 15/25] perf tools: Add perf data version 3 header swap

2013-09-01 Thread Jiri Olsa
Adding perf data version 3 header swap same way as it's done for v2. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern --- tools/perf/util/

[PATCH 22/25] perf tests: Add session reading test for little endian perf data v3

2013-09-01 Thread Jiri Olsa
Adding session reading test for little endian perf data version 3 included as binary data in the test object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Klee

[PATCH 18/25] perf tools: Get rid of post_processing_offset in record command

2013-09-01 Thread Jiri Olsa
No need to use post_processing_offset variable now when we know where the data starts. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern ---

[PATCH 19/25] perf tools: Move synthesizing into single function

2013-09-01 Thread Jiri Olsa
Moving synthesizing into single function, so it could be reused. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern --- tools/perf/builtin-a

[PATCH 17/25] perf tools: Add perf.data version 3 header write

2013-09-01 Thread Jiri Olsa
Adding perf data version 3 header write code and switch perf tool storing to version 3. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern --

[PATCH 25/25] perf tools: Have the process properly sythesized in subsequent data files

2013-09-01 Thread Jiri Olsa
Change the target so the sythesizing routine would think it needs to synthesized whole process, because there's no exec COMM event for subsequent data files. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijls

[PATCH 11/25] perf tools: Introduce swap_header function

2013-09-01 Thread Jiri Olsa
Introducing swap_header function to make the swapping code more clear and extensible. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern ---

[PATCH 24/25] perf tools: Add multi file '-M' option for record command

2013-09-01 Thread Jiri Olsa
split event data into multiple files based on the file size or time delta specified as an argument to the option. Adding multi file '-M' option for record command to store output perf.data into multiple files based on the size threshold. The threshold is specified either as size (B/K/M/G) or time

[PATCH 23/25] perf tests: Add session reading test for big endian perf data v3

2013-09-01 Thread Jiri Olsa
Adding session reading test for big endian perf data version 3 included as binary data in the test object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen

[PATCH 20/25] perf tools: Add perf_data_file__open interface to data object

2013-09-01 Thread Jiri Olsa
Adding perf_data_file__open interface to data object to open the perf.data file for both read and write. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc

[PATCH 21/25] perf tools: Separating data file properties from session

2013-09-01 Thread Jiri Olsa
Removing 'fd, fd_pipe, filename, size' from struct perf_session and replacing it with struct perf_data_file. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen

[PATCH 16/25] perf tools: Add perf data version 3 header read

2013-09-01 Thread Jiri Olsa
Adding perf data version 3 header read code to load data for v3 format. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern --- tools/perf/ut

[PATCH 14/25] perf tools: Introduce perf.data version 3 format

2013-09-01 Thread Jiri Olsa
Introducing perf.data version 3 format. No functional change, just introducing doc, magic bytes and the struct. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kl

[PATCH 12/25] perf tools: Separate version 2 specific perf data header bits

2013-09-01 Thread Jiri Olsa
Separating version 2 specific perf data header bits, so the code could be extented with new format version. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen

[PATCH 13/25] perf tools: Using evlist as a holder for event_desc feature

2013-09-01 Thread Jiri Olsa
Using evlist as a holder for events stored via event_desc feature. The event_desc events data is same as the one stored via main header. We will use event_desc data to replace the main header data source in next patches. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ing

Re: [RFC PATCH 00/18 v3] Signature verification of hibernate snapshot

2013-09-01 Thread Florian Weimer
* joeyli: > Yes, Matthew raised this concern at before. I modified patch to load > private key in efi stub kernel, before ExitBootServices(), that means we > don't need generate key-pair at every system boot. So, the above > procedure of efi bootloader will only run one time. But if you don't ge

[PATCH 09/25] perf tools: Introduce perf data file version CHECK macro

2013-09-01 Thread Jiri Olsa
Introducing perf data file version CHECK macro, so the check is easily extensible for new versions. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: Dav

[PATCH 03/25] perf tools: Introduce perf_evlist__new_default function

2013-09-01 Thread Jiri Olsa
Adding new common function to create evlist with default event. It spares some code lines in automated tests. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Klee

[PATCH 06/25] perf tests: Add session reading test for little endian perf data

2013-09-01 Thread Jiri Olsa
Adding session reading test for little endian perf data included as binary data in the test object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: Dav

[PATCH 07/25] perf tests: Add session reading test for big endian perf data

2013-09-01 Thread Jiri Olsa
Adding session reading test for big endian perf data included as binary data in the test object. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David

[PATCH 08/25] perf doc: Add perf data file documentation

2013-09-01 Thread Jiri Olsa
Adding perf data file documentation. TODO Finish the FEATURES section Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern --- tools/perf/Doc

[PATCH 05/25] perf tests: Add simple session read/write test

2013-09-01 Thread Jiri Olsa
Adding simple session read/write test to keep up with file format changes. Dumping the session to the file with several events and reading it again back. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra

[PATCH 01/25] perf tools: Check mmap pages value early

2013-09-01 Thread Jiri Olsa
Moving the check of the mmap_pages value into the options parsing time, so we could relay on this value on other parts of code. Related changes come in next patches. Also changins perf_evlist::mmap_len to proper size_t type. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc

[RFC 00/24] perf tools: Add traceevent plugins support

2013-09-01 Thread Jiri Olsa
hi, backporting traceevent plugin support from trace-cmd. Having plugins allow traceevent to properly parse 'print fmt' line of tracepoint format and display proper/additional data in perf script command, like: - displaying call_site details in kmem:* tracepoints: $ sudo perf record -e kmem:kma

[PATCH 08/24] tools list traceevent: Add pevent_print_func_field function

2013-09-01 Thread Jiri Olsa
Adding pevent_print_func_field function to print a field and a format for function pointers. It's used in following patches. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo

[PATCH 01/24] perf tools: Fix 'make install prefix=...' build rule

2013-09-01 Thread Jiri Olsa
Currently we fail for following make command: $ sudo make install prefix=/opt/perf ... GEN python/perf.so install -d -m 755 '/opt/perf/bin' install perf '/opt/perf/bin' install perf-archive -t '/opt/perf/libexec/perf-core' install: accessing `/opt/perf/libexec/perf-core': No such

[PATCH 16/24] tools list traceevent: Add function plugin

2013-09-01 Thread Jiri Olsa
Backporting function plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 2 +- too

[PATCH 02/24] perf tools: Remove unused trace-event-* code

2013-09-01 Thread Jiri Olsa
Removing unused trace-event-* code. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: David Ahern --- tools/perf/util/trace-event-parse.c | 36

[PATCH 17/24] tools list traceevent: Update kvm plugin with is_writable_pte helper

2013-09-01 Thread Jiri Olsa
Adding is_writable_pte print helper function, so the kvmmmu:fast_page_fault print format gets resolved properly. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven

[PATCH 15/24] tools list traceevent: Add sched_switch plugin

2013-09-01 Thread Jiri Olsa
Backporting sched_switch plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 2

[PATCH 14/24] tools list traceevent: Add mac80211 plugin

2013-09-01 Thread Jiri Olsa
Backporting mac80211 plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 3 +- too

[PATCH 18/24] tools list traceevent: Add xen plugin

2013-09-01 Thread Jiri Olsa
Adding xen plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 2 +- tools/lib/traceeve

[PATCH 24/24] perf tools: Overload pr_stat traceevent print function

2013-09-01 Thread Jiri Olsa
The traceevent lib uses pr_stat to display all standard info. It's defined as __weak. Overloading it with perf version plugged into perf output system logic. Displaying the pr_stat stuff under '-v' option. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc:

[PATCH 13/24] tools list traceevent: Add kvm plugin

2013-09-01 Thread Jiri Olsa
Backporting kvm plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 2 +- tools/lib/tra

[PATCH 23/24] perf tools: Add traceevent object to interface traceevent lib

2013-09-01 Thread Jiri Olsa
Adding traceevent object to interface traceevent lib. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/perf/builtin-trace.c

[PATCH 19/24] tools list traceevent: Add scsi plugin

2013-09-01 Thread Jiri Olsa
Adding scsi plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 2 +- tools/lib/tracee

[PATCH 22/24] perf tools: Add trace-event object

2013-09-01 Thread Jiri Olsa
Add trace-event object to keep together 'struct pevent' object with its loaded plugins with following interface: int trace_event__init(struct trace_event *t); - initalizes 'struct pevent' object and loads plugins for it void trace_event__cleanup(struct trace_event *t); - cleanups both 'struct

[PATCH 07/24] tools list traceevent: Add traceevent_host_bigendian function

2013-09-01 Thread Jiri Olsa
Adding traceevent_host_bigendian function to get host endianity. It's used in following patches. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: Da

[PATCH 20/24] tools list traceevent: Change pevent_parse_event to return event format

2013-09-01 Thread Jiri Olsa
Changing pevent_parse_event to return 'struct event_format', for the parsed event if the return pointer is specified. This way we can remove pevent_parse_format which does the same stuff just without 'struct pevent' object. We will need this change in following patches. Signed-off-by: Jiri Olsa

[PATCH 21/24] perf tools: Add traceevents Makefile install rule

2013-09-01 Thread Jiri Olsa
Instructing perf to install plugins into: $HOME/.traceevent/plugins - if installed localy under $HOME $(perfexecdir)/traceevent/plugins - if installed globally Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras

[PATCH 10/24] tools list traceevent: Add blk plugin

2013-09-01 Thread Jiri Olsa
Backporting blk plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 17 +- tools/lib/tra

[PATCH 06/24] tools list traceevent: Add plugin build support

2013-09-01 Thread Jiri Olsa
Backporting missing pieces of plugin building infrastructure. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceeven

[PATCH 11/24] tools list traceevent: Add hrtimer plugin

2013-09-01 Thread Jiri Olsa
Backporting hrtimer plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 2 +- tools/

[PATCH 05/24] tools list traceevent: Add options support

2013-09-01 Thread Jiri Olsa
Backporting options support for traceevent lib. It's now possible to use following interface to load options for 'struct pevent' object: void traceevent_add_options(const char *name, struct plugin_option *options); - adds a set of options by a plugin void traceevent_remove_options(struct plugi

[PATCH 12/24] tools list traceevent: Add kmem plugin

2013-09-01 Thread Jiri Olsa
Backporting kmem plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 2 +- tools/lib/tr

[PATCH 09/24] tools list traceevent: Add jbd2 plugin

2013-09-01 Thread Jiri Olsa
Backporting jbd2 plugin. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: David Ahern --- tools/lib/traceevent/Makefile | 2 ++ tools/lib/tr

[PATCH 03/24] perf tools: Unify page_size usage

2013-09-01 Thread Jiri Olsa
Making page_size global from the util object. Removing the not needed one. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: David Ahern --- tools/perf/builtin-record.

[PATCH 04/24] tools list traceevent: Add plugin support

2013-09-01 Thread Jiri Olsa
Backporting plugin support for traceevent lib. It's now possible to use following interface to load plugins for 'struct pevent' object: struct plugin_list* traceevent_load_plugins(struct pevent *pevent) - loads plusing for 'struct pevent' object and returns loaded plugins list void traceev

[PATCH V7 0/2] iio: input: ti_am335x_tscadc: Add continuous sampling support to adc

2013-09-01 Thread Zubair Lutfullah
Round 7 updates - Fixes to error handling path for trigger register - Optimization of step enable calculations based on input from Sebastian - trigger unregister added to remove section. was missing - missing entry in Kconfig for triggered buffer support. added - TSC/ADC IRQ handling was based

[PATCH 1/2] input: ti_am335x_tsc: Enable shared IRQ for TSC

2013-09-01 Thread Zubair Lutfullah
Enable shared IRQ to allow ADC to share IRQ line from parent MFD core. Only FIFO0 IRQs are for TSC and handled on the TSC side. Step mask would be updated from cached variable only previously. In rare cases when both TSC and ADC are used, the cached variable gets mixed up. The step mask is written

[PATCH 2/2] iio: ti_am335x_adc: Add continuous sampling support

2013-09-01 Thread Zubair Lutfullah
Previously the driver had only one-shot reading functionality. This patch adds triggered buffer support to the driver. Continuous sampling starts when buffer is enabled. And samples are pushed to userpace by the trigger which triggers automatically at every hardware interrupt of FIFO1 filling with

[PATCH 04/25] perf tools: Adding throttle event data struct support

2013-09-01 Thread Jiri Olsa
Moving 'struct throttle_event' out of python code and making it global as any other event. There's no usage of throttling events in any perf commands so far (besides python support), but we'll need this event data backup for upcomming test. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: Frederi

Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount

2013-09-01 Thread Theodore Ts'o
Speaking of bool (and I'm not a fan of it either), is this warning just noise (which is bad enough since it masks real warnings), or is this going to cause serious problems? CHECK /usr/projects/linux/ext4/kernel/trace/trace.c /usr/projects/linux/ext4/kernel/trace/trace.c:559:6: warning: symbol

loan offer

2013-09-01 Thread Sec Loan Firm Pvt.Ltd
Good Day, Do you need a personal or business loan without stress and quick approval? If yes, contact us today as we are currently offering loans at superb interest rate. Our loan is secured and safe, our customers happiness is our strength.For more information and Application,we offer loan from th

[PATCH 2/2] iio: ti_am335x_adc: Add continuous sampling support

2013-09-01 Thread Zubair Lutfullah
Previously the driver had only one-shot reading functionality. This patch adds triggered buffer support to the driver. Continuous sampling starts when buffer is enabled. And samples are pushed to userpace by the trigger which triggers automatically at every hardware interrupt of FIFO1 filling with

[PATCH 1/2] input: ti_am335x_tsc: Enable shared IRQ for TSC

2013-09-01 Thread Zubair Lutfullah
Enable shared IRQ to allow ADC to share IRQ line from parent MFD core. Only FIFO0 IRQs are for TSC and handled on the TSC side. Step mask would be updated from cached variable only previously. In rare cases when both TSC and ADC are used, the cached variable gets mixed up. The step mask is written

[PATCH V8 0/2] iio: input: ti_am335x_tscadc: Add continuous sampling support to adc

2013-09-01 Thread Zubair Lutfullah
Round 8 updates Rebased to togreg branch of IIO.. Round 7 updates - Fixes to error handling path for trigger register - Optimization of step enable calculations based on input from Sebastian - trigger unregister added to remove section. was missing - missing entry in Kconfig for triggered buffe

Re: [PATCH V2 2/3] perf tools: add support for PERF_COUNT_SW_DUMMY

2013-09-01 Thread Jiri Olsa
On Sat, Aug 31, 2013 at 09:50:52PM +0300, Adrian Hunter wrote: > Add support for the new dummy software event > PERF_COUNT_SW_DUMMY. > > Signed-off-by: Adrian Hunter Tested/Acked-by: Jiri Olsa jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

Re: [PATCH v9 04/13] KVM: PPC: reserve a capability and KVM device type for realmode VFIO

2013-09-01 Thread Gleb Natapov
On Wed, Aug 28, 2013 at 06:37:41PM +1000, Alexey Kardashevskiy wrote: > This reserves a capability number for upcoming support > of VFIO-IOMMU DMA operations in real mode. > > This reserves a number for a new "SPAPR TCE IOMMU" KVM device > which is going to manage lifetime of SPAPR TCE IOMMU objec

Re: [PATCH V2 3/3] perf tools: add 'keep tracking' test

2013-09-01 Thread Jiri Olsa
On Sat, Aug 31, 2013 at 09:50:53PM +0300, Adrian Hunter wrote: > Add a test for the newly added PERF_COUNT_SW_DUMMY event. > The test checks that tracking events continue when an > event is disabled but a dummy software event is not > disabled. > > Signed-off-by: Adrian Hunter Tested/Acked-by: J

[GIT PULL] x86 fixes for v3.11-rc8

2013-09-01 Thread H. Peter Anvin
Hi Linus, A single very small boot fix for very large memory systems (> 0.5T). The following changes since commit fd3930f70c8d14008f3377d51ce039806dfc542e: proc: more readdir conversion bug-fixes (2013-08-19 16:26:12 -0700) are available in the git repository at: git://git.kernel.org/pub/s

[PATCHv6 1/2] ARM: sunxi: Initial support for Allwinner's Security ID fuses

2013-09-01 Thread oliver+list
From: Oliver Schinagl Allwinner has electric fuses (efuse) on their line of chips. This driver reads those fuses, seeds the kernel entropy and exports them as a sysfs node. These fuses are most likely to be programmed at the factory, encoding things like Chip ID, some sort of serial number etc a

[PATCHv6 2/2] ARM: sunxi: dt: Add sunxi-sid to dts for sun4i, sun5i and sun7i

2013-09-01 Thread oliver+list
From: Oliver Schinagl This patch shall add support for the sunxi-sid driver to the device tree for A10, A10s, A13 and A20. Signed-off-by: Oliver Schinagl --- arch/arm/boot/dts/sun4i-a10.dtsi | 5 + arch/arm/boot/dts/sun5i-a10s.dtsi | 5 + arch/arm/boot/dts/sun5i-a13.dtsi | 5 + a

[PATCHv6 0/2] ARM: sunxi: Driver for Allwinner sunxi Security ID

2013-09-01 Thread oliver+list
From: Oliver Schinagl Hopefully it is polished enough for inclusion now :) Oliver Changes from v5: * Added dts for A10s * Move ABI documentation to testing * Improve documentation overal * Expand comments about future changes for when Greg fixes sysfs bin attrs * Rename sun7i-sid to s

Re: [PATCH v9 04/13] KVM: PPC: reserve a capability and KVM device type for realmode VFIO

2013-09-01 Thread Alexey Kardashevskiy
On 09/01/2013 09:27 PM, Gleb Natapov wrote: > On Wed, Aug 28, 2013 at 06:37:41PM +1000, Alexey Kardashevskiy wrote: >> This reserves a capability number for upcoming support >> of VFIO-IOMMU DMA operations in real mode. >> >> This reserves a number for a new "SPAPR TCE IOMMU" KVM device >> which is

[PATCH] USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support

2013-09-01 Thread liujunliang_ljl
From: Liu Junliang Signed-off-by: Liu Junliang --- drivers/net/usb/Kconfig |8 + drivers/net/usb/Makefile |1 + drivers/net/usb/sr9700.c | 560 ++ drivers/net/usb/sr9700.h | 173 ++ 4 files changed, 742 insertions(+) create mo

[tip:x86/mm] x86: avoid remapping data in parse_setup_data()

2013-09-01 Thread tip-bot for Linn Crosetto
Commit-ID: 30e46b574a1db7d14404e52dca8e1aa5f5155fd2 Gitweb: http://git.kernel.org/tip/30e46b574a1db7d14404e52dca8e1aa5f5155fd2 Author: Linn Crosetto AuthorDate: Tue, 13 Aug 2013 15:46:41 -0600 Committer: H. Peter Anvin CommitDate: Tue, 13 Aug 2013 23:29:19 -0700 x86: avoid remapping da

Re: [PATCH v9 04/13] KVM: PPC: reserve a capability and KVM device type for realmode VFIO

2013-09-01 Thread Gleb Natapov
On Sun, Sep 01, 2013 at 09:39:23PM +1000, Alexey Kardashevskiy wrote: > On 09/01/2013 09:27 PM, Gleb Natapov wrote: > > On Wed, Aug 28, 2013 at 06:37:41PM +1000, Alexey Kardashevskiy wrote: > >> This reserves a capability number for upcoming support > >> of VFIO-IOMMU DMA operations in real mode. >

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-01 Thread Gleb Natapov
On Wed, Aug 28, 2013 at 06:50:41PM +1000, Alexey Kardashevskiy wrote: > This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT > and H_STUFF_TCE requests targeted an IOMMU TCE table without passing > them to user space which saves time on switching to user space and back. > > Both rea

On the correctness of dbe3ed1c078c193be34326728d494c5c4bc115e2

2013-09-01 Thread H. Peter Anvin
A truly ancient commit (v2.6.23), dbe3ed1c078c193be34326728d494c5c4bc115e2: x86-64: page faults from user mode are always user faults Randy Dunlap noticed an interesting "crashme" behaviour on his dual Prescott Xeon setup, where he gets page faults with the error code having a zer

Re: linux-next: Tree for Aug 30 (brcmfmac)

2013-09-01 Thread Arend van Spriel
On 08/31/13 20:40, Hauke Mehrtens wrote: On 08/31/2013 08:21 PM, Arend van Spriel wrote: On 08/31/13 19:37, Geert Uytterhoeven wrote: On Fri, Aug 30, 2013 at 11:12 PM, Randy Dunlap wrote: This bool kconfig symbol: config BRCMFMAC_SDIO bool "SDIO bus interface support for FullMAC dri

Re: [PATCH] omap2: panel-generic: Added panel parameters for ortus-com37h3m05dtc/99dtc and sharp-lq070y3dg3b.

2013-09-01 Thread Belisko Marek
Hi Tomi, On Fri, Aug 30, 2013 at 9:57 AM, Tomi Valkeinen wrote: > On 29/08/13 15:35, Marek Belisko wrote: >> Signed-off-by: H. Nikolaus Schaller >> Signed-off-by: Marek Belisko >> --- >> drivers/video/omap2/displays/panel-generic-dpi.c | 53 >> >> 1 file changed, 53 i

Re: [PATCH] regulator: da9063: Statize da9063_ldo_lim_event

2013-09-01 Thread Mark Brown
On Sun, Sep 01, 2013 at 12:19:51PM +0800, Axel Lin wrote: > da9063_ldo_lim_event() is only referenced in this driver, make it static. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH] Input: add driver for Neonode zForce based touchscreens

2013-09-01 Thread Henrik Rydberg
Hi Heiko, > This adds a driver for touchscreens using the zforce infrared > technology from Neonode connected via i2c to the host system. > > It supports multitouch with up to two fingers and tracking of the > contacts in hardware. > > Signed-off-by: Heiko Stuebner Thanks for the driver. Pleas

Re: [PATCH 1/2] HID: apple: Add another device ID for the mid-2013 Macbook Air

2013-09-01 Thread Henrik Rydberg
On Mon, Aug 26, 2013 at 02:51:32PM +0200, Linus G Thiel wrote: > I'm on an ISO layout, this is what makes sense to me and it also works fine > on my laptop (6,2 with Swedish layout). > > > On Mon, Aug 26, 2013 at 3:50 AM, Ian Munsie wrote: > > > > Brad, Linus, does the above patch work for you

Re: mutex warning in cpufreq + RFC patch

2013-09-01 Thread Rafael J. Wysocki
On Sunday, September 01, 2013 11:54:10 AM Viresh Kumar wrote: > On 31 August 2013 06:06, Stephen Boyd wrote: > > Yes that patch may reduce the chance of the race condition but I > > don't believe it removes it entirely. I believe this bug still > > exists in linux-next. Consider the scenario where

Re: [PATCH 1/2] cpufreq: don't allow governor limits to be changed when it is disabled

2013-09-01 Thread Rafael J. Wysocki
On Sunday, September 01, 2013 10:56:01 AM Viresh Kumar wrote: > __cpufreq_governor() returns with -EBUSY when governor is already stopped and > we > try to stop it again, but when it is stopped we must not allow calls to > CPUFREQ_GOV_LIMITS event as well. > > This patch adds this check in __cpuf

Re: [PATCH 2/2] cpufreq: serialize calls to __cpufreq_governor()

2013-09-01 Thread Rafael J. Wysocki
On Sunday, September 01, 2013 10:56:02 AM Viresh Kumar wrote: > We can't take a big lock around __cpufreq_governor() as this causes recursive > locking for some cases. But calls to this routine must be serialized for every > policy. Care to explain here why it must be serialized? > Lets introduce

Re: [PATCH 1/2] cpufreq: don't allow governor limits to be changed when it is disabled

2013-09-01 Thread Rafael J. Wysocki
On Sunday, September 01, 2013 11:56:09 AM Viresh Kumar wrote: > On 1 September 2013 10:56, Viresh Kumar wrote: > > Its better if we can get these in for 3.11, otherwise we need to get them > > in the > > stable tree.. > > They can't get into 3.11 due to two reasons.. > - I haven't tested them ov

[PATCH] HID: Correct the USB IDs for the new Macbook Air 6

2013-09-01 Thread Henrik Rydberg
A recent patch (9d9a04ee) added support for the new machine, but got the sequence of USB ids wrong. Reports from both Ian and Linus T show that the 0x0291 id is for ISO, not ANSI, which should have the missing number 0x0290. This patchs moves the three numbers accordingly, fixing the problem. Cc:

Emulating ECC RAM in kernel or mirroring RAM to exclude HW issues

2013-09-01 Thread Martin MOKREJŠ
Hi, I am trying to find out why some applications crash on my laptop. I mostly use python and have configured it via configure --with-pydebug so that is wraps memory allocated regions with 0xfb. That helps to realize something overwrote that memory region. So far, it twice reported 0xfb to 0xfa t

Re: [PATCH 0/5] Remove ASoC-level I/O functions from cq93vc

2013-09-01 Thread Samuel Ortiz
Hi Mark, On Sat, Aug 31, 2013 at 02:07:41PM +0100, Mark Brown wrote: > This patch series removes the use of the ASoC-level read and write > functions from the cq93vc driver as part of a wider push to remove them > completely and just use regmap for all register I/O. Since the driver > is essentia

Re: [PATCH 1/2] procfs: restore 0400 permissions on /proc/*/{syscall,stack,personality}

2013-09-01 Thread Kees Cook
On Sat, Aug 31, 2013 at 6:44 PM, Eric W. Biederman wrote: > Djalal Harouni writes: > >> (Sorry for my late response) >> >> On Thu, Aug 29, 2013 at 03:14:32PM -0700, Kees Cook wrote: >>> On Thu, Aug 29, 2013 at 2:11 AM, Djalal Harouni wrote: >>> > Hi Eric, >>> > >>> > On Wed, Aug 28, 2013 at 05:2

Re: [PATCH 0/5] Remove ASoC-level I/O functions from cq93vc

2013-09-01 Thread Mark Brown
On Sun, Sep 01, 2013 at 04:48:47PM +0200, Samuel Ortiz wrote: > As I'd prefer to carry the MFD ones (Including the twl6040 one) through > mfd-next, I can build a branch for you to pull from. Would that be fine > with you ? That's fine by me, I just want the patches in ASoC - obviously the branch

[PATCH 1/3] perf core: Fix a mmap and munmap mismatched bug

2013-09-01 Thread Chenggang Qin
From: root In function filename__read_debuglink(), while the ELF file is opend and mmapped in elf_begin(), but if this file is considered to not be usable during the following code, we will goto the close(fd) directly. The elf_end() is skipped. So, the mmaped ELF file cannot be munmapped. The mem

[PATCH 2/3] perf core: Fix a mmap & munmap mismatches bug in dso__load

2013-09-01 Thread Chenggang Qin
From: Chenggang Qin Some dsos' symsrc is neither syms_ss or runtime_ss. In this situation, the corresponding ELF file is opened and mmapped in symsrc__init(), but they will be not closed and munmapped in any place. This bug can lead to mmap & munmap mismatched, the mmap areas will exist during th

[PATCH 3/3] perf core: Fix a memory leak bug because symbol__delete is ignored

2013-09-01 Thread Chenggang Qin
From: Chenggang Qin In function symbols__fixup_duplicate(), while the duplicated symbols are found, only the rb_node are deleted. The symbol structures themself are ignored. Then, these memory areas are lost. This patch fixed the bug. Thanks. Cc: David Ahern Cc: Peter Zijlstra Cc: Paul Macker

Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount

2013-09-01 Thread Linus Torvalds
On Sun, Sep 1, 2013 at 3:01 AM, Sedat Dilek wrote: > > Looks like this is now 10x faster: ~2.66Mloops (debug) VS. > ~26.60Mloops (no-debug). Ok, that's getting to be in the right ballpark. But your profile is still odd. > Samples: 159K of event 'cycles:pp', Event count (approx.): 76968896763 >

  1   2   3   >