Re: [RFC v9 PATCH 00/21] memory-hotplug: hot-remove physical memory

2012-09-30 Thread Yasuaki Ishimatsu
Hi Chen, 2012/09/29 17:19, Ni zhan Chen wrote: On 09/05/2012 05:25 PM, we...@cn.fujitsu.com wrote: From: Wen Congyang This patch series aims to support physical memory hot-remove. The patches can free/remove the following things: - acpi_memory_info : [RFC PATCH 4

Re: [RFC v9 PATCH 13/21] memory-hotplug: check page type in get_page_bootmem

2012-09-30 Thread Yasuaki Ishimatsu
Hi Chen, 2012/09/29 11:15, Ni zhan Chen wrote: On 09/05/2012 05:25 PM, we...@cn.fujitsu.com wrote: From: Yasuaki Ishimatsu The function get_page_bootmem() may be called more than one time to the same page. There is no need to set page's type, private if the function is not the first time call

[PATCH] PPC: Enable the Watchdog vector for 405

2012-09-30 Thread Jason Gunthorpe
Move the body of the PIT exception out of line to make room. Signed-off-by: Jason Gunthorpe --- arch/powerpc/kernel/head_40x.S | 26 +- arch/powerpc/kernel/traps.c|2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/kernel/head_40

[PATCH] PPC: Correct the tophys/tovirt macros

2012-09-30 Thread Jason Gunthorpe
asm/page.h discusses the calculation for v2p and p2v, it should be: va = pa + KERNELBASE - PHYSICAL_START which is the same as: va = pa + LOAD_OFFSET tophys/tovirt were using PAGE_OFFSET, which as page.h says, is almost always the same thing. Signed-off-by: Jason Gunthorpe --- arch/powerpc/in

[PATCH] PPC: Do not make the entire heap executable

2012-09-30 Thread Jason Gunthorpe
On PPC the ELF PLT sections look like this: [17] .sbss NOBITS 0002aff8 01aff8 14 00 WA 0 0 4 [18] .plt NOBITS 0002b00c 01aff8 84 00 WAX 0 0 4 [19] .bss NOBITS 0002b090 01aff8 a4 00 WA 0 0 4 Which resu