[PATCH 3/4] time: Avoid potential shift-overflow with large shift values

2012-08-21 Thread John Stultz
Andreas Schwab noted that the 1 tk-shift could overflow if the shift value was greater then 30, since 1 would be a 32bit long on 32bit architectures. This patch uses 1ULL instead to ensure we don't overflow on the shift. This issue was introduced by 1e75fa8be9fb61e1af46b5b3b176347a4c958ca1 Cc:

[PATCH 2/4] time: Fix casting issue in timekeeping_forward_now

2012-08-21 Thread John Stultz
From: Andreas Schwab sch...@linux-m68k.org arch_gettimeoffset returns a u32 value which when shifted by tk-shift can overflow. Cast it to u64 first. This issue was introduced with 1e75fa8be9fb61e1af46b5b3b176347a4c958ca1 Cc: Ingo Molnar mi...@kernel.org Cc: Prarit Bhargava pra...@redhat.com

[PATCH 4/4] time: Avoid making adjustments if we havne't accumulated anything

2012-08-21 Thread John Stultz
If update_wall_time() is called and the current offset isn't large enough to accumulate, avoid re-calling timekeeping_adjust which may change the clock freq and can cause 1ns inconsistencies with CLOCK_REALTIME_COARSE/CLOCK_MONOTONIC_COARSE. Cc: Ingo Molnar mi...@kernel.org Cc: Prarit Bhargava

Re: [PATCH v7 2/4] virtio_balloon: introduce migration primitives to balloon pages

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 03:01:37PM +0930, Rusty Russell wrote: On Wed, 15 Aug 2012 14:28:51 +0300, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Aug 15, 2012 at 12:16:51PM +0100, Mel Gorman wrote: I was thinking of exactly that page-mapping == balloon_mapping check. As I do not

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Michael S. Tsirkin
On Tue, Aug 21, 2012 at 03:14:54PM -0600, Alex Williamson wrote: On Tue, 2012-08-21 at 23:41 +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 02:06:19PM -0600, Alex Williamson wrote: On Tue, 2012-08-21 at 22:58 +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 01:29:06PM

Re: [PATCH 3/8] cpufreq: Add compatibility hack to powernow-k8

2012-08-21 Thread Thomas Renninger
On Thursday 26 July 2012 14:28:39 Andre Przywara wrote: From: Matthew Garrett m...@redhat.com cpufreq modules are often loaded from init scripts that assume that all recent AMD systems will use powernow-k8, so we should ensure that loading it triggers a load of acpi-cpufreq if the latter is

Re: [RFC PATCH 2/2] mm: Batch page_check_references in shrink_page_list sharing the same i_mmap_mutex

2012-08-21 Thread Tim Chen
On Tue, 2012-08-21 at 09:21 -0400, Matthew Wilcox wrote: On Mon, Aug 20, 2012 at 09:43:02AM -0700, Tim Chen wrote: In shrink_page_list, call to page_referenced_file will causes the acquisition/release of mapping-i_mmap_mutex for each page in the page list. However, it is very likely

Re: [PATCH 7/8] cpufreq: Remove support for hardware P-state chips from powernow-k8

2012-08-21 Thread Thomas Renninger
On Monday 20 August 2012 22:49:16 Rafael J. Wysocki wrote: On Monday, August 20, 2012, Andre Przywara wrote: On 08/05/2012 11:33 PM, Rafael J. Wysocki wrote: On Thursday, July 26, 2012, Andre Przywara wrote: ... If you insist, I can keep the code in powernow-k8, but it probably

Re: lockdep warning on rt_mutex_lock()

2012-08-21 Thread Fengguang Wu
On Tue, Aug 21, 2012 at 12:21:49PM -0700, Paul E. McKenney wrote: On Sat, Aug 18, 2012 at 12:59:08PM +0800, Fengguang Wu wrote: On Fri, Aug 17, 2012 at 07:44:37AM -0700, Paul E. McKenney wrote: On Fri, Aug 17, 2012 at 10:02:40PM +0800, Fengguang Wu wrote: On Fri, Aug 17, 2012 at

Re: [PATCH v3] pstore/ftrace: Convert to its own enable/disable debugfs knob

2012-08-21 Thread Steven Rostedt
On Mon, 2012-08-20 at 18:46 -0700, Anton Vorontsov wrote: On Wed, Jul 18, 2012 at 12:30:52PM -0700, Anton Vorontsov wrote: With this patch we no longer reuse function tracer infrastructure, now we register our own tracer back-end via a debugfs knob. It's a bit more code, but that is the

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-21 Thread Greg Thelen
On Tue, Aug 21 2012, Michal Hocko wrote: On Tue 21-08-12 13:22:09, Glauber Costa wrote: On 08/21/2012 11:54 AM, Michal Hocko wrote: [...] But maybe you have a good use case for that? Honestly, I don't. For my particular use case, this would be always on, and end of story. I was

