Re: [PATCH v3] pstore/ftrace: Convert to its own enable/disable debugfs knob

2012-08-21 Thread Anton Vorontsov
On Tue, Aug 21, 2012 at 09:07:19PM -0400, Steven Rostedt wrote: [...] > I'm fine with it. I know there was some issues about recursion > protection and I said that the function tracer now has its own > protection where you don't need to worry about it. I was hoping that > code would make it into

Re: BUG: scheduling while atomic, under native_smp_prepare_cpus()

2012-08-21 Thread Michael Wang
On 08/22/2012 12:50 AM, Fengguang Wu wrote: > On Mon, Aug 20, 2012 at 05:42:22PM +0800, Michael Wang wrote: >> On 08/20/2012 05:27 PM, Fengguang Wu wrote: >>> Hi Michael, >>> >>> On Mon, Aug 20, 2012 at 05:20:35PM +0800, Michael Wang wrote: On 08/17/2012 09:49 PM, Fengguang Wu wrote:

Re: [PATCH v9 2/2] kvm: On Ack, De-assert & Notify KVM_IRQFD extension

2012-08-21 Thread Alex Williamson
On Wed, 2012-08-22 at 03:14 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 03:11:41PM -0600, Alex Williamson wrote: > > On Tue, 2012-08-21 at 23:37 +0300, Michael S. Tsirkin wrote: > > > On Tue, Aug 21, 2012 at 01:29:14PM -0600, Alex Williamson wrote: > > > > + } > > > > + > > >

[PATCH] block: replace __getblk_slow misfix by grow_dev_page fix

2012-08-21 Thread Hugh Dickins
Jeff, Your commit 91f68c89d8f3 ("block: fix infinite loop in __getblk_slow"), already gone into 3.* stable, is not good. Could you and your testers please give this alternative a try - I think it should work, and have started it on a few days' memory load on 3.5, but not tried your case. But,

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Alex Williamson
On Wed, 2012-08-22 at 03:41 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 03:14:54PM -0600, Alex Williamson wrote: > > On Tue, 2012-08-21 at 23:41 +0300, Michael S. Tsirkin wrote: > > > On Tue, Aug 21, 2012 at 02:06:19PM -0600, Alex Williamson wrote: > > > > On Tue, 2012-08-21 at

Re: [PATCH v9 0/2] kvm: level irqfd support

2012-08-21 Thread Alex Williamson
On Wed, 2012-08-22 at 03:31 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 01:28:57PM -0600, Alex Williamson wrote: > > Here's the much anticipated re-write of support for level irqfds. As > > Michael suggested, I've rolled the eoi/ack notification fd into > > KVM_IRQFD as a new mode.

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Rafael Aquini
On Wed, Aug 22, 2012 at 03:07:41AM +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 05:45:56PM -0300, Rafael Aquini wrote: > > On Tue, Aug 21, 2012 at 10:30:31PM +0300, Michael S. Tsirkin wrote: > > > On Tue, Aug 21, 2012 at 04:23:58PM -0300, Rafael Aquini wrote: > > > > On Tue, Aug 21,

Re: mm: kernel BUG at mm/memory.c:1230

2012-08-21 Thread Andrea Arcangeli
Hi everyone, On Thu, May 24, 2012 at 12:07:27PM -0700, Andrew Morton wrote: > On Thu, 24 May 2012 20:27:34 +0200 > Sasha Levin wrote: > > > Hi all, > > > > During fuzzing with trinity inside a KVM tools guest, using latest > > linux-next, I've stumbled on the following: > > > > [

Re: [PATCH 3/3] writeback: add dirty_ratio_time per bdi variable (NFS write performance)

2012-08-21 Thread Namjae Jeon
2012/8/21, Fengguang Wu : > On Tue, Aug 21, 2012 at 03:00:13PM +0900, Namjae Jeon wrote: >> 2012/8/20, Fengguang Wu : >> > On Mon, Aug 20, 2012 at 09:48:42AM +0900, Namjae Jeon wrote: >> >> 2012/8/19, Fengguang Wu : >> >> > On Sat, Aug 18, 2012 at 05:50:02AM -0400, Namjae Jeon wrote: >> >> >>

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-21 Thread Greg Thelen
On Tue, Aug 21 2012, Michal Hocko wrote: > On Tue 21-08-12 13:22:09, Glauber Costa wrote: >> On 08/21/2012 11:54 AM, Michal Hocko wrote: > [...] >> > But maybe you have a good use case for that? >> > >> Honestly, I don't. For my particular use case, this would be always on, >> and end of story.

Re: [PATCH v3] pstore/ftrace: Convert to its own enable/disable debugfs knob

2012-08-21 Thread Steven Rostedt
On Mon, 2012-08-20 at 18:46 -0700, Anton Vorontsov wrote: > On Wed, Jul 18, 2012 at 12:30:52PM -0700, Anton Vorontsov wrote: > > With this patch we no longer reuse function tracer infrastructure, now > > we register our own tracer back-end via a debugfs knob. > > > > It's a bit more code, but

Re: lockdep warning on rt_mutex_lock()

2012-08-21 Thread Fengguang Wu
On Tue, Aug 21, 2012 at 12:21:49PM -0700, Paul E. McKenney wrote: > On Sat, Aug 18, 2012 at 12:59:08PM +0800, Fengguang Wu wrote: > > On Fri, Aug 17, 2012 at 07:44:37AM -0700, Paul E. McKenney wrote: > > > On Fri, Aug 17, 2012 at 10:02:40PM +0800, Fengguang Wu wrote: > > > > On Fri, Aug 17, 2012

Re: [PATCH 7/8] cpufreq: Remove support for hardware P-state chips from powernow-k8

2012-08-21 Thread Thomas Renninger
On Monday 20 August 2012 22:49:16 Rafael J. Wysocki wrote: > On Monday, August 20, 2012, Andre Przywara wrote: > > On 08/05/2012 11:33 PM, Rafael J. Wysocki wrote: > > > On Thursday, July 26, 2012, Andre Przywara wrote: ... > > > > If you insist, I can keep the code in powernow-k8, but it

Re: [RFC PATCH 2/2] mm: Batch page_check_references in shrink_page_list sharing the same i_mmap_mutex

2012-08-21 Thread Tim Chen
On Tue, 2012-08-21 at 09:21 -0400, Matthew Wilcox wrote: > On Mon, Aug 20, 2012 at 09:43:02AM -0700, Tim Chen wrote: > > > In shrink_page_list, call to page_referenced_file will causes the > > > acquisition/release of mapping->i_mmap_mutex for each page in the page > > > list. However, it is very

Re: [PATCH 3/8] cpufreq: Add compatibility hack to powernow-k8

2012-08-21 Thread Thomas Renninger
On Thursday 26 July 2012 14:28:39 Andre Przywara wrote: > From: Matthew Garrett > > cpufreq modules are often loaded from init scripts that assume that all > recent AMD systems will use powernow-k8, so we should ensure that loading > it triggers a load of acpi-cpufreq if the latter is built as a

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 03:14:54PM -0600, Alex Williamson wrote: > On Tue, 2012-08-21 at 23:41 +0300, Michael S. Tsirkin wrote: > > On Tue, Aug 21, 2012 at 02:06:19PM -0600, Alex Williamson wrote: > > > On Tue, 2012-08-21 at 22:58 +0300, Michael S. Tsirkin wrote: > > > > On Tue, Aug 21, 2012 at

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 03:01:37PM +0930, Rusty Russell wrote: > On Wed, 15 Aug 2012 14:28:51 +0300, "Michael S. Tsirkin" > wrote: > > On Wed, Aug 15, 2012 at 12:16:51PM +0100, Mel Gorman wrote: > > > I was thinking of exactly that page->mapping == balloon_mapping check. As > > > I > > > do not

[PATCH 4/4] time: Avoid making adjustments if we havne't accumulated anything

2012-08-21 Thread John Stultz
If update_wall_time() is called and the current offset isn't large enough to accumulate, avoid re-calling timekeeping_adjust which may change the clock freq and can cause 1ns inconsistencies with CLOCK_REALTIME_COARSE/CLOCK_MONOTONIC_COARSE. Cc: Ingo Molnar Cc: Prarit Bhargava Cc: Thomas

[PATCH 2/4] time: Fix casting issue in timekeeping_forward_now

2012-08-21 Thread John Stultz
From: Andreas Schwab arch_gettimeoffset returns a u32 value which when shifted by tk->shift can overflow. Cast it to u64 first. This issue was introduced with 1e75fa8be9fb61e1af46b5b3b176347a4c958ca1 Cc: Ingo Molnar Cc: Prarit Bhargava Cc: Thomas Gleixner Signed-off-by: Andreas Schwab

[PATCH 3/4] time: Avoid potential shift-overflow with large shift values

2012-08-21 Thread John Stultz
Andreas Schwab noted that the 1 << tk->shift could overflow if the shift value was greater then 30, since 1 would be a 32bit long on 32bit architectures. This patch uses 1ULL instead to ensure we don't overflow on the shift. This issue was introduced by 1e75fa8be9fb61e1af46b5b3b176347a4c958ca1

[PATCH 1/4] time: Ensure we normalize the timekeeper in tk_xtime_add

2012-08-21 Thread John Stultz
Andreas noticed problems with resume on specific hardware after commit 1e75fa8be9fb61e1af46b5b3b176347a4c958ca1 combined with commit b44d50dcacea0d485ca2ff9140f8cc28ee22f28d After some digging I realized we aren't normalizing the timekeeper after the add. This patch to correct this resolved the

[PATCH 0/4] Time fixes for 3.6

2012-08-21 Thread John Stultz
Thomas, Ingo, Here are four small time fixes for 3.6 that apply against tip/timers/urgent. One patch resolves the suspend issue Andreas saw. The next two are casting fixes for potential overflows on 32bits, that Andreas found, but haven't been observed in the wild. Finally the last one

Re: [PATCH v9 0/2] kvm: level irqfd support

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 01:28:57PM -0600, Alex Williamson wrote: > Here's the much anticipated re-write of support for level irqfds. As > Michael suggested, I've rolled the eoi/ack notification fd into > KVM_IRQFD as a new mode. For lack of a better name, as there seems to > be objections to

Re: [PATCH v9 2/2] kvm: On Ack, De-assert & Notify KVM_IRQFD extension

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 03:11:41PM -0600, Alex Williamson wrote: > On Tue, 2012-08-21 at 23:37 +0300, Michael S. Tsirkin wrote: > > On Tue, Aug 21, 2012 at 01:29:14PM -0600, Alex Williamson wrote: > > > For VFIO based device assignment we'd like a mechanism to allow level > > > triggered

Re: [GIT] Networking

2012-08-21 Thread Al Viro
On Tue, Aug 21, 2012 at 04:38:23PM -0700, David Miller wrote: > 8) Fix all the netprio file handling bugs found by Al Viro, from John >Fastabend. Great, I was just about to start figuring out how to deal with inter-tree dependencies; now I'll just rebase my internal queue ;-) (I've added

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 05:45:56PM -0300, Rafael Aquini wrote: > On Tue, Aug 21, 2012 at 10:30:31PM +0300, Michael S. Tsirkin wrote: > > On Tue, Aug 21, 2012 at 04:23:58PM -0300, Rafael Aquini wrote: > > > On Tue, Aug 21, 2012 at 10:13:30PM +0300, Michael S. Tsirkin wrote: > > > > > > > > > > I

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 04:34:39PM -0300, Rafael Aquini wrote: > On Tue, Aug 21, 2012 at 10:16:12PM +0300, Michael S. Tsirkin wrote: > > On Tue, Aug 21, 2012 at 02:55:03PM -0300, Rafael Aquini wrote: > > > On Tue, Aug 21, 2012 at 04:52:23PM +0300, Michael S. Tsirkin wrote: > > > > > + *

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread Jim Rees
Al Viro wrote: On Tue, Aug 21, 2012 at 05:22:27PM -0400, Jim Rees wrote: > J. Bruce Fields wrote: > > From: "J. Bruce Fields" > > I've seen a couple examples recently where we've gotten this wrong. > Maybe something like this would help? Is there some better way? >

[PATCH 1/1] tcp: Wrong timeout for SYN segments

2012-08-21 Thread Alex Bergmann
Hi David, I'm not 100% sure, but it looks like I found an RFC mismatch with the current default values of the TCP implementation. Alex >From 8b854a525eb45f64ad29dfab16f9d9f681e84495 Mon Sep 17 00:00:00 2001 From: Alexander Bergmann Date: Wed, 22 Aug 2012 00:29:08 +0200 Subject: [PATCH 1/1]

[GIT PULL for v3.6-rc3] media fixes

2012-08-21 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media v4l_for_linus For bug fixes, at soc_camera, si470x, uvcvideo, iguanaworks IR driver, radio_shark Kbuild fixes, and at the V4L2 core (radio fixes). Thank you! Mauro - The following changes since

Re: [PATCH 0/4] PCI/PM: PCI D3cold support fixes for 3.6-rc1

2012-08-21 Thread Bjorn Helgaas
On Sun, Aug 19, 2012 at 6:09 PM, huang ying wrote: > Hi, Bjorn, > > Could you please merge this patchset? They fix real bugs. I assume you wanted the updated "[PATCH 3/4] PCI/PM: Fix config reg access ..." patch posted Aug 15. I merged these (with the updated 3/4 patch) to my "for-linus"

Re: [PATCH 00/25] Crypto keys and module signing

2012-08-21 Thread Rusty Russell
On Thu, 16 Aug 2012 02:34:05 +0100, David Howells wrote: > > Hi Rusty, > > I've posted new versions of my module signing patches to my GIT trees. Now I get to punt this discussion to KS. I knew it was good for something! Cheers, Rusty. -- To unsubscribe from this list: send the line

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-21 Thread Rusty Russell
On Wed, 15 Aug 2012 14:28:51 +0300, "Michael S. Tsirkin" wrote: > On Wed, Aug 15, 2012 at 12:16:51PM +0100, Mel Gorman wrote: > > I was thinking of exactly that page->mapping == balloon_mapping check. As I > > do not know how many active balloon drivers there might be I cannot guess > > in

[GIT] Networking

2012-08-21 Thread David Miller
A couple weeks of bug fixing in there. The largest chunk is all the broken crap Amerigo Wang found in the netpoll layer. 1) netpoll and it's users has several serious bugs: a) uses GFP_KERNEL with locks held b) interfaces requiring interrupts disabled are called with them enabled

Re: [PATCH v6 3/4] cgroup: add xattr support

2012-08-21 Thread Hugh Dickins
On Tue, 21 Aug 2012, Tejun Heo wrote: > On Tue, Aug 21, 2012 at 11:43:44PM +0200, Lennart Poettering wrote: > > >I'm not against this but unsure whether using kmem is enough for the > > >suggested use case. Lennart, would this suit systemd? How much > > >metadata are we talking about? > > > >

[PATCH] tools lib traceevent: Modify header to work in C++ programs

2012-08-21 Thread Steven Rostedt
Arnaldo, As the libtraceevent library is also used by powertop, and that is written in *cough* C++ *cough*, we need to make sure that the headers do not have any C++ reserved words. Please apply this patch. Thanks. -- Steve Steven Rostedt (1): tools lib traceevent: Modify header to work

