[PATCH, v2 04/13] mm/m32r: prepare for killing free_all_bootmem_node()

2013-05-29 Thread Jiang Liu
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu Cc: Hirokazu Takata Cc: linux-m...@ml.linux-m32r.org Cc: linux-m32r...@ml.linux-m32r.org Cc: linux-kernel@vger.kernel.org --- arch/m32r/mm/init.c | 17 - 1 file changed, 4

[PATCH, v2 02/13] mm/AVR32: prepare for killing free_all_bootmem_node()

2013-05-29 Thread Jiang Liu
Prepare for killing free_all_bootmem_node() by using free_all_bootmem() instead. Signed-off-by: Jiang Liu Cc: Haavard Skinnemoen Cc: Hans-Christian Egtvedt Cc: linux-kernel@vger.kernel.org --- arch/avr32/mm/init.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-)

[PATCH, v2 13/13] mm/m68k: fix build warning of unused variable

2013-05-29 Thread Jiang Liu
Fix build warning of unused variable: arch/m68k/mm/init.c: In function 'mem_init': arch/m68k/mm/init.c:151:6: warning: unused variable 'i' [-Wunused-variable] Signed-off-by: Jiang Liu Cc: Geert Uytterhoeven Cc: Greg Ungerer Cc: Thadeu Lima de Souza Cascardo Cc: linux-m...@lists.linux-m68k.org

[PATCH, v2 09/13] mm/PPC: prepare for killing free_all_bootmem_node()

2013-05-29 Thread Jiang Liu
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Alexander Graf Cc: "Suzuki K. Poulose" Cc: linuxppc-...@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org --- arch/powerpc/mm/mem.c | 16

[PATCH, v2 10/13] mm/SH: prepare for killing free_all_bootmem_node()

2013-05-29 Thread Jiang Liu
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu Cc: Paul Mundt Cc: Wen Congyang Cc: Tang Chen Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/sh/mm/init.c | 16 1 file changed, 4 insertions(+), 12

[PATCH, v2 11/13] mm: kill free_all_bootmem_node()

2013-05-29 Thread Jiang Liu
Now nobody makes use of free_all_bootmem_node(), kill it. Signed-off-by: Jiang Liu Cc: Andrew Morton Cc: Johannes Weiner Cc: "David S. Miller" Cc: Yinghai Lu Cc: Tejun Heo Cc: linux-kernel@vger.kernel.org Cc: linux...@kvack.org --- include/linux/bootmem.h | 1 - mm/bootmem.c|

[PATCH, v2 08/13] mm/PARISC: prepare for killing free_all_bootmem_node()

2013-05-29 Thread Jiang Liu
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Michal Hocko Cc: David Rientjes Cc: linux-par...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/parisc/mm/init.c | 12 +--- 1

[PATCH, v2 05/13] mm/m68k: prepare for killing free_all_bootmem_node()

2013-05-29 Thread Jiang Liu
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu Cc: Geert Uytterhoeven Cc: Greg Ungerer Cc: linux-m...@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org --- arch/m68k/mm/init.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH] don't use task->pid/tgid in same_thread_group/has_group_leader_pid

2013-05-29 Thread Oleg Nesterov
task_struct->pid/tgid should go away. 1. Change same_thread_group() to use task->signal for comparison. 2. Change has_group_leader_pid(task) to compare task_pid(task) with signal->leader_pid. Signed-off-by: Oleg Nesterov --- include/linux/sched.h |8 1 files changed, 4

Re: [PATCH v2] pwm: renesas-tpu: Add missing pwmchip_remove() call in tpu_remove()

2013-05-29 Thread Laurent Pinchart
Hi Thierry, On Sunday 26 May 2013 11:18:24 Thierry Reding wrote: > On Sat, May 25, 2013 at 03:42:42PM +0200, Laurent Pinchart wrote: > > On Thursday 23 May 2013 21:12:17 Thierry Reding wrote: > > > On Thu, May 23, 2013 at 10:39:34AM +0900, Simon Horman wrote: > > > > On Mon, May 20, 2013 at

Re: [PATCH v6 net-next 2/5] net: implement support for low latency socket polling