Re: [PATCH 3/3] writeback: add dirty_ratio_time per bdi variable (NFS write performance)

2012-08-21 Thread Namjae Jeon
2012/8/21, Fengguang Wu fengguang...@intel.com: On Tue, Aug 21, 2012 at 03:00:13PM +0900, Namjae Jeon wrote: 2012/8/20, Fengguang Wu fengguang...@intel.com: On Mon, Aug 20, 2012 at 09:48:42AM +0900, Namjae Jeon wrote: 2012/8/19, Fengguang Wu fengguang...@intel.com: On Sat, Aug 18, 2012 at

Re: mm: kernel BUG at mm/memory.c:1230

2012-08-21 Thread Andrea Arcangeli
Hi everyone, On Thu, May 24, 2012 at 12:07:27PM -0700, Andrew Morton wrote: On Thu, 24 May 2012 20:27:34 +0200 Sasha Levin levinsasha...@gmail.com wrote: Hi all, During fuzzing with trinity inside a KVM tools guest, using latest linux-next, I've stumbled on the following: [

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-21 Thread Rafael Aquini
On Wed, Aug 22, 2012 at 03:07:41AM +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 05:45:56PM -0300, Rafael Aquini wrote: On Tue, Aug 21, 2012 at 10:30:31PM +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 04:23:58PM -0300, Rafael Aquini wrote: On Tue, Aug 21, 2012 at

Re: [PATCH v9 0/2] kvm: level irqfd support

2012-08-21 Thread Alex Williamson
On Wed, 2012-08-22 at 03:31 +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 01:28:57PM -0600, Alex Williamson wrote: Here's the much anticipated re-write of support for level irqfds. As Michael suggested, I've rolled the eoi/ack notification fd into KVM_IRQFD as a new mode. For

Re: [PATCH v9 1/2] kvm: Use a reserved IRQ source ID for irqfd

2012-08-21 Thread Alex Williamson
On Wed, 2012-08-22 at 03:41 +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 03:14:54PM -0600, Alex Williamson wrote: On Tue, 2012-08-21 at 23:41 +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 02:06:19PM -0600, Alex Williamson wrote: On Tue, 2012-08-21 at 22:58 +0300,

[PATCH] block: replace __getblk_slow misfix by grow_dev_page fix

2012-08-21 Thread Hugh Dickins
Jeff, Your commit 91f68c89d8f3 (block: fix infinite loop in __getblk_slow), already gone into 3.* stable, is not good. Could you and your testers please give this alternative a try - I think it should work, and have started it on a few days' memory load on 3.5, but not tried your case. But, see

Re: [PATCH v9 2/2] kvm: On Ack, De-assert Notify KVM_IRQFD extension

2012-08-21 Thread Alex Williamson
On Wed, 2012-08-22 at 03:14 +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 03:11:41PM -0600, Alex Williamson wrote: On Tue, 2012-08-21 at 23:37 +0300, Michael S. Tsirkin wrote: On Tue, Aug 21, 2012 at 01:29:14PM -0600, Alex Williamson wrote: + } + irq_rt =

Re: BUG: scheduling while atomic, under native_smp_prepare_cpus()

2012-08-21 Thread Michael Wang
On 08/22/2012 12:50 AM, Fengguang Wu wrote: On Mon, Aug 20, 2012 at 05:42:22PM +0800, Michael Wang wrote: On 08/20/2012 05:27 PM, Fengguang Wu wrote: Hi Michael, On Mon, Aug 20, 2012 at 05:20:35PM +0800, Michael Wang wrote: On 08/17/2012 09:49 PM, Fengguang Wu wrote: Hi, FengGuang

Re: [PATCH v3] pstore/ftrace: Convert to its own enable/disable debugfs knob

2012-08-21 Thread Anton Vorontsov
On Tue, Aug 21, 2012 at 09:07:19PM -0400, Steven Rostedt wrote: [...] I'm fine with it. I know there was some issues about recursion protection and I said that the function tracer now has its own protection where you don't need to worry about it. I was hoping that code would make it into 3.6,

Re: FW: [PATCH V5 0/5] clk: mmp: add clock framework for mmp

2012-08-21 Thread Chao Xie
-Original Message- From: Arnd Bergmann [mailto:a...@arndb.de] Sent: Monday, August 20, 2012 1:39 PM To: Chao Xie Cc: haojian.zhu...@gmail.com; mturque...@linaro.org; viresh.li...@gmail.com; s.ha...@pengutronix.de; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org;

Re: [PATCH v3] pstore/ftrace: Convert to its own enable/disable debugfs knob

2012-08-21 Thread Steven Rostedt
On Tue, 2012-08-21 at 19:10 -0700, Anton Vorontsov wrote: Running without any recursion protection is prone to weird lockups/reboots, and probably a good idea to have it on a production system. But recursion during tracing is still an evidence of some other bugs, right? At least the fact that

[PATCH v3 00/17] generic hashtable implementation

