* Re: [Fastboot] [PATCH] saved_max_pfn too small on a specific machine
@ 2007-03-07 8:24 Horms
2007-03-07 9:47 ` Bernhard Walle
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Horms @ 2007-03-07 8:24 UTC (permalink / raw)
To: linux-ia64
On Tue, Mar 06, 2007 at 07:07:32PM +0100, Bernhard Walle wrote:
> Hello,
>
> I has a problem with the patch "Make saved_max_pfn point to max_pfn of
> entire system":
>
> On a HP rx8640 system with following memory map, the saved_max_pfn was wrong,
> i.e. there was memory in /proc/iomem marked as "System RAM" but above
> saved_max_pfn. This patch fixes the problem.
>
> If you have a better solution, please give me some hints. Thanks!
Hi Bernard,
this seems reasonable to me.
Acked-by: Simon Horman <horms@verge.net.au>
Magnus Damm suggested to me that if this change is going to be made,
then the whole chunk may as well be moved up to just after md is
validated. See below:
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
As only md is used to calculate saved_max_pfn it seems reasonable
to move setting saved_max_pfn to imediately after md is validated.
This shouldn't change the logic at all. And it seems to make what is
going on a little clearer.
As suggested to me by Magnus Damm
Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Index: linux-2.6/arch/ia64/kernel/efi.c
=================================--- linux-2.6.orig/arch/ia64/kernel/efi.c 2007-03-07 16:57:00.000000000 +0900
+++ linux-2.6/arch/ia64/kernel/efi.c 2007-03-07 17:00:02.000000000 +0900
@@ -971,6 +971,11 @@
if (!is_memory_available(md))
continue;
+#ifdef CONFIG_CRASH_DUMP
+ /* saved_max_pfn should ignore max_addr= command line arg */
+ if (saved_max_pfn < (efi_md_end(md) >> PAGE_SHIFT))
+ saved_max_pfn = (efi_md_end(md) >> PAGE_SHIFT);
+#endif
/*
* Round ends inward to granule boundaries
* Give trimmings to uncached allocator
@@ -1010,11 +1015,6 @@
} else
ae = efi_md_end(md);
-#ifdef CONFIG_CRASH_DUMP
- /* saved_max_pfn should ignore max_addr= command line arg */
- if (saved_max_pfn < (efi_md_end(md) >> PAGE_SHIFT))
- saved_max_pfn = (efi_md_end(md) >> PAGE_SHIFT);
-#endif
/* keep within max_addr= and min_addr= command line arg */
as = max(as, min_addr);
ae = min(ae, max_addr);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Fastboot] [PATCH] saved_max_pfn too small on a specific machine
2007-03-07 8:24 [Fastboot] [PATCH] saved_max_pfn too small on a specific machine Horms
@ 2007-03-07 9:47 ` Bernhard Walle
2007-03-08 0:35 ` Horms
2007-03-08 9:33 ` Bernhard Walle
2 siblings, 0 replies; 4+ messages in thread
From: Bernhard Walle @ 2007-03-07 9:47 UTC (permalink / raw)
To: linux-ia64
* Horms <horms@verge.net.au> [2007-03-07 09:24]:
> As only md is used to calculate saved_max_pfn it seems reasonable
> to move setting saved_max_pfn to imediately after md is validated.
> This shouldn't change the logic at all. And it seems to make what is
> going on a little clearer.
>
> As suggested to me by Magnus Damm
>
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Signed-off-by: Simon Horman <horms@verge.net.au>
(as the original patch was from me)
Acked-by: Bernhard Walle <bwalle@suse.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Fastboot] [PATCH] saved_max_pfn too small on a specific machine
2007-03-07 8:24 [Fastboot] [PATCH] saved_max_pfn too small on a specific machine Horms
2007-03-07 9:47 ` Bernhard Walle
@ 2007-03-08 0:35 ` Horms
2007-03-08 9:33 ` Bernhard Walle
2 siblings, 0 replies; 4+ messages in thread
From: Horms @ 2007-03-08 0:35 UTC (permalink / raw)
To: linux-ia64
On Wed, Mar 07, 2007 at 10:47:43AM +0100, Bernhard Walle wrote:
> * Horms <horms@verge.net.au> [2007-03-07 09:24]:
> > As only md is used to calculate saved_max_pfn it seems reasonable
> > to move setting saved_max_pfn to imediately after md is validated.
> > This shouldn't change the logic at all. And it seems to make what is
> > going on a little clearer.
> >
> > As suggested to me by Magnus Damm
> >
> > Cc: Magnus Damm <magnus.damm@gmail.com>
> > Signed-off-by: Simon Horman <horms@verge.net.au>
>
> (as the original patch was from me)
> Acked-by: Bernhard Walle <bwalle@suse.de>
Thanks.
Feel free to roll this change into your patch if you like.
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Fastboot] [PATCH] saved_max_pfn too small on a specific machine
2007-03-07 8:24 [Fastboot] [PATCH] saved_max_pfn too small on a specific machine Horms
2007-03-07 9:47 ` Bernhard Walle
2007-03-08 0:35 ` Horms
@ 2007-03-08 9:33 ` Bernhard Walle
2 siblings, 0 replies; 4+ messages in thread
From: Bernhard Walle @ 2007-03-08 9:33 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 960 bytes --]
* Horms <horms@verge.net.au> [2007-03-08 01:35]:
> On Wed, Mar 07, 2007 at 10:47:43AM +0100, Bernhard Walle wrote:
> > * Horms <horms@verge.net.au> [2007-03-07 09:24]:
> > > As only md is used to calculate saved_max_pfn it seems reasonable
> > > to move setting saved_max_pfn to imediately after md is validated.
> > > This shouldn't change the logic at all. And it seems to make what is
> > > going on a little clearer.
> > >
> > > As suggested to me by Magnus Damm
> > >
> > > Cc: Magnus Damm <magnus.damm@gmail.com>
> > > Signed-off-by: Simon Horman <horms@verge.net.au>
> >
> > (as the original patch was from me)
> > Acked-by: Bernhard Walle <bwalle@suse.de>
>
> Thanks.
>
> Feel free to roll this change into your patch if you like.
Not necessary since Tony already picked the patch:
http://git.kernel.org/?p=linux/kernel/git/aegl/linux-2.6.git;a=commitdiff;h=e55fdf11f3029bcd41b1b9547ad9db12c27eea76
Regards,
Bernhard
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-08 9:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07 8:24 [Fastboot] [PATCH] saved_max_pfn too small on a specific machine Horms
2007-03-07 9:47 ` Bernhard Walle
2007-03-08 0:35 ` Horms
2007-03-08 9:33 ` Bernhard Walle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox