Re: [PATCH 06/10] UAPI: The tile arch uses the generic ucontext.h file

2012-10-17 Thread Chris Metcalf
On 10/17/2012 10:16 AM, David Howells wrote: Move the header-y and generic-y lines for ucontext.h from arch/tile/include/asm/Kbuild to the uapi/ Kbuild as the asm-generic variant is used. Signed-off-by: David Howells dhowe...@redhat.com cc: Chris Metcalf cmetc...@tilera.com Acked-by: Chris

[RESEND PATCH 3/4] mmc: mmci: use io{read,write}*_rep accessors instead of string functions

2012-10-17 Thread Will Deacon
The {read,write}s{b,w,l} operations are not defined by all architectures and are being removed from the asm-generic/io.h interface. This patch replaces the usage of these string functions with io{read,write}{8,16,32}_rep calls instead, which are defined for all architectures. Cc: Arnd Bergmann

[RESEND PATCH 1/4] asm-generic: io: remove {read,write} string functions

2012-10-17 Thread Will Deacon
The {read,write}s{b,w,l} functions are not defined across all architectures and therefore shouldn't be used by portable drivers. We should encourage driver writers to use the io{read,write}{8,16,32}_rep functions instead. This patch removes the {read,write} string functions for the generic IO

[RESEND PATCH 2/4] asm-generic: io: don't perform swab during {in,out} string functions

2012-10-17 Thread Will Deacon
The {in,out}s{b,w,l} functions are designed to operate on a stream of bytes and therefore should not perform any byte-swapping, regardless of the CPU byte order. This patch fixes the generic IO header so that {in,out}s{b,w,l} call the __raw_{read,write} functions directly rather than going via

[RESEND PATCH 0/4] Fix endianness of generic I/O accessors

2012-10-17 Thread Will Deacon
Hello, This is a resend of the patches I originally sent a while back: http://marc.info/?l=linux-kernelm=133552356617938w=2 There was some loose conclusion then that documentation needed to be updated, which I didn't get round to doing. However, after discussion with Ben at LPC (following his

[RESEND PATCH 4/4] net: smc91x: use io{read,write}*_rep accessors instead of string functions

2012-10-17 Thread Will Deacon
The {read,write}s{b,w,l} operations are not defined by all architectures and are being removed from the asm-generic/io.h interface. This patch replaces the usage of these string functions in the default SMC accessors with io{read,write}{8,16,32}_rep calls instead, which are defined for all

Re: [PATCH] pinctrl: tegra: correct bank for pingroup and drv pingroup

2012-10-17 Thread Stephen Warren
On 10/17/2012 12:21 AM, Pritesh Raithatha wrote: Signed-off-by: Pritesh Raithatha praitha...@nvidia.com (dropping stable from CC) Acked-by: Stephen Warren swar...@nvidia.com Tested-by: Stephen Warren swar...@nvidia.com Linus, if you could add Cc: stable when you commit it, that'd be useful

Re: [PATCH v3] x86/mce: Honour bios-set CMCI threshold