2012-08-21 Thread Sasha Levin
There are quite a few places in the kernel which implement a hashtable in a very similar way. Instead of having implementations of a hashtable all over the kernel, we can re-use the code. Since it looks like all the major issues we're addressed in the RFC phase and no major issues were raised

[PATCH v3 01/17] hashtable: introduce a small and naive hashtable

2012-08-21 Thread Sasha Levin
This hashtable implementation is using hlist buckets to provide a simple hashtable to prevent it from getting reimplemented all over the kernel. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- include/linux/hashtable.h | 291 + 1 files changed,

[PATCH v3 03/17] mm,ksm: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch ksm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the ksm module. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- mm/ksm.c | 33 +++-- 1 files changed, 15 insertions(+), 18 deletions(-) diff --git

[PATCH v3 04/17] workqueue: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch workqueues to use the new hashtable implementation. This reduces the amount of generic unrelated code in the workqueues. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- kernel/workqueue.c | 86 +--- 1 files changed, 15

[PATCH v3 05/17] mm/huge_memory: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch hugemem to use the new hashtable implementation. This reduces the amount of generic unrelated code in the hugemem. This also removes the dymanic allocation of the hash table. The size of the table is constant so there's no point in paying the price of an extra dereference when accessing

[PATCH v3 09/17] SUNRPC/cache: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch cache to use the new hashtable implementation. This reduces the amount of generic unrelated code in the cache implementation. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- net/sunrpc/cache.c | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-) diff

[PATCH v3 11/17] net,l2tp: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch l2tp to use the new hashtable implementation. This reduces the amount of generic unrelated code in l2tp. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- net/l2tp/l2tp_core.c| 134 +- net/l2tp/l2tp_core.h|8 ++--

[PATCH v3 13/17] lockd: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch lockd to use the new hashtable implementation. This reduces the amount of generic unrelated code in lockd. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- fs/lockd/svcsubs.c | 66 --- 1 files changed, 36 insertions(+), 30

[PATCH v3 14/17] net,rds: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch rds to use the new hashtable implementation. This reduces the amount of generic unrelated code in rds. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- net/rds/bind.c | 28 +- net/rds/connection.c | 102 ++ 2 files

[PATCH v3 16/17] tracing output: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch tracing to use the new hashtable implementation. This reduces the amount of generic unrelated code in the tracing module. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- kernel/trace/trace_output.c | 20 1 files changed, 8 insertions(+), 12 deletions(-)

[PATCH v3 06/17] tracepoint: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch tracepoints to use the new hashtable implementation. This reduces the amount of generic unrelated code in the tracepoints. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- kernel/tracepoint.c | 27 +++ 1 files changed, 11 insertions(+), 16 deletions(-)

[PATCH v3 08/17] block,elevator: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch elevator to use the new hashtable implementation. This reduces the amount of generic unrelated code in the elevator. This also removes the dymanic allocation of the hash table. The size of the table is constant so there's no point in paying the price of an extra dereference when

[PATCH v3 12/17] dm: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch dm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the dm. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- drivers/md/dm-snap.c | 24 --- drivers/md/persistent-data/dm-block-manager.c |

[PATCH v3 17/17] SUNRPC: use new hashtable implementation in auth

2012-08-21 Thread Sasha Levin
Switch sunrpc/auth.c to use the new hashtable implementation. This reduces the amount of generic unrelated code in auth.c. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- net/sunrpc/auth.c | 45 +++-- 1 files changed, 19 insertions(+), 26

[PATCH v3 15/17] openvswitch: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch openvswitch to use the new hashtable implementation. This reduces the amount of generic unrelated code in openvswitch. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- net/openvswitch/vport.c | 30 +- 1 files changed, 13 insertions(+), 17 deletions(-)

Re: linux-next: Tree for July 26 (uml)

2012-08-21 Thread Rusty Russell
...@xenotime.net Thanks, folded into David's original patch. When will this be fixed in linux-next? linux-next of 20120821 still fails. Should be in latest, ie. 20120822. Cheers, Rusty. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH v3 10/17] dlm: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch dlm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the dlm. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- fs/dlm/lowcomms.c | 47 +-- 1 files changed, 13 insertions(+), 34 deletions(-)

[PATCH v3 07/17] net,9p: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch 9p error table to use the new hashtable implementation. This reduces the amount of generic unrelated code in 9p. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- net/9p/error.c | 21 ++--- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git

[PATCH v3 02/17] userns: use new hashtable implementation

2012-08-21 Thread Sasha Levin
Switch to using the new hashtable implementation to store user structs. This reduces the amount of generic unrelated code in kernel/user.c. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- kernel/user.c | 33 + 1 files changed, 13 insertions(+), 20

Re: [PATCH] tty: move the async flags from the serial code into the tty includes

