Re: [PATCH v2 2/3] mutex: add support for reservation style locks, v2

2013-04-09 Thread Steven Rostedt
On Thu, Apr 04, 2013 at 06:38:36PM +0200, Peter Zijlstra wrote: > On Thu, 2013-04-04 at 15:31 +0200, Daniel Vetter wrote: > > Hm, I guess your aim with the TASK_DEADLOCK wakeup is to bound the > > wait > > times of older task. > > No, imagine the following: > > struct ww_mutex A, B; > struct mute

perf --version inconsistency

2013-04-09 Thread Sukadev Bhattiprolu
Following commit replaced 'git describe' with 'git tag -l | tail -1' to speed up the build: commit acddedfba0df1e47fa99035a04661082b679ee9c Author: Ingo Molnar Date: Tue Oct 30 09:46:00 2012 +0100 perf tools: Speed up the perf build time by simplifying the perf

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-09 Thread Tony Lindgren
* Nishanth Menon [130409 13:53]: > I did try to have an implementation for cpufreq using clock nodes. > unfortunately, device tree wont let me have arguments of strings :( > So, I am unable to do clock = <&clk mpu_dpll>; > instead, I am forced to do clock = <&clk 249>; It seems that you should ha

Re: [PATCH v8 3/3] mm: reinititalise user and admin reserves if memory is added or removed

2013-04-09 Thread Andrew Morton
On Mon, 8 Apr 2013 17:00:40 -0400 Andrew Shewmaker wrote: > Should I add the memory notifier code to mm/nommu.c too? > I'm guessing that if a system doesn't have an mmu that it also > won't be hotplugging memory. I doubt if we need to worry about memory hotplug on nommu machines, so just do the

Re: [PATCH v2 2/3] mutex: add support for reservation style locks, v2

2013-04-09 Thread Steven Rostedt
On Tue, Apr 02, 2013 at 06:59:14PM +0200, Peter Zijlstra wrote: > > So how about we call the thing something like: > > struct ww_mutex; /* wound/wait */ Reading this I can't help but think of Elmer Fudd saying "Round Robin" as "Wound Wobin" -- Steve > > int mutex_wound_lock(struct ww_mute

Re: [PATCH v8 3/3] mm: reinititalise user and admin reserves if memory is added or removed

2013-04-09 Thread Andrew Shewmaker
On Mon, Apr 08, 2013 at 01:37:12PM -0700, Andrew Morton wrote: > On Mon, 8 Apr 2013 15:07:38 -0400 Andrew Shewmaker wrote: > > > This patch alters the admin and user reserves of the previous patches > > in this series when memory is added or removed. > > > > If memory is added and the reserves

Re: I/O blocked while dirty pages are being flushed

2013-04-09 Thread Jan Kara
On Mon 25-03-13 08:31:43, Fredrik Tolf wrote: > On Sun, 24 Mar 2013, Bart Van Assche wrote: > >On 03/24/13 06:12, Fredrik Tolf wrote: > >>While this flush is running, I find that many a process goes into disk > >>sleep waiting for the flush to complete. This includes the process > >>manipulating th

Re: [PATCH 2/6] efivars: Keep a private global pointer to efivars

2013-04-09 Thread Mike Waychison
On Thu, Apr 4, 2013 at 5:18 AM, Matt Fleming wrote: > From: Matt Fleming > > Some machines have an EFI variable interface that does not conform to the UEFI > specification, e.g. CONFIG_GOOGLE_SMI. Add the necessary code and Kconfig glue > so that it's only possible to select one implementation of

Re: [PATCH v3 3/3] hugetlbfs: add swap entry check in follow_hugetlb_page()

2013-04-09 Thread Naoya Horiguchi
On Mon, Apr 08, 2013 at 04:57:44PM -0400, KOSAKI Motohiro wrote: > > - if (absent || > > + /* > > +* is_swap_pte test covers both is_hugetlb_entry_hwpoisoned > > +* and hugepages under migration in which case > > +* hugetlb

Re: [PATCH 1/6] efi: move utf16 string functions to efi.h

2013-04-09 Thread Mike Waychison
fwiw, I was tempted to rename these to ucs2_*() last time I was here. Reviewed-by: Mike Waychison On Thu, Apr 4, 2013 at 5:18 AM, Matt Fleming wrote: > From: Matt Fleming > > There are currently two implementations of the utf16 string functions. > Somewhat confusingly, they've got different na

[PATCH] thermal: step_wise: set throttle target within thermal instance limits

2013-04-09 Thread Andrew Bresticker
When selecting a target cooling state in get_target_state(), make sure that the state is at least as high as the minimum when the temperature is rising and at least as low as the maximum when the temperature is falling. This is necessary because, in the THREAML_TREND_RAISING and THERMAL_TREND_DROP

[PATCH] thermal: exynos: fix handling of invalid frequency table entries

2013-04-09 Thread Andrew Bresticker
Similar to the error described in "thermal: cpu_cooling: fix handling of invalid frequency table entries," exynos_get_frequency_level() will enter an infinite loop if any CPU frequency table entries are invalid. This patch fixes the handling of invalid frequency entries so that there is no infinite

[PATCH] thermal: cpu_cooling: fix handling of invalid frequency table entries

2013-04-09 Thread Andrew Bresticker
get_cpu_frequency() goes into an infinite loop if any of the entries in the CPU frequency table are invalid. This patch fixes that case and, with a separate counter for frequency levels, ensures that the n-th valid frequency level is returned. Signed-off-by: Andrew Bresticker --- drivers/therma

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-09 Thread Nishanth Menon
On 15:49-20130409, Nishanth Menon wrote: > On 10:43-20130409, Tony Lindgren wrote: > > * Tony Lindgren [130409 09:54]: > > > * Roger Quadros [130409 03:00]: > > > > On 04/05/2013 06:58 PM, Tony Lindgren wrote: > > > > > > > >

Re: [PATCH] Input: trackpoint - Optimize trackpoint init to use power-on reset

2013-04-09 Thread Shawn Nematbakhsh
Hi Dmitry, Thanks for the review. Comments in-line. On Wed, Mar 27, 2013 at 10:32 PM, Dmitry Torokhov wrote: > Hi Shawn, > > On Tue, Mar 26, 2013 at 12:36:41PM -0700, Shawn Nematbakhsh wrote: >> The trackpoint driver sets various parameter default values, all of >> which happen to be power-on de

[PATCH v2] Input: trackpoint - Optimize trackpoint init to use power-on reset

2013-04-09 Thread Shawn Nematbakhsh
From: Shawn Nematbakhsh The trackpoint driver sets various parameter default values, all of which happen to be power-on defaults (Source: IBM TrackPoint Engineering Specification, Version 4.0. Also confirmed by empirical data). By sending the power-on reset command to reset all parameters to pow

[RFC PATCH v2 07/15] mm: Add an optimized version of del_from_freelist to keep page allocation fast

2013-04-09 Thread Srivatsa S. Bhat
One of the main advantages of this design of memory regions is that page allocations can potentially be extremely fast - almost with no extra overhead from memory regions. To exploit that, introduce an optimized version of del_from_freelist(), which utilizes the fact that we always delete items fr

[RFC PATCH v2 11/15] mm: Restructure the compaction part of CMA for wider use

2013-04-09 Thread Srivatsa S. Bhat
CMA uses bits and pieces of the memory compaction algorithms to perform large contiguous allocations. Those algorithms would be useful for memory power management too, to evacuate entire regions of memory. So rewrite the code in a way that helps us to easily reuse the code for both use-cases. Sign

[RFC PATCH v2 15/15] mm: Print memory region statistics to understand the buddy allocator behavior

2013-04-09 Thread Srivatsa S. Bhat
In order to observe the behavior of the region-aware buddy allocator, modify vmstat.c to also print memory region related statistics. In particular, enable memory region-related info in /proc/zoneinfo and /proc/buddyinfo, since they would help us to atleast (roughly) observe how the new buddy alloc

[RFC PATCH v2 13/15] mm: Implement the worker function for memory region compaction

2013-04-09 Thread Srivatsa S. Bhat
We are going to invoke the memory compaction algorithms for region-evacuation from worker threads, instead of dedicating a separate kthread to it. So add the worker infrastructure to perform this. In the worker, we calculate the cost of migration/compaction for a given region - if we need to migra

[RFC PATCH v2 14/15] mm: Add alloc-free handshake to trigger memory region compaction

2013-04-09 Thread Srivatsa S. Bhat
We need a way to decide when to trigger the worker threads to perform region evacuation/compaction. So the strategy used is as follows: Alloc path of page allocator: This accurately tracks the allocations and detects the first allocation in a new region and notes down

checkpatch: kill the bogus camelcase check

2013-04-09 Thread James Bottomley
It's making checkpatch unusable on most drivers because it's spewing tons of bogus warnings. The problem is the assumption that studly caps is always wrong: it isn't if the variables are named after the various conventions in the hardware programming guides (which are usually written by Microsoft

[RFC PATCH v2 12/15] mm: Add infrastructure to evacuate memory regions using compaction

2013-04-09 Thread Srivatsa S. Bhat
To enhance memory power-savings, we need to be able to completely evacuate lightly allocated regions, and move those used pages to lower regions, which would help consolidate all the allocations to a minimum no. of regions. This can be done using some of the memory compaction and reclaim algorithms

[RFC PATCH v2 10/15] mm: Add support to accurately track per-memory-region allocation

2013-04-09 Thread Srivatsa S. Bhat
The page allocator needs to be able to detect events such as the first page allocation in a new region etc, in order to make smart decisions to aid memory power management. So add the necessary support to accurately track allocations on a per-region basis. Signed-off-by: Srivatsa S. Bhat --- in

[RFC PATCH v2 09/15] mm: A new optimized O(log n) sorting algo to speed up buddy-sorting

2013-04-09 Thread Srivatsa S. Bhat
The sorted-buddy design for memory power management depends on keeping the buddy freelists region-sorted. And this sorting operation has been pushed to the free() logic, keeping the alloc() path fast. However, we would like to also keep the free() path as fast as possible, since it holds the zone-

[RFC PATCH v2 08/15] bitops: Document the difference in indexing between fls() and __fls()

2013-04-09 Thread Srivatsa S. Bhat
fls() indexes the bits starting with 1, ie., from 1 to BITS_PER_LONG whereas __fls() uses a zero-based indexing scheme (0 to BITS_PER_LONG - 1). Add comments to document this important difference. Signed-off-by: Srivatsa S. Bhat --- arch/x86/include/asm/bitops.h |4 include/asm-ge

[RFC PATCH v2 04/15] mm: Add helpers to retrieve node region and zone region for a given page

2013-04-09 Thread Srivatsa S. Bhat
Given a page, we would like to have an efficient mechanism to find out the node memory region and the zone memory region to which it belongs. Since the node is assumed to be divided into equal-sized node memory regions, the node memory region can be obtained by simply right-shifting the page's pfn

[RFC PATCH v2 06/15] mm: Demarcate and maintain pageblocks in region-order in the zones' freelists

2013-04-09 Thread Srivatsa S. Bhat
The zones' freelists need to be made region-aware, in order to influence page allocation and freeing algorithms. So in every free list in the zone, we would like to demarcate the pageblocks belonging to different memory regions (we can do this using a set of pointers, and thus avoid splitting up th

[RFC PATCH v2 01/15] mm: Introduce memory regions data-structure to capture region boundaries within nodes

2013-04-09 Thread Srivatsa S. Bhat
The memory within a node can be divided into regions of memory that can be independently power-managed. That is, chunks of memory can be transitioned (manually or automatically) to low-power states based on the frequency of references to that region. For example, if a memory chunk is not referenced

[RFC PATCH v2 05/15] mm: Add data-structures to describe memory regions within the zones' freelists

2013-04-09 Thread Srivatsa S. Bhat
In order to influence page allocation decisions (i.e., to make page-allocation region-aware), we need to be able to distinguish pageblocks belonging to different zone memory regions within the zones' (buddy) freelists. So, within every freelist in a zone, provide pointers to describe the boundarie

[RFC PATCH v2 03/15] mm: Introduce and initialize zone memory regions

2013-04-09 Thread Srivatsa S. Bhat
Memory region boundaries don't necessarily fit on zone boundaries. So we need to maintain a zone-level mapping of the absolute memory region boundaries. "Node Memory Regions" will be used to capture the absolute region boundaries. Add "Zone Memory Regions" to track the subsets of the absolute memo

[RFC PATCH v2 02/15] mm: Initialize node memory regions during boot

2013-04-09 Thread Srivatsa S. Bhat
Initialize the node's memory-regions structures with the information about the region-boundaries, at boot time. Based-on-patch-by: Ankita Garg Signed-off-by: Srivatsa S. Bhat --- include/linux/mm.h |4 mm/page_alloc.c| 28 2 files changed, 32 inserti

[RFC PATCH v2 00/15][Sorted-buddy] mm: Memory Power Management

2013-04-09 Thread Srivatsa S. Bhat
[I know, this cover letter is a little too long, but I wanted to clearly explain the overall goals and the high-level design of this patchset in detail. I hope this helps more than it annoys, and makes it easier for reviewers to relate to the background and the goals of this patchset.] Overview

RE: [PATCH v2] MODSIGN: do not send garbage to stderr when enabling modules signature

2013-04-09 Thread Gross, Mark
> -Original Message- > From: Cohen, David A > Sent: Tuesday, April 09, 2013 2:39 PM > To: ru...@rustcorp.com.au; dhowe...@redhat.com > Cc: linux-kernel@vger.kernel.org; Gross, Mark; Cohen, David A > Subject: [PATCH v2] MODSIGN: do not send garbage to stderr when enabling > modules signature

[PATCH v2] MODSIGN: do not send garbage to stderr when enabling modules signature

2013-04-09 Thread David Cohen
openssl may send garbage to stderr when generating X.509 key pair for modules signature regardless there was an error or not. It makes more difficult to create scripts based on kernel error/warning messages. When compiling kernel with -jN (N > 1), all warning/error messages printed while openssl i

Re: [PATCHv2] rdma: add a new IB_ACCESS_GIFT flag

2013-04-09 Thread Michael S. Tsirkin
On Tue, Apr 09, 2013 at 11:34:09PM +0300, Michael S. Tsirkin wrote: > On Fri, Apr 05, 2013 at 04:17:36PM -0400, Michael R. Hines wrote: > > The userland part of the patch was missing (IBV_ACCESS_GIFT). > > > > I added flag that to /usr/include in addition to this patch and did > > a test RDMA migr

[PATCH v5 3/3] ARM: dts: Add sbs-battery for exynos5250-snow

2013-04-09 Thread Doug Anderson
Now that we have i2c-arbitrator in place on bus 4 we can add the sbs-battery driver. Future devices will be added onto bus 4 once drivers are in good shape. Signed-off-by: Doug Anderson --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/exynos

[PATCH v5 1/3] i2c: mux: Add i2c-arb-gpio-challenge 'mux' driver

2013-04-09 Thread Doug Anderson
The i2c-arb-gpio-challenge driver implements an I2C arbitration scheme where masters need to claim the bus with a GPIO before they can start a transcation. This should generally only be used when standard I2C multimaster isn't appropriate for some reason (errata/bugs). This driver is based on cod

[PATCH v5 2/3] ARM: dts: Add i2c-arbitrator bus for exynos5250-snow

2013-04-09 Thread Doug Anderson
We need to use the i2c-arbitrator to talk to any of the devices on i2c bus 4 on exynos5250-snow so that we don't confuse the embedded controller (EC). Add the i2c-arbitrator to the device tree. As we add future devices (keyboard, sbs, tps65090) we'll add them on top of this. The arbitrated bus i

Re: [PATCH] gpio: pca953x: fix irq_domain_add_simple usage

2013-04-09 Thread Alexandre Belloni
Linus, Grant, I take the liberty to ping you on that one as it is a regression and it may be worth to include it in 3.9 if it is still time to do so. Best regards, On 03/04/2013 19:40, Alexandre Belloni wrote: > We actually have to pass chip as the host_data parameter of > irq_domain_add_simple(

Re: [PATCHv2] rdma: add a new IB_ACCESS_GIFT flag

2013-04-09 Thread Michael S. Tsirkin
On Fri, Apr 05, 2013 at 04:17:36PM -0400, Michael R. Hines wrote: > The userland part of the patch was missing (IBV_ACCESS_GIFT). > > I added flag that to /usr/include in addition to this patch and did > a test RDMA migrate and it seems to work without any problems. > > I also removed the IBV_*_W

Re: [PATCH 09/10] memory-hotplug: enable memory hotplug to handle hugepage

2013-04-09 Thread KOSAKI Motohiro
>> numa_node_id() is really silly. This might lead to allocate from offlining >> node. > > Right, it should've been alloc_huge_page(). > >> and, offline_pages() should mark hstate as isolated likes normal pages for >> prohibiting >> new allocation at first. > > It seems that alloc_migrate_target(

Re: [PATCH] MODSIGN: do not send garbage to stderr when enabling modules signature

2013-04-09 Thread David Cohen
On 04/08/2013 08:27 PM, Rusty Russell wrote: David Cohen writes: openssl may send garbage to stderr when generating X.509 key pair for modules signature regardless there was an error or not. It makes more difficult to create scripts based on kernel error/warning messages. This patch makes sure

Re: dm-crypt parallelization patches

2013-04-09 Thread Mikulas Patocka
On Tue, 9 Apr 2013, Vivek Goyal wrote: > On Tue, Apr 09, 2013 at 04:32:28PM -0400, Mikulas Patocka wrote: > > [..] > > Generally, we shouldn't associate bios with "current" task in device > > mapper targets. For example suppose that we have two stacked dm-crypt > > targets: > > > > In the "cu

Re: [PATCH] [BZ905179] audit: omit check for uid and gid validity in audit rules and data

2013-04-09 Thread Eric W. Biederman
Steve Grubb writes: > On Tuesday, April 09, 2013 02:39:32 AM Eric W. Biederman wrote: >> Andrew Morton writes: >> > On Wed, 20 Mar 2013 15:18:17 -0400 Richard Guy Briggs > wrote: >> >> audit rule additions containing "-F auid!=4294967295" were failing with >> >> EINVAL. >> >> >> >> UID_INVALI

Re: [PATCH 33/33] aio: fix kioctx not being freed after cancellation at exit time

2013-04-09 Thread Kent Overstreet
On Tue, Apr 02, 2013 at 05:35:50PM -0400, Theodore Ts'o wrote: > On Thu, Mar 21, 2013 at 09:35:54AM -0700, Kent Overstreet wrote: > > From: Benjamin LaHaise > > > > The recent changes overhauling fs/aio.c introduced a bug that results in the > > kioctx not being freed when outstanding kiocbs are

Re: cgroup: status-quo and userland efforts

2013-04-09 Thread Tejun Heo
Hey, Serge. On Tue, Apr 09, 2013 at 04:04:22PM -0500, Serge Hallyn wrote: > So for instance if there is a dbus call saying "please create cgroup > /x with (some constraints) and put $$ into it", "something" in the > container can convert that into "please create cgroup /lxc/c1/x > and put (host_ui

Re: [PATCH v3] [RESEND] mm: Make snapshotting pages for stable writes a per-bio operation

2013-04-09 Thread Jan Kara
On Tue 09-04-13 14:04:32, Andrew Morton wrote: > On Tue, 9 Apr 2013 11:06:17 -0700 "Darrick J. Wong" > wrote: > > > +* Here we write back pagecache data that may be mmaped. Since > > +* we cannot afford to clean the page and set PageWriteback > > +* here due t

Re: [PATCH 15/33] aio: use flush_dcache_page()

2013-04-09 Thread Kent Overstreet
On Mon, Apr 01, 2013 at 10:12:29PM -0400, Theodore Ts'o wrote: > The commit description needs to explain why flush_dcache_page() is > needed now, but wasn't needed before. It wasn't causing problems before because it's not needed on x86, but it is needed on other architectures. Added that to the c

Re: dm-crypt parallelization patches

2013-04-09 Thread Vivek Goyal
On Tue, Apr 09, 2013 at 04:32:28PM -0400, Mikulas Patocka wrote: [..] > Generally, we shouldn't associate bios with "current" task in device > mapper targets. For example suppose that we have two stacked dm-crypt > targets: > > In the "current" process pointer in lower dm-crypt target's request

Re: Build regressions/improvements in v3.9-rc6

2013-04-09 Thread Geert Uytterhoeven
On Tue, 9 Apr 2013, Geert Uytterhoeven wrote: > JFYI, when comparing v3.9-rc6 to v3.9-rc5[3], the summaries are: > - build errors: +8/-13 Ignoring R_PPC64_REL24 truncated relocations, as usual: + error: binder.c: undefined reference to `get_vm_area': => .text+0x2fe8b8) + error: binder.c: u

Re: [PATCH v3] [RESEND] mm: Make snapshotting pages for stable writes a per-bio operation

2013-04-09 Thread Andrew Morton
On Tue, 9 Apr 2013 11:06:17 -0700 "Darrick J. Wong" wrote: > + * Here we write back pagecache data that may be mmaped. Since > + * we cannot afford to clean the page and set PageWriteback > + * here due to lock ordering (page lock ranks above transaction >

Re: cgroup: status-quo and userland efforts

2013-04-09 Thread Serge Hallyn
Quoting Tejun Heo (t...@kernel.org): > A bit of addition. > > On Tue, Apr 09, 2013 at 12:38:51PM -0700, Tejun Heo wrote: > > > We need to make the distribute approach work in order to support > > > containers, which requiring them to have a back-channel open to > > > the host userspace. If we can

Re: dm-crypt parallelization patches

2013-04-09 Thread Tejun Heo
On Tue, Apr 09, 2013 at 02:02:01PM -0700, Tejun Heo wrote: > For testing, copying bi_ioc and bi_css directly is fine but please add > another interface to copy those for the actual code. Say, > bio_copy_association(@to_bio, @from_bio) or whatever. Another and probably better possibility is just r

Re: dm-crypt parallelization patches

2013-04-09 Thread Tejun Heo
Hey, On Tue, Apr 09, 2013 at 04:32:28PM -0400, Mikulas Patocka wrote: > > and we probably need to change that to bio_associate_task(). > > Generally, we shouldn't associate bios with "current" task in device > mapper targets. For example suppose that we have two stacked dm-crypt > targets: It

Re: [PATCH] ARM: OMAP4: HWMOD: make 'ocp2scp_usb_phy_phy_48m" as the main clock

2013-04-09 Thread Paul Walmsley
Hi On Tue, 9 Apr 2013, Kishon Vijay Abraham I wrote: > commit 92702d (ARM: OMAP4: PM: fix PM regression introduced by recent > clock cleanup) makes the 'ocp2scp_usb_phy_phy_48m' as optional > functional clock causing regression in MUSB. But this 48MHz clock is a > mandatory clock for usb phy atta

Re: [PATCH 2/2 v2] mfd: db8500-prcmu: Support platform dependant device selection

2013-04-09 Thread Samuel Ortiz
Hi Lee, On Tue, Apr 09, 2013 at 08:52:58PM +0100, Lee Jones wrote: > The main aim for this cycle is to have the u8540 booting to a > console. However, the u8540 doesn't support all of the u8500 > platform devices yet. After this stage is complete we can then > fill in the inadequacies, such as spe

Re: [PATCH] kthread: Prevent unpark race which puts threads on the wrong cpu

2013-04-09 Thread Dave Hansen
On 04/09/2013 01:38 PM, Dave Hansen wrote: > It oopsed in exit.c: > > https://picasaweb.google.com/lh/photo/7v_Xua9I29Rar3bBdNlLu9MTjNZETYmyPJy0liipFm0?feat=directlink This was just secondary fallout after the first BUG_ON(). This exit.c thing isn't a new issue. -- To unsubscribe from this list:

Re: zsmalloc defrag (Was: [PATCH] mm: remove compressed copy from zram in-memory)

2013-04-09 Thread Seth Jennings
On 04/08/2013 08:36 PM, Minchan Kim wrote: > On Tue, Apr 09, 2013 at 10:27:19AM +0900, Minchan Kim wrote: >> Hi Dan, >> >> On Mon, Apr 08, 2013 at 09:32:38AM -0700, Dan Magenheimer wrote: From: Minchan Kim [mailto:minc...@kernel.org] Sent: Monday, April 08, 2013 12:01 AM Subject: [PA

Re: [PATCH] mfd: syscon: fix warnings when printing resource_size_t

2013-04-09 Thread Samuel Ortiz
Hi Alexander, On Tue, Apr 09, 2013 at 09:50:02PM +0400, Alexander Shiyan wrote: > Gets rid of these warnings when compile module for 64 bit targets: > CC drivers/mfd/syscon.o > drivers/mfd/syscon.c: In function 'syscon_probe': > drivers/mfd/syscon.c:155:2: warning: format '%x' expects a

Re: linux-next: build failure after merge of the mfd tree

2013-04-09 Thread Samuel Ortiz
Hi Rob, On Tue, Apr 09, 2013 at 11:50:30AM -0500, Rob Herring wrote: > On Tue, Apr 9, 2013 at 11:12 AM, Samuel Ortiz wrote: > > > > On Tue, Apr 09, 2013 at 07:47:40PM +0400, Alexander Shiyan wrote: > >> > On Mon, Apr 08, 2013 at 08:27:49PM +0400, Alexander Shiyan wrote: > > [...] > > >> From 32

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-09 Thread Nishanth Menon
On 10:43-20130409, Tony Lindgren wrote: > * Tony Lindgren [130409 09:54]: > > * Roger Quadros [130409 03:00]: > > > On 04/05/2013 06:58 PM, Tony Lindgren wrote: > > > > > > > > Can't you just use the clock name there to get it? > > > &g

Re: [PATCH] [BZ905179] audit: omit check for uid and gid validity in audit rules and data

2013-04-09 Thread Steve Grubb
On Tuesday, April 09, 2013 02:39:32 AM Eric W. Biederman wrote: > Andrew Morton writes: > > On Wed, 20 Mar 2013 15:18:17 -0400 Richard Guy Briggs wrote: > >> audit rule additions containing "-F auid!=4294967295" were failing with > >> EINVAL. > >> > >> UID_INVALID (and GID_INVALID) is actually

RE: zsmalloc defrag (Was: [PATCH] mm: remove compressed copy from zram in-memory)

2013-04-09 Thread Dan Magenheimer
> From: Minchan Kim [mailto:minc...@kernel.org] > Subject: Re: zsmalloc defrag (Was: [PATCH] mm: remove compressed copy from > zram in-memory) > > On Tue, Apr 09, 2013 at 10:27:19AM +0900, Minchan Kim wrote: > > Hi Dan, > > > > On Mon, Apr 08, 2013 at 09:32:38AM -0700, Dan Magenheimer wrote: > >

Re: [PATCH] kthread: Prevent unpark race which puts threads on the wrong cpu

2013-04-09 Thread Dave Hansen
On 04/09/2013 12:30 PM, Thomas Gleixner wrote: > On Tue, 9 Apr 2013, Thomas Gleixner wrote: > Thought more about it and found, that the stupid binding only works > when the task is really descheduled. So there is a small window left, > which could lead to this. Revised patch below. > > Anyway a tr

Re: [PATCH 5/8] dmaengine: ste_dma40: Ensure src and dst registers are configured correctly

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lee Jones wrote: > On Tue, 09 Apr 2013, Arnd Bergmann wrote: > > > On Tuesday 09 April 2013, Lee Jones wrote: > > > Confusingly d40_log_cfg() is used to set up the logical channel > > > configuration registers, but d40_phy_cfg() is used to configure > > > physical and log

Re: [PATCH 3/8] dmaengine: ste_dma40: Actually write the runtime configuration to registers

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lee Jones wrote: > Someone has spent a fair amount of effort writing a runtime configuration > changing algorithm for DMA clients. However, the config appears to never > actually make it to hardware. In order for the configuration to take hold > we need to issue a d40_conf

Re: [PATCH] ipc: use list_for_each_entry for list traversing

2013-04-09 Thread Andrew Morton
On Tue, 09 Apr 2013 11:39:07 +0200 Nikola Pajkovsky wrote: > Andrew Morton writes: > > > urgh, that code is sick. What's it doing poking around in the > > list_head internals? > > No idea, it there from beginning of first kernel importation into > git. Where is history before git? The old bi

Re: [PATCH v3 3/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-09 Thread H. Peter Anvin
On 04/09/2013 01:29 PM, Vivek Goyal wrote: > On Tue, Apr 09, 2013 at 01:24:46PM -0700, H. Peter Anvin wrote: >> On 04/09/2013 01:05 PM, Yinghai Lu wrote: So crashkernel=X@Y;high is a valid syntax? Looks like we will reserve X amount of RAM at base Y and ignore "high" or "low". >>> >>

Re: dm-crypt parallelization patches

2013-04-09 Thread Mikulas Patocka
On Tue, 9 Apr 2013, Tejun Heo wrote: > On Tue, Apr 09, 2013 at 03:42:16PM -0400, Mikulas Patocka wrote: > > If I drop ifdefs, it doesn't compile (because other cgroup stuff it > > missing). > > > > So I enabled bio cgroups. > > > > bio_associate_current can't be used, because by the time we a

Re: [PATCH v3 3/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-09 Thread Vivek Goyal
On Tue, Apr 09, 2013 at 01:24:46PM -0700, H. Peter Anvin wrote: > On 04/09/2013 01:05 PM, Yinghai Lu wrote: > >> > >> So crashkernel=X@Y;high is a valid syntax? Looks like we will reserve > >> X amount of RAM at base Y and ignore "high" or "low". > > > > yes, we should reject them. > > > > What

Re: [PATCH 7/9] iommu/amd: Add ioapic and hpet ivrs override

2013-04-09 Thread Joerg Roedel
On Tue, Apr 09, 2013 at 10:13:02PM +0200, Joerg Roedel wrote: > Add two new kernel commandline parameters ivrs_ioapic and > ivrs_hpet to override the Id->DeviceId mapping from the IVRS > ACPI table. This can be used to work around broken BIOSes to > get interrupt remapping working on AMD systems. >

RE: zsmalloc defrag (Was: [PATCH] mm: remove compressed copy from zram in-memory)

2013-04-09 Thread Dan Magenheimer
> From: Minchan Kim [mailto:minc...@kernel.org] > Subject: Re: zsmalloc defrag (Was: [PATCH] mm: remove compressed copy from > zram in-memory) > > Hi Dan, > > On Mon, Apr 08, 2013 at 09:32:38AM -0700, Dan Magenheimer wrote: > > > From: Minchan Kim [mailto:minc...@kernel.org] > > > Sent: Monday,

[PATCH v5 3/3] ARM: dts: Add sbs-battery for exynos5250-snow

2013-04-09 Thread Doug Anderson
Now that we have i2c-arbitrator in place on bus 4 we can add the sbs-battery driver. Future devices will be added onto bus 4 once drivers are in good shape. Signed-off-by: Doug Anderson --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/exynos

[PATCH v5 2/3] ARM: dts: Add i2c-arbitrator bus for exynos5250-snow

2013-04-09 Thread Doug Anderson
We need to use the i2c-arbitrator to talk to any of the devices on i2c bus 4 on exynos5250-snow so that we don't confuse the embedded controller (EC). Add the i2c-arbitrator to the device tree. As we add future devices (keyboard, sbs, tps65090) we'll add them on top of this. The arbitrated bus i

Re: linux-next: Tree for Apr 9 [cpufreq: NULL pointer deref]

2013-04-09 Thread Sedat Dilek
q.o > >> /tmp/cpufreq_o--disassemble-all.txt >> >> ...attached. >> >> - Sedat - > > Hmm, I remembered Thorsten Glaser told be to pass also "-Mintel" > parameter ("-D" shortform for "--disassemble-all"): > > $ objdump -

Re: [PATCH v3 3/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-09 Thread H. Peter Anvin
On 04/09/2013 01:05 PM, Yinghai Lu wrote: >> >> So crashkernel=X@Y;high is a valid syntax? Looks like we will reserve >> X amount of RAM at base Y and ignore "high" or "low". > > yes, we should reject them. > What if there isn't X amount of RAM available at base Y? -hpa -- H. Peter A

Re: [PATCH] drivers/gpu/drm/gma500:fix build failure for 3.9-rc5

2013-04-09 Thread Patrik Jakobsson
On Tue, Apr 9, 2013 at 8:35 AM, Xiong Zhou wrote: > From: Xiong Zhou > > This patch fixes build failure of v3.9-rc5. > When config ACPI_VIDEO as m, DRM_GMA500 as y, here comes the failure. > gma5/600 needs acpi_video just like nouveau. > > Failure message: > drivers/built-in.o: In function `psb_d

Re: [PATCH v2] bitmap: speedup in bitmap_find_free_region when order is 0

2013-04-09 Thread Andrew Morton
On Tue, 9 Apr 2013 15:34:44 +0900 "Chanho Min" wrote: > >It seems excessively complicated to me. Why not change > >bitmap_find_free_region() to skip the leading all-ones words and when > >it finds a not-all-ones word, adjust `pos' then fall into the existing > >bit-at-a-time search? > > Do we n

Re: [PATCHv2] rdma: add a new IB_ACCESS_GIFT flag

2013-04-09 Thread Michael S. Tsirkin
On Fri, Apr 05, 2013 at 01:43:49PM -0700, Roland Dreier wrote: > On Fri, Apr 5, 2013 at 1:17 PM, Michael R. Hines > wrote: > > I also removed the IBV_*_WRITE flags on the sender-side and activated > > cgroups with the "memory.memsw.limit_in_bytes" activated and the migration > > with RDMA also suc

[PATCH 4/9] iommu/amd: Move add_special_device() to __init

2013-04-09 Thread Joerg Roedel
The function is only called by other __init functions, so it can be moved to __init too. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu_init.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index e3c

Re: [PATCH] [BZ905179] audit: omit check for uid and gid validity in audit rules and data

2013-04-09 Thread Richard Guy Briggs
On Tue, Apr 09, 2013 at 02:39:32AM -0700, Eric W. Biederman wrote: > Andrew Morton writes: > > On Wed, 20 Mar 2013 15:18:17 -0400 Richard Guy Briggs > > wrote: > >> audit rule additions containing "-F auid!=4294967295" were failing with > >> EINVAL. > >> > >> UID_INVALID (and GID_INVALID) is a

[PATCH linux-next] dm-raid: Fix compiler warning

2013-04-09 Thread Stratos Karafotis
Fix the following compiler warning of uninitialized variable drivers/md/dm-raid.c: In function ‘raid_ctr’: drivers/md/dm-raid.c:427:160: warning: ‘rebuilds_per_group’ may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/md/dm-raid.c:383:11: note: ‘rebuilds_per_group’ was decl

Re: [PATCH v1 6/9] uretprobes: Return probe exit, invoke handlers

2013-04-09 Thread Oleg Nesterov
On 04/09, Oleg Nesterov wrote: > > > Should we a check here before using top most ri. > > What if the application had done a longjmp and the trampoline he hit > > corresponds to something thats below in the stack? > > > > Not sure if this what you meant by leaking return instances in your next > >

[PATCH 1/9] iommu/amd: Remove map_sg_no_iommu()

2013-04-09 Thread Joerg Roedel
This function was intended as a fall-back if the map_sg function is called for a device not mapped by the IOMMU. Since the AMD IOMMU driver uses per-device dma_ops this can never happen. So this function isn't needed anymore. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu.c | 22 +

Re: [GIT PULL] dt: run C pre-processor on *.dts, create some standard headers

2013-04-09 Thread Rob Herring
On 04/05/2013 01:46 PM, Stephen Warren wrote: > Rob, it might be worth keeping this in a separate branch in linux-next > so you can pull it out if it causes any issues. I've been using these > patches for quite a while now, but there's always opportunity for > surprises on architectures I don't use

[PATCH 5/9] iommu/amd: Extend IVRS special device data structure

2013-04-09 Thread Joerg Roedel
This patch extends the devid_map data structure to allow ioapic and hpet entries in ivrs to be overridden on the kernel command line. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu_init.c | 28 +++- drivers/iommu/amd_iommu_types.h |1 + 2 files changed, 20

[PATCH 2/9] iommu/amd: Use AMD specific data structure for irq remapping

2013-04-09 Thread Joerg Roedel
For compatibility reasons the irq remapping code for the AMD IOMMU used the same per-irq data structure as the Intel implementation. Now that support for the AMD specific data structure is upstream we can use this one instead. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu.c | 54

[PATCH 6/9] iommu/amd: Add early maps for ioapic and hpet

2013-04-09 Thread Joerg Roedel
This is needed in a later patch were ioapic_map and hpet_map entries are created before the slab allocator is initialized (and thus add_special_device() can't be used). Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu_init.c | 38 ++ 1 file changed, 3

[PATCH 0/9] AMD IOMMU cleanups, fixes and IVRS bug workarounds

2013-04-09 Thread Joerg Roedel
Hi, this patch-set contains some cleanups and patches for the AMD IOMM driver. The most important part is a workaround that can be used to get interrupt remapping working even the the IVRS table provided by the BIOS is broken. Joerg Joerg Roedel (9): iommu/amd: Remove map_sg_no_iommu(

[PATCH 7/9] iommu/amd: Add ioapic and hpet ivrs override

2013-04-09 Thread Joerg Roedel
Add two new kernel commandline parameters ivrs_ioapic and ivrs_hpet to override the Id->DeviceId mapping from the IVRS ACPI table. This can be used to work around broken BIOSes to get interrupt remapping working on AMD systems. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu_init.c | 6

[PATCH 8/9] iommu/amd: Don't report firmware bugs with cmd-line ivrs overrides

2013-04-09 Thread Joerg Roedel
When the IVRS entries for IOAPIC and HPET are overridden on the kernel command line, a problem detected in the check function might not be a firmware bug anymore. So disable the firmware bug reporting if the user provided valid ivrs_ioapic or ivrs_hpet entries on the command line. Signed-off-by: J

[PATCH 3/9] iommu/amd: Properly initialize irq-table lock

2013-04-09 Thread Joerg Roedel
Fixes a lockdep warning. Cc: sta...@vger.kernel.org # >= v3.7 Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 72fa570..33900b5 100644 --- a/drivers/iommu/amd_iommu.c ++

[PATCH 9/9] iommu/amd: Document ivrs_ioapic and ivrs_hpet parameters

2013-04-09 Thread Joerg Roedel
Document the new kernel commandline parameters in the appropriate file. Signed-off-by: Joerg Roedel --- Documentation/kernel-parameters.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 4609e

Re: [patch] fs, proc: truncate /proc/pid/comm writes to first TASK_COMM_LEN bytes

2013-04-09 Thread John Stultz
On 04/09/2013 01:03 PM, Andrew Morton wrote: cc: John Stultz I don't know if that address still works. No, that email is no longer active. Thanks for noticing this. From: David Rientjes Subject: fs, proc: truncate /proc/pid/comm writes to first TASK_COMM_LEN bytes Currently, a write to a

Re: [PATCH] HID: appleir: add support for Apple ir devices

2013-04-09 Thread Jiri Kosina
On Mon, 8 Apr 2013, Benjamin Tissoires wrote: > This driver was originally written by James McKenzie, updated by > Greg Kroah-Hartman, further updated by Bastien Nocera, with suspend > support added. > I ported it to the HID subsystem, in order to simplify it a litle > and allow lirc to use it thr

Re: [PATCHv2] rdma: add a new IB_ACCESS_GIFT flag

2013-04-09 Thread Michael S. Tsirkin
On Fri, Apr 05, 2013 at 02:03:33PM -0700, Roland Dreier wrote: > On Fri, Apr 5, 2013 at 1:51 PM, Michael R. Hines > wrote: > > Sorry, I was wrong. ignore the comments about cgroups. That's still broken. > > (i.e. trying to register RDMA memory while using a cgroup swap limit cause > > the process

Re: [PATCH 09/10] memory-hotplug: enable memory hotplug to handle hugepage

2013-04-09 Thread Naoya Horiguchi
On Fri, Apr 05, 2013 at 08:13:47PM -0400, KOSAKI Motohiro wrote: > (3/22/13 4:23 PM), Naoya Horiguchi wrote: > > Currently we can't offline memory blocks which contain hugepages because > > a hugepage is considered as an unmovable page. But now with this patch > > series, a hugepage has become mova

Re: [PATCH v3 3/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-09 Thread Yinghai Lu
On Tue, Apr 9, 2013 at 6:45 AM, Vivek Goyal wrote: > On Thu, Apr 04, 2013 at 03:17:01PM -0700, Yinghai Lu wrote: > > [..] >> @@ -1360,37 +1369,80 @@ static int __init parse_crashkernel_simp >> >> if (*cur == '@') >> *crash_base = memparse(cur+1, &cur); >> - else if (*cur !=

Re: [PATCHv2] rdma: add a new IB_ACCESS_GIFT flag

2013-04-09 Thread Michael S. Tsirkin
presumably is_dup_page reads the page, so should not break COW ... I'm not sure about the cgroups swap limit - you might have too many non COW pages so attempting to fault them all in makes you exceed the limit. You really should look at what is going on in the pagemap, to see if there's measureab

<    1   2   3   4   5   6   7   8   9   >