[parisc-linux] Linux only see 2Gb of ram of N4k

Joel Soete soete.joel at tiscali.be
Wed Mar 24 09:42:06 MST 2004


Hi Grant,

Sorry but I make a typo in
arch/parisc/mm/init.c
static void __init setup_bootmem(void)
{
[snip]
        /*
         * Throw out ranges that are too far apart (controlled by
         * MAX_GAP). If CONFIG_DISCONTIGMEM wasn't implemented so
         * poorly, we would recommend enabling that option, but,
         * until it is fixed, this is the best way to go.
         */

        printk("npmem_ranges = %d.(line 171)\n", npmem_ranges);
        for (i = 1; i < npmem_ranges; i++) {
              printk("pmem_ranges[%d].start_pfn = %ld.\n", i-1, 
pmem_ranges[i-1].pages);  <=== should be start_pfn also

                printk("pmem_ranges[%d].pages = %ld.\n", i-1, 
pmem_ranges[i-1].pages);
                printk("pmem_ranges[%d].start_pfn = %ld.\n", i, 
pmem_ranges[i].pages);    <==== here the same
                printk("MAX_GAP = %ld.\n", MAX_GAP);
[snip]
           
And actual results would be:
<==== return by setup_bootmem() ====>
pmem_ranges[0].start_pfn = 0.
pmem_ranges[0].pages = 524288.
pmem_ranges[1].start_pfn = 1572864.

Is it much more in accordance to your knowledge?

Thanks for advise,
    Joel

PS: May I risk to play with CONFIG_DISCONTIGMEM?

----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr





More information about the parisc-linux mailing list