2012-08-21 Thread Huang Shijie
On Tue, Aug 21, 2012 at 9:35 PM, Alan Cox a...@lxorguk.ukuu.org.uk wrote: Huang - how about we add this patch first which moves the flags somewhere more sensible and then your helper function (and probably a few others) would merge cleanly ? Allen, Could you post a formal patch? I can

[PATCH] sched: unify the check on atomic sleeping in __might_sleep() and schedule_bug()

2012-08-21 Thread Michael Wang
From: Michael Wang wang...@linux.vnet.ibm.com Fengguang Wu w...@linux.intel.com has reported the bug: [0.043953] BUG: scheduling while atomic: swapper/0/1/0x1002 [0.044017] no locks held by swapper/0/1. [0.044692] Pid: 1, comm: swapper/0 Not tainted 3.6.0-rc1-00420-gb7aebb9 #34 [

Re: [PATCH 1/4] leds-lp5523: add channel name in the platform data

2012-08-21 Thread Bryan Wu
On Tue, Aug 21, 2012 at 5:03 PM, Kim, Milo milo@ti.com wrote: The name of each led channel is configurable. If the name is NULL, just use the channel id for making the channel name Signed-off-by: Milo(Woogyom) Kim milo@ti.com --- Documentation/leds/leds-lp5523.txt |7 +--

[PATCH v5 0/2] Add PPI support in tpm driver

2012-08-21 Thread xiaoyan . zhang
From: Xiaoyan Zhang xiaoyan.zh...@intel.com The Physical Presence Interface enables the OS and the BIOS to cooperate to provide a simple and straightforward platform user experience for administering the TPM without sacrificing security. Xiaoyan Zhang (2): Documentation: sysfs for Physical

[PATCH v5 1/2] Documentation: sysfs for Physical Presence Interface

2012-08-21 Thread xiaoyan . zhang
From: Xiaoyan Zhang xiaoyan.zh...@intel.com Signed-off-by: Xiaoyan Zhang xiaoyan.zh...@intel.com --- Documentation/ABI/testing/sysfs-driver-ppi | 70 1 files changed, 70 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-driver-ppi

[PATCH v5 2/2] driver: add PPI support in tpm driver

2012-08-21 Thread xiaoyan . zhang
From: Xiaoyan Zhang xiaoyan.zh...@intel.com The Physical Presence Interface enables the OS and the BIOS to cooperate and provides a simple and straightforward platform user experience for administering the TPM without sacrificing security. V2: separate the patch out in a separate source file,

Re: pci_get_subsys: GFP_KERNEL allocations with IRQs disabled

2012-08-21 Thread Fengguang Wu
Feng, I think it's pci_get_subsys() triggered this assert: /* * Oi! Can't be having __GFP_FS allocations with IRQs disabled. */ if (DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))) return; It's bisected down to this commit: commit

Re: [PATCH] pstore: add missed platform_device_unregister

2012-08-21 Thread Anton Vorontsov
On Tue, Aug 21, 2012 at 09:19:15AM -0700, Kees Cook wrote: [...] static void __exit ramoops_exit(void) { platform_driver_unregister(ramoops_driver); + platform_device_unregister(dummy); kfree(dummy_data); } module_exit(ramoops_exit); It looks OK to me. Unless

linux-next: New tree -- linux-pstore.git

2012-08-21 Thread Anton Vorontsov
Hello Stephen, Can you please add linux-pstore.git tree to the linux-next, the repository address is as follows: git://git.infradead.org/users/cbou/linux-pstore.git master This tree is dedicated to track pstore infrastructure fixes and enhancements, currently it holds these commits: Anton

[PATCH] apple-gmux: Fix port address calculation in gmux_pio_write32()

2012-08-21 Thread Seth Forshee
This function fails to add the start address of the gmux I/O range to the requested port address and thus writes to the wrong location. Signed-off-by: Seth Forshee seth.fors...@canonical.com --- drivers/platform/x86/apple-gmux.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] MIPS/mm: add compound tail page _mapcount when mapped

2012-08-21 Thread Jovi Zhang
From 3dc19ea2b535719d0b4177f17bbbff9cbf257b23 Mon Sep 17 00:00:00 2001 From: Jovi Zhang bookj...@gmail.com Date: Wed, 22 Aug 2012 10:34:08 +0800 Subject: [PATCH] MIPS/mm: add compound tail page _mapcount when mapped see commit b6999b191 which target for x86 mm/gup, let it align with mips

linux-next: manual merge of the rr tree with the mips tree

2012-08-21 Thread Stephen Rothwell
Hi Rusty, Today's linux-next merge of the rr tree got a conflict in arch/mips/kernel/module.c between commit c54de490a2e4 (MIPS: Module: Deal with malformed HI16/LO16 relocation sequences) from the mips tree and commit 9db0bbe072c8 (MIPS: Fix module.c build for 32 bit) from the rr tree. Just

Re: [PATCH] task_work: add a scheduling point in task_work_run()