Re: [PATCH RT 2/2] fix printk flush of messages

2012-08-21 Thread Frank Rowand
added recipients... On 08/21/12 07:30, Michael Thalmeier wrote: > Frank Rowand am.sony.com> writes: > >> >> >> Updates console-make-rt-friendly.patch >> >> #ifdef CONFIG_PREEMPT_RT_FULL, printk() output is never flushed by >> printk() because: >> ... >> >> On system boot some printk() output is

Re: [RFC PATCH 2/2] mm: Batch page_check_references in shrink_page_list sharing the same i_mmap_mutex

2012-08-21 Thread Tim Chen
On Tue, 2012-08-21 at 09:21 -0400, Matthew Wilcox wrote: > > The only clunky bit would seem to be this bit: > > > if (page_mapped(page) && mapping) { > > - switch (try_to_unmap(page, TTU_UNMAP)) { > > + switch (try_to_unmap(page, TTU_UNMAP, > > +

[PATCH 1/2] console: use might_sleep in console_lock

2012-08-21 Thread Daniel Vetter
Instead of BUG_ON(in_interrupt()), since that doesn't check for all the newfangled stuff like preempt. Note that this is valid since the console_sem is essentially used like a real mutex with only two twists: - we allow trylock from hardirq context - across suspend/resume we lock the logical

[PATCH 2/2] console: implement lockdep support for console_lock

2012-08-21 Thread Daniel Vetter
Dave Airlie recently discovered a locking bug in the fbcon layer, where a timer_del_sync (for the blinking cursor) deadlocks with the timer itself, since both (want to) hold the console_lock: https://lkml.org/lkml/2012/8/21/36 Unfortunately the console_lock isn't a plain mutex and hence has no

[PATCH 0/2] console_lock debug improvements

2012-08-21 Thread Daniel Vetter
Hi all, After Dave Airlie blew through a few days to track down a deadlock at boot-up when handing over from the firmware fb to the kms/drm framebuffer driver (1), I've figured that lockdep /should/ have caught this. And indeed, by adding proper annotations to the console_lock it complains

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread J. Bruce Fields
On Tue, Aug 21, 2012 at 11:06:13PM +0100, Al Viro wrote: > On Tue, Aug 21, 2012 at 05:22:27PM -0400, Jim Rees wrote: > > J. Bruce Fields wrote: > > > > From: "J. Bruce Fields" > > > > I've seen a couple examples recently where we've gotten this wrong. > > Maybe something like this would

Re: [PATCHv3 3/9] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-21 Thread Alan Cox
On Wed, 22 Aug 2012 08:47:32 +1200 Tony Prisk wrote: > Signed-off-by: Tony Prisk > --- > drivers/tty/serial/vt8500_serial.c | 37 > > 1 file changed, 33 insertions(+), 4 deletions(-) Can we have a comment attached to a change this size. In particular

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread Al Viro
On Tue, Aug 21, 2012 at 05:22:27PM -0400, Jim Rees wrote: > J. Bruce Fields wrote: > > From: "J. Bruce Fields" > > I've seen a couple examples recently where we've gotten this wrong. > Maybe something like this would help? Is there some better way? > > (Approximation due to Jim

Re: [RFC] Move kfree outside pde_unload_lock

2012-08-21 Thread Alexey Dobriyan
On Tue, Aug 21, 2012 at 03:54:54PM -0500, Nathan Zimmer wrote: > I am currently tracking a hotlock reported by a customer on a large, 512 > cores, > system, I am currently running 3.6.0 rc1 but the issue looks like it has been > this way for a very long time. > The offending lock is

Re: [PATCH v2 17/31] arm64: System calls handling

2012-08-21 Thread Catalin Marinas
On Tue, Aug 21, 2012 at 09:14:01PM +0100, Arnd Bergmann wrote: > On Tuesday 21 August 2012, Catalin Marinas wrote: > > > > +asmlinkage long sys_mmap(unsigned long addr, unsigned long len, > > > > +unsigned long prot, unsigned long flags, > > > > +unsigned

Re: [MMTests] dbench4 async on ext3

2012-08-21 Thread Jan Kara
On Mon 23-07-12 22:21:46, Mel Gorman wrote: > Configuration:global-dhp__io-dbench4-async-ext3 > Result: > http://www.csn.ul.ie/~mel/postings/mmtests-20120424/global-dhp__io-dbench4-async-ext3 > Benchmarks: dbench4 > > Summary > === > > In general there was a massive drop in

Re: [PATCH] ide: fix generic_ide_suspend/resume Oops

2012-08-21 Thread David Miller
From: Miklos Szeredi Date: Tue, 21 Aug 2012 17:20:30 +0200 > From: Miklos Szeredi > > This patch fixes a regresion introduced by commit 0998d063 (device-core: > Ensure > drvdata = NULL when no driver is bound). > > Suspend oopses in generic_ide_suspend() because dev_get_drvdata() > returns

[PATCH] perf: do not flush maps on COMM for perf report

2012-08-21 Thread Luigi Semenzato
This fixes a long-standing bug caused by the lack of separate COMM and EXEC record types, which makes "perf report" lose track of symbols when a process renames itself. With this fix (suggested by Stephane Eranian), a COMM (rename) no longer flushes the maps, which is the correct behavior. An

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-21 Thread Greg Thelen
On Thu, Aug 09 2012, Glauber Costa wrote: > This patch introduces infrastructure for tracking kernel memory pages to > a given memcg. This will happen whenever the caller includes the flag > __GFP_KMEMCG flag, and the task belong to a memcg other than the root. > > In memcontrol.h those functions

Re: [PATCH v6 3/4] cgroup: add xattr support

2012-08-21 Thread Tejun Heo
Hello, On Tue, Aug 21, 2012 at 11:43:44PM +0200, Lennart Poettering wrote: > >I'm not against this but unsure whether using kmem is enough for the > >suggested use case. Lennart, would this suit systemd? How much > >metadata are we talking about? > > Just small things, like values, PIDs, i.e.

Re: [PATCH 0/5] Memory policy corruption fixes V2

2012-08-21 Thread Andi Kleen
> I tested this with trinity with CONFIG_DEBUG_SLAB enabled and it passed. I > did not test LTP such as Josh reported a problem with or with a database that > used shared policies like Andi tested. The series is almost all Kosaki's > work of course. If he has a revised series that simply got

Re: [PATCH v6 3/4] cgroup: add xattr support

2012-08-21 Thread Lennart Poettering
Heya, (sorry for the late reply) On 16.08.2012 22:00, Tejun Heo wrote: On Thu, Aug 16, 2012 at 01:44:56PM -0400, a...@redhat.com wrote: Attaching meta information to services, in an easily discoverable way. For example, in systemd we create one cgroup for each service, and could then store

Re: [PATCH v2 1/4] pinctrl: add samsung pinctrl and gpiolib driver

2012-08-21 Thread Stephen Warren
On 08/21/2012 05:25 AM, Linus Walleij wrote: > On Wed, Aug 15, 2012 at 9:57 PM, Thomas Abraham > wrote: > >> Add a new device tree enabled pinctrl and gpiolib driver for Samsung >> SoC's. ... >> + The child node can also optionally specify one or more of the pin >> + configuration that should

Re: [PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread Jim Rees
J. Bruce Fields wrote: From: "J. Bruce Fields" I've seen a couple examples recently where we've gotten this wrong. Maybe something like this would help? Is there some better way? (Approximation due to Jim Rees). Please add Suggested-by: Jim Rees . I'm thinking of patenting the

Re: [PATCH] task_work: add a scheduling point in task_work_run()

2012-08-21 Thread Eric Dumazet
On Tue, 2012-08-21 at 16:37 -0400, Mimi Zohar wrote: > We're here, because fput() called schedule_work() to delay the last > fput(). The execution needs to take place before the syscall returns to > userspace. Need to read __schedule()... Do you know if cond_resched() > can guarantee that it

[PATCH] strings: helper for maximum decimal encoding of an unsigned integer

2012-08-21 Thread J. Bruce Fields
From: "J. Bruce Fields" I've seen a couple examples recently where we've gotten this wrong. Maybe something like this would help? Is there some better way? (Approximation due to Jim Rees). Signed-off-by: J. Bruce Fields --- include/linux/string.h |6 ++ net/sunrpc/cache.c |2

Re: [PATCH v2 0/5] X86/XEN: Merge x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done setup functions and document its semantic

2012-08-21 Thread Thomas Gleixner
On Tue, 21 Aug 2012, Attilio Rao wrote: > Differences with v1: > - The patch serie is re-arranged in a way that it helps reviews, following > a plan by Thomas Gleixner > - The PVOPS nomenclature is not used as it is not correct > - The front-end message is adjusted with feedback by Thomas

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Alex Williamson
On Tue, 2012-08-21 at 23:41 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 02:06:19PM -0600, Alex Williamson wrote: > > On Tue, 2012-08-21 at 22:58 +0300, Michael S. Tsirkin wrote: > > > On Tue, Aug 21, 2012 at 01:29:06PM -0600, Alex Williamson wrote: > > > > KVM_IRQFD currently uses

Re: [PATCH 0/4] fat: fix ESTALE errors

2012-08-21 Thread Bastien ROUCARIES
On Tue, Aug 21, 2012 at 8:41 AM, OGAWA Hirofumi wrote: > Namjae Jeon writes: > >> And.. Hi Ogawa. >> I checked other filesystem about unlink - inode issue. but I found >> Ext4 have same issue. >> Although other filesysm is having this issue, Can we think It could be >> only FAT issue ? > > (I

Re: [PATCH v9 2/2] kvm: On Ack, De-assert & Notify KVM_IRQFD extension

2012-08-21 Thread Alex Williamson
On Tue, 2012-08-21 at 23:37 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 01:29:14PM -0600, Alex Williamson wrote: > > For VFIO based device assignment we'd like a mechanism to allow level > > triggered interrutps to be directly injected into KVM. KVM_IRQFD > > already allows this

RE: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread Yu, Fenghua
> -Original Message- > From: H. Peter Anvin [mailto:h...@zytor.com] > Sent: Tuesday, August 21, 2012 1:54 PM > To: Yu, Fenghua > Cc: Borislav Petkov; Henrique de Moraes Holschuh; Ingo Molnar; Thomas > Gleixner; Mallick, Asit K; Tigran Aivazian; Andreas Herrmann; Borislav > Petkov;

[RFC] Move kfree outside pde_unload_lock

2012-08-21 Thread Nathan Zimmer
I am currently tracking a hotlock reported by a customer on a large, 512 cores, system, I am currently running 3.6.0 rc1 but the issue looks like it has been this way for a very long time. The offending lock is proc_dir_entry->pde_unload_lock. In proc_reg_release we are doing a kfree under the

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread H. Peter Anvin
On 08/21/2012 01:52 PM, Yu, Fenghua wrote: >> -Original Message- >> From: Borislav Petkov [mailto:b...@amd64.org] >> Sent: Tuesday, August 21, 2012 1:49 PM >> To: H. Peter Anvin >> Cc: Yu, Fenghua; Henrique de Moraes Holschuh; Ingo Molnar; Thomas >> Gleixner; Mallick, Asit K; Tigran

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread H. Peter Anvin
On 08/21/2012 01:48 PM, Borislav Petkov wrote: > On Tue, Aug 21, 2012 at 01:13:26PM -0700, H. Peter Anvin wrote: >> I don't know what Borislav was suggesting with "BIOS overrides", is >> that another CPU-specific thing? > > Not CPU- but rather platform-specific. It is Thomas Renninger's >

RE: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread Yu, Fenghua
> -Original Message- > From: Borislav Petkov [mailto:b...@amd64.org] > Sent: Tuesday, August 21, 2012 1:49 PM > To: H. Peter Anvin > Cc: Yu, Fenghua; Henrique de Moraes Holschuh; Ingo Molnar; Thomas > Gleixner; Mallick, Asit K; Tigran Aivazian; Andreas Herrmann; Borislav > Petkov;

[PATCHv3 9/9] arm: vt8500: clk: Add Common Clock Framework support

2012-08-21 Thread Tony Prisk
This patch adds common clock framework support for arch-vt8500. Support for PLL and device clocks on VT8500, WM8505 and WM8650 are included. Signed-off-by: Tony Prisk --- drivers/clk/Makefile |1 + drivers/clk/clk-vt8500.c | 496 ++ 2 files

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread Borislav Petkov
On Tue, Aug 21, 2012 at 01:13:26PM -0700, H. Peter Anvin wrote: > I don't know what Borislav was suggesting with "BIOS overrides", is > that another CPU-specific thing? Not CPU- but rather platform-specific. It is Thomas Renninger's mechanism to override BIOS tables. -- Regards/Gruss, Boris.

[PATCHv3 3/9] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-21 Thread Tony Prisk
Signed-off-by: Tony Prisk --- drivers/tty/serial/vt8500_serial.c | 37 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/vt8500_serial.c b/drivers/tty/serial/vt8500_serial.c index 2be006f..72e32db 100644 ---

[PATCHv3 4/9] usb: vt8500: Add devicetree support for vt8500-ehci and -uhci.

2012-08-21 Thread Tony Prisk
Add devicetree support for vt8500-ehci. Convert vt8500-uhci to a generic non-pci platform-uhci with device tree support. Signed-off-by: Tony Prisk --- drivers/usb/host/Kconfig |4 +- drivers/usb/host/ehci-vt8500.c | 25 -- drivers/usb/host/uhci-hcd.c |5 ++

[PATCHv3 5/9] video: vt8500: Add devicetree support for vt8500-fb and wm8505-fb

2012-08-21 Thread Tony Prisk
Update vt8500-fb, wm8505-fb and wmt-ge-rops to support device tree bindings. Small change in wm8505-fb.c to support WM8650 framebuffer color format. Signed-off-by: Tony Prisk --- drivers/video/Kconfig |6 +-- drivers/video/vt8500lcdfb.c | 79 ++-

[PATCHv3 0/9] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-21 Thread Tony Prisk
This patchset updates arch-vt8500 to devicetree and removes all the old-style code. Support for WM8650 has also been added. Example dts/dtsi files are given for the three currently supported models. Major changes: GPIO code has been converted to a platform_device and rewritten as WM8505 support

[PATCHv3 2/9] rtc: vt8500: Add devicetree support for vt8500-rtc

2012-08-21 Thread Tony Prisk
Signed-off-by: Tony Prisk --- drivers/rtc/rtc-vt8500.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c index 9e94fb1..07bf193 100644 --- a/drivers/rtc/rtc-vt8500.c +++ b/drivers/rtc/rtc-vt8500.c @@ -23,6 +23,7 @@

[PATCHv3 1/9] arm: vt8500: Add device tree files for VIA/Wondermedia SoC's

2012-08-21 Thread Tony Prisk
Add device tree files for VT8500, WM8505 and WM8650 SoC's and reference boards. Signed-off-by: Tony Prisk --- arch/arm/boot/dts/vt8500-bv07.dts | 31 + arch/arm/boot/dts/vt8500.dtsi | 100 +++ arch/arm/boot/dts/wm8505-ref.dts | 31 +

[PATCHv3 8/9] arm: vt8500: gpio: Devicetree support for arch-vt8500

2012-08-21 Thread Tony Prisk
Converted the existing arch-vt8500 gpio to a platform_device. Added support for WM8505 and WM8650 GPIO controllers. Signed-off-by: Tony Prisk --- drivers/gpio/Kconfig |6 + drivers/gpio/Makefile |1 + drivers/gpio/gpio-vt8500.c | 313

[PATCHv3 7/9] arm: vt8500: doc: Add device tree bindings for arch-vt8500 devices

2012-08-21 Thread Tony Prisk
Bindings for gpio, interrupt controller, power management controller, timer, realtime clock, serial uart, ehci and uhci controllers and framebuffer controllers used on the arch-vt8500 platform. Framebuffer binding also specifies a 'display' node which is required for determining the lcd panel

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Rafael Aquini
On Tue, Aug 21, 2012 at 10:30:31PM +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 04:23:58PM -0300, Rafael Aquini wrote: > > On Tue, Aug 21, 2012 at 10:13:30PM +0300, Michael S. Tsirkin wrote: > > > > > > > > I believe rcu_dereference_protected() is what I want/need here, since > > >

[PATCH -next] HID: picoLCD: Add missing #include

2012-08-21 Thread Geert Uytterhoeven
m68k/allmodconfig: drivers/hid/hid-picolcd_debugfs.c: In function ‘picolcd_debug_reset_write’: drivers/hid/hid-picolcd_debugfs.c:54: error: implicit declaration of function ‘copy_from_user’ drivers/hid/hid-picolcd_debugfs.c: In function ‘picolcd_debug_eeprom_read’:

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 02:06:19PM -0600, Alex Williamson wrote: > On Tue, 2012-08-21 at 22:58 +0300, Michael S. Tsirkin wrote: > > On Tue, Aug 21, 2012 at 01:29:06PM -0600, Alex Williamson wrote: > > > KVM_IRQFD currently uses the reserved KVM_USERSPACE_IRQ_SOURCE_ID > > > which is also shared

Re: [PATCH 3/5] X86/XEN: Introduce the x86_init.paging.pagetable_init PVOPS

2012-08-21 Thread Attilio Rao
On 21/08/12 16:44, Thomas Gleixner wrote: On Tue, 21 Aug 2012, Attilio Rao wrote: This new PVOPS is responsible to setup the kernel pagetables and replace entirely x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done PVOPS work. For performance the

Re: [PATCH] task_work: add a scheduling point in task_work_run()

2012-08-21 Thread Mimi Zohar
On Tue, 2012-08-21 at 15:05 +0200, Eric Dumazet wrote: > From: Eric Dumazet > > It seems commit 4a9d4b02 (switch fput to task_work_add) reintroduced > the problem addressed in commit 944be0b2 (close_files(): add scheduling > point) > > If a server process with a lot of files (say 2 million tcp

[PATCH v2 2/5] X86/XEN: Rename pagetable_setup_start() setup functions into pagetable_init()

2012-08-21 Thread Attilio Rao
In preparation for unifying the pagetable_setup_start() and pagetable_setup_done() setup functions, rename appropriately all the infrastructure related to pagetable_setup_start(). Signed-off-by: Attilio Rao --- arch/x86/include/asm/pgtable_types.h |4 ++-- arch/x86/include/asm/x86_init.h

[PATCH v2 1/5] X86/XEN: Remove the base argument from x86_init.paging.pagetable_setup_start

2012-08-21 Thread Attilio Rao
x86_init.paging.pagetable_setup_start for native will however use swapper_pg_dir in the single place where it is used and for native the argument is simply unused. Aditionally, the comments already point to swapper_pg_dir as the sole base touched. Finally, this will help with further merging of

Re: [2/2] spi: Add SPI master controller for OCTEON SOCs.

2012-08-21 Thread David Daney
On 08/21/2012 12:49 PM, Guenter Roeck wrote: On Fri, May 11, 2012 at 08:34:46PM -, David Daney wrote: From: David Daney Add the driver, link it into the kbuild system and provide device tree binding documentation. Signed-off-by: David Daney Acked-by: Grant Likely [ ... ] + +static

[PATCH v2 4/5] X86/XEN: Move content of xen_pagetable_setup_done() into xen_pagetable_init() and retire now unused x86_init.paging.pagetable_setup_done

2012-08-21 Thread Attilio Rao
At this stage x86_init.paging.pagetable_setup_done is only used in the XEN case. Move its content in the x86_init.paging.pagetable_init setup function and remove the now unused x86_init.paging.pagetable_setup_done remaining infrastructure. Signed-off-by: Attilio Rao ---

[PATCH v2 3/5] X86/XEN: Allow setup function x86_init.paging.pagetable_init to setup kernel pagetables

2012-08-21 Thread Attilio Rao
Currently, x86_init.paging.pagetable_init relies on callers to setup the kernel pagetable. In order to unify the functionality of x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done allow the new setup function to perform the operation itself. Signed-off-by: Attilio

[RFC][PATCH v4 3/3] efi_pstore: Skiping scheduling a workqueue in cases other than oops

2012-08-21 Thread Seiji Aguchi
[Problem] efi_pstore creates sysfs files when logging kernel messages to NVRAM. Currently, the sysfs files are updated in a workqueue which is registered in a write callback. On the other hand, situations which users needs the sysfs files are when they erase entries or oops happen because

Re: [PATCH v9 2/2] kvm: On Ack, De-assert & Notify KVM_IRQFD extension

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 01:29:14PM -0600, Alex Williamson wrote: > For VFIO based device assignment we'd like a mechanism to allow level > triggered interrutps to be directly injected into KVM. KVM_IRQFD > already allows this for edge triggered interrupts, but for level, we > need to watch for

[PATCH] PM / Freezer: Fix small typo "regrigerator"

2012-08-21 Thread Sedat Dilek
Noticed when digging into a suspend issue in linux-next (next-20120821). For more details see <http://marc.info/?t=13455470802=1=2>. Signed-off-by: Sedat Dilek --- kernel/power/process.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/power/process.c b/

[RFC][PATCH v4 2/3] efi_pstore: Introducing workqueue updating sysfs entries

2012-08-21 Thread Seiji Aguchi
[Problem] efi_pstore creates sysfs entries ,which enable users to access to NVRAM, in a write callback. If a kernel panic happens in interrupt contexts, pstore may fail because it could sleep due to dynamic memory allocations during creating sysfs entries. [Patch Description] This patch

[PATCH v2 0/5] X86/XEN: Merge x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done setup functions and document its semantic

2012-08-21 Thread Attilio Rao
Currently the definition of x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done is twisted and not really well defined (in terms of prototypes desired). More specifically: pagetable_setup_start: * cleans up the boot time page table in the x86_32 case * it is a nop for

[PATCH v2 5/5] X86/XEN: Add few lines explaining simple semantic for x86_init.paging.pagetable_init setup function

2012-08-21 Thread Attilio Rao
- Explain the purpose of the hook - Report execution constraints Signed-off-by: Attilio Rao --- arch/x86/include/asm/x86_init.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h index 995ea5c..7ea4186

[RFC][PATCH v4 1/3] efivars: Disable external interrupt while holding efivars->lock

2012-08-21 Thread Seiji Aguchi
[Problem] Currently, efivars doesn't disable interrupt while taking efivars->lock. So, there is a risk to be deadlocking in a write callback of efi_pstore if kernel panics in interrupt context while taking efivars->lock. [Patch Description] This patch disables an external interruption while

[RFC][PATCH v4 0/3] make efivars/efi_pstore interrupt-safe

2012-08-21 Thread Seiji Aguchi
Changelog v3 -> v4 - Patch 2/3 Move cancel_work_sync() above an efi_enabled test in efivars_exit(). v2 -> v3 - Patch 1/3 Replace spin_lock_irqsave/spin_unlock_irqrestore with spin_lock_irq/spin_unlock_irq in efivars_unregister(), efivar_create(), efivar_store_raw() and

Re: [PATCHSET] workqueue: use irqsafe timer in delayed_work

2012-08-21 Thread Tejun Heo
On Wed, Aug 08, 2012 at 02:37:55PM -0700, Tejun Heo wrote: > This patchset makes delayed_work use the irqsafe timer added by the > pending "timer: clean up initializers and implement irqsafe timers" > patchset[1]. This enables try_to_grab_pending() to be used from any > context which in turn

[tip:x86/apic] x86: dt: Use linear irq domain for ioapic(s)

2012-08-21 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: ece3234a77ebcd5bbeea6b829c9798328d290cae Gitweb: http://git.kernel.org/tip/ece3234a77ebcd5bbeea6b829c9798328d290cae Author: Sebastian Andrzej Siewior AuthorDate: Mon, 13 Aug 2012 22:23:33 +0200 Committer: Thomas Gleixner CommitDate: Tue, 21 Aug 2012 22:16:57 +0200 x86: dt:

Re: [PATCH v2 16/31] arm64: ELF definitions

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Catalin Marinas wrote: > On Thu, Aug 16, 2012 at 01:37:53PM +0100, Arnd Bergmann wrote: > > On Thursday 16 August 2012, Will Deacon wrote: > > > > This looks wrong: PER_LINUX/PER_LINUX32 decides over the output of the > > > > uname system call, while TIF_32BIT decides

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-21 Thread H. Peter Anvin
On 08/21/2012 01:05 PM, Yu, Fenghua wrote: > > We might name the cpio directory as: > > kernel/x86/microcode/GenuineIntel.bin > kernel/x86/microcode/AuthenticAMD.bin > kernel/x86/acpi/... > etc. > > This is expendable for the future usage. > > Plus I will add a doc on the cpio directory,

Re: [PATCH v2 17/31] arm64: System calls handling

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Catalin Marinas wrote: > > > +asmlinkage long sys_mmap(unsigned long addr, unsigned long len, > > > +unsigned long prot, unsigned long flags, > > > +unsigned long fd, off_t off) > > > +{ > > > + if (offset_in_page(off) != 0) > >

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Alex Williamson
On Tue, 2012-08-21 at 22:58 +0300, Michael S. Tsirkin wrote: > On Tue, Aug 21, 2012 at 01:29:06PM -0600, Alex Williamson wrote: > > KVM_IRQFD currently uses the reserved KVM_USERSPACE_IRQ_SOURCE_ID > > which is also shared with userspace injection methods like > > KVM_IRQ_LINE. This can cause a

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