lmb_phys_mem_size() vs. lmb_end_of_DRAM()

Dave Hansen haveblue at us.ibm.com
Thu Feb 5 08:31:49 EST 2004


It looks to me like lmb_phys_mem_size() will return the largest valid
physical address on the system while lmb_end_of_DRAM() is used just for
usable RAM.

lmb_phys_mem_size() determines how big the kernel's ZONE_DMA is and
lmb_end_of_DRAM() is used to figure out everything else like bootmem
sizes and the zone start/end_pfn values.

Can we just abolish the use of lmb_end_of_DRAM(), and bootmem reserve
the I/O areas?  We'll probably have some unused struct pages, but that
should be just about the only side-effect, and it keeps from having the
confusing distinction.  That's what we do on x86 at least.

--dave


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





More information about the Linuxppc64-dev mailing list