Re: [PATCH 1/2] Make the batch size of the percpu_counter configurable

2013-04-30 Thread Tim Chen
On Tue, 2013-04-30 at 17:53 +, Christoph Lameter wrote: > On Tue, 30 Apr 2013, Tim Chen wrote: > > > > And why is it a pointer? > > > > A pointer because the default percpu_counter_batch value could change > > later when cpus come online after we initialize per cpu counter and > > percpu_count

Re: [PATCH 6/6] ptrace: PTRACE_DETACH should do flush_ptrace_hw_breakpoint(child)

2013-04-30 Thread Oleg Nesterov
On 04/30, Frederic Weisbecker wrote: > > On Mon, Apr 29, 2013 at 06:40:38PM +0200, Oleg Nesterov wrote: > > > No, I think this (minor) problem is very old... At least, when I look > > at 2.6.26 code I do not see anything which coould clear db regs on > > detach. > > Ok, if so then the conversion to

Re: [PATCH 2/3] posix_timers: Defer per process timer stop after timers processing

2013-04-30 Thread Olivier Langlois
> > > Maybe the condition around the posix_cpu_timer_schedule() block inside > > cpu_timer_fire() could even be a good candidate for 'unlikely' > > qualifier. > > Well, cpu_timer_fire() is probably not a fast path. So helping branch > prediction there probably won't have much measurable effect i

Re: [PATCH 1/2] Make the batch size of the percpu_counter configurable

2013-04-30 Thread Tim Chen
On Tue, 2013-04-30 at 17:28 +, Christoph Lameter wrote: > On Tue, 30 Apr 2013, Tim Chen wrote: > > > On Tue, 2013-04-30 at 13:32 +, Christoph Lameter wrote: > > > On Mon, 29 Apr 2013, Tim Chen wrote: > > > > > > > diff --git a/include/linux/percpu_counter.h > > > > b/include/linux/percpu_

Re: [PATCH -next] proc_fs.h: fix build error when PROC_FS is not enabled

2013-04-30 Thread Randy Dunlap
On 04/30/13 09:36, David Rientjes wrote: > On Mon, 29 Apr 2013, Randy Dunlap wrote: > >> From: Randy Dunlap >> >> Fix build error when CONFIG_PROC_FS is not enabled: >> (remove duplicated line) >> >> include/linux/proc_fs.h:58:20: error: redefinition of 'proc_set_size' >> include/linux/proc_fs.h:

Re: [patch] mm, memcg: add rss_huge stat to memory.stat

2013-04-30 Thread Johannes Weiner
On Mon, Apr 29, 2013 at 05:22:52PM -0700, David Rientjes wrote: > This exports the amount of anonymous transparent hugepages for each memcg > via the new "rss_huge" stat in memory.stat. The units are in bytes. > > This is helpful to determine the hugepage utilization for individual jobs > on the

Re: [PATCH 1/2] Make the batch size of the percpu_counter configurable

2013-04-30 Thread Andi Kleen
> > What is this for and why does it have that alignmend? > > I was assuming that if batch is frequently referenced, it probably > should not share a cache line with the counters field. As long as they are both read-mostly it should be fine to share (cache line will just be SHARED) Padding would

Re: [PATCH V2] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST

2013-04-30 Thread Stefano Stabellini
Konrad, are you going to take care of this patch (assuming that you are OK with it)? On Tue, 30 Apr 2013, Julien Grall wrote: > Reset the IRQ_NOAUTOEN and IRQ_NOREQUEST flags that are enabled by > default on ARM. If IRQ_NOAUTOEN is set, __setup_irq doesn't call > irq_startup, that is responsible f

Re: [PATCH 1/2] Make the batch size of the percpu_counter configurable

2013-04-30 Thread Christoph Lameter
On Tue, 30 Apr 2013, Tim Chen wrote: > On Tue, 2013-04-30 at 13:32 +, Christoph Lameter wrote: > > On Mon, 29 Apr 2013, Tim Chen wrote: > > > > > diff --git a/include/linux/percpu_counter.h > > > b/include/linux/percpu_counter.h > > > index d5dd465..5ca7df5 100644 > > > --- a/include/linux/pe

Re: x86/pci/mrst: force all pci config toward 0:0:0, 0:2:0 and 0:3:0 to type 1

2013-04-30 Thread Bjorn Helgaas
On Tue, Apr 30, 2013 at 1:21 AM, Bin Gao wrote: > x86/pci/mrst: force all pci config access toward 0:0:0, 0:2:0 and 0:3:0 to > type 1 > > For real pci devices 0:0:0, 0:2:0 and 0:3:0, there is either no pci shim, or > no guarantee of data correctness of offset 256-4k. So for whatever reason, > Lin

Re: [PATCH 3.8-stable] lib/int_sqrt.c: optimize square root algorithm

2013-04-30 Thread Davidlohr Bueso
On Tue, 2013-04-30 at 16:52 +0900, Jonghwan Choi wrote: > This patch looks like it should be in the 3.8-stable tree, should we apply > it? > I don't see this as a candidate for stable. Its just an optimization and doesn't address any existing issue. Thanks, Davidlohr -- To unsubscribe from this

[Announce] Checkpoint-restore tool v0.5

2013-04-30 Thread Pavel Emelyanov
Ladies and Gentlemen, I'm glad to announce the 5th release of the checkpoint-restore tool! This release is mostly about the tool itself. The v3.9 kernel, with which the new CRIU tool should be used, only contains a couple of bug fixes related to the C/R project and no new related features. As for

