* rtas instantiation when commandline contains mem
@ 2009-07-16 13:12 Benjamin Krill
2009-07-16 22:36 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Krill @ 2009-07-16 13:12 UTC (permalink / raw)
To: enjamin Herrenschmidt, Michael Ellerman; +Cc: linuxppc-dev
Hi,
the rtas instantiation (prom_init.c) doesn't work correctly if the
kernel parameter "mem=" is used. The current code doesn't evaluate
the kernel parameter which causes the issue that alloc_down
allocates somewhere in the "real" memory space. So it can
happen that the allocation space is above "mem=".
Commit 2babf5c2ec2f2d5de3e38d20f7df7fd815fd10c9 removes the
evaluation of "mem=".
cheers
ben
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rtas instantiation when commandline contains mem
2009-07-16 13:12 rtas instantiation when commandline contains mem Benjamin Krill
@ 2009-07-16 22:36 ` Benjamin Herrenschmidt
2009-07-17 6:36 ` Benjamin Krill
0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2009-07-16 22:36 UTC (permalink / raw)
To: Benjamin Krill; +Cc: linuxppc-dev
On Thu, 2009-07-16 at 15:12 +0200, Benjamin Krill wrote:
> Hi,
>
> the rtas instantiation (prom_init.c) doesn't work correctly if the
> kernel parameter "mem=" is used. The current code doesn't evaluate
> the kernel parameter which causes the issue that alloc_down
> allocates somewhere in the "real" memory space. So it can
> happen that the allocation space is above "mem=".
>
> Commit 2babf5c2ec2f2d5de3e38d20f7df7fd815fd10c9 removes the
> evaluation of "mem=".
Ah yes, we don't constraint prom_init.c to mem=, only the kernel
Cheers,
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rtas instantiation when commandline contains mem
2009-07-16 22:36 ` Benjamin Herrenschmidt
@ 2009-07-17 6:36 ` Benjamin Krill
2009-07-17 6:48 ` Benjamin Herrenschmidt
2009-07-17 7:53 ` Michael Ellerman
0 siblings, 2 replies; 5+ messages in thread
From: Benjamin Krill @ 2009-07-17 6:36 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
>> the rtas instantiation (prom_init.c) doesn't work correctly if the
>> kernel parameter "mem=" is used. The current code doesn't evaluate
>> the kernel parameter which causes the issue that alloc_down
>> allocates somewhere in the "real" memory space. So it can
>> happen that the allocation space is above "mem=".
>>
>> Commit 2babf5c2ec2f2d5de3e38d20f7df7fd815fd10c9 removes the
>> evaluation of "mem=".
>
>Ah yes, we don't constraint prom_init.c to mem=, only the kernel
Is that with intent? Or should I provide a patch to include it again?
cheers
ben
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rtas instantiation when commandline contains mem
2009-07-17 6:36 ` Benjamin Krill
@ 2009-07-17 6:48 ` Benjamin Herrenschmidt
2009-07-17 7:53 ` Michael Ellerman
1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2009-07-17 6:48 UTC (permalink / raw)
To: Benjamin Krill; +Cc: linuxppc-dev
On Fri, 2009-07-17 at 08:36 +0200, Benjamin Krill wrote:
> >> the rtas instantiation (prom_init.c) doesn't work correctly if the
> >> kernel parameter "mem=" is used. The current code doesn't evaluate
> >> the kernel parameter which causes the issue that alloc_down
> >> allocates somewhere in the "real" memory space. So it can
> >> happen that the allocation space is above "mem=".
> >>
> >> Commit 2babf5c2ec2f2d5de3e38d20f7df7fd815fd10c9 removes the
> >> evaluation of "mem=".
> >
> >Ah yes, we don't constraint prom_init.c to mem=, only the kernel
>
> Is that with intent? Or should I provide a patch to include it again?
Well I suppose it makes sense to include it again, not sure about that,
there's potentially a similar issue with TCE tables.
I understand what you are trying to do (though I told you I don't think
it's the right approach ;-) but heh... send a patch we'll see what it
looks like.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rtas instantiation when commandline contains mem
2009-07-17 6:36 ` Benjamin Krill
2009-07-17 6:48 ` Benjamin Herrenschmidt
@ 2009-07-17 7:53 ` Michael Ellerman
1 sibling, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2009-07-17 7:53 UTC (permalink / raw)
To: Benjamin Krill; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
On Fri, 2009-07-17 at 08:36 +0200, Benjamin Krill wrote:
> >> the rtas instantiation (prom_init.c) doesn't work correctly if the
> >> kernel parameter "mem=" is used. The current code doesn't evaluate
> >> the kernel parameter which causes the issue that alloc_down
> >> allocates somewhere in the "real" memory space. So it can
> >> happen that the allocation space is above "mem=".
> >>
> >> Commit 2babf5c2ec2f2d5de3e38d20f7df7fd815fd10c9 removes the
> >> evaluation of "mem=".
> >
> >Ah yes, we don't constraint prom_init.c to mem=, only the kernel
>
> Is that with intent? Or should I provide a patch to include it again?
It was, it seemed to me that mem=x was about limiting kernel memory,
which RTAS isn't really. But I guess it depends how you look at it, and
what you're trying to do.
cheers
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-17 7:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-16 13:12 rtas instantiation when commandline contains mem Benjamin Krill
2009-07-16 22:36 ` Benjamin Herrenschmidt
2009-07-17 6:36 ` Benjamin Krill
2009-07-17 6:48 ` Benjamin Herrenschmidt
2009-07-17 7:53 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).