[PATCH v5 07/18] Allocate memory for memcg caches whenever a new memcg appears

2012-10-19 Thread Glauber Costa
Every cache that is considered a root cache (basically the "original" caches, tied to the root memcg/no-memcg) will have an array that should be large enough to store a cache pointer per each memcg in the system. Theoreticaly, this is as high as 1 << sizeof(css_id), which is currently in the 64k

[PATCH v5 16/18] slab: propagate tunables values

2012-10-19 Thread Glauber Costa
SLAB allows us to tune a particular cache behavior with tunables. When creating a new memcg cache copy, we'd like to preserve any tunables the parent cache already had. This could be done by an explicit call to do_tune_cpucache() after the cache is created. But this is not very convenient now

Re: [PATCH RFC] sched: boost throttled entities on wakeups

2012-10-19 Thread Peter Zijlstra
On Thu, 2012-10-18 at 11:32 +0400, Vladimir Davydov wrote: > > 1) Do you agree that the problem exists and should be sorted out? This is two questions.. yes it exists, I'm absolutely sure I pointed it out as soon as people even started talking about this nonsense (bw cruft). Should it be

Re: [PATCH] pidns: limit the nesting depth of pid namespaces

2012-10-19 Thread Andrey Wagin
Hello Andrew and Oleg, Andrew, what do you think about this patch? I reworked it according with your comments to the previous version. Oleg, could you send Ack in this version, if it's ok for you. Thanks. 2012/10/12 Andrew Vagin : > 'struct pid' is a "variable sized struct" - a header with an

[PATCH v5 01/18] move slabinfo processing to slab_common.c

2012-10-19 Thread Glauber Costa
This patch moves all the common machinery to slabinfo processing to slab_common.c. We can do better by noticing that the output is heavily common, and having the allocators to just provide finished information about this. But after this first step, this can be done easier. Signed-off-by: Glauber

[PATCH v5 11/18] sl[au]b: Allocate objects from memcg cache

2012-10-19 Thread Glauber Costa
We are able to match a cache allocation to a particular memcg. If the task doesn't change groups during the allocation itself - a rare event, this will give us a good picture about who is the first group to touch a cache page. This patch uses the now available infrastructure by calling

[PATCH v5 12/18] memcg: destroy memcg caches

2012-10-19 Thread Glauber Costa
This patch implements destruction of memcg caches. Right now, only caches where our reference counter is the last remaining are deleted. If there are any other reference counters around, we just leave the caches lying around until they go away. When that happen, a destruction function is called

[PATCH v5 02/18] move print_slabinfo_header to slab_common.c

2012-10-19 Thread Glauber Costa
The header format is highly similar between slab and slub. The main difference lays in the fact that slab may optionally have statistics added here in case of CONFIG_SLAB_DEBUG, while the slub will stick them somewhere else. By making sure that information conditionally lives inside a

[PATCH v5 14/18] memcg/sl[au]b: shrink dead caches

2012-10-19 Thread Glauber Costa
In the slub allocator, when the last object of a page goes away, we don't necessarily free it - there is not necessarily a test for empty page in any slab_free path. This means that when we destroy a memcg cache that happened to be empty, those caches may take a lot of time to go away: removing

[PATCH v5 13/18] memcg/sl[au]b Track all the memcg children of a kmem_cache.

2012-10-19 Thread Glauber Costa
This enables us to remove all the children of a kmem_cache being destroyed, if for example the kernel module it's being used in gets unloaded. Otherwise, the children will still point to the destroyed parent. Signed-off-by: Suleiman Souhlal Signed-off-by: Glauber Costa CC: Christoph Lameter

[PATCH v5 18/18] Add slab-specific documentation about the kmem controller

2012-10-19 Thread Glauber Costa
Signed-off-by: Glauber Costa CC: Christoph Lameter CC: Pekka Enberg CC: Michal Hocko CC: Kamezawa Hiroyuki CC: Johannes Weiner CC: Suleiman Souhlal CC: Tejun Heo --- Documentation/cgroups/memory.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v5 04/18] slab: don't preemptively remove element from list in cache destroy

2012-10-19 Thread Glauber Costa
After the slab/slub/slob merge, we are deleting the element from the slab_cache lists, and then if the destruction fail, we add it back again. This behavior was present in some caches, but not in others, if my memory doesn't fail me. I, however, see no reason why we need to do so, since we are

[PATCH v5 06/18] consider a memcg parameter in kmem_create_cache

2012-10-19 Thread Glauber Costa
Allow a memcg parameter to be passed during cache creation. When the slub allocator is being used, it will only merge caches that belong to the same memcg. Default function is created as a wrapper, passing NULL to the memcg version. We only merge caches that belong to the same memcg. A helper

[PATCH v5 03/18] sl[au]b: process slabinfo_show in common code

2012-10-19 Thread Glauber Costa
With all the infrastructure in place, we can now have slabinfo_show done from slab_common.c. A cache-specific function is called to grab information about the cache itself, since that is still heavily dependent on the implementation. But with the values produced by it, all the printing and

[PATCH v5 15/18] Aggregate memcg cache values in slabinfo

2012-10-19 Thread Glauber Costa
When we create caches in memcgs, we need to display their usage information somewhere. We'll adopt a scheme similar to /proc/meminfo, with aggregate totals shown in the global file, and per-group information stored in the group itself. For the time being, only reads are allowed in the per-group

[PATCH v5 09/18] memcg: skip memcg kmem allocations in specified code regions

2012-10-19 Thread Glauber Costa
This patch creates a mechanism that skip memcg allocations during certain pieces of our core code. It basically works in the same way as preempt_disable()/preempt_enable(): By marking a region under which all allocations will be accounted to the root memcg. We need this to prevent races in early

[PATCH v5 05/18] slab/slub: struct memcg_params

2012-10-19 Thread Glauber Costa
For the kmem slab controller, we need to record some extra information in the kmem_cache structure. Signed-off-by: Glauber Costa Signed-off-by: Suleiman Souhlal CC: Christoph Lameter CC: Pekka Enberg CC: Michal Hocko CC: Kamezawa Hiroyuki CC: Johannes Weiner CC: Tejun Heo ---

[PATCH v5 10/18] sl[au]b: always get the cache from its page in kfree

2012-10-19 Thread Glauber Costa
struct page already have this information. If we start chaining caches, this information will always be more trustworthy than whatever is passed into the function A parent pointer is added to the slub structure, so we can make sure the freeing comes from either the right slab, or from its

[PATCH v5 00/18] slab accounting for memcg

2012-10-19 Thread Glauber Costa
Note: This is basically the same as v4. During this week, I made some changes to this series in advance based on the feedback I had in the kmemcg-stack last submission. Although the last series was not yet extensively reviewed, I opted for sending this out so you guys have the most up2date code to

Re: remoteproc open issues (was [RFC 1/4] remoteproc: Bugfix assign device address to carveout (noiommu)

2012-10-19 Thread Ohad Ben-Cohen
On Fri, Oct 19, 2012 at 3:45 PM, Sjur Brændeland wrote: > Has anyone started looking into any of the open issues mentioned above? No - feel free to take a stab at it. Thanks, Ohad. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 1/10] memory-hotplug : check whether memory is offline or not when removing memory

2012-10-19 Thread Wen Congyang
At 2012/10/19 18:44, Wen Congyang Wrote: At 10/06/2012 03:27 AM, KOSAKI Motohiro Wrote: On Thu, Oct 4, 2012 at 10:25 PM, Yasuaki Ishimatsu wrote: When calling remove_memory(), the memory should be offline. If the function is used to online memory, kernel panic may occur. So the patch checks

Re: [PATCH 2/3] mm/slob: Use object_size field in kmem_cache_size()

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Ezequiel Garcia wrote: > Fields object_size and size are not the same: the latter might include > slab metadata. Return object_size field in kmem_cache_size(). > Also, improve trace accuracy by correctly tracing reported size. Acked-by: Christoph Lameter -- To unsubscribe

Re: [PATCH v2 3/3] mm/sl[aou]b: Move common kmem_cache_size() to slab.h

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Ezequiel Garcia wrote: > This function is identically defined in all three allocators > and it's trivial to move it to slab.h > > Since now it's static, inline, header-defined function > this patch also drops the EXPORT_SYMBOL tag. Acked-by: Christoph Lameter -- To

Re: perf: p6 PMU working by accident, should we fix it and KNC?

2012-10-19 Thread Peter Zijlstra
On Wed, 2012-10-17 at 11:35 -0400, Vince Weaver wrote: > > This is by accident; it looks like the code does >val |= ARCH_PERFMON_EVENTSEL_ENABLE; > in p6_pmu_disable_event() so that events are never truly disabled > (is this a bug? should it be &=~ instead?). I think that's on purpose..

Re: [PATCH v2 1/2] Replace if statement with WARN_ON_ONCE() in cmci_rediscover().

2012-10-19 Thread Greg KH
On Fri, Oct 19, 2012 at 01:45:27PM +0800, Tang Chen wrote: > cmci_rediscover() is only called by the CPU_POST_DEAD event handler, > which means the corresponding cpu has already dead. As a result, it > won't be accessed in the for_each_online_cpu loop. > So, we could change the if(cpu == dying)

Re: [PATCH 2/2] rename NUMA fault handling functions

2012-10-19 Thread Rik van Riel
On 10/19/2012 07:41 AM, Peter Zijlstra wrote: On Thu, 2012-10-18 at 17:20 -0400, Rik van Riel wrote: Having the function name indicate what the function is used for makes the code a little easier to read. Furthermore, the fault handling code largely consists of do__page functions. I

Re: [PATCH v2 1/2] ARM: multi_v7_defconfig: Add ARCH_MXC

2012-10-19 Thread Rob Herring
Adding Arnd and Olof. On 10/18/2012 07:04 PM, Fabio Estevam wrote: > From: Fabio Estevam > > Let ARCH_MXC be covered by multi_v7_defconfig. > > Allow booting mx6 via NFS. Now we can start debating what should or shouldn't be in shared defconfigs. :) My intent with this defconfig was to only

[PATCH 2/2] mmc: core: bus.c: re-aligned the line over 80 chars

2012-10-19 Thread Sangho Yi
I made a correction on a line which has > 80 characters also, aligned the consecutive line to meet the --strict rule. Signed-off-by: Sangho Yi --- drivers/mmc/core/bus.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c

Re: [PATCH] mm: Simplify for_each_populated_zone()

2012-10-19 Thread Johannes Weiner
On Fri, Oct 19, 2012 at 04:25:47PM +0530, Srivatsa S. Bhat wrote: > Move the check for populated_zone() to the control statement of the > 'for' loop and get rid of the odd looking if/else block. > > Signed-off-by: Srivatsa S. Bhat > --- > > include/linux/mmzone.h |7 ++- > 1 file

Re: [tip:numa/core] sched/numa/mm: Improve migration

2012-10-19 Thread Johannes Weiner
On Thu, Oct 18, 2012 at 10:05:39AM -0700, tip-bot for Peter Zijlstra wrote: > Commit-ID: 713f937655c4b15131b5a0eae4610918a4febe17 > Gitweb: http://git.kernel.org/tip/713f937655c4b15131b5a0eae4610918a4febe17 > Author: Peter Zijlstra > AuthorDate: Fri, 12 Oct 2012 19:30:14 +0200 >

Re: [PATCH v2] arm/dts: AM33XX: Add SPI device tree data

2012-10-19 Thread Matt Porter
On Fri, Oct 19, 2012 at 02:40:58PM +0200, Benoit Cousson wrote: > Hi Matt, > > On 10/19/2012 01:30 PM, Matt Porter wrote: > > On Fri, Oct 19, 2012 at 10:24:15AM +0200, Benoit Cousson wrote: > >> Hi Avinash, > >> > >> This look good to me except the: status = "disabled". > >> > >> The "disabled"

Re: [PATCH 5/6] memcg: make mem_cgroup_reparent_charges non failing

2012-10-19 Thread Michal Hocko
This is an updated version of the patch. I have dropped .__DEPRECATED_clear_css_refs in this one as it makes the best sense to me. I didn't add Tejun's Reviewed-by because of this change. Could you recheck, please? --- >From 6c1f2e76e254e7638ad8cc87f319e3492ac80c5b Mon Sep 17 00:00:00 2001 From:

remoteproc open issues (was [RFC 1/4] remoteproc: Bugfix assign device address to carveout (noiommu)

2012-10-19 Thread Sjur Brændeland
Hi, On Fri, Aug 10, 2012 at 5:30 PM, Ohad Ben-Cohen wrote: > The general direction I have in mind is to put the resource table in > its final location while we do the first pass of fw parsing. > > This will solve all sort of open issues we have (or going to have soon): > > 1.

Re: [PATCH V2] PWM: Add SPEAr PWM chip driver support

2012-10-19 Thread Viresh Kumar
On 19 October 2012 15:45, Shiraz Hashim wrote: > diff --git a/Documentation/devicetree/bindings/pwm/spear-pwm.txt > b/Documentation/devicetree/bindings/pwm/spear-pwm.txt > +pwm: pwm@a800 { > +compatible ="st,spear320-pwm"; > +reg = <0xa800 0x1000>; > +

Re: [PATCH v2 2/5] memory-hotplug: update mce_bad_pages when removing the memory

2012-10-19 Thread Dave Hansen
On 10/18/2012 03:20 PM, Andrew Morton wrote: > On Wed, 17 Oct 2012 08:09:55 -0700 > Dave Hansen wrote: >>> +#ifdef CONFIG_MEMORY_FAILURE >>> +static void clear_hwpoisoned_pages(struct page *memmap, int nr_pages) >>> +{ >>> + int i; >>> + >>> + if (!memmap) >>> + return; >> >> I

Re: [PATCH] sched, autogroup: fix kernel crashes caused by runtime disable autogroup

2012-10-19 Thread Peter Zijlstra
Always try and CC people who wrote the code.. On Fri, 2012-10-19 at 16:36 +0800, Xiaotian Feng wrote: > There's a regression from commit 800d4d30, in autogroup_move_group() > > p->signal->autogroup = autogroup_kref_get(ag); > > if (!ACCESS_ONCE(sysctl_sched_autogroup_enabled)) >

Re: [PATCH] x86/dt: use linear irq domain for ioapic(s).

2012-10-19 Thread Florian Fainelli
On Friday 19 October 2012 11:36:25 Fainelli wrote: > Sebastian Andrzej Siewior linutronix.de> writes: > > > > No. You do have a compatible entry. It first appeared on the ce4100 > > CPU. If it happens to also work on the n450 then it seems to be > > compatible with that one. "This" is

Re: [PATCH v2] epoll: Support for disabling items, and a self-test app.

2012-10-19 Thread Paolo Bonzini
Il 19/10/2012 15:29, Paul Holland ha scritto: > A disadvantage of solutions in this direction, which was not preset in > Paton's patch, is that all calls to epoll_wait would need to specify some > timeout value (!= -1) to guarantee that they each come out of epoll_wait > and execute the "pass the

Re: [PATCH v2] epoll: Support for disabling items, and a self-test app.

2012-10-19 Thread Paul Holland
On 10/19/12 6:03 AM, "Paolo Bonzini" wrote: >Il 18/10/2012 20:05, Andy Lutomirski ha scritto: >> >> Unless something is rather buggy in kernel land (and I don't think it >> is), once EPOLL_CTL_DEL has returned, no call to epoll_wait that starts >> *after* EPOLL_CTL_DEL finishes will return that

[GIT PULL] RAS fix for tip/x86/urgent

2012-10-19 Thread Borislav Petkov
Hi guys, below is a RAS fix which reverts the addition of a sysfs attribute which we agreed is not needed, post-factum. And this should go in now because that sysfs attribute is going to end up in 3.7 otherwise and thus exposed to userspace; removing it then would be a lot harder. Thanks. The

Re: [PATCH] perf: Fix UAPI fallout

2012-10-19 Thread David Howells
Ingo Molnar wrote: > What we want in .c files are not ../.. inclusions but the > 'seemless' inclusions. Which is the overwhelming > majority, gladly. Do we want to make that the 100% majority? I think this is going to be necessary for when x86 gets merged. x86's asm/unistd.h #includes

Re: [PATCH 4/6] cgroups: forbid pre_destroy callback to fail

2012-10-19 Thread Michal Hocko
On Thu 18-10-12 15:46:06, Tejun Heo wrote: > On Thu, Oct 18, 2012 at 03:41:48PM -0700, Tejun Heo wrote: > > Note that the patch is broken in a couple places but it does show the > > general direction. I'd prefer if patch #3 simply makes pre_destroy() > > return 0 and drop

Re: [PATCH 4/6] cgroups: forbid pre_destroy callback to fail

2012-10-19 Thread Michal Hocko
On Thu 18-10-12 15:41:48, Tejun Heo wrote: > Hello, Michal. > > On Wed, Oct 17, 2012 at 03:30:46PM +0200, Michal Hocko wrote: > > Now that mem_cgroup_pre_destroy callback doesn't fail finally we can > > safely move on and forbit all the callbacks to fail. The last missing > > piece is moving

Re: [PATCH V3 5/6]: PVH:balloon and grant changes

2012-10-19 Thread Konrad Rzeszutek Wilk
On Thu, Oct 18, 2012 at 12:44:16PM +0100, Stefano Stabellini wrote: > On Thu, 18 Oct 2012, Mukesh Rathor wrote: > > PVH: balloon and grant changes. For balloon changes we skip setting of > > local p2m as it's updated in xen. For grant, the shared grant frame is the > > pfn and not mfn, hence its

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-10-19 Thread Andrew Theurer
On Fri, 2012-10-19 at 14:00 +0530, Raghavendra K T wrote: > On 10/15/2012 08:04 PM, Andrew Theurer wrote: > > On Mon, 2012-10-15 at 17:40 +0530, Raghavendra K T wrote: > >> On 10/11/2012 01:06 AM, Andrew Theurer wrote: > >>> On Wed, 2012-10-10 at 23:24 +0530, Raghavendra K T wrote: > On

[PATCH 2/2] ASoC: Ux500: Fixup compile error

2012-10-19 Thread Ulf Hansson
From: Ulf Hansson The below commit introduced a compile error for a missing include file. ASoC: ux500_msp_i2s: better use devm functions and fix error return code Signed-off-by: Ulf Hansson --- sound/soc/ux500/ux500_msp_i2s.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/2] ASoC: Ux500: Fixup complile errors due to merge

2012-10-19 Thread Ulf Hansson
From: Ulf Hansson Likely during merge of the below commits ended up breaking compilation: ASoC: Ux500: Enable ux500 MSP driver for Device Tree ASoC: ux500_msp_i2s: better use devm functions and fix error return code Signed-off-by: Ulf Hansson --- sound/soc/ux500/ux500_msp_i2s.c | 18

Re: [PATCH V3 1/6]: PVH: basic and header changes, elfnote changes, ...

2012-10-19 Thread Konrad Rzeszutek Wilk
> > +config XEN_X86_PVH > > + bool "Support for running as a PVH guest (EXPERIMENTAL)" > > + depends on X86_64 && XEN && EXPERIMENTAL > > + default n > > + help > > + This option enables support for running as a PVH guest (PV guest > > + using hardware extensions) under a

Re: [PATCH 1/2] unicore32: switch to generic kernel_thread()/kernel_execve()

2012-10-19 Thread guanxuetao
> On Fri, Oct 19, 2012 at 04:43:09PM +0800, Guan Xuetao wrote: >> From: Al Viro >> >> Signed-off-by: Al Viro >> Acked-and-Tested-by: Guan Xuetao > > You mean, it worked modulo obvious missing ')'? Wow... OK, merged > into signal.git#for-next, obviously in no-rebase mode (as the matter > of

Re: [PATCH 3/6] memcg: Simplify mem_cgroup_force_empty_list error handling

2012-10-19 Thread Michal Hocko
On Thu 18-10-12 15:16:54, Tejun Heo wrote: > Hello, Michal. > > On Wed, Oct 17, 2012 at 03:30:45PM +0200, Michal Hocko wrote: > > mem_cgroup_force_empty_list currently tries to remove all pages from > > the given LRU. To prevent from temoporary failures (EBUSY returned by > >

Re: [PATCH V3 1/6]: PVH: basic and header changes, elfnote changes, ...

2012-10-19 Thread Konrad Rzeszutek Wilk
On Wed, Oct 17, 2012 at 05:26:42PM -0700, Mukesh Rathor wrote: > [PATCH 1/6] PVH: is a PV linux guest that has extended capabilities. This > patch allows it to be configured and enabled. Also, basic header file changes > to add new subcalls to physmap hypercall. Lastly, mfn_to_local_pfn must >

Re: [PATCH 1/2] unicore32: switch to generic kernel_thread()/kernel_execve()

2012-10-19 Thread Al Viro
On Fri, Oct 19, 2012 at 04:43:09PM +0800, Guan Xuetao wrote: > From: Al Viro > > Signed-off-by: Al Viro > Acked-and-Tested-by: Guan Xuetao You mean, it worked modulo obvious missing ')'? Wow... OK, merged into signal.git#for-next, obviously in no-rebase mode (as the matter of fact, I'm

Re: [PATCH 5/5] xen-kbdfront: handle backend CLOSED without CLOSING

2012-10-19 Thread Konrad Rzeszutek Wilk
On Thu, Oct 18, 2012 at 11:03:38AM +0100, David Vrabel wrote: > From: David Vrabel > > Backend drivers shouldn't transistion to CLOSED unless the frontend is > CLOSED. If a backend does transition to CLOSED too soon then the > frontend may not see the CLOSING state and will not properly

Re: [PATCH 4/5] xen-fbfront: handle backend CLOSED without CLOSING

2012-10-19 Thread Konrad Rzeszutek Wilk
On Thu, Oct 18, 2012 at 11:03:37AM +0100, David Vrabel wrote: > From: David Vrabel > > Backend drivers shouldn't transistion to CLOSED unless the frontend is > CLOSED. If a backend does transition to CLOSED too soon then the > frontend may not see the CLOSING state and will not properly

Re: [PATCH 3/5] xen-pcifront: handle backend CLOSED without CLOSING

2012-10-19 Thread Konrad Rzeszutek Wilk
On Thu, Oct 18, 2012 at 11:03:36AM +0100, David Vrabel wrote: > From: David Vrabel > > Backend drivers shouldn't transistion to CLOSED unless the frontend is > CLOSED. If a backend does transition to CLOSED too soon then the > frontend may not see the CLOSING state and will not properly

[RFC PATCH] init: Use the stringify operator for the __define_initcall macro

2012-10-19 Thread Matthew Leach
Currently the __define_initcall macro takes three arguments, fn, id and level. The level argument is exactly the same as the id argument but wrapped in quotes. To overcome this need to specify three arguments to the __define_initcall macro, where one argument is the stringification of another, we

[PATCH v2] pinctrl: reserve pins when states are activated

2012-10-19 Thread Linus Walleij
From: Linus Walleij This switches the way that pins are reserved for multiplexing: We used to do this when the map was parsed, at the creation of the settings inside the pinctrl handle, in pinmux_map_to_setting(). However this does not work for us, because we want to use the same set of pins

[PATCH v2 3/3] virtio: force vring descriptors to be allocated from lowmem

2012-10-19 Thread Will Deacon
Virtio devices may attempt to add descriptors to a virtqueue from atomic context using GFP_ATOMIC allocation. This is problematic because such allocations can fall outside of the lowmem mapping, causing virt_to_phys to report bogus physical addresses which are subsequently passed to userspace via

[PATCH v2 1/3] mm: highmem: export kmap_to_page for modules

2012-10-19 Thread Will Deacon
Some virtio device drivers (9p) need to translate high virtual addresses to physical addresses, which are inserted into the virtqueue for processing by userspace. This patch exports the kmap_to_page symbol, so that the affected drivers can be compiled as modules. Signed-off-by: Will Deacon ---

[PATCH v2 2/3] virtio: 9p: correctly pass physical address to userspace for high pages

2012-10-19 Thread Will Deacon
When using a virtio transport, the 9p net device may pass the physical address of a kernel buffer to userspace via a scatterlist inside a virtqueue. If the kernel buffer is mapped outside of the linear mapping (e.g. highmem), then virt_to_page will return a bogus value and we will populate the

Re: [PATCH v2] epoll: Support for disabling items, and a self-test app.

2012-10-19 Thread Paolo Bonzini
Il 18/10/2012 20:05, Andy Lutomirski ha scritto: > > Unless something is rather buggy in kernel land (and I don't think it > is), once EPOLL_CTL_DEL has returned, no call to epoll_wait that starts > *after* EPOLL_CTL_DEL finishes will return that object. This suggests > an RCU-like approach:

nfsd bugfixes for 3.7

2012-10-19 Thread J. Bruce Fields
Please pull nfsd bugfixes for 3.7 from the for-3.7 branch at: git://linux-nfs.org/~bfields/linux.git for-3.7 --b. Sasha Levin (1): SUNRPC: Prevent kernel stack corruption on long values of flush Trond Myklebust (1):

Re: [PATCH 2/2] Input: matrix-keypad - Add device tree support

2012-10-19 Thread Rob Herring
On 10/19/2012 02:06 AM, AnilKumar Ch wrote: > Add device tree support to matrix keypad driver and usage details > are added to device tree documentation. Driver was tested on AM335x > EVM. > > Signed-off-by: AnilKumar Ch > --- > .../devicetree/bindings/input/matrix-keypad.txt| 52

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

2012-10-19 Thread Will Deacon
On Thu, Oct 18, 2012 at 06:48:16AM +0100, Geert Uytterhoeven wrote: > On Thu, Oct 18, 2012 at 2:04 AM, Benjamin Herrenschmidt > wrote: > > The sort story is that endianness is not a property of the IO port but > > of the information that transit through it. If you're just going to copy > > it

Re: [PATCH] pinctrl: reserve pins when states are activated

2012-10-19 Thread Linus Walleij
On Fri, Oct 19, 2012 at 1:33 AM, Stephen Warren wrote: > On 10/18/2012 04:01 AM, Linus Walleij wrote: >> This switches the way that pins are reserved for multiplexing: > > The conceptual change makes perfect sense to me. Thanks... >> diff --git a/drivers/pinctrl/pinmux.c

Re: MAX_LOCKDEP_ENTRIES too low (called from ioc_release_fn)

2012-10-19 Thread Peter Zijlstra
On Fri, 2012-10-19 at 01:21 -0400, Dave Jones wrote: > > Not sure why you are CC'ing a call site, rather than the maintainers of > > the code. Just looks like lockdep is using too small a static value. > > Though it is pretty darn large... > > You're right, it's a huge chunk of memory. > It

Re: [PATCH v2 3/3] lp8788-charger: fix wrong ADC conversion

2012-10-19 Thread Lars-Peter Clausen
On 10/19/2012 02:12 AM, Kim, Milo wrote: > To get the battery voltage and temperature, IIO ADC functions are used. > LP8788 ADC driver provides RAW and SCALE channel information. > This patch fixes wrong ADC result. > > Patch v2. > Use simple iio_read_channel_processed() function rather than

Re: [PATCH v2] arm/dts: AM33XX: Add SPI device tree data

2012-10-19 Thread Benoit Cousson
Hi Matt, On 10/19/2012 01:30 PM, Matt Porter wrote: > On Fri, Oct 19, 2012 at 10:24:15AM +0200, Benoit Cousson wrote: >> Hi Avinash, >> >> This look good to me except the: status = "disabled". >> >> The "disabled" should be reserved for variant that does not contain the IP. >> Is it the case

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

2012-10-19 Thread Peter Zijlstra
On Thu, 2012-10-18 at 15:28 -0400, Mikulas Patocka wrote: > > On Thu, 18 Oct 2012, Oleg Nesterov wrote: > > > Ooooh. And I just noticed include/linux/percpu-rwsem.h which does > > something similar. Certainly it was not in my tree when I started > > this patch... percpu_down_write() doesn't

[PATCH v2 3/3] mm/sl[aou]b: Move common kmem_cache_size() to slab.h

2012-10-19 Thread Ezequiel Garcia
This function is identically defined in all three allocators and it's trivial to move it to slab.h Since now it's static, inline, header-defined function this patch also drops the EXPORT_SYMBOL tag. Cc: Christoph Lameter Cc: Pekka Enberg Cc: Matt Mackall Signed-off-by: Ezequiel Garcia ---

[PATCH 2/3] mm/slob: Use object_size field in kmem_cache_size()

2012-10-19 Thread Ezequiel Garcia
Fields object_size and size are not the same: the latter might include slab metadata. Return object_size field in kmem_cache_size(). Also, improve trace accuracy by correctly tracing reported size. Cc: Christoph Lameter Cc: Pekka Enberg Cc: Matt Mackall Acked-by: David Rientjes Signed-off-by:

[PATCH v2 1/3] mm/slob: Drop usage of page->private for storing page-sized allocations

2012-10-19 Thread Ezequiel Garcia
This field was being used to store size allocation so it could be retrieved by ksize(). However, it is a bad practice to not mark a page as a slab page and then use fields for special purposes. There is no need to store the allocated size and ksize() can simply return PAGE_SIZE <<

Re: [PATCH 1/3] mm/slob: Drop usage of page->private for storing page-sized allocations

2012-10-19 Thread Ezequiel Garcia
On Thu, Oct 18, 2012 at 7:46 PM, David Rientjes wrote: > On Thu, 18 Oct 2012, Ezequiel Garcia wrote: > >> This field was being used to store size allocation so it could be >> retrieved by ksize(). However, it is a bad practice to not mark a page >> as a slab page and then use fields for special

[PATCH] x86/efi: Fix oops caused by incorrect set_memory_uc() usage

2012-10-19 Thread Matt Fleming
From: Matt Fleming Calling __pa() with an ioremap'd address is invalid. If we encounter an efi_memory_desc_t without EFI_MEMORY_WB set in ->attribute we currently call set_memory_uc(), which in turn calls __pa() on a potentially ioremap'd address. On CONFIG_X86_32 this results in the following

[RFC] linux/time.h vs. sys/time.h mess (was [PATCH 1/2] [media] remove include/linux/dvb/dmx.h)

2012-10-19 Thread Laurent Pinchart
Hi Mauro, (CC'ing LKML) On Friday 19 October 2012 08:21:16 Mauro Carvalho Chehab wrote: > Em Fri, 19 Oct 2012 07:43:11 -0300 > > Mauro Carvalho Chehab escreveu: > > -#include > > -#include > > - > > -#endif /*_DVBDMX_H_*/ > > Just to not discard a valid comment on IRC, Laurent proposed that

Re: [patch 15/16] sched: implement usage tracking

2012-10-19 Thread Vincent Guittot
Hi Paul, I think that you have forgot to reset .usage_avg_sum in the __sched_fork as it's already done for .runnable_avg_sum and .usage_avg_sum And it seems that this reset is not corrected in the latest version in your git repo:

Re: [PATCH 4/4] power/jz4740.c: Simplify exit of function

2012-10-19 Thread Lars-Peter Clausen
On 10/19/2012 01:41 AM, Marcos Paulo de Souza wrote: > This commit simplifies the exit of probe function, by returning > directly when it don't need to release any resources. > > Signed-off-by: Marcos Paulo de Souza Looks good, but I'd just fold the relevant parts in the previous patches. >

Re: [PATCH] kconfig/menuconfig: use TAILQ instead of CIRCLEQ

2012-10-19 Thread Tetsuo Handa
Yann E. MORIN wrote: > Some systems (eg. Cygwin, FreeBSD) are missing the CIRCLEQ macros. > They were removed in Y2000 from FreeBSD: > http://svnweb.freebsd.org/base?view=revision=70469 > > The reason was that TAILQ are perfectly capable of doing the exact > same things: > >

RE: [RFC PATCH v3 00/16] DMA Engine support for AM33XX

2012-10-19 Thread Bedia, Vaibhav
On Fri, Oct 19, 2012 at 16:45:58, Porter, Matt wrote: > On Fri, Oct 19, 2012 at 10:26:20AM +, Bedia, Vaibhav wrote: [...] > > > > I didn't see all the patches that you posted on edma-dmaengine-v3 > > but I do seem them on edma-dmaengine-am33xx-v3 branch. > > I see I referenced the wrong

[tip:numa/core] numa: Add credits for NUMA placement

2012-10-19 Thread tip-bot for Rik van Riel
Commit-ID: c1a305006e4dd428001852923c11806d754db9f1 Gitweb: http://git.kernel.org/tip/c1a305006e4dd428001852923c11806d754db9f1 Author: Rik van Riel AuthorDate: Thu, 18 Oct 2012 17:19:28 -0400 Committer: Ingo Molnar CommitDate: Fri, 19 Oct 2012 13:45:48 +0200 numa: Add credits for NUMA

[PATCH] pstore/ram: fix undefined usage of rounddown_pow_of_two.

2012-10-19 Thread Florian Fainelli
From: Maxime Bizon record_size / console_size / ftrace_size can be 0 (this is how you disable the feature), but rounddown_pow_of_two(0) is undefined. This problem has been present since commit 1894a253 (ramoops: Move to fs/pstore/ram.c). Signed-off-by: Maxime Bizon Signed-off-by: Florian

[3.6.2] oops @ opteron server: mgag200 Fatal error during GPU init

2012-10-19 Thread Paweł Sikora
Hi, on the new opteron server i'm observing an oops during matrox video initialization. here's the dmesg from pure 3.6.2 kernel: [ 20.598985] [drm] Initialized drm 1.1.0 20060810 [ 20.642302] [drm:mga_vram_init] *ERROR* can't reserve VRAM [ 20.642307] mgag200 :01:04.0: Fatal error

[PATCH 3/3] x86: ce4100: fixup PCI configuration register access for devices without interrupts

2012-10-19 Thread Florian Fainelli
From: Maxime Bizon Some CE4100 devices such as the: - DFX module (01:0b.7) - entertainment encryption device (01:10.0) - multimedia controller (01:12.0) do not have a device interrupt at all. This patch fixes the PCI controller code to declare the missing PCI configuration register space, as

[PATCH 2/3] x86: ce4100: force reboot method to be KBD

2012-10-19 Thread Florian Fainelli
From: Maxime Bizon The default reboot is via ACPI for this platform, and the CEFDK bootloader actually supports this, but will issue a system power off instead of a real reboot. Setting the reboot method to be KBD instead of ACPI ensures proper system reboot. Signed-off-by: Florian Fainelli

[PATCH 1/3] x86: ce4100: implement pm_poweroff

2012-10-19 Thread Florian Fainelli
The CE4100 platform is currently missing a proper pm_poweroff implementation leading to poweroff making the CPU spin forever and the CE4100 platform does not enter a low-power mode where the external Power Management Unit can properly power off the system. Power off on this platform is implemented

[PATCH 0/3] x86: ce4100: various fixes

2012-10-19 Thread Florian Fainelli
Hi all, This patch serie contains shutdown/reboot fixes for the CE4100 platform as well as a PCI controller fix for devices without an interrupt line. Florian Fainelli (3): x86: ce4100: implement pm_poweroff x86: ce4100: force reboot method to be KBD x86: ce4100: fixup PCI configuration

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

2012-10-19 Thread Roland Stigge
On 10/19/2012 12:35 PM, Linus Walleij wrote: > On Thu, Oct 18, 2012 at 12:07 PM, Roland Stigge wrote: >> On 10/17/2012 09:05 PM, Greg KH wrote: +if (value != exported) { +if (value) +status = gpio_block_value_export(block); +

Re: RFC: sign the modules at install time

2012-10-19 Thread Josh Boyer
On Thu, Oct 18, 2012 at 9:16 PM, Rusty Russell wrote: > Josh Boyer writes: >> On Thu, Oct 18, 2012 at 2:46 PM, Linus Torvalds >> wrote: >>> On Wed, Oct 17, 2012 at 10:34 PM, Rusty Russell >>> wrote: Hacking the keyid and signer-name to be extracted every time by sign-file takes

Re: [PATCH] x86/dt: use linear irq domain for ioapic(s).

2012-10-19 Thread Florian Fainelli
Sebastian Andrzej Siewior linutronix.de> writes: > > No. You do have a compatible entry. It first appeared on the ce4100 > CPU. If it happens to also work on the n450 then it seems to be > compatible with that one. "This" is documented somewhere… > Usually you add 'compatible = "your cpu",

Re: RFC: sign the modules at install time

2012-10-19 Thread Josh Boyer
On Thu, Oct 18, 2012 at 8:48 PM, Rusty Russell wrote: > Josh Boyer writes: >> It might even be able to be moved entirely into scripts/Makefile.modinst >> but I haven't gotten that far yet. > > Thanks, I'll add this. Excellent. > Note it was word-wrapped here though :( Sigh. Sorry, Rusty. I

Re: [PATCH 1/2] add credits for NUMA placement

2012-10-19 Thread Peter Zijlstra
On Thu, 2012-10-18 at 17:19 -0400, Rik van Riel wrote: > The NUMA placement code has been rewritten several times, but > the basic ideas took a lot of work to develop. The people who > put in the work deserve credit for it. Thanks Andrea & Peter :) > > The Documentation/scheduler/numa-problem.txt

Re: [PATCH 2/2] rename NUMA fault handling functions

2012-10-19 Thread Peter Zijlstra
On Thu, 2012-10-18 at 17:20 -0400, Rik van Riel wrote: > Having the function name indicate what the function is used > for makes the code a little easier to read. Furthermore, > the fault handling code largely consists of do__page > functions. I don't much care either way, but I was

Re: RFC: sign the modules at install time

2012-10-19 Thread Alexander Holler
Am 19.10.2012 13:25, schrieb David Howells: Stephen Rothwell wrote: So, this still generates the keys during the normal build, right? That would be a problem for build servers that have limited randomness available to them, I think. openssl uses /dev/urandom (unlike gpg), so that's less of

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-10-19 Thread Alon Ziv
H. Peter Anvin zytor.com> writes: > > It is a bit more indirect, but also in practice it's a bit trickier than > > that. We need to ensure the memory doesn't change underneath us and > > stays attached to that fd. I can easily see that code slipping and > > ending in an exploit. > > > > But

Re: RFC: sign the modules at install time

2012-10-19 Thread Stephen Rothwell
Hi David, On Fri, 19 Oct 2012 12:25:23 +0100 David Howells wrote: > > Stephen Rothwell wrote: > > > So, this still generates the keys during the normal build, right? That > > would be a problem for build servers that have limited randomness > > available to them, I think. > > openssl uses

Re: [PATCH v2] arm/dts: AM33XX: Add SPI device tree data

2012-10-19 Thread Matt Porter
On Fri, Oct 19, 2012 at 10:24:15AM +0200, Benoit Cousson wrote: > Hi Avinash, > > This look good to me except the: status = "disabled". > > The "disabled" should be reserved for variant that does not contain the IP. > Is it the case here?

[PATCH 1/1] HID: microsoft, fix invalid rdesc for 3k kbd

2012-10-19 Thread Jiri Slaby
Microsoft Digital Media Keyboard 3000 has two interfaces, and the second one has a report descriptor with a bug. The second collection says: 05 01 -- global; usage page -- 01 -- Generic Desktop Controls 09 80 -- local; usage -- 80 -- System Control a1 01 -- main; collection -- 01 -- application

Re: RFC: sign the modules at install time

2012-10-19 Thread David Howells
Stephen Rothwell wrote: > So, this still generates the keys during the normal build, right? That > would be a problem for build servers that have limited randomness > available to them, I think. openssl uses /dev/urandom (unlike gpg), so that's less of a problem. David -- To unsubscribe from

Re: RFC: sign the modules at install time

2012-10-19 Thread David Howells
Rusty Russell wrote: > > (Side note: I hope people realize that the random key is generated > > with a 100-year lifespan. So if you build a kernel today, you do > > potentially have a "year-2112 problem". I'm not horribly worried, but > > I *am* a bit worried about 32-bit time_t overflow and I

Re: [PATCH] Do not use cpu_to_node() to find an offlined cpu's node.

2012-10-19 Thread Peter Zijlstra
On Wed, 2012-10-17 at 20:29 -0700, David Rientjes wrote: > > Ok, thanks for the update. I agree that we should be clearing the mapping > at node hot-remove since any cpu that would subsequently get onlined and > assume one of the previous cpu's ids is not guaranteed to have the same >

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