[PATCH V2] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST

2013-04-30 Thread Julien Grall
Reset the IRQ_NOAUTOEN and IRQ_NOREQUEST flags that are enabled by default on ARM. If IRQ_NOAUTOEN is set, __setup_irq doesn't call irq_startup, that is responsible for calling irq_unmask at startup time. As a result event channels remain masked. The clear is already made in bind_evtchn_to_irq wit

Re: [linux-next-20130422] Bug in SLAB?

2013-04-30 Thread Christoph Lameter
On Wed, 1 May 2013, Tetsuo Handa wrote: > Christoph Lameter wrote: > > On Tue, 30 Apr 2013, Tetsuo Handa wrote: > > > > > The testcases still trigger BUG() at 32M: > > > > I thought we established that MAX_ORDER only allows a maximum of 8M sized > > allocations? Why are you trying 32M? > > Only f

Re: systemtap broken by removal of register_timer_hook

2013-04-30 Thread Frank Ch. Eigler
Hi - > [...] How about creating trace_tick() in > include/trace/events/timer.h and call it from tick_periodic() and > tick_sched_handle(). [...] Like this? >From facee64445c0dcc717e99c474c5c7dcdd31b9a74 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 3 Apr 2013 10:35:21 -0400 Sub

Re: [v3.9-rc8]: kernel BUG at mm/memcontrol.c:3994! (was: Re: [BUG][s390x] mm: system crashed)

2013-04-30 Thread Johannes Weiner
On Wed, Apr 24, 2013 at 08:50:01PM -0700, Hugh Dickins wrote: > On Wed, 24 Apr 2013, Johannes Weiner wrote: > > On Wed, Apr 24, 2013 at 03:18:51PM +0200, Michal Hocko wrote: > > > On Wed 24-04-13 12:42:55, Heiko Carstens wrote: > > > > On Thu, Apr 18, 2013 at 09:13:03AM +0200, Heiko Carstens wrote:

[PATCH] kmsg: honor dmesg_restrict sysctl on /dev/kmsg

2013-04-30 Thread Kees Cook
To fix /dev/kmsg, let's compare the existing interfaces and what they allow: - /proc/kmsg allows:  - open (SYSLOG_ACTION_OPEN) if CAP_SYSLOG since it uses a destructive single-reader interface (SYSLOG_ACTION_READ).  - everything, after an open. - syslog syscall allows:  - anything, if CAP_SYSL

[PATCH] ARM: dove: add si5351 clock driver to CuBox DT

2013-04-30 Thread Sebastian Hesselbarth
This patch adds the device tree node for si5351 clock generator and the corresponding oscillator connected to it. It also limits i2c frequency to 100kHz as there are bus locks reported on higher frequencies. Signed-off-by: Sebastian Hesselbarth --- Cc: Russell King Cc: Jason Cooper Cc: linux-ar

Re: [PATCH 02/10] freezer: skip waking up tasks with PF_FREEZER_SKIP set