2012-10-17 Thread Naveen N. Rao
On 10/17/2012 06:39 PM, Borislav Petkov wrote: On Wed, Oct 17, 2012 at 04:57:30PM +0530, Naveen N. Rao wrote: On 10/17/2012 04:29 PM, Borislav Petkov wrote: +static struct dev_ext_attribute dev_attr_bios_cmci_threshold = { + __ATTR(bios_cmci_threshold, 0444, device_show_int, NULL), +

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-17 Thread Will Deacon
On Wed, Oct 17, 2012 at 04:26:20PM +0100, David Miller wrote: From: Will Deacon will.dea...@arm.com Date: Wed, 17 Oct 2012 14:01:25 +0100 + update_mmu_cache(vma, address, pmd); This won't build, use update_mmu_cache_pmd(). Good catch. They're both empty macros on ARM, so the

[PATCH] ext4: prevent kernel panic in case of uninitialized jinode

2012-10-17 Thread Volodymyr Mieshkov
In some cases the kernel crash occurs during system suspend/resume. Here is an example of a crash dump: [ 4095.041351] Unable to handle kernel NULL pointer dereference at virtual address [ 4095.050689] pgd = c0004000 [ 4095.053985] [] *pgd= [ 4095.058807] Internal error:

Re: [Q] reprobe deferred-probing drivers

2012-10-17 Thread Ming Lei
On Wed, Oct 17, 2012 at 4:43 PM, Guennadi Liakhovetski g.liakhovet...@gmx.de wrote: On Wed, 17 Oct 2012, Guennadi Liakhovetski wrote: Hi I've got a situation, for which I currently don't have a (good) solution. Ok, right, would it be acceptable to just do something like if

Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread H. Peter Anvin
On 10/17/2012 06:49 AM, Konrad Rzeszutek Wilk wrote: Note: These are the other patches that went in 3.7-rc1: xen/bootup: allow {read|write}_cr8 pvops call [https://lkml.org/lkml/2012/10/10/339] xen/bootup: allow read_tscp call for Xen PV guests. [https://lkml.org/lkml/2012/10/10/340] So

Re: [PATCH] virtio: 9p: correctly pass physical address to userspace for high pages

2012-10-17 Thread Sasha Levin
On Wed, Oct 17, 2012 at 6:14 AM, Will Deacon will.dea...@arm.com wrote: When using a virtio transport, the 9p net device allocates pages to back the descriptors inserted into the virtqueue. These allocations may be performed from atomic context (under the channel lock) and can therefore return

Re: new execve/kernel_thread design

2012-10-17 Thread Al Viro
On Wed, Oct 17, 2012 at 04:27:06PM +0200, Michal Simek wrote: In the patch above there is directly used current_pt_regs() function which works good for newly created threads when pt_regs are exactly in current_pt_regs() position but not for pt_regs which are saved on the stack which is the

Re: [PATCH] virtio: 9p: correctly pass physical address to userspace for high pages

2012-10-17 Thread Will Deacon
On Wed, Oct 17, 2012 at 05:05:00PM +0100, Sasha Levin wrote: On Wed, Oct 17, 2012 at 6:14 AM, Will Deacon will.dea...@arm.com wrote: When using a virtio transport, the 9p net device allocates pages to back the descriptors inserted into the virtqueue. These allocations may be performed from

Re: [PATCH 00/40] PCI, ACPI, x86: pci root bus hotplug support

2012-10-17 Thread Yinghai Lu
On Wed, Oct 17, 2012 at 12:50 AM, Yijing Wang wangyij...@huawei.com wrote: On 2012/9/20 2:54, Yinghai Lu wrote: Hi Yinghai, I applied this series patches to the latest pci-next, but git am fail occured. When I try to pull from for-pci-root-bus-hotplug branch, I found some patches

Re: new execve/kernel_thread design

2012-10-17 Thread Al Viro
On Wed, Oct 17, 2012 at 05:07:03PM +0100, Al Viro wrote: What happens during boot is this: * init_task (not to be confused with init) is used as current during infrastructure initializations. Once everything needed for scheduler and for working fork is set, we spawn two threads - future

Re: [ 074/147] kbuild: Do not package /boot and /lib in make tar-pkg

2012-10-17 Thread Herton Ronaldo Krzesinski
On Sun, Oct 14, 2012 at 03:36:47PM +0100, Ben Hutchings wrote: 3.2-stable review patch. If anyone has any objections, please let me know. -- From: Michal Marek mma...@suse.cz commit fe04ddf7c2910362f3817c8156e41cbd6c0ee35d upstream. There were reports of users

Is: axe read_tscp pvops call. Was: Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread Konrad Rzeszutek Wilk
On Wed, Oct 17, 2012 at 09:03:12AM -0700, H. Peter Anvin wrote: On 10/17/2012 06:49 AM, Konrad Rzeszutek Wilk wrote: Note: These are the other patches that went in 3.7-rc1: xen/bootup: allow {read|write}_cr8 pvops call [https://lkml.org/lkml/2012/10/10/339] xen/bootup: allow read_tscp call

Re: [ 074/147] kbuild: Do not package /boot and /lib in make tar-pkg

2012-10-17 Thread Ben Hutchings
On Wed, Oct 17, 2012 at 01:22:11PM -0300, Herton Ronaldo Krzesinski wrote: On Sun, Oct 14, 2012 at 03:36:47PM +0100, Ben Hutchings wrote: 3.2-stable review patch. If anyone has any objections, please let me know. -- From: Michal Marek mma...@suse.cz commit

Re: suspicious RCU usage in cgroup

2012-10-17 Thread Dave Jones
On Fri, Oct 05, 2012 at 06:06:12PM -0400, Aristeu Rozanski wrote: Hi Dave, On Fri, Oct 05, 2012 at 05:59:29PM -0400, Dave Jones wrote: On boot in Linus' current tree.. === [ INFO: suspicious RCU usage. ] 3.6.0+ #22 Not tainted

Re: [PATCH 1/1] Update acpi_root_bridge_list in container hotplug path.

2012-10-17 Thread Yinghai Lu
On Wed, Oct 17, 2012 at 12:39 AM, Tang Chen tangc...@cn.fujitsu.com wrote: On 10/17/2012 01:18 PM, Yinghai Lu wrote: And also, I have another 2 questions, maybe you can help me. 1) Do we need to put PNP0A08 into acpi_pci_roots ? looks like we need to unify those two ids. 2) In

Re: [RFC][CFT][CFReview] execve and kernel_thread unification work

2012-10-17 Thread Al Viro
On Wed, Oct 17, 2012 at 03:02:15PM +0100, Catalin Marinas wrote: Hi Al, On 15 October 2012 02:30, Al Viro v...@zeniv.linux.org.uk wrote: arch-arm64 - patches from maintainer with minor followup folded Thanks for updating the arm64 branch. I've adapted the changes, tested and folded them

Re: [PATCH] i2c: omap: adopt pinctrl support

2012-10-17 Thread Shubhrajyoti Datta
On Tue, Oct 16, 2012 at 8:53 PM, Sebastien Guiriec s-guir...@ti.com wrote: Some GPIO expanders need some early pin control muxing. Due to legacy boards sometimes the driver uses subsys_initcall instead of module_init. This patch takes advantage of defer probe feature and pin control in order

Re: [PATCH 1/2] brw_mutex: big read-write mutex

2012-10-17 Thread Oleg Nesterov
On 10/16, Paul E. McKenney wrote: On Tue, Oct 16, 2012 at 05:56:23PM +0200, Oleg Nesterov wrote: I believe that you need smp_mb() here. I don't understand why... The wake_up_all()'s memory barriers do not suffice because some other reader might have awakened the writer

[PATCH 2/3] vfs: cleanup show_mountinfo

2012-10-17 Thread Dmitry V. Levin
Starting with commit v3.2-rc4-1-g02125a8, seq_path_root() no longer changes the value of its struct path *root argument. Starting with commit v3.2-rc7-104-g8c9379e, the struct path *root argument of seq_path_root() is const. As result, the temporary variable root in show_mountinfo() that holds a

[PATCH 3/3] vfs: make mounts and mountstats honor root dir like mountinfo does

2012-10-17 Thread Dmitry V. Levin
Change show_vfsmnt() and show_vfsstat() to show mountpoints relative to the root directory and skip mountpoints outside of chroot jail the same way as show_mountinfo() does. Signed-off-by: Dmitry V. Levin l...@altlinux.org --- fs/proc_namespace.c | 13 +++-- 1 file changed, 11

[PATCH 1/3] Documentation: update seq_file

2012-10-17 Thread Dmitry V. Levin
Starting with commit v3.2-rc4-1-g02125a8, seq_path_root() no longer changes the value of root. Starting with commit v3.2-rc7-104-g8c9379e, some arguments of seq_path() and seq_path_root() are const. Signed-off-by: Dmitry V. Levin l...@altlinux.org --- Documentation/filesystems/seq_file.txt | 12

Re: [PATCH 2/9] uprobes: check for single step support

2012-10-17 Thread Srikar Dronamraju
* Rabin Vincent ra...@rab.in [2012-10-14 21:23:06]: Check for single step support before calling user_enable_single_step(), since user_enable_single_step() just BUG()s if support does not exist. Needed by ARM. Signed-off-by: Rabin Vincent ra...@rab.in --- kernel/events/uprobes.c |3

Re: [PATCH v3] x86/mce: Honour bios-set CMCI threshold

2012-10-17 Thread Borislav Petkov
On Wed, Oct 17, 2012 at 09:17:39PM +0530, Naveen N. Rao wrote: Userspace tools need this sysfs attribute so they know how to react on receipt of a corrected error event: whether this is the first event or if such events have already been threshold-ed. What's wrong with userspace tools parsing

Re: [RFC][CFT][CFReview] execve and kernel_thread unification work

2012-10-17 Thread Catalin Marinas
On Wed, Oct 17, 2012 at 05:34:24PM +0100, Al Viro wrote: On Wed, Oct 17, 2012 at 03:02:15PM +0100, Catalin Marinas wrote: Hi Al, On 15 October 2012 02:30, Al Viro v...@zeniv.linux.org.uk wrote: arch-arm64 - patches from maintainer with minor followup folded Thanks for updating the

Re: Is: axe read_tscp pvops call. Was: Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread H. Peter Anvin
On 10/17/2012 09:10 AM, Konrad Rzeszutek Wilk wrote: On Wed, Oct 17, 2012 at 09:03:12AM -0700, H. Peter Anvin wrote: On 10/17/2012 06:49 AM, Konrad Rzeszutek Wilk wrote: Note: These are the other patches that went in 3.7-rc1: xen/bootup: allow {read|write}_cr8 pvops call

Re: [PATCH 3/9] uprobes: allow ignoring of probe hits

2012-10-17 Thread Srikar Dronamraju
static struct uprobe *find_active_uprobe(unsigned long bp_vaddr, int *is_swbp) { struct mm_struct *mm = current-mm; @@ -1469,6 +1474,7 @@ static void handle_swbp(struct pt_regs *regs) struct uprobe *uprobe; unsigned long bp_vaddr; int uninitialized_var(is_swbp);

Re: Is: axe read_tscp pvops call. Was: Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread Konrad Rzeszutek Wilk
On Wed, Oct 17, 2012 at 12:10:36PM -0400, Konrad Rzeszutek Wilk wrote: On Wed, Oct 17, 2012 at 09:03:12AM -0700, H. Peter Anvin wrote: On 10/17/2012 06:49 AM, Konrad Rzeszutek Wilk wrote: Note: These are the other patches that went in 3.7-rc1: xen/bootup: allow {read|write}_cr8 pvops

Re: Is: axe read_tscp pvops call. Was: Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread H. Peter Anvin
On 10/17/2012 09:39 AM, Konrad Rzeszutek Wilk wrote: which implies that it since it is a vDSO area it cannot do paravirt calls anyhow. Obviously. The vdso is *user space*. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.

[RFC PATCH] paravirt: Remove paravirt_rdtscp as all platforms use the native version anyhow.

2012-10-17 Thread Konrad Rzeszutek Wilk
The generic case uses native_read_tscp, the Xen case uses native_read_tscp, llguest does not even have it defined. There is not even any user of this call. The only one that could potentially be is the __vdso_getcpu, but that runs within vDSO so it cannot run in kernel space. Suggested-by: H.

Re: [PATCH 1/2] brw_mutex: big read-write mutex

2012-10-17 Thread Oleg Nesterov
On 10/16, Linus Torvalds wrote: On Mon, Oct 15, 2012 at 12:10 PM, Oleg Nesterov o...@redhat.com wrote: This patch adds the new sleeping lock, brw_mutex. Unlike rw_semaphore it allows multiple writers too, just read and write are mutually exclusive. So those semantics just don't sound

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-17 Thread Joe Perches
On Wed, 2012-10-17 at 20:53 +0530, Viresh Kumar wrote: On 16 October 2012 17:14, hongbo.zhang hongbo.zh...@linaro.org wrote: [] diff --git a/drivers/thermal/db8500_cpufreq_cooling.c b/drivers/thermal/db8500_cpufreq_cooling.c [] +#include linux/slab.h +#include linux/module.h +#include

[PATCH 0/3] perf_event: enable overflow interrupts on KNC

2012-10-17 Thread Vince Weaver
Hello the following patchset enables overflow interrupts on Knights Corner, the initial KNC PMU driver that was included in 3.7-rc1 did not support this. The first patch should be straightforward. The second should be too, but it relates to a problem with the p6 PMU that I brought up in a

[PATCH 1/3] Make KNC use full 40-bit width of counters

2012-10-17 Thread Vince Weaver
Early versions of KNC chips have a bug where bits above 32 were not properly set. We worked around this by only using the bottom 32 bits (out of 40 that should be available). It turns out this workaround breaks overflow handling. The buggy silicon will in theory never be used in production

Re: [PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-17 Thread Viresh Kumar
On 17 October 2012 22:28, Joe Perches j...@perches.com wrote: +#include linux/slab.h +#include linux/module.h +#include linux/platform_device.h +#include linux/cpufreq.h +#include linux/cpu_cooling.h +#include linux/err.h should be in alphabetical order There's no agreed kernel

[PATCH 2/3] perf_event: Remove cpuc-enable check on KNC event enable/disable

2012-10-17 Thread Vince Weaver
x86_pmu.enable() is called from x86_pmu_enable() with cpuc-enabled set to 0. This means we weren't re-enabling the counters after a context switch. This patch just removes the check, as it should't be necessary (and the equivelent x86_ generic code does not have the checks). The origin of this

[PATCH 3/3] perf_event: Enable overflow on KNC with a custom knc_pmu_handle_irq()

2012-10-17 Thread Vince Weaver
Although based on the P6 design, the interrupt mechnanism for KNC more closely resembles the intel architectural perfmon one. We can't just re-use that code though, because KNC has different MSR numbers for the status and ack registers. In this case we just cut-and paste from perf_event_intel.c

Re: [GIT PULL] RAS: Numascale fix

2012-10-17 Thread H. Peter Anvin
On 10/09/2012 06:04 AM, Borislav Petkov wrote: Hi guys, just a small fix for an oops on Numascale's confederate systems. It can go in ASAP. For small git pulls, it would be good to include the actual diff in the pull request. -hpa -- To unsubscribe from this list: send the line

Re: Is: axe read_tscp pvops call. Was: Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread Konrad Rzeszutek Wilk
On Wed, Oct 17, 2012 at 09:50:11AM -0700, H. Peter Anvin wrote: On 10/17/2012 09:10 AM, Konrad Rzeszutek Wilk wrote: On Wed, Oct 17, 2012 at 09:03:12AM -0700, H. Peter Anvin wrote: On 10/17/2012 06:49 AM, Konrad Rzeszutek Wilk wrote: Note: These are the other patches that went in 3.7-rc1:

Re: [PATCH 4/9] uprobes: allow arch access to xol slot

2012-10-17 Thread Srikar Dronamraju
* Rabin Vincent ra...@rab.in [2012-10-14 21:23:08]: Allow arches to customize how the instruction is filled into the xol slot. ARM will use this to insert an undefined instruction after the real instruction in order to simulate a single step of the instruction without hardware support.

[PATCH 1/3] pinctrl/coh901: use irqdomain, allocate irqdescs

2012-10-17 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org This switches the COH 901 pinctrl driver to allocate its GPIO IRQs dynamically, and start to use a linear irqdomain to map from the hardware IRQs. This way we can cut away the complex allocation of IRQ numbers from the mach/irqs.h file.

[PATCH 02/11] perf: Require exclude_guest to use PEBS - kernel side enforcement

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Peter Zijlstra pet...@infradead.org Intel PEBS in VT-x context uses the DS address as a guest linear address, even though its programmed by the host as a host linear address. This either results in guest memory corruption and or the hardware faulting and 'crashing' the virtual machine.

[PATCH 11/11] perf hists browser: Add back callchain folding symbol

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo a...@redhat.com The commit 5395a04841fc (perf hists: Separate overhead and baseline columns) makes the Overhead column no more the first one, this caused the test that checks if it is time to show if a histogram entry has callchains never hits. Fix it by checking

[PATCH 03/11] perf tools: Fix segfault when using srcline sort key

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim namhyung@lge.com The srcline sort key is for grouping samples based on their source file and line number. It use addr2line tool to get the information but it requires dso name. It caused a segfault when a sample does not have the name by dereferencing a NULL pointer. Fix

[PATCH 08/11] perf python: Initialize 'page_size' variable

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo a...@redhat.com The commit 0c1fe6b: 'perf tools: Have the page size value available for all tools' Broke the python binding because the global variable 'page_size' is initialized on the main() routine, that is not called when using just the python binding,

[PATCH 09/11] perf python: Link with libtraceevent

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo a...@redhat.com The evsel methods to read tracepoint fields uses libtraceevent functions, becoming needed by the python binding as well. Cc: David Ahern dsah...@gmail.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Jiri Olsa jo...@redhat.com Cc: Mike Galbraith

[PATCH 3/3] pinctrl/u300: use managed resources

2012-10-17 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org This converts the U300 pin controller to use managed resources (devm_*) for it's memory region. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- drivers/pinctrl/pinctrl-u300.c | 32 1 file changed, 4

[PATCH 10/11] perf tools: Fix build on sparc.

2012-10-17 Thread Arnaldo Carvalho de Melo
From: David Miller da...@davemloft.net More UAPI stuff. Signed-off-by: David S. Miller da...@davemloft.net Cc: Ingo Molnar mi...@redhat.com Cc: Paul Mackerras pau...@samba.org Cc: Peter Zijlstra a.p.zijls...@chello.nl Link:

[PATCH 05/11] perf hists browser: Fix off-by-two bug on the first column

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim namhyung@lge.com The commit 5395a04841fc (perf hists: Separate overhead and baseline columns) makes the Overhead column no more the first one. So it resulted in the mis-aligned column in the normal (non-diff) output. Signed-off-by: Namhyung Kim namhy...@kernel.org

[PATCH 04/11] perf tools: Remove warnings on JIT samples for srcline sort key

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim namhyung@lge.com When using the srcline sort key with perf report, I see many lines of warning related to JIT samples like below: addr2line: '/tmp/perf-1397.map': No such file Since it's not a ELF binary and doesn't provide such information, just use the raw ip address.

[GIT PULL 00/11] perf/urgent fixes

2012-10-17 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 95cf59ea72331d0093010543b8951bb43f262cac: perf: Fix perf_cgroup_switch for sw-events (2012-10-05 13:59:07 +0200) are available in the git repository at:

[PATCH 07/11] tools lib traceevent: Fix missed freeing of subargs in free_arg() in filter

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Steven Rostedt rost...@goodmis.org Some of args were missed in free_args(), as well as subargs. That is args like FILTER_ARG_NUM have left and right pointers to other args that also need to be freed. Signed-off-by: Steven Rostedt rost...@goodmis.org Cc: Ingo Molnar mi...@kernel.org Cc:

[PATCH 01/11] perf tool: Precise mode requires exclude_guest

2012-10-17 Thread Arnaldo Carvalho de Melo
From: David Ahern dsah...@gmail.com Summary of events per Peter: Intel PEBS in VT-x context uses the DS address as a guest linear address, even though its programmed by the host as a host linear address. This either results in guest memory corruption and or the hardware faulting and

[PATCH 06/11] lib tools traceevent: Add back pevent assignment in __pevent_parse_format()

2012-10-17 Thread Arnaldo Carvalho de Melo
From: Steven Rostedt rost...@goodmis.org Even though with the change of commit commit 2b29175 tools lib traceevent: Carve out events format parsing routine, allowed __pevent_parse_format() to parse an event without the need of a pevent handler, the event still needs to assign the pevent handed to

Re: [PATCH 2/9] uprobes: check for single step support

2012-10-17 Thread Oleg Nesterov
On 10/17, Srikar Dronamraju wrote: * Rabin Vincent ra...@rab.in [2012-10-14 21:23:06]: void __weak arch_uprobe_enable_step(struct arch_uprobe *arch) { - user_enable_single_step(current); + if (arch_has_single_step()) + user_enable_single_step(current); } void

RE: [PATCH v3] x86/mce: Honour bios-set CMCI threshold

2012-10-17 Thread Luck, Tony
What's wrong with userspace tools parsing /proc/cmdline and seeing that mce_bios_cmci_threshold has been set since this is the only way to set it anyway? The argument might be on the command line, but may have been rejected because the BIOS didn't set the thresholds? So then you'd have to look

Re: [PATCH 3/9] uprobes: allow ignoring of probe hits

2012-10-17 Thread Oleg Nesterov
On 10/16, Rabin Vincent wrote: 2012/10/15 Oleg Nesterov o...@redhat.com: Not sure I understand why we shouldn't call handlers in this case, but OK, I know nothing about arm. This old discussion about kprobes should be useful:

Re: Is: axe read_tscp pvops call. Was: Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread H. Peter Anvin
On 10/17/2012 09:54 AM, Konrad Rzeszutek Wilk wrote: Could you do an audit for other pvops calls that have no users? If the *only* user is lguest, we should talk about it, too... I can do that - but I don't want to be hasty here. There is a bit of danger here - for example the read_pmc (or

[PATCH 0/3] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-10-17 Thread Varun Sethi
This patchset provides the Freescale PAMU (Peripheral Access Management Unit) driver and the corresponding IOMMU API implementation. PAMU is the IOMMU present on Freescale QorIQ platforms. PAMU can authorize memory access, remap the memory address, and remap the I/O transaction type. This set

[PATCH 2/3 v3] iommu/fsl: Add iommu domain attributes required by fsl PAMU driver.

2012-10-17 Thread Varun Sethi
Added the following domain attributes required by FSL PAMU driver: 1. Subwindows field added to the iommu domain geometry attribute. 2. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU API. 3. Added an attribute for enabling/disabling

[PATCH 1/3 v2] iommu/fsl: Store iommu domain information pointer in archdata.

2012-10-17 Thread Varun Sethi
Add a new field in the device (powerpc) archdata structure for storing iommu domain information pointer. This pointer is stored when the device is attached to a particular domain. Signed-off-by: Varun Sethi varun.se...@freescale.com --- arch/powerpc/include/asm/device.h |4 1 files

Re: [PATCH] [perf] Account the nr_entries in rblist properly

2012-10-17 Thread David Ahern
Arnaldo: I think this one has fallen through the cracks. On 8/31/12 1:09 AM, Suzuki K. Poulose wrote: The nr_entries in rblist is never decremented when an element is deleted. Also, use rblist__remove_node to delete a node in rblist__delete(). This would keep the nr_entries sane.

RE: [PATCH v9 05/12] x86, hotplug, suspend: Online CPU0 for suspend or hibernate

2012-10-17 Thread Yu, Fenghua
On Tuesday, October 16, 2012 10:19 PM Rafael J. Wysocki wrote: On Tuesday 16 of October 2012 22:12:27 Yu, Fenghua wrote: On 10/16/2012 09:47 PM, Rafael J. Wysocki wrote: On Tuesday 16 of October 2012 11:05:18 Srivatsa S. Bhat wrote: On 10/16/2012 02:20 AM, Rafael J. Wysocki wrote:

Re: suspicious RCU usage in cgroup

2012-10-17 Thread Aristeu Rozanski
On Wed, Oct 17, 2012 at 12:26:23PM -0400, Dave Jones wrote: On Fri, Oct 05, 2012 at 06:06:12PM -0400, Aristeu Rozanski wrote: Hi Dave, On Fri, Oct 05, 2012 at 05:59:29PM -0400, Dave Jones wrote: On boot in Linus' current tree.. === [ INFO:

RE: [PATCH] qla3xxx: Ensure req_q_phy_addr writes to the register

2012-10-17 Thread Jitendra Kalsaria
-Original Message- From: Joe Jin [mailto:joe@oracle.com] Sent: Tuesday, October 16, 2012 11:32 PM To: Ron Mercer; Jitendra Kalsaria; Dept-Eng Linux Driver Cc: netdev; linux-kernel; Greg Marsden Subject: [PATCH] qla3xxx: Ensure req_q_phy_addr writes to the register Make sure

Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread Ben Guthro
On Wed, Oct 17, 2012 at 9:49 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: [...] The end result is this is a nice set of patches where there is only _one_ change in the x86 code (and it is just more of dealing with error case) - and the rest are all done in Xen side. I'm sorry to

Re: [PATCH 1/2] dt: Document: correct tegra20/30 pinctrl slew-rate name

2012-10-17 Thread Linus Walleij
On Wed, Oct 17, 2012 at 1:37 PM, Pritesh Raithatha praitha...@nvidia.com wrote: change nvidia,slew_rate* to nvidia,slew-rate* Signed-off-by: Pritesh Raithatha praitha...@nvidia.com Applied w/Stephens ACK+test tag and @stable tag. Yours, Linus Walleij -- To unsubscribe from this list: send

Re: [PATCH 2/2] pinctrl: tegra: set low power mode bank width to 2

2012-10-17 Thread Linus Walleij
On Wed, Oct 17, 2012 at 1:39 PM, Pritesh Raithatha praitha...@nvidia.com wrote: Signed-off-by: Pritesh Raithatha praitha...@nvidia.com Applied with same tags as [1/2]. Yours, Linus Walleij -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

[PATCH 2/3] pinctrl/coh901: convert to use managed resources

2012-10-17 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org This switches the COH 901 pin controller to use managed resources (devm_*) for memory remaps, clocks, etc. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- drivers/pinctrl/pinctrl-coh901.c | 62 1

Re: [PATCH] e1000 driver RX race condition fixed

2012-10-17 Thread Jan Ceuleers
On 10/14/2012 07:19 PM, Dmitry Fleytman wrote: There is a race condition in e1000 driver. It enables HW receive before RX rings initalization. In case of specific timing this may lead to host memory corruption due to DMA write to arbitrary memory location. Following patch fixes this issue by

Re: [PATCH] pinctrl: tegra: correct bank for pingroup and drv pingroup

2012-10-17 Thread Linus Walleij
On Wed, Oct 17, 2012 at 8:21 AM, Pritesh Raithatha praitha...@nvidia.com wrote: Signed-off-by: Pritesh Raithatha praitha...@nvidia.com Thanks, applied with Stephens ACK/Test and stable tag. Yours, Linus Walleij -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: [PATCH 9/9] ARM: add uprobes support

2012-10-17 Thread Oleg Nesterov
On 10/14, Rabin Vincent wrote: @@ -655,6 +656,9 @@ do_work_pending(struct pt_regs *regs, unsigned int thread_flags, int syscall) return restart; } syscall = 0; + } else if

Re: [PATCH] [perf] Account the nr_entries in rblist properly

2012-10-17 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 17, 2012 at 11:38:58AM -0600, David Ahern escreveu: Arnaldo: I think this one has fallen through the cracks. Thanks for catching this, applied to perf/core. - Arnaldo -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread Konrad Rzeszutek Wilk
On Wed, Oct 17, 2012 at 01:46:09PM -0400, Ben Guthro wrote: On Wed, Oct 17, 2012 at 9:49 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: [...] The end result is this is a nice set of patches where there is only _one_ change in the x86 code (and it is just more of dealing with

Re: [PATCH] SUNRPC: Prevent kernel stack corruption on long values of flush

2012-10-17 Thread Sasha Levin
On Wed, Jul 18, 2012 at 1:39 PM, J. Bruce Fields bfie...@fieldses.org wrote: On Tue, Jul 17, 2012 at 12:01:26AM +0200, Sasha Levin wrote: The buffer size in read_flush() is too small for the longest possible values for it. This can lead to a kernel stack corruption: Thanks! I've just

Re: [RFC] ACPI S3 and Xen (suprisingly small\!).

2012-10-17 Thread Ben Guthro
I'm not sure it matters, but I'm testing against a changeset about a week old: http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=1c4a5b37b55c56e49135e65728137f54288d1fe6 Plus patches specific to XenClient Enterprise. On Wed, Oct 17, 2012 at 1:43 PM, Konrad Rzeszutek Wilk

[PATCH] wm831x: Add and use a wm831x_irq_byname convenience function

2012-10-17 Thread Joe Perches
Add and use a convenience inline to get an irq by name. Signed-off-by: Joe Perches j...@perches.com --- Perhaps this is a better alternative to code reflowing. include/linux/mfd/wm831x/core.h | 8 drivers/input/touchscreen/wm831x-ts.c | 7 ++- drivers/power/wm831x_power.c

Re: usb issue on Intel chipset: abrupt mouse movements, usb keyboard loosing key events

2012-10-17 Thread Alan Stern
On Wed, 17 Oct 2012, Martin Vysny wrote: Good day, thank you for your mail. I was finally able to reproduce the issue. I am attaching a dmesg output of a correct boot (please note that there still are several unwanted IRQs), and a dmesg output of a reproduced error. Did you boot with

Re: [PATCH 0/3] perf_event: enable overflow interrupts on KNC

2012-10-17 Thread Ingo Molnar
* Vince Weaver vincent.wea...@maine.edu wrote: Hello the following patchset enables overflow interrupts on Knights Corner, the initial KNC PMU driver that was included in 3.7-rc1 did not support this. Nice! The first patch should be straightforward. The second should be too, but it

Re: [PATCH v3] x86/mce: Honour bios-set CMCI threshold

2012-10-17 Thread Borislav Petkov
On Wed, Oct 17, 2012 at 05:28:11PM +, Luck, Tony wrote: What's wrong with userspace tools parsing /proc/cmdline and seeing that mce_bios_cmci_threshold has been set since this is the only way to set it anyway? The argument might be on the command line, but may have been rejected

Re: [PATCH 1/2] ARM: OMAP: Trivial driver changes to remove include plat/cpu.h

2012-10-17 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [121015 17:09]: * Tony Lindgren t...@atomide.com [121009 17:21]: * Péter Ujfalusi peter.ujfal...@ti.com [121009 02:03]: On 10/08/2012 07:35 PM, Tony Lindgren wrote: - omap-dma.c and omap-pcm.c can test the arch locally as omap1 and omap2 cannot

Re: [patch for-3.7] mm, mempolicy: fix printing stack contents in numa_maps

2012-10-17 Thread Dave Jones
On Tue, Oct 16, 2012 at 10:24:32PM -0700, David Rientjes wrote: On Wed, 17 Oct 2012, Dave Jones wrote: BUG: sleeping function called from invalid context at kernel/mutex.c:269 Hmm, looks like we need to change the refcount semantics entirely. We'll need to make get_vma_policy()

Re: [PATCH 1/1] x86, e820: Remove direct mapping of reserved space for HT hole around 1TB

2012-10-17 Thread H. Peter Anvin
On 10/16/2012 11:26 AM, Jacob Shin wrote: Right, we are (AMD) thinking about the same thing .. how to backport to stable kernels of major enterprise OSes The simplest and the least disruptive solution would be to not map memory holes that occur above 4GB, it won't affect 32 bit kernels, and it

RE: [PATCH v9 05/12] x86, hotplug, suspend: Online CPU0 for suspend or hibernate

2012-10-17 Thread Yu, Fenghua
From: Srivatsa S. Bhat [mailto:srivatsa.b...@linux.vnet.ibm.com] On 10/16/2012 02:20 AM, Rafael J. Wysocki wrote: On Friday 12 of October 2012 09:09:42 Fenghua Yu wrote: From: Fenghua Yu fenghua...@intel.com Because x86 BIOS requires CPU0 to resume from sleep, suspend or hibernate can't

Re: [PATCH] SUNRPC: Prevent kernel stack corruption on long values of flush

2012-10-17 Thread Boaz Harrosh
On 07/18/2012 01:55 PM, Jim Rees wrote: Dave Jones wrote: Unsigned long isn't necessarily 32 bits. On 64-bit systems %lu can be up to 18446744073709551615 Thanks. You caught me thinking Intel. How embarrassing. What? why even on Intel-64 long is 64bit. long is always the same or

Re: [PATCH 7/7] gpio/tegra: convert to use linear irqdomain

2012-10-17 Thread Stephen Warren
On 10/16/2012 04:33 PM, Stephen Warren wrote: On 10/16/2012 01:23 PM, Linus Walleij wrote: The MXS driver tries to do the work of irq_domain_add_linear() by reserving a bunch of descriptors somewhere and keeping track of the base offset, then calling irq_domain_add_legacy(). Let's stop doing

RE: [PATCH] CAN: sja1000: Add support for Connect Tech Inc's Canpro/104-Plus Opto CAN board

2012-10-17 Thread Muhammad Ghias
Hi Marc, I tested the patch v2 with kernel 3.6.1 and 3.7-rc1. Clean compile and works with hardware. Regards, Muhammad -Original Message- From: Marc Kleine-Budde [mailto:m...@pengutronix.de] Sent: October-17-12 6:13 AM To: Muhammad Ghias Cc: 'Wolfgang Grandegger';

Re: [Q] Default SLAB allocator

2012-10-17 Thread Tim Bird
On 10/16/2012 12:16 PM, Eric Dumazet wrote: On Tue, 2012-10-16 at 15:27 -0300, Ezequiel Garcia wrote: Yes, we have some numbers: http://elinux.org/Kernel_dynamic_memory_analysis#Kmalloc_objects Are they too informal? I can add some details... They've been measured on a **very** minimal

Re: [PATCH] cpuidle: reinitialize power_usage values when adding/removing C-states

2012-10-17 Thread Julius Werner
This is specific to the acpi and should be handled in the processor_idle.c file instead of the cpuidle core code. Could be the function 'acpi_processor_cst_has_changed' the right place to set a dummy power value for the power in the new C-state ? Thanks for your feedback. I think it wouldn't

Re: [PATCH 1/2] mmc: core: Support all MMC capabilities when booting from Device Tree

2012-10-17 Thread Ulf Hansson
On 17 October 2012 15:38, Arnd Bergmann a...@arndb.de wrote: On Monday 15 October 2012, Lee Jones wrote: and so on. What are you actually missing in the properties that are already there? MMC_CAP_ERASE This one seems to be set unconditionally on some controllers but not on others. Why

Re: [PATCH] SUNRPC: Prevent kernel stack corruption on long values of flush

2012-10-17 Thread J. Bruce Fields
On Wed, Oct 17, 2012 at 01:59:39PM -0400, Sasha Levin wrote: On Wed, Jul 18, 2012 at 1:39 PM, J. Bruce Fields bfie...@fieldses.org wrote: On Tue, Jul 17, 2012 at 12:01:26AM +0200, Sasha Levin wrote: The buffer size in read_flush() is too small for the longest possible values for it. This

Re: [PATCH 1/5] drivers/base: Add a DEVICE_BOOL_ATTR macro

2012-10-17 Thread Greg Kroah-Hartman
On Wed, Oct 17, 2012 at 01:13:51PM +0200, Borislav Petkov wrote: +ssize_t device_store_bool(struct device *dev, struct device_attribute *attr, + const char *buf, size_t size) +{ + struct dev_ext_attribute *ea = to_ext_attr(attr); + u8 bval; + + if

Re: [PATCH RFC 02/15 v5] gpio: Add sysfs support to block GPIO API

2012-10-17 Thread Greg KH
On Wed, Oct 17, 2012 at 02:31:34PM +0200, Roland Stigge wrote: This patch adds sysfs support to the block GPIO API. Signed-off-by: Roland Stigge sti...@antcom.de --- Documentation/ABI/testing/sysfs-gpio |6 drivers/gpio/gpiolib.c | 214

Re: [PATCH -v2 3/6] x86, RAS: Convert mce-inject module to debugfs

2012-10-17 Thread Andi Kleen
Borislav Petkov b...@amd64.org writes: From: Borislav Petkov borislav.pet...@amd.com This is a module which is used for debugging MCE decoding paths so its userspace interface should go to debugfs, where it belongs conceptually. While at it, add a warning to the Kconfig text that this

<    1   2   3   4   5   6   7   8   9   10   >