* [PATCH] no buddy bitmap patch : for ia64 [2/2]
@ 2004-10-07 12:42 Hiroyuki KAMEZAWA
2004-10-07 15:43 ` Dave Hansen
0 siblings, 1 reply; 3+ messages in thread
From: Hiroyuki KAMEZAWA @ 2004-10-07 12:42 UTC (permalink / raw)
To: Linux Kernel ML
Cc: linux-mm, LHMS, Andrew Morton, William Lee Irwin III, Luck, Tony,
Dave Hansen, Hirokazu Takahashi
This patch is for ia64.
Add HOLES_IN_ZONE macro definition and align vmemmap with ia64's granule size.
Kame <kamezawa.hiroyu@jp.fujitsu.com>
=== for arch/ia64 ===============
This patch is for ia64 kernel.
This defines HOLES_IN_ZONE in asm-ia64/page.h
And makes vmemmap aligned with IA64_GRANULE_SIZE in arch/ia64/mm/init.c.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
---
test-kernel-kamezawa/arch/ia64/mm/init.c | 3 ++-
test-kernel-kamezawa/include/asm-ia64/page.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff -puN include/asm-ia64/page.h~ia64_fix include/asm-ia64/page.h
--- test-kernel/include/asm-ia64/page.h~ia64_fix 2004-10-07 19:40:30.953218680 +0900
+++ test-kernel-kamezawa/include/asm-ia64/page.h 2004-10-07 19:40:30.958217920 +0900
@@ -79,6 +79,7 @@ do { \
#ifdef CONFIG_VIRTUAL_MEM_MAP
extern int ia64_pfn_valid (unsigned long pfn);
+#define HOLES_IN_ZONE 1
#else
# define ia64_pfn_valid(pfn) 1
#endif
diff -puN arch/ia64/mm/init.c~ia64_fix arch/ia64/mm/init.c
--- test-kernel/arch/ia64/mm/init.c~ia64_fix 2004-10-07 19:40:30.955218376 +0900
+++ test-kernel-kamezawa/arch/ia64/mm/init.c 2004-10-07 19:40:30.959217768 +0900
@@ -410,7 +410,8 @@ virtual_memmap_init (u64 start, u64 end,
struct page *map_start, *map_end;
args = (struct memmap_init_callback_data *) arg;
-
+ start = GRANULEROUNDDOWN(start);
+ end = GRANULEROUNDUP(end);
map_start = vmem_map + (__pa(start) >> PAGE_SHIFT);
map_end = vmem_map + (__pa(end) >> PAGE_SHIFT);
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] no buddy bitmap patch : for ia64 [2/2]
2004-10-07 12:42 [PATCH] no buddy bitmap patch : for ia64 [2/2] Hiroyuki KAMEZAWA
@ 2004-10-07 15:43 ` Dave Hansen
2004-10-08 0:43 ` [Lhms-devel] " Hiroyuki KAMEZAWA
0 siblings, 1 reply; 3+ messages in thread
From: Dave Hansen @ 2004-10-07 15:43 UTC (permalink / raw)
To: Hiroyuki KAMEZAWA
Cc: Linux Kernel ML, linux-mm, lhms, Andrew Morton,
William Lee Irwin III, Luck, Tony, Hirokazu Takahashi
On Thu, 2004-10-07 at 05:42, Hiroyuki KAMEZAWA wrote:
> #ifdef CONFIG_VIRTUAL_MEM_MAP
> extern int ia64_pfn_valid (unsigned long pfn);
> +#define HOLES_IN_ZONE 1
> #else
> # define ia64_pfn_valid(pfn) 1
> #endif
The real way to do this is to put it in a Kconfig file.
something like:
config HOLES_IN_ZONE
bool
depends on VIRTUAL_MEM_MAP
right below where 'config VIRTUAL_MEM_MAP' is defined. That way, if any
other architectures need it, they alter their Kconfig files instead of
headers. Also, it leaves the possibility of having an arch-independent
Kconfig file for memory-related options which I'd like to do in the
future.
-- Dave
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Lhms-devel] Re: [PATCH] no buddy bitmap patch : for ia64 [2/2]
2004-10-07 15:43 ` Dave Hansen
@ 2004-10-08 0:43 ` Hiroyuki KAMEZAWA
0 siblings, 0 replies; 3+ messages in thread
From: Hiroyuki KAMEZAWA @ 2004-10-08 0:43 UTC (permalink / raw)
To: Dave Hansen
Cc: Linux Kernel ML, linux-mm, lhms, Andrew Morton,
William Lee Irwin III, Luck, Tony, Hirokazu Takahashi
Dave Hansen wrote:
> The real way to do this is to put it in a Kconfig file.
>
> something like:
>
> config HOLES_IN_ZONE
> bool
> depends on VIRTUAL_MEM_MAP
>
> right below where 'config VIRTUAL_MEM_MAP' is defined. That way, if any
> other architectures need it, they alter their Kconfig files instead of
> headers. Also, it leaves the possibility of having an arch-independent
> Kconfig file for memory-related options which I'd like to do in the
> future.
>
Ok, it looks better. I'll move it.
Updated version will be posted in a day.
Kame <kamezawa.hiroyu@jp.fujitsu.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-08 0:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-07 12:42 [PATCH] no buddy bitmap patch : for ia64 [2/2] Hiroyuki KAMEZAWA
2004-10-07 15:43 ` Dave Hansen
2004-10-08 0:43 ` [Lhms-devel] " Hiroyuki KAMEZAWA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox