Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Catalin Marinas
On 16 October 2012 09:59, Russell King - ARM Linux wrote: > On Tue, Oct 16, 2012 at 09:04:34AM +0300, Hiroshi Doyu wrote: >> In addition to those contiguous/discontiguous page allocation, is >> there any way to _import_ anonymous pages allocated by a process to be >> used in dma-mapping API

Re: [RFC][PATCH] perf: Add a few generic stalled-cycles events

2012-10-16 Thread Robert Richter
Sukadev, On 15.10.12 17:55:34, Robert Richter wrote: > On 11.10.12 18:28:39, Sukadev Bhattiprolu wrote: > > + { .type = PERF_TYPE_HARDWARE, .config = > > PERF_COUNT_HW_STALLED_CYCLES_FIXED_POINT }, > > + { .type = PERF_TYPE_HARDWARE, .config = > > PERF_COUNT_HW_STALLED_CYCLES_LOAD_STORE }, >

[PATCH 2/2] ARM: tegra: add tegra_timer clock

2012-10-16 Thread Sivaram Nair
From: Sivaram Nair This undoes commit 20f4665831cec65d6e5d33587bba28ffa536b91d by bringing back the tegra_timer clock. tegra_timer is indeed a clock (hidden by the PERIPH_CLK macro) which should be added to the tegra_list_clks. The above commit caused tegra_init_timer() failing to get the clk

[PATCH 0/2] ARM: tegra: bring back tegra_timer clock

2012-10-16 Thread Sivaram Nair
This patchset fixes a bug introduced by commit 20f4665831cec65d6e5d33587bba28ffa536b91d by bringing back the tegra_timer clock. The above commit caused tegra_init_timer() failing to get the clk reference. The first patch renames the existing tegra_timer object to tegra_sys_timer and the second

[PATCH 1/2] ARM: tegra: rename tegra system timer

2012-10-16 Thread Sivaram Nair
From: Sivaram Nair The timer variable is renamed to avoid confusion and symbol name clash with the tegra_timer clock. Signed-off-by: Sivaram Nair --- arch/arm/mach-tegra/board-dt-tegra20.c |2 +- arch/arm/mach-tegra/board-dt-tegra30.c |2 +- arch/arm/mach-tegra/board.h|

[PATCH] oom, memcg: handle sysctl oom_kill_allocating_task while memcg oom happening

2012-10-16 Thread Sha Zhengju
From: Sha Zhengju Sysctl oom_kill_allocating_task enables or disables killing the OOM-triggering task in out-of-memory situations, but it only works on overall system-wide oom. But it's also a useful indication in memcg so we take it into consideration while oom happening in memcg. Other sysctl

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Inki Dae
Hi Hiroshi, 2012/10/16 Hiroshi Doyu : > Hi Inki/Marek, > > On Tue, 16 Oct 2012 02:50:16 +0200 > Inki Dae wrote: > >> 2012/10/15 Marek Szyprowski : >> > Hello, >> > >> > Some devices, which have IOMMU, for some use cases might require to >> > allocate a buffers for DMA which is contiguous in

[RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2012-10-16 Thread Stephane Eranian
Hi, There are many situations where we want to correlate events happening at the user level with samples recorded in the perf_event kernel sampling buffer. For instance, we might want to correlate the call to a function or creation of a file with samples. Similarly, when we want to monitor a JVM

Re: [PATCH v2] fat: editions to support fat_fallocate()

2012-10-16 Thread OGAWA Hirofumi
Namjae Jeon writes: >> What is real usage pattern of persistent across remounts on FAT? > Yes, like a TORRENT FILE -> it reserves space in advance > even though the system can be rebooted/disk unmounted and remount > but the space still remains there - as long as the torrent exists > Or if

Re: [PATCH] dmatest: terminate all ongoing transfers before submitting new one

2012-10-16 Thread Andy Shevchenko
On Tue, Oct 16, 2012 at 12:52 PM, Viresh Kumar wrote: >>> Also, the proposed solution might hide some other important errors. We may >>> need >>> to terminate transfers when we found that an error is there in last >>> transfers: >> I think it could be better than first solution, but what do

[PATCH v5 01/14] memcg: Make it possible to use the stock for more than one page.

2012-10-16 Thread Glauber Costa
From: Suleiman Souhlal We currently have a percpu stock cache scheme that charges one page at a time from memcg->res, the user counter. When the kernel memory controller comes into play, we'll need to charge more than that. This is because kernel memory allocations will also draw from the user

[PATCH v5 03/14] memcg: change defines to an enum

2012-10-16 Thread Glauber Costa
This is just a cleanup patch for clarity of expression. In earlier submissions, people asked it to be in a separate patch, so here it is. [ v2: use named enum as type throughout the file as well ] Signed-off-by: Glauber Costa Acked-by: Kamezawa Hiroyuki Acked-by: Michal Hocko Acked-by:

[PATCH v5 02/14] memcg: Reclaim when more than one page needed.

2012-10-16 Thread Glauber Costa
From: Suleiman Souhlal mem_cgroup_do_charge() was written before kmem accounting, and expects three cases: being called for 1 page, being called for a stock of 32 pages, or being called for a hugepage. If we call for 2 or 3 pages (and both the stack and several slabs used in process creation

[PATCH v5 14/14] Add documentation about the kmem controller

2012-10-16 Thread Glauber Costa
Signed-off-by: Glauber Costa CC: Frederic Weisbecker CC: Kamezawa Hiroyuki CC: Michal Hocko CC: Christoph Lameter CC: Pekka Enberg CC: Johannes Weiner CC: Suleiman Souhlal CC: Tejun Heo --- Documentation/cgroups/memory.txt | 58 +++- 1 file changed, 57

[PATCH v5 11/14] memcg: allow a memcg with kmem charges to be destructed.

2012-10-16 Thread Glauber Costa
Because the ultimate goal of the kmem tracking in memcg is to track slab pages as well, we can't guarantee that we'll always be able to point a page to a particular process, and migrate the charges along with it - since in the common case, a page will contain data belonging to multiple processes.

[PATCH v5 10/14] memcg: use static branches when code not in use

2012-10-16 Thread Glauber Costa
We can use static branches to patch the code in or out when not used. Because the _ACTIVE bit on kmem_accounted is only set after the increment is done, we guarantee that the root memcg will always be selected for kmem charges until all call sites are patched (see memcg_kmem_enabled). This

[PATCH v5 09/14] memcg: kmem accounting lifecycle management

2012-10-16 Thread Glauber Costa
Because kmem charges can outlive the cgroup, we need to make sure that we won't free the memcg structure while charges are still in flight. For reviewing simplicity, the charge functions will issue mem_cgroup_get() at every charge, and mem_cgroup_put() at every uncharge. This can get expensive,

[PATCH v5 13/14] protect architectures where THREAD_SIZE >= PAGE_SIZE against fork bombs

2012-10-16 Thread Glauber Costa
Because those architectures will draw their stacks directly from the page allocator, rather than the slab cache, we can directly pass __GFP_KMEMCG flag, and issue the corresponding free_pages. This code path is taken when the architecture doesn't define CONFIG_ARCH_THREAD_INFO_ALLOCATOR (only

[PATCH v5 12/14] execute the whole memcg freeing in free_worker

2012-10-16 Thread Glauber Costa
A lot of the initialization we do in mem_cgroup_create() is done with softirqs enabled. This include grabbing a css id, which holds >id_lock->rlock, and the per-zone trees, which holds rtpz->lock->rlock. All of those signal to the lockdep mechanism that those locks can be used in SOFTIRQ-ON-W

[PATCH v5 06/14] memcg: kmem controller infrastructure

2012-10-16 Thread Glauber Costa
This patch introduces infrastructure for tracking kernel memory pages to a given memcg. This will happen whenever the caller includes the flag __GFP_KMEMCG flag, and the task belong to a memcg other than the root. In memcontrol.h those functions are wrapped in inline acessors. The idea is to

[PATCH v5 08/14] res_counter: return amount of charges after res_counter_uncharge

2012-10-16 Thread Glauber Costa
It is useful to know how many charges are still left after a call to res_counter_uncharge. While it is possible to issue a res_counter_read after uncharge, this can be racy. If we need, for instance, to take some action when the counters drop down to 0, only one of the callers should see it. This

[PATCH v5 07/14] mm: Allocate kernel pages to the right memcg

2012-10-16 Thread Glauber Costa
When a process tries to allocate a page with the __GFP_KMEMCG flag, the page allocator will call the corresponding memcg functions to validate the allocation. Tasks in the root memcg can always proceed. To avoid adding markers to the page - and a kmem flag that would necessarily follow, as much

[PATCH v5 05/14] Add a __GFP_KMEMCG flag

2012-10-16 Thread Glauber Costa
This flag is used to indicate to the callees that this allocation is a kernel allocation in process context, and should be accounted to current's memcg. It takes numerical place of the of the recently removed __GFP_NO_KSWAPD. [ v4: make flag unconditional, also declare it in trace code ]

[PATCH v5 00/14] kmem controller for memcg.

2012-10-16 Thread Glauber Costa
Hi, This is the first part of the kernel memory controller for memcg. It has been discussed many times, and I consider this stable enough to be on tree. A follow up to this series are the patches to also track slab memory. They are not included here because I believe we could benefit from merging

[PATCH v5 04/14] kmem accounting basic infrastructure

2012-10-16 Thread Glauber Costa
This patch adds the basic infrastructure for the accounting of kernel memory. To control that, the following files are created: * memory.kmem.usage_in_bytes * memory.kmem.limit_in_bytes * memory.kmem.failcnt * memory.kmem.max_usage_in_bytes They have the same meaning of their user memory

Re: [PATCH] oom, memcg: handle sysctl oom_kill_allocating_task while memcg oom happening

2012-10-16 Thread Ni zhan Chen
On 10/16/2012 06:12 PM, Sha Zhengju wrote: From: Sha Zhengju Sysctl oom_kill_allocating_task enables or disables killing the OOM-triggering task in out-of-memory situations, but it only works on overall system-wide oom. But it's also a useful indication in memcg so we take it into

[PATCH] binfmt_elf: Fix corner case kfree of uninitialized data

2012-10-16 Thread Alan Cox
From: Alan Cox If elf_core_dump is called and fill_note_info fails in the kmalloc then it returns 0 but has not yet initialised all the needed fields. As a result we do a kfree(randomness) after correctly skipping the thread data. Signed-off-by: Alan Cox --- fs/binfmt_elf.c |4 +++- 1

Re: [PATCH] perf: teach perf inject to merge sched_stat_* and sched_switch events (v3)

2012-10-16 Thread Andrew Vagin
On Tue, Oct 16, 2012 at 01:27:13AM +0V400, Frederic Weisbecker wrote: > 2012/9/18 Andrew Vagin : > > You may want to know where and how long a task is sleeping. A callchain > > may be found in sched_switch and a time slice in stat_iowait, so I add > > handler in perf inject for merging this

[PATCH] mpt: missing break

2012-10-16 Thread Alan Cox
From: Alan Cox This happens to do the right thing in all cases on fibre channel but not on other media types Signed-off-by: Alan Cox --- drivers/message/fusion/mptscsih.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/message/fusion/mptscsih.c

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Hiroshi Doyu
Hi Russell, Russell King - ARM Linux wrote @ Tue, 16 Oct 2012 10:59:28 +0200: > On Tue, Oct 16, 2012 at 09:04:34AM +0300, Hiroshi Doyu wrote: > > In addition to those contiguous/discontiguous page allocation, is > > there any way to _import_ anonymous pages allocated by a process to be > >

Re: [PATCH] avr32: fix build error in atstk1006_defconfig

2012-10-16 Thread Josh Wu
On 10/16/2012 5:17 PM, Hans-Christian Egtvedt wrote: Around Tue 16 Oct 2012 15:19:27 +0800 or thereabout, Josh Wu wrote: fixed the following compile error when use avr32 atstk1006_defconfig: drivers/mtd/nand/atmel_nand.c: In function 'pmecc_err_location':

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Russell King - ARM Linux
On Tue, Oct 16, 2012 at 07:12:49PM +0900, Inki Dae wrote: > Hi Hiroshi, > > I'm not sure I understand what you mean but we had already tried this > way and for this, you can refer to below link, > > http://www.mail-archive.com/dri-devel@lists.freedesktop.org/msg22555.html > > but

Re: [Bug fix] nfs-client: fix nfs_inode_attrs_need_update for async read_done comes during truncating to smaller size

2012-10-16 Thread Jeff Layton
On Tue, 16 Oct 2012 12:13:38 +0800 Chen Gang wrote: > 于 2012年10月16日 10:51, Myklebust, Trond 写道: > > >> > >> 1) is it means: nfs_inode_attrs_need_update need not consider async > >> read_done situation ? > > > > I don't understand what you mean. This is mainly about the asynchronous > > write

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Russell King - ARM Linux
On Tue, Oct 16, 2012 at 12:27:55PM +0200, Hiroshi Doyu wrote: > Hi Russell, > > Russell King - ARM Linux wrote @ Tue, 16 Oct 2012 > 10:59:28 +0200: > > > On Tue, Oct 16, 2012 at 09:04:34AM +0300, Hiroshi Doyu wrote: > > > In addition to those contiguous/discontiguous page allocation, is > > >

Re: [PATCH] oom, memcg: handle sysctl oom_kill_allocating_task while memcg oom happening

2012-10-16 Thread Sha Zhengju
On 10/16/2012 06:20 PM, Ni zhan Chen wrote: On 10/16/2012 06:12 PM, Sha Zhengju wrote: From: Sha Zhengju Sysctl oom_kill_allocating_task enables or disables killing the OOM-triggering task in out-of-memory situations, but it only works on overall system-wide oom. But it's also a useful

Re: [PATCH] dw_mmc: fix multiple drv_data NULL dereferences

2012-10-16 Thread Thomas Abraham
On 16 October 2012 14:13, James Hogan wrote: > Commit 800d78bfccb3d38116abfda2a5b9c8afdbd5ea21 ("mmc: dw_mmc: add > support for implementation specific callbacks") merged in v3.7-rc1. > > The above commit introduced multiple NULL pointer dereferences when > the default dw_mci_pltfm_probe() is

Re: [PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-16 Thread Kirill A. Shutemov
On Tue, Oct 16, 2012 at 05:53:07PM +0800, Ni zhan Chen wrote: > >By hpa request I've tried alternative approach for hzp implementation (see > >Virtual huge zero page patchset): pmd table with all entries set to zero > >page. This way should be more cache friendly, but it increases TLB > >pressure.

RE: [PATCH] dw_mmc: fix multiple drv_data NULL dereferences

2012-10-16 Thread Seungwon Jeon
On Tuesday, October 16, James Hogan > Commit 800d78bfccb3d38116abfda2a5b9c8afdbd5ea21 ("mmc: dw_mmc: add > support for implementation specific callbacks") merged in v3.7-rc1. > > The above commit introduced multiple NULL pointer dereferences when > the default dw_mci_pltfm_probe() is used, as it

Re: [PATCH v2 1/4] mfd: add viperboard driver

2012-10-16 Thread Lars-Peter Clausen
On 10/16/2012 11:43 AM, Lars Poeschel wrote: > On Tuesday 16 October 2012 at 10:40:26, Lars-Peter Clausen wrote: >> On 10/12/2012 04:34 PM, Lars Poeschel wrote: >>> [...] >>> +static void vprbrd_dev_release(struct device *dev) >>> +{ >>> + return; >> >> A empty release callback is usually a good

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Inki Dae
Hi Russell, 2012/10/16 Russell King - ARM Linux : > On Tue, Oct 16, 2012 at 07:12:49PM +0900, Inki Dae wrote: >> Hi Hiroshi, >> >> I'm not sure I understand what you mean but we had already tried this >> way and for this, you can refer to below link, >> >>

Re: [PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-16 Thread Ni zhan Chen
On 10/16/2012 06:54 PM, Kirill A. Shutemov wrote: On Tue, Oct 16, 2012 at 05:53:07PM +0800, Ni zhan Chen wrote: By hpa request I've tried alternative approach for hzp implementation (see Virtual huge zero page patchset): pmd table with all entries set to zero page. This way should be more cache

[PATCH] slab : allow SLAB_RED_ZONE and SLAB_STORE_USER to work on arm

2012-10-16 Thread Matthieu CASTET
From: Matthieu CASTET on cortexA8 (omap3) ralign is 64 and __alignof__(unsigned long long) is 8. So we always disable debug. This patch is based on 5c5e3b33b7cb959a401f823707bee006caadd76e, but fix case were align < sizeof(unsigned long long). Signed-off-by: Matthieu Castet CC: Russell King

[PATCH v3] compat: Generic compat_sys_sched_rr_get_interval implementation

2012-10-16 Thread Catalin Marinas
This function is used by sparc, powerpc tile and arm64 for compat support. The patch adds a generic implementation with a wrapper for PowerPC to do the u32->int sign extension. The reason for a single patch covering powerpc, tile, sparc and arm64 is to keep it bisectable, otherwise kernel

Re: [PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-16 Thread Kirill A. Shutemov
On Tue, Oct 16, 2012 at 07:13:07PM +0800, Ni zhan Chen wrote: > On 10/16/2012 06:54 PM, Kirill A. Shutemov wrote: > >On Tue, Oct 16, 2012 at 05:53:07PM +0800, Ni zhan Chen wrote: > >>>By hpa request I've tried alternative approach for hzp implementation (see > >>>Virtual huge zero page patchset):

Re: [PATCH] avr32: fix build error in atstk1006_defconfig

2012-10-16 Thread Andreas Bießmann
On 16.10.2012 11:17, Hans-Christian Egtvedt wrote: > Around Tue 16 Oct 2012 15:19:27 +0800 or thereabout, Josh Wu wrote: >> fixed the following compile error when use avr32 atstk1006_defconfig: >> drivers/mtd/nand/atmel_nand.c: In function 'pmecc_err_location': >>

Re: [PATCH v2 0/4] DMA: PL330: Fix mem leaks and balance probe/remove

2012-10-16 Thread Inderpal Singh
On 13 October 2012 16:33, Jassi Brar wrote: > On Fri, Oct 5, 2012 at 3:47 PM, Inderpal Singh > wrote: >> The first 2 patches of this series fix memory leaks because the memory >> allocated for peripheral channels and DMA descriptors were not getting >> freed. >> >> The last 2 patches balance the

Re: [PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-16 Thread Ni zhan Chen
On 10/16/2012 07:28 PM, Kirill A. Shutemov wrote: On Tue, Oct 16, 2012 at 07:13:07PM +0800, Ni zhan Chen wrote: On 10/16/2012 06:54 PM, Kirill A. Shutemov wrote: On Tue, Oct 16, 2012 at 05:53:07PM +0800, Ni zhan Chen wrote: By hpa request I've tried alternative approach for hzp implementation

Re: [PATCH 11/16] f2fs: add inode operations for special inodes

2012-10-16 Thread Arnd Bergmann
On Tuesday 16 October 2012, Jaegeuk Kim wrote: > On Monday 15 October 2012, Dave Chinner wrote: > > On Sun, Oct 14, 2012 at 03:19:37PM +, Arnd Bergmann wrote: > > > On Sunday 14 October 2012, Vyacheslav Dubeyko wrote: > > > > On Oct 14, 2012, at 11:09 AM, Jaegeuk Kim wrote: > > > > >

Re: [Bug fix] nfs-client: fix nfs_inode_attrs_need_update for async read_done comes during truncating to smaller size

2012-10-16 Thread Chen Gang
于 2012年10月16日 18:33, Jeff Layton 写道: > In any situation where we get back attributes, we have to decide > whether they are valid or stale. It's always possible for replies or > their handling to be reordered such that an older set of attributes > is processed after a newer set. > >

[PATCH 0/5] Fix thermal bugs and Upstream ST-Ericsson thermal driver

2012-10-16 Thread hongbo.zhang
From: "hongbo.zhang" Hi all, This patch set is to upstream ST-Ericsson thermal driver and fix some bugs of thermal layer at the same time. All of these patches are based on v3.7-rc1. [PATCH 1/5] Thermal: do bind operation after thermal zone or cooling device register returns. In the previous

[PATCH 1/5] Thermal: do bind operation after thermal zone or cooling device register returns.

2012-10-16 Thread hongbo.zhang
From: "hongbo.zhang" In the previous bind function, cdev->get_max_state(cdev, _state) is called before the registration function finishes, but at this moment, the parameter cdev at thermal driver layer isn't ready--it will get ready only after its registration, so the the get_max_state callback

[PATCH 2/5] Thermal: add indent for code alignment.

2012-10-16 Thread hongbo.zhang
From: "hongbo.zhang" Signed-off-by: hongbo.zhang --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index cc1c930..b6b4c2a 100644 --- a/drivers/thermal/cpu_cooling.c +++

[PATCH 3/5] Thermal: fix empty list checking method.

2012-10-16 Thread hongbo.zhang
From: "hongbo.zhang" Is is not reliable to check the list entry pointer after list_for_each_entry loop, list_empty should be used instead. Signed-off-by: hongbo.zhang --- drivers/thermal/cpu_cooling.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 4/5] Thermal: make sure cpufreq cooling register after cpufreq driver

2012-10-16 Thread hongbo.zhang
From: "hongbo.zhang" The cpufreq works as a cooling device, so the cooling layer should check and wait until the cpufreq driver is initialized. Signed-off-by: hongbo.zhang --- drivers/thermal/cpu_cooling.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH 5/5] Thermal: Add ST-Ericsson db8500 thermal dirver.

2012-10-16 Thread hongbo.zhang
From: "hongbo.zhang" This diver is based on the thermal management framework in thermal_sys.c. A thermal zone device is created with the trip points to which cooling devices can be bound, the current cooling device is cpufreq, e.g. CPU frequency is clipped down to cool the CPU, and other cooling

[PATCHv3 1/6] lib/string: introduce helper to get base file name from given path

2012-10-16 Thread Andy Shevchenko
There are several places in the kernel that use functionality like basename(3) with an exception: in case of '/foo/bar/' we expect to get an empty string. Let's do it common helper for them. Signed-off-by: Andy Shevchenko Cc: Jason Baron Cc: YAMANE Toshiaki Cc: Greg Kroah-Hartman Cc:

[PATCHv3 5/6] procfs: reuse kbasename() functionality

2012-10-16 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- fs/proc/proc_devtree.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index df7dd08..3d9fd66 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c @@ -13,6 +13,7 @@

[PATCHv3 1/6] string: introduce helper to get base file name from given path

2012-10-16 Thread Andy Shevchenko
There are several places in the kernel that use functionality like basename(3) with the exception: in case of '/foo/bar/' we expect to get an empty string. Let's do it common helper for them. Signed-off-by: Andy Shevchenko --- include/linux/string.h | 11 +++ 1 file changed, 11

[PATCHv3 6/6] trace: reuse kbasename() functionality

2012-10-16 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko Cc: Steven Rostedt Cc: Frederic Weisbecker --- kernel/trace/trace_uprobe.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index 03003cd..c7ba4f6 100644 ---

[PATCHv3 3/6] staging: rts_pstor: reuse kbasename()

2012-10-16 Thread Andy Shevchenko
The custom filename function mostly repeats the kernel's kbasename. This patch simplifies it. The updated filename() will not check for the '\' in the filenames. It seems redundant in Linux. The __FILE__ macro always defined if we compile an existing file. Thus, NULL check is not needed there as

[PATCHv3 2/6] lib: dynamic_debug: reuse kbasename()

2012-10-16 Thread Andy Shevchenko
Remove the custom implementation of the functionality similar to kbasename(). Signed-off-by: Andy Shevchenko Cc: Jason Baron --- lib/dynamic_debug.c |9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index e7f7d99..1db1fc6

[PATCHv3 0/6] lib/string: introduce kbasename helper

2012-10-16 Thread Andy Shevchenko
There are several places in kernel that duplicate code to get last part of the pathname. This patchset introduces a helper and few fixes. Since v2: - fixed Cc list in the patch 6/6 ("trace: ...") - update patch 3/6 ("rts_pstor: ...") to not hide const qualifier - send patch 1/1 to all people

[PATCHv3 4/6] mm: reuse kbasename() functionality

2012-10-16 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko Cc: linux...@kvack.org --- mm/memory.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 5823f29..06158b7 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -58,6 +58,7 @@ #include #include #include

Re: [PATCH v4 1/2] x86, pci: Reset PCIe devices at boot time

2012-10-16 Thread Takao Indoh
(2012/10/16 2:17), Khalid Aziz wrote: > On Mon, 2012-10-15 at 16:00 +0900, Takao Indoh wrote: >> This patch resets PCIe devices at boot time by hot reset when >> "reset_devices" is specified. >> >> Signed-off-by: Takao Indoh >> --- >> arch/x86/include/asm/pci-direct.h |1 >>

[PATCH] OMAPDSS: Correct check for the callback pointer in dss_dsi_disable_pads()

2012-10-16 Thread Peter Ujfalusi
Appear to be a copy-paste bug: the code was checking board_data->dsi_enable_pads while calling board_data->dsi_disable_pads. Signed-off-by: Peter Ujfalusi --- Hi Tomi, not sure if this need to be included to 3.7 Regards, Peter drivers/video/omap2/dss/core.c | 2 +- 1 file changed, 1

Re: [PATCH] uprobes tracer: Add stack/memory/retval access support

2012-10-16 Thread Masami Hiramatsu
(2012/10/16 18:02), Hyeoncheol Lee wrote: > Event arguments except @SYM are supported. They are @ADDR, > $stack, $stackN, $retval, and offs(arguments). > > Cc: Masami Hiramatsu > Cc: Srikar Dronamraju > Signed-off-by: Hyeoncheol Lee > --- [...] > #define DEFINE_FETCH_stack(type)

[PATCH v2 1/2] regulator: max77686: Use already set opmode while re-enabling regulators.

2012-10-16 Thread Yadwinder Singh Brar
This patch adds basic support to take care of opmode(if any) which can be set by set_suspend_[disable/mode] callbacks. Signed-off-by: Yadwinder Singh Brar --- drivers/regulator/max77686.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git

[PATCH v2 2/2] regulator: max77686: Add set_suspend_disable/set_suspend_mode callbacks.

2012-10-16 Thread Yadwinder Singh Brar
This patch implements set_suspend_disable callback for BUCKs which support only switch ON/OFF modes during system suspend state, and set_suspend_mode callbacks for LDOs which also suport Low power mode and switch ON/OFF modes. Signed-off-by: Yadwinder Singh Brar --- drivers/regulator/max77686.c

[PATCH v5 1/6] KVM: MMU: fix release noslot pfn

2012-10-16 Thread Xiao Guangrong
We can not directly call kvm_release_pfn_clean to release the pfn since we can meet noslot pfn which is used to cache mmio info into spte Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c |3 +-- virt/kvm/kvm_main.c |4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff

[PATCH v5 2/6] KVM: MMU: remove mmu_is_invalid

2012-10-16 Thread Xiao Guangrong
Remove mmu_is_invalid and use is_invalid_pfn instead Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c |5 - arch/x86/kvm/paging_tmpl.h |4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 6f85fe0..b8d13d7

[PATCH v5 3/6] KVM: MMU: cleanup FNAME(page_fault)

2012-10-16 Thread Xiao Guangrong
Let it return emulate state instead of spte like __direct_map Signed-off-by: Xiao Guangrong --- arch/x86/kvm/paging_tmpl.h | 32 +--- 1 files changed, 13 insertions(+), 19 deletions(-) diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index

[PATCH v5 4/6] KVM: MMU: move prefetch_invalid_gpte out of pagaing_tmp.h

2012-10-16 Thread Xiao Guangrong
The function does not depend on guest mmu mode, move it out from paging_tmpl.h Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 36 arch/x86/kvm/paging_tmpl.h | 26 +++--- 2 files changed, 31 insertions(+), 31

[PATCH v5 5/6] KVM: MMU: introduce FNAME(prefetch_gpte)

2012-10-16 Thread Xiao Guangrong
The only difference between FNAME(update_pte) and FNAME(pte_prefetch) is that the former is allowed to prefetch gfn from dirty logged slot, so introduce a common function to prefetch spte Signed-off-by: Xiao Guangrong --- arch/x86/kvm/paging_tmpl.h | 55

[PATCH v5 6/6] KVM: do not treat noslot pfn as a error pfn

2012-10-16 Thread Xiao Guangrong
This patch filters noslot pfn out from error pfns based on Marcelo comment: noslot pfn is not a error pfn After this patch, - is_noslot_pfn indicates that the gfn is not in slot - is_error_pfn indicates that the gfn is in slot but the error is occurred when translate the gfn to pfn -

Re: [PATCH] lguest: fix typo

2012-10-16 Thread Rusty Russell
Alex Russell writes: > Signed-off-by: Alex Russell > --- > drivers/lguest/core.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c > index b5fdcb7..a5ebc00 100644 > --- a/drivers/lguest/core.c > +++ b/drivers/lguest/core.c

Re: [Bug fix] nfs-client: fix nfs_inode_attrs_need_update for async read_done comes during truncating to smaller size

2012-10-16 Thread Jeff Layton
On Tue, 16 Oct 2012 19:44:38 +0800 Chen Gang wrote: > > 于 2012年10月16日 18:33, Jeff Layton 写道: > > In any situation where we get back attributes, we have to decide > > whether they are valid or stale. It's always possible for replies or > > their handling to be reordered such that an older set of

Re: [PATCH v5 04/14] kmem accounting basic infrastructure

2012-10-16 Thread Michal Hocko
On Tue 16-10-12 14:16:41, Glauber Costa wrote: > This patch adds the basic infrastructure for the accounting of kernel > memory. To control that, the following files are created: > > * memory.kmem.usage_in_bytes > * memory.kmem.limit_in_bytes > * memory.kmem.failcnt > *

Re: [PATCH v5 05/14] Add a __GFP_KMEMCG flag

2012-10-16 Thread Michal Hocko
On Tue 16-10-12 14:16:42, Glauber Costa wrote: > This flag is used to indicate to the callees that this allocation is a > kernel allocation in process context, and should be accounted to > current's memcg. It takes numerical place of the of the recently removed > __GFP_NO_KSWAPD. > > [ v4: make

Re: [RFC][PATCH] perf: Add a few generic stalled-cycles events

2012-10-16 Thread Stephane Eranian
On Tue, Oct 16, 2012 at 12:08 PM, Robert Richter wrote: > Sukadev, > > On 15.10.12 17:55:34, Robert Richter wrote: >> On 11.10.12 18:28:39, Sukadev Bhattiprolu wrote: >> > + { .type = PERF_TYPE_HARDWARE, .config = >> > PERF_COUNT_HW_STALLED_CYCLES_FIXED_POINT }, >> > + { .type =

Re: [PATCH v5 14/14] Add documentation about the kmem controller

2012-10-16 Thread Michal Hocko
On Tue 16-10-12 14:16:51, Glauber Costa wrote: > Signed-off-by: Glauber Costa > CC: Frederic Weisbecker > CC: Kamezawa Hiroyuki > CC: Michal Hocko > CC: Christoph Lameter > CC: Pekka Enberg > CC: Johannes Weiner > CC: Suleiman Souhlal > CC: Tejun Heo Acked-by: Michal Hocko --- >

Re: [PATCH 1/2] uapi: update includes for drm content when no kernel API exists

2012-10-16 Thread Laurent Pinchart
Hi Luis, On Saturday 13 October 2012 10:00:42 Luis R. Rodriguez wrote: > On Sat, Oct 13, 2012 at 3:33 AM, Laurent Pinchart wrote: > > On Friday 12 October 2012 16:49:31 Luis R. Rodriguez wrote: > >> From: "Luis R. Rodriguez" > >> > >> The UAPI changes split kernel API and userspace API > >>

Re: [PATCH] iommu: tegra: remove include of

2012-10-16 Thread Joerg Roedel
Hi Stephen, On Mon, Oct 15, 2012 at 11:42:44AM -0600, Stephen Warren wrote: > Joerg, given 3.7-rc1 is now out, I'd like to take this through the Tegra > tree due to other patches depending on it. > > Given the patch is so trivial, I'll probably just apply it anyway soon - > this is more of a

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
David, On Mon, Oct 15, 2012 at 9:46 PM, David Rientjes wrote: > On Sat, 13 Oct 2012, Ezequiel Garcia wrote: > >> But SLAB suffers from a lot more internal fragmentation than SLUB, >> which I guess is a known fact. So memory-constrained devices >> would waste more memory by using SLAB. > > Even

Re: Linux 2.6.32.xx build breaks with gcc 4.7

2012-10-16 Thread Willy Tarreau
On Tue, Oct 16, 2012 at 09:32:29AM +0200, Gabor Z. Papp wrote: > lo lo, > > I'm trying to compile 2.6.32.60 with gcc 4.7.2, and getting the > following error: > > CC arch/x86/kernel/ptrace.o > arch/x86/kernel/ptrace.c:1472:17: error: conflicting types for > 'syscall_trace_enter' > In

[BUG 3.7-rc1] nouveau cli->mutex possible recursive locking detected

2012-10-16 Thread Stanislaw Gruszka
I have this lockdep warning on wireless-testing tree based on 3.7-rc1 (no other patches except wireless bits). = Restarting tasks ... done. [ INFO: possible recursive locking detected ] 3.7.0-rc1-wl+ #2 Not tainted

Re: Strange crash on Dell R720xd

2012-10-16 Thread Borislav Petkov
On Tue, Oct 16, 2012 at 11:26:01AM +0200, Laurent CARON wrote: > On Tue, Oct 16, 2012 at 11:03:53AM +0200, Borislav Petkov wrote: > > That's: > > > > BUG_ON(async_tx_test_ack(depend_tx) || txd_next(depend_tx) > > || > > txd_parent(tx)); > > > > but probably

Re: [PATCH] iommu: tegra: remove include of

2012-10-16 Thread Joerg Roedel
On Mon, Oct 15, 2012 at 11:42:44AM -0600, Stephen Warren wrote: > Joerg, given 3.7-rc1 is now out, I'd like to take this through the Tegra > tree due to other patches depending on it. > > Given the patch is so trivial, I'll probably just apply it anyway soon - > this is more of a heads-up to

Re: [PATCH] Re: Hardcoded instruction causes certain features to fail on ARM platfrom due to endianness

2012-10-16 Thread Dave Martin
On Mon, Oct 15, 2012 at 11:33:08PM +0800, Fei Yang wrote: > 2012/10/15 Mikael Pettersson : > > Yangfei (Felix) writes: > > > Hi all, > > > > > > I found that hardcoded instruction in inline asm can cause certains > > certain features fail to work on ARM platform due to endianness. > > >

[PATCH] x86: check for valid irq_cfg pointer in smp_irq_move_cleanup_interrupt

2012-10-16 Thread Dimitri Sivanich
Posting this patch to fix an issue concerning sparse irq's that I raised a while back. There was discussion about adding refcounting to sparse irqs (to fix other potential race conditions), but that does not appear to have been addressed yet. This covers the only issue of this type that I've

Re: [PATCH] mm: compaction: Correct the nr_strict_isolated check for CMA

2012-10-16 Thread Rik van Riel
On 10/16/2012 04:39 AM, Mel Gorman wrote: Thierry reported that the "iron out" patch for isolate_freepages_block() had problems due to the strict check being too strict with "mm: compaction: Iron out isolate_freepages_block() and isolate_freepages_range() -fix1". It's possible that more pages

Re: Strange crash on Dell R720xd

2012-10-16 Thread Laurent CARON
On Tue, Oct 16, 2012 at 02:48:25PM +0200, Borislav Petkov wrote: > On Tue, Oct 16, 2012 at 11:26:01AM +0200, Laurent CARON wrote: > > On Tue, Oct 16, 2012 at 11:03:53AM +0200, Borislav Petkov wrote: > > > That's: > > > > > > BUG_ON(async_tx_test_ack(depend_tx) || > > >

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

2012-10-16 Thread Roland Stigge
On 10/16/2012 01:57 AM, Greg KH wrote: > On Tue, Oct 16, 2012 at 01:31:18AM +0200, Roland Stigge wrote: >> +int gpio_block_export(struct gpio_block *block) >> +{ >> +int status; >> +struct device *dev; >> + >> +/* can't export until sysfs is available ... */ >> +if

Re: [PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-16 Thread David Howells
David Sharp wrote: > > Please use the Kbuild infrastructure ("generic-y += ..." in > > arch/*/include/asm/Kbuild) > > instead of adding wrappers around the asm-generic version. > > mips apparently recencly got rid of arch/mips/include/asm/Kbuild. It didn't. However, if you use patch to create

Re: [Q] Default SLAB allocator

2012-10-16 Thread Eric Dumazet
On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: > Now, returning to the fragmentation. The problem with SLAB is that > its smaller cache available for kmalloced objects is 32 bytes; > while SLUB allows 8, 16, 24 ... > > Perhaps adding smaller caches to SLAB might make sense? > Is there

[PATCH 0/5] x86,idle: Enhance menu governor C-state prediction

2012-10-16 Thread Youquan Song
The prediction for future is difficult and when the cpuidle governor prediction fails and govenor possibly choose the shallower C-state than it should. How to quickly notice and find the failure becomes important for power saving. cpuidle menu governor has a method to predict the repeat

[PATCH 1/5] x86,idle: Quickly notice prediction failure for repeat mode

2012-10-16 Thread Youquan Song
The prediction for future is difficult and when the cpuidle governor prediction fails and govenor possibly choose the shallower C-state than it should. How to quickly notice and find the failure becomes important for power saving. cpuidle menu governor has a method to predict the repeat

[PATCH 3/5] x86,idle: Reset correction factor

2012-10-16 Thread Youquan Song
In general case, the expected residency is much larger than deepest C-state target residency, but prediction logic still predicts the small predicted residency, so the prediction history is totally broken. In this situation, reset the correction factor is the only choice. Signed-off-by: Youquan

[PATCH 4/5] x86,idle: Set residency to 0 if target Cstate not enter

2012-10-16 Thread Youquan Song
When cpuidle governor choose a C-state to enter for idle CPU, but it notice that there is tasks request to be executed. So the idle CPU will not really enter the target C-state and go to run task. In this situation, it will use the residency of previous really entered target C-states. Obviously,

[PATCH 5/5] x86,idle: Get typical recent sleep interval

2012-10-16 Thread Youquan Song
The function detect_repeating_patterns was not very useful for workloads with alternating long and short pauses, for example virtual machines handling network requests for each other (say a web and database server). Instead, try to find a recent sleep interval that is somewhere between the median

[PATCH 2/5] x86,idle: Quickly notice prediction failure in general case

2012-10-16 Thread Youquan Song
The prediction for future is difficult and when the cpuidle governor prediction fails and govenor possibly choose the shallower C-state than it should. How to quickly notice and find the failure becomes important for power saving. The patch extends to general case that prediction logic get

<    3   4   5   6   7   8   9   10   11   12   >