Skip to contentSkip to conversation

rtas instantiation when commandline contains mem

DISCUSSION Benjamin Krill 3 participants 5 messages Jul 16, 2009 – Jul 17, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 10 lines · Benjamin Krill

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.

#2 lore raw
Quoted 10 lines
Quoted 8 lines

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

Quoted 2 lines
#3 lore raw
Quoted 6 lines · Benjamin Krill
Quoted 6 lines
Quoted 6 lines

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=".

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

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.

#4 lore raw
In reply to Benjamin Krill
Quoted 6 lines · Benjamin Krill
Quoted 6 lines
Quoted 6 lines

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=".

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

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