Re: [PATCH RESEND] gpio-lpc32xx: Fix value handling of gpio_direction_output()

2012-09-26 Thread Linus Walleij
On Tue, Sep 25, 2012 at 9:53 AM, Roland Stigge wrote: > For GPIOs of gpio-lpc32xx, gpio_direction_output() ignores the value argument > (initial value of output). This patch fixes this by setting the level > accordingly. > > Signed-off-by: Roland Stigge > Acked-by: Alexandre Pereira da Silva > >

Re: [QUESTION] Can uprobe_event support @ADDR, $retval, offs(FETCHARG)?

2012-09-26 Thread Hyeoncheol Lee
2012/9/26 Srikar Dronamraju : >> >> Perhaps, it is not so small things, but at least, we can try. >> In the userspace, memories(pages) can be paged out on swap or >> files. In that case, memory dereference function needs to track >> down the data on the disk and it causes I/O. This means we will >>

Re: [PATCHv1 5/6] MAINTAINERS: fix indentation for Viresh Kumar

2012-09-26 Thread Andy Shevchenko
On Wed, 2012-09-26 at 09:06 +0530, viresh kumar wrote: > On Tue, Sep 25, 2012 at 5:43 PM, Andy Shevchenko > wrote: > > Signed-off-by: Andy Shevchenko > > Cc: Viresh Kumar > > --- > > MAINTAINERS | 16 > > 1 file changed, 8 insertions(+), 8 deletions(-) > > Acked-by: Viresh

Re: [PATCH] x86_64: Work around old gas bug

2012-09-26 Thread Jan Beulich
>>> On 26.09.12 at 08:15, Tao Guo wrote: > gas in binutils(2.16.91) could not parse parentheses within macro > parameters, This description of yours contradicts the last hunk of the patch - iirc the requirement for macro parameters in those old gas versions is to be fully parenthesized if there's

[BISECTED] snd-hda-intel audio distortion in Linus' current tree

2012-09-26 Thread Steven Noonan
Started having audio problems when trying out the latest tree (v3.6-rc7-10-g56d27ad). When playing any kind of audio, there was significant distortion, mostly crackling noise. I'm using a Lenovo ThinkPad X230 (Panther Point). I did a git-bisect to locate the problem, and it seems this commit is to

Re: [PATCH] pagemap: fix wrong KPF_THP on slab pages

2012-09-26 Thread Fengguang Wu
On Wed, Sep 26, 2012 at 02:06:08AM -0400, Naoya Horiguchi wrote: > On Wed, Sep 26, 2012 at 12:02:34AM -0400, Naoya Horiguchi wrote: > ... > > > > +* page is a thp, not a non-huge compound page. > > > > +*/ > > > > + else if (PageTransCompound(page) && !PageSlab(page)) > > > >

Re: Out of memory on 3.5 kernels

2012-09-26 Thread Nico Schottelius
David Rientjes [Mon, Sep 24, 2012 at 03:43:27PM -0700]: > [...] > > And those objects are consuming ~2.3GB of slab on your 4GB machine and > seems to only have occurred between v3.4.2 to v3.5.3. > > It would be interesting to see what kmemleak would tell us. As the Archlinux kernel does not

Re: Out of memory on 3.5 kernels

2012-09-26 Thread Nico Schottelius
Good morning, Dave Kleikamp [Tue, Sep 25, 2012 at 10:07:14AM -0500]: > >> Active / Total Objects (% used): 1165130 / 1198087 (97.2%) > >> Active / Total Slabs (% used) : 81027 / 81027 (100.0%) > >> Active / Total Caches (% used) : 69 / 101 (68.3%) > >> Active / Total Size (% used)

Re: [PATCH] perf record: add meta-data support for pipe-mode

2012-09-26 Thread Stephane Eranian
On Wed, Sep 26, 2012 at 7:50 AM, David Ahern wrote: > I like the idea, but can't checkout the patch - does not apply to Arnaldo's > latest perf/core branch. mind rebasing? > It's against tip-master. > David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [PATCHv1 3/6] dmaengine: dw_dmac: Add PCI part of the driver

2012-09-26 Thread Andy Shevchenko
On Wed, 2012-09-26 at 09:30 +0530, viresh kumar wrote: > On Tue, Sep 25, 2012 at 5:43 PM, Andy Shevchenko > wrote: > > diff --git a/drivers/dma/dw_dmac_at32.c b/drivers/dma/dw_dmac_at32.c > > index 7bc7ac4..5c9180e 100644 > > --- a/drivers/dma/dw_dmac_at32.c > > +++ b/drivers/dma/dw_dmac_at32.c >

RE: [PATCH 1/3] virtio_console:Merge struct buffer_token into struct port_buffer

2012-09-26 Thread Sjur BRENDELAND
> > This merge reduces code size by unifying the approach for > > sending scatter-lists and regular buffers. Any type of > > write operation (splice, write, put_chars) will now allocate > > a port_buffer and send_buf() and free_buf() can always be used. > > Thanks! > This looks much nicer and simp

[PATCH] MAINTAINERS: fix indentation for Viresh Kumar

2012-09-26 Thread Viresh Kumar
From: Andy Shevchenko Signed-off-by: Andy Shevchenko Acked-by: Viresh Kumar --- MAINTAINERS | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f9d40d1..7dfd0eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -572,7 +572,7 @@ F: d

[PATCH 10/16] perf report: Make another loop for output resorting

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Now the event grouping viewing requires collapsing all members in a group to the leader. Thus hists__output_resort should be called after collapsing all entries in evlist. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 5 +

[PATCH 02/16] perf hists: Introduce struct he_stat

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim The struct he_stat is for separating out statistics data of a hist entry. It is required for later changes. It's just a mechanical change and should have no functional differences. Cc: Jiri Olsa Cc: Arun Sharma Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- too

[PATCH 05/16] perf tools: Keep group information

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Add a few of group-related field in struct perf_{evlist,evsel} so that the group information in a evlist can be known easily. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/evlist.c | 10 -- tools/perf/util/evlist.h |

Re: [PATCH V2 1/1] perf, Add support for Xeon-Phi PMU

2012-09-26 Thread Ingo Molnar
* Cyrill Gorcunov wrote: > On Tue, Sep 25, 2012 at 12:23:23PM -0400, Vince Weaver wrote: > > Hello > > > > This is an updated version of the patch. It uses > > ARCH_PERFMON_EVENTSEL_INT for the DATA_READ event, with the assumption > > that x86_pmu_hw_config() is going to set that bit anyway.

[PATCH 16/16] perf report: Add --group option

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Add --group option to enable event grouping. When enabled, all the group members information will be shown together with the leader. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 2 ++ 1 file changed, 2 insertions(+) dif

[PATCH 15/16] perf report: Show group description when event group is enabled

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim When using event group viewer, it's better to show the group description rather than the leader information alone. If a leader did not contain any member, it's a non-group event. Cc: Jiri Olsa Cc: Stephane Eranian Cc: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/pe

[PATCH 04/16] perf hists: Add more helpers for hist entry stat

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Add and use he_stat__add_{period,stat} for calculating hist entry's stat. It will be used for accumulated stats later as well. Cc: Jiri Olsa Cc: Arun Sharma Cc: Stephane Eranian Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 26

[PATCH 03/16] perf hists: Move he->stat.nr_events initialization to a template

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Since it is set to 1 for a new hist entry, no need to set to separately. Move it to a template entry. Cc: Jiri Olsa Cc: Arun Sharma Cc: Stephane Eranian Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 4 +++- 1 file changed, 3 insertions

[PATCH 14/16] perf report: Bypass non-leader events when event group is enabled

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Since we have all necessary information in the leader events and other members don't, bypass members. Member events will be shown along with the leaders if event group is enabled. Cc: Jiri Olsa Cc: Stephane Eranian Cc: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/p

[PATCH 13/16] perf ui/gtk: Add support for event group view

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Show group members' overhead also when showing the leader's if event group is enabled. At this time, only implemented overhead part in order to ease review and other parts can be added later once this patch settled down. Cc: Jiri Olsa Cc: Stephane Eranian Cc: Pekka Enberg

[PATCH 12/16] perf ui/browser: Add support for event group view

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Show group members' overhead also when showing the leader's if event group is enabled. At this time, only implemented overhead part in order to ease review and other parts can be added later once this patch settled down. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Nam

[PATCH 11/16] perf ui/hist: Add support for event group view

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Show group members' overhead also when showing the leader's if event group is enabled. At this time, only implemented overhead part in order to ease review and other parts can be added later once this patch settled down. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Nam

[PATCH 09/16] perf hists: Maintain total periods of group members in the leader

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Like group_stats in hist_entry, total periods information also need to be known to the leader. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 25 + tools/perf/util/hist.h | 1 + 2 files changed, 26 inser

[PATCH 07/16] perf header: Add HEADER_GROUP_DESC feature

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim Save group relationship information so that it can be restored when perf report is running. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/builtin-record.c | 3 + tools/perf/util/header.c| 149 +++

[PATCH 00/16] perf report: Add suppport for event group view (v2)

2012-09-26 Thread Namhyung Kim
Hi, This is my second attempt to support event group on perf report. For basic idea and usage example, please see my original post [1]. The main difference than v1 is adding HEADER_GROUP_DESC feature and use it for regenerating group relationship on perf report. It will save actual (i.e. contain

[PATCH 08/16] perf hists: Collapse group hist_entries to a leader

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim To support viewing an event group together, collapse all of members in the group to the leader's tree. The entries in the leaders' tree will have group_stats to store those information. This patch introduced an additional field 'event_group' in symbol_conf to distinguish whet

[PATCH 06/16] perf evlist: Add perf_evlist__recalc_nr_groups

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim During the event parsing, perf_evlist can have leader-only groups which has nr_members as 1. Since they has no difference than a normal non-group event don't count them as a event group. Add perf_evlist__recalc_nr_groups to count actual group numbers. Cc: Jiri Olsa Cc: Step

[PATCH 01/16] perf hists: Add missing period_* fields when collapsing a hist entry

2012-09-26 Thread Namhyung Kim
From: Namhyung Kim So that the perf report won't lost the cpu utilization information. For example, if there're two process that have same name. $ perf report --stdio --showcpuutilization -s pid [SNIP] # Overhead sysus Command: Pid # ...

Re: [PATCH] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Srivatsa S. Bhat
On 09/26/2012 12:22 PM, Liu, Chuansheng wrote: >>> + } else if (cpumask_test_cpu(cpu, data->affinity)) >>> + cpumask_clear_cpu(cpu, data->affinity); >>> >> >> You meant to use 'affinity' (instead of data->affinity) in the above 2 >> statements >> right? Note that we do

Re: [PATCH v3 8/9] perf hists browser: Add option for runtime switching perf data file

2012-09-26 Thread Feng Tang
On Tue, Sep 25, 2012 at 08:17:03AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Sep 25, 2012 at 04:20:53PM +0800, Feng Tang escreveu: > > On Tue, 25 Sep 2012 11:11:21 +0900 > > Namhyung Kim wrote: > > > Ditto. Plus it might leak previous input_name. > > > > Nice catch, will check the return

RE: [PATCH] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Liu, Chuansheng
> Btw, on a slightly different note, I'm also rather surprised that the above > code doesn't care about the return value of chip->irq_set_affinity() .. > Shouldn't we warn if that fails? It seems another case when irq_set_affinity is NULL whenever affinity is changed or not before that, For this

Re: [PATCH] x86_64: Work around old gas bug

2012-09-26 Thread Tao Guo
On 9/26/12, Jan Beulich wrote: On 26.09.12 at 08:15, Tao Guo wrote: >> gas in binutils(2.16.91) could not parse parentheses within macro >> parameters, > > This description of yours contradicts the last hunk of the patch - > iirc the requirement for macro parameters in those old gas > versio

RE: [PATCH] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Liu, Chuansheng
> Shouldn't we warn if that fails? printk("Cannot set affinity for irq %i\n", irq); This is the warning when set affinity failed.

RE: [PATCH] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Liu, Chuansheng
> In that case, we would end up with an incorrect data->affinity right? > Moving the clean cpu mask code into if (chip->irq_set_affinity)? Will resend the patch and will judge the chip->irq_set_affinity(data, affinity, true) return value.

RE: [RFC PATCH 00/13] DMA Engine support for AM33xx

2012-09-26 Thread Hebbar, Gururaja
On Fri, Sep 21, 2012 at 23:52:11, Porter, Matt wrote: > On Fri, Sep 21, 2012 at 08:27:07AM +, Hebbar, Gururaja wrote: > > On Thu, Sep 20, 2012 at 20:13:33, Porter, Matt wrote: > > > This series adds DMA Engine support for AM33xx, which uses > > > an EDMA DMAC. The EDMA DMAC has been previously

Re: [PATCH] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Srivatsa S. Bhat
On 09/26/2012 01:47 PM, Liu, Chuansheng wrote: >> Shouldn't we warn if that fails? > printk("Cannot set affinity for irq %i\n", irq); > This is the warning when set affinity failed. > I know.. What I meant is, the code warns only if chip->irq_set_affinity is NULL and doesn't care if chip->irq_set

[PATCH RESEND] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Chuansheng Liu
When one CPU is going offline, and fixup_irqs() will re-set the irq affinity in some cases, we should clean the offlining CPU from the irq affinity. The reason is setting offlining CPU as of the affinity is useless. Moreover, the smp_affinity value will be confusing when the offlining CPU come ba

RE: [PATCH] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Liu, Chuansheng
> I know.. What I meant is, the code warns only if chip->irq_set_affinity > is NULL and doesn't care if chip->irq_set_affinity was not NULL and > the function failed to set the affinity (ie., when chip->irq_set_affinity() > returns error). In other words, I meant to say that this is one more > case

Re: [PATCH] slab: Ignore internal flags in cache creation

2012-09-26 Thread Glauber Costa
On 09/26/2012 04:46 AM, David Rientjes wrote: > On Tue, 25 Sep 2012, Christoph Lameter wrote: > >>> No cache should ever pass those as a creation flags. We can just ignore >>> this bit if it happens to be passed (such as when duplicating a cache in >>> the kmem memcg patches) >> >> Acked-by: Chris

[PATCH 0/3] zram/zsmalloc promotion

2012-09-26 Thread Minchan Kim
ivers/block/zram which is suggested by Nitin. I don't know who should merge whose tree. So I will add both Greg and Jens to To. This patchset is based on next-20120926. Minchan Kim (3): zsmalloc: promote to lib/ zram: promote zram from staging zram: select ZSMALLOC when ZRAM is configured

[PATCH 3/3] zram: select ZSMALLOC when ZRAM is configured

2012-09-26 Thread Minchan Kim
At the monent, we can configure zram in driver/block once zsmalloc in /lib menu is configured firstly. It's not convenient. User can configure zram in driver/block regardless of zsmalloc enabling by this patch. Signed-off-by: Minchan Kim --- drivers/block/zram/Kconfig |3 ++- 1 file changed

[PATCH] x86_64: Work around old gas bug

2012-09-26 Thread Tao Guo
gas in binutils(2.16.91) could not parse parentheses within macro parameters unless fully parenthesized, and this is a workaround to make old gas work without generating below errors: arch/x86/kernel/entry_64.S: Assembler messages: arch/x86/kernel/entry_64.S:387: Error: too many positional argument

Re: [PATCH RESEND] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Srivatsa S. Bhat
On 09/26/2012 11:08 PM, Chuansheng Liu wrote: > > When one CPU is going offline, and fixup_irqs() will re-set the > irq affinity in some cases, we should clean the offlining CPU from > the irq affinity. > > The reason is setting offlining CPU as of the affinity is useless. > Moreover, the smp_aff

GFS2: Pre-pull patch posting (merge window)

2012-09-26 Thread Steven Whitehouse
Hi, We've collected up a goodly number of patches in the -nmw tree now and we can hold off any further changes until the following merge window, so here is the current tree content. The major feature this time is the "rbm" conversion in the resource group code. The new struct gfs2_rbm specifies t

[PATCH 01/27] GFS2: Merge two nearly identical xattr functions

2012-09-26 Thread Steven Whitehouse
There were two functions in the xattr code which were nearly identical, the only difference being that one was copy data into the unstuffed xattrs and the other was copying data out from it. This patch merges the two functions such that the code which deal with iteration over the unstuffed xattrs

RE: [PATCH RESEND] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Liu, Chuansheng
> Please hold on.. I'm not yet done reviewing, I might have more comments :-) Sure, welcome, thanks again.

[PATCH 10/27] GFS2: change function gfs2_direct_IO to use a normal gfs2_glock_dq

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson This patch changes function gfs2_direct_IO so that it uses a normal call to gfs2_glock_dq rather than a call to a multiple-dq of one item. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 00eaa83..01c4975 100644

[PATCH 19/27] GFS2: Fall back to ignoring reservations, if there are no other blocks left

2012-09-26 Thread Steven Whitehouse
When we get to the stage of allocating blocks, we know that the resource group in question must contain enough free blocks, otherwise gfs2_inplace_reserve() would have failed. So if we are left with only free blocks which are reserved, then we must use those. This can happen if another node has sne

[PATCH 22/27] GFS2: Stop block extents at the end of bitmaps

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson This patch stops multiple block allocations if a nonzero return code is received from gfs2_rbm_from_block. Without this patch, if enough pressure is put on the file system, you get a kernel warning quickly followed by: BUG: unable to handle kernel NULL pointer dereference at (n

[PATCH 25/27] GFS2: Fix infinite loop in rbm_find

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson This patch fixes an infinite loop in gfs2_rbm_find that was introduced by the previous patch. The problem occurred when the length was less than 3 but the rbm block was byte-aligned, causing it to improperly return a extent length of zero, which caused it to spin. Signed-off-b

[PATCH 27/27] GFS2: Write out dirty inode metadata in delayed deletes

2012-09-26 Thread Steven Whitehouse
From: Benjamin Marzinski If a dirty GFS2 inode was being deleted but was in use by another node, its metadata was not getting written out before GFS2 checked for dirty buffers in gfs2_ail_flush(). GFS2 was relying on inode_go_sync() to write out the metadata when the other node tried to free the

Re: [PATCH] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Srivatsa S. Bhat
On 09/26/2012 01:40 PM, Liu, Chuansheng wrote: >> Btw, on a slightly different note, I'm also rather surprised that the above >> code doesn't care about the return value of chip->irq_set_affinity() .. >> Shouldn't we warn if that fails? > > It seems another case when irq_set_affinity is NULL whene

[PATCH 26/27] GFS2: fix s_writers.counter imbalance in gfs2_ail_empty_gl

2012-09-26 Thread Steven Whitehouse
From: Eric Sandeen gfs2_ail_empty_gl() contains an "inline version" of gfs2_trans_begin(), so it needs an explicit sb_start_intwrite() as well, to balance the sb_end_intwrite() which will be called by gfs2_trans_end(). With this, xfstest 068 passes on lock_nolock local gfs2. Without it, we reach

[PATCH 24/27] GFS2: Consolidate free block searching functions

2012-09-26 Thread Steven Whitehouse
With the recently added block reservation code, an additional function was added to search for free blocks. This had a restriction of only being able to search for aligned extents of free blocks. As a result the allocation patterns when reserving blocks were suboptimal when the existing allocation

[PATCH 04/27] GFS2: Replace rgblk_search with gfs2_rbm_find

2012-09-26 Thread Steven Whitehouse
This is part of a series of patches which are introducing the gfs2_rbm structure throughout the block allocation code. The main aim of this part is to create a search function which can deal directly with struct gfs2_rbm. In this case it specifies the initial position at which to start the search a

[PATCH 12/27] GFS2: Combine functions gfs2_glock_wait and wait_on_holder

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson Function gfs2_glock_wait only called function wait_on_holder and returned its return code, so they were combined for readability. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 67f3e42..5c87909 100644 --- a/

[PATCH 15/27] GFS2: Eliminate unnecessary check for state > 3 in bitfit

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson Function gfs2_bitfit was checking for state > 3, but that's impossible since it is only called from rgblk_search, which receives only GFS2_BLKST_ constants. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index c2671

[PATCH 17/27] GFS2: Use rbm for gfs2_setbit()

2012-09-26 Thread Steven Whitehouse
Use the rbm structure for gfs2_setbit() in order to simplify the arguments to the function. We have to add a bool to control whether the clone bitmap should be updated (if it exists) but otherwise it is a more or less direct substitution. Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/rgr

[PATCH 20/27] GFS2: Improve block reservation tracing

2012-09-26 Thread Steven Whitehouse
This patch improves the tracing of block reservations by removing some corner cases and also providing more useful detail in the traces. A new field is added to the reservation structure to contain the inode number. This is used since in certain contexts it is not possible to access the inode itse

[PATCH 23/27] GFS2: Get rid of I_MUTEX_QUOTA usage

2012-09-26 Thread Steven Whitehouse
From: Jan Kara GFS2 uses i_mutex on its system quota inode to synchronize writes to quota file. Since this is an internal inode to GFS2 (not part of directory hiearchy or visible by user) we are safe to define locking rules for it. So let's just get it its own locking class to make it clear. Sig

[PATCH 21/27] GFS2: Fix unclaimed_blocks() wrapping bug and clean up

2012-09-26 Thread Steven Whitehouse
When rgd->rd_free_clone is less than rgd->rd_reserved, the unclaimed_blocks() calculation would wrap and produce incorrect results. This patch checks for this condition when this function is called from gfs2_mblk_search() In addition, the use of this particular function in other places in the code

[PATCH 18/27] GFS2: Fix ->show_options() for statfs slow

2012-09-26 Thread Steven Whitehouse
The ->show_options() function for GFS2 was not correctly displaying the value when statfs slow in in use. Signed-off-by: Steven Whitehouse Reported-by: Milos Jakubicek diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index 3cbac68..79cac70 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c @@ -13

[PATCH 16/27] GFS2: Use rbm for gfs2_testbit()

2012-09-26 Thread Steven Whitehouse
Change the arguments to gfs2_testbit() so that it now just takes an rbm specifying the position of the two bit entry to return. Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 47d2346..3a288ce 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -117,30 +117,21

[PATCH 14/27] GFS2: Eliminate redundant calls to may_grant

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson Function add_to_queue was checking may_grant for the passed-in holder for every iteration of its gh2 loop. Now it only checks it once at the beginning to see if a try lock is futile. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/glock.c b

[PATCH 13/27] GFS2: Combine functions gfs2_glock_dq_wait and wait_on_demote

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson Function gfs2_glock_dq_wait called two-line function wait_on_demote, so they were combined. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 5c87909..fca6a87 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c

[PATCH 11/27] GFS2: inline __gfs2_glock_schedule_for_reclaim

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson Since function gfs2_glock_schedule_for_reclaim is only two significant lines, we can eliminate it, simplifying the code and making it more readable. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 1ed81f4..67

[PATCH 09/27] GFS2: rbm code cleanup

2012-09-26 Thread Steven Whitehouse
From: Bob Peterson This patch fixes a few small rbm related things. First, it fixes a corner case where the rbm needs to switch bitmaps and wasn't adjusting its buffer pointer. Second, there's a white space issue fixed. Third, the logic in function gfs2_rbm_from_block was optimized a bit. Lastly,

RE: [PATCH RESEND] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Liu, Chuansheng
> A return value of 0 and 1 are acceptable. So this check isn't correct. > > Regards, > Srivatsa S. Bhat > Which case value 1 is acceptable, could you share? Thanks. > OMG, why did you drop the other hunk which cleared the cpu *before* > invoking ->irq_set_affinity()? IMO, altering irq affinity

[PATCH 08/27] GFS2: Fix case where reservation finished at end of rgrp

2012-09-26 Thread Steven Whitehouse
One corner case which the original patch failed to take into account was when there is a reservation which ended such that the following block was one beyond the end of the rgrp in question. This extra test fixes that case. Signed-off-by: Steven Whitehouse Reported-by: Bob Peterson Tested-by: Bo

Re: [PATCH v2] media: mt9p031/mt9t001/mt9v032: use V4L2_CID_TEST_PATTERN for test pattern control

2012-09-26 Thread Laurent Pinchart
Hi Prabhakar, Thanks for the patch. On Wednesday 26 September 2012 12:05:10 Prabhakar wrote: > From: Lad, Prabhakar > > Signed-off-by: Lad, Prabhakar > Signed-off-by: Manjunath Hadli > Cc: Laurent Pinchart > Cc: Sakari Ailus > Cc: Paul Gortmaker > Cc: Jean Delvare > --- > Changes for v2:

Re: [RFC 2/4] memcg: make it suck faster

2012-09-26 Thread Glauber Costa
On 09/26/2012 01:02 AM, Andrew Morton wrote: >> nomemcg : memcg compile disabled. >> > base : memcg enabled, patch not applied. >> > bypassed : memcg enabled, with patch applied. >> > >> > basebypassed >> > User 109.12 105.64 >> > System 1646.84 159

[PATCH 05/27] GFS2: Update gfs2_get_block_type() to use rbm

2012-09-26 Thread Steven Whitehouse
Use the new gfs2_rbm_from_block() function to replace an open coded version of the same code. Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index bd3b926..0c1be38 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -1824,27 +1824,14 @@ void gfs2_inplace_release(st

Re: [Xen-devel] [PATCH 2/2] xen/pciback: When resetting the device don't disable twice.

2012-09-26 Thread Jan Beulich
>>> On 25.09.12 at 23:27, Konrad Rzeszutek Wilk wrote: > We call 'pci_disable_device' which sets the bus_master to zero > and it also disables the PCI_COMMAND. There is no need to > do it outside the PCI library. Not really - pci_disable_device() only does anything if enable_cnt drops to zero, an

[PATCH 07/27] GFS2: Use RB_CLEAR_NODE() rather than rb_init_node()

2012-09-26 Thread Steven Whitehouse
From: Michel Lespinasse gfs2 calls RB_EMPTY_NODE() to check if nodes are not on an rbtree. The corresponding initialization function is RB_CLEAR_NODE(). rb_init_node() was never clearly defined and is going away. Signed-off-by: Michel Lespinasse Signed-off-by: Steven Whitehouse diff --git a/f

[PATCH 06/27] GFS2: Update rgblk_free() to use rbm

2012-09-26 Thread Steven Whitehouse
Replace open coded version with a call to gfs2_rbm_from_block() Signed-off-by: Steven Whitehouse diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 0c1be38..06476b3 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -1890,46 +1890,30 @@ static u64 gfs2_alloc_extent(const struct gfs2_rbm *rbm,

[PATCH 03/27] GFS2: Add structure to contain rgrp, bitmap, offset tuple

2012-09-26 Thread Steven Whitehouse
This patch introduces a new structure, gfs2_rbm, which is a tuple of a resource group, a bitmap within the resource group and an offset within that bitmap. This is designed to make manipulating these sets of variables easier. There is also a new helper function which converts this representation ba

[PATCH 02/27] GFS2: Remove rs_requested field from reservations

2012-09-26 Thread Steven Whitehouse
The rs_requested field is left over from the original allocation code, however this should have been a parameter passed to the various functions from gfs2_inplace_reserve() and not a member of the reservation structure as the value is not required after the initial allocation. This also helps simp

Re: [PATCH v3 3/9] perf script: Add more filter to find_scripts()

2012-09-26 Thread Feng Tang
On Tue, 25 Sep 2012 10:47:03 +0900 Namhyung Kim wrote: > Hi Feng, > > On Mon, 24 Sep 2012 23:24:05 +0800, Feng Tang wrote: > > As suggested by Arnaldo, many scripts have their own usages and need > > capture specific events or tracepoints, so only those scripts whose > > targe events match the e

Re: [PATCH RESEND] x86/fixup_irq: Clean the offlining CPU from the irq affinity mask

2012-09-26 Thread Srivatsa S. Bhat
On 09/26/2012 02:26 PM, Liu, Chuansheng wrote: >> A return value of 0 and 1 are acceptable. So this check isn't correct. >> >> Regards, >> Srivatsa S. Bhat >> > Which case value 1 is acceptable, could you share? Thanks. I can see the following in include/linux/irq.h: /* * Return value for chip->

Liya shared photos with you on facebook

2012-09-26 Thread Shibakawa ink
How to print with small cost but large quantity of pages? Duplicator ink and master, copier toner and printer cartridge, spare parts and used machine. If you need, call me pls then we talk details. (*^__^*). Skype: luckyme991 Yahoo! Messenger: luckyhuang18 Tel: 0086 159890

Re: [RFC 2/4] memcg: make it suck faster

2012-09-26 Thread Daniel P. Berrange
On Wed, Sep 26, 2012 at 12:53:21PM +0400, Glauber Costa wrote: > On 09/26/2012 01:02 AM, Andrew Morton wrote: > >> nomemcg : memcg compile disabled. > >> > base : memcg enabled, patch not applied. > >> > bypassed : memcg enabled, with patch applied. > >> > > >> > basebypas

Re: [GIT PULL] Asymmetric keys and module signing

2012-09-26 Thread David Howells
Rusty Russell wrote: > We do a very simple search for a particular string appended to the module > (which is cache-hot and about to be SHA'd anyway). There's both a config > option and a boot parameter which control whether we accept (and taint) or > fail with unsigned modules. I've adjusted yo

Re: [RFC PATCH] drivers: phy: add generic PHY framework

2012-09-26 Thread ABRAHAM, KISHON VIJAY
Hi, On Mon, Sep 17, 2012 at 3:03 PM, Marc Kleine-Budde wrote: > On 09/14/2012 03:06 PM, ABRAHAM, KISHON VIJAY wrote: > > [...] > diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c new file mode 100644 index 000..c55446a --- /dev/null +++ b/drivers/phy/phy-co

Re: [PATCH 3/3] DMA: PL330: Balance module remove function with probe

2012-09-26 Thread Jassi Brar
On Wed, Sep 26, 2012 at 12:11 PM, Inderpal Singh wrote: > How about conditionally DMA_TERMINATE_ALL and free resources like below ? > > @@ -3017,9 +3017,11 @@ static int __devexit pl330_remove(struct > amba_device *adev) > /* Remove the channel */ > list_del(&pch->

Re: WARNING: at kernel/rcutree.c:1558 rcu_do_batch+0x386/0x3a0(), during CPU hotplug

2012-09-26 Thread Srivatsa S. Bhat
On 09/13/2012 06:17 PM, Srivatsa S. Bhat wrote: > On 09/13/2012 12:00 PM, Michael Wang wrote: >> On 09/12/2012 11:31 PM, Paul E. McKenney wrote: >>> On Wed, Sep 12, 2012 at 06:06:20PM +0530, Srivatsa S. Bhat wrote: On 07/19/2012 10:45 PM, Paul E. McKenney wrote: > On Thu, Jul 19, 2012 at 0

Re: [RFC PATCH] drivers: phy: add generic PHY framework

2012-09-26 Thread Marc Kleine-Budde
On 09/26/2012 11:20 AM, ABRAHAM, KISHON VIJAY wrote: > Hi, > > On Mon, Sep 17, 2012 at 3:03 PM, Marc Kleine-Budde > wrote: >> On 09/14/2012 03:06 PM, ABRAHAM, KISHON VIJAY wrote: >> >> [...] >> > diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c > new file mode 100644 > in

Re: [PATCH 1/3] virtio_console:Merge struct buffer_token into struct port_buffer

2012-09-26 Thread Masami Hiramatsu
(2012/09/26 16:48), Sjur BRENDELAND wrote: >>> -static struct port_buffer *alloc_buf(size_t buf_size) >>> +static struct port_buffer *alloc_buf(struct virtqueue *vq, size_t buf_size, >>> +int nrbufs) >>> { >>> struct port_buffer *buf; >>> + size_t alloc_size;

Re: [PATCH 1/3] zsmalloc: promote to lib/

2012-09-26 Thread Wanlong Gao
On 09/26/2012 04:50 PM, Minchan Kim wrote: > This patch promotes the slab-based zsmalloc memory allocator > from the staging tree to lib/ > > zcache/zram depends on this allocator for storing compressed RAM pages > in an efficient way under system wide memory pressure where > high-order (greater t

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

2012-09-26 Thread Philip, Avinash
Hi Benoit, On Tue, Sep 18, 2012 at 11:00:28, Philip, Avinash wrote: > Add McSPI data node to AM33XX device tree file. The McSPI module (and so > as the driver) is reused from OMAP4. > > Signed-off-by: Philip, Avinash > Tested-by: Matt Porter I haven't received any comments till now for

[PATCH v3 memstick: support for legacy sony memsticks

2012-09-26 Thread Maxim Levitsky
Hi, I am sending an updated version of the driver, this time addressing comments by Tejun Heo Changes since V2: * Removed the mutex kludge - ordered worqueue indeed works well * Removed manul major/minor handling * Gave more specific names to two sg helpers. Changes from V1: * Replaced explici

[PATCH 1/2] scatterlist: add sg_nents

2012-09-26 Thread Maxim Levitsky
Useful helper to know the number of entries in scatterlist. Signed-off-by: Maxim Levitsky --- include/linux/scatterlist.h |1 + lib/scatterlist.c | 22 ++ 2 files changed, 23 insertions(+) diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h

Re: [PATCH] mtd/nand/docg4: Add missing HAS_IOMEM dependency

2012-09-26 Thread Artem Bityutskiy
On Sat, 2012-09-15 at 00:41 +0200, Peter Huewe wrote: > While building an allyesconfig for UML I received this error message(s): > drivers/mtd/nand/docg4.c: In function 'probe_docg4': > drivers/mtd/nand/docg4.c:1272:2: error: implicit declaration of function > 'ioremap' [-Werror=implicit-functio

Re: [PATCH 1/3] zsmalloc: promote to lib/

2012-09-26 Thread Pekka Enberg
On Wed, Sep 26, 2012 at 11:50 AM, Minchan Kim wrote: > lib/Kconfig |2 + > lib/Makefile |1 + > lib/zsmalloc/Kconfig | 18 + > lib/zsmalloc/Makefile|1 + > lib/zsmalloc/zsmalloc.c

ACPI regression in 3.6, no more battery status, with Dell Latitude E6430

2012-09-26 Thread Hans de Goede
Hi, First of all, sorry for not reporting this earlier in the cycle, but I only got this (new) laptop yesterday ... With both the 3.5 kernels as well as with the 3.6 kernels, there is quite some unhappiness being reported in dmesg about the ACPI tables, esp. surrounding BAT0. But with 3.5 I do g

Re: [PATCH 2/3] zram: promote zram from staging

2012-09-26 Thread Pekka Enberg
On Wed, Sep 26, 2012 at 11:50 AM, Minchan Kim wrote: > It's time to promote zram from staging because zram is in staging > for a long time and is improved by many contributors so code is > very clean. Most important issue, zram's dependency with x86 is > solved by making zsmalloc portable. In addi

RE: [PATCH v4 5/5] MFD: ti_tscadc: add suspend/resume functionality

2012-09-26 Thread Patil, Rachna
Hi Shubhrajyoti, On Wed, Sep 26, 2012 at 12:10:51, Datta, Shubhrajyoti wrote: > On Wednesday 26 September 2012 10:50 AM, Patil, Rachna wrote: > > This patch adds support for suspend/resume of > > TSC/ADC MFDevice. > this should be merged with the patch adding support else > we may end up in a case

[PATCH] x86, tsc: downgrade message for fast calibration failure

2012-09-26 Thread Paul Bolle
When fast calibration of the TSC fails an error is printed: tsc: Fast TSC calibration failed This message was printed at default level (ie, as a warning) before commit c767a54ba0657e52e6edaa97cbe0b0a8bf1c1655 ("x86/debug: Add KERN_ to bare printks, convert printks to pr_"). But it is more appr

Re: [PATCH] x86_64: Work around old gas bug

2012-09-26 Thread Jan Beulich
>>> On 26.09.12 at 10:28, Tao Guo wrote: > gas in binutils(2.16.91) could not parse parentheses within macro > parameters unless fully parenthesized, and this is a workaround to > make old gas work without generating below errors: > arch/x86/kernel/entry_64.S: Assembler messages: > arch/x86/kernel

  1   2   3   4   5   6   >