2012-08-21 Thread Mimi Zohar
On Tue, 2012-08-21 at 23:32 +0200, Eric Dumazet wrote: On Tue, 2012-08-21 at 16:37 -0400, Mimi Zohar wrote: We're here, because fput() called schedule_work() to delay the last fput(). The execution needs to take place before the syscall returns to userspace. Need to read __schedule()...

[RFC PATCH] Re: Repeated fork() causes SLAB to grow without bound

2012-08-21 Thread Michel Lespinasse
On Mon, Aug 20, 2012 at 02:39:26AM -0700, Michel Lespinasse wrote: Instead of adding an atomic count for page references, we could limit the anon_vma stacking depth. In fork, we would only clone anon_vmas that have a low enough generation count. I think that's not great (adds a special case

[GIT PULL] target fixes for v3.6-rc3

2012-08-21 Thread Nicholas A. Bellinger
Hello Linus! The following are pending target fixes destined for v3.6-rc3. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master The executive summary includes: - Post-merge review comments for tcm_vhost (MST + nab) - Avoid debugging

Re: apparent regressions from TLB range flushing page set

2012-08-21 Thread Alex Shi
On 08/20/2012 10:12 PM, Jan Beulich wrote: Alex, without even having run that code yet, I think I see two bugs here, both of which I'm pretty sure I pointed out at least once during the review cycle: I was thought you have 'Agreed' for xen part code. :) For one, while TLB_FLUSH_ALL

Re: apparent regressions from TLB range flushing page set

2012-08-21 Thread Alex Shi
Second, the UV code doesn't flush the full range at all, it simply ignores its 'end' parameter (and hence also the all indicator). Sure. the following rfc patch try to fix it. untested since no hardware. = diff --git a/arch/x86/include/asm/uv/uv_bau.h

Re: [RFC PATCH] Re: Repeated fork() causes SLAB to grow without bound

2012-08-21 Thread Rik van Riel
On 08/21/2012 11:20 PM, Michel Lespinasse wrote: On Mon, Aug 20, 2012 at 02:39:26AM -0700, Michel Lespinasse wrote: Instead of adding an atomic count for page references, we could limit the anon_vma stacking depth. In fork, we would only clone anon_vmas that have a low enough generation count.

Re: [PATCH 1/1] xhci: Unconditionally switch ports to xHCI on powerup

2012-08-21 Thread Andiry Xu
On Wed, Aug 22, 2012 at 12:16 AM, Manoj Iyer manoj.i...@canonical.com wrote: Looks like in pci-quirks.c, we enter the do() while() loop, reach the end of extended capabilities and goto hc_init: label, skipping the switch. Probably moving the switch under the hc_init label might work? Currently

Re: [PATCH] memory-hotplug: fix a drain pcp bug when offline pages

2012-08-21 Thread Minchan Kim
Hello Xishi, On Tue, Aug 21, 2012 at 08:12:05PM +0800, qiuxishi wrote: From: Xishi Qiu qiuxi...@huawei.com When offline a section, we move all the free pages and pcp into MIGRATE_ISOLATE list first. start_isolate_page_range() set_migratetype_isolate()

Re: [PATCH v2 1/3] dmaengine: add TI EDMA DMA engine driver

2012-08-21 Thread Vinod Koul
On Tue, 2012-08-21 at 14:43 -0400, Matt Porter wrote: Add a DMA engine driver for the TI EDMA controller. This driver is implemented as a wrapper around the existing DaVinci private DMA implementation. This approach allows for incremental conversion of each peripheral driver to the DMA engine

Re: [PATCH 2/4] leds-lp5523: set the brightness to 0 forcely on removing the driver

2012-08-21 Thread Bryan Wu
On Tue, Aug 21, 2012 at 5:03 PM, Kim, Milo milo@ti.com wrote: Turning off the brightness of each channel is required when removing the driver. So use flush_work_sync() rather than cancel_work_sync() to wait for unhandled brightness works. Hmmm, I think we still should use cancel_work()

Re: [PATCH v2 3/3] spi: spi-davinci: convert to DMA engine API

2012-08-21 Thread Vinod Koul
On Tue, 2012-08-21 at 14:43 -0400, Matt Porter wrote: Removes use of the DaVinci EDMA private DMA API and replaces it with use of the DMA engine API. Signed-off-by: Matt Porter mpor...@ti.com --- + struct dma_slave_config dma_rx_conf = { + .direction =

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-21 Thread Xiao Guangrong
On 08/21/2012 11:06 PM, Andrea Arcangeli wrote: On Tue, Aug 21, 2012 at 05:46:39PM +0800, Xiao Guangrong wrote: There has a bug in set_pte_at_notify which always set the pte to the new page before release the old page in secondary MMU, at this time, the process will access on the new page, but

Re: O_DIRECT to md raid 6 is slow

2012-08-21 Thread Stan Hoeppner
On 8/21/2012 9:51 AM, Miquel van Smoorenburg wrote: On 08/20/2012 01:34 AM, Stan Hoeppner wrote: I'm glad you jumped in David. You made a critical statement of fact below which clears some things up. If you had stated it early on, before Miquel stole the thread and moved it to LKML proper,

Re: [PATCH] fbcon: fix race condition between console lock and cursor timer

2012-08-21 Thread Dave Airlie
On Tue, Aug 21, 2012 at 7:15 PM, Alan Cox a...@lxorguk.ukuu.org.uk wrote: So after much tracing with direct netconsole writes (printks under console_lock not so useful), I think I found the race. Direct netconsole write would be a useful patch to have mainline I think 8) Well I used a one

linux-next: manual merge of the fsnotify tree with Linus' tree

2012-08-21 Thread Stephen Rothwell
Hi Eric, Today's linux-next merge of the fsnotify tree got a conflict in kernel/audit_tree.c between commits a2140fc0cb03 (audit: fix refcounting in audit-tree) and b3e8692b4dde (audit: clean up refcounting in audit-tree) from Linus' tree and commit 3c183c233284 (fsnotify: pass group to

[RFC/PATCH] ARM: smp: Fix cpu_up() racing with sys_reboot

2012-08-21 Thread Stephen Boyd
Nothing stops a process from hotplugging in a CPU concurrently with a sys_reboot() call. In such a situation we could have ipi_cpu_stop() mark a cpu as 'offline' and _cpu_up() ignore the fact that the CPU is not really offline and call the CPU_UP_PREPARE notifier. When this happens stop_machine

[PATCH 1/2] mmc: core: Add a capability for disabling mmc cards

2012-08-21 Thread Doug Anderson
On some systems we need a way to disable MMC card support in a MMC/SD card slot. Add support in the core SD/MMC code to support this. Signed-off-by: Doug Anderson diand...@chromium.org Signed-off-by: Alim Akhtar alim.akh...@samsung.com --- drivers/mmc/core/core.c |2 +-

[PATCH 2/2] mmc: dw_mmc: Add a DISABLE_MMC quirk that sets the core mmc cap

2012-08-21 Thread Doug Anderson
On some systems we need a way to disable MMC card support in a MMC/SD card slot. Add support in the dw_mmc to support this. Signed-off-by: Doug Anderson diand...@chromium.org --- drivers/mmc/host/dw_mmc.c |3 +++ include/linux/mmc/dw_mmc.h |2 ++ 2 files changed, 5 insertions(+), 0

[git pull] drm fixes + one fbcon one

2012-08-21 Thread Dave Airlie
Hi Linus, Intel: edid fixes, power consumption fix, s/r fix, haswell fix radeon: BIOS loading fixes for UEFI and Thunderbolt machines, better MSAA validation, lockup timeout fixes, modesetting fixes one udl dpms fix, one vmwgfx fix, couple of trivial core changes There is an export added to

Re: ext4 write performance regression in 3.6-rc1 on RAID0/5

2012-08-21 Thread Shaohua Li
On 8/22/12 11:57 AM, Yuanhan Liu wrote: On Fri, Aug 17, 2012 at 10:25:26PM +0800, Fengguang Wu wrote: [CC md list] On Fri, Aug 17, 2012 at 09:40:39AM -0400, Theodore Ts'o wrote: On Fri, Aug 17, 2012 at 02:09:15PM +0800, Fengguang Wu wrote: Ted, I find ext4 write performance dropped by

Regression associated with commit c8628155ece3 - tcp: reduce out_of_order memory use

2012-08-21 Thread Larry Finger
Hi, The commit entitled tcp: reduce out_of_order memory use turns out to cause problems with a number of USB drivers. The first one called to my attention was for staging/r8712u. For this driver, there are problems with SSL communications as reported in

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-21 Thread Hugh Dickins
On Wed, 22 Aug 2012, Xiao Guangrong wrote: On 08/21/2012 11:06 PM, Andrea Arcangeli wrote: The KSM usage of it looks safe because it will only establish readonly ptes with it. Hmm, in KSM code, i found this code in replace_page: set_pte_at_notify(mm, addr, ptep, mk_pte(kpage,

Re: [PATCH] drivers/dma/sirf-dma.c: fix usage of devm functions

2012-08-21 Thread Vinod Koul
On Sat, 2012-08-04 at 10:35 +0200, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Fix some problems with the use of devm_ functions. Applied, thanks -- ~Vinod -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH v2 1/4] pinctrl: add samsung pinctrl and gpiolib driver

2012-08-21 Thread Thomas Abraham
Hi Linus, Thanks for your time to review the Samsung pinctrl driver patches. I have inlined the reply to your comments. On 21 August 2012 16:55, Linus Walleij linus.wall...@linaro.org wrote: On Wed, Aug 15, 2012 at 9:57 PM, Thomas Abraham thomas.abra...@linaro.org wrote: Add a new device

RE: linux-next: Tree for July 17 (mfd/tps65217.c)

2012-08-21 Thread AnilKumar, Chimata
-next of 20120803. This will be fixed with this patch https://patchwork.kernel.org/patch/1220151/ Today, I will submit v2 for this This build still fails in linux-next 20120821. Could you please push this patch ASAP? http://www.spinics.net/lists/linux-omap/msg75336.html Thanks

Re: Regression associated with commit c8628155ece3 - tcp: reduce out_of_order memory use

2012-08-21 Thread David Miller
From: Larry Finger larry.fin...@lwfinger.net Date: Tue, 21 Aug 2012 23:07:46 -0500 I find it hard to understand why this patch should cause these effects; however, I have verified that a kernel generated from git checkout e86b2919 works fine. This commit is immediately before the patch in

Re: [PATCH 2/5] drivers/dma/amba-pl08x.c: fix error return code

2012-08-21 Thread Vinod Koul
On Tue, 2012-08-14 at 14:58 +0200, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Convert a 0 error return code to a negative one, as returned elsewhere in the function. Applied, thanks -- ~Vinod -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

linux-next: manual merge of the rcu tree with the tip tree

2012-08-21 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the rcu tree got a conflict in kernel/rcutree_plugin.h between commit 62ab7072476a (rcu: Use smp_hotplug_thread facility for RCUs per-CPU kthread) from the tip tree and commit 8732d57a8ce0 (rcu: Provide OOM handler to motivate lazy RCU callbacks) from the rcu

linux-next: manual merge of the rcu tree with the tip tree

2012-08-21 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the rcu tree got a conflict in kernel/rcutree.h between commit 62ab7072476a (rcu: Use smp_hotplug_thread facility for RCUs per-CPU kthread) from the tip tree and commit daa5d37ff51b (rcu: Prevent force_quiescent_state() memory contention) from the rcu tree.

Re: [PATCH] crypto: twofish - add x86_64/avx assembler implementation

2012-08-21 Thread Jussi Kivilinna
Quoting Borislav Petkov b...@alien8.de: Here you go: [ 52.282208] [ 52.282208] testing speed of async ecb(twofish) encryption Thanks! Looks that encryption lost ~0.4% while decryption gained ~1.8%. For 256 byte test, it's still slightly slower than twofish-3way (~3%). For 1k and 8k

Re: [PATCH 1/2] mmc: core: Add a capability for disabling mmc cards

2012-08-21 Thread Jaehoon Chung
Hi Doug, I didn't know what purpose is. Why need to add the MMC_CAP2_NO_MMC? If card is SD or SDIO, mmc_attach_mmc(host) should not be entered. Could you explain to me in more detail? Best Regards, Jaehoon Chung On 08/22/2012 01:05 PM, Doug Anderson wrote: On some systems we need a way to

Re: [PATCH v2 2/4] pinctrl: add exynos4210 specific extensions for samsung pinctrl driver

2012-08-21 Thread Thomas Abraham
On 21 August 2012 17:32, Linus Walleij linus.wall...@linaro.org wrote: On Wed, Aug 15, 2012 at 9:57 PM, Thomas Abraham thomas.abra...@linaro.org wrote: Add information about the Exynos4210 pin banks and driver data which is used by the Samsung pinctrl driver. In addition to this, the support

Re: [PATCH v2 3/4] gpio: exynos4: skip gpiolib registration if pinctrl driver is used

2012-08-21 Thread Thomas Abraham
On 21 August 2012 17:35, Linus Walleij linus.wall...@linaro.org wrote: On Wed, Aug 15, 2012 at 9:57 PM, Thomas Abraham thomas.abra...@linaro.org wrote: Pinctrl driver, when enabled, registers all the gpio pins and hence the registration of gpio pins by this driver can be skipped. Acked-by:

Re: [PATCH v2 4/4] ARM: EXYNOS: skip wakeup interrupt setup if pinctrl driver is used

2012-08-21 Thread Thomas Abraham
On 21 August 2012 17:34, Linus Walleij linus.wall...@linaro.org wrote: On Wed, Aug 15, 2012 at 9:57 PM, Thomas Abraham thomas.abra...@linaro.org wrote: Pinctrl driver includes support for configuring the external wakeup interrupts. On exynos platforms that use pinctrl driver, the setup of

Re: [ 04/16] drm/i915: correctly order the ring init sequence

2012-08-21 Thread Herton Ronaldo Krzesinski
On Tue, Aug 21, 2012 at 06:55:30PM +0200, Daniel Vetter wrote: On Tue, Aug 21, 2012 at 3:11 PM, Herton Ronaldo Krzesinski herton.krzesin...@canonical.com wrote: On Tue, Aug 21, 2012 at 08:42:35AM +0200, Daniel Vetter wrote: On Tue, Aug 21, 2012 at 7:13 AM, Herton Ronaldo Krzesinski

Re: [PATCH v2 1/4] pinctrl: add samsung pinctrl and gpiolib driver

2012-08-21 Thread Thomas Abraham
On 22 August 2012 03:08, Stephen Warren swar...@wwwdotorg.org wrote: On 08/21/2012 05:25 AM, Linus Walleij wrote: On Wed, Aug 15, 2012 at 9:57 PM, Thomas Abraham thomas.abra...@linaro.org wrote: Add a new device tree enabled pinctrl and gpiolib driver for Samsung SoC's. ... + The child

Re: [PATCH 3/4] leds-lp5523: change the return type of lp5523_set_mode()

2012-08-21 Thread Bryan Wu
On Tue, Aug 21, 2012 at 5:03 PM, Kim, Milo milo@ti.com wrote: The return value of this function is not handled any place, so make it as void type. And three if-statements are replaced with switch-statements. This one looks fine with me. I will merge it after you rework on first 2 patches

Re: [PATCH 4/4] leds-lp5523: minor code style fixes

2012-08-21 Thread Bryan Wu
On Tue, Aug 21, 2012 at 5:04 PM, Kim, Milo milo@ti.com wrote: (a) use LP5523_ENABLE rather than magic number 0x40 (b) use min_t() in lp5523_mux_parse() (c) skip while loop and just return if invalid command Thanks for this cleanup. I will merge it later. -Bryan Signed-off-by:

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

2012-08-21 Thread Kuninori Morimoto
Hi Linus W After merging the gpio-lw tree, today's linux-next build (x86_64 allmodconfig) failed like this: ERROR: irq_set_chip_and_handler_name [drivers/gpio/gpio-pcf857x.ko] undefined! ERROR: dummy_irq_chip [drivers/gpio/gpio-pcf857x.ko] undefined! Thanks, I've

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

2012-08-21 Thread Paul E. McKenney
On Wed, Aug 22, 2012 at 02:27:22PM +1000, Stephen Rothwell wrote: Hi Paul, Today's linux-next merge of the rcu tree got a conflict in kernel/rcutree_plugin.h between commit 62ab7072476a (rcu: Use smp_hotplug_thread facility for RCUs per-CPU kthread) from the tip tree and commit 8732d57a8ce0

Power: s3c_adc_battery.c backup battery query

2012-08-21 Thread anish kumar
Hello, I am trying to write a generic batttery driver using IIO and I have one some below questions: Why do we have the representation of backup battery in this driver(s3c_adc_battery.c) and when does the s3c_adc_backup_bat_get_property function gets called? As I understand, it is as this:It is

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

2012-08-21 Thread Paul E. McKenney
On Wed, Aug 22, 2012 at 02:27:35PM +1000, Stephen Rothwell wrote: Hi Paul, Today's linux-next merge of the rcu tree got a conflict in kernel/rcutree.h between commit 62ab7072476a (rcu: Use smp_hotplug_thread facility for RCUs per-CPU kthread) from the tip tree and commit daa5d37ff51b (rcu:

Re: Regression associated with commit c8628155ece3 - tcp: reduce out_of_order memory use

2012-08-21 Thread Eric Dumazet
On Tue, 2012-08-21 at 23:07 -0500, Larry Finger wrote: Hi, The commit entitled tcp: reduce out_of_order memory use turns out to cause problems with a number of USB drivers. The first one called to my attention was for staging/r8712u. For this driver, there are problems with SSL

Re: linux-next: New tree -- linux-pstore.git

2012-08-21 Thread Kees Cook
On Tue, Aug 21, 2012 at 7:50 PM, Anton Vorontsov cbouatmai...@gmail.com wrote: Hello Stephen, Can you please add linux-pstore.git tree to the linux-next, the repository address is as follows: git://git.infradead.org/users/cbou/linux-pstore.git master This tree is dedicated to track

Re: [PATCH] drivers/dma/sirf-dma.c: fix usage of devm functions

2012-08-21 Thread Barry Song
2012/8/22 Vinod Koul vinod.k...@linux.intel.com: On Sat, 2012-08-04 at 10:35 +0200, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Fix some problems with the use of devm_ functions. Applied, thanks the git log drivers/dma/sirf-dma.c: fix usage of devm functions should be fixed.

Re: [PATCH] task_work: add a scheduling point in task_work_run()

2012-08-21 Thread Michael Wang
Hi, Eric On 08/21/2012 09:05 PM, Eric Dumazet wrote: From: Eric Dumazet eduma...@google.com It seems commit 4a9d4b02 (switch fput to task_work_add) reintroduced the problem addressed in commit 944be0b2 (close_files(): add scheduling point) If a server process with a lot of files (say 2

Re: [PATCH] drivers/dma/sirf-dma.c: fix usage of devm functions

2012-08-21 Thread Julia Lawall
On Wed, 22 Aug 2012, Barry Song wrote: 2012/8/22 Vinod Koul vinod.k...@linux.intel.com: On Sat, 2012-08-04 at 10:35 +0200, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr Fix some problems with the use of devm_ functions. Applied, thanks the git log drivers/dma/sirf-dma.c: fix

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