Re: [PATCH 17/25] wm97xx: don't use [delayed_]work_pending()

2013-03-09 Thread Dmitry Torokhov
On Mon, Dec 24, 2012 at 04:18:27PM +, Mark Brown wrote: > On Sun, Dec 23, 2012 at 01:54:50AM -0800, Dmitry Torokhov wrote: > > > This is not 100% equivalent transformation as now we schedule first and > > disable IRQ later... Anyway, I think the driver shoudl be converted to > > threaded IRQ i

Re: [PATCH v2 3/7] kmod: split call to call_usermodehelper_fns()

2013-03-09 Thread Lucas De Marchi
On Sat, Mar 9, 2013 at 5:23 PM, Oleg Nesterov wrote: > On 03/08, Lucas De Marchi wrote: >> >> Use call_usermodehelper_setup() + call_usermodehelper_exec() instead of >> calling call_usermodehelper_fns(). In case the latter returns -ENOMEM >> the cleanup function may had not been called - in this c

Re: [PATCH v2 4/7] KEYS: split call to call_usermodehelper_fns()

2013-03-09 Thread Lucas De Marchi
On Sat, Mar 9, 2013 at 5:25 PM, Oleg Nesterov wrote: > On 03/08, Lucas De Marchi wrote: >> >> static int call_usermodehelper_keys(char *path, char **argv, char **envp, >> struct key *session_keyring, int wait) >> { >> - return call_usermodehelper_fns(pat

Re: [PATCH v2 6/7] Split remaining calls to call_usermodehelper_fns()

2013-03-09 Thread Lucas De Marchi
On Sat, Mar 9, 2013 at 5:42 PM, Oleg Nesterov wrote: > On 03/08, Lucas De Marchi wrote: >> >> @@ -571,9 +572,17 @@ void do_coredump(siginfo_t *siginfo) >> goto fail_dropcount; >> } >> >> - retval = call_usermodehelper_fns(helper_argv[0], helper_argv,

Re: memory leak and other oddness in pinctrl-mvebu.c

2013-03-09 Thread Jason Cooper
Added LinusW, Gregory and Ezequiel to the email. Guys, can you give this a Tested-by before I apply (or Ack for LinusW)? thx, Jason. On Sat, Mar 09, 2013 at 11:39:31PM +, David Woodhouse wrote: > On Sat, 2013-03-09 at 17:53 -0500, Jason Cooper wrote: > > > + if (!nr_funcs) > > > > shou

Re: epoll: possible bug from wakeup_source activation

2013-03-09 Thread Eric Wong
Eric Wong wrote: > Arve Hjønnevåg wrote: > > On Fri, Mar 8, 2013 at 12:49 PM, Eric Wong wrote: > > > What happens if ep_modify calls ep_destroy_wakeup_source > > > while __pm_stay_awake is running on the same epi->ws? > > > > Yes, that looks like a problem. I think calling > > ep_destroy_wakeup

Re: [PATCH] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-03-09 Thread Prarit Bhargava
On 03/04/2013 08:24 AM, Don Dutile wrote: > On 03/02/2013 10:59 AM, Andreas Mohr wrote: >> Hi, >> >>> if ((revision == 0x13)&& irq_remapping_enabled) { >>> +pr_warn("WARNING WARNING WARNING WARNING WARNING >>> WARNING\n" >>> +"This system BIOS has enabled interrupt >>> remappin

[PATCH] ARM:kernel: beautify code, rel->r_offset is __u32 which never < 0

2013-03-09 Thread Chen Gang
rel->r_offset is __u32 which never < 0. it is defined in uapi/linux/elf.h Signed-off-by: Chen Gang --- arch/arm/kernel/module.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 1e9be5d..386086e 100644 --- a/a

[PATCH] ARM:kernel: beautify code, using 'static const' instead of 'const static'

2013-03-09 Thread Chen Gang
better using 'static const' instead of 'const static' Signed-off-by: Chen Gang --- arch/arm/kernel/smp_twd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index 3f25650..ef3e499 100644 --- a/arch/arm/kernel/smp_

[PATCH] ARM:net: an issue for k which is u32, never < 0

2013-03-09 Thread Chen Gang
k is u32 which never < 0, need type cast, or cause issue. Signed-off-by: Chen Gang --- arch/arm/net/bpf_jit_32.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c index 6828ef6..a0bd8a7 100644 --- a/arch/arm/net/bpf

Re: [PATCH v2 15/20] kexec: fill note buffers by NT_VMCORE_PAD notes in page-size boundary

2013-03-09 Thread Zhang Yanfei
于 2013年03月09日 11:46, HATAYAMA Daisuke 写道: > From: Yanfei Zhang > Subject: Re: [PATCH v2 15/20] kexec: fill note buffers by NT_VMCORE_PAD notes > in page-size boundary > Date: Fri, 8 Mar 2013 21:02:50 +0800 > >> 2013/3/8 HATAYAMA Daisuke : >>> From: Zhang Yanfei >>> Subject: Re: [PATCH v2 15/20]

Re: [RFC PATCH 0/5] tasklist_lock fairness issues

2013-03-09 Thread Michel Lespinasse
On Sat, Mar 9, 2013 at 10:26 AM, Oleg Nesterov wrote: > Hi Michel, > > Well. I can't say I really like this. 4/5 itself looks fine, but other > complications do not look nice, at least in the long term. Imho, imho, > I can be wrong. > > Everyone seem to agree that tasklist should die, this series

[PATCH] ARM: fix the magic numbers used for checking the existence of saved caller registers

2013-03-09 Thread Tao Hou
When any backtraced function has saved the caller register r10 (e.g., show_mem), without the fix in c_backtrace all saved caller registers of the function will not been dumped. Signed-off-by: Tao Hou Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/lib/backt

[PATCH] include/linux/res_counter.h: fixup commit 9259826ccb8165f797e4c2c9d17925b41af5f6ae

2013-03-09 Thread Chen Gang
still need include linux/errno.h for EBUSY. additional info: make command: make EXTRA_CFLAGS=-W V=1 ARCH=arm allmodconfig make EXTRA_CFLAGS=-W V=1 ARCH=arm error report: In file included from mm/memcontrol.c:28:0: include/linux/res_counter.h: in function ‘res_counter_set_lim

Re: xhci module fails when booting in UEFI mode

2013-03-09 Thread Marco
David Härdeman hardeman.nu> writes: > > On Thu, Jan 10, 2013 at 11:15:56AM +, Frederik Himpe wrote: > >I've got a HP EliteBook 8470p on which I installed Debian Wheezy in UEFI > >mode. With both the 3.2 kernel from Wheezy, as the 3.7.1 kernel from > >experimental, xhci fails to initialize

Fwd: [Nepomuk] Better support for (desktop) file search / indexing applications

2013-03-09 Thread Simeon Bird
Sent again in plain-text - apologies. -- Forwarded message -- From: Simeon Bird Date: 9 March 2013 23:49 Subject: Re: [Nepomuk] Better support for (desktop) file search / indexing applications To: Tvrtko Ursulin Cc: Martin Steigerwald , Jan Kara , Robert Love , linux-kernel@vger.

Re: epoll: possible bug from wakeup_source activation

2013-03-09 Thread Eric Dumazet
On Sun, 2013-03-10 at 01:11 +, Eric Wong wrote: > > static void ep_destroy_wakeup_source(struct epitem *epi) > { > - wakeup_source_unregister(epi->ws); > - epi->ws = NULL; > + struct wakeup_source *ws = epi->ws; > + > + rcu_assign_pointer(epi->ws, NULL); There is no need to

[PATCH] vmscan: minor cleanup for kswapd

2013-03-09 Thread Hillf Danton
The local variable, total_scanned, is no longer used, so clean up now. Signed-off-by: Hillf Danton --- --- a/mm/vmscan.c Thu Feb 21 20:01:02 2013 +++ b/mm/vmscan.c Sun Mar 10 12:52:10 2013 @@ -2619,7 +2619,6 @@ static unsigned long balance_pgdat(pg_da bool pgdat_is_balanced =

Re: [PATCH] mm, x86: no zeroing of hugetlbfs pages at boot

2013-03-09 Thread Hillf Danton
On Thu, Mar 7, 2013 at 5:50 AM, Cliff Wickman wrote: > From: Cliff Wickman > > Allocating a large number of 1GB hugetlbfs pages at boot takes a > very long time. > > Large system sites would at times like to allocate a very large amount of > memory as 1GB pages. They would put this on the kernel

[PATCH v2, part1 02/29] mm/alpha: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Also include to avoid local declarations. Signed-off-by: Jiang Liu Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner --- arch/alpha/kernel/sys_nautilus.c |5 ++--- arch/alpha/mm/init.c | 24 +++-

[PATCH v2, part1 05/29] mm/blackfin: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Mike Frysinger --- arch/blackfin/mm/init.c | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/arch/blackfin/mm/init.c b/arch/blackfin/mm/init.c index 9cb8553..82d01a7 100644

[PATCH v2, part1 07/29] mm/cris: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Also include to avoid local declaration. Signed-off-by: Jiang Liu Cc: Mikael Starvik --- arch/cris/mm/init.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/arch/cris/mm/init.c b/arch/cris/mm/init.c index

[PATCH v2, part1 08/29] mm/FRV: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: David Howells --- arch/frv/mm/init.c | 34 -- 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/arch/frv/mm/init.c b/arch/frv/mm/init.c index 92e97b0..21b9290 100644 ---

[PATCH v2, part1 09/29] mm/h8300: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Yoshinori Sato --- arch/h8300/mm/init.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/arch/h8300/mm/init.c b/arch/h8300/mm/init.c index 981e250..ff349d7 100644

[PATCH v2, part1 10/29] mm/IA64: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Tony Luck Cc: Fenghua Yu --- arch/ia64/mm/init.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index 20bc967..d1fe4b4 100644

[PATCH v2, part1 11/29] mm/m32r: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Also include to avoid local declarations. Signed-off-by: Jiang Liu Cc: Hirokazu Takata --- arch/m32r/mm/init.c | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/arch/m32r/mm/init.c b/arch/m32r/mm/

[PATCH v2, part1 12/29] mm/m68k: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Geert Uytterhoeven --- arch/m68k/mm/init.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c index afd8106f..b5c1ab1 100644 ---

[PATCH v2, part1 13/29] mm/microblaze: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Michal Simek --- arch/microblaze/include/asm/setup.h |1 - arch/microblaze/mm/init.c | 28 ++-- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/arch/microblaze/

[PATCH v2, part1 14/29] mm/MIPS: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Ralf Baechle --- arch/mips/mm/init.c | 31 +-- arch/mips/sgi-ip27/ip27-memory.c |4 ++-- 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/arch/mips/mm/in

[PATCH v2, part1 15/29] mm/mn10300: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Koichi Yasutake --- arch/mn10300/mm/init.c | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/arch/mn10300/mm/init.c b/arch/mn10300/mm/init.c index e57e5bc..5a8ace6 100644

[PATCH v2, part1 16/29] mm/openrisc: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Also include to avoid local declarations. Signed-off-by: Jiang Liu Cc: Jonas Bonn --- arch/openrisc/mm/init.c | 27 +++ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/arch/openrisc/mm/init.c b/arch/open

[PATCH v2, part1 17/29] mm/parisc: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: "James E.J. Bottomley" Cc: Helge Deller --- arch/parisc/mm/init.c | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index 3a

[PATCH v2, part1 18/29] mm/ppc: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anatolij Gustschin --- arch/powerpc/kernel/crash_dump.c |5 + arch/powerpc/kernel/fadump.c |5 + arch/powerpc/kernel/kvm.c

[PATCH v2, part1 19/29] mm/s390: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Martin Schwidefsky Cc: Heiko Carstens --- arch/s390/mm/init.c | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c inde

[PATCH v2, part1 20/29] mm/score: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Chen Liqin Cc: Lennox Wu --- arch/score/mm/init.c | 33 + 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/arch/score/mm/init.c b/arch/score/mm/init.c index cee6bce..1

[PATCH v2, part1 21/29] mm/SH: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Acked-by: Paul Mundt --- arch/sh/mm/init.c | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index 1057940..20f9ead 100644 --- a/arch/

[PATCH v2, part1 22/29] mm/SPARC: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Acked-by: David S. Miller Cc: Sam Ravnborg --- arch/sparc/kernel/leon_smp.c | 15 +++ arch/sparc/mm/init_32.c | 37 +++-- arch/sparc/mm/init_64.c | 26 +---

[PATCH v2, part1 23/29] mm/um: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Jeff Dike --- arch/um/kernel/mem.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index 5abcbfb..d5ac802 100644 --- a/arch/um/kernel/mem.c

[PATCH v2, part1 25/29] mm/x86: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" --- arch/x86/mm/init.c|5 + arch/x86/mm/init_64.c |5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/x86/mm/init.c b/a

[PATCH v2, part1 26/29] mm/xtensa: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Chris Zankel Cc: Max Filippov --- arch/xtensa/mm/init.c | 21 +++-- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index 7a5156f..bba12

[PATCH v2, part1 27/29] mm/arc: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Acked-by: Vineet Gupta Cc: linux-snps-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org (open list) --- arch/arc/mm/init.c | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a

[PATCH v2, part1 28/29] mm/metag: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: James Hogan Cc: linux-kernel@vger.kernel.org --- arch/metag/mm/init.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/arch/metag/mm/init.c b/arch/metag/mm/init.c index 504

[PATCH v2, part1 29/29] mm,kexec: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Eric Biederman --- kernel/kexec.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kernel/kexec.c b/kernel/kexec.c index bddd3d7..be95397 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c

[PATCH v2, part1 24/29] mm/unicore32: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Guan Xuetao --- arch/unicore32/mm/init.c | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/arch/unicore32/mm/init.c b/arch/unicore32/mm/init.c index de186bd..c5817b0

[PATCH v2, part1 04/29] mm/avr32: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Acked-by: Hans-Christian Egtvedt Cc: Haavard Skinnemoen --- arch/avr32/mm/init.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/arch/avr32/mm/init.c b/arch/avr32/mm/init.

[PATCH v2, part1 06/29] mm/c6x: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. Signed-off-by: Jiang Liu Cc: Mark Salter Cc: Aurelien Jacquiot --- arch/c6x/mm/init.c | 30 ++ 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/arch/c6x/mm/init.c b/arch/c6x/mm/init.c index 89395f0..a

[PATCH v2, part1 03/29] mm/ARM: use common help functions to free reserved pages

2013-03-09 Thread Jiang Liu
Use common help functions to free reserved pages. 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 | 48 arch/arm6

[PATCH v2 01/20] x86: Change get_ramdisk_image() to global

2013-03-09 Thread Yinghai Lu
Need to use get_ramdisk_image() with early microcode_updating in other file. Change it to global. Also make it to take boot_params pointer, as head_32.S need to access it via phys address during 32bit flat mode. Signed-off-by: Yinghai Lu --- arch/x86/include/asm/setup.h |3 +++ arch/x86/ker

[PATCH v2 02/20] x86, microcode: Use common get_ramdisk_image()

2013-03-09 Thread Yinghai Lu
Use common get_ramdisk_image() to get ramdisk start phys address. We need this to get correct ramdisk adress for 64bit bzImage that initrd can be loaded above 4G by kexec-tools. Signed-off-by: Yinghai Lu Cc: Fenghua Yu --- arch/x86/kernel/microcode_intel_early.c |8 1 file changed

[PATCH v2 05/20] x86, ACPI: Split acpi_initrd_override to find/copy two functions

2013-03-09 Thread Yinghai Lu
To parse srat early, we need to move acpi table probing early. acpi_initrd_table_override is before acpi table probing. So we need to move it early too. Current code acpi_initrd_table_override is after init_mem_mapping and relocate_initrd(), so it can scan initrd and copy acpi tables with kernel v

[PATCH v2 06/20] x86, ACPI: Store override acpi tables phys addr in cpio files info array

2013-03-09 Thread Yinghai Lu
In 32bit we will find table with phys address during 32bit flat mode in head_32.S, because at that time we don't need set page table to access initrd. For copying we could use early_ioremap() with phys directly before mem mapping is set. To keep 32bit and 64bit consistent, use phys_addr for all.

[PATCH v2 07/20] x86, ACPI: Make acpi_initrd_override_find work with 32bit flat mode

2013-03-09 Thread Yinghai Lu
For finding with 32bit, it would be easy to access initrd in 32bit flat mode, as we don't need to set page table. That is from head_32.S, and microcode updating already use this trick. Need to change acpi_initrd_override_find to use phys to access global variables. Pass is_phys in the function,

[PATCH v2 09/20] x86, mm, numa: Move two functions calling on successful path later

2013-03-09 Thread Yinghai Lu
We need to have numa info ready before init_mem_mapping, so we can call init_mem_mapping per nodes also can trim node mem range to big alignment. Current numa parsing need to allocate some buffer and need to be called after init_mem_mapping. So try to split parsing numa info to two stages, and ea

[PATCH v2 10/20] x86, mm, numa: Call numa_meminfo_cover_memory() checking early

2013-03-09 Thread Yinghai Lu
For the separation, we need to set memblock nid later, as it could change memblock array, and possible doube memblock.memory array that will need to allocate buffer. We do not need to use nid in memblock to find out absent pages. So we can move that numa_meminfo_cover_memory() early. Also could c

[PATCH v2 12/20] x86, mm, numa: Use numa_meminfo to check node_map_pfn alignment

2013-03-09 Thread Yinghai Lu
We could use numa_meminfo directly instead of memblock nid. So we could move down set memblock nid and only do it one time for successful path. -v2: according to tj, separate moving to another patch. Signed-off-by: Yinghai Lu --- arch/x86/mm/numa.c | 30 +++--- 1 file

[PATCH v2 13/20] x86, mm, numa: Set memblock nid later

2013-03-09 Thread Yinghai Lu
For the separation, we need to set memblock nid later, as it could change memblock array, and possible doube memblock.memory array that will need to allocate buffer. Only set memblock nid one time for successful path. Also rename numa_register_memblks to numa_check_memblks() after move out code f

[PATCH v2 14/20] x86, mm, numa: Move node_possible_map setting later

2013-03-09 Thread Yinghai Lu
Move node_possible_map handling out of numa_check_memblks to avoid side changing in numa_check_memblks(). Only set once for successful path instead of resetting in numa_init() every time. Suggested-by: Tejun Heo Signed-off-by: Yinghai Lu --- arch/x86/mm/numa.c | 11 +++ 1 file change

[PATCH v2 15/20] x86, mm, numa: Move emulation handling down.

2013-03-09 Thread Yinghai Lu
It needs to allocate buffer for new numa_meminfo and distance matrix, so move it down. Also we change the behavoir: before this patch, if user input wrong data in command line, it will fall back to next numa probing or disabling numa. after this patch, if user input wrong data in command line, it

[PATCH v2 16/20] x86, ACPI, numa, ia64: split SLIT handling out

2013-03-09 Thread Yinghai Lu
We need to handle slit later, as it need to allocate buffer for distance matrix. Also we do not need SLIT info before init_mem_mapping. So move SLIT parsing later. x86_acpi_numa_init become x86_acpi_numa_init_srat/x86_acpi_numa_init_slit. It should not break ia64 by replacing acpi_numa_init with

[PATCH v2 17/20] x86, mm, numa: Add early_initmem_init() stub

2013-03-09 Thread Yinghai Lu
early_initmem_init() call early_x86_numa_init() to parse numa info early. Later will call init_mem_mapping for nodes in it. Signed-off-by: Yinghai Lu Cc: Pekka Enberg Cc: Jacob Shin --- arch/x86/include/asm/page_types.h |1 + arch/x86/kernel/setup.c |1 + arch/x86/mm/init.c

[PATCH v2 18/20] x86, mm: Parse numa info early

2013-03-09 Thread Yinghai Lu
Parsing numa info has been separated to two functions now. early_initmem_info() only parse info in numa_meminfo and nodes_parsed. still keep numaq, acpi_numa, amd_numa, dummy fall back sequence working. SLIT and numa emulation handling are still left in initmem_init(). Call early_initmem_init be

[PATCH v2 19/20] x86, mm: Make init_mem_mapping be able to be called several times

2013-03-09 Thread Yinghai Lu
Prepare to put page table on local nodes. Move calling of init_mem_mapping to early_initmem_init. Rework alloc_low_pages to alloc page table in following order: BRK, local node, low range Still only load_cr3 one time, otherwise we would break xen 64bit again. Signed-off-by: Yinghai Lu

[PATCH v2 20/20] x86, mm, numa: Put pagetable on local node ram for 64bit

2013-03-09 Thread Yinghai Lu
If node with ram is hotplugable, local node mem for page table and vmemmap should be on that node ram. This patch is some kind of refreshment of | commit 1411e0ec3123ae4c4ead6bfc9fe3ee5a3ae5c327 | Date: Mon Dec 27 16:48:17 2010 -0800 | |x86-64, numa: Put pgtable to local node memory That was

[PATCH v2 11/20] x86, mm, numa: Move node_map_pfn alignment() to x86

2013-03-09 Thread Yinghai Lu
Move node_map_pfn_alignment() to arch/x86/mm as no other user for it. Will update it to use numa_meminfo instead of memblock. Signed-off-by: Yinghai Lu --- arch/x86/mm/numa.c | 50 ++ include/linux/mm.h |1 - mm/page_alloc.c| 50 --

Re: [PATCH v2 01/20] vmcore: refer to e_phoff member explicitly

2013-03-09 Thread Zhang Yanfei
于 2013年03月05日 15:35, Zhang Yanfei 写道: > 于 2013年03月02日 16:35, HATAYAMA Daisuke 写道: >> Code around /proc/vmcore currently assumes program header table is >> next to ELF header. But future change can break the assumption on >> kexec-tools and the 1st kernel. To avoid worst case, now refer to >> e_phof

[PATCH v2 08/20] x86, ACPI: Find acpi tables in initrd early from head_32.S/head64.c

2013-03-09 Thread Yinghai Lu
head64.c could use #PF handler set page table to access initrd before init mem mapping and initrd relocating. head_32.S could use 32bit flat mode to access initrd before init mem mapping initrd relocating. That make 32bit and 64 bit more consistent. -v2: use inline function in header file instea

[PATCH v2 04/20] x86, ACPI: Increase override tables number limit

2013-03-09 Thread Yinghai Lu
Current acpi tables in initrd is limited to 10, that is too small. 64 should be good enough as we have 35 sigs and could have several SSDT. Two problems in current code prevent us from increasing limit: 1. that cpio file info array is put in stack, as every element is 32 bytes, could run out of

[PATCH v2 03/20] x86, ACPI, mm: Kill max_low_pfn_mapped

2013-03-09 Thread Yinghai Lu
Now we have arch_pfn_mapped array, and max_low_pfn_mapped should not be used anymore. User should use arch_pfn_mapped or just 1UL<<(32-PAGE_SHIFT) instead. Only user is ACPI_INITRD_TABLE_OVERRIDE, and it should not use that, as later accessing is using early_ioremap(). Change to try to 4G below a

[PATCH v2 00/20] x86, ACPI, numa: Parse numa info early

2013-03-09 Thread Yinghai Lu
One commit that tried to parse SRAT early get reverted before v3.9-rc1. | commit e8d1955258091e4c92d5a975ebd7fd8a98f5d30f | Author: Tang Chen | Date: Fri Feb 22 16:33:44 2013 -0800 | |acpi, memory-hotplug: parse SRAT before memblock is ready It broke several things, like acpi override and

Re: [PATCH v2 07/20] vmcore: copy non page-size aligned head and tail pages in 2nd kernel

2013-03-09 Thread Zhang Yanfei
于 2013年03月02日 16:36, HATAYAMA Daisuke 写道: > Due to mmap() requirement, we need to copy pages not starting or > ending with page-size aligned address in 2nd kernel and to map them to > user-space. > > For example, see the map below: > > -0001 : reserved > 0001-0009f7ff : Sy

Re: [PATCH v2, part1 22/29] mm/SPARC: use common help functions to free reserved pages

2013-03-09 Thread Sam Ravnborg
On Sun, Mar 10, 2013 at 02:27:05PM +0800, Jiang Liu wrote: > Use common help functions to free reserved pages. > > Signed-off-by: Jiang Liu > Acked-by: David S. Miller > Cc: Sam Ravnborg Acked-by: Sam Ravnborg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

<    1   2