Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Chad Reese <kreese@caviumnetworks.com>
To: linux-mips@linux-mips.org
Subject: Any examples / docs for getting SPARSEMEM to work?
Date: Thu, 18 May 2006 10:58:48 -0700	[thread overview]
Message-ID: <446CB5D8.107@caviumnetworks.com> (raw)

Hello All,

I've spent the last few days trying to get SPARSEMEM to work on a 64bit Mips 
kernel. The processor I'm using has large wholes in its memory map.

Memory layout:
0 - 0x10000000			First 256MB
0x410000000 - 0x420000000 	Second 256MB
0x20000000 - ? 			The rest of memory

Up until now I've used the flat memory model and not mapped the 2nd 256MB. This 
is rather wasteful for boards with 512MB of memory. SPARSEMEM look like what I 
need, but I've been unable to get it working. My attempts to configure it always
end with sparse_index_alloc calling alloc_bootmem_node which fails to allocate 
4KB. In prom_init I've added memory using add_memory_region.

Are there any reasonably easy to follow implementations of sparsemem? I figure 
I'm missing something very basic, but perusal of Mips and the other 
architectures haven't helped much.

My baseline is linux-mips 2.6.14.

Any help would be appreciated,

Chad

-- 

Chad Reese <kreese@caviumnetworks.com>
Cavium Networks

             reply	other threads:[~2006-05-18 17:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-18 17:58 Chad Reese [this message]
2006-05-18 20:23 ` Any examples / docs for getting SPARSEMEM to work? Matt Porter
2006-06-13  7:01 ` Franck Bui-Huu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=446CB5D8.107@caviumnetworks.com \
    --to=kreese@caviumnetworks.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox