Re: [PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-28 Thread Minchan Kim
Sorry for late response. I should have hurried. I just sent by my comment of your previous version's mail thread. Please look at it. On Wed, Nov 28, 2012 at 11:48:30PM -0800, Nitin Gupta wrote: > Changelog v2 vs v1 > - None > > Adds zs_get_object_size(handle) which provides the size of > the

Re: [PATCH 03/14] perf tool: Fix period symbol_conf.field_sep display

2012-11-28 Thread Namhyung Kim
On Wed, 28 Nov 2012 14:52:38 +0100, Jiri Olsa wrote: > Currently we don't properly display hist data with > symbol_conf.field_sep separator. We need to display > either space or separator. > > Signed-off-by: Jiri Olsa > Cc: Arnaldo Carvalho de Melo > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc:

Re: [PATCH v2] zram: Fix use-after-free bug in disk write case

2012-11-28 Thread Minchan Kim
Hi Nitin, On Wed, Nov 28, 2012 at 11:45:06PM -0800, Nitin Gupta wrote: > Changelog v2 vs v1: > - Changelog message now correctly explains the problem > > Fixes a bug introduced by commit c8f2f0db1 ("zram: Fix handling > of incompressible pages") which caused a freed buffer to be used > in case

Re: [PATCH v5 0/5] OMAP: iommu: hwmod, reset handling and runtime PM

2012-11-28 Thread Ohad Ben-Cohen
On Tue, Nov 20, 2012 at 3:05 AM, Omar Ramirez Luna wrote: > These patches are needed for remoteproc to work on OMAP4. > > Introduced iommu hwmod support for OMAP3 (iva, isp) and > OMAP4 (ipu, dsp), along with the corresponding runtime PM > and routines to deassert reset lines, enable/disable

[PATCH v2 2/2] zram: reduce metadata overhead

2012-11-28 Thread Nitin Gupta
Changelog v2 vs v1: - Use is_zero_page() instead of direct handle comparison - Use 1 as invalid handle value instead of -1 since handle is unsigned and thus -1 may refer to a valid object. While 1 is guaranteed to be invalid since can never refer to (end of) a valid object. - Remove references

[PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-28 Thread Nitin Gupta
Changelog v2 vs v1 - None Adds zs_get_object_size(handle) which provides the size of the given object. This is useful since the user (zram etc.) now do not have to maintain object sizes separately, saving on some metadata size (4b per page). The object handle encodes pair which currently

Re: [RFC][PATCH 2/2] fix kvm's use of __pa() on percpu areas

2012-11-28 Thread Gleb Natapov
On Thu, Nov 29, 2012 at 12:53:56AM +, Dave Hansen wrote: > > In short, it is illegal to call __pa() on an address holding > a percpu variable. The times when this actually matters are > pretty obscure (certain 32-bit NUMA systems), but it _does_ > happen. It is important to keep KVM guests

RE: [PATCH v2 1/2] mmc: dw_mmc: exynos: Stop claiming wp-gpio

2012-11-28 Thread Seungwon Jeon
Hi Doug, On Thursday, November 29, 2012, Doug Anderson wrote: > Seungwon, > > Thanks for the review. See below for comments. If you'd like me to > respin then please let me know. Otherwise I look forward to your ack. > > On Wed, Nov 28, 2012 at 1:29 AM, Seungwon Jeon wrote: > > Yes. pin of

Re: [PATCH v3 0/9] Media Controller capture driver for DM365

2012-11-28 Thread Hans Verkuil
On Wed November 28 2012 20:30:21 Greg Kroah-Hartman wrote: > On Wed, Nov 28, 2012 at 08:18:20PM +0100, Hans Verkuil wrote: > > On Wed November 28 2012 18:22:48 Greg Kroah-Hartman wrote: > > > On Wed, Nov 28, 2012 at 10:18:02AM -0200, Mauro Carvalho Chehab wrote: > > > > Em Wed, 28 Nov 2012

[PATCH v2] zram: Fix use-after-free bug in disk write case

2012-11-28 Thread Nitin Gupta
Changelog v2 vs v1: - Changelog message now correctly explains the problem Fixes a bug introduced by commit c8f2f0db1 ("zram: Fix handling of incompressible pages") which caused a freed buffer to be used in case a partial write (non PAGE_SIZED) request is received and the data is found to be

Re: [PATCH 1/2] zsmalloc: add function to query object size

2012-11-28 Thread Minchan Kim
On Mon, Nov 26, 2012 at 11:26:40PM -0800, Nitin Gupta wrote: > Adds zs_get_object_size(handle) which provides the size of > the given object. This is useful since the user (zram etc.) > now do not have to maintain object sizes separately, saving > on some metadata size (4b per page). > > The

Re: [PATCH 01/14] perf tool: Introduce perf_hpp__list for period related columns

2012-11-28 Thread Namhyung Kim
Hi Jiri, On Wed, 28 Nov 2012 14:52:36 +0100, Jiri Olsa wrote: > Adding perf_hpp__list list to register and contain all period > related columns the command is interested in. > > This way we get rid of static array holding all possible > columns and enable commands to register their own columns.

Re: [PATCH v3 0/9] Media Controller capture driver for DM365

2012-11-28 Thread Hans Verkuil
On Thu November 29 2012 00:47:41 Sylwester Nawrocki wrote: > On 11/28/2012 10:29 PM, Dan Carpenter wrote: > > On Wed, Nov 28, 2012 at 08:30:04PM +0100, Sylwester Nawrocki wrote: > >> On 11/28/2012 01:22 PM, Dan Carpenter wrote: > >>> In the end this is just a driver, and I don't especially care.

Re: kernel BUG at mm/huge_memory.c:212!

2012-11-28 Thread Bob Liu
Hi Jiri, On Wed, Nov 28, 2012 at 5:18 AM, Jiri Slaby wrote: > Hi, > > I've hit BUG_ON(atomic_dec_and_test(_zero_refcount)) in > put_huge_zero_page right now. There are some "Bad rss-counter state" > before that, but those are perhaps unrelated as I saw many of them in > the previous -next. But

Re: [RFC,v2,8/8] drm: tegra: Add gr2d device

2012-11-28 Thread Mark Zhang
On 11/26/2012 09:19 PM, Terje Bergström wrote: > Add client driver for 2D device. > > Signed-off-by: Arto Merilainen > Signed-off-by: Terje Bergstrom > > --- > [...] > + > +static int > +tegra_drm_ioctl_open_channel(struct drm_device *drm, void *data, > + struct drm_file

Re: [PATCH] tmpfs: support SEEK_DATA and SEEK_HOLE (reprise)

2012-11-28 Thread Jeff Liu
On 11/29/2012 02:53 PM, Jim Meyering wrote: > Jeff Liu wrote: > >> On 11/29/2012 12:15 PM, Jim Meyering wrote: >>> Hugh Dickins wrote: On Thu, 29 Nov 2012, Jaegeuk Hanse wrote: >>> ... > But this time in which scenario will use it? I was not very convinced by the grep argument

Re: linux-next: build warnings after merge of the akpm tree

2012-11-28 Thread Lars Ellenberg
On Thu, Nov 29, 2012 at 05:19:39PM +1100, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, today's linux-next build (x86_64 > allmodconfig) produced these warnings: > In file included from drivers/block/drbd/drbd_bitmap.c:32:0: > drivers/block/drbd/drbd_int.h:2339:0:

[BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-11-28 Thread Lin Feng
Hi all, We encounter a "Resource temporarily unavailable" fail while trying to offline a memory section in a movable zone. We found that there are some pages can't be migrated. The offline operation fails in function migrate_page_move_mapping() returning -EAGAIN till timeout because the if

Re: [PATCH] tmpfs: support SEEK_DATA and SEEK_HOLE (reprise)

2012-11-28 Thread Jim Meyering
Jeff Liu wrote: > On 11/29/2012 12:15 PM, Jim Meyering wrote: >> Hugh Dickins wrote: >>> On Thu, 29 Nov 2012, Jaegeuk Hanse wrote: >> ... But this time in which scenario will use it? >>> >>> I was not very convinced by the grep argument from Jim and Paul: >>> that seemed to be grep holding

Re: linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Thierry Reding
On Thu, Nov 29, 2012 at 04:29:45PM +1100, Stephen Rothwell wrote: > Hi Thierry, > > Today's linux-next merge of the pwm tree got a conflict in > drivers/pwm/pwm-twl6030.c between commit fd1091125a1d ("pwm: remove use > of __devexit_p") from the driver-core tree and commit 6179a58ec7e2 ("pwm: >

Re: linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Thierry Reding
On Thu, Nov 29, 2012 at 04:27:30PM +1100, Stephen Rothwell wrote: > Hi Thierry, > > Today's linux-next merge of the pwm tree got a conflict in > drivers/pwm/pwm-tiehrpwm.c between commit 3e9fe83d278c ("pwm: remove use > of __devinit") from the driver-core tree and commit 53ad9e8d3703 ("pwm: >

Re: linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Thierry Reding
On Thu, Nov 29, 2012 at 04:25:14PM +1100, Stephen Rothwell wrote: > Hi Thierry, > > Today's linux-next merge of the pwm tree got a conflict in > drivers/pwm/pwm-tiecap.c between commit 3e9fe83d278c ("pwm: remove use of > __devinit") from the driver-core tree and commit 333b08ee8c6e ("pwm: >

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Al Viro
On Wed, Nov 28, 2012 at 10:37:27PM -0800, Linus Torvalds wrote: > On Wed, Nov 28, 2012 at 10:30 PM, Al Viro wrote: > > > > Note that sync_blockdev() a few lines prior to that is good only if we > > have no other processes doing write(2) (or dirtying the mmapped pages, > > for that matter). The

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Hiroshi Doyu
On Wed, 28 Nov 2012 19:07:46 +0100 Stephen Warren wrote: .. > >>> Please read more about bus notifiers. IMHO a good example is provided in > >>> the following thread: > >>> http://www.mail-archive.com/linux-samsung-soc@vger.kernel.org/msg12238.html > >> > >> This bus notifier seems enough

[PATCH 05/18] perf tools: Fix typo on hist__entry_add_pair

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Fix a misplaced underscore. In this case, 'hist_entry' is the name of data structure and we usually put double underscores between data structure and actual function name. Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 4 ++-- tools/perf/util/sort.h | 2 +- 2

[PATCH 04/18] perf header: Add HEADER_GROUP_DESC feature

2012-11-28 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 Acked-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf/builtin-record.c | 3 + tools/perf/util/header.c| 153

[PATCH 06/18] perf hists: Link hist entry pairs to leader

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Current hists__match/link() link a leader to its pair, so if multiple pairs were linked, the leader will lose pointer to previous pairs since it was overwritten. Fix it by making leader the list head. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim ---

[PATCH 07/18] perf hists: Exchange order of comparing items when collapsing hists

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim When comparing entries for collapsing put the given entry first, and then the iterated entry. This is for the sake of consistency and will be required by the event group report. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 2

[PATCH 00/18] perf report: Add support for event group view (v6)

2012-11-28 Thread Namhyung Kim
Hi all, This is my 6th iteration of event group view patchset. For basic idea and usage example, please see my original post [1]. The largest change in this version is using 'pairs' list of hist_entry instead of allocating group_stats for all group members. But I needed to allocate temporary

[PATCH 09/18] perf symbol: Introduce symbol_conf.event_group

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim The event_group field is for enabling event group view on perf report and other commands. It requires collapsing hist entries since every member in a group needs to be linked before final output resorting. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim ---

[PATCH 08/18] perf hists: Add hists__{match,link}_collapsed

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim The current hists__match/link functions are worked on the output tree (hists->entries). However for event group view it needs to be matched/linked before the final resort. Thus add new helpers for doing it on the collapsed tree. Cc: Jiri Olsa Cc: Stephane Eranian

[PATCH 10/18] perf report: Make another loop for linking group hists

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Now the event grouping viewing requires linking all member hists in a group to the leader's. Thus hists__output_resort should be called after linking all events in evlist. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 13

[PATCH 2/3] omap: craneboard: support the TPS65910 PMU

2012-11-28 Thread Kim, Milo
This patch supports the TPS65910 PMU function on the AM3517 Craneboard. The IRQ pin, SYS_NIRQ is dedicated connection between the AM3517 and the TPS65910 PMU. To handle the PMU IRQs, mux configuration is required. Platform data configuration: .IRQ number : SYS_NIRQ (M_IRQ_7) .External

[PATCH 11/18] perf hists: Resort hist entries using group members for output

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim When event group is enabled, sorting hist entries on periods for output should consider groups members' period also. To do that, build period table using link/pair information and compare the table. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim ---

[PATCH 03/18] perf tools: Keep group information

2012-11-28 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. It only counts groups which have more than 1 members since leader-only groups are treated as non-group events. Cc: Jiri Olsa Cc: Stephane Eranian

[PATCH 3/3] mfd: tps65910: fix wrong ack_base register

2012-11-28 Thread Kim, Milo
The interrupt status registers of TPS65910/1 should be cleared when the associated interrupt event occurs. This work is done in the regmap irq thread - using 'ack_base' register. The ACK registers should be fixed as status register, not mask registers. This patch fixes the infinite interrupt

Re: [PATCH v2] rtc: Add NXP PCF8523 support

2012-11-28 Thread Thierry Reding
On Wed, Nov 28, 2012 at 03:31:58PM -0800, Andrew Morton wrote: > On Wed, 28 Nov 2012 20:21:26 +0100 > Thierry Reding wrote: > > > + err = i2c_transfer(client->adapter, , 1); > > + if (err < 0) { > > + /* > > +* If the time cannot be set, restart the RTC anyway. Note > >

[PATCH 1/3] omap: craneboard: support NAND device

2012-11-28 Thread Kim, Milo
This patch enables the NAND device on the AM3517 Craneboard. MTD partitions are created as below. 0x-0x0008 : "X-Loader" 0x0008-0x0024 : "U-Boot" 0x0024-0x0028 : "U-Boot Env" 0x0028-0x0078 : "Kernel"

[PATCH 02/18] perf evsel: Convert to _is_group_leader method

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Convert perf_evsel__is_group_member to perf_evsel__is_group_leader. This is because the most usecases are using negative form to check whether the given evsel is a leader or not and it's IMHO somewhat ambiguous - leader also *is* a member of the group. Signed-off-by: Namhyung

[PATCH 17/18] perf report: Add --group option

2012-11-28 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 Acked-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-report.txt | 3 +++

[PATCH 18/18] perf report: Add report.group config option

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Add report.group config option for setting default value of event group view. It affects the report output only if perf.data contains event group info. A user can write .perfconfig file like below to enable group view by default: $ cat ~/.perfconfig [report] group =

[PATCH 01/18] perf evsel: Set leader evsel's ->leader to itself

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Currently only non-leader members are set ->leader to the leader evsel of the group and the leader has set NULL. Thus it requires special casing for leader evsels. Set ->leader to itself will remove this. Suggested-by: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Stephane

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

2012-11-28 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 Acked-by: Jiri Olsa Signed-off-by:

[PATCH 14/18] perf gtk/browser: Add support for event group view

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Show group members' overhead also when showing the leader's if event group is enabled. Use macro for defining hpp functions which looks almost identical. Cc: Jiri Olsa Cc: Stephane Eranian Cc: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/gtk/browser.c | 87

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

2012-11-28 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 Acked-by: Jiri Olsa Signed-off-by:

[PATCH 13/18] perf hist browser: Add support for event group view

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Show group members' overhead also when showing the leader's if event group is enabled. Use macro for defining hpp functions which looks almost identical. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 171

[PATCH 12/18] perf ui/hist: Add support for event group view

2012-11-28 Thread Namhyung Kim
From: Namhyung Kim Show group members' overhead also when showing the leader's if event group is enabled. Use macro for defining hpp functions which looks almost identical. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/ui/hist.c | 370

[PATCH 00/18] perf report: Add support for event group view (v6)

2012-11-28 Thread Namhyung Kim
Hi all, This is my 6th iteration of event group view patchset. For basic idea and usage example, please see my original post [1]. The largest change in this version is using 'pairs' list of hist_entry instead of allocating group_stats for all group members. But I needed to allocate temporary

[PATCH 00/18] perf report: Add support for event group view (v6)

2012-11-28 Thread Namhyung Kim
Hi all, This is my 6th iteration of event group view patchset. For basic idea and usage example, please see my original post [1]. The largest change in this version is using 'pairs' list of hist_entry instead of allocating group_stats for all group members. But I needed to allocate temporary

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Linus Torvalds
On Wed, Nov 28, 2012 at 10:30 PM, Al Viro wrote: > > Note that sync_blockdev() a few lines prior to that is good only if we > have no other processes doing write(2) (or dirtying the mmapped pages, > for that matter). The window isn't too wide, but... So with Mikulas' patches, the write actually

[PATCH 6/6] fs:sysfs pass NULL as second parameter for set_anon_super

2012-11-28 Thread Abhijit Pawar
set_anon_super does not use the second parameter in its implementation. So there is no need to pass on the second parameter. Signed-off-by: Abhijit Pawar --- fs/sysfs/mount.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Linus Torvalds
On Wed, Nov 28, 2012 at 10:25 PM, Al Viro wrote: > > Umm... set_blocksize() is calling kill_bdev(), which does > truncate_inode_pages(mapping, 0). What's going to happen to data in > the dirty pages? IO in progress is not the only thing to worry about... Hmm. Yes. I think it works by

[PATCH 5/6] fs:nfs pass NULL as second parameter for set_anon_super

2012-11-28 Thread Abhijit Pawar
set_anon_super does not use the second parameter in its implementation. So there is no need to pass on the second parameter. Signed-off-by: Abhijit Pawar --- fs/nfs/super.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/nfs/super.c b/fs/nfs/super.c index

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Al Viro
On Thu, Nov 29, 2012 at 06:25:19AM +, Al Viro wrote: > Umm... set_blocksize() is calling kill_bdev(), which does > truncate_inode_pages(mapping, 0). What's going to happen to data in > the dirty pages? IO in progress is not the only thing to worry about... Note that sync_blockdev()

[PATCH 4/6] fs:btrfs pass NULL as second parameter for set_anon_super

2012-11-28 Thread Abhijit Pawar
set_anon_super does not use the second parameter in its implementation. So there is no need to pass on the second parameter. Signed-off-by: Abhijit Pawar --- fs/btrfs/super.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index

Re: [PATCH] MAINTAINERS: TTY - Add linux-serial mailing list

2012-11-28 Thread Chen Gang
于 2012年11月29日 14:14, Joe Perches 写道: > Signed-off-by: Joe Perches > --- > MAINTAINERS |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index afc0b27..255dafb 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -7658,6 +7658,7 @@ K:

linux-next: build warning after merge of the final tree (sound-asoc tree related)

2012-11-28 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) produced this warning: sound/soc/codecs/wm_adsp.c: In function 'wm_adsp2_event': sound/soc/codecs/wm_adsp.c:556:4: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] Introduced

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Al Viro
On Wed, Nov 28, 2012 at 10:16:21PM -0800, Linus Torvalds wrote: > On Wed, Nov 28, 2012 at 6:58 PM, Linus Torvalds > wrote: > > > > But the fact that the code wants to do things like > > > > block = (sector_t)page->index << (PAGE_CACHE_SHIFT - bbits); > > > > seriously seems to be the main

Re: [RFC] Add mempressure cgroup

2012-11-28 Thread Anton Vorontsov
On Thu, Nov 29, 2012 at 08:14:13AM +0200, Kirill A. Shutemov wrote: > On Wed, Nov 28, 2012 at 02:29:08AM -0800, Anton Vorontsov wrote: > > +static int mpc_pre_destroy(struct cgroup *cg) > > +{ > > + struct mpc_state *mpc = cg2mpc(cg); > > + int ret = 0; > > + > > + mutex_lock(>lock); > > + >

Re: [PATCH 1/2] ARM: tegra: remove unused functions in mach/clk.h

2012-11-28 Thread Prashant Gaikwad
On Tuesday 27 November 2012 12:29 PM, Sivaram Nair wrote: This is a cleaning up patch that removes couple of functions in mach/clk.h that are no longer used and does not have any body. Signed-off-by: Sivaram Nair --- arch/arm/mach-tegra/include/mach/clk.h |5 - 1 file changed, 5

linux-next: build warnings after merge of the akpm tree

2012-11-28 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (x86_64 allmodconfig) produced these warnings: In file included from drivers/block/drbd/drbd_bitmap.c:32:0: drivers/block/drbd/drbd_int.h:2339:0: warning: "__wait_event_lock_irq" redefined [enabled by default]

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-28 Thread Linus Torvalds
On Wed, Nov 28, 2012 at 6:58 PM, Linus Torvalds wrote: > > But the fact that the code wants to do things like > > block = (sector_t)page->index << (PAGE_CACHE_SHIFT - bbits); > > seriously seems to be the main thing that keeps us using > 'inode->i_blkbits'. Calculating bbits from

Re: [patch] [SCSI] csiostor: remove unneeded memset()

2012-11-28 Thread Naresh Kumar Inna
On 11/27/2012 11:03 PM, Dan Carpenter wrote: > No need to memset() this when we just copy over it on the next line. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/scsi/csiostor/csio_lnode.c > b/drivers/scsi/csiostor/csio_lnode.c > index 551959e..8b54976 100644 > ---

linux-next: build warnings after merge of the slave-dma tree

2012-11-28 Thread Stephen Rothwell
Hi Vinod, After merging the slave-dma tree, today's linux-next build (x86_64 allmodconfig) produced these warning: drivers/dma/dmaengine.c: At top level: include/linux/of_dma.h:47:12: warning: 'of_dma_controller_register' defined but not used [-Wunused-function] include/linux/of_dma.h:55:12:

[PATCH] MAINTAINERS: TTY - Add linux-serial mailing list

2012-11-28 Thread Joe Perches
Signed-off-by: Joe Perches --- MAINTAINERS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index afc0b27..255dafb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7658,6 +7658,7 @@ K:^Subject:.*(?i)trivial TTY LAYER M: Greg

Re: [RFC] Add mempressure cgroup

2012-11-28 Thread Kirill A. Shutemov
On Wed, Nov 28, 2012 at 02:29:08AM -0800, Anton Vorontsov wrote: > +static int mpc_pre_destroy(struct cgroup *cg) > +{ > + struct mpc_state *mpc = cg2mpc(cg); > + int ret = 0; > + > + mutex_lock(>lock); > + > + if (mpc->eventfd) > + ret = -EBUSY; cgroup_rmdir() will

Re: [PATCH 2/2] ARM: tegra: moving stuff away from mach/clk.h

2012-11-28 Thread Prashant Gaikwad
On Tuesday 27 November 2012 12:29 PM, Sivaram Nair wrote: This patch moves some stuff away from mach/clk.h to other mach-tegra files. This is part of the efforts to get rid of mach/clk.h which in turn will help to enable single zImage. Signed-off-by: Sivaram Nair ---

Re: [PATCH] export of_reconfig_notifier_[register,unregister]

2012-11-28 Thread Benjamin Herrenschmidt
On Wed, 2012-11-28 at 13:42 -0600, Nathan Fontenot wrote: > The of reconfiguration notification chains should be exported for use > by modules. > > Signed-off-by:Nathan Fontenot Grant, I'm applying that into the powerpc tree (with a slightly modified subject line). You don't need to add it to

[PATCH 3/6] fs: 9p pass NULL as second parameter for set_anon_super

2012-11-28 Thread Abhijit Pawar
set_anon_super does not use the second parameter in its implementation. So there is no need to pass on the second parameter. Signed-off-by: Abhijit Pawar --- fs/9p/vfs_super.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index

Re: [Suggestion] drivers/tty: drivers/char/: for MAX_ASYNC_BUFFER_SIZE

2012-11-28 Thread Chen Gang
于 2012年11月29日 13:13, Greg KH 写道: > On Thu, Nov 29, 2012 at 12:40:49PM +0800, Chen Gang wrote: >> Hello Greg Kroah-Hartman: >> >> for MAX_ASYNC_BUFFER_SIZE: >> it is defined as 4096; >> but for the max buffer size which it processes, is 65535. >> so suggest to #define MAX_ASYNC_BUFFER_SIZE

Re: [PATCH 0/7] mfd: update on max8925 for DT support

2012-11-28 Thread Qing Xu
On 11/23/2012 05:09 PM, Haojian Zhuang wrote: On Tue, Nov 6, 2012 at 3:35 PM, Qing Xu wrote: From: Qing Xu 1. add irqdomain for max8925, it is necessary for dt support 2. bug fix in max8925 mfd devices'irq base and device registry failure 3. support DT for max8925 mfd devices Qing Xu (7):

[PATCH] Documentation: add docs for max8925 dt

2012-11-28 Thread Qing Xu
From: Qing Xu add docs for dt of max8925-mfd, max8925-backlight, and max8925-battery Signed-off-by: Qing Xu --- Documentation/devicetree/bindings/mfd/max8925.txt | 64 .../bindings/power_supply/max8925_batter.txt | 18 ++

Re: "tuntap: multiqueue support" causes udev fork bombs

2012-11-28 Thread Jason Wang
On Wednesday, November 28, 2012 11:25:41 AM Jiri Slaby wrote: > Hi, > > with this commit: > commit c8d68e6be1c3b242f1c598595830890b65cea64a > Author: Jason Wang > Date: Wed Oct 31 19:46:00 2012 + > > tuntap: multiqueue support > > > I see fork bombs from udev. It is trying to create

Re: [PATCH] backlight: corgi_lcd: Fix WARN_ON() when calling corgi_bl_set_intensity.

2012-11-28 Thread Jingoo Han
On Thursday, November 29, 2012 6:47 AM, Marko Katic wrote > Subject: [PATCH] backlight: corgi_lcd: Fix WARN_ON() when calling > corgi_bl_set_intensity. CC'ed Andrew Morton. Hi Marko Katic, The commit subject and commit message are not clear. How about using subject as below? backlight:

linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Stephen Rothwell
Hi Thierry, Today's linux-next merge of the pwm tree got a conflict in drivers/pwm/pwm-twl6030.c between commit fd1091125a1d ("pwm: remove use of __devexit_p") from the driver-core tree and commit 6179a58ec7e2 ("pwm: Remove pwm-twl6030 driver") from the pwm tree. I fixed it up (the latter

linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Stephen Rothwell
Hi Thierry, Today's linux-next merge of the pwm tree got a conflict in drivers/pwm/pwm-tiehrpwm.c between commit 3e9fe83d278c ("pwm: remove use of __devinit") from the driver-core tree and commit 53ad9e8d3703 ("pwm: tiehrpwm: Add device-tree binding") from the pwm tree. I fixed it up (see below)

linux-next: manual merge of the pwm tree with the driver-core tree

2012-11-28 Thread Stephen Rothwell
Hi Thierry, Today's linux-next merge of the pwm tree got a conflict in drivers/pwm/pwm-tiecap.c between commit 3e9fe83d278c ("pwm: remove use of __devinit") from the driver-core tree and commit 333b08ee8c6e ("pwm: tiecap: Add device-tree binding") from the pwm tree. I fixed it up (see below) and

[PATCH RFT v2] regulator: max1586: Implement get_voltage_sel callback

2012-11-28 Thread Axel Lin
This is required since commit f7df20ec32 "regulator: core: Use list_voltage() to read single voltage regulators", otherwise _regulator_get_voltage returns rdev->desc->ops->list_voltage(rdev, 0). The Maxim 1586 controls V3 and V6 voltages, but offers no way of reading back the set up value. Thus

Re: linux-next: manual merge of the driver-core tree with the mfd tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 02:43:02PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/gpio/gpio-tps6586x.c between commit fe39f2f4dc84 ("mfd: Implement > tps6586x gpio_to_irq") from the mfd tree and commit 3836309d9346

Re: linux-next: manual merge of the driver-core tree with the mfd tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 02:47:12PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/mfd/ab8500-core.c between commit 8ae754ebd5ed ("mfd: ab8500-core: > Remove unused ab8500-gpio IRQ ranges") from the mfd tree and commit >

Re: linux-next: manual merge of the driver-core tree with the mfd tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 02:57:14PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/mfd/sta2x11-mfd.c between various commits from the mfd tree and > commits f791be492f76 ("mfd: remove use of __devinit"), a9e9ce4c4167 >

Re: linux-next: manual merge of the driver-core tree with the mfd tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 02:50:39PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/mfd/da9052-core.c between commit 8bad1abd6303 ("mfd: da9052: > Introduce da9052-irq.c") from the mfd tree and commit a9e9ce4c4167 ("mfd: >

Re: linux-next: manual merge of the driver-core tree with the mfd tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:00:44PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/mfd/tps65090.c between various commits from the mfd tree and > commits 84449216b01f ("mfd: remove use of __devexit_p"), f791be492f76 >

Re: linux-next: manual merge of the driver-core tree with the pci tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:03:40PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/pci/pci.h between commit 4e15c46bdc4d ("PCI: Add pci_device_type > to pdev's device struct") from the pci tree and commit b40b97ae736c >

Re: linux-next: manual merge of the driver-core tree with the pci tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:06:41PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/pci/quirks.c between commit 21c5fd97380b ("PCI: Add workaround > for PLX PCI 9050 BAR alignment erratum") from the pci tree and commit >

Re: linux-next: manual merge of the driver-core tree with the battery tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:09:33PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/power/ab8500_btemp.c between commit bd9e8ab2d58d ("ab8500: Add > devicetree support for btemp") from the battery tree and commit >

Re: linux-next: manual merge of the driver-core tree with the battery tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:11:42PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/power/ab8500_charger.c between commit 4aef72dbb2e8 ("ab8500: Add > devicetree support for charger") from the battery tree and commit >

Re: linux-next: manual merge of the driver-core tree with the battery tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:15:58PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/power/abx500_chargalg.c between commit a12810ab9fcf ("ab8500: Add > devicetree support for chargalg") from the battery tree and commit >

Re: linux-next: manual merge of the driver-core tree with the battery tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:13:36PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/power/ab8500_fg.c between commit e0f1abeba5c2 ("ab8500: Add > devicetree support for fuelgauge") from the battery tree and commit >

Re: linux-next: manual merge of the driver-core tree with the mfd tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:18:04PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/power/da9052-battery.c between commit 4b5edf7887c6 ("power: > da9052-battery: Convert to the new da9052 interrupt functions") from the >

Re: linux-next: manual merge of the driver-core tree with the battery tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:20:08PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/power/max8925_power.c between commit eba3b670a916 > ("max8925_power: Add support for device-tree initialization") from the > battery tree

Re: linux-next: manual merge of the driver-core tree with the tip tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:24:11PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > lib/Makefile between commit e6459606b04e ("lib: Add early cpio decoder") > from the tip tree and commit 610141ee651c ("lib: kobject_uevent is no >

Re: linux-next: manual merge of the driver-core tree with the slave-dma tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 09:16:06AM +0530, Viresh Kumar wrote: > On 29 November 2012 09:10, Stephen Rothwell wrote: > > diff --cc drivers/dma/dw_dmac.c > > > +#ifdef CONFIG_OF > > +static struct dw_dma_platform_data * > > +__devinit dw_dma_parse_dt(struct platform_device *pdev) > > Do we need

Re: linux-next: manual merge of the arm-soc tree with the driver-core tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 04:03:09PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the arm-soc tree got a conflict in > drivers/leds/leds-ns2.c between commit 98ea1ea20cb7 ("leds: remove use of > __devinit") from the driver-core tree and commit 72052fcc1026 ("leds: >

Re: linux-next: manual merge of the gpio tree with the driver-core tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:57:23PM +1100, Stephen Rothwell wrote: > Hi Grant, > > Today's linux-next merge of the gpio tree got a conflict in > drivers/gpio/gpio-em.c between commit 3836309d9346 ("gpio: remove use of > __devinit") from the driver-core tree and commit 7385500a49b7 ("gpio/em: >

Re: linux-next: manual merge of the staging tree with the tty tree

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 03:47:39PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the staging tree got a conflicts in > drivers/staging/fwserial/fwserial.c, drivers/staging/Kconfig and > drivers/staging/Kconfig between commit 7355ba3445f2 ("staging: fwserial: > Add

[PATCH RFT] regulator: max1586: Implement get_voltage_sel callback

2012-11-28 Thread Axel Lin
This is required since commit f7df20ec32 "regulator: core: Use list_voltage() to read single voltage regulators", otherwise _regulator_get_voltage returns rdev->desc->ops->list_voltage(rdev, 0). The Maxim 1586 controls V3 and V6 voltages, but offers no way of reading back the set up value. Thus

Re: 【Suggestion】drivers/tty: drivers/char/: for MAX_ASYNC_BUFFER_SIZE

2012-11-28 Thread Greg KH
On Thu, Nov 29, 2012 at 12:40:49PM +0800, Chen Gang wrote: > Hello Greg Kroah-Hartman: > > for MAX_ASYNC_BUFFER_SIZE: > it is defined as 4096; > but for the max buffer size which it processes, is 65535. > so suggest to #define MAX_ASYNC_BUFFER_SIZE 0x1 (better than 0x) Please,

[Suggestion] drivers/tty: drivers/char/: for MAX_ASYNC_BUFFER_SIZE

2012-11-28 Thread Chen Gang
Hello Greg Kroah-Hartman: for MAX_ASYNC_BUFFER_SIZE: it is defined as 4096; but for the max buffer size which it processes, is 65535. so suggest to #define MAX_ASYNC_BUFFER_SIZE 0x1 (better than 0x) I use 3 Step to prove it, please see below: by the way: I find it only

[PATCH 2/2] i2c-s3c2410: Add bus arbitration implementation

2012-11-28 Thread Naveen Krishna Chatradhi
From: Simon Glass The arbitrator is a general purpose function which uses two GPIOs to communicate with another device to claim/release a bus. We use it to arbitrate an i2c port between the AP and the EC. Signed-off-by: Simon Glass Cc: Grant Grundler Signed-off-by: Naveen Krishna Chatradhi

  1   2   3   4   5   6   7   8   9   10   >