linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Physical Memory map holes in PPC
@ 2004-04-23  4:26 Tameen Khan
  2004-04-23  6:31 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Tameen Khan @ 2004-04-23  4:26 UTC (permalink / raw)
  To: linuxppc-dev


Hi,

I am porting Linux kernel Core dumps (LKCD) to PPC platform (440GX).
Need to figure out if there are holes in Pysical memory map for PPC
architecture, and if yes where are they defined.

For example the equivalent funtion for i386 architecture is page_is_ram()
defined in arch/i386/mm/init.c. It uses the e820 memory map, which is
initialized by the setup code in setup.S ( or it is faked to contain 2
regions 0->640K and 1M ->appropriate_end.... So there's at least a memory
hole from 640K -> 1MB)

I have looked through the boot memory allocator code for PPC and I dont find
a similar memory map. They use a phys_avail array for boot memory allocation
which is initialized to a single region from PPC_MEMSTART to total_memory.
>From this it appears that there are no "holes" in physical memory map for
PPC.

Am I right ??
Any input will be appreciated

Thanks
Tameen


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Physical Memory map holes in PPC
  2004-04-23  4:26 Physical Memory map holes in PPC Tameen Khan
@ 2004-04-23  6:31 ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2004-04-23  6:31 UTC (permalink / raw)
  To: Tameen Khan; +Cc: linuxppc-dev list


> I have looked through the boot memory allocator code for PPC and I dont find
> a similar memory map. They use a phys_avail array for boot memory allocation
> which is initialized to a single region from PPC_MEMSTART to total_memory.
> >From this it appears that there are no "holes" in physical memory map for
> PPC.

Most ppc32 don't, though it's fairly dependant on a given board. ppc64
do have holes, though at this point, it's not simple to get to them, the
data structure representing the physical memory map beeing marked __init...

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Physical Memory map holes in PPC
@ 2004-12-31 20:01 dheeraj kumar
  0 siblings, 0 replies; 3+ messages in thread
From: dheeraj kumar @ 2004-12-31 20:01 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

hey can i contribute to Ms tameen?
 

Yahoo! India Matrimony: Find your life partneronline.

[-- Attachment #2: Type: text/html, Size: 384 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-31 20:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23  4:26 Physical Memory map holes in PPC Tameen Khan
2004-04-23  6:31 ` Benjamin Herrenschmidt
  -- strict thread matches above, loose matches on Subject: below --
2004-12-31 20:01 dheeraj kumar

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).