2013-04-30 Thread Oleg Nesterov
On 04/30, Oleg Nesterov wrote: > > On 04/29, Colin Cross wrote: > > > > @@ -46,10 +46,10 @@ static int try_to_freeze_tasks(bool user_only) > > todo = 0; > > read_lock(&tasklist_lock); > > do_each_thread(g, p) { > > - if (p == current || !freeze_

Re: [PATCH 02/10] freezer: skip waking up tasks with PF_FREEZER_SKIP set

2013-04-30 Thread Oleg Nesterov
On 04/29, Colin Cross wrote: > > @@ -46,10 +46,10 @@ static int try_to_freeze_tasks(bool user_only) > todo = 0; > read_lock(&tasklist_lock); > do_each_thread(g, p) { > - if (p == current || !freeze_task(p)) > + if (p

RE: [PATCH 1/2 v15] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-30 Thread Sethi Varun-B16395
Hi Joerg, Would you take this patchset for 3.10 merge? Regards Varun > -Original Message- > From: Sethi Varun-B16395 > Sent: Wednesday, April 24, 2013 5:06 PM > To: j...@8bytes.org; io...@lists.linux-foundation.org; linuxppc- > d...@lists.ozlabs.org; linux-kernel@vger.kernel.org; > ga...@

Suspend resume problem (WAS Re: [ANNOUNCE] 3.8.10-rt6)

2013-04-30 Thread Sebastian Andrzej Siewior
* Clark Williams | 2013-04-29 16:19:25 [-0500]: >On Mon, 29 Apr 2013 22:12:02 +0200 >Sebastian Andrzej Siewior wrote: >> - suspend / resume seems to program program the timer wrong and wait >> ages until it continues. > >It has to be something we're doing when we apply RT to v3.8.x, sin

Re: [PATCH v2 2/4] c6x: Provide default implementation for dma_{alloc,free}_attrs

2013-04-30 Thread Mark Salter
On Tue, 2013-04-30 at 12:02 +0900, Damian Hobson-Garcia wrote: > Most architectures that define CONFIG_HAVE_DMA, have implementations for > both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do > not define CONFIG_HAVE_DMA also have both of these definitions provided by > dma-mappi

Re: [PATCH] memory hotplug: fix warnings

2013-04-30 Thread Andrew Morton
On Tue, 30 Apr 2013 09:54:18 -0700 (PDT) David Rientjes wrote: > On Tue, 30 Apr 2013, Andrew Morton wrote: > > > > > diff --git a/include/linux/memory.h b/include/linux/memory.h > > > > index 73817af..85c31a8 100644 > > > > --- a/include/linux/memory.h > > > > +++ b/include/linux/memory.h > > >

Re: [PATCH 09/10] sigtimedwait: use freezable blocking call

2013-04-30 Thread Oleg Nesterov
On 04/30, Colin Cross wrote: > On Tue, Apr 30, 2013 at 9:38 AM, Oleg Nesterov wrote: > > On 04/29, Colin Cross wrote: > >> > >> Avoid waking up every thread sleeping in a sigtimedwait call during > >> suspend and resume by calling a freezable blocking call. > > > > This doesn't explain why do want

Re: [PATCH] sata_highbank: Rename proc_name to the module name

2013-04-30 Thread Alexander Graf
On 04/30/2013 06:57 PM, Robert Richter wrote: From: Robert Richter mkinitrd looks at /sys/class/scsi_host/host$hostnum/proc_name to find the module name of a disk driver. Current name is "highbank-ahci" but the module is "sata_highbank". Rename it to match the module name. Cc: Rob Herring Cc: A

Re: [PATCH 09/10] sigtimedwait: use freezable blocking call

2013-04-30 Thread Oleg Nesterov
On 04/30, Oleg Nesterov wrote: > > On 04/29, Colin Cross wrote: > > > > Avoid waking up every thread sleeping in a sigtimedwait call during > > suspend and resume by calling a freezable blocking call. > > This doesn't explain why do want this change... > > OK, probably to avoid -EAGAIN from sigtime

Re: [PATCH 09/10] sigtimedwait: use freezable blocking call

2013-04-30 Thread Colin Cross
On Tue, Apr 30, 2013 at 9:38 AM, Oleg Nesterov wrote: > On 04/29, Colin Cross wrote: >> >> Avoid waking up every thread sleeping in a sigtimedwait call during >> suspend and resume by calling a freezable blocking call. > > This doesn't explain why do want this change... > > OK, probably to avoid -

[PATCH] sata_highbank: Rename proc_name to the module name

2013-04-30 Thread Robert Richter
From: Robert Richter mkinitrd looks at /sys/class/scsi_host/host$hostnum/proc_name to find the module name of a disk driver. Current name is "highbank-ahci" but the module is "sata_highbank". Rename it to match the module name. Cc: Rob Herring Cc: Alexander Graf Cc: v3.7.. Signed-off-by: Robe

Re: [PATCH] memory hotplug: fix warnings

2013-04-30 Thread David Rientjes
On Tue, 30 Apr 2013, Andrew Morton wrote: > > > diff --git a/include/linux/memory.h b/include/linux/memory.h > > > index 73817af..85c31a8 100644 > > > --- a/include/linux/memory.h > > > +++ b/include/linux/memory.h > > > @@ -137,7 +137,7 @@ enum mem_add_context { BOOT, HOTPLUG }; > > > #define re

Re: [TRIVIAL PATCH 08/26] m32r: Convert print_symbol to %pSR

2013-04-30 Thread Joe Perches
On Mon, 2013-04-29 at 15:21 +0200, Jiri Kosina wrote: > On Thu, 13 Dec 2012, Hirokazu Takata wrote: > > Acked-by: Hirokazu Takata Hi Jiri. It's really not useful to cherry-pick a few patches from this series. You must first apply patch 1 of 26 before applying any of the others as a new vsprintf

[tip:perf/urgent] perf/x86/intel: Fix unintended variable name reuse

2013-04-30 Thread tip-bot for Jan-Simon Möller
Commit-ID: 1b0dac2ac6debdbf1541e15f2cede03613cf4465 Gitweb: http://git.kernel.org/tip/1b0dac2ac6debdbf1541e15f2cede03613cf4465 Author: Jan-Simon Möller AuthorDate: Tue, 30 Apr 2013 12:02:33 +0200 Committer: Ingo Molnar CommitDate: Tue, 30 Apr 2013 13:12:47 +0200 perf/x86/intel: Fix uni

[tip:x86/urgent] x86/kconfig: Add a Kconfig shortcut for building working KVM guest kernels

2013-04-30 Thread tip-bot for Borislav Petkov
Commit-ID: 83aee67833071c7b73a83f7803388f7a9e481908 Gitweb: http://git.kernel.org/tip/83aee67833071c7b73a83f7803388f7a9e481908 Author: Borislav Petkov AuthorDate: Fri, 26 Apr 2013 11:51:40 +0200 Committer: Ingo Molnar CommitDate: Tue, 30 Apr 2013 11:00:11 +0200 x86/kconfig: Add a Kconf

[tip:perf/urgent] perf/x86/intel: Add support for IvyBridge model 58 Uncore

2013-04-30 Thread tip-bot for Vince Weaver
Commit-ID: 9a6bc14350b130427725f33e371e86212fa56c85 Gitweb: http://git.kernel.org/tip/9a6bc14350b130427725f33e371e86212fa56c85 Author: Vince Weaver AuthorDate: Mon, 29 Apr 2013 15:52:27 -0400 Committer: Ingo Molnar CommitDate: Tue, 30 Apr 2013 10:56:45 +0200 perf/x86/intel: Add support

[tip:perf/urgent] perf/x86/intel: Fix typo in perf_event_intel_uncore.c

2013-04-30 Thread tip-bot for Vince Weaver
Commit-ID: 80e217e9ca98a99d6ee95c8f4473b7ebf6d1b8ca Gitweb: http://git.kernel.org/tip/80e217e9ca98a99d6ee95c8f4473b7ebf6d1b8ca Author: Vince Weaver AuthorDate: Mon, 29 Apr 2013 15:49:28 -0400 Committer: Ingo Molnar CommitDate: Tue, 30 Apr 2013 10:56:44 +0200 perf/x86/intel: Fix typo in

[tip:perf/urgent] x86: Eliminate irq_mis_count counted in arch_irq_stat

2013-04-30 Thread tip-bot for Li Fei
Commit-ID: f7b0e1055574ce06ab53391263b4e205bf38daf3 Gitweb: http://git.kernel.org/tip/f7b0e1055574ce06ab53391263b4e205bf38daf3 Author: Li Fei AuthorDate: Fri, 26 Apr 2013 20:50:11 +0800 Committer: Ingo Molnar CommitDate: Tue, 30 Apr 2013 10:56:37 +0200 x86: Eliminate irq_mis_count coun

Re: [PATCH 09/10] sigtimedwait: use freezable blocking call

2013-04-30 Thread Oleg Nesterov
On 04/29, Colin Cross wrote: > > Avoid waking up every thread sleeping in a sigtimedwait call during > suspend and resume by calling a freezable blocking call. This doesn't explain why do want this change... OK, probably to avoid -EAGAIN from sigtimedwait() if the freezer wakes up the caller. >

Re: [PATCH -next] tty.h: fix build errors when PROC_FS is not enabled

2013-04-30 Thread David Rientjes
On Mon, 29 Apr 2013, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build error when CONFIG_PROC_FS is not enabled: > > include/linux/tty.h: In function 'proc_tty_register_driver': > include/linux/tty.h:698:52: error: parameter name omitted > include/linux/tty.h: In function 'proc_tty_unregis

Re: [PATCH -next] proc_fs.h: fix build error when PROC_FS is not enabled

2013-04-30 Thread David Rientjes
On Mon, 29 Apr 2013, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build error when CONFIG_PROC_FS is not enabled: > (remove duplicated line) > > include/linux/proc_fs.h:58:20: error: redefinition of 'proc_set_size' > include/linux/proc_fs.h:51:20: note: previous definition of 'proc_set_size

Re: [GIT PULL] scheduler changes for v3.10

2013-04-30 Thread Ingo Molnar
* Linus Torvalds wrote: > On Tue, Apr 30, 2013 at 9:23 AM, Ingo Molnar wrote: > > > > Linus, would you like me to revert d9a3c9823a2e and re-send the pull > > request? > > I took the pull request, but I'd like to see the non-64-bit divide > version before the merge window ends. [...] Yeah, w

Re: [PATCH] memory hotplug: fix warnings

2013-04-30 Thread Andrew Morton
On Tue, 30 Apr 2013 09:17:11 -0700 (PDT) David Rientjes wrote: > On Tue, 30 Apr 2013, Vincent Stehl__ wrote: > > > diff --git a/include/linux/memory.h b/include/linux/memory.h > > index 73817af..85c31a8 100644 > > --- a/include/linux/memory.h > > +++ b/include/linux/memory.h > > @@ -137,7 +137,

[GIT PULL] dlm updates for 3.10

2013-04-30 Thread David Teigland
Hi Linus, Please pull dlm updates from tag: git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git dlm-3.10 This includes a single patch to avoid fully processing a posix unlock from close when no posix locks exist on the file. Patch copied below. Thanks, Dave dlm: avoid unnece

Re: [GIT PULL] scheduler changes for v3.10

2013-04-30 Thread Linus Torvalds
On Tue, Apr 30, 2013 at 9:23 AM, Ingo Molnar wrote: > > Linus, would you like me to revert d9a3c9823a2e and re-send the pull > request? I took the pull request, but I'd like to see the non-64-bit divide version before the merge window ends. And with no more div_rem users I think we should at leas

Re: [PATCH 1/2] Make the batch size of the percpu_counter configurable

2013-04-30 Thread Tim Chen
On Tue, 2013-04-30 at 13:32 +, Christoph Lameter wrote: > On Mon, 29 Apr 2013, Tim Chen wrote: > > > diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h > > index d5dd465..5ca7df5 100644 > > --- a/include/linux/percpu_counter.h > > +++ b/include/linux/percpu_counter.h

Re: [GIT PULL] scheduler changes for v3.10

2013-04-30 Thread Ingo Molnar
* Stanislaw Gruszka wrote: > On Tue, Apr 30, 2013 at 07:49:43AM -0700, Linus Torvalds wrote: > > On Mon, Apr 29, 2013 at 11:58 PM, Ingo Molnar wrote: > > > > > > Please pull the latest sched-core-for-linus git tree from: > > > > > > The main changes in this development cycle were: > > > > > >

RE: Hyper-V stalls on device errors

2013-04-30 Thread KY Srinivasan
Thanks Sitsofe; we will look into this. Regards, K. Y > -Original Message- > From: Sitsofe Wheeler [mailto:sits...@yahoo.com] > Sent: Tuesday, April 30, 2013 12:12 PM > To: KY Srinivasan; Haiyang Zhang > Cc: de...@linuxdriverproject.org; James E.J. Bottomley; linux- > ker...@vger.kernel.

[PATCH v10 2/2] ARM: Enable selection of SMP operations at boot time

2013-04-30 Thread Stefano Stabellini
From: Jon Medhurst Add a new 'smp_init' hook to machine_desc so platforms can specify a function to be used to setup smp ops instead of having a statically defined value. The hook must return true when smp_ops are initialized. If false the static mdesc->smp_ops will be used by default. Add the

[PATCH v10 1/2] arm: introduce psci_smp_ops

2013-04-30 Thread Stefano Stabellini
Rename virt_smp_ops to psci_smp_ops and move them to arch/arm/kernel/psci_smp.c. Remove mach-virt/platsmp.c, now unused. Compile psci_smp if CONFIG_ARM_PSCI and CONFIG_SMP. Add a cpu_die smp_op based on psci_ops.cpu_off. Initialize PSCI before setting smp_ops in setup_arch. If PSCI is available

[PATCH v10 0/2] (arm-soc for v3.10) arm: introduce psci_smp_ops

2013-04-30 Thread Stefano Stabellini
Hi all, this is the tenth version of the patch series to move virt_smp_ops out of mach-virt and make it a generic set of reusable PSCI based smp_ops. psci_smp_ops are preferred over the platform smp_ops. The last patch introduces smp_init. Changes in v10: - add include to mach/arch.h. Jon Med

RE: [NEW DRIVER V6 5/7] drivers/gpio: DA9058 GPIO driver

2013-04-30 Thread Opensource [Anthony Olech]
> -Original Message- > From: Linus Walleij [mailto:linus.wall...@linaro.org] > Sent: 24 April 2013 14:15 > To: Opensource [Anthony Olech] > Cc: Grant Likely; Linus Walleij; Mark Brown; LKML; David Dajun Chen; Lee Jones > Subject: Re: [NEW DRIVER V6 5/7] drivers/gpio: DA9058 GPIO driver > On

Re: [PATCH] memory hotplug: fix warnings

2013-04-30 Thread David Rientjes
On Tue, 30 Apr 2013, Vincent Stehlé wrote: > diff --git a/include/linux/memory.h b/include/linux/memory.h > index 73817af..85c31a8 100644 > --- a/include/linux/memory.h > +++ b/include/linux/memory.h > @@ -137,7 +137,7 @@ enum mem_add_context { BOOT, HOTPLUG }; > #define register_hotmemory_notifi

[PATCH 5/5] pagemap: Prepare to reuse constant bits with page-shitf

2013-04-30 Thread Pavel Emelyanov
In order to reuse bits from pagemap entries gracefully, we leave the entries as is but on pagemap open emit a warning in dmesg, that bits 55-60 are about to change in a couple of releases. Next, if a user issues soft-dirty clear command via the clear_refs file (it was disabled before v3.9) we assu

[PATCH 4/5] mm: soft-dirty bits for user memory changes tracking

2013-04-30 Thread Pavel Emelyanov
The soft-dirty is a bit on a PTE which helps to track which pages a task writes to. In order to do this tracking one should 1. Clear soft-dirty bits from PTEs ("echo 4 > /proc/PID/clear_refs) 2. Wait some time. 3. Read soft-dirty bits (55'th in /proc/PID/pagemap entries) To do this tracking

[PATCH 3/5] pagemap: introduce pagemap_entry_t without pmshift bits

2013-04-30 Thread Pavel Emelyanov
These bits are always constant (== PAGE_SHIFT) and just occupy space in the entry. Moreover, in next patch we will need to report one more bit in the pagemap, but all bits are already busy on it. That said, describe the pagemap entry that has 6 more free zero bits. Signed-off-by: Pavel Emelyanov

[PATCH 2/5] clear_refs: introduce private struct for mm_walk

2013-04-30 Thread Pavel Emelyanov
In the next patch the clear-refs-type will be required in clear_refs_pte_range funciton, so prepare the walk->private to carry this info. Signed-off-by: Pavel Emelyanov Cc: Andrew Morton Cc: Matt Mackall Cc: Xiao Guangrong Cc: Glauber Costa Cc: Marcelo Tosatti Cc: KOSAKI Motohiro --- fs/pr

Re: Hyper-V stalls on device errors

2013-04-30 Thread Sitsofe Wheeler
Apologies for the previous empty mail. While testing a Windows 2012 host with a Fedora 18 guest running a 3.9 kernel I've found that Hyper-v will stall all access to (para)virtualised disk devices when an underlying disk device returns an error. Every ten seconds a tiny bit of I/O goes through bef

[PATCH 1/5] clear_refs: sanitize accepted commands declaration

2013-04-30 Thread Pavel Emelyanov
This is the implementation of the soft-dirty bit concept that should help keep track of changes in user memory, which in turn is very-very required by the checkpoint-restore project (http://criu.org). To create a dump of an application(s) we save all the information about it to files, and the bigg

[PATCH 0/5] mm: Ability to monitor task memory changes (v4)

2013-04-30 Thread Pavel Emelyanov
This is the resend and (while the iron is hot) the request for merge of the implementation of the soft-dirty bit concept that should help to track changes in user memory. This set differs from what Andrew has sent recently in a single point -- the way pagemap entries' bits are reused (patch #5, an

[GIT PULL] arm64 patches for 3.10-rc1

2013-04-30 Thread Catalin Marinas
Hi Linus, Please pull the arm64 patches below. Thanks. The following changes since commit 792072066d30372772137be9ee2f4d72d77329f9: arm64: Kconfig.debug: Remove unused CONFIG_DEBUG_ERRORS (2013-03-19 16:19:19 +) are available in the git repository at: git://git.kernel.org/pub/scm/linu

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Alex Williamson
On Tue, 2013-04-30 at 11:06 -0400, Don Dutile wrote: > On 04/30/2013 10:49 AM, Suravee Suthikulanit wrote: > > On 4/29/2013 3:10 PM, Don Dutile wrote: > >> On 04/29/2013 03:45 PM, Suravee Suthikulanit wrote: > >>> Joerg, > >>> > >>> We are in the process of implementing AMD IOMMU error handling, an

Re: [linux-next-20130422] Bug in SLAB?

2013-04-30 Thread Tetsuo Handa
Christoph Lameter wrote: > On Tue, 30 Apr 2013, Tetsuo Handa wrote: > > > The testcases still trigger BUG() at 32M: > > I thought we established that MAX_ORDER only allows a maximum of 8M sized > allocations? Why are you trying 32M? Only for regression testing. At least until Linux 3.9, requesti

Re: linux-next build error (at91) - use of bool in mach/arch.h

2013-04-30 Thread Stefano Stabellini
On Tue, 30 Apr 2013, Nicolas Pitre wrote: > On Tue, 30 Apr 2013, Stefano Stabellini wrote: > > > On Tue, 30 Apr 2013, Geert Uytterhoeven wrote: > > > On Tue, Apr 30, 2013 at 11:33 AM, Nicolas Ferre > > > wrote: > > > > So, I am wondering if the best correction is to add the types.h header > > >

Hyper-V stalls on device errors

2013-04-30 Thread Sitsofe Wheeler
-- Sitsofe | http://sucs.org/~sits/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: CONFIG_X86_INTEL_PSTATE disables CPU frequency transition stats, many governors and other standard features

2013-04-30 Thread Dirk Brandewie
On 04/29/2013 07:21 PM, Andy Lutomirski wrote: Out of curiosity, what is this driver doing? It uses aperf/mperf magic to (I think) estimate how busy the CPU has been recently. (This is clearly somewhat Intel-specific, but a similar estimate could be made using knowledge of the programmed frequ

WARNING: at kernel/cpu/idle.c:96

2013-04-30 Thread Markus Trippelsdorf
Just booted todays git tree and got the following warning: [ cut here ] WARNING: at kernel/cpu/idle.c:96 cpu_startup_entry+0x14d/0x160() Hardware name: System Product Name Pid: 0, comm: swapper/2 Not tainted 3.9.0-03462-gab86e97-dirty #424 Call Trace: smpboot: Booting Node

[PATCH 4/5] dmaengine: ste_dma40: Fetch the number of physical channels from DT

2013-04-30 Thread Lee Jones
Some platforms insist on obscure physical channel availability. This information is currently passed though platform data in internal BSP kernels. Once those platforms land, they'll need to configure them appropriately, so we may as well add the infrastructure. Cc: Vinod Koul Cc: Dan Williams Cc

[PATCH 5/5] dmaengine: ste_dma40: Fetch disabled channels from DT

2013-04-30 Thread Lee Jones
Some platforms have channels which are not available for normal use. This information is currently passed though platform data in internal BSP kernels. Once those platforms land, they'll need to configure them appropriately, so we may as well add the infrastructure. Cc: Vinod Koul Cc: Dan William

[PATCH 3/5] ARM: ux500: Stop passing DMA platform data though AUXDATA

2013-04-30 Thread Lee Jones
The DMA platform data is now empty due to some recent refactoring, so there is no longer a requirement to pass it though. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/cpu-db8500.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch

[PATCH 2/5] ARM: ux500: Pass DMA memcpy channels though Device Tree

2013-04-30 Thread Lee Jones
It's not possible to configure memcpy channels dynamically with DT. We're providing them despite the fact that they're the same as the hard-coded channels, as they will be removed once the u8500 platform goes DT-only. Signed-off-by: Lee Jones --- arch/arm/boot/dts/dbx5x0.dtsi |2 ++ 1 file c

[PATCH 1/5] dmaengine: ste_dma40: Allow memcpy channels to be configured from DT

2013-04-30 Thread Lee Jones
At this moment in time the memcpy channels which can be used by the D40 are fixed, as each supported platform in Mainline uses the same ones. However, platforms do exist which don't follow this convention, so these will need to be tailored. Fortunately, these platforms will be DT only, so this chan

Re: [PATCHv4] perf: Fix vmalloc ring buffer pages handling

2013-04-30 Thread Jiri Olsa
On Tue, Mar 19, 2013 at 03:35:09PM +0100, Jiri Olsa wrote: > On Tue, Mar 19, 2013 at 12:46:58PM +0100, Peter Zijlstra wrote: > > > > > are you going to include that, or should I repost it? > > > > Ah, please repost (and prettify) it, I'm still very limited in the > > amount of work that I can do

Re: [PATCH v17] pvpanic: pvpanic device driver

2013-04-30 Thread Paolo Bonzini
Il 05/04/2013 09:10, Hu Tao ha scritto: > pvpanic device is a qemu simulated device through which guest panic > event is sent to host. > > Signed-off-by: Hu Tao Ping. This will be in QEMU 1.5, is this on track for the 3.10 kernel? Thanks, Paolo > --- > > ref: http://lists.nongnu.org/archive

Re: [GIT PULL] scheduler changes for v3.10

2013-04-30 Thread Stanislaw Gruszka
On Tue, Apr 30, 2013 at 07:49:43AM -0700, Linus Torvalds wrote: > On Mon, Apr 29, 2013 at 11:58 PM, Ingo Molnar wrote: > > > > Please pull the latest sched-core-for-linus git tree from: > > > > The main changes in this development cycle were: > > > > - full dynticks preparatory work by Frederic

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-04-30 Thread Greg Kroah-Hartman
On Tue, Apr 30, 2013 at 01:59:55PM +0200, Rafael J. Wysocki wrote: > On Monday, April 29, 2013 04:10:19 PM Greg Kroah-Hartman wrote: > > On Mon, Apr 29, 2013 at 02:26:56PM +0200, Rafael J. Wysocki wrote: > > > +static inline bool device_supports_offline(struct device *dev) > > > +{ > > > + return d

Re: [PATCH] Reset PCIe devices to stop ongoing DMA

2013-04-30 Thread Don Dutile
On 04/30/2013 10:54 AM, Sumner, William wrote: I have installed your original patch set (from last November) and tested with three platforms, each with a different IO configuration. On the first platform crashdumps were consistently successful. On the second and third platforms, the reset of

Re: [PATCH v5 0/7] xen/arm: move to mach-virt and support SMP

2013-04-30 Thread Konrad Rzeszutek Wilk
On Fri, Apr 26, 2013 at 11:41:32AM +0100, Stefano Stabellini wrote: > Arnd, Olof, > during the last few merge windows Konrad has always sent the Xen ARM > patches to Linus via his tree, but this time (3.10 merge window), after > consulting with Konrad I am thinking of sending to Linus the pull > re

Fix off by one error in slab.h

2013-04-30 Thread Christoph Lameter
Subject: Fix off by one error in slab.h We ran into some strange issues as a result of an off by one isse in slab.h The root of the issue is the treatment of KMALLOC_SHIFT_HIGH that is confusing. Make KMALLOC_SHIFT_HIGH the first unsupported size instead of the last supported. Signed-off-by: C

[RFCv2] Re: BUG: using smp_processor_id() in preemptible [00000000] code: asm/8267

2013-04-30 Thread Jiri Olsa
On Wed, Mar 27, 2013 at 03:09:32PM +0100, Peter Zijlstra wrote: > On Wed, 2013-03-27 at 10:49 +0100, Borislav Petkov wrote: > > Ok, just for my own understanding: how do the events on the > > ->task_ctx->event_list relate to the current cpu in this path? I mean, > > we're on the task exit path here

Re: [PATCH 2/3 RFC] Driver core: Use generic offline/online for CPU offline/online

2013-04-30 Thread Greg Kroah-Hartman
On Tue, Apr 30, 2013 at 02:01:10PM +0200, Rafael J. Wysocki wrote: > On Monday, April 29, 2013 04:11:06 PM Greg Kroah-Hartman wrote: > > On Mon, Apr 29, 2013 at 02:28:02PM +0200, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > Rework the CPU hotplug code in drivers/base/cpu.c t

[GIT PULL] EFI fixes for tip/x86/efi

2013-04-30 Thread Matt Fleming
Hi guys, This pull includes fixes for the merge window material currently sitting in tip/x86/efi. The three patches from me fix bugs in the pstore code paths and the two from Dan are the results of his static analysis tool, including a fix for a locking bug. The changes are based on my efi-for-ti

Re: [GIT PULL] timer changes for v3.10

2013-04-30 Thread Linus Torvalds
On Tue, Apr 30, 2013 at 12:43 AM, Ingo Molnar wrote: > > Please pull the latest timers-core-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > timers-core-for-linus Hmm.. The "Use generic idle loop" patches from the SMP/hotplug pull conflicted with the "U

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Joerg Roedel
On Tue, Apr 30, 2013 at 09:56:22AM -0500, Suthikulpanit, Suravee wrote: > This sounds more like issue with the order of how things are > initialized in the system. No, the problem is that almost all BIOS-provided IVRS tables are buggy because they do not define a unity-mapped region for devices t

Re: linux-next build error (at91) - use of bool in mach/arch.h

2013-04-30 Thread Nicolas Pitre
On Tue, 30 Apr 2013, Stefano Stabellini wrote: > On Tue, 30 Apr 2013, Geert Uytterhoeven wrote: > > On Tue, Apr 30, 2013 at 11:33 AM, Nicolas Ferre > > wrote: > > > So, I am wondering if the best correction is to add the types.h header > > > file > > > in the asm/mach/arch.h file, like this: >

Re: [PATCH] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST when a VIRQ is bound

2013-04-30 Thread Julien Grall
On 04/30/2013 04:02 PM, Stefano Stabellini wrote: > On Mon, 29 Apr 2013, Julien Grall wrote: >> Reset the IRQ_NOAUTOEN and IRQ_NOREQUEST flags that are enabled by >> default on ARM. If IRQ_NOAUTOEN is set, __setup_irq doesn't call >> irq_startup, that is responsible for calling irq_unmask at start

[PATCH -tip 1/4 v2] sched: Avoid cputime scaling overflow

2013-04-30 Thread Stanislaw Gruszka
Here is patch, which add Linus cputime scaling algorithm to the kernel. This is follow up of commit d9a3c9823a2e6a543eb7807fb3d15d8233817ec5 "sched: Lower chances of cputime scaling overflow" which try to avoid multiplication overflow, but not guarantee that the overflow will not happen. Linus cr

[PATCH for-3.10] workqueue: correct handling of the pool spin_lock

2013-04-30 Thread Joonsoo Kim
When we fail to mutex_trylock(), we release the pool spin_lock and do mutex_lock(). After that, we should regrab the pool spin_lock, but, regrabbing is missed in current code. So correct it. Cc: Lai Jiangshan Signed-off-by: Joonsoo Kim diff --git a/kernel/workqueue.c b/kernel/workqueue.c index

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Don Dutile
On 04/30/2013 10:56 AM, Suravee Suthikulanit wrote: On 4/29/2013 4:42 PM, Don Dutile wrote: On 04/29/2013 04:34 PM, Duran, Leo wrote: I'm wondering if resetting the IOMMU at init-time (once) would clear any BIOS induced noise. Leo Well, depends what you mean by 'reset' (a) setting it up

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Don Dutile
On 04/30/2013 10:49 AM, Suravee Suthikulanit wrote: On 4/29/2013 3:10 PM, Don Dutile wrote: On 04/29/2013 03:45 PM, Suravee Suthikulanit wrote: Joerg, We are in the process of implementing AMD IOMMU error handling, and I would like some comments from you and the community. Currently, the AMD

Re: [PATCH V2 7/7] watchdog: ts72xx_wdt: use devm_*() functions

2013-04-30 Thread Guenter Roeck
On Tue, Apr 30, 2013 at 02:02:25PM +0900, Jingoo Han wrote: > Use devm_*() functions to make cleanup paths simpler. > > Signed-off-by: Jingoo Han > --- > No changes since v1: > Side note: If you make no changes, there is no need to send V2, especially not one marked as another version. Usually,

Re: [PATCH] xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST when a VIRQ is bound

2013-04-30 Thread Stefano Stabellini
On Mon, 29 Apr 2013, Julien Grall wrote: > Reset the IRQ_NOAUTOEN and IRQ_NOREQUEST flags that are enabled by > default on ARM. If IRQ_NOAUTOEN is set, __setup_irq doesn't call > irq_startup, that is responsible for calling irq_unmask at startup time. > As a result event channels remain masked. >

Re: [ANNOUNCE] 3.4.41-rt55-feat3

2013-04-30 Thread Steven Rostedt
On Tue, 2013-04-30 at 11:14 +0200, Tim Sander wrote: > Hi Steve and all RT Folks > > > I'm pleased to announce the 3.4.41-rt55-feat3 feature release. > > > > Note, I first uploaded -feat2 then realized I didn't add a compile fix by > > Mike Galbraith, and then created the -feat3 with that fix. >

Re: [GIT PULL] EFI merge botch fix

2013-04-30 Thread H. Peter Anvin
Yes, please send pull requests. Matt Fleming wrote: >On 30/04/13 09:47, Ingo Molnar wrote: >> The other problem is that tip:x86/efi also conflicts with current >-git, as >> of v3.9 - due to interaction with an EFI fix tree ... >> >> This is getting ugly pretty fast, so I'd suggest to re-do the

[ANNOUNCE] iproute2 3.9.0

2013-04-30 Thread Stephen Hemminger
This is update for iproute2 tools for 3.9 kernel. In addition the usual documentation fixes, this version includes the utilities to manage forwarding tables in bridge and vxlan. If you have been sitting on changes to iproute2 that are in net-next for 3.10 merge window, please submit them now. Ipr

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Suravee Suthikulanit
On 4/29/2013 4:42 PM, Don Dutile wrote: On 04/29/2013 04:34 PM, Duran, Leo wrote: I'm wondering if resetting the IOMMU at init-time (once) would clear any BIOS induced noise. Leo Well, depends what you mean by 'reset' (a) setting it up for OS use is effectively a reset, but doesn't quies

RE: [tip:x86/efi2] efivars: efivar_entry API

2013-04-30 Thread Seiji Aguchi
I confirmed that efi_pstore_read() and efi_pstore_erase() work correctly. Please feel free to add Tested-by: Seiji Aguchi > -Original Message- > From: Matt Fleming [mailto:matt.flem...@intel.com] > Sent: Tuesday, April 30, 2013 7:28 AM > To: Seiji Aguchi > Cc: linux-kernel@vger.kernel.or

RE: [PATCH] Reset PCIe devices to stop ongoing DMA

2013-04-30 Thread Sumner, William
I have installed your original patch set (from last November) and tested with three platforms, each with a different IO configuration. On the first platform crashdumps were consistently successful. On the second and third platforms, the reset of one specific PCI device on each platform (a diff

[GIT PULL] (arm/xen) 3.9-rc3-smp-6-tag

2013-04-30 Thread Stefano Stabellini
Hi Linus, this is my first pull request to you, Konrad decided to let me deal with the Xen/ARM stuff myself recently. Please pull the following tag (based on 3.9-rc3): git://git.kernel.org/pub/scm/linux/kernel/git/sstabellini/xen.git 3.9-rc3-smp-6-tag It contains a bunch of Xen/ARM specific chan

Re: [GIT PULL] scheduler changes for v3.10

2013-04-30 Thread Linus Torvalds
On Mon, Apr 29, 2013 at 11:58 PM, Ingo Molnar wrote: > > Please pull the latest sched-core-for-linus git tree from: > > The main changes in this development cycle were: > > - full dynticks preparatory work by Frederic Weisbecker Why does this have the crappy cputime scaling overflow code, when

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Suravee Suthikulanit
On 4/29/2013 3:10 PM, Don Dutile wrote: On 04/29/2013 03:45 PM, Suravee Suthikulanit wrote: Joerg, We are in the process of implementing AMD IOMMU error handling, and I would like some comments from you and the community. Currently, the AMD IOMMU driver only reports events from the event lo

RE: X86 fpu registers in a signal handler's ucontext

2013-04-30 Thread Mikael Pettersson
Warlich, Christof writes: > Mikael Pettersson writes: > > Write to the fpstate ->mxcsr and ->swd fields in the sigaction handler's > > uc_mcontext. > > To me, "sigaction handler's uc_mcontext" sounds like userspace, which really > confuses me: > Even in most recent glibc-2.17, uc_mcontex

<    1   2   3   4   5   >