2013-05-29 Thread yaniv saar
Hi Eliezer, (If I'm too late then a future note...) Why make polling a system-wide configuration? Wouldn't it make more sense to implement a sock option? An even better solution might be aggregation/combination of both types of configurations. -- Yaniv Sa'ar On Wed, May 29, 2013 at 5:14 PM, Or

Re: securebits: add exec_inherit flag to prevent changes to process credentials during execve

2013-05-29 Thread Serge Hallyn
Quoting Stephen Mell (sub.atomic.fus...@gmail.com): > From: Stephen Mell > > Currently, it is nearly impossible to give a capability to a non-root > user that will stick around after the first execve. By design capabilities are re-calculated upon every execve. The point here is that you're not

Re: [PATCH] mm: Fix the TLB range flushed when __tlb_remove_page() runs out of slots

2013-05-29 Thread Vineet Gupta
On 05/29/2013 07:59 PM, Catalin Marinas wrote: > On Wed, May 29, 2013 at 03:08:37PM +0100, Vineet Gupta wrote: >> On 05/29/2013 07:33 PM, Catalin Marinas wrote: >>> On Wed, May 29, 2013 at 01:56:13PM +0100, Vineet Gupta wrote: zap_pte_range loops from @addr to @end. In the middle, if it runs

Re: [PATCH] mm: Fix the TLB range flushed when __tlb_remove_page() runs out of slots

2013-05-29 Thread Catalin Marinas
On Wed, May 29, 2013 at 03:08:37PM +0100, Vineet Gupta wrote: > On 05/29/2013 07:33 PM, Catalin Marinas wrote: > > On Wed, May 29, 2013 at 01:56:13PM +0100, Vineet Gupta wrote: > >> zap_pte_range loops from @addr to @end. In the middle, if it runs out of > >> batching slots, TLB entries needs to

Re: [PATCH] usb: xhci: Disable runtime PM suspend for quirky controllers.

2013-05-29 Thread Alan Stern
On Tue, 28 May 2013, Julius Werner wrote: > The policy we want to achieve is to disable runtime PM iff there is a > device connected that doesn't have persist_enabled or a reset_resume() > handler and whose parent/root hub resets on resume, right? So couldn't Probably just root hub, not parent.

Re: [PATCH] HID: hid-sensor-hub: do not process feature reports in raw_event

2013-05-29 Thread Jiri Kosina
On Wed, 10 Apr 2013, Srinivas Pandruvada wrote: > I don't know if this should be fixed in client drivers since other drivers may > have this issue. Agreed. Srinivas, how about the patch below, could you please test it in your scenario to see whether it actually fixes the issue? Thanks. diff

Re: [PATCH v6 net-next 2/5] net: implement support for low latency socket polling

2013-05-29 Thread Or Gerlitz
On Wed, May 29, 2013 at 9:39 AM, Eliezer Tamir wrote: > Adds a new ndo_ll_poll method and the code that supports and uses it. > This method can be used by low latency applications to busy poll Ethernet > device queues directly from the socket code. The value of sysctl_net_ll_poll > controls how

[PATCH v6, part4 05/41] score: normalize global variables exported by vmlinux.lds

2013-05-29 Thread Jiang Liu
Generate mandatory global variables _sdata in file vmlinux.lds. Signed-off-by: Jiang Liu Cc: Chen Liqin Cc: Lennox Wu Cc: linux-kernel@vger.kernel.org --- arch/score/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/score/kernel/vmlinux.lds.S

[PATCH v6, part4 09/41] mm: use totalram_pages instead of num_physpages at runtime

2013-05-29 Thread Jiang Liu
The global variable num_physpages is scheduled to be removed, so use totalram_pages instead of num_physpages at runtime. Signed-off-by: Jiang Liu Cc: Miklos Szeredi Cc: "David S. Miller" Cc: Alexey Kuznetsov Cc: James Morris Cc: Hideaki YOSHIFUJI Cc: Patrick McHardy Cc:

Re: [PATCH] mm: Fix the TLB range flushed when __tlb_remove_page() runs out of slots

2013-05-29 Thread Vineet Gupta
On 05/29/2013 07:33 PM, Catalin Marinas wrote: > On Wed, May 29, 2013 at 01:56:13PM +0100, Vineet Gupta wrote: >> zap_pte_range loops from @addr to @end. In the middle, if it runs out of >> batching slots, TLB entries needs to be flushed for @start to @interim, >> NOT @interim to @end. >> >> Since

[PATCH v6, part4 17/41] mm/c6x: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-...@linux-c6x.org Cc: linux-kernel@vger.kernel.org --- arch/c6x/mm/init.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git

[PATCH v6, part4 14/41] mm/ARM64: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm64/mm/init.c | 48 +++-

[PATCH v6, part4 18/41] mm/cris: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Acked-by: Jesper Nilsson Cc: Mikael Starvik Cc: linux-cris-ker...@axis.com Cc: linux-kernel@vger.kernel.org --- arch/cris/mm/init.c | 33 ++--- 1 file changed, 2 insertions(+), 31

[PATCH v6, part4 22/41] mm/IA64: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Tony Luck Cc: Fenghua Yu Cc: Andrew Morton Cc: Zhang Yanfei Cc: linux-i...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/ia64/mm/contig.c| 11 --- arch/ia64/mm/discontig.c | 3

[PATCH v6, part4 20/41] mm/h8300: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Yoshinori Sato Cc: Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org --- arch/h8300/mm/init.c | 36 1 file changed, 8 insertions(+), 28 deletions(-) diff --git

Re: [PATCH 4/5] USB: lpc32xx: USB_LPC32XX need not depend on USB_PHY

2013-05-29 Thread Roland Stigge
On 05/29/2013 01:43 PM, Roger Quadros wrote: > As the USB PHY drivers no longer depend on USB_PHY but > select it if needed, the controller drivers need not > depend on USB_PHY. They can safely select the necessary > PHY driver i.e. USB_ISP1301 in this case. > > Signed-off-by: Roger Quadros

[PATCH v6, part4 24/41] mm/m68k: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Acked-by: Greg Ungerer Cc: Geert Uytterhoeven Cc: linux-m...@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org --- arch/m68k/mm/init.c | 31 ++- 1 file changed, 2

[PATCH v6, part4 25/41] mm/metag: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu --- arch/metag/mm/init.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/metag/mm/init.c b/arch/metag/mm/init.c index ce81d7c..e0862b7 100644 --- a/arch/metag/mm/init.c +++

[PATCH v6, part4 30/41] mm/PARISC: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Thomas Gleixner Cc: Michal Hocko Cc: David Rientjes Cc: linux-par...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/parisc/mm/init.c | 47

[PATCH v6, part4 29/41] mm/openrisc: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Acked-by: Jonas Bonn Cc: David Howells Cc: Arnd Bergmann Cc: li...@lists.openrisc.net Cc: linux-kernel@vger.kernel.org --- arch/openrisc/mm/init.c | 44 1 file

[PATCH v6, part4 26/41] mm/microblaze: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Michal Simek Cc: microblaze-ucli...@itee.uq.edu.au Cc: linux-kernel@vger.kernel.org --- arch/microblaze/mm/init.c | 51 ++- 1 file changed, 6 insertions(+), 45

[PATCH v6, part4 15/41] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Acked-by: Hans-Christian Egtvedt Cc: Haavard Skinnemoen Cc: linux-kernel@vger.kernel.org --- arch/avr32/mm/init.c | 29 - 1 file changed, 4 insertions(+), 25 deletions(-) diff

[PATCH v6, part4 11/41] mm/alpha: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: David Howells Cc: linux-al...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/alpha/mm/init.c | 32 ++--

[PATCH v6, part4 16/41] mm/blackfin: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Mike Frysinger Cc: Bob Liu Cc: uclinux-dist-de...@blackfin.uclinux.org Cc: linux-kernel@vger.kernel.org --- arch/blackfin/mm/init.c | 38 ++ 1 file changed, 6

[PATCH v6, part4 08/41] mm: introduce helper function mem_init_print_info() to simplify mem_init()

2013-05-29 Thread Jiang Liu
Introduce helper function mem_init_print_info() to simplify mem_init() across different architectures, which also unifies the format and information printed. Function mem_init_print_info() calculates memory statistics information without walking each page, so it should be a little faster on some

[PATCH v6, part4 07/41] UML: normalize global variables exported by vmlinux.lds

2013-05-29 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. 1) Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. 2) Export mandatory global variables __bss_stop. 3)

[PATCH v6, part4 03/41] c6x: normalize global variables exported by vmlinux.lds

2013-05-29 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. This patch also fixes possible bugs due to current

[PATCH v6, part4 06/41] tile: normalize global variables exported by vmlinux.lds

2013-05-29 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. 1) Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. 2) Export mandatory global variables __init_begin and

[PATCH v6, part4 01/41] vmlinux.lds: add comments for global variables and clean up useless declarations

2013-05-29 Thread Jiang Liu
This patch documents global variables exported from vmlinux.lds. 1) Add comments about usage guidelines for global variables exported from vmlinux.lds.S. 2) Remove unused __initdata_begin[] and __initdata_end[]. Signed-off-by: Jiang Liu Acked-by: Arnd Bergmann Cc: Arnd Bergmann Cc:

[PATCH v6, part4 00/41] Simplify mem_init() implementations and kill num_physpages

2013-05-29 Thread Jiang Liu
This patchset applies to git://git.cmpxchg.org/linux-mmotm.git v3.10-rc2-mmotm-2013-05-22-16-40 You may access the patch seriea at: git://github.com/jiangliu/linux.git mem_init_v6 Great thanks to Vineet Gupta for testing on ARC. The original goal of this patchset is to fix the bug

[PATCH v6, part4 31/41] mm/ppc: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-...@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org --- arch/powerpc/mm/mem.c | 56 +++ 1 file

[PATCH v6, part4 33/41] mm/score: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chen Liqin Cc: Lennox Wu Cc: linux-kernel@vger.kernel.org --- arch/score/mm/init.c | 26 ++ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/arch/score/mm/init.c

[PATCH v6, part4 35/41] mm/SPARC: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Acked-by: Sam Ravnborg Cc: "David S. Miller" Cc: Yasuaki Ishimatsu Cc: Tang Chen Cc: sparcli...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/sparc/kernel/leon_smp.c | 3 ---

Re: [PATCH] mm: Fix the TLB range flushed when __tlb_remove_page() runs out of slots

2013-05-29 Thread Catalin Marinas
On Wed, May 29, 2013 at 01:56:13PM +0100, Vineet Gupta wrote: > zap_pte_range loops from @addr to @end. In the middle, if it runs out of > batching slots, TLB entries needs to be flushed for @start to @interim, > NOT @interim to @end. > > Since ARC port doesn't use page free batching I can't test

[PATCH v6, part4 36/41] mm/tile: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Acked-by: Chris Metcalf Cc: Bjorn Helgaas Cc: "David S. Miller" Cc: Wen Congyang Cc: linux-kernel@vger.kernel.org --- arch/tile/kernel/setup.c | 16 arch/tile/mm/init.c | 15

Re: [PATCH v1 1/3] PM / AVS: SmartReflex: disable errgen before vpbound disable

2013-05-29 Thread Kevin Hilman
Andrii Tseglytskyi writes: [...] >>> Signed-off-by: Vincent Bour >>> Signed-off-by: Leonardo Affortunati >>> Signed-off-by: Nishanth Menon >>> Signed-off-by: Andrii.Tseglytskyi >> From Documentation/SubbmittingPatches: >> >> "If a person was not directly involved in the preparation or

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-29 Thread Xiao Guangrong
On 05/29/2013 09:32 PM, Marcelo Tosatti wrote: > On Wed, May 29, 2013 at 09:09:09PM +0800, Xiao Guangrong wrote: >> This information is I replied Gleb in his mail where he raced a question that >> why "collapse tlb flush is needed": >> >> == >> It seems no. >> Since we have reloaded mmu before

Re: [PATCH v6 net-next 2/5] net: implement support for low latency socket polling

2013-05-29 Thread Eliezer Tamir
On 29/05/2013 16:37, Eric Dumazet wrote: On Wed, 2013-05-29 at 09:39 +0300, Eliezer Tamir wrote: +static inline unsigned long ll_end_time(void) +{ + return TSC_MHZ * ACCESS_ONCE(sysctl_net_ll_poll) + get_cycles(); +} This can overflow. Multiply is giving 32bits, as tsc_khz is an int,

[PATCH v6, part4 39/41] mm/x86: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Andreas Herrmann Cc: Tang Chen Cc: Wen Congyang Cc: Jianguo Wu Cc: linux-kernel@vger.kernel.org ---

[PATCH v6, part4 40/41] mm/xtensa: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Chris Zankel Cc: Max Filippov Cc: Geert Uytterhoeven Cc: linux-xte...@linux-xtensa.org Cc: linux-kernel@vger.kernel.org --- arch/xtensa/mm/init.c | 27 ++- 1 file changed, 2

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-29 Thread Xiao Guangrong
On 05/29/2013 09:21 PM, Marcelo Tosatti wrote: > On Wed, May 29, 2013 at 09:09:09PM +0800, Xiao Guangrong wrote: >> On 05/29/2013 07:11 PM, Marcelo Tosatti wrote: >>> On Tue, May 28, 2013 at 11:02:09PM +0800, Xiao Guangrong wrote: On 05/28/2013 08:18 AM, Marcelo Tosatti wrote: > On Mon,

[PATCH v6, part4 41/41] mm: kill global variable num_physpages

2013-05-29 Thread Jiang Liu
Now all references to num_physpages have been removed, so kill it. Signed-off-by: Jiang Liu Cc: Mel Gorman Cc: Michel Lespinasse Cc: Rik van Riel Cc: Jiang Liu Cc: Hugh Dickins Cc: David Rientjes Cc: Al Viro Cc: Konstantin Khlebnikov Cc: linux...@kvack.org Cc:

