Re: [PATCH] hugetlb: do not use vma_hugecache_offset for vma_prio_tree_foreach

2012-08-13 Thread Hillf Danton
On Mon, Aug 13, 2012 at 9:49 PM, Michal Hocko wrote: > > I will leave it as an excersise for the careful reader... Is it too late for you to prepare a redelivery? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] hugetlb: do not use vma_hugecache_offset for vma_prio_tree_foreach

2012-08-13 Thread Michal Hocko
On Mon 13-08-12 21:24:36, Hillf Danton wrote: > On Mon, Aug 13, 2012 at 9:09 PM, Michal Hocko wrote: > > On Mon 13-08-12 20:10:41, Hillf Danton wrote: > >> On Sun, Aug 12, 2012 at 5:31 PM, Michal Hocko wrote: > >> > From d07b88a70ee1dbcc96502c48cde878931e7deb38 Mon Sep 17 00:00:00 2001 > >> >

Re: [NEW DRIVER V2 5/7] DA9058 GPIO driver

2012-08-13 Thread Mark Brown
On Mon, Aug 13, 2012 at 03:09:31PM +0200, Linus Walleij wrote: > On Sun, Aug 5, 2012 at 10:43 PM, Anthony Olech > > +#include > If you're using regmap you better select it in Kconfig > too, but it appears you don't. You should be using regmap in the > main MFD driver in this case (I haven't

Re: [lm-sensors] hwmon : raw reading -> temperature conversion

2012-08-13 Thread Guenter Roeck
On Mon, Aug 13, 2012 at 12:57:03PM +0530, Bitan Biswas wrote: > Hi Guenter, > > Thank you for the guidance. > > >> > >>But looking at the hwmon linux documentation, seems the sensor > >>kernel drivers should report only raw readings. > >>The raw readings can be converted into required output, >

Re: [PATCH] mmc: card: Skip secure option for MoviNAND.

2012-08-13 Thread Linus Walleij
On Mon, Aug 13, 2012 at 11:50 AM, IAN CHEN wrote: > For several MoviNAND, there are some known issue with secure option. > For these specific MoviNAND device, we skip secure option. OK.. > diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h > index 111aca5..4505a30 100644 > ---

[PATCH v2 2/2] [PATCH] ptrace: partly fix set_task_blockstep()->update_debugctlmsr() logic

2012-08-13 Thread Oleg Nesterov
Afaics the usage of update_debugctlmsr() and TIF_BLOCKSTEP in step.c was always very wrong. 1. update_debugctlmsr() was simply unneeded. The child sleeps TASK_TRACED, __switch_to_xtra(next_p => child) should notice TIF_BLOCKSTEP and set/clear DEBUGCTLMSR_BTF after resume if needed. 2.

[PATCH v2 1/2] ptrace: introduce set_task_blockstep() helper

2012-08-13 Thread Oleg Nesterov
No functional changes, preparation for the next fix and for uprobes single-step fixes. Move the code playing with TIF_BLOCKSTEP/DEBUGCTLMSR_BTF into the new helper, set_task_blockstep(). Signed-off-by: Oleg Nesterov --- arch/x86/kernel/step.c | 41 + 1

Re: [userns:userns-always-map-user-v45 80/99] fs/namespace.c:2290:1: error: unknown type name 'atomic64_t'

2012-08-13 Thread Fengguang Wu
On Sun, Aug 12, 2012 at 11:56:45PM -0700, Eric W. Biederman wrote: > Fengguang Wu writes: > > > Hi Geert, > > > > This is the build error I get, on Eric's userns tree. > > > > tree: > > git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > > userns-always-map-user-v45 >

[PATCH v2 0/2] ptrace: DEBUGCTLMSR_BTF fixes

2012-08-13 Thread Oleg Nesterov
Hello. The subject says "ptrace:", but we need these changes for uprobes. Although I think this fix makes sense by itself. I am really surprised how many problems this simple code has, or I am totally confused (this is very possible). Could someone review 2/2 ? The next step will change

Re: Boot freeze after/during PCI initialization

2012-08-13 Thread Otavio Salvador
On Thu, Aug 9, 2012 at 5:00 PM, Otavio Salvador wrote: > Hello, > > One of machines we have freeze during initialization from time to time: > > freeze at: http://download.ossystems.com.br/~otavio/geode-freeze.jpg > works at: http://download.ossystems.com.br/~otavio/geode-working-dmesg.txt > >

Re: RFC: mutex: hung tasks on SMP platforms with asm-generic/mutex-xchg.h

2012-08-13 Thread Nicolas Pitre
On Mon, 13 Aug 2012, Peter Zijlstra wrote: > OK, I like this.. Thanks guys! Will will you send a final and complete > patch? Here it is: --- >8 Date: Fri, 10 Aug 2012 15:22:09 +0100 From: Will Deacon Subject: [PATCH] mutex: place lock in contended state after fastpath_lock failure ARM

Re: [PATCHv2 1/4] modem_shm: Add Modem Access Framework

2012-08-13 Thread Linus Walleij
On Thu, Aug 9, 2012 at 1:38 PM, Alan Cox wrote: >> Maybe tty can do this, but want to have all modem related separately. >> There are many such hardware and many drivers coming up in near future. > > tty can't do all this. We have similar things with stuff like CAIF. Modem > has gone from

Re: [PATCH] drivers: hv: use Linux version in guest ID

2012-08-13 Thread Bjørn Mork
KY Srinivasan writes: > In the interim, I have submitted a patch that conforms to the MSFT guidelines > for generating guest IDs for non-MSFT operating systems on Hyper-V. Oh, sorry. I missed that. Found it now. Thanks Including distro info in a driver interface looks a bit weird to me, but

Re: [PATCH 14/14] workqueue: use mod_delayed_work() instead of cancel + queue

2012-08-13 Thread David Howells
Tejun Heo wrote: > Convert delayed_work users doing cancel_delayed_work() followed by > queue_delayed_work() to mod_delayed_work(). > > Most conversions are straight-forward. Ones worth mentioning are, > > * drivers/edac/edac_mc.c: edac_mc_workq_setup() converted to always > use

Re: [PATCH v2 2/5] x86/uprobes: implement x86 specific arch_uprobe_*_step

2012-08-13 Thread Oleg Nesterov
On 08/09, Sebastian Andrzej Siewior wrote: > > v1..v2: re-use auprobe->fixups for fixups Yes, but > @@ -46,6 +46,8 @@ struct arch_uprobe_task { > #ifdef CONFIG_X86_64 > unsigned long saved_scratch_register; > #endif > +#define UPROBE_CLEAR_TF (1 <<

Re: [PATCH] perf: Let O= makes handle relative paths

2012-08-13 Thread Borislav Petkov
On Mon, Aug 13, 2012 at 09:20:55AM -0400, Steven Rostedt wrote: > When I did a compile of perf using a relative path for the output > directory, the build failed when it tried to compile libtraceevent. This > is because it continues to use the same relative path when the new > working directory is

Re: [PATCH] hugetlb: do not use vma_hugecache_offset for vma_prio_tree_foreach

2012-08-13 Thread Hillf Danton
On Mon, Aug 13, 2012 at 9:09 PM, Michal Hocko wrote: > On Mon 13-08-12 20:10:41, Hillf Danton wrote: >> On Sun, Aug 12, 2012 at 5:31 PM, Michal Hocko wrote: >> > From d07b88a70ee1dbcc96502c48cde878931e7deb38 Mon Sep 17 00:00:00 2001 >> > From: Michal Hocko >> > Date: Fri, 10 Aug 2012 15:03:07

Re: [PATCH 6/7] uprobes: fold uprobe_reset_state() into uprobe_dup_mmap()

2012-08-13 Thread Srikar Dronamraju
* Oleg Nesterov [2012-08-08 19:37:49]: > Now that we have uprobe_dup_mmap() we can fold uprobe_reset_state() > into the new hook and remove it. mmput()->uprobe_clear_state() can't > be called before dup_mmap(). > > Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju -- To unsubscribe

Re: [PATCH 5/7] uprobes: introduce MMF_HAS_UPROBES

2012-08-13 Thread Srikar Dronamraju
* Oleg Nesterov [2012-08-08 19:37:47]: > Add the new MMF_HAS_UPROBES flag. It is set by install_breakpoint() > and it is copied by dup_mmap(), uprobe_pre_sstep_notifier() checks > it to avoid the slow path if the task was never probed. Perhaps it > makes sense to check it in

Re: [PATCH 4/7] uprobes: do not use -EEXIST in install_breakpoint() paths

2012-08-13 Thread Srikar Dronamraju
* Oleg Nesterov [2012-08-08 19:37:44]: > -EEXIST from install_breakpoint() no longer makes sense, all > callers should simply treat it as "success". Change the code > to return zero and simplify register_for_each_vma(). > > Signed-off-by: Oleg Nesterov > --- Acked-by: Srikar Dronamraju -- To

Re: [PATCH 3/7] uprobes: change uprobe_mmap() to ignore the errors but check fatal_signal_pending()

2012-08-13 Thread Srikar Dronamraju
* Oleg Nesterov [2012-08-08 19:37:42]: > Once install_breakpoint() fails uprobe_mmap() "ignores" all other > uprobes and returns the error. > > It was never really needed to to stop after the first error, and > in fact it was always wrong at least in -ENOTSUPP case. > > Change uprobe_mmap() to

Re: [PATCH 2/7] uprobes: kill dup_mmap()->uprobe_mmap(), simplify uprobe_mmap/munmap

2012-08-13 Thread Srikar Dronamraju
* Oleg Nesterov [2012-08-08 19:37:39]: > 1. Kill dup_mmap()->uprobe_mmap(), it was only needed to calculate >new_mm->uprobes_state.count removed by the previous patch. > >If the forking process has a pending uprobe (int3) in vma, it will >be copied by copy_page_range(), note that it

[PATCH] perf: Let O= makes handle relative paths

2012-08-13 Thread Steven Rostedt
When I did a compile of perf using a relative path for the output directory, the build failed when it tried to compile libtraceevent. This is because it continues to use the same relative path when the new working directory is in a different path. SUBDIR ../lib/traceevent/ /bin/sh: line 0:

Re: [RFC 5/5] uprobes: add global breakpoints

2012-08-13 Thread Oleg Nesterov
On 08/09, Sebastian Andrzej Siewior wrote: > > * Oleg Nesterov | 2012-08-08 15:14:57 [+0200]: > > >> What I miss right now is an interface to tell the user/gdb that there is a > >> program that hit a global breakpoint and is waiting for further > >> instructions. > >> A "tail -f trace" does not

Re: [PATCH] [RFC] cross-arch: don't corrupt personality flags upon exec()

2012-08-13 Thread Jiri Kosina
On Fri, 3 Aug 2012, Jiri Kosina wrote: > Historically, the top three bytes of personality have been used for things > such as ADDR_NO_RANDOMIZE, which made sense only for specific > architectures. > > We now, however, have a flag there that is general no matter the > architecture (UNAME26);

Re: [PATCH 1/7] uprobes: kill uprobes_state->count

2012-08-13 Thread Srikar Dronamraju
* Oleg Nesterov [2012-08-08 19:37:37]: > uprobes_state->count is only needed to avoid the slow path in > uprobe_pre_sstep_notifier(). It is also checked in uprobe_munmap() > but ironically its only goal to decrement this counter. However, > it is very broken. Just some examples: > > -

[PATCH] [RESEND] powerpc: fix personality handling in ppc64_personality()

2012-08-13 Thread Jiri Kosina
Directly comparing current->personality against PER_LINUX32 doesn't work in cases when any of the personality flags stored in the top three bytes are used. Directly forcefully setting personality to PER_LINUX32 or PER_LINUX discards any flags stored in the top three bytes Use personality()

Re: [PATCH V2] drm/radeon: Include swiotlb.h if SWIOTLB configured.

2012-08-13 Thread Michel Dänzer
On Mon, 2012-08-13 at 20:40 +0800, Huacai Chen wrote: > When SWIOTLB is configured, if without this patch kernel compilation > fails with such error messages: > > drivers/gpu/drm/radeon/radeon_ttm.c: In function 'radeon_ttm_tt_populate': > drivers/gpu/drm/radeon/radeon_ttm.c:606:2: error:

[PATCH] mfd: tps65910: remove warning during dt node parsing

2012-08-13 Thread Laxman Dewangan
Driver throw the warning message if dt node does not have the info for VMBCH-Threshold and VMBCH2-Threshold. These properties are optional property and hence it is not mandatory to have these on DT node and in this case it should not throw the warning message. It creates noise from driver as

Re: [PATCH v2 02/11] memcg: Reclaim when more than one page needed.

2012-08-13 Thread Michal Hocko
On Mon 13-08-12 12:05:38, Glauber Costa wrote: > On 08/10/2012 10:54 PM, Michal Hocko wrote: > > On Thu 09-08-12 17:01:10, Glauber Costa wrote: > >> From: Suleiman Souhlal > >> > >> mem_cgroup_do_charge() was written before kmem accounting, and expects > >> three cases: being called for 1 page,

Re: [NEW DRIVER V2 5/7] DA9058 GPIO driver

2012-08-13 Thread Linus Walleij
Hi Anthony, sorry for delayed reply... On Sun, Aug 5, 2012 at 10:43 PM, Anthony Olech wrote: > This is the GPIO component driver of the Dialog DA9058 PMIC. > This driver is just one component of the whole DA9058 PMIC driver. > It depends on the core DA9058 MFD driver. OK > +config GPIO_DA9058

Re: [patch] hugetlb: correct page offset index for sharing pmd

2012-08-13 Thread Michal Hocko
On Mon 13-08-12 20:10:41, Hillf Danton wrote: > On Sun, Aug 12, 2012 at 5:31 PM, Michal Hocko wrote: > > From d07b88a70ee1dbcc96502c48cde878931e7deb38 Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Fri, 10 Aug 2012 15:03:07 +0200 > > Subject: [PATCH] hugetlb: do not use

Re: [PATCH 2/2] drivers/mmc: Add realtek pcie sdmmc host driver

2012-08-13 Thread Arnd Bergmann
On Monday 13 August 2012, wei_w...@realsil.com.cn wrote: > From: Wei WANG > > Realtek PCI-E SD/MMC card host driver is used to access SD/MMC card, > with the help of Realtek PCI-E card reader MFD driver. > > Signed-off-by: Wei WANG Acked-by: Arnd Bergmann -- To unsubscribe from this list:

Re: [PATCH 1/2] drivers/mfd: Add realtek pcie card reader driver

2012-08-13 Thread Arnd Bergmann
On Monday 13 August 2012, wei_w...@realsil.com.cn wrote: > From: Wei WANG > > Realtek PCI-E card reader driver adapts requests from upper-level > sdmmc/memstick layer to the real physical card reader. > > Signed-off-by: Wei WANG Hi, This looks pretty good overall, I'm generally happy with

RE: [PATCH] drivers: hv: use Linux version in guest ID

2012-08-13 Thread KY Srinivasan
> -Original Message- > From: Bjørn Mork [mailto:bj...@mork.no] > Sent: Monday, August 13, 2012 9:00 AM > To: Greg KH > Cc: KY Srinivasan; Paolo Bonzini; de...@linuxdriverproject.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH] drivers: hv: use Linux version in guest ID > >

Re: [RFC][PATCH 4/4] perf/events: Use helper functions in event assignment to shrink macro size

2012-08-13 Thread Steven Rostedt
On Mon, 2012-08-13 at 10:03 +0200, Peter Zijlstra wrote: > > +void perf_trace_event_submit(void *raw_data, struct ftrace_event_call > > *event_call, > > +struct perf_trace_event *pe) > > +{ > > + struct hlist_head *head; > > + > > + head =

Re: [PATCH] mmc: card: Skip secure option for MoviNAND.

2012-08-13 Thread Namjae Jeon
Hi. Ian. known issue ? Would you explain more ? Thanks. 2012/8/13 IAN CHEN : > From 5c60eb8be04c7440d6e33b8f72ea2046a3657ac4 Mon Sep 17 00:00:00 2001 > From: ian.cy.chen > Date: Mon, 13 Aug 2012 10:53:55 +0900 > Subject: [PATCH] mmc: card: Skip secure option for MoviNAND. > > For several

Re: [PATCH] drivers: hv: use Linux version in guest ID

2012-08-13 Thread Bjørn Mork
Greg KH writes: > On Fri, Jul 20, 2012 at 04:02:44PM +, KY Srinivasan wrote: >> > On Fri, Jul 20, 2012 at 10:03:08AM +0200, Bjørn Mork wrote: >> > >> > > +/* Linux vendor ID allocated by Microsoft */ >> > > +#define HV_LINUX_GUEST_ID_VENDOR0xB16B >> > > + >> > > +/* Creating a guest

Re: [BUG] perf: sharing of cpuctx between core and ibs PMU causes problems

2012-08-13 Thread Stephane Eranian
Peter, Ok, that should fix the problem that IBS would not work correctly in per-thread mode. I realized I was looking at an older kernel which did not have the split between ibs op and fetch. And there, the .task_nr_context was not initialized at all. Your proposal solves the problem, though it

[PATCH V2] MIPS: Fix poweroff failure when HOTPLUG_CPU configured.

2012-08-13 Thread Huacai Chen
When poweroff machine, kernel_power_off() call disable_nonboot_cpus(). And if we have HOTPLUG_CPU configured, disable_nonboot_cpus() is not an empty function but attempt to actually disable the nonboot cpus. Since system state is SYSTEM_POWER_OFF, play_dead() won't be called and thus

Re: [Linaro-mm-sig] [PATCH 2/4] dma-fence: dma-buf synchronization (v8 )

2012-08-13 Thread Maarten Lankhorst
Hey, Op 11-08-12 21:39, Daniel Vetter schreef: > + > + if (!ret) { > + cb->base.flags = 0; > + cb->base.func = __dma_fence_wake_func; > + cb->base.private = priv; > + cb->fence = fence; > + cb->func =

[PATCH V2] drm/radeon: Include swiotlb.h if SWIOTLB configured.

2012-08-13 Thread Huacai Chen
When SWIOTLB is configured, if without this patch kernel compilation fails with such error messages: drivers/gpu/drm/radeon/radeon_ttm.c: In function 'radeon_ttm_tt_populate': drivers/gpu/drm/radeon/radeon_ttm.c:606:2: error: implicit declaration of function 'swiotlb_nr_tbl'

[PATCH v4 1/9] ipc: remove forced assignment of selected message

2012-08-13 Thread Stanislav Kinsbursky
This is a cleanup patch. The assignment is redundant. --- ipc/msg.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/ipc/msg.c b/ipc/msg.c index 7385de2..f3bfbb8 100644 --- a/ipc/msg.c +++ b/ipc/msg.c @@ -787,7 +787,6 @@ long do_msgrcv(int msqid, long *pmtype, void __user

Re: [PATCH 1/2] sched: recover SD_WAKE_AFFINE in select_task_rq_fair and code clean up

2012-08-13 Thread Alex Shi
On 07/27/2012 04:32 PM, Peter Zijlstra wrote: > On Fri, 2012-07-27 at 09:47 +0800, Alex Shi wrote: > >> From 610515185d8a98c14c7c339c25381bc96cd99d93 Mon Sep 17 00:00:00 2001 >> From: Alex Shi >> Date: Thu, 26 Jul 2012 08:55:34 +0800 >> Subject: [PATCH 1/3] sched: recover SD_WAKE_AFFINE in

[PATCH v4 0/9] IPC: checkpoint/restore in userspace enhancements

2012-08-13 Thread Stanislav Kinsbursky
v4: 1) If MSG_COPY flag is specified, then "mtype" is not a type, but message number to copy. 2) MSG_SET_COPY logic for sys_msgctl() was removed. v3: 1) Copy messages to user-space under spinlock was replaced by allocation of dummy message before queue lock and then copy of desired message to the

[PATCH v4 9/9] test: IPC message queue migration test

2012-08-13 Thread Stanislav Kinsbursky
This test is a part of CRIU development test suit. --- tools/testing/selftests/ipc/msgque.c | 151 ++ 1 files changed, 151 insertions(+), 0 deletions(-) create mode 100644 tools/testing/selftests/ipc/msgque.c diff --git a/tools/testing/selftests/ipc/msgque.c

[PATCH v4 8/9] IPC: message queue copy feature introduced

2012-08-13 Thread Stanislav Kinsbursky
This patch is required for checkpoint/restore in userspace. IOW, c/r requires some way to get all pending IPC messages without deleting them from the queue (checkpoint can fail and in this case tasks will be resumed, so queue have to be valid). To achive this, new operation flag MSG_COPY for

[PATCH v4 4/9] ipc: add new SHM_SET command for sys_shmctl() call

2012-08-13 Thread Stanislav Kinsbursky
New SHM_SET command will be interpreted exactly as IPC_SET, but also will update key, cuid and cgid values. IOW, it allows to change existent key value. The fact, that key is not used is checked before update. Otherwise -EEXIST is returned. Signed-off-by: Stanislav Kinsbursky Signed-off-by:

[PATCH v4 7/9] IPC: message queue receive cleanup

2012-08-13 Thread Stanislav Kinsbursky
This patch moves all message related manipulation into one function msg_fill(). Actually, two functions because of the compat one. Signed-off-by: Stanislav Kinsbursky Signed-off-by: Cyrill Gorcunov Conflicts: arch/tile/kernel/compat.c include/linux/compat.h ---

[PATCH v4 6/9] ipc: add new SEM_SET command for sys_semctl() call

2012-08-13 Thread Stanislav Kinsbursky
New SEM_SET command will be interpreted exactly as IPC_SET, but also will update key, cuid and cgid values. IOW, it allows to change existent key value. The fact, that key is not used is checked before update. Otherwise -EEXIST is returned. Signed-off-by: Stanislav Kinsbursky Signed-off-by:

[PATCH v4 5/9] ipc: add new MSG_SET command for sys_msgctl() call

2012-08-13 Thread Stanislav Kinsbursky
New MSG_SET command will be interpreted exactly as IPC_SET, but also will update key, cuid and cgid values. IOW, it allows to change existent key value. The fact, that key is not used is checked before update. Otherwise -EEXIST is returned. Signed-off-by: Stanislav Kinsbursky Signed-off-by:

[PATCH v4 3/9] ipc: segment key change helper introduced

2012-08-13 Thread Stanislav Kinsbursky
This patch introduces existent segment key changing infrastructure. New function ipc_update_key() can be used change segment key, cuid, cgid values. It checks for that new key is not used (except IPC_PRIVATE) prior to set it on existent. To make this possible, added copying of this fields from

[PATCH v4 2/9] ipc: "use key as id" functionality for resource get system call introduced

2012-08-13 Thread Stanislav Kinsbursky
This patch introduces new IPC resource get request flag IPC_PRESET, which should be interpreted as a request to try to allocate IPC slot with number, starting from value resented by key. IOW, kernel will try allocate new segment in specified slot. If slot is not emply, them -EEXIST returned.

Re: [PATCH 2/6] regulator: ab3100: Remove get_voltage implementation for regulator_ops_fixed

2012-08-13 Thread Mark Brown
On Fri, Aug 10, 2012 at 09:33:44AM +0800, Axel Lin wrote: > This is not required after commit f7df20ec > "regulator: core: Use list_voltage() to read single voltage regulators" applied 2-6. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 1/6] regulator: core: Add checking n_voltages if using list_voltage() to read voltage regulators

2012-08-13 Thread Mark Brown
On Sat, Aug 11, 2012 at 10:22:54AM +0800, Axel Lin wrote: > We do have such case in drivers/regulator/max1586.c They should have a read operation implemented. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] mm: correct page->pfmemalloc to fix deactivate_slab regression

2012-08-13 Thread Mel Gorman
On Mon, Aug 13, 2012 at 08:14:35PM +0800, Alex Shi wrote: > commit cfd19c5a9ec (mm: only set page->pfmemalloc when > ALLOC_NO_WATERMARKS was used) try to narrow down page->pfmemalloc > setting, but it missed some places the pfmemalloc should be set. > > So, in __slab_alloc, the unalignment

Re: [RFC PATCH] spi/bcm63xx: Ensure that memory is freed only after it is no longer used

2012-08-13 Thread Mark Brown
On Fri, Aug 10, 2012 at 01:56:27PM -0700, Guenter Roeck wrote: > The call to spi_unregister_master() in the device remove function frees device > memory, and with it any device local data. However, device local data is still > accessed after the call to spi_unregister_master(). Applied, thanks.

[discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-13 Thread Alex Shi
Since there is no power saving consideration in scheduler CFS, I has a very rough idea for enabling a new power saving schema in CFS. It bases on the following assumption: 1, If there are many task crowd in system, just let few domain cpus running and let other cpus idle can not save power. Let

Re: [flame^Wreview] net: netprio_cgroup: rework update socket logic

2012-08-13 Thread Al Viro
On Sun, Aug 12, 2012 at 11:23:59PM -0700, John Fastabend wrote: > >OK clearly I screwed it up thanks for reviewing Al. How about this. > > > > fdt = files_fdtable(files); > > for (fd = 0; fd < fdt->max_fds; fd++) { > > struct socket *sock; >

[PATCH] mm: correct page->pfmemalloc to fix deactivate_slab regression

2012-08-13 Thread Alex Shi
commit cfd19c5a9ec (mm: only set page->pfmemalloc when ALLOC_NO_WATERMARKS was used) try to narrow down page->pfmemalloc setting, but it missed some places the pfmemalloc should be set. So, in __slab_alloc, the unalignment pfmemalloc and ALLOC_NO_WATERMARKS cause incorrect deactivate_slab() on

Re: [PATCH v2] SUNRPC: check current nsproxy before set of node name on client creation

2012-08-13 Thread Jeff Layton
On Mon, 13 Aug 2012 15:37:31 +0400 Stanislav Kinsbursky wrote: > v2: > 1) rpc_clnt_set_nodename() prototype updated. > 2) fixed errors in comment. > > When child reaper exits, it can destroy mount namespace it belongs to, and if > there are NFS mounts inside, then it will try to umount them.

Re: [patch] hugetlb: correct page offset index for sharing pmd

2012-08-13 Thread Hillf Danton
On Sun, Aug 12, 2012 at 5:31 PM, Michal Hocko wrote: > From d07b88a70ee1dbcc96502c48cde878931e7deb38 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Fri, 10 Aug 2012 15:03:07 +0200 > Subject: [PATCH] hugetlb: do not use vma_hugecache_offset for > vma_prio_tree_foreach > > 0c176d5 (mm:

Re: [PATCH v2 4/6] x86: Add clear_page_nocache

2012-08-13 Thread Jan Beulich
>>> On 13.08.12 at 13:43, "Kirill A. Shutemov" >>> wrote: > On Thu, Aug 09, 2012 at 04:22:04PM +0100, Jan Beulich wrote: >> >>> On 09.08.12 at 17:03, "Kirill A. Shutemov" >> >>> wrote: > > ... > >> > --- >> > arch/x86/include/asm/page.h |2 ++ >> >

Re: [PATCH RFT 2/2] gpio: gpio-pch: Use spinlock for register access protection

2012-08-13 Thread Linus Walleij
On Sun, Jul 29, 2012 at 4:55 AM, Axel Lin wrote: > gpio_chip.can_sleep is 0, but current code uses mutex in pch_gpio_set > pch_gpio_get and pch_gpio_direction_input functions. > Thus those functions are not callable from interrupt context. > This patch converts mutex into spinlock. > >

[PATCH] powerpc: perf: Do not reset a counter value on stop/start

2012-08-13 Thread Heechul Yun
A performance counter of e500mc processor core generates an overflow interrupt when the counter value reaches to 0x8000. In order to set up a sampling counter, the kernel sets the counter value to 0x8000 - to cause an interrupt right after are incremented. In the current code, the

Re: [PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-08-13 Thread Linus Walleij
On Sun, Jul 29, 2012 at 4:54 AM, Axel Lin wrote: > gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, > ioh_gpio_get and ioh_gpio_direction_input functions. > Thus those functions are not callable from interrupt context. > This patch converts mutex into spinlock. > >

[PATCH] [trivial] mfd: Fix typo in mfd

2012-08-13 Thread Masanari Iida
Correct spelling typo in drivers/mfd Signed-off-by: Masanari Iida --- drivers/mfd/ab8500-gpadc.c| 2 +- drivers/mfd/rc5t583.c | 2 +- drivers/mfd/rdc321x-southbridge.c | 2 +- drivers/mfd/tps65911-comparator.c | 2 +- include/linux/mfd/max8998.h | 2 +- 5 files

Re: [PATCH] sched: fix divide by zero at {thread_group,task}_times

2012-08-13 Thread Stanislaw Gruszka
On Wed, Aug 08, 2012 at 10:08:20PM +0200, Peter Zijlstra wrote: > On Wed, 2012-08-08 at 21:50 +0200, Mike Galbraith wrote: > > 32bit built do_div() > > and div64_u64() both sucked equally compared to 64bit > > /me peeks at div64_u64 fallback implementation and sees why, it still > does a single

Re: [PATCH] Smack: remove task_wait() hook.

2012-08-13 Thread Jarkko Sakkinen
On Thu, Aug 09, 2012 at 05:46:38PM -0700, Casey Schaufler wrote: > On 12/20/2011 11:20 PM, Jarkko Sakkinen wrote: > > Allow SIGCHLD to be passed to child process without > > explicit policy. This will help to keep the access > > control policy simple and easily maintainable with > > complex

Re: [PATCH v2 4/6] x86: Add clear_page_nocache

2012-08-13 Thread Kirill A. Shutemov
On Thu, Aug 09, 2012 at 04:22:04PM +0100, Jan Beulich wrote: > >>> On 09.08.12 at 17:03, "Kirill A. Shutemov" > >>> wrote: ... > > --- > > arch/x86/include/asm/page.h |2 ++ > > arch/x86/include/asm/string_32.h |5 + > > arch/x86/include/asm/string_64.h |5

Re: [PATCHv2 0/4] Add device tree data for omap5

2012-08-13 Thread Shilimkar, Santosh
Sourav, On Mon, Aug 13, 2012 at 3:35 PM, Sourav Poddar wrote: > > The following patch series add i2c support for omap5. > As well as enable I2C based devices like pressure and temperature > through device tree. Also add onchip keypad dts data. > > Cc: Benoit Cousson > Cc: Felipe Balbi > Cc:

[PATCH v2] SUNRPC: check current nsproxy before set of node name on client creation

2012-08-13 Thread Stanislav Kinsbursky
v2: 1) rpc_clnt_set_nodename() prototype updated. 2) fixed errors in comment. When child reaper exits, it can destroy mount namespace it belongs to, and if there are NFS mounts inside, then it will try to umount them. But in this point current->nsproxy is set to NULL and all namespaces will be

Re: [PATCH] SUNRPC: check current nsproxy before set of node name on client creation

2012-08-13 Thread Stanislav Kinsbursky
Thanks, Jeff. Will fix. 13.08.2012 15:35, Jeff Layton пишет: On Mon, 13 Aug 2012 15:21:56 +0400 Stanislav Kinsbursky wrote: When child reaper exits, it can destroy mount namespace it belong to, and if there are NFS mounts inside, then it will try to umount them. But in this point

Re: [RFC 5/5] uprobes: add global breakpoints

2012-08-13 Thread Peter Zijlstra
On Tue, 2012-08-07 at 18:12 +0200, Sebastian Andrzej Siewior wrote: > By setting an uprobe tracepoint, one learns whenever a certain point > within a program is reached / passed. This is recorded and the > application continues. > This patch adds the ability to hold the program once this point has

Re: [PATCH] SUNRPC: check current nsproxy before set of node name on client creation

2012-08-13 Thread Jeff Layton
On Mon, 13 Aug 2012 15:21:56 +0400 Stanislav Kinsbursky wrote: > When child reaper exits, it can destroy mount namespace it belong to, and if > there are NFS mounts inside, then it will try to umount them. But in this > point current->nsproxy is set to NULL and all namespaces will be destroyed

[PATCH] SUNRPC: check current nsproxy before set of node name on client creation

2012-08-13 Thread Stanislav Kinsbursky
When child reaper exits, it can destroy mount namespace it belong to, and if there are NFS mounts inside, then it will try to umount them. But in this point current->nsproxy is set to NULL and all namespaces will be destroyed one by one. I.e. we can't dereference current->nsproxy to obtain uts

[PATCH] ARM: EXYNOS: Add audio I2S clock control

2012-08-13 Thread tobetter
From: Dongjin Kim This patch adds the clock controls for the audio subsystem channel 0, and fixes invalid clock gating for i2s.0. Signed-off-by: Dongjin Kim --- arch/arm/mach-exynos/clock-exynos4.c | 254 +++- arch/arm/mach-exynos/common.c |

Re: [flame^Wreview] net: netprio_cgroup: rework update socket logic

2012-08-13 Thread Neil Horman
On Sun, Aug 12, 2012 at 10:55:17PM -0700, John Fastabend wrote: > On 8/12/2012 6:53 PM, Al Viro wrote: > > Ladies and gentlemen, who the devil had reviewed that little gem? > > > >commit 406a3c638ce8b17d9704052c07955490f732c2b8 > >Author: John Fastabend > >Date: Fri Jul 20 10:39:25 2012

[GIT PULL] s390 patches for the 3.6-rc1

2012-08-13 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive some s390 patches on top of 3.6-rc1. Included are bug fixes and a patch to enable system call filtering with BPF. Heiko Carstens (4): s390/mm:

Re: [PATCH 01/12] thp: fix the count of THP_COLLAPSE_ALLOC

2012-08-13 Thread Kirill A. Shutemov
On Mon, Aug 13, 2012 at 07:13:16PM +0800, Xiao Guangrong wrote: > THP_COLLAPSE_ALLOC is double counted if NUMA is disabled since it has > already been calculated in khugepaged_alloc_hugepage > > Signed-off-by: Xiao Guangrong Acked-by: Kirill A. Shutemov > --- > mm/huge_memory.c |2 +- >

[PATCH 11/12] thp: use khugepaged_enabled to remove duplicate code

2012-08-13 Thread Xiao Guangrong
Use khugepaged_enabled to see whether thp is enabled Signed-off-by: Xiao Guangrong --- mm/huge_memory.c | 11 ++- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 6ddf671..6becf6c 100644 --- a/mm/huge_memory.c +++

[PATCH 12/12] thp: remove unnecessary set_recommended_min_free_kbytes

2012-08-13 Thread Xiao Guangrong
Since it is called in start_khugepaged Signed-off-by: Xiao Guangrong --- mm/huge_memory.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 6becf6c..6533956 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -225,9 +225,6

[PATCH 10/12] thp: remove khugepaged_loop

2012-08-13 Thread Xiao Guangrong
Merge khugepaged_loop into khugepaged Signed-off-by: Xiao Guangrong --- mm/huge_memory.c | 14 -- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 82f6cce..6ddf671 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@

[PATCH 09/12] thp: introduce khugepaged_prealloc_page and khugepaged_alloc_page

2012-08-13 Thread Xiao Guangrong
They are used to abstract the difference between NUMA enabled and NUMA disabled to make the code more readable Signed-off-by: Xiao Guangrong --- mm/huge_memory.c | 166 -- 1 files changed, 98 insertions(+), 68 deletions(-) diff --git

[PATCH 08/12] thp: release page in page pre-alloc path

2012-08-13 Thread Xiao Guangrong
If NUMA is enabled, we can release the page in the page pre-alloc operation, then the CONFIG_NUMA dependent code can be reduced Signed-off-by: Xiao Guangrong --- mm/huge_memory.c | 19 +++ 1 files changed, 7 insertions(+), 12 deletions(-) diff --git a/mm/huge_memory.c

[PATCH 07/12] thp: merge page pre-alloc in khugepaged_loop into khugepaged_do_scan

2012-08-13 Thread Xiao Guangrong
There are two pre-alloc operations in these two function, the different is: - it allows to sleep if page alloc fail in khugepaged_loop - it exits immediately if page alloc fail in khugepaged_do_scan Actually, in khugepaged_do_scan, we can allow the pre-alloc to sleep on the first failure, then

[PATCH 06/12] thp: remove some code depend on CONFIG_NUMA

2012-08-13 Thread Xiao Guangrong
If NUMA is disabled, hpage is used as page pre-alloc, so there are two cases for hpage: - it is !NULL, means the page is not consumed otherwise, - the page has been consumed If NUMA is enabled, hpage is just used as alloc-fail indicator which is not a real page, NULL means not fail triggered.

[PATCH 05/12] thp: remove wake_up_interruptible in the exit path

2012-08-13 Thread Xiao Guangrong
Add the check of kthread_should_stop() to the conditions which are used to wakeup on khugepaged_wait, then kthread_stop is enough to let the thread exit Signed-off-by: Xiao Guangrong --- mm/huge_memory.c | 35 +-- 1 files changed, 21 insertions(+), 14

[PATCH 04/12] thp: remove unnecessary khugepaged_thread check

2012-08-13 Thread Xiao Guangrong
Now, khugepaged creation and cancel are completely serial under the protection of khugepaged_mutex, it is impossible that many khugepaged entities are running Signed-off-by: Xiao Guangrong --- mm/huge_memory.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git

[PATCH 03/12] thp: move khugepaged_mutex out of khugepaged

2012-08-13 Thread Xiao Guangrong
Currently, hugepaged_mutex is used really complexly and hard to understand, actually, it is just used to serialize start_khugepaged and khugepaged for these reasons: - khugepaged_thread is shared between them - the thp disable path (echo never > transparent_hugepage/enabled) is nonblocking, so

[PATCH 02/12] thp: remove unnecessary check in start_khugepaged

2012-08-13 Thread Xiao Guangrong
The check is unnecessary since if mm_slot_cache or mm_slots_hash initialize failed, no sysfs interface will be created Signed-off-by: Xiao Guangrong --- mm/huge_memory.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index

[PATCH 01/12] thp: fix the count of THP_COLLAPSE_ALLOC

2012-08-13 Thread Xiao Guangrong
THP_COLLAPSE_ALLOC is double counted if NUMA is disabled since it has already been calculated in khugepaged_alloc_hugepage Signed-off-by: Xiao Guangrong --- mm/huge_memory.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index

[PATCH 00/12] thp: optimize use of khugepaged_mutex and dependence of CONFIG_NUMA

2012-08-13 Thread Xiao Guangrong
khugepaged_mutex is used very complexly and there are too many small pieces of the code depend on CONFIG_NUMA, they make the code very hardly understand This patchset try to optimize use of khugepaged_mutex and reduce dependence of CONFIG_NUMA, after the patchset, the code is more readable -- To

Re: [PATCH 09/10] ARM: rpc: Fix building RiscPC

2012-08-13 Thread Russell King - ARM Linux
On Fri, Aug 10, 2012 at 11:03:58AM +, Arnd Bergmann wrote: > On Thursday 09 August 2012, Russell King - ARM Linux wrote: > > On Wed, Aug 08, 2012 at 11:27:57PM +0200, Arnd Bergmann wrote: > > > ARMv3 support was removed in 357c9c1f07 "ARM: Remove support for ARMv3 > > > ARM610 and ARM710

Re: [PATCH] netvm: check for page == NULL when propogating the skb->pfmemalloc flag

2012-08-13 Thread Mel Gorman
Resending to correct Jeremy's address. On Wed, Aug 08, 2012 at 03:50:46PM -0700, David Miller wrote: > From: Mel Gorman > Date: Tue, 7 Aug 2012 09:55:55 +0100 > > > Commit [c48a11c7: netvm: propagate page->pfmemalloc to skb] is responsible > > for the following bug triggered by a xen network

[PATCH repost] kvm: drop parameter validation

2012-08-13 Thread Michael S. Tsirkin
We validate irq pin number when routing is setup, so code handling illegal irq # in pic and ioapic on each injection is never called. Drop it. Signed-off-by: Michael S. Tsirkin --- Reposting, applies without changes to kvm/next. arch/x86/kvm/i8259.c | 16 +++- virt/kvm/ioapic.c

Re: [PATCH 0/5] rbtree based interval tree as a prio_tree replacement

2012-08-13 Thread Michel Lespinasse
On Mon, Aug 13, 2012 at 1:20 AM, Peter Zijlstra wrote: > On Tue, 2012-08-07 at 00:25 -0700, Michel Lespinasse wrote: >> a faster worst-case complexity of O(k+log N) for stabbing queries in a >> well-balanced prio tree, vs O(k*log N) for interval trees (where k=number >> of matches, N=number of

Re: [PATCH v3 08/10] IPC: message queue copy feature introduced

2012-08-13 Thread Stanislav Kinsbursky
12.08.2012 13:48, Manfred Spraul пишет: I would keep it simple - unless there is a clear use case where "peek by id" is useful. Or - since MSG_COPY is linux specific anyway: What about storing the number of the message that should be returned in *msgp? Store it as "int64", just to avoid any

[RFC PATCH 1/2] block: embed bdevname in struct block_device

2012-08-13 Thread Yuanhan Liu
Embed block device name in struct block_device, thus we can replace the following code: char b[BDEVNAME_SIZE]; printk(KERN_XXX "...%s..\n", bdevname(bdev, b); with a much simpler and less stack usage version: printk(KERN_XXX "...%s..\n", bdev->bd_name); This is a RFC

[RFC PATCH 2/2] vfs: replace bdevname(bdev, b) with bdev->bd_name

2012-08-13 Thread Yuanhan Liu
Since we embeded block device name into struct block_device, we don't need call a function bdevname() to get the name any more. Here this patch replace all the code using bdevname() in vfs layer to bdev->bd_name. This patch servers as an example of using embeded block device name. It makes the

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