[PATCH v6, part4 37/41] mm/um: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Jeff Dike Cc: Richard Weinberger Cc: user-mode-linux-de...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org --- arch/um/kernel/mem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH v6, part4 38/41] mm/unicore32: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Guan Xuetao Cc: Michal Hocko Cc: David Rientjes Cc: linux-kernel@vger.kernel.org --- arch/unicore32/mm/init.c | 49 ++-- 1 file changed, 2 insertions(+), 47

[PATCH v6, part4 34/41] mm/SH: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Paul Mundt Cc: Wen Congyang Cc: Tang Chen Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/sh/mm/init.c | 25 - 1 file changed, 4 insertions(+), 21

[PATCH v6, part4 28/41] mm/mn10300: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: David Howells Cc: Koichi Yasutake Cc: linux-am33-l...@redhat.com Cc: linux-kernel@vger.kernel.org --- arch/mn10300/mm/init.c | 26 ++ 1 file changed, 2 insertions(+), 24

[PATCH v6, part4 32/41] mm/s390: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/s390/mm/init.c | 17 ++--- 1 file changed, 2

[PATCH v6, part4 23/41] mm/m32r: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Hirokazu Takata Cc: linux-m...@ml.linux-m32r.org Cc: linux-m32r...@ml.linux-m32r.org Cc: linux-kernel@vger.kernel.org --- arch/m32r/mm/discontig.c | 6 +- arch/m32r/mm/init.c | 49

[PATCH v6, part4 27/41] mm/MIPS: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Ralf Baechle Cc: David Daney Cc: Arnd Bergmann Cc: Jiri Kosina Cc: John Crispin Cc: Greg Kroah-Hartman Cc: Minchan Kim Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org ---

[PATCH v6, part4 21/41] mm/hexagon: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Richard Kuo Cc: linux-hexa...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/hexagon/mm/init.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/hexagon/mm/init.c

[PATCH v6, part4 19/41] mm/frv: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: David Howells Cc: Andi Kleen Cc: Geert Uytterhoeven Cc: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org --- arch/frv/kernel/setup.c | 13 +++-- arch/frv/mm/init.c | 49

[PATCH v6, part4 13/41] mm/ARM: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/mm/init.c | 47 ++- 1

[PATCH v6, part4 12/41] mm/ARC: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu Acked-by: Vineet Gupta# for arch/arc Cc: James Hogan Cc: Rob Herring Cc: linux-kernel@vger.kernel.org --- arch/arc/mm/init.c | 36 +++- 1 file changed, 3 insertions(+), 33

[PATCH v6, part4 04/41] h8300: normalize global variables exported by vmlinux.lds

2013-05-29 Thread Jiang Liu
Generate mandatory global variables __bss_start/__bss_stop in file vmlinux.lds. Also remove one unused declaration of _text. Signed-off-by: Jiang Liu Cc: Yoshinori Sato Cc: Jiang Liu Cc: linux-kernel@vger.kernel.org --- arch/h8300/boot/compressed/misc.c | 1 - arch/h8300/kernel/vmlinux.lds.S

[PATCH v6, part4 10/41] mm/hotplug: prepare for removing num_physpages

2013-05-29 Thread Jiang Liu
Prepare for removing num_physpages. Signed-off-by: Jiang Liu Cc: Wen Congyang Cc: Tang Chen Cc: Yasuaki Ishimatsu Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memory_hotplug.c | 4 1 file changed, 4 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c

[PATCH v6, part4 02/41] avr32: normalize global variables exported by vmlinux.lds

2013-05-29 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. Signed-off-by: Jiang Liu Acked-by: Hans-Christian

[RFC] arm: Update Booting document for FDT placement and reserved map

2013-05-29 Thread Grant Likely
The Booting document isn't very clear about what a bootloader is required to do when booting with an FDT. First, the placement of the FDT isn't as strict as the document suggests. It can actually appear anywhere in RAM and the decompressor will relocated if it absolutely needs to (but it is better

Re: [RFC][PATCH] ftrace: Use schedule_on_each_cpu() as a heavy synchronize_sched()

2013-05-29 Thread Steven Rostedt
On Wed, 2013-05-29 at 06:33 -0700, Paul E. McKenney wrote: > > Is there something a little smarter we can do? Could we use > > on_each_cpu_cond() with a function that checks if the CPU really is > > fully idle? > > One recent change that should help is making the _rcuidle variants of > the

[PATCH] writeback: make local functions as static

2013-05-29 Thread Haicheng Li
Functions not used globally should be static. Signed-off-by: Haicheng Li --- fs/fs-writeback.c |7 +++ include/linux/writeback.h |5 - 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 3be5718..1d66062 100644 ---

RE: [PATCH v6 net-next 2/5] net: implement support for low latency socket polling

2013-05-29 Thread Eric Dumazet
On Wed, 2013-05-29 at 14:42 +0100, David Laight wrote: > > > +/* we don't mind a ~2.5% imprecision */ > > > +#define TSC_MHZ (tsc_khz >> 10) > > Wouldn't (tsc_khz << 10) be better? We want number of cycles per usec. Your formula gives number of cycles per 1.024 second. -- To unsubscribe from

Re: [RFC v2 0/3][TESTS] LAB: Support for Legacy Application Booster governor - tests results

2013-05-29 Thread Lukasz Majewski
Hi Viresh, > On 29 May 2013 12:39, Lukasz Majewski wrote: > > I also agree. Moreover, I think that there should be only one set of > > "boost" sysfs entries either it is supported by HW (Intel) or SW > > (ARM). > > Yes, you need to change acpi-cpufreq driver too to use this common >

RE: [PATCH v6 net-next 1/5] net: add napi_id and hash

2013-05-29 Thread Eric Dumazet
On Wed, 2013-05-29 at 14:09 +0100, David Laight wrote: > > > Adds a napi_id and a hashing mechanism to lookup a napi by id. > > Is this one of the places where the 'id' can be selected > so that the 'hash' lookup never collides? Very few devices will ever call napi_hash_add() [ Real NIC RX

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-29 Thread Xiao Guangrong
On 05/29/2013 08:25 PM, Marcelo Tosatti wrote: > On Tue, May 28, 2013 at 10:51:38PM +0800, Xiao Guangrong wrote: >> On 05/28/2013 08:13 AM, Marcelo Tosatti wrote: >>> On Thu, May 23, 2013 at 03:55:58AM +0800, Xiao Guangrong wrote: It is only used to zap the obsolete page. Since the obsolete

Re: [PATCH 3/3] proc: simplify proc_task_readdir/first_tid paths

2013-05-29 Thread Oleg Nesterov
On 05/28, Eric W. Biederman wrote: > > Oleg Nesterov writes: > > > proc_task_readdir() does not really need "leader", first_tid() > > has to revalidate it anyway. Just pass proc_pid(inode) to > > first_tid() instead, it can do pid_task(PIDTYPE_PID) itself > > and read ->group_leader only if

Re: [PATCH 09/12] tegra20-apb-dma: remove useless use of lock

2013-05-29 Thread Andy Shevchenko
On Wed, May 29, 2013 at 1:56 PM, Laxman Dewangan wrote: > On Monday 27 May 2013 05:44 PM, Andy Shevchenko wrote: >> >> Accordingly to dma_cookie_status() description locking is not required. >> > I think we need lock here: > From isr handler, we call dma_cookie_complete() which is in spin-locked.

[GIT] pktcdvd fix

2013-05-29 Thread Jiri Kosina
Jens, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/linux-block.git for-jens to receive one pktcdvd fix. It fixes a highly theoretical issue with using pktcdvd to work with media that'd be larger than 2TB :) But it's a correct fix and makes static checkers shut up

RE: [PATCH v6 net-next 2/5] net: implement support for low latency socket polling

2013-05-29 Thread David Laight
> > +/* we don't mind a ~2.5% imprecision */ > > +#define TSC_MHZ (tsc_khz >> 10) Wouldn't (tsc_khz << 10) be better? David N�r��yb�X��ǧv�^�)޺{.n�+{zX����ܨ}���Ơz�:+v���zZ+��+zf���h���~i���z��w���?�&�)ߢf��^jǫy�m��@A�a��� 0��h���i

Re: [RFC][PATCH] ftrace: Use schedule_on_each_cpu() as a heavy synchronize_sched()

2013-05-29 Thread Steven Rostedt
On Wed, 2013-05-29 at 09:52 +0200, Peter Zijlstra wrote: > Just to be clear, its the idle part that's a problem, right? Actually, it's the userspace part that's triggered the bugs. > Being stuck > in userspace isn't a problem since if that CPU is in userspace its > certainly not got a

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-29 Thread Marcelo Tosatti
On Wed, May 29, 2013 at 09:09:09PM +0800, Xiao Guangrong wrote: > This information is I replied Gleb in his mail where he raced a question that > why "collapse tlb flush is needed": > > == > It seems no. > Since we have reloaded mmu before zapping the obsolete pages, the mmu-lock > is easily

Re: [PATCH v6 net-next 3/5] tcp: add TCP support for low latency receive poll.

2013-05-29 Thread Eric Dumazet
On Wed, 2013-05-29 at 09:39 +0300, Eliezer Tamir wrote: > Adds busy-poll support for TCP. > Copy the napi_id from an incomming skb to the sk in tcp_v[46]_rcv(). > when there is no data in the socket we busy-poll in tcp_recvmsg(). > This is a good example of how to add busy-poll support to new

Re: [patch] pktcdvd: silence static checker warning

2013-05-29 Thread Jiri Kosina
On Thu, 16 May 2013, Dan Carpenter wrote: > Static checkers complain about widening the binary "not" operations here > because sectors are u64 and "(pd)->settings.size" is unsigned int. > It unintentionally clears the high 32 bits of the sector. This means > that the driver won't work for

Re: [PATCH v6 net-next 2/5] net: implement support for low latency socket polling

2013-05-29 Thread Eric Dumazet
On Wed, 2013-05-29 at 09:39 +0300, Eliezer Tamir wrote: > +/* we don't mind a ~2.5% imprecision */ > +#define TSC_MHZ (tsc_khz >> 10) > + > +static inline unsigned long ll_end_time(void) > +{ > + return TSC_MHZ * ACCESS_ONCE(sysctl_net_ll_poll) + get_cycles(); > +}static inline unsigned long

[PATCH 1/4] ARM: ux540: Add ccu8540-uib-v3 Device Tree Machine

2013-05-29 Thread Gabriel Fernandez
From: Gabriel Fernandez This board includes the U8540 platform and specifies only the ST-Ericsson UIB version 3. --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/ccu8540-uib-v3.dts | 16 2 files changed, 17 insertions(+) create mode 100644

[PATCH 4/4] ARM: u8540: Add DT probing for SFH7741 Proximity Sensor

2013-05-29 Thread Gabriel Fernandez
From: Gabriel Fernandez Here we ensure the SFH7741 Proximity Sensor is registered through gpio-keys when booting with Device Tree enabled. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/ccu8540-uib-v3.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH 3/4] ARM: u8540: Add device tree support for bh1780

2013-05-29 Thread Gabriel Fernandez
From: Gabriel Fernandez This patch adds DT probing of the light sensor bh1780 for u8540. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/ccu8540-uib-v3.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/ccu8540-uib-v3.dts

[PATCH 0/4] Introduce ccu8540 uib-v3

2013-05-29 Thread Gabriel Fernandez
From: Gabriel Fernandez This patch set introduces a new board for u8540 platform: ccu8540-uib-v3. Gabriel Fernandez (4): ARM: ux540: Add ccu8540-uib-v3 Device Tree Machine ARM: u8540: Add device tree support for lp5521 leds ARM: u8540: Add device tree support for bh1780 ARM: u8540:

[PATCH 2/4] ARM: u8540: Add device tree support for lp5521 leds

2013-05-29 Thread Gabriel Fernandez
From: Gabriel Fernandez This patch adds DT probing of lp5521 leds for u8540. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/ccu8540-uib-v3.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/ccu8540-uib-v3.dts

Re: [PATCH v2 11/14] Documentation: dt: binding: omap: am43x timer

2013-05-29 Thread Benoit Cousson
On 05/29/2013 11:58 AM, Mohammed, Afzal wrote: > Hi Benoit, > > On Wed, May 29, 2013 at 14:09:18, Cousson, Benoit wrote: >> On 05/29/2013 10:06 AM, Mohammed, Afzal wrote: >>> On Wed, May 29, 2013 at 03:35:10, Stephen Warren wrote: On 05/28/2013 03:25 PM, Jon Hunter wrote: > > If you are

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-29 Thread Marcelo Tosatti
On Wed, May 29, 2013 at 09:09:09PM +0800, Xiao Guangrong wrote: > On 05/29/2013 07:11 PM, Marcelo Tosatti wrote: > > On Tue, May 28, 2013 at 11:02:09PM +0800, Xiao Guangrong wrote: > >> On 05/28/2013 08:18 AM, Marcelo Tosatti wrote: > >>> On Mon, May 27, 2013 at 10:20:12AM +0800, Xiao Guangrong

Re: [RFC][PATCH] ftrace: Use schedule_on_each_cpu() as a heavy synchronize_sched()

2013-05-29 Thread Paul E. McKenney
On Wed, May 29, 2013 at 09:52:49AM +0200, Peter Zijlstra wrote: > On Tue, May 28, 2013 at 08:01:16PM -0400, Steven Rostedt wrote: > > The function tracer uses preempt_disable/enable_notrace() for > > synchronization between reading registered ftrace_ops and unregistering > > them. > > > > Most of

Re: [PATCH] usb/xhci: unify parameter of xhci_msi_irq

2013-05-29 Thread Alex Shi
On 05/28/2013 09:39 PM, Alex Shi wrote: > On 05/24/2013 10:54 AM, Alex Shi wrote: >> >> Ops, I just find a old patch left on my laptop. and it still works on latest >> Linus tree. I don't remember there is a reasonable excuse to reject this >> patch. >> >> So, anyone like to pick it up? > > Ping

Re: [patch 0/8]: use runnable load avg in balance

2013-05-29 Thread Alex Shi
On 05/28/2013 09:31 PM, Alex Shi wrote: >> > Tested the latest patch set (new 3/8 and 6/8) with pgbench, tip >> > 3.10.0-rc1 and 12 cpu X86 box, works well and still benefit ;-) > > Paul: > > Would you like to give more comments/ideas of this patch set? Peter, If no more idea of the

Re: [PATCH] HID: input: return ENODATA if reading battery attrs fails

2013-05-29 Thread Jiri Kosina
On Fri, 24 May 2013, David Herrmann wrote: > So I hope we can apply this for linux-next (probably after gustavo > applied the HIDP fix)? Applied to my tree, together with the hidp fix. Thanks David, thanks Daniel! -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-29 Thread Xiao Guangrong
On 05/29/2013 08:39 PM, Marcelo Tosatti wrote: > On Wed, May 29, 2013 at 11:03:19AM +0800, Xiao Guangrong wrote: > the pages since other vcpus may be doing locklessly shadow > page walking >>> >>> Ah, yes, i agree with you. >>> >>> We can introduce a list, say kvm->arch.obsolte_pages, to

Re: OOPS in perf_mmap_close()

2013-05-29 Thread Vince Weaver
On Wed, 29 May 2013, Peter Zijlstra wrote: > Hurm.. I don't suppose you have an easy reproducer handy eh? I'll go > stare at it. At least the current state is better than before, but > clearly we're not quite there yet. I've been working on a reproducible test case. Simple modifications to the

Fwd: [PATCH 2/2] xtensa: Flat DeviceTree copy not future-safe

2013-05-29 Thread Vineet Gupta
Hi Max, This patch - acked by you then, got lost in the mist of time. Care to take it in via xtensa tree for 3.11 Thx, -Vineet Original Message Subject: [PATCH 2/2] xtensa: Flat DeviceTree copy not future-safe Date: Fri, 22 Feb 2013 00:09:22 +0530 From: Vineet Gupta To:

RE: [PATCH v6 net-next 1/5] net: add napi_id and hash

2013-05-29 Thread David Laight
> > Adds a napi_id and a hashing mechanism to lookup a napi by id. Is this one of the places where the 'id' can be selected so that the 'hash' lookup never collides? David N�r��yb�X��ǧv�^�)޺{.n�+{zX����ܨ}���Ơz�:+v���zZ+��+zf���h���~i���z�

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-29 Thread Xiao Guangrong
On 05/29/2013 07:11 PM, Marcelo Tosatti wrote: > On Tue, May 28, 2013 at 11:02:09PM +0800, Xiao Guangrong wrote: >> On 05/28/2013 08:18 AM, Marcelo Tosatti wrote: >>> On Mon, May 27, 2013 at 10:20:12AM +0800, Xiao Guangrong wrote: On 05/25/2013 04:34 AM, Marcelo Tosatti wrote: > On Thu,

[PATCH v1 0/3] babble error workaround for am335x platform

2013-05-29 Thread Ravi Babu
During the babble condition on usb bus, the musb controller removes the session and stops host mode functionality. All the devices connected to root port will be disconnected due to this babble event. As part of recovery of babble bus condition, restarting the controller is needed as

[PATCH v1 2/3] usb: musb: core: added babble recovery func-ptr to musb->ops

2013-05-29 Thread Ravi Babu
Adding babble_recovery operation as part of musb->ops, used to recover from babble condition during babble interrupt. Signed-off-by: Ravi Babu --- drivers/usb/musb/musb_core.c |6 ++ drivers/usb/musb/musb_core.h |7 +++ 2 files changed, 13 insertions(+), 0 deletions(